diff --git a/data/benchmarks.arrow b/data/benchmarks.arrow index 74dbee733..27bfd1e82 100644 Binary files a/data/benchmarks.arrow and b/data/benchmarks.arrow differ diff --git a/data/benchmarks.csv b/data/benchmarks.csv new file mode 100644 index 000000000..5458fe48f --- /dev/null +++ b/data/benchmarks.csv @@ -0,0 +1,406 @@ +integer_sum,lovefield,[],1731457878581,"[1000.0, 10.0]",lovefield_integer_sum_1000,15127,6,2538.944529761492,0.393864453625515,0.3584690000861883,0.11270901712196657,4.847907999996096,0.34332099999301136,5957.987589993165,5996.286444997415,, +integer_sum,lovefield,[],1731457878581,"[10000.0, 10.0]",lovefield_integer_sum_10000,1103,5,220.23803025204555,4.5405418803263755,4.399490999989212,0.5102779459434997,8.964952999958768,3.9550630000885576,5008.217693999992,5014.828616999439,, +integer_sum,lovefield,[],1731457878581,"[100000.0, 10.0]",lovefield_integer_sum_100000,50,5,9.618491493571366,103.96640685999067,102.08209399995394,13.061900864549557,148.14154700003564,87.7705839999253,5198.320342999534,5201.493060999899,, +integer_sum,sqljs,[],1731457878581,"[1000.0, 10.0]",sqljs_integer_sum_1000,15251,6,2561.902977245235,0.39033484440354593,0.3743780000368133,0.09222627121151782,2.8713830000488088,0.35740600002463907,5952.996711998479,5997.49073600641,, +integer_sum,sqljs,[],1731457878581,"[10000.0, 10.0]",sqljs_integer_sum_10000,988,5,197.4173565686786,5.065410748989107,5.4917399999685585,0.5329127292218402,7.322893999982625,4.446269999956712,5004.625820001238,5010.853723998996,, +integer_sum,sqljs,[],1731457878581,"[100000.0, 10.0]",sqljs_integer_sum_100000,96,5,18.835599596379627,53.09095656249823,52.98944300005678,1.1505524658663016,57.14501900004689,50.69659700000193,5096.73182999983,5098.083015999757,, +integer_sum,arquero,[],1731457878581,"[1000.0, 10.0]",arquero_integer_sum_1000,37050,6,6293.97684649451,0.15888205889364837,0.14704499999061227,0.07338472240284316,8.499808000051416,0.14022099995054305,5886.580282009672,5992.743913985672,, +integer_sum,arquero,[],1731457878581,"[10000.0, 10.0]",arquero_integer_sum_10000,531,5,105.62250080166929,9.467679636536268,9.265372999943793,0.969053206657196,17.736636999994516,9.116507000057027,5027.337887000758,5030.179117999505,, +integer_sum,arquero,[],1731457878581,"[100000.0, 10.0]",arquero_integer_sum_100000,5,5,0.8978784238850107,1113.7365298000163,1107.2870010000188,12.730895355654551,1139.065520000062,1106.097945000045,5568.682649000082,5568.823179000057,, +integer_sum,duckdb,[sync],1731457878581,"[1000.0, 10.0]",duckdb_sync_integer_sum_1000,15747,6,2657.994802125047,0.3762234595795701,0.33186899998690933,0.3218379078939756,13.78261500003282,0.3165199999930337,5924.3908179994905,5996.254814000451,, +integer_sum,duckdb,[sync],1731457878581,"[10000.0, 10.0]",duckdb_sync_integer_sum_10000,6129,5,1232.931167595399,0.811075286506312,0.7930480000795797,0.09676758177086732,4.615871999994852,0.7645650000777096,4971.080430997186,5000.015000996762,, +integer_sum,duckdb,[sync],1731457878581,"[100000.0, 10.0]",duckdb_sync_integer_sum_100000,60,5,11.442725962892025,87.39176339999152,86.73348400008399,2.7321173790759077,98.92959600000177,85.24373800004832,5243.505803999491,5244.330985000939,, +tpch,lovefield,[],1731458928830,"[0.25, 1.0]",lovefield_tpch_025_q1,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_025_q1` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 3.0]",lovefield_tpch_025_q3,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_025_q3` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 4.0]",lovefield_tpch_025_q4,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_025_q4` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 5.0]",lovefield_tpch_025_q5,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_025_q5` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 6.0]",lovefield_tpch_025_q6,10,4,1.9979028150006626,500.5248466000427,492.014364000177,23.303963252596677,562.6142609999515,484.03867999999784,5005.248466000427,5005.652872999432,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,lovefield,[],1731458928830,"[0.25, 7.0]",lovefield_tpch_025_q7,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_025_q7` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 8.0]",lovefield_tpch_025_q8,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_025_q8` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 10.0]",lovefield_tpch_025_q10,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_025_q10` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 12.0]",lovefield_tpch_025_q12,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_025_q12` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 13.0]",lovefield_tpch_025_q13,3,3,0.4588391132236829,2179.4131563333017,2183.588399,29.288463938791043,2213.013721999945,2141.63734799996,6538.2394689999055,6538.310161000118,"", +tpch,lovefield,[],1731458928830,"[0.25, 14.0]",lovefield_tpch_025_q14,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",Benchmark `lovefield_tpch_025_q14` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458928830,"[0.25, 16.0]",lovefield_tpch_025_q16,11,5,1.9816716643393242,504.6244632727255,506.5261569998693,21.84164910261864,561.4743770000059,471.79495000001043,5550.86909599998,5551.099917999934,"", +tpch,lovefield,[],1731458928830,"[0.25, 19.0]",lovefield_tpch_025_q19,2,2,0.2887774488146861,3462.8742794999853,3873.7097920000087,410.83551250002347,3873.7097920000087,3052.038766999962,6925.748558999971,6925.786640000064,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +regex,lovefield,[],1731457810239,"[1000.0, 20.0]",lovefield_regex_1000,22442,6,3774.940539243144,0.26490483481906574,0.24322300008498132,0.06992986026709275,3.8846320000011474,0.2226250000530854,5944.994303009473,5995.0006970008835,, +regex,lovefield,[],1731457810239,"[10000.0, 20.0]",lovefield_regex_10000,1783,5,356.71248971156473,2.8033781514311236,2.710293999989517,0.31611586273107234,10.060645999968983,2.595339999999851,4998.423244001693,5004.864880000241,, +regex,lovefield,[],1731457810239,"[100000.0, 20.0]",lovefield_regex_100000,113,5,22.306302854466153,44.8303785044226,43.72143799997866,7.288054341714911,88.14164200006053,37.049700000090525,5065.832770999754,5067.687287998851,, +regex,sqljs,[],1731457810239,"[1000.0, 20.0]",sqljs_regex_1000,40370,6,6838.318772492524,0.1462347739655761,0.1401520000072196,0.048945882174160786,4.685470000025816,0.13528200006112456,5903.497824990307,5992.973524992005,, +regex,sqljs,[],1731457810239,"[10000.0, 20.0]",sqljs_regex_10000,4334,5,868.2653319813681,1.1517216721275918,1.1454750000266358,0.0594211719681098,3.1370880000758916,1.1207709999289364,4991.5617270009825,5001.4033700011205,, +regex,sqljs,[],1731457810239,"[100000.0, 20.0]",sqljs_regex_100000,425,5,84.47619558385118,11.837654301174094,11.809037999948487,0.17939356997413314,14.315922999987379,11.688673999975435,5031.00307799899,5033.397601001547,, +regex,arquero,[],1731457810239,"[1000.0, 20.0]",arquero_regex_1000,85108,6,14653.884157084052,0.06824129283952168,0.06322900007944554,0.03939215492946451,7.477971000014804,0.061034000013023615,5807.879950986011,5984.907818989246,, +regex,arquero,[],1731457810239,"[10000.0, 20.0]",arquero_regex_10000,13248,6,2221.4645491393185,0.4501534811291222,0.4315649999771267,0.11829099709618773,11.339680999983102,0.42606399999931455,5963.63331799861,5999.403381993878,, +regex,arquero,[],1731457810239,"[100000.0, 20.0]",arquero_regex_100000,1168,5,233.30739608269573,4.2861907371575585,4.118236999958754,1.0618683544212428,39.03035600006115,4.0710690000560135,5006.270781000028,5012.140316002537,, +regex,duckdb,[sync],1731457810239,"[1000.0, 20.0]",duckdb_sync_regex_1000,19409,6,3287.2340041678776,0.304207123293353,0.27262900001369417,0.2197384039585599,13.230001999996603,0.2618680000305176,5904.356056000688,5992.624266004423,, +regex,duckdb,[sync],1731457810239,"[10000.0, 20.0]",duckdb_sync_regex_10000,11768,6,1978.7574302920511,0.5053676538070696,0.49099500000011176,0.0789925013112137,2.716073999996297,0.4686740000033751,5947.166550001595,5996.8552150016185,, +regex,duckdb,[sync],1731457810239,"[100000.0, 20.0]",duckdb_sync_regex_100000,2250,5,450.7432286166166,2.2185580093329773,2.1920129999052733,0.165133943715171,5.67764500004705,2.1347959999693558,4991.755520999199,5002.723595001153,, +tpch,sqljs,[],1731458105541,"[0.01, 1.0]",sqljs_tpch_001_q1,59,5,11.664901363101501,85.72725725424539,84.08714099996723,8.412248309627401,148.63776700012386,83.29558500018902,5057.908178000478,5059.775338999461,, +tpch,sqljs,[],1731458105541,"[0.01, 2.0]",sqljs_tpch_001_q2,2050,5,410.7874724368637,2.4343488229273977,2.415813999949023,0.0996565948767416,4.507092999992892,2.36138299992308,4990.415087001165,5004.135123996064,, +tpch,sqljs,[],1731458105541,"[0.01, 3.0]",sqljs_tpch_001_q3,240,5,47.52915414552244,21.039717999993204,20.981272999895737,0.21285587267173028,22.77981700003147,20.838217000011355,5049.532319998369,5052.4663520006,, +tpch,sqljs,[],1731458105541,"[0.01, 4.0]",sqljs_tpch_001_q4,1073,5,214.31370813301385,4.666057102513245,4.60271400003694,0.35444146465729315,10.226865000091493,4.527883999980986,5006.679270996712,5012.387153000105,, +tpch,sqljs,[],1731458105541,"[0.01, 5.0]",sqljs_tpch_001_q5,254,5,50.31816919285371,19.87353705512048,19.78180899983272,0.4048931520380282,23.58130199997686,19.580900999950245,5047.878412000602,5050.42769900104,, +tpch,sqljs,[],1731458105541,"[0.01, 6.0]",sqljs_tpch_001_q6,348,5,68.93513970023417,14.506389692521402,14.423913000151515,0.6141679129774714,22.573673999868333,14.207651000004262,5048.223612997448,5051.061227998696,, +tpch,sqljs,[],1731458105541,"[0.01, 7.0]",sqljs_tpch_001_q7,207,5,40.91789863233612,24.439182690817162,24.321198999881744,0.6923549800554499,33.39302599988878,24.113993000006303,5058.910816999152,5061.275094998302,, +tpch,sqljs,[],1731458105541,"[0.01, 8.0]",sqljs_tpch_001_q8,175,5,34.12747149543211,29.301907120011748,29.236349999904633,0.2750855342534992,31.397082000039518,29.0400330000557,5127.833746002056,5129.71923700138,, +tpch,sqljs,[],1731458105541,"[0.01, 9.0]",sqljs_tpch_001_q9,120,5,23.240388123347834,43.0285412916739,42.9836780000478,0.35897217254181407,45.23719500005245,42.70503899990581,5163.424955000868,5165.012432998512,, +tpch,sqljs,[],1731458105541,"[0.01, 10.0]",sqljs_tpch_001_q10,357,5,70.93218727244677,14.09797214005333,14.056582999881357,0.20653931046355503,16.044417000142857,13.88052499992773,5032.976053999038,5036.509898998309,, +tpch,sqljs,[],1731458105541,"[0.01, 11.0]",sqljs_tpch_001_q11,801,5,159.79328703094234,6.258085171039508,6.244069000007585,0.11031936474887813,7.962043999927118,6.134214000077918,5012.726222002646,5016.602859998355,, +tpch,sqljs,[],1731458105541,"[0.01, 12.0]",sqljs_tpch_001_q12,395,5,78.67420033360696,12.710647146836441,12.680637000128627,0.1776849230961575,14.644644999876618,12.506361000007018,5020.705623000395,5024.079474000959,, +tpch,sqljs,[],1731458105541,"[0.01, 13.0]",sqljs_tpch_001_q13,125,5,24.66749827552321,40.53917380800098,40.46657000016421,0.36794891853861855,42.58586600003764,40.02156000002287,5067.396726000123,5069.165744999656,, +tpch,sqljs,[],1731458105541,"[0.01, 14.0]",sqljs_tpch_001_q14,390,5,77.3665770262357,12.92547813845882,12.870674000121653,0.32503493277032464,17.870721000013873,12.723640999989584,5040.93647399894,5043.639103000285,, +tpch,sqljs,[],1731458105541,"[0.01, 15.0]",sqljs_tpch_001_q15,193,5,38.001003908936234,26.31509426425554,26.256611000047997,0.3258625435343529,28.73585500009358,25.92723900009878,5078.813193001319,5081.11605100031,, +tpch,sqljs,[],1731458105541,"[0.01, 16.0]",sqljs_tpch_001_q16,1155,5,230.74072278765638,4.333868716014509,4.320624999934807,0.08875672922887745,6.245995000004768,4.281365999951959,5005.618366996758,5010.066566002788,, +tpch,sqljs,[],1731458105541,"[0.01, 17.0]",sqljs_tpch_001_q17,225,5,44.29968747793909,22.57352267999616,22.52825400000438,0.21682434696693378,24.176862000022084,22.27989699994214,5079.042602999136,5081.068842998939,, +tpch,sqljs,[],1731458105541,"[0.01, 18.0]",sqljs_tpch_001_q18,308,5,61.44314923122188,16.275207448056022,16.096856999909505,0.9412042804850794,23.775451000081375,15.91017199982889,5012.763894001255,5015.271994998213,, +tpch,sqljs,[],1731458105541,"[0.01, 19.0]",sqljs_tpch_001_q19,340,5,67.56489985506084,14.800584358819213,14.778786999871954,0.1389038445655432,16.380923999939114,14.578633000142872,5032.198681998532,5034.879940999439,, +tpch,sqljs,[],1731458105541,"[0.01, 20.0]",sqljs_tpch_001_q20,15,5,2.9794178052036826,335.6360421332841,335.7310029999353,2.222206573360492,340.86610900005326,332.4706339999102,5034.540631999262,5034.780420999974,, +tpch,sqljs,[],1731458105542,"[0.01, 21.0]",sqljs_tpch_001_q21,60,5,11.669389131261795,85.69428859999559,85.32073799986392,1.9829147192703274,99.79712600004859,84.60414599999785,5141.657315999735,5142.612523999065,, +tpch,sqljs,[],1731458105542,"[0.01, 22.0]",sqljs_tpch_001_q22,55,5,10.752460226193495,93.00197154544718,92.65410599997267,1.221020241832947,99.93159599998035,91.89321699994616,5115.1084349995945,5115.9395839995705,, +tpch,lovefield,[],1731458586831,"[0.1, 1.0]",lovefield_tpch_01_q1,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_01_q1` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 3.0]",lovefield_tpch_01_q3,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_01_q3` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 4.0]",lovefield_tpch_01_q4,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_01_q4` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 5.0]",lovefield_tpch_01_q5,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_01_q5` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 6.0]",lovefield_tpch_01_q6,28,5,5.502586235674529,181.7327266071308,168.06512400018983,45.31724708135751,366.85272999992594,158.7529430000577,5088.516344999662,5089.5329209994525,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,lovefield,[],1731458586831,"[0.1, 7.0]",lovefield_tpch_01_q7,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_01_q7` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 8.0]",lovefield_tpch_01_q8,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_01_q8` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 9.0]",lovefield_tpch_01_q9,2,2,0.2255217406765346,4434.162298500072,4522.199635999976,88.03733749990351,4522.199635999976,4346.124961000169,8868.324597000144,8868.362967999885,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,lovefield,[],1731458586831,"[0.1, 10.0]",lovefield_tpch_01_q10,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_01_q10` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 12.0]",lovefield_tpch_01_q12,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_01_q12` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 13.0]",lovefield_tpch_01_q13,8,4,1.2125610930926163,824.7007146250398,822.5454649999738,18.326982977212126,862.8196370000951,803.9210769999772,6597.605717000319,6597.7538309998345,"", +tpch,lovefield,[],1731458586831,"[0.1, 14.0]",lovefield_tpch_01_q14,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",Benchmark `lovefield_tpch_01_q14` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458586831,"[0.1, 16.0]",lovefield_tpch_01_q16,30,5,5.273659788673683,189.6216366000163,175.9695139999967,61.85339801118646,461.4514910001308,138.87739500007592,5688.649098000489,5689.21529100067,"", +tpch,lovefield,[],1731458586831,"[0.1, 19.0]",lovefield_tpch_01_q19,6,4,0.9362631393393822,1068.0757983333508,1023.0323820000049,168.40851007413633,1438.083038000157,946.6362489999738,6408.454790000105,6408.547222999856,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,duckdb,[sync],1731459046205,"[0.5, 1.0]",duckdb_sync_tpch_05_q1,25,5,4.353413210530607,229.70482047995552,226.21005100011826,8.963721639665481,260.6397190000862,223.19541999977082,5742.620511998888,5743.398762000725,, +tpch,duckdb,[sync],1731459046205,"[0.5, 2.0]",duckdb_sync_tpch_05_q2,259,5,51.320935662799116,19.48522541698061,18.88075100025162,2.0071275217455544,35.18906800029799,17.706712000072002,5046.6733829979785,5049.890172997955,, +tpch,duckdb,[sync],1731459046205,"[0.5, 3.0]",duckdb_sync_tpch_05_q3,114,5,22.186786261356527,45.071872429840525,44.649411000311375,2.4251825710972508,67.50609200028703,42.869395999703556,5138.19345700182,5139.975757000502,, +tpch,duckdb,[sync],1731459046205,"[0.5, 4.0]",duckdb_sync_tpch_05_q4,74,5,14.064466526618476,71.10116818916632,70.46045899996534,2.6065387705154617,85.37721599964425,68.95375100011006,5261.486445998307,5262.420624002814,, +tpch,duckdb,[sync],1731459046205,"[0.5, 5.0]",duckdb_sync_tpch_05_q5,100,5,19.80809313244549,50.484415300027464,50.43481200002134,0.84057845649008,53.11207999987528,49.08952399995178,5048.441530002747,5049.78491500346,, +tpch,duckdb,[sync],1731459046205,"[0.5, 6.0]",duckdb_sync_tpch_05_q6,223,5,44.333083590838946,22.55651804483642,22.38653799984604,0.8734661485458727,27.668345000129193,21.422350000124425,5030.103523998521,5032.477027996909,, +tpch,duckdb,[sync],1731459046205,"[0.5, 7.0]",duckdb_sync_tpch_05_q7,84,5,16.045428468067367,62.32304746427551,62.33890199987218,0.7851419851256207,64.68943400029093,60.73402999993414,5235.135986999143,5236.158119001426,, +tpch,duckdb,[sync],1731459046205,"[0.5, 8.0]",duckdb_sync_tpch_05_q8,75,5,14.582510100000496,68.57529966668537,68.48788599995896,0.5740091371720173,70.24606299959123,67.54857399966568,5143.147475001402,5144.040129997302,, +tpch,duckdb,[sync],1731459046205,"[0.5, 9.0]",duckdb_sync_tpch_05_q9,35,5,6.7602907940403805,147.92263091427407,147.2330709998496,2.7057219387190017,160.39865500014275,143.89214399969205,5177.2920819995925,5177.7209129994735,, +tpch,duckdb,[sync],1731459046205,"[0.5, 10.0]",duckdb_sync_tpch_05_q10,40,5,7.520538254368511,132.96920595000265,132.78804300026968,1.5447316388483612,137.92083100043237,130.73037800006568,5318.768238000106,5319.586436001118,, +tpch,duckdb,[sync],1731459046205,"[0.5, 11.0]",duckdb_sync_tpch_05_q11,441,5,87.82472500274233,11.386315185943083,11.272622999735177,0.4308102148150718,15.31996800005436,10.907552999909967,5021.364997000899,5026.485024997499,, +tpch,duckdb,[sync],1731459046205,"[0.5, 12.0]",duckdb_sync_tpch_05_q12,45,5,8.869955025947997,112.74014322221693,112.29090399993584,1.978063473730581,124.7324059996754,111.56735400017351,5073.306444999762,5073.866907000542,, +tpch,duckdb,[sync],1731459046205,"[0.5, 13.0]",duckdb_sync_tpch_05_q13,45,5,8.916485850274144,112.15180697777411,111.56823600037023,1.6254144856961756,119.58863800019026,110.65895000007004,5046.831313999835,5047.400242999662,, +tpch,duckdb,[sync],1731459046205,"[0.5, 14.0]",duckdb_sync_tpch_05_q14,164,5,32.460799717756835,30.806388280476533,30.75769599992782,0.9837660602385004,39.87147399969399,29.56906000012532,5052.247677998152,5054.1350229987875,, +tpch,duckdb,[sync],1731459046205,"[0.5, 15.0]",duckdb_sync_tpch_05_q15,110,5,21.364255163843435,46.80715486362407,46.83451299974695,0.6816056798424479,49.34719800017774,44.948367999866605,5148.787034998648,5150.682132001966,, +tpch,duckdb,[sync],1731459046205,"[0.5, 16.0]",duckdb_sync_tpch_05_q16,162,5,31.666845717280555,31.578768814801826,31.443944999948144,1.082004640196832,38.357151000294834,29.833430000115186,5115.760547997896,5118.0240460038185,, +tpch,duckdb,[sync],1731459046205,"[0.5, 17.0]",duckdb_sync_tpch_05_q17,80,5,15.731878279064421,63.56520068749669,63.04933600034565,2.3736877246720076,80.91733699990436,62.53604200016707,5085.216054999735,5086.0630920007825,, +tpch,duckdb,[sync],1731459046205,"[0.5, 18.0]",duckdb_sync_tpch_05_q18,40,5,7.835233997246222,127.62860692500836,127.54333400027826,3.309141197619315,136.54129600012675,123.33136499999091,5105.144277000334,5105.596150999423,, +tpch,duckdb,[sync],1731459046205,"[0.5, 19.0]",duckdb_sync_tpch_05_q19,30,5,5.8895521992892395,169.7921957667141,169.52815099991858,1.1847115045818506,172.78881800035015,168.15129599999636,5093.765873001423,5094.12500100024,, +tpch,duckdb,[sync],1731459046205,"[0.5, 20.0]",duckdb_sync_tpch_05_q20,112,5,21.941040427580337,45.57669009820425,45.10007599974051,2.0804133096983026,60.28758399980143,43.59000200033188,5104.589290998876,5105.85071900161,, +tpch,duckdb,[sync],1731459046205,"[0.5, 21.0]",duckdb_sync_tpch_05_q21,30,5,5.504335889594677,181.67495953333565,181.98722199955955,2.925912730231517,186.69006700022146,176.37265699962154,5450.248786000069,5450.60165300034,, +tpch,duckdb,[sync],1731459046205,"[0.5, 22.0]",duckdb_sync_tpch_05_q22,169,5,33.3167031859147,30.014974603572718,29.966222000308335,0.5701507280341964,34.71178699983284,28.79058100003749,5072.530708003789,5074.641762001906,, +integer_sort,lovefield,[],1731457424168,"[1000.0, 1.0, 1.0]",lovefield_integer_sort_1000_1_1,13949,6,2340.379433610635,0.42728114323635286,0.37391799996839836,0.14634630710987653,7.003843999991659,0.33580599998822436,5960.144667003886,5997.732368994446,, +integer_sort,lovefield,[],1731457424168,"[10000.0, 1.0, 1.0]",lovefield_integer_sort_10000_1_1,677,5,135.11971118422164,7.400844711965112,7.255097999994177,0.8667726575327258,21.42613000003621,6.202037000039127,5010.371870000381,5019.294330999197,, +integer_sort,lovefield,[],1731457424168,"[100000.0, 1.0, 1.0]",lovefield_integer_sort_100000_1_1,30,5,5.645958551880278,177.11784293332602,176.443237999978,6.895421140542747,193.9039829999674,161.39660400000867,5313.535287999781,5314.355834999937,, +integer_sort,lovefield,[],1731457424168,"[1000.0, 2.0, 2.0]",lovefield_integer_sort_1000_2_2,14366,6,2409.5373295540953,0.41501743414992376,0.3600110000115819,0.19939380185096212,15.701232000021264,0.3302960000000894,5962.140458997805,5997.411162997887,, +integer_sort,lovefield,[],1731457424168,"[10000.0, 2.0, 2.0]",lovefield_integer_sort_10000_2_2,675,5,134.60199085064545,7.429310619258236,7.212680000055116,1.282787807125529,31.999955000006594,6.3665429999819025,5014.784667999309,5022.356700999779,, +integer_sort,lovefield,[],1731457424168,"[100000.0, 2.0, 2.0]",lovefield_integer_sort_100000_2_2,30,5,5.423653225115436,184.3775696000026,183.26338400004897,10.254812813618338,212.60537100001238,162.65879000001587,5531.327088000078,5531.926871999924,, +integer_topk,lovefield,[],1731457424168,"[1000.0, 1.0, 1.0, 100.0]",lovefield_integer_sort_1000_1_1,14654,6,2459.9256919942927,0.40651634447920554,0.36075299995718524,0.12052874824353663,1.8319570000167005,0.3338619999703951,5957.090511998278,5997.339085002197,, +integer_topk,lovefield,[],1731457424168,"[10000.0, 1.0, 1.0, 100.0]",lovefield_integer_sort_10000_1_1,730,5,145.38507871863027,6.878284957532274,6.744849000009708,0.5548415797191532,11.474369000003207,6.170908000029158,5021.14801899856,5028.728021001094,, +integer_topk,lovefield,[],1731457424168,"[100000.0, 1.0, 1.0, 100.0]",lovefield_integer_sort_100000_1_1,30,5,5.683040466052042,175.96214666665765,174.539344000048,6.821971608542345,202.67009799997322,166.70865899999626,5278.864399999729,5279.3653830002295,, +integer_sort,sqljs,[],1731457424168,"[1000.0, 1.0, 1.0]",sqljs_integer_sort_1000_1_1,15764,6,2648.693266816281,0.3775446604287238,0.35563300002831966,0.1657221717060294,13.55937300005462,0.3243050000164658,5951.614026998403,5997.623768003425,, +integer_sort,sqljs,[],1731457424168,"[10000.0, 1.0, 1.0]",sqljs_integer_sort_10000_1_1,1125,5,224.70932765354402,4.450193547558453,4.300340000074357,0.418875341029741,6.869461000082083,4.157343000057153,5006.46774100326,5012.634241001797,, +integer_sort,sqljs,[],1731457424168,"[100000.0, 1.0, 1.0]",sqljs_integer_sort_100000_1_1,76,5,14.779438902549279,67.66156730263366,63.49153499992099,8.709606525118165,99.08813799999189,61.37230200006161,5142.279115000158,5143.917347000912,, +integer_sort,sqljs,[],1731457424168,"[1000.0, 2.0, 2.0]",sqljs_integer_sort_1000_2_2,13402,6,2247.901426775811,0.4448593644225364,0.4257740000030026,0.1238639470606733,9.464108999934979,0.3972510000457987,5962.005201990833,5998.882049992797,, +integer_sort,sqljs,[],1731457424168,"[10000.0, 2.0, 2.0]",sqljs_integer_sort_10000_2_2,974,5,194.40925012164755,5.143788165297026,4.97632999997586,0.3998605014660671,6.9554210000205785,4.917278999928385,5010.049672999303,5014.813272001804,, +integer_sort,sqljs,[],1731457424168,"[100000.0, 2.0, 2.0]",sqljs_integer_sort_100000_2_2,66,5,12.809319296819218,78.06816090909045,74.11057699995581,7.891569874095893,97.77016800001729,71.33711500000209,5152.498619999969,5153.777434000396,, +integer_topk,sqljs,[],1731457424168,"[1000.0, 1.0, 1.0, 100.0]",sqljs_integer_topk_1000_1_1_100,25330,6,4279.44042042115,0.2336754112121948,0.22888700000476092,0.04469099764432341,5.464906999957748,0.2212429998908192,5918.998166004894,5995.597081003361,, +integer_topk,sqljs,[],1731457424168,"[10000.0, 1.0, 1.0, 100.0]",sqljs_integer_topk_10000_1_1_100,4259,5,853.3918271663201,1.171794676450665,1.1666950000217184,0.052460346350374915,3.339888000045903,1.1382019999437034,4990.673527003382,5002.246959998389,, +integer_topk,sqljs,[],1731457424168,"[100000.0, 1.0, 1.0, 100.0]",sqljs_integer_topk_100000_1_1_100,492,5,97.897318435236,10.21478438821131,10.195150000043213,0.20625312614338848,13.16376400005538,9.968106999993324,5025.673918999964,5029.601497001364,, +integer_sort,arquero,[],1731457424168,"[1000.0, 1.0, 1.0]",arquero_integer_sort_1000_1_1,7680,5,1542.71216352039,0.6482090591144697,0.6362270000390708,0.13938534864361243,10.940060999942943,0.6151179999578744,4978.245573999127,5000.570241001551,, +integer_sort,arquero,[],1731457424168,"[10000.0, 1.0, 1.0]",arquero_integer_sort_10000_1_1,274,5,54.32843268134653,18.406568175182173,18.30468300008215,0.6897078504657886,26.526395000051707,18.191281999927014,5043.399679999915,5046.3251239983365,, +integer_sort,arquero,[],1731457424168,"[100000.0, 1.0, 1.0]",arquero_integer_sort_100000_1_1,16,4,3.103742071069791,322.19172118748975,321.18572399998084,2.3106562203484358,329.4117789999582,320.3335129999323,5155.067538999836,5155.429182000109,, +integer_sort,arquero,[],1731457424168,"[1000.0, 2.0, 2.0]",arquero_integer_sort_1000_2_2,7282,5,1461.4271366088026,0.6842626463885636,0.6744069999549538,0.1314270074765827,10.648898999905214,0.6615839999867603,4982.80059100152,5000.881813999382,, +integer_sort,arquero,[],1731457424168,"[10000.0, 2.0, 2.0]",arquero_integer_sort_10000_2_2,272,5,53.99175303246047,18.521347128677007,18.434994000010192,0.589460882261199,24.868946000002325,18.166553000104614,5037.806419000146,5040.79051000101,, +integer_sort,arquero,[],1731457424168,"[100000.0, 2.0, 2.0]",arquero_integer_sort_100000_2_2,16,4,3.1118977955889506,321.34731462501077,320.81690700002946,1.5073183048636247,324.73439999995753,320.00745800009463,5141.557034000172,5141.927340999711,, +integer_topk,arquero,[],1731457424168,"[1000.0, 1.0, 1.0, 100.0]",arquero_integer_topk_1000_1_1_100,7992,6,1336.8714333940186,0.7480150858345614,0.738376000081189,0.07210557651884895,4.062462999951094,0.7243199999211356,5978.136565989815,6000.0478889988735,, +integer_topk,arquero,[],1731457424168,"[10000.0, 1.0, 1.0, 100.0]",arquero_integer_topk_10000_1_1_100,285,5,56.986852050489276,17.547907350874883,17.466724000056274,0.4258930939812205,21.54576599993743,17.339717000024393,5001.153594999341,5004.0139629993355,, +integer_topk,arquero,[],1731457424168,"[100000.0, 1.0, 1.0, 100.0]",arquero_integer_topk_100000_1_1_100,20,5,3.2422850547720987,308.42445469998637,308.12099700002,1.4017449447313122,312.11467200005427,306.50249300000723,6168.489093999728,6168.91215400002,, +integer_sort,duckdb,[sync],1731457424168,"[1000.0, 1.0, 1.0]",duckdb_sync_integer_sort_1000_1_1,15486,6,2617.2451506597013,0.3820811358645332,0.340885000070557,0.22860243250799625,13.479160999995656,0.3248760000569746,5916.908469998161,5996.339741997304,, +integer_sort,duckdb,[sync],1731457424168,"[10000.0, 1.0, 1.0]",duckdb_sync_integer_sort_10000_1_1,336,5,66.51879591127611,15.0333448809539,15.450626999954693,2.5865913444273563,19.327164000016637,1.3121260000625625,5051.20388000051,5054.539655999164,, +integer_sort,duckdb,[sync],1731457424168,"[100000.0, 1.0, 1.0]",duckdb_sync_integer_sort_100000_1_1,214,5,42.24899477844981,23.669202196263278,23.537252999958582,0.8497563665840694,32.477090000058524,22.765523999929428,5065.209270000341,5067.7414210003335,, +integer_sort,duckdb,[sync],1731457424168,"[1000.0, 2.0, 2.0]",duckdb_sync_integer_sort_1000_2_2,11969,6,2014.6270552298424,0.49636978586387204,0.48336199996992946,0.14350380246809205,14.641976000042632,0.46641899994574487,5941.049967004685,5998.319468992413,, +integer_sort,duckdb,[sync],1731457424168,"[10000.0, 2.0, 2.0]",duckdb_sync_integer_sort_10000_2_2,309,5,61.13292835521074,16.357796475731295,16.37322799989488,0.8836587629966206,18.58506099996157,2.238825000007637,5054.55911100097,5057.661583000794,, +integer_sort,duckdb,[sync],1731457424168,"[100000.0, 2.0, 2.0]",duckdb_sync_integer_sort_100000_2_2,156,5,30.72956150551834,32.54195475000261,32.17200400005095,2.2074286142688404,54.305461000069045,31.046526000020094,5076.544941000408,5078.973020999692,, +integer_topk,duckdb,[sync],1731457424168,"[1000.0, 1.0, 1.0, 100.0]",duckdb_sync_integer_topk_1000_1_1_100,17584,6,2975.1339025778134,0.33611932529609745,0.32605699996929616,0.09797536585607224,11.64588399999775,0.31523800001014024,5910.322216006578,5994.11762599519,, +integer_topk,duckdb,[sync],1731457424168,"[10000.0, 1.0, 1.0, 100.0]",duckdb_sync_integer_topk_10000_1_1_100,7740,6,1297.5413451159109,0.7706883512915489,0.7627960001118481,0.0471616653751784,2.045464000082575,0.7421270000049844,5965.127838996588,5999.88053299312,, +integer_topk,duckdb,[sync],1731457424168,"[100000.0, 1.0, 1.0, 100.0]",duckdb_sync_integer_topk_100000_1_1_100,2909,5,582.9085656002072,1.7155349209362254,1.6906319999834523,0.13125594155973627,3.7733749999897555,1.6503970000194386,4990.491085003479,5003.16737299785,, +integer_join2,lovefield,[],1731457621312,"[1000.0, 10000.0, 10.0, 100.0]",lovefield_integer_join2_1000_10000_100_10,2831,5,567.7324035465916,1.7613932087600737,1.6754929999588057,0.44747436543396407,15.041576000046916,1.4037979999557137,4986.504173999769,5001.59547800303,, +integer_join2,lovefield,[],1731457621312,"[10000.0, 100000.0, 10.0, 100.0]",lovefield_integer_join2_10000_100000_100_10,181,5,35.806182996524775,27.9281374419903,27.0123489999678,4.972349434533771,62.31642000004649,25.098981000017375,5054.992877000244,5058.029249001178,, +integer_join2,lovefield,[],1731457621312,"[100000.0, 100000.0, 10.0, 100.0]",lovefield_integer_join2_100000_100000_100_10,95,5,18.64527642035245,53.6328868210524,51.849907999974675,9.316673045320735,91.34037899994291,43.19020499999169,5095.124247999978,5096.6267990005435,, +integer_join2,lovefield,[],1731457621312,"[100000.0, 1000000.0, 10.0, 100.0]",lovefield_integer_join2_100000_1000000_100_10,15,5,2.7983208418341996,357.35716400001354,349.2073709999677,29.702453675909265,435.8085270000156,324.73264299996663,5360.357460000203,5360.636814000318,, +integer_join2,sqljs,[],1731457621312,"[1000.0, 10000.0, 10.0, 100.0]",sqljs_integer_join2_1000_10000_10_100,511,5,101.80172891433064,9.82301588258419,9.668838000041433,1.118518130155368,31.801172000006773,9.597944999928586,5019.561116000521,5022.795438002213,, +integer_join2,sqljs,[],1731457621312,"[10000.0, 100000.0, 10.0, 100.0]",sqljs_integer_join2_10000_100000_10_100,45,5,8.245313379266298,121.28101795555817,120.59070800000336,2.462585413248792,134.43840700003784,120.38470399996731,5457.6458080001175,5458.391812999616,, +integer_join2,sqljs,[],1731457621312,"[100000.0, 100000.0, 10.0, 100.0]",sqljs_integer_join2_100000_100000_10_100,40,5,7.866110460314491,127.12763252501027,126.89743300003465,0.8401176240915922,130.232047000085,126.47981400007848,5085.105301000411,5085.750140000018,, +integer_join2,sqljs,[],1731457621312,"[100000.0, 1000000.0, 10.0, 100.0]",sqljs_integer_join2_100000_1000000_10_100,3,3,0.4324583495132711,2312.3614126666603,2312.82763100008,28.491503222371197,2347.0207899999805,2277.2358169999206,6937.084237999981,6937.210754,, +integer_join2,arquero,[],1731457621312,"[1000.0, 10000.0, 10.0, 100.0]",arquero_integer_join2_1000_10000_100_10,3777,5,757.540774776588,1.320060956844095,1.2733299999963492,0.3068023069465298,16.226647000061348,1.2325229999842122,4985.870234000147,5001.840096003027,, +integer_join2,arquero,[],1731457621312,"[10000.0, 100000.0, 10.0, 100.0]",arquero_integer_join2_10000_100000_100_10,412,5,82.07301114351627,12.1842733203898,11.915749000036158,0.8271789112193103,16.44515499996487,11.678382999962196,5019.920608000597,5023.1344910003245,, +integer_join2,arquero,[],1731457621312,"[100000.0, 100000.0, 10.0, 100.0]",arquero_integer_join2_100000_100000_100_10,249,5,49.25710638867125,20.301639160638803,19.917946000001393,1.641908082432397,38.43888000003062,19.613339000032283,5055.108150999062,5065.253157000174,, +integer_join2,arquero,[],1731457621312,"[100000.0, 1000000.0, 10.0, 100.0]",arquero_integer_join2_100000_1000000_100_10,40,5,7.138507698556013,140.08530105000537,139.67243999999482,1.1817120314493192,145.3625030000694,139.0956180000212,5603.412042000215,5603.98126900068,, +integer_join2,duckdb,[sync],1731457621312,"[1000.0, 10000.0, 10.0, 100.0]",duckdb_sync_integer_join2_1000_10000_10_100,7248,6,1215.4339477154158,0.8227514147351609,0.7265050000278279,0.5145350192576045,14.7757429999765,0.683945000055246,5963.302254000446,5999.356270995806,, +integer_join2,duckdb,[sync],1731457621312,"[10000.0, 100000.0, 10.0, 100.0]",duckdb_sync_integer_join2_10000_100000_10_100,5207,5,1046.5417205900924,0.9555280791253599,0.9296630000462756,0.1487747823550583,3.0912930000340566,0.8939960000570863,4975.434708005749,5000.677938005887,, +integer_join2,duckdb,[sync],1731457621312,"[100000.0, 100000.0, 10.0, 100.0]",duckdb_sync_integer_join2_100000_100000_10_100,4053,5,813.5516286024044,1.2291782904029018,1.1886870000744238,0.192978300897968,6.916643999982625,1.1424199999310076,4981.859611002961,5001.433241999126,, +integer_join2,duckdb,[sync],1731457621312,"[100000.0, 1000000.0, 10.0, 100.0]",duckdb_sync_integer_join2_100000_1000000_10_100,1307,5,261.39053306224434,3.8256932578421736,3.788503999938257,0.19166163288060423,7.046562000061385,3.7012920000124723,5000.181087999721,5006.836829002015,, +tpch,arquero,[],1731458217574,"[0.01, 1.0]",arquero_tpch_001_q1,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q1` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 2.0]",arquero_tpch_001_q2,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q2` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 3.0]",arquero_tpch_001_q3,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q3` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 4.0]",arquero_tpch_001_q4,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q4` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 5.0]",arquero_tpch_001_q5,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q5` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 6.0]",arquero_tpch_001_q6,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q6` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 7.0]",arquero_tpch_001_q7,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q7` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 8.0]",arquero_tpch_001_q8,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q8` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 9.0]",arquero_tpch_001_q9,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q9` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 10.0]",arquero_tpch_001_q10,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q10` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 11.0]",arquero_tpch_001_q11,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q11` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 12.0]",arquero_tpch_001_q12,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q12` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 13.0]",arquero_tpch_001_q13,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q13` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 14.0]",arquero_tpch_001_q14,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q14` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 15.0]",arquero_tpch_001_q15,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q15` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 16.0]",arquero_tpch_001_q16,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q16` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 17.0]",arquero_tpch_001_q17,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q17` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 18.0]",arquero_tpch_001_q18,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q18` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 19.0]",arquero_tpch_001_q19,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q19` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 20.0]",arquero_tpch_001_q20,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q20` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 21.0]",arquero_tpch_001_q21,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q21` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458217574,"[0.01, 22.0]",arquero_tpch_001_q22,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_001_q22` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,sqljs,[],1731459160865,"[0.5, 1.0]",sqljs_tpch_05_q1,1,1,0.1492844697508882,6698.620436999947,6698.620436999947,0.0,6698.620436999947,6698.620436999947,6698.620436999947,6698.755278000142,, +tpch,sqljs,[],1731459160865,"[0.5, 2.0]",sqljs_tpch_05_q2,35,5,6.74502859479002,148.25734034284417,147.65526999998838,1.6501982181695463,154.63814300019294,146.82727999985218,5189.006911999546,5190.234403999057,, +tpch,sqljs,[],1731459160865,"[0.5, 3.0]",sqljs_tpch_05_q3,5,5,0.9245578600574436,1081.5980731999502,1080.8735239999369,2.858791280078186,1087.1170540000312,1079.3222869997844,5407.990365999751,5408.13107800018,, +tpch,sqljs,[],1731459160865,"[0.5, 4.0]",sqljs_tpch_05_q4,25,5,4.082912308438418,244.92321275997907,242.56204400025308,4.7570790969507275,253.85355000011623,240.69684699969366,6123.080318999477,6123.689132999163,, +tpch,sqljs,[],1731459160865,"[0.5, 5.0]",sqljs_tpch_05_q5,5,5,0.8349410616089481,1197.6893292000518,1196.700069999788,8.284734542959951,1212.7574789999053,1187.7841610000469,5988.446646000259,5988.578962999862,, +tpch,sqljs,[],1731459160865,"[0.5, 6.0]",sqljs_tpch_05_q6,8,4,1.3722668191249443,728.7212560001062,729.0379070001654,1.0333246998777215,730.7815089998767,727.3248540000059,5829.77004800085,5829.974797999952,, +tpch,sqljs,[],1731459160865,"[0.5, 7.0]",sqljs_tpch_05_q7,3,3,0.5998632121119671,1667.0467196667257,1654.9724869998172,19.282499388880822,1694.2588650002144,1651.9088070001453,5001.140159000177,5001.362933999859,, +tpch,sqljs,[],1731459160865,"[0.5, 8.0]",sqljs_tpch_05_q8,2,2,0.3759261826581266,2660.0967054998036,2667.865122999996,7.7684175001922995,2667.865122999996,2652.3282879996113,5320.193410999607,5320.582676999271,, +tpch,sqljs,[],1731459160865,"[0.5, 9.0]",sqljs_tpch_05_q9,1,1,0.19453973997385074,5140.337907999754,5140.337907999754,0.0,5140.337907999754,5140.337907999754,5140.337907999754,5140.366710999981,, +tpch,sqljs,[],1731459160865,"[0.5, 10.0]",sqljs_tpch_05_q10,8,4,1.2793966484132595,781.6184302500915,776.9383459999226,15.244084040053574,821.6275770002976,773.3630180000328,6252.947442000732,6256.7424229993485,, +tpch,sqljs,[],1731459160865,"[0.5, 11.0]",sqljs_tpch_05_q11,15,5,2.5437936655697917,393.11364499997967,392.3832049998455,1.7891358479837791,397.18682700023055,391.07065699994564,5896.704674999695,5897.086043000221,, +tpch,sqljs,[],1731459160865,"[0.5, 12.0]",sqljs_tpch_05_q12,8,4,1.5496803309050744,645.2943746249657,642.0629859999754,6.816872916976424,661.6172099998221,640.1187459998764,5162.354996999726,5162.55237499997,, +tpch,sqljs,[],1731459160865,"[0.5, 13.0]",sqljs_tpch_05_q13,2,2,0.26262284350763054,3807.7418804999907,3813.802343999967,6.060463499976322,3813.802343999967,3801.6814170000143,7615.483760999981,7615.543032000307,, +tpch,sqljs,[],1731459160865,"[0.5, 14.0]",sqljs_tpch_05_q14,8,4,1.44193012533061,693.514881500043,687.0977250002325,18.259840537692867,741.3591930000111,682.980145000387,5548.119052000344,5548.315275999717,, +tpch,sqljs,[],1731459160865,"[0.5, 15.0]",sqljs_tpch_05_q15,4,4,0.7256969985533381,1377.9855807499262,1377.8299870002083,2.0484231065039746,1381.368233999703,1376.1368490001187,5511.942322999705,5512.039554999676,, +tpch,sqljs,[],1731459160865,"[0.5, 16.0]",sqljs_tpch_05_q16,20,5,3.6457257699916332,274.2938068000367,273.7199780000374,2.311743592285294,279.3652939996682,271.02124999975786,5485.876136000734,5486.461277998984,, +tpch,sqljs,[],1731459160865,"[0.5, 18.0]",sqljs_tpch_05_q18,8,4,1.2455858723500088,802.8350531251053,803.2797400001436,1.349546144016579,804.5825980002992,800.9453210001811,6422.680425000843,6422.8890119991265,, +tpch,sqljs,[],1731459160865,"[0.5, 19.0]",sqljs_tpch_05_q19,8,4,1.2589249731344085,794.3285114999744,794.9109319997951,0.963418291395451,795.6281599998474,792.9673510002904,6354.628091999795,6354.824009999167,, +tpch,sqljs,[],1731459160866,"[0.5, 21.0]",sqljs_tpch_05_q21,2,2,0.2124374688465014,4707.2675334997475,4710.275055999868,3.0075225001201034,4710.275055999868,4704.260010999627,9414.535066999495,9414.594047000166,, +tpch,arquero,[],1731458890417,"[0.25, 1.0]",arquero_tpch_025_q1,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q1` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 2.0]",arquero_tpch_025_q2,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q2` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 3.0]",arquero_tpch_025_q3,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q3` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 4.0]",arquero_tpch_025_q4,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q4` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 5.0]",arquero_tpch_025_q5,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q5` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 6.0]",arquero_tpch_025_q6,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q6` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 7.0]",arquero_tpch_025_q7,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q7` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 8.0]",arquero_tpch_025_q8,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q8` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 10.0]",arquero_tpch_025_q10,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q10` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 11.0]",arquero_tpch_025_q11,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q11` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 12.0]",arquero_tpch_025_q12,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q12` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 13.0]",arquero_tpch_025_q13,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q13` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 14.0]",arquero_tpch_025_q14,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q14` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 15.0]",arquero_tpch_025_q15,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q15` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 16.0]",arquero_tpch_025_q16,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q16` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 17.0]",arquero_tpch_025_q17,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q17` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 18.0]",arquero_tpch_025_q18,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q18` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 19.0]",arquero_tpch_025_q19,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q19` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 20.0]",arquero_tpch_025_q20,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q20` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458890417,"[0.25, 22.0]",arquero_tpch_025_q22,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_025_q22` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,lovefield,[],1731459354102,"[0.5, 1.0]",lovefield_tpch_05_q1,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_05_q1` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 3.0]",lovefield_tpch_05_q3,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_05_q3` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 4.0]",lovefield_tpch_05_q4,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_05_q4` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 5.0]",lovefield_tpch_05_q5,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_05_q5` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 6.0]",lovefield_tpch_05_q6,4,4,0.7804712971106048,1281.2770997500047,1069.6717099999078,390.1694594015736,1956.8539880001917,1041.7720559998415,5125.108399000019,5126.518106999807,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,lovefield,[],1731459354103,"[0.5, 7.0]",lovefield_tpch_05_q7,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_05_q7` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 8.0]",lovefield_tpch_05_q8,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_05_q8` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 10.0]",lovefield_tpch_05_q10,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_05_q10` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 12.0]",lovefield_tpch_05_q12,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_05_q12` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 13.0]",lovefield_tpch_05_q13,2,2,0.18198530040851704,5494.9493050000165,6052.027739000041,557.0784340000246,6052.027739000041,4937.870870999992,10989.898610000033,10989.969151000027,"", +tpch,lovefield,[],1731459354103,"[0.5, 14.0]",lovefield_tpch_05_q14,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",Benchmark `lovefield_tpch_05_q14` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731459354103,"[0.5, 16.0]",lovefield_tpch_05_q16,5,5,0.919074974779379,1088.0505154000596,1100.4499739999883,34.81238249928015,1139.9666130002588,1047.1445280001499,5440.252577000298,5440.381438000593,"", +tpch,lovefield,[],1731459354103,"[0.5, 19.0]",lovefield_tpch_05_q19,1,1,0.1527969258471129,6544.634287999943,6544.634287999943,0.0,6544.634287999943,6544.634287999943,6544.634287999943,6544.6556379999965,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,arquero,[],1731458570714,"[0.1, 1.0]",arquero_tpch_01_q1,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q1` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 2.0]",arquero_tpch_01_q2,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q2` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 3.0]",arquero_tpch_01_q3,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q3` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 4.0]",arquero_tpch_01_q4,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q4` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 5.0]",arquero_tpch_01_q5,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q5` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 6.0]",arquero_tpch_01_q6,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q6` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 7.0]",arquero_tpch_01_q7,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q7` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 8.0]",arquero_tpch_01_q8,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q8` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 10.0]",arquero_tpch_01_q10,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q10` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 11.0]",arquero_tpch_01_q11,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q11` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 12.0]",arquero_tpch_01_q12,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q12` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 13.0]",arquero_tpch_01_q13,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q13` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 14.0]",arquero_tpch_01_q14,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q14` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 15.0]",arquero_tpch_01_q15,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q15` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 16.0]",arquero_tpch_01_q16,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q16` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 17.0]",arquero_tpch_01_q17,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q17` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 18.0]",arquero_tpch_01_q18,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q18` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 19.0]",arquero_tpch_01_q19,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q19` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 20.0]",arquero_tpch_01_q20,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q20` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731458570714,"[0.1, 22.0]",arquero_tpch_01_q22,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_01_q22` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 1.0]",arquero_tpch_05_q1,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q1` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 2.0]",arquero_tpch_05_q2,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q2` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 3.0]",arquero_tpch_05_q3,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q3` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 4.0]",arquero_tpch_05_q4,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q4` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 5.0]",arquero_tpch_05_q5,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q5` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 6.0]",arquero_tpch_05_q6,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q6` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 7.0]",arquero_tpch_05_q7,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q7` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 8.0]",arquero_tpch_05_q8,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q8` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 10.0]",arquero_tpch_05_q10,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q10` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 11.0]",arquero_tpch_05_q11,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q11` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 12.0]",arquero_tpch_05_q12,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q12` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 13.0]",arquero_tpch_05_q13,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q13` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 14.0]",arquero_tpch_05_q14,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q14` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 15.0]",arquero_tpch_05_q15,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q15` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 16.0]",arquero_tpch_05_q16,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q16` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 17.0]",arquero_tpch_05_q17,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q17` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 18.0]",arquero_tpch_05_q18,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q18` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 19.0]",arquero_tpch_05_q19,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q19` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 20.0]",arquero_tpch_05_q20,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q20` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,arquero,[],1731459276200,"[0.5, 22.0]",arquero_tpch_05_q22,0,0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.,"Benchmark `arquero_tpch_05_q22` failed to run `before` callback: Unrecognized type: ""undefined""" +tpch,duckdb,[sync],1731458268673,"[0.1, 1.0]",duckdb_sync_tpch_01_q1,108,5,21.038262937481292,47.53244138889541,46.68448799988255,2.822342350720328,65.3829459999688,45.932727000210434,5133.503670000704,5135.505110998405,, +tpch,duckdb,[sync],1731458268673,"[0.1, 2.0]",duckdb_sync_tpch_01_q2,666,5,132.96554727543312,7.520745189192036,7.20435700006783,1.046967624162111,14.859370999969542,6.676542999921367,5008.816296001896,5014.7675550002605,, +tpch,duckdb,[sync],1731458268673,"[0.1, 3.0]",duckdb_sync_tpch_01_q3,500,5,99.5747783360263,10.042703752002213,9.931533999973908,0.5289151832561289,14.709906999953091,9.332215999951586,5021.351876001107,5026.054434001213,, +tpch,duckdb,[sync],1731458268673,"[0.1, 4.0]",duckdb_sync_tpch_01_q4,318,5,63.10872506838087,15.845669500001138,15.753988000098616,0.4585633591795492,20.73824299988337,15.37009199988097,5038.922901000362,5041.794912999263,, +tpch,duckdb,[sync],1731458268673,"[0.1, 5.0]",duckdb_sync_tpch_01_q5,492,5,97.73935429204788,10.231293292689172,10.11903000017628,0.4689634108911079,14.306180999847129,9.733269999967888,5033.796300003072,5037.545116998954,, +tpch,duckdb,[sync],1731458268673,"[0.1, 6.0]",duckdb_sync_tpch_01_q6,1021,5,203.9687151008308,4.902712651328198,4.833843000000343,0.3088754281570818,8.05075200018473,4.575241000158712,5005.6696170060895,5011.436411997536,, +tpch,duckdb,[sync],1731458268673,"[0.1, 7.0]",duckdb_sync_tpch_01_q7,303,5,60.26730835446113,16.59274368316762,16.487625000067055,0.8786606754948492,24.885305000003427,15.660272000124678,5027.601335999789,5030.289404997369,, +tpch,duckdb,[sync],1731458268673,"[0.1, 8.0]",duckdb_sync_tpch_01_q8,396,5,78.91180084614017,12.672375858583807,12.525617999956012,0.48990336897674863,16.51014499994926,12.03778800019063,5018.260839999188,5020.501760999672,, +tpch,duckdb,[sync],1731458268673,"[0.1, 9.0]",duckdb_sync_tpch_01_q9,189,5,37.359444858506286,26.766993026458536,26.548718000063673,0.9286767167469061,32.75284900004044,25.680909000104293,5058.961682000663,5060.719288998516,, +tpch,duckdb,[sync],1731458268673,"[0.1, 10.0]",duckdb_sync_tpch_01_q10,158,5,30.999915332165862,32.258152620255345,32.077622999902815,1.0758209610052807,38.70468600001186,30.329402999952435,5096.788114000345,5098.584701000946,, +tpch,duckdb,[sync],1731458268673,"[0.1, 11.0]",duckdb_sync_tpch_01_q11,1221,5,244.16963130446294,4.095513412776006,3.9899010001681745,0.4145486568286163,9.20388500019908,3.873424000106752,5000.621876999503,5007.489341998706,, +tpch,duckdb,[sync],1731458268673,"[0.1, 12.0]",duckdb_sync_tpch_01_q12,205,5,40.30110335961362,24.813216429258265,24.7810439998284,0.8461242933174125,33.86132000014186,23.549767999909818,5086.709367997944,5089.0383209995925,, +tpch,duckdb,[sync],1731458268673,"[0.1, 13.0]",duckdb_sync_tpch_01_q13,219,5,43.19223671589499,23.152308748854264,23.091753999935463,0.37212577578941564,25.634045000188053,22.60682800016366,5070.355615999084,5072.837080001365,, +tpch,duckdb,[sync],1731458268673,"[0.1, 14.0]",duckdb_sync_tpch_01_q14,757,5,150.89662407257032,6.6270534953722535,6.561586000025272,0.2888400716962072,8.952674999833107,6.210562000051141,5016.679495996796,5021.808080001734,, +tpch,duckdb,[sync],1731458268673,"[0.1, 15.0]",duckdb_sync_tpch_01_q15,531,5,105.76620806275892,9.454815657252512,9.394939000019804,0.711139049904947,14.1052830000408,8.368424999993294,5020.507114001084,5025.067352999467,, +tpch,duckdb,[sync],1731458268673,"[0.1, 16.0]",duckdb_sync_tpch_01_q16,595,5,118.65604557436076,8.42772060335778,8.291922000003979,0.5872493250087077,13.339195000007749,7.660023999866098,5014.49375899788,5019.942114000209,, +tpch,duckdb,[sync],1731458268673,"[0.1, 17.0]",duckdb_sync_tpch_01_q17,378,5,75.06934811057556,13.321016169302831,13.278081000084057,0.2856056726217407,16.499949000077322,12.892552000004798,5035.34411199647,5039.066626000451,, +tpch,duckdb,[sync],1731458268673,"[0.1, 18.0]",duckdb_sync_tpch_01_q18,212,5,41.86695635914959,23.885185047168118,23.65717100002803,1.1599727023393729,33.34660800010897,23.302128999959677,5063.659229999641,5065.721687999787,, +tpch,duckdb,[sync],1731458268673,"[0.1, 19.0]",duckdb_sync_tpch_01_q19,140,5,27.733041569896177,36.058071650009204,35.924775999970734,0.5848521907133403,39.71998200006783,35.42256800015457,5048.130031001288,5049.509026000742,, +tpch,duckdb,[sync],1731458268673,"[0.1, 20.0]",duckdb_sync_tpch_01_q20,367,5,72.84059372399646,13.72860858039055,13.467852000147104,1.113081057003158,17.413170999847353,12.052153000142425,5038.399349003332,5041.977355002891,, +tpch,duckdb,[sync],1731458268673,"[0.1, 21.0]",duckdb_sync_tpch_01_q21,119,5,23.23079275079171,43.04631403359749,42.60185500001535,1.9465055203654849,60.13898000004701,41.644309000112116,5122.511369998101,5123.713633000385,, +tpch,duckdb,[sync],1731458268673,"[0.1, 22.0]",duckdb_sync_tpch_01_q22,605,5,120.59239079705227,8.2923971685985,8.246955000096932,0.3357774697335301,12.555878999875858,7.9137140000239015,5016.900287002092,5022.163559998851,, +csv_sum,arquero,[],1731457945911,"[1000.0, 10.0]",arquero_csv_sum_1000,19140,6,3225.512677398143,0.3100282342733339,0.2866849999409169,0.10708342819611583,9.7749279999407,0.2752529999706894,5933.940403991612,5995.315362002584,, +csv_sum,arquero,[],1731457945911,"[10000.0, 100.0]",arquero_csv_sum_10000,2105,5,422.2148945637791,2.3684621572461877,2.2917230000020936,0.6261411583935704,24.204487000009976,2.247459000092931,4985.612841003225,5005.2228550009895,, +csv_sum,arquero,[],1731457945911,"[100000.0, 1000.0]",arquero_csv_sum_100000,192,5,38.196340382683346,26.180518604168658,25.702067999984138,2.5254325386529026,46.55212299991399,25.129609000054188,5026.6595720003825,5028.759247000213,, +csv_sum,arquero,[],1731457945911,"[1000000.0, 10000.0]",arquero_csv_sum_1000000,20,5,3.6499211796600792,273.9785192000039,267.4556520000333,12.41175597088167,304.1135119999526,262.40863399999216,5479.570384000079,5480.0201820000075,, +csv_sum,duckdb,[sync],1731457945911,"[1000.0, 10.0]",duckdb_sync_csv_sum_1000,2152,5,431.4146631282231,2.3179555204473536,2.1003449999261647,0.9403160865285816,24.873845000052825,1.9517589999595657,4988.240280002705,5002.195728993975,, +csv_sum,duckdb,[sync],1731457945911,"[10000.0, 100.0]",duckdb_sync_csv_sum_10000,826,5,164.9800779266331,6.061337905566402,5.979326999979094,0.36527234716620144,9.720471999957226,5.8170849999878556,5006.665109997848,5011.782118999399,, +csv_sum,duckdb,[sync],1731457945911,"[100000.0, 1000.0]",duckdb_sync_csv_sum_100000,270,5,53.35006446152593,18.74411980741209,18.538599999970756,1.2282471041965184,29.58896399999503,17.902234000037424,5060.912348001264,5063.686315999948,, +csv_sum,duckdb,[sync],1731457945911,"[1000000.0, 10000.0]",duckdb_sync_csv_sum_1000000,45,5,8.470226643908688,118.06059531112356,117.56210600002669,1.9335412792024438,129.88552800007164,117.08588899997994,5312.7267890005605,5313.253026999882,, +tpch,lovefield,[],1731458219955,"[0.01, 1.0]",lovefield_tpch_001_q1,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_001_q1` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 3.0]",lovefield_tpch_001_q3,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_001_q3` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 4.0]",lovefield_tpch_001_q4,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_001_q4` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 5.0]",lovefield_tpch_001_q5,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_001_q5` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 6.0]",lovefield_tpch_001_q6,363,5,71.93618509860465,13.901209782382484,13.81507600005716,3.1542145087027373,44.92734799999744,10.402589000063017,5046.139151004842,5050.9285209989175,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,lovefield,[],1731458219955,"[0.01, 7.0]",lovefield_tpch_001_q7,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_001_q7` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 8.0]",lovefield_tpch_001_q8,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_001_q8` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 9.0]",lovefield_tpch_001_q9,18,5,3.038270406992136,329.13462794445354,318.41067100013606,30.089921330233793,394.60440499987453,297.726769000059,5924.423303000163,5924.699359000428,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,lovefield,[],1731458219955,"[0.01, 10.0]",lovefield_tpch_001_q10,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_001_q10` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 12.0]",lovefield_tpch_001_q12,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.,Benchmark `lovefield_tpch_001_q12` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 13.0]",lovefield_tpch_001_q13,75,5,14.527976054044911,68.83271257330973,67.4882979998365,7.762958036454715,130.22136999992654,64.31985999993049,5162.4534429982305,5163.77534199832,"", +tpch,lovefield,[],1731458219955,"[0.01, 14.0]",lovefield_tpch_001_q14,1,1,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,"",Benchmark `lovefield_tpch_001_q14` failed to run `fn`: a.getTime is not a function +tpch,lovefield,[],1731458219955,"[0.01, 16.0]",lovefield_tpch_001_q16,512,5,102.09648819292094,9.794656189450961,9.67534099984914,1.1431801080776227,26.71719600004144,8.358244000002742,5014.863968998892,5020.981712001376,"", +tpch,lovefield,[],1731458219955,"[0.01, 19.0]",lovefield_tpch_001_q19,67,5,12.830435905667631,77.93967464178411,74.36416699993424,14.07081701580486,132.37206099997275,69.79834099998698,5221.958200999536,5222.908679999178,Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped., +tpch,sqljs,[],1731458380615,"[0.1, 1.0]",sqljs_tpch_01_q1,5,3,0.9957929091915518,1004.224865199998,940.4014240000397,128.45826590148212,1261.1205170000903,937.764053999912,5021.12432599999,5022.0122100000735,, +tpch,sqljs,[],1731458380615,"[0.1, 2.0]",sqljs_tpch_01_q2,173,5,34.26581348445865,29.183606000002097,28.888404000084847,1.1239175628606237,41.238309000153095,28.507333000190556,5048.763838000363,5053.031676999759,, +tpch,sqljs,[],1731458380615,"[0.1, 3.0]",sqljs_tpch_01_q3,25,5,4.656585680578466,214.74961883999407,214.3780029998161,0.877789137542694,216.96071100002155,213.78335699997842,5368.740470999852,5369.328506999882,, +tpch,sqljs,[],1731458380615,"[0.1, 4.0]",sqljs_tpch_01_q4,105,5,20.3870775905227,49.05067906666857,48.877083000028506,0.6415376291873729,53.633232000051066,48.521299000130966,5150.3213020002,5152.748469002312,, +tpch,sqljs,[],1731458380615,"[0.1, 5.0]",sqljs_tpch_01_q5,25,5,4.359282822006116,229.39553151997737,228.95744400005788,1.7043048968460386,234.25031900010072,226.73179399990477,5734.888287999434,5735.52054399997,, +tpch,sqljs,[],1731458380615,"[0.1, 6.0]",sqljs_tpch_01_q6,35,5,6.876580936639999,145.421105228584,145.32371200015768,0.6356922654193503,147.64847899996676,144.6628760001622,5089.73868300044,5090.542633000528,, +tpch,sqljs,[],1731458380615,"[0.1, 7.0]",sqljs_tpch_01_q7,20,5,3.3861464477149825,295.3209541999619,294.7784279999323,2.392003479605258,303.54458900005557,292.2934560000431,5906.419083999237,5906.907373999711,, +tpch,sqljs,[],1731458380615,"[0.1, 8.0]",sqljs_tpch_01_q8,12,4,2.3437175047230463,426.6725823333254,426.2587060001679,2.6529678454023946,432.62306199991144,423.4173399999272,5120.070987999905,5120.360399000114,, +tpch,sqljs,[],1731458380615,"[0.1, 9.0]",sqljs_tpch_01_q9,8,4,1.343626382767148,744.2545136249391,741.7546389999334,14.109988811709266,777.6498569999821,731.8808799998369,5954.036108999513,5954.225160999689,, +tpch,sqljs,[],1731458380615,"[0.1, 10.0]",sqljs_tpch_01_q10,35,5,6.614531520123631,151.18228659999025,149.97201399994083,2.1448302124557586,155.32368299993686,148.8332109998446,5291.380030999659,5292.311970999464,, +tpch,sqljs,[],1731458380615,"[0.1, 11.0]",sqljs_tpch_01_q11,70,5,13.100907579163538,76.33058961429965,76.22354199993424,0.5486840775509337,79.76727700000629,75.63797000003979,5343.141273000976,5344.7390970001,, +tpch,sqljs,[],1731458380615,"[0.1, 12.0]",sqljs_tpch_01_q12,40,5,7.644877896585223,130.80653655000498,130.68653999990784,0.7386410569566056,133.89564999984577,130.29920799983665,5232.261462000199,5233.063496000366,, +tpch,sqljs,[],1731458380615,"[0.1, 13.0]",sqljs_tpch_01_q13,10,5,1.7446305975586403,573.1872416999656,571.9100089999847,4.386994447108658,580.1921139999758,568.6305250001606,5731.872416999657,5734.042713999981,, +tpch,sqljs,[],1731458380615,"[0.1, 14.0]",sqljs_tpch_01_q14,40,5,7.361453125936744,135.84274502498448,135.52314499998465,1.176750140278998,140.17455699993297,134.57797300000675,5433.709800999379,5434.481893000659,, +tpch,sqljs,[],1731458380615,"[0.1, 15.0]",sqljs_tpch_01_q15,20,5,3.63414477887356,275.1679035500507,275.03223100001924,0.8563236108650683,276.9583730001468,273.87485400005244,5503.358071001014,5503.761332000373,, +tpch,sqljs,[],1731458380615,"[0.1, 16.0]",sqljs_tpch_01_q16,105,5,20.22563295040866,49.44221040952862,49.33566700015217,0.3931150892844126,51.3536600000225,49.072867000009865,5191.432093000505,5193.20789900003,, +tpch,sqljs,[],1731458380615,"[0.1, 17.0]",sqljs_tpch_01_q17,1,1,0.030729180581944016,32542.358144999947,32542.358144999947,0.0,32542.358144999947,32542.358144999947,32542.358144999947,32542.382310000015,, +tpch,sqljs,[],1731458380615,"[0.1, 18.0]",sqljs_tpch_01_q18,35,5,6.249400636724736,160.0153451714199,159.87989600002766,0.7210974039489396,162.08137099980377,158.8278149999678,5600.537080999697,5601.229355000192,, +tpch,sqljs,[],1731458380615,"[0.1, 19.0]",sqljs_tpch_01_q19,35,5,6.434425142248131,155.41403900001066,154.35725799994543,3.360890321380565,168.9802010001149,153.4075690000318,5439.491365000373,5440.177312999964,, +tpch,sqljs,[],1731458380615,"[0.1, 20.0]",sqljs_tpch_01_q20,1,1,0.022836545134338533,43789.46088899998,43789.46088899998,0.0,43789.46088899998,43789.46088899998,43789.46088899998,43789.48350000009,, +tpch,sqljs,[],1731458380615,"[0.1, 21.0]",sqljs_tpch_01_q21,6,3,1.0772754268661728,928.2677160000118,928.3374930000864,2.4095369208099333,933.1814640001394,925.8877340001054,5569.606296000071,5569.747868000064,, +tpch,sqljs,[],1731458380615,"[0.1, 22.0]",sqljs_tpch_01_q22,1,1,0.09773937060557346,10231.291584999999,10231.291584999999,0.0,10231.291584999999,10231.291584999999,10231.291584999999,10231.311892999802,, +tpch,duckdb,[sync],1731457994504,"[0.01, 1.0]",duckdb_sync_tpch_001_q1,818,5,163.4747069033944,6.117154261612784,5.807787999976426,0.9929608912735348,14.750989999854937,5.503500999882817,5003.8321859992575,5012.294842001516,, +tpch,duckdb,[sync],1731457994504,"[0.01, 2.0]",duckdb_sync_tpch_001_q2,1185,5,236.85186696841137,4.222048205908246,4.048760000150651,0.7597078853262941,15.49722299980931,3.5891429998446256,5003.127124001272,5012.658103997586,, +tpch,duckdb,[sync],1731457994504,"[0.01, 3.0]",duckdb_sync_tpch_001_q3,1994,5,399.2273470053637,2.5048384272797946,2.454808000009507,0.21853213631373522,5.918329000007361,2.36783599993214,4994.647823995911,5004.779566997662,, +tpch,duckdb,[sync],1731457994504,"[0.01, 4.0]",duckdb_sync_tpch_001_q4,1673,5,334.7291473420863,2.9874900585756894,2.947253999998793,0.1919983405522877,6.268916000146419,2.8684469999279827,4998.0708679971285,5005.3981290017255,, +tpch,duckdb,[sync],1731457994504,"[0.01, 5.0]",duckdb_sync_tpch_001_q5,1122,5,224.32167140349867,4.457884045457426,4.427413000026718,0.18430628987337214,8.781209000153467,4.340611000079662,5001.745899003232,5011.955548996106,, +tpch,duckdb,[sync],1731457994504,"[0.01, 6.0]",duckdb_sync_tpch_001_q6,5649,5,1134.4335994832807,0.8814971633910408,0.868187999818474,0.11641333230814008,4.429314999841154,0.8422900000587106,4979.5774759959895,5000.468255012995,, +tpch,duckdb,[sync],1731457994504,"[0.01, 7.0]",duckdb_sync_tpch_001_q7,1114,5,222.5834795607189,4.492696412031822,4.4219240001402795,0.5061901858223457,13.975431999890134,4.301750000100583,5004.863803003449,5010.401026000967,, +tpch,duckdb,[sync],1731457994504,"[0.01, 8.0]",duckdb_sync_tpch_001_q8,994,5,198.72599161864397,5.032054397388562,4.972981000086293,0.31718172757766716,10.064834000077099,4.776094000088051,5001.8620710042305,5007.303493000567,, +tpch,duckdb,[sync],1731457994505,"[0.01, 9.0]",duckdb_sync_tpch_001_q9,892,5,178.183289491909,5.612198556057123,5.557918000034988,0.2667646565159116,9.74810600001365,5.381558999884874,5006.081112002954,5010.949580991641,, +tpch,duckdb,[sync],1731457994505,"[0.01, 10.0]",duckdb_sync_tpch_001_q10,1037,5,207.16777536487237,4.82700554291689,4.790938999969512,0.20918563405478008,8.383493000175804,4.713115999940783,5005.604748004815,5011.0543630004395,, +tpch,duckdb,[sync],1731457994505,"[0.01, 11.0]",duckdb_sync_tpch_001_q11,2477,5,495.875371717914,2.01663574566245,1.983407000079751,0.3302174369041994,10.411555000115186,1.9251180000137538,4995.206742005888,5006.405548002105,, +tpch,duckdb,[sync],1731457994505,"[0.01, 12.0]",duckdb_sync_tpch_001_q12,1349,5,269.6186451167384,3.708942308374201,3.6653740000911057,0.3252982570876769,9.270887000020593,3.5910450001247227,5003.363173996797,5010.150876002386,, +tpch,duckdb,[sync],1731457994505,"[0.01, 13.0]",duckdb_sync_tpch_001_q13,1847,5,369.79390987123304,2.70420894802787,2.6866389999631792,0.1465068674575475,7.183674999978393,2.6311859998386353,4994.673927007476,5006.080051996978,, +tpch,duckdb,[sync],1731457994505,"[0.01, 14.0]",duckdb_sync_tpch_001_q14,3468,5,695.0995282031589,1.4386428984997481,1.4163709999993443,0.14925175436156163,4.270932999905199,1.3673000000417233,4989.213571997127,5003.3293270024005,, +tpch,duckdb,[sync],1731457994505,"[0.01, 15.0]",duckdb_sync_tpch_001_q15,2188,5,438.0926612200002,2.2826221220305323,2.263410000130534,0.18917303884823225,5.941465999931097,2.163643999956548,4994.377203002805,5004.649881999707,, +tpch,duckdb,[sync],1731457994505,"[0.01, 16.0]",duckdb_sync_tpch_001_q16,2309,5,462.76692474109393,2.160915023387797,2.1195809999480844,0.20459515905928383,6.249983000103384,2.0424979999661446,4989.552789002424,5003.4784909852315,, +tpch,duckdb,[sync],1731457994505,"[0.01, 17.0]",duckdb_sync_tpch_001_q17,4161,5,834.6179106217492,1.198153055755836,1.1844080002047122,0.134628920876001,5.891120000043884,1.1459759999997914,4985.514865000034,5003.242779996246,, +tpch,duckdb,[sync],1731457994505,"[0.01, 18.0]",duckdb_sync_tpch_001_q18,1253,5,250.54113130263624,3.9913605993583126,3.9489319999702275,0.30810819679082463,8.240712000057101,3.673909000121057,5001.174830995966,5008.948823000304,, +tpch,duckdb,[sync],1731457994505,"[0.01, 19.0]",duckdb_sync_tpch_001_q19,944,5,188.6229318448089,5.301582316739506,5.235140000004321,0.4571894412497839,12.49083699984476,5.129242000170052,5004.693707002094,5009.711061996408,, +tpch,duckdb,[sync],1731457994505,"[0.01, 20.0]",duckdb_sync_tpch_001_q20,1433,5,286.53372383246676,3.4899905903735418,3.4433900001458824,0.28029381826382294,8.643523999955505,3.3232449998613447,5001.156516005285,5007.976607999532,, +tpch,duckdb,[sync],1731457994505,"[0.01, 21.0]",duckdb_sync_tpch_001_q21,873,5,174.5518049201482,5.72895823367434,5.66437999997288,0.3527246601222834,12.150816000066698,5.56093699997291,5001.380537997698,5006.164513000753,, +tpch,duckdb,[sync],1731457994505,"[0.01, 22.0]",duckdb_sync_tpch_001_q22,2110,5,422.6501711278028,2.366022938856484,2.3379689999856055,0.1794038073574686,6.022359000053257,2.2698520000558347,4992.308400987182,5005.172281995416,, +tpch,sqljs,[],1731458780233,"[0.25, 1.0]",sqljs_tpch_025_q1,2,2,0.338725354568458,2952.244307999965,3304.9020819999278,352.65777399996296,3304.9020819999278,2599.586534000002,5904.48861599993,5904.66777900001,, +tpch,sqljs,[],1731458780233,"[0.25, 2.0]",sqljs_tpch_025_q2,70,5,13.563106344183614,73.72942264283276,73.38339799991809,1.3151598140405927,80.8531039999798,72.6762499997858,5161.059584998293,5162.971209001262,, +tpch,sqljs,[],1731458780233,"[0.25, 3.0]",sqljs_tpch_025_q3,10,5,1.844136177669681,542.2593039000174,541.408458000049,1.7774276858845237,545.764737999998,540.7318309999537,5422.593039000174,5422.8377060000785,, +tpch,sqljs,[],1731458780233,"[0.25, 4.0]",sqljs_tpch_025_q4,45,5,8.342117109931012,119.87364679998718,119.8418979998678,0.29548839803935817,120.57143699983135,119.33575400011614,5394.314105999423,5395.321942999726,, +tpch,sqljs,[],1731458780233,"[0.25, 5.0]",sqljs_tpch_025_q5,10,5,1.7027606210560313,587.2816105999751,580.1983819999732,21.02389080760483,650.0126910000108,577.6714500000235,5872.816105999751,5873.054214000469,, +tpch,sqljs,[],1731458780233,"[0.25, 6.0]",sqljs_tpch_025_q6,15,5,2.7374481945046187,365.30371680000485,364.49693699995987,1.6710172385817692,369.3014460001141,364.0248680000659,5479.555752000073,5479.9186590006575,, +tpch,sqljs,[],1731458780233,"[0.25, 7.0]",sqljs_tpch_025_q7,8,4,1.2639106977096892,791.1951388749876,791.7354439999908,3.411816832371434,796.9642809999641,784.9159599998966,6329.561110999901,6329.849739999743,, +tpch,sqljs,[],1731458780233,"[0.25, 8.0]",sqljs_tpch_025_q8,5,5,0.8138924365212338,1228.6635863999836,1225.8590969999786,10.356243891858519,1248.201487999875,1217.1511790000368,6143.317931999918,6143.4761960003525,, +tpch,sqljs,[],1731458780233,"[0.25, 9.0]",sqljs_tpch_025_q9,3,3,0.4395514749000396,2275.046398666765,2286.576749,17.327223760663284,2288.006535000168,2250.555912000127,6825.139196000295,6825.223203000147,, +tpch,sqljs,[],1731458780233,"[0.25, 10.0]",sqljs_tpch_025_q10,15,5,2.613298106446625,382.658219333319,382.0554239999037,1.9862909204324657,387.2445069998503,379.4271829999052,5739.873289999785,5740.455835000146,, +tpch,sqljs,[],1731458780233,"[0.25, 11.0]",sqljs_tpch_025_q11,30,5,5.28153675497561,189.33883193332392,189.08448900002986,0.6855316874281541,191.0826230000239,188.30443600006402,5680.164957999717,5680.86450900021,, +tpch,sqljs,[],1731458780233,"[0.25, 12.0]",sqljs_tpch_025_q12,16,4,3.109766566736684,321.56754487504077,319.69601100008003,6.972356393241109,348.42921700002626,318.76329399994574,5145.080718000652,5145.469755999977,, +tpch,sqljs,[],1731458780233,"[0.25, 13.0]",sqljs_tpch_025_q13,3,3,0.5958477183882815,1678.2811599999357,1678.582654000027,5.548811710316262,1684.9212739998475,1671.3395519999322,5034.843479999807,5034.94494899991,, +tpch,sqljs,[],1731458780233,"[0.25, 14.0]",sqljs_tpch_025_q14,15,5,2.916391280263745,342.8895178666028,342.135821999982,1.5797724470871357,347.07085899985395,341.4555339999497,5143.342767999042,5143.707837999798,, +tpch,sqljs,[],1731458780233,"[0.25, 15.0]",sqljs_tpch_025_q15,8,4,1.4641400004388316,682.9947953749506,683.7700489999261,1.2965063064539857,684.8996589998715,681.1711689999793,5463.958362999605,5464.151441999944,, +tpch,sqljs,[],1731458780233,"[0.25, 16.0]",sqljs_tpch_025_q16,44,5,8.032746954922347,124.49041474998971,123.99358499981463,3.0457217979853497,144.33120599994436,123.42849899991415,5477.578248999547,5478.595005999785,, +tpch,sqljs,[],1731458780233,"[0.25, 18.0]",sqljs_tpch_025_q18,15,5,2.4742572069798547,404.16170040002714,403.82622100017034,3.0985805112771634,414.56445299996994,401.1157259999309,6062.425506000407,6062.810324000195,, +tpch,sqljs,[],1731458780233,"[0.25, 19.0]",sqljs_tpch_025_q19,15,5,2.45834597267336,406.7775695999929,401.5130000000354,8.196847504717203,417.60204800008796,396.74766299990006,6101.663543999894,6102.018441000022,, +tpch,sqljs,[],1731458780233,"[0.25, 21.0]",sqljs_tpch_025_q21,3,3,0.4311370600525274,2319.4480193332615,2315.3754179999232,11.748479732014955,2335.434251999948,2307.5343879999127,6958.344057999784,6958.422345000086,, +tpch,duckdb,[sync],1731458666997,"[0.25, 1.0]",duckdb_sync_tpch_025_q1,45,5,8.629691380481946,115.87899913335633,114.39366400009021,4.535003545197857,139.42487900005654,112.60855499980971,5214.554961001035,5215.803103999933,, +tpch,duckdb,[sync],1731458666997,"[0.25, 2.0]",duckdb_sync_tpch_025_q2,378,5,75.3512639705735,13.271177513233544,12.778513999888673,1.6437957616694021,29.608068000059575,11.866124000167474,5016.5051000022795,5024.688096998259,, +tpch,duckdb,[sync],1731458666997,"[0.25, 3.0]",duckdb_sync_tpch_025_q3,214,5,42.18676413481963,23.70411716822413,23.54506799997762,0.7226820755617985,29.079206000082195,22.925511999987066,5072.681073999964,5074.936922000954,, +tpch,duckdb,[sync],1731458666997,"[0.25, 4.0]",duckdb_sync_tpch_025_q4,140,5,27.56074948029072,36.28348353571159,36.20276700006798,0.652704500794005,42.45285000000149,35.532405000180006,5079.687694999622,5082.970492001157,, +tpch,duckdb,[sync],1731458666997,"[0.25, 5.0]",duckdb_sync_tpch_025_q5,185,5,36.579512707219855,27.33770698379549,27.163912000134587,0.7300535070484394,31.588572999928147,26.36558400001377,5057.475792002166,5060.4186949997675,, +tpch,duckdb,[sync],1731458666997,"[0.25, 6.0]",duckdb_sync_tpch_025_q6,429,5,85.30747339525746,11.72230239860314,11.612460999982432,0.4843154296358438,15.45264899986796,11.097740000113845,5028.867729000747,5033.0367950021755,, +tpch,duckdb,[sync],1731458666997,"[0.25, 7.0]",duckdb_sync_tpch_025_q7,150,5,29.338668328410105,34.08470994000944,33.92786100017838,0.6389578074749457,38.001478999853134,33.2315360000357,5112.706491001416,5114.9462960017845,, +tpch,duckdb,[sync],1731458666997,"[0.25, 8.0]",duckdb_sync_tpch_025_q8,137,5,26.812878459365994,37.295510868609874,37.14565799990669,1.1806133157167844,46.576837999979034,36.167174000060186,5109.484988999553,5111.040969997644,, +tpch,duckdb,[sync],1731458666997,"[0.25, 9.0]",duckdb_sync_tpch_025_q9,70,5,13.515665893744599,73.98821544285332,74.00019799987786,2.6475607285971785,84.81023099995218,69.23117400007322,5179.175080999732,5179.966819999274,, +tpch,duckdb,[sync],1731458666997,"[0.25, 10.0]",duckdb_sync_tpch_025_q10,75,5,14.239086092930078,70.2292263333189,70.00318100000732,1.076740080829615,73.16770599992014,68.47400099993683,5267.191974998917,5268.3709940009285,, +tpch,duckdb,[sync],1731458666997,"[0.25, 11.0]",duckdb_sync_tpch_025_q11,671,5,134.06492200301577,7.4590727019369405,7.372401000000536,0.6692588436868815,12.554719999898225,6.646517999935895,5005.037782999687,5013.430234997766,, +tpch,duckdb,[sync],1731458666997,"[0.25, 12.0]",duckdb_sync_tpch_025_q12,89,5,17.22706219331005,58.04820280896992,57.36695699999109,2.0657002578645787,67.90989400004037,56.69524499983527,5166.2900499983225,5167.285624999553,, +tpch,duckdb,[sync],1731458666997,"[0.25, 13.0]",duckdb_sync_tpch_025_q13,86,5,16.85414384680261,59.33258960464547,59.045947999926284,1.2695036719291852,64.77555400016718,57.84933100012131,5102.60270599951,5104.201641001971,, +tpch,duckdb,[sync],1731458666997,"[0.25, 14.0]",duckdb_sync_tpch_025_q14,320,5,63.672170902648375,15.70544848437712,15.611146999988705,0.4393903579493951,17.880617999937385,15.118218000046909,5025.743515000679,5029.234221001156,, +tpch,duckdb,[sync],1731458666997,"[0.25, 15.0]",duckdb_sync_tpch_025_q15,233,5,46.303644745844096,21.596572051485282,21.552366000134498,0.4145371768112347,23.395130000077188,20.73250799998641,5032.0012879960705,5035.220955997938,, +tpch,duckdb,[sync],1731458666997,"[0.25, 16.0]",duckdb_sync_tpch_025_q16,286,5,56.71400676426124,17.632328538461817,17.459225999889895,0.7490716975146954,22.167070999974385,16.563215000089258,5042.845962000079,5045.7765400002245,, +tpch,duckdb,[sync],1731458666997,"[0.25, 17.0]",duckdb_sync_tpch_025_q17,161,5,31.860109047948374,31.387212093186317,31.33093599998392,0.3452444287048602,33.272392000071704,30.95474600000307,5053.341147002997,5054.857830999652,, +tpch,duckdb,[sync],1731458666997,"[0.25, 18.0]",duckdb_sync_tpch_025_q18,85,5,16.678674137999206,59.95680422352572,59.76746100001037,0.8723339431493404,62.84335600002669,58.4924540000502,5096.328358999686,5097.1487449985,, +tpch,duckdb,[sync],1731458666997,"[0.25, 19.0]",duckdb_sync_tpch_025_q19,60,5,11.555999772637893,86.53513496666758,86.20409399992786,1.700249095040564,97.04784299992025,84.93030899995938,5192.108098000055,5192.7058920001145,, +tpch,duckdb,[sync],1731458666997,"[0.25, 20.0]",duckdb_sync_tpch_025_q20,174,5,34.39043178843875,29.077855321844964,28.253871999913827,2.388505710596481,33.64085800014436,25.443520999979228,5059.546826001024,5061.296810000669,, +tpch,duckdb,[sync],1731458666997,"[0.25, 21.0]",duckdb_sync_tpch_025_q21,55,5,10.44614784843285,95.729068218197,95.5963360001333,2.5388567169440073,109.23213800019585,92.83325399993919,5265.098752000835,5265.649147999706,, +tpch,duckdb,[sync],1731458666997,"[0.25, 22.0]",duckdb_sync_tpch_025_q22,323,5,64.16444820932327,15.584954408673575,15.438421000028029,0.710110044012572,23.037902999902144,15.090110999997705,5033.940274001565,5036.67918600305,, +integer_join3,lovefield,[],1731457714952,"[10.0, 100.0, 1000.0, 10.0, 10.0, 10.0]",lovefield_integer_join3_10_100_1000_10_10_10,12696,6,2131.815563757559,0.4690837317264867,0.42158600001130253,0.15736720615073183,6.972978000063449,0.383053999976255,5955.487057999475,5998.1297129900195,, +integer_join3,lovefield,[],1731457714952,"[100.0, 1000.0, 10000.0, 10.0, 10.0, 100.0]",lovefield_integer_join3_100_1000_10000_100_10_10,1008,5,201.25708638257055,4.968769139880596,4.772423999966122,0.69501710037827,12.762907000025734,4.021223000017926,5008.519292999641,5016.188003997086,, +integer_join3,lovefield,[],1731457714952,"[1000.0, 10000.0, 100000.0, 10.0, 10.0, 100.0]",lovefield_integer_join3_1000_10000_100000_100_10_10,126,5,24.89099333202755,40.17517447619448,38.42983999999706,8.35868008349719,81.780434000073,31.992476999992505,5062.071984000504,5064.069354000618,, +integer_join3,lovefield,[],1731457714952,"[10000.0, 100000.0, 1000000.0, 10.0, 10.0, 100.0]",lovefield_integer_join3_10000_100000_1000000_100_10_10,15,5,2.45812232599615,406.81457933333394,396.4669870000798,36.2556161848235,504.5230730000185,378.81866399990395,6102.218690000009,6102.490146000171,, +integer_join3,sqljs,[],1731457714952,"[10.0, 100.0, 1000.0, 10.0, 10.0, 10.0]",sqljs_integer_join3_10_100_1000_10_10_10,3990,5,800.6424473774624,1.2489969814560062,1.1848800000734627,1.0366848463630913,64.78264899994247,1.1507160000037402,4983.497956009465,5000.705624998664,, +integer_join3,sqljs,[],1731457714952,"[100.0, 1000.0, 10000.0, 10.0, 10.0, 100.0]",sqljs_integer_join3_100_1000_10000_100_10_10,334,5,66.54158796563392,15.02819560778231,14.666490999981761,0.6674381015677653,18.767427000100724,14.49840799998492,5019.417332999292,5022.459567000507,, +integer_join3,sqljs,[],1731457714952,"[1000.0, 10000.0, 100000.0, 10.0, 10.0, 100.0]",sqljs_integer_join3_1000_10000_100000_100_10_10,39,5,7.241592465562426,138.0911732820543,135.7651509999996,8.67074888631851,187.2993570000399,134.92414100002497,5385.555758000119,5386.079015999916,, +integer_join3,sqljs,[],1731457714952,"[10000.0, 100000.0, 1000000.0, 10.0, 10.0, 100.0]",sqljs_integer_join3_10000_100000_1000000_100_10_10,3,3,0.41197525994303524,2427.330224000034,2430.310748000047,10.122139467655327,2437.9653040000703,2413.7146199999843,7281.990672000102,7282.076050999924,, +integer_join3,arquero,[],1731457714952,"[10.0, 100.0, 1000.0, 10.0, 10.0, 10.0]",arquero_integer_join3_10_100_1000_10_10_10,12311,6,2068.5808406633505,0.4834232147675316,0.45215300004929304,0.16924061905059448,12.631573999999091,0.42767499992623925,5951.423197003081,5997.712807999575,, +integer_join3,arquero,[],1731457714952,"[100.0, 1000.0, 10000.0, 10.0, 10.0, 100.0]",arquero_integer_join3_100_1000_10000_100_10_10,1184,5,236.63005295856672,4.226005900337171,4.121564000030048,0.36716795971702765,10.222099000005983,3.9665449999738485,5003.59098599921,5009.98010699905,, +integer_join3,arquero,[],1731457714952,"[1000.0, 10000.0, 100000.0, 10.0, 10.0, 100.0]",arquero_integer_join3_1000_10000_100000_100_10_10,302,5,59.88727191156925,16.698038966887992,16.554405000060797,0.7590773171984484,26.229171999963,16.24997100001201,5042.807768000173,5045.959996999125,, +integer_join3,arquero,[],1731457714952,"[10000.0, 100000.0, 1000000.0, 10.0, 10.0, 100.0]",arquero_integer_join3_10000_100000_1000000_100_10_10,35,5,6.472648465485379,154.4962630571365,153.9418940000469,1.6371895772511773,161.02158100006636,153.3051180000184,5407.369206999778,5407.891369000077,, +integer_join3,duckdb,[sync],1731457714952,"[10.0, 100.0, 1000.0, 10.0, 10.0, 10.0]",duckdb_sync_integer_join3_10_100_1000_10_10_10,6413,6,1075.3677502663065,0.929914440666793,0.8313100000377744,0.6095066510367049,15.122712000040337,0.7619699999922886,5963.541307996144,5998.953402005369,, +integer_join3,duckdb,[sync],1731457714952,"[100.0, 1000.0, 10000.0, 10.0, 10.0, 100.0]",duckdb_sync_integer_join3_100_1000_10000_100_10_10,307,5,60.888143323843444,16.42355876547817,16.657438999973238,2.1561006900616717,20.855599000002258,1.7386910000350326,5042.032541001798,5044.691314999596,, +integer_join3,duckdb,[sync],1731457714952,"[1000.0, 10000.0, 100000.0, 10.0, 10.0, 100.0]",duckdb_sync_integer_join3_1000_10000_100000_100_10_10,259,5,51.41790285864485,19.44847892278187,19.22632799996063,1.1712441390169763,31.089961000019684,18.55879699997604,5037.156041000504,5039.539944000309,, +integer_join3,duckdb,[sync],1731457714952,"[10000.0, 100000.0, 1000000.0, 10.0, 10.0, 100.0]",duckdb_sync_integer_join3_10000_100000_1000000_100_10_10,472,5,93.85148137564515,10.655132826273151,10.518027000012808,0.974533510018966,30.347252000006847,10.345847000018694,5029.222694000928,5033.79448900139,, diff --git a/data/benchmarks.json b/data/benchmarks.json new file mode 100644 index 000000000..81b4a67d1 --- /dev/null +++ b/data/benchmarks.json @@ -0,0 +1,406 @@ +{"benchmark":"integer_sum","system":"lovefield","tags":[],"timestamp":1731457878581,"parameters":[1000.0,10.0],"name":"lovefield_integer_sum_1000","cycles":15127,"samples":6,"hz":2538.944529761492,"meanTime":0.393864453625515,"medianTime":0.3584690000861883,"standardDeviation":0.11270901712196657,"maxTime":4.847907999996096,"minTime":0.34332099999301136,"runTime":5957.987589993165,"totalTime":5996.286444997415,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"lovefield","tags":[],"timestamp":1731457878581,"parameters":[10000.0,10.0],"name":"lovefield_integer_sum_10000","cycles":1103,"samples":5,"hz":220.23803025204555,"meanTime":4.5405418803263755,"medianTime":4.399490999989212,"standardDeviation":0.5102779459434997,"maxTime":8.964952999958768,"minTime":3.9550630000885576,"runTime":5008.217693999992,"totalTime":5014.828616999439,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"lovefield","tags":[],"timestamp":1731457878581,"parameters":[100000.0,10.0],"name":"lovefield_integer_sum_100000","cycles":50,"samples":5,"hz":9.618491493571366,"meanTime":103.96640685999067,"medianTime":102.08209399995394,"standardDeviation":13.061900864549557,"maxTime":148.14154700003564,"minTime":87.7705839999253,"runTime":5198.320342999534,"totalTime":5201.493060999899,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"sqljs","tags":[],"timestamp":1731457878581,"parameters":[1000.0,10.0],"name":"sqljs_integer_sum_1000","cycles":15251,"samples":6,"hz":2561.902977245235,"meanTime":0.39033484440354593,"medianTime":0.3743780000368133,"standardDeviation":0.09222627121151782,"maxTime":2.8713830000488088,"minTime":0.35740600002463907,"runTime":5952.996711998479,"totalTime":5997.49073600641,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"sqljs","tags":[],"timestamp":1731457878581,"parameters":[10000.0,10.0],"name":"sqljs_integer_sum_10000","cycles":988,"samples":5,"hz":197.4173565686786,"meanTime":5.065410748989107,"medianTime":5.4917399999685585,"standardDeviation":0.5329127292218402,"maxTime":7.322893999982625,"minTime":4.446269999956712,"runTime":5004.625820001238,"totalTime":5010.853723998996,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"sqljs","tags":[],"timestamp":1731457878581,"parameters":[100000.0,10.0],"name":"sqljs_integer_sum_100000","cycles":96,"samples":5,"hz":18.835599596379627,"meanTime":53.09095656249823,"medianTime":52.98944300005678,"standardDeviation":1.1505524658663016,"maxTime":57.14501900004689,"minTime":50.69659700000193,"runTime":5096.73182999983,"totalTime":5098.083015999757,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"arquero","tags":[],"timestamp":1731457878581,"parameters":[1000.0,10.0],"name":"arquero_integer_sum_1000","cycles":37050,"samples":6,"hz":6293.97684649451,"meanTime":0.15888205889364837,"medianTime":0.14704499999061227,"standardDeviation":0.07338472240284316,"maxTime":8.499808000051416,"minTime":0.14022099995054305,"runTime":5886.580282009672,"totalTime":5992.743913985672,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"arquero","tags":[],"timestamp":1731457878581,"parameters":[10000.0,10.0],"name":"arquero_integer_sum_10000","cycles":531,"samples":5,"hz":105.62250080166929,"meanTime":9.467679636536268,"medianTime":9.265372999943793,"standardDeviation":0.969053206657196,"maxTime":17.736636999994516,"minTime":9.116507000057027,"runTime":5027.337887000758,"totalTime":5030.179117999505,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"arquero","tags":[],"timestamp":1731457878581,"parameters":[100000.0,10.0],"name":"arquero_integer_sum_100000","cycles":5,"samples":5,"hz":0.8978784238850107,"meanTime":1113.7365298000163,"medianTime":1107.2870010000188,"standardDeviation":12.730895355654551,"maxTime":1139.065520000062,"minTime":1106.097945000045,"runTime":5568.682649000082,"totalTime":5568.823179000057,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"duckdb","tags":["sync"],"timestamp":1731457878581,"parameters":[1000.0,10.0],"name":"duckdb_sync_integer_sum_1000","cycles":15747,"samples":6,"hz":2657.994802125047,"meanTime":0.3762234595795701,"medianTime":0.33186899998690933,"standardDeviation":0.3218379078939756,"maxTime":13.78261500003282,"minTime":0.3165199999930337,"runTime":5924.3908179994905,"totalTime":5996.254814000451,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"duckdb","tags":["sync"],"timestamp":1731457878581,"parameters":[10000.0,10.0],"name":"duckdb_sync_integer_sum_10000","cycles":6129,"samples":5,"hz":1232.931167595399,"meanTime":0.811075286506312,"medianTime":0.7930480000795797,"standardDeviation":0.09676758177086732,"maxTime":4.615871999994852,"minTime":0.7645650000777096,"runTime":4971.080430997186,"totalTime":5000.015000996762,"warning":null,"errorMessage":null} +{"benchmark":"integer_sum","system":"duckdb","tags":["sync"],"timestamp":1731457878581,"parameters":[100000.0,10.0],"name":"duckdb_sync_integer_sum_100000","cycles":60,"samples":5,"hz":11.442725962892025,"meanTime":87.39176339999152,"medianTime":86.73348400008399,"standardDeviation":2.7321173790759077,"maxTime":98.92959600000177,"minTime":85.24373800004832,"runTime":5243.505803999491,"totalTime":5244.330985000939,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,1.0],"name":"lovefield_tpch_025_q1","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_025_q1` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,3.0],"name":"lovefield_tpch_025_q3","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_025_q3` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,4.0],"name":"lovefield_tpch_025_q4","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_025_q4` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,5.0],"name":"lovefield_tpch_025_q5","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_025_q5` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,6.0],"name":"lovefield_tpch_025_q6","cycles":10,"samples":4,"hz":1.9979028150006626,"meanTime":500.5248466000427,"medianTime":492.014364000177,"standardDeviation":23.303963252596677,"maxTime":562.6142609999515,"minTime":484.03867999999784,"runTime":5005.248466000427,"totalTime":5005.652872999432,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,7.0],"name":"lovefield_tpch_025_q7","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_025_q7` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,8.0],"name":"lovefield_tpch_025_q8","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_025_q8` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,10.0],"name":"lovefield_tpch_025_q10","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_025_q10` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,12.0],"name":"lovefield_tpch_025_q12","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_025_q12` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,13.0],"name":"lovefield_tpch_025_q13","cycles":3,"samples":3,"hz":0.4588391132236829,"meanTime":2179.4131563333017,"medianTime":2183.588399,"standardDeviation":29.288463938791043,"maxTime":2213.013721999945,"minTime":2141.63734799996,"runTime":6538.2394689999055,"totalTime":6538.310161000118,"warning":"","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,14.0],"name":"lovefield_tpch_025_q14","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"","errorMessage":"Benchmark `lovefield_tpch_025_q14` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,16.0],"name":"lovefield_tpch_025_q16","cycles":11,"samples":5,"hz":1.9816716643393242,"meanTime":504.6244632727255,"medianTime":506.5261569998693,"standardDeviation":21.84164910261864,"maxTime":561.4743770000059,"minTime":471.79495000001043,"runTime":5550.86909599998,"totalTime":5551.099917999934,"warning":"","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458928830,"parameters":[0.25,19.0],"name":"lovefield_tpch_025_q19","cycles":2,"samples":2,"hz":0.2887774488146861,"meanTime":3462.8742794999853,"medianTime":3873.7097920000087,"standardDeviation":410.83551250002347,"maxTime":3873.7097920000087,"minTime":3052.038766999962,"runTime":6925.748558999971,"totalTime":6925.786640000064,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"regex","system":"lovefield","tags":[],"timestamp":1731457810239,"parameters":[1000.0,20.0],"name":"lovefield_regex_1000","cycles":22442,"samples":6,"hz":3774.940539243144,"meanTime":0.26490483481906574,"medianTime":0.24322300008498132,"standardDeviation":0.06992986026709275,"maxTime":3.8846320000011474,"minTime":0.2226250000530854,"runTime":5944.994303009473,"totalTime":5995.0006970008835,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"lovefield","tags":[],"timestamp":1731457810239,"parameters":[10000.0,20.0],"name":"lovefield_regex_10000","cycles":1783,"samples":5,"hz":356.71248971156473,"meanTime":2.8033781514311236,"medianTime":2.710293999989517,"standardDeviation":0.31611586273107234,"maxTime":10.060645999968983,"minTime":2.595339999999851,"runTime":4998.423244001693,"totalTime":5004.864880000241,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"lovefield","tags":[],"timestamp":1731457810239,"parameters":[100000.0,20.0],"name":"lovefield_regex_100000","cycles":113,"samples":5,"hz":22.306302854466153,"meanTime":44.8303785044226,"medianTime":43.72143799997866,"standardDeviation":7.288054341714911,"maxTime":88.14164200006053,"minTime":37.049700000090525,"runTime":5065.832770999754,"totalTime":5067.687287998851,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"sqljs","tags":[],"timestamp":1731457810239,"parameters":[1000.0,20.0],"name":"sqljs_regex_1000","cycles":40370,"samples":6,"hz":6838.318772492524,"meanTime":0.1462347739655761,"medianTime":0.1401520000072196,"standardDeviation":0.048945882174160786,"maxTime":4.685470000025816,"minTime":0.13528200006112456,"runTime":5903.497824990307,"totalTime":5992.973524992005,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"sqljs","tags":[],"timestamp":1731457810239,"parameters":[10000.0,20.0],"name":"sqljs_regex_10000","cycles":4334,"samples":5,"hz":868.2653319813681,"meanTime":1.1517216721275918,"medianTime":1.1454750000266358,"standardDeviation":0.0594211719681098,"maxTime":3.1370880000758916,"minTime":1.1207709999289364,"runTime":4991.5617270009825,"totalTime":5001.4033700011205,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"sqljs","tags":[],"timestamp":1731457810239,"parameters":[100000.0,20.0],"name":"sqljs_regex_100000","cycles":425,"samples":5,"hz":84.47619558385118,"meanTime":11.837654301174094,"medianTime":11.809037999948487,"standardDeviation":0.17939356997413314,"maxTime":14.315922999987379,"minTime":11.688673999975435,"runTime":5031.00307799899,"totalTime":5033.397601001547,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"arquero","tags":[],"timestamp":1731457810239,"parameters":[1000.0,20.0],"name":"arquero_regex_1000","cycles":85108,"samples":6,"hz":14653.884157084052,"meanTime":0.06824129283952168,"medianTime":0.06322900007944554,"standardDeviation":0.03939215492946451,"maxTime":7.477971000014804,"minTime":0.061034000013023615,"runTime":5807.879950986011,"totalTime":5984.907818989246,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"arquero","tags":[],"timestamp":1731457810239,"parameters":[10000.0,20.0],"name":"arquero_regex_10000","cycles":13248,"samples":6,"hz":2221.4645491393185,"meanTime":0.4501534811291222,"medianTime":0.4315649999771267,"standardDeviation":0.11829099709618773,"maxTime":11.339680999983102,"minTime":0.42606399999931455,"runTime":5963.63331799861,"totalTime":5999.403381993878,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"arquero","tags":[],"timestamp":1731457810239,"parameters":[100000.0,20.0],"name":"arquero_regex_100000","cycles":1168,"samples":5,"hz":233.30739608269573,"meanTime":4.2861907371575585,"medianTime":4.118236999958754,"standardDeviation":1.0618683544212428,"maxTime":39.03035600006115,"minTime":4.0710690000560135,"runTime":5006.270781000028,"totalTime":5012.140316002537,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"duckdb","tags":["sync"],"timestamp":1731457810239,"parameters":[1000.0,20.0],"name":"duckdb_sync_regex_1000","cycles":19409,"samples":6,"hz":3287.2340041678776,"meanTime":0.304207123293353,"medianTime":0.27262900001369417,"standardDeviation":0.2197384039585599,"maxTime":13.230001999996603,"minTime":0.2618680000305176,"runTime":5904.356056000688,"totalTime":5992.624266004423,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"duckdb","tags":["sync"],"timestamp":1731457810239,"parameters":[10000.0,20.0],"name":"duckdb_sync_regex_10000","cycles":11768,"samples":6,"hz":1978.7574302920511,"meanTime":0.5053676538070696,"medianTime":0.49099500000011176,"standardDeviation":0.0789925013112137,"maxTime":2.716073999996297,"minTime":0.4686740000033751,"runTime":5947.166550001595,"totalTime":5996.8552150016185,"warning":null,"errorMessage":null} +{"benchmark":"regex","system":"duckdb","tags":["sync"],"timestamp":1731457810239,"parameters":[100000.0,20.0],"name":"duckdb_sync_regex_100000","cycles":2250,"samples":5,"hz":450.7432286166166,"meanTime":2.2185580093329773,"medianTime":2.1920129999052733,"standardDeviation":0.165133943715171,"maxTime":5.67764500004705,"minTime":2.1347959999693558,"runTime":4991.755520999199,"totalTime":5002.723595001153,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,1.0],"name":"sqljs_tpch_001_q1","cycles":59,"samples":5,"hz":11.664901363101501,"meanTime":85.72725725424539,"medianTime":84.08714099996723,"standardDeviation":8.412248309627401,"maxTime":148.63776700012386,"minTime":83.29558500018902,"runTime":5057.908178000478,"totalTime":5059.775338999461,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,2.0],"name":"sqljs_tpch_001_q2","cycles":2050,"samples":5,"hz":410.7874724368637,"meanTime":2.4343488229273977,"medianTime":2.415813999949023,"standardDeviation":0.0996565948767416,"maxTime":4.507092999992892,"minTime":2.36138299992308,"runTime":4990.415087001165,"totalTime":5004.135123996064,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,3.0],"name":"sqljs_tpch_001_q3","cycles":240,"samples":5,"hz":47.52915414552244,"meanTime":21.039717999993204,"medianTime":20.981272999895737,"standardDeviation":0.21285587267173028,"maxTime":22.77981700003147,"minTime":20.838217000011355,"runTime":5049.532319998369,"totalTime":5052.4663520006,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,4.0],"name":"sqljs_tpch_001_q4","cycles":1073,"samples":5,"hz":214.31370813301385,"meanTime":4.666057102513245,"medianTime":4.60271400003694,"standardDeviation":0.35444146465729315,"maxTime":10.226865000091493,"minTime":4.527883999980986,"runTime":5006.679270996712,"totalTime":5012.387153000105,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,5.0],"name":"sqljs_tpch_001_q5","cycles":254,"samples":5,"hz":50.31816919285371,"meanTime":19.87353705512048,"medianTime":19.78180899983272,"standardDeviation":0.4048931520380282,"maxTime":23.58130199997686,"minTime":19.580900999950245,"runTime":5047.878412000602,"totalTime":5050.42769900104,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,6.0],"name":"sqljs_tpch_001_q6","cycles":348,"samples":5,"hz":68.93513970023417,"meanTime":14.506389692521402,"medianTime":14.423913000151515,"standardDeviation":0.6141679129774714,"maxTime":22.573673999868333,"minTime":14.207651000004262,"runTime":5048.223612997448,"totalTime":5051.061227998696,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,7.0],"name":"sqljs_tpch_001_q7","cycles":207,"samples":5,"hz":40.91789863233612,"meanTime":24.439182690817162,"medianTime":24.321198999881744,"standardDeviation":0.6923549800554499,"maxTime":33.39302599988878,"minTime":24.113993000006303,"runTime":5058.910816999152,"totalTime":5061.275094998302,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,8.0],"name":"sqljs_tpch_001_q8","cycles":175,"samples":5,"hz":34.12747149543211,"meanTime":29.301907120011748,"medianTime":29.236349999904633,"standardDeviation":0.2750855342534992,"maxTime":31.397082000039518,"minTime":29.0400330000557,"runTime":5127.833746002056,"totalTime":5129.71923700138,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,9.0],"name":"sqljs_tpch_001_q9","cycles":120,"samples":5,"hz":23.240388123347834,"meanTime":43.0285412916739,"medianTime":42.9836780000478,"standardDeviation":0.35897217254181407,"maxTime":45.23719500005245,"minTime":42.70503899990581,"runTime":5163.424955000868,"totalTime":5165.012432998512,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,10.0],"name":"sqljs_tpch_001_q10","cycles":357,"samples":5,"hz":70.93218727244677,"meanTime":14.09797214005333,"medianTime":14.056582999881357,"standardDeviation":0.20653931046355503,"maxTime":16.044417000142857,"minTime":13.88052499992773,"runTime":5032.976053999038,"totalTime":5036.509898998309,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,11.0],"name":"sqljs_tpch_001_q11","cycles":801,"samples":5,"hz":159.79328703094234,"meanTime":6.258085171039508,"medianTime":6.244069000007585,"standardDeviation":0.11031936474887813,"maxTime":7.962043999927118,"minTime":6.134214000077918,"runTime":5012.726222002646,"totalTime":5016.602859998355,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,12.0],"name":"sqljs_tpch_001_q12","cycles":395,"samples":5,"hz":78.67420033360696,"meanTime":12.710647146836441,"medianTime":12.680637000128627,"standardDeviation":0.1776849230961575,"maxTime":14.644644999876618,"minTime":12.506361000007018,"runTime":5020.705623000395,"totalTime":5024.079474000959,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,13.0],"name":"sqljs_tpch_001_q13","cycles":125,"samples":5,"hz":24.66749827552321,"meanTime":40.53917380800098,"medianTime":40.46657000016421,"standardDeviation":0.36794891853861855,"maxTime":42.58586600003764,"minTime":40.02156000002287,"runTime":5067.396726000123,"totalTime":5069.165744999656,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,14.0],"name":"sqljs_tpch_001_q14","cycles":390,"samples":5,"hz":77.3665770262357,"meanTime":12.92547813845882,"medianTime":12.870674000121653,"standardDeviation":0.32503493277032464,"maxTime":17.870721000013873,"minTime":12.723640999989584,"runTime":5040.93647399894,"totalTime":5043.639103000285,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,15.0],"name":"sqljs_tpch_001_q15","cycles":193,"samples":5,"hz":38.001003908936234,"meanTime":26.31509426425554,"medianTime":26.256611000047997,"standardDeviation":0.3258625435343529,"maxTime":28.73585500009358,"minTime":25.92723900009878,"runTime":5078.813193001319,"totalTime":5081.11605100031,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,16.0],"name":"sqljs_tpch_001_q16","cycles":1155,"samples":5,"hz":230.74072278765638,"meanTime":4.333868716014509,"medianTime":4.320624999934807,"standardDeviation":0.08875672922887745,"maxTime":6.245995000004768,"minTime":4.281365999951959,"runTime":5005.618366996758,"totalTime":5010.066566002788,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,17.0],"name":"sqljs_tpch_001_q17","cycles":225,"samples":5,"hz":44.29968747793909,"meanTime":22.57352267999616,"medianTime":22.52825400000438,"standardDeviation":0.21682434696693378,"maxTime":24.176862000022084,"minTime":22.27989699994214,"runTime":5079.042602999136,"totalTime":5081.068842998939,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,18.0],"name":"sqljs_tpch_001_q18","cycles":308,"samples":5,"hz":61.44314923122188,"meanTime":16.275207448056022,"medianTime":16.096856999909505,"standardDeviation":0.9412042804850794,"maxTime":23.775451000081375,"minTime":15.91017199982889,"runTime":5012.763894001255,"totalTime":5015.271994998213,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,19.0],"name":"sqljs_tpch_001_q19","cycles":340,"samples":5,"hz":67.56489985506084,"meanTime":14.800584358819213,"medianTime":14.778786999871954,"standardDeviation":0.1389038445655432,"maxTime":16.380923999939114,"minTime":14.578633000142872,"runTime":5032.198681998532,"totalTime":5034.879940999439,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105541,"parameters":[0.01,20.0],"name":"sqljs_tpch_001_q20","cycles":15,"samples":5,"hz":2.9794178052036826,"meanTime":335.6360421332841,"medianTime":335.7310029999353,"standardDeviation":2.222206573360492,"maxTime":340.86610900005326,"minTime":332.4706339999102,"runTime":5034.540631999262,"totalTime":5034.780420999974,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105542,"parameters":[0.01,21.0],"name":"sqljs_tpch_001_q21","cycles":60,"samples":5,"hz":11.669389131261795,"meanTime":85.69428859999559,"medianTime":85.32073799986392,"standardDeviation":1.9829147192703274,"maxTime":99.79712600004859,"minTime":84.60414599999785,"runTime":5141.657315999735,"totalTime":5142.612523999065,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458105542,"parameters":[0.01,22.0],"name":"sqljs_tpch_001_q22","cycles":55,"samples":5,"hz":10.752460226193495,"meanTime":93.00197154544718,"medianTime":92.65410599997267,"standardDeviation":1.221020241832947,"maxTime":99.93159599998035,"minTime":91.89321699994616,"runTime":5115.1084349995945,"totalTime":5115.9395839995705,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,1.0],"name":"lovefield_tpch_01_q1","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_01_q1` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,3.0],"name":"lovefield_tpch_01_q3","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_01_q3` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,4.0],"name":"lovefield_tpch_01_q4","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_01_q4` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,5.0],"name":"lovefield_tpch_01_q5","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_01_q5` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,6.0],"name":"lovefield_tpch_01_q6","cycles":28,"samples":5,"hz":5.502586235674529,"meanTime":181.7327266071308,"medianTime":168.06512400018983,"standardDeviation":45.31724708135751,"maxTime":366.85272999992594,"minTime":158.7529430000577,"runTime":5088.516344999662,"totalTime":5089.5329209994525,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,7.0],"name":"lovefield_tpch_01_q7","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_01_q7` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,8.0],"name":"lovefield_tpch_01_q8","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_01_q8` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,9.0],"name":"lovefield_tpch_01_q9","cycles":2,"samples":2,"hz":0.2255217406765346,"meanTime":4434.162298500072,"medianTime":4522.199635999976,"standardDeviation":88.03733749990351,"maxTime":4522.199635999976,"minTime":4346.124961000169,"runTime":8868.324597000144,"totalTime":8868.362967999885,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,10.0],"name":"lovefield_tpch_01_q10","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_01_q10` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,12.0],"name":"lovefield_tpch_01_q12","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_01_q12` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,13.0],"name":"lovefield_tpch_01_q13","cycles":8,"samples":4,"hz":1.2125610930926163,"meanTime":824.7007146250398,"medianTime":822.5454649999738,"standardDeviation":18.326982977212126,"maxTime":862.8196370000951,"minTime":803.9210769999772,"runTime":6597.605717000319,"totalTime":6597.7538309998345,"warning":"","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,14.0],"name":"lovefield_tpch_01_q14","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"","errorMessage":"Benchmark `lovefield_tpch_01_q14` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,16.0],"name":"lovefield_tpch_01_q16","cycles":30,"samples":5,"hz":5.273659788673683,"meanTime":189.6216366000163,"medianTime":175.9695139999967,"standardDeviation":61.85339801118646,"maxTime":461.4514910001308,"minTime":138.87739500007592,"runTime":5688.649098000489,"totalTime":5689.21529100067,"warning":"","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458586831,"parameters":[0.1,19.0],"name":"lovefield_tpch_01_q19","cycles":6,"samples":4,"hz":0.9362631393393822,"meanTime":1068.0757983333508,"medianTime":1023.0323820000049,"standardDeviation":168.40851007413633,"maxTime":1438.083038000157,"minTime":946.6362489999738,"runTime":6408.454790000105,"totalTime":6408.547222999856,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,1.0],"name":"duckdb_sync_tpch_05_q1","cycles":25,"samples":5,"hz":4.353413210530607,"meanTime":229.70482047995552,"medianTime":226.21005100011826,"standardDeviation":8.963721639665481,"maxTime":260.6397190000862,"minTime":223.19541999977082,"runTime":5742.620511998888,"totalTime":5743.398762000725,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,2.0],"name":"duckdb_sync_tpch_05_q2","cycles":259,"samples":5,"hz":51.320935662799116,"meanTime":19.48522541698061,"medianTime":18.88075100025162,"standardDeviation":2.0071275217455544,"maxTime":35.18906800029799,"minTime":17.706712000072002,"runTime":5046.6733829979785,"totalTime":5049.890172997955,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,3.0],"name":"duckdb_sync_tpch_05_q3","cycles":114,"samples":5,"hz":22.186786261356527,"meanTime":45.071872429840525,"medianTime":44.649411000311375,"standardDeviation":2.4251825710972508,"maxTime":67.50609200028703,"minTime":42.869395999703556,"runTime":5138.19345700182,"totalTime":5139.975757000502,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,4.0],"name":"duckdb_sync_tpch_05_q4","cycles":74,"samples":5,"hz":14.064466526618476,"meanTime":71.10116818916632,"medianTime":70.46045899996534,"standardDeviation":2.6065387705154617,"maxTime":85.37721599964425,"minTime":68.95375100011006,"runTime":5261.486445998307,"totalTime":5262.420624002814,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,5.0],"name":"duckdb_sync_tpch_05_q5","cycles":100,"samples":5,"hz":19.80809313244549,"meanTime":50.484415300027464,"medianTime":50.43481200002134,"standardDeviation":0.84057845649008,"maxTime":53.11207999987528,"minTime":49.08952399995178,"runTime":5048.441530002747,"totalTime":5049.78491500346,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,6.0],"name":"duckdb_sync_tpch_05_q6","cycles":223,"samples":5,"hz":44.333083590838946,"meanTime":22.55651804483642,"medianTime":22.38653799984604,"standardDeviation":0.8734661485458727,"maxTime":27.668345000129193,"minTime":21.422350000124425,"runTime":5030.103523998521,"totalTime":5032.477027996909,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,7.0],"name":"duckdb_sync_tpch_05_q7","cycles":84,"samples":5,"hz":16.045428468067367,"meanTime":62.32304746427551,"medianTime":62.33890199987218,"standardDeviation":0.7851419851256207,"maxTime":64.68943400029093,"minTime":60.73402999993414,"runTime":5235.135986999143,"totalTime":5236.158119001426,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,8.0],"name":"duckdb_sync_tpch_05_q8","cycles":75,"samples":5,"hz":14.582510100000496,"meanTime":68.57529966668537,"medianTime":68.48788599995896,"standardDeviation":0.5740091371720173,"maxTime":70.24606299959123,"minTime":67.54857399966568,"runTime":5143.147475001402,"totalTime":5144.040129997302,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,9.0],"name":"duckdb_sync_tpch_05_q9","cycles":35,"samples":5,"hz":6.7602907940403805,"meanTime":147.92263091427407,"medianTime":147.2330709998496,"standardDeviation":2.7057219387190017,"maxTime":160.39865500014275,"minTime":143.89214399969205,"runTime":5177.2920819995925,"totalTime":5177.7209129994735,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,10.0],"name":"duckdb_sync_tpch_05_q10","cycles":40,"samples":5,"hz":7.520538254368511,"meanTime":132.96920595000265,"medianTime":132.78804300026968,"standardDeviation":1.5447316388483612,"maxTime":137.92083100043237,"minTime":130.73037800006568,"runTime":5318.768238000106,"totalTime":5319.586436001118,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,11.0],"name":"duckdb_sync_tpch_05_q11","cycles":441,"samples":5,"hz":87.82472500274233,"meanTime":11.386315185943083,"medianTime":11.272622999735177,"standardDeviation":0.4308102148150718,"maxTime":15.31996800005436,"minTime":10.907552999909967,"runTime":5021.364997000899,"totalTime":5026.485024997499,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,12.0],"name":"duckdb_sync_tpch_05_q12","cycles":45,"samples":5,"hz":8.869955025947997,"meanTime":112.74014322221693,"medianTime":112.29090399993584,"standardDeviation":1.978063473730581,"maxTime":124.7324059996754,"minTime":111.56735400017351,"runTime":5073.306444999762,"totalTime":5073.866907000542,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,13.0],"name":"duckdb_sync_tpch_05_q13","cycles":45,"samples":5,"hz":8.916485850274144,"meanTime":112.15180697777411,"medianTime":111.56823600037023,"standardDeviation":1.6254144856961756,"maxTime":119.58863800019026,"minTime":110.65895000007004,"runTime":5046.831313999835,"totalTime":5047.400242999662,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,14.0],"name":"duckdb_sync_tpch_05_q14","cycles":164,"samples":5,"hz":32.460799717756835,"meanTime":30.806388280476533,"medianTime":30.75769599992782,"standardDeviation":0.9837660602385004,"maxTime":39.87147399969399,"minTime":29.56906000012532,"runTime":5052.247677998152,"totalTime":5054.1350229987875,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,15.0],"name":"duckdb_sync_tpch_05_q15","cycles":110,"samples":5,"hz":21.364255163843435,"meanTime":46.80715486362407,"medianTime":46.83451299974695,"standardDeviation":0.6816056798424479,"maxTime":49.34719800017774,"minTime":44.948367999866605,"runTime":5148.787034998648,"totalTime":5150.682132001966,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,16.0],"name":"duckdb_sync_tpch_05_q16","cycles":162,"samples":5,"hz":31.666845717280555,"meanTime":31.578768814801826,"medianTime":31.443944999948144,"standardDeviation":1.082004640196832,"maxTime":38.357151000294834,"minTime":29.833430000115186,"runTime":5115.760547997896,"totalTime":5118.0240460038185,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,17.0],"name":"duckdb_sync_tpch_05_q17","cycles":80,"samples":5,"hz":15.731878279064421,"meanTime":63.56520068749669,"medianTime":63.04933600034565,"standardDeviation":2.3736877246720076,"maxTime":80.91733699990436,"minTime":62.53604200016707,"runTime":5085.216054999735,"totalTime":5086.0630920007825,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,18.0],"name":"duckdb_sync_tpch_05_q18","cycles":40,"samples":5,"hz":7.835233997246222,"meanTime":127.62860692500836,"medianTime":127.54333400027826,"standardDeviation":3.309141197619315,"maxTime":136.54129600012675,"minTime":123.33136499999091,"runTime":5105.144277000334,"totalTime":5105.596150999423,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,19.0],"name":"duckdb_sync_tpch_05_q19","cycles":30,"samples":5,"hz":5.8895521992892395,"meanTime":169.7921957667141,"medianTime":169.52815099991858,"standardDeviation":1.1847115045818506,"maxTime":172.78881800035015,"minTime":168.15129599999636,"runTime":5093.765873001423,"totalTime":5094.12500100024,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,20.0],"name":"duckdb_sync_tpch_05_q20","cycles":112,"samples":5,"hz":21.941040427580337,"meanTime":45.57669009820425,"medianTime":45.10007599974051,"standardDeviation":2.0804133096983026,"maxTime":60.28758399980143,"minTime":43.59000200033188,"runTime":5104.589290998876,"totalTime":5105.85071900161,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,21.0],"name":"duckdb_sync_tpch_05_q21","cycles":30,"samples":5,"hz":5.504335889594677,"meanTime":181.67495953333565,"medianTime":181.98722199955955,"standardDeviation":2.925912730231517,"maxTime":186.69006700022146,"minTime":176.37265699962154,"runTime":5450.248786000069,"totalTime":5450.60165300034,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731459046205,"parameters":[0.5,22.0],"name":"duckdb_sync_tpch_05_q22","cycles":169,"samples":5,"hz":33.3167031859147,"meanTime":30.014974603572718,"medianTime":29.966222000308335,"standardDeviation":0.5701507280341964,"maxTime":34.71178699983284,"minTime":28.79058100003749,"runTime":5072.530708003789,"totalTime":5074.641762001906,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[1000.0,1.0,1.0],"name":"lovefield_integer_sort_1000_1_1","cycles":13949,"samples":6,"hz":2340.379433610635,"meanTime":0.42728114323635286,"medianTime":0.37391799996839836,"standardDeviation":0.14634630710987653,"maxTime":7.003843999991659,"minTime":0.33580599998822436,"runTime":5960.144667003886,"totalTime":5997.732368994446,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[10000.0,1.0,1.0],"name":"lovefield_integer_sort_10000_1_1","cycles":677,"samples":5,"hz":135.11971118422164,"meanTime":7.400844711965112,"medianTime":7.255097999994177,"standardDeviation":0.8667726575327258,"maxTime":21.42613000003621,"minTime":6.202037000039127,"runTime":5010.371870000381,"totalTime":5019.294330999197,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[100000.0,1.0,1.0],"name":"lovefield_integer_sort_100000_1_1","cycles":30,"samples":5,"hz":5.645958551880278,"meanTime":177.11784293332602,"medianTime":176.443237999978,"standardDeviation":6.895421140542747,"maxTime":193.9039829999674,"minTime":161.39660400000867,"runTime":5313.535287999781,"totalTime":5314.355834999937,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[1000.0,2.0,2.0],"name":"lovefield_integer_sort_1000_2_2","cycles":14366,"samples":6,"hz":2409.5373295540953,"meanTime":0.41501743414992376,"medianTime":0.3600110000115819,"standardDeviation":0.19939380185096212,"maxTime":15.701232000021264,"minTime":0.3302960000000894,"runTime":5962.140458997805,"totalTime":5997.411162997887,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[10000.0,2.0,2.0],"name":"lovefield_integer_sort_10000_2_2","cycles":675,"samples":5,"hz":134.60199085064545,"meanTime":7.429310619258236,"medianTime":7.212680000055116,"standardDeviation":1.282787807125529,"maxTime":31.999955000006594,"minTime":6.3665429999819025,"runTime":5014.784667999309,"totalTime":5022.356700999779,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[100000.0,2.0,2.0],"name":"lovefield_integer_sort_100000_2_2","cycles":30,"samples":5,"hz":5.423653225115436,"meanTime":184.3775696000026,"medianTime":183.26338400004897,"standardDeviation":10.254812813618338,"maxTime":212.60537100001238,"minTime":162.65879000001587,"runTime":5531.327088000078,"totalTime":5531.926871999924,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[1000.0,1.0,1.0,100.0],"name":"lovefield_integer_sort_1000_1_1","cycles":14654,"samples":6,"hz":2459.9256919942927,"meanTime":0.40651634447920554,"medianTime":0.36075299995718524,"standardDeviation":0.12052874824353663,"maxTime":1.8319570000167005,"minTime":0.3338619999703951,"runTime":5957.090511998278,"totalTime":5997.339085002197,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[10000.0,1.0,1.0,100.0],"name":"lovefield_integer_sort_10000_1_1","cycles":730,"samples":5,"hz":145.38507871863027,"meanTime":6.878284957532274,"medianTime":6.744849000009708,"standardDeviation":0.5548415797191532,"maxTime":11.474369000003207,"minTime":6.170908000029158,"runTime":5021.14801899856,"totalTime":5028.728021001094,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"lovefield","tags":[],"timestamp":1731457424168,"parameters":[100000.0,1.0,1.0,100.0],"name":"lovefield_integer_sort_100000_1_1","cycles":30,"samples":5,"hz":5.683040466052042,"meanTime":175.96214666665765,"medianTime":174.539344000048,"standardDeviation":6.821971608542345,"maxTime":202.67009799997322,"minTime":166.70865899999626,"runTime":5278.864399999729,"totalTime":5279.3653830002295,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[1000.0,1.0,1.0],"name":"sqljs_integer_sort_1000_1_1","cycles":15764,"samples":6,"hz":2648.693266816281,"meanTime":0.3775446604287238,"medianTime":0.35563300002831966,"standardDeviation":0.1657221717060294,"maxTime":13.55937300005462,"minTime":0.3243050000164658,"runTime":5951.614026998403,"totalTime":5997.623768003425,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[10000.0,1.0,1.0],"name":"sqljs_integer_sort_10000_1_1","cycles":1125,"samples":5,"hz":224.70932765354402,"meanTime":4.450193547558453,"medianTime":4.300340000074357,"standardDeviation":0.418875341029741,"maxTime":6.869461000082083,"minTime":4.157343000057153,"runTime":5006.46774100326,"totalTime":5012.634241001797,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[100000.0,1.0,1.0],"name":"sqljs_integer_sort_100000_1_1","cycles":76,"samples":5,"hz":14.779438902549279,"meanTime":67.66156730263366,"medianTime":63.49153499992099,"standardDeviation":8.709606525118165,"maxTime":99.08813799999189,"minTime":61.37230200006161,"runTime":5142.279115000158,"totalTime":5143.917347000912,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[1000.0,2.0,2.0],"name":"sqljs_integer_sort_1000_2_2","cycles":13402,"samples":6,"hz":2247.901426775811,"meanTime":0.4448593644225364,"medianTime":0.4257740000030026,"standardDeviation":0.1238639470606733,"maxTime":9.464108999934979,"minTime":0.3972510000457987,"runTime":5962.005201990833,"totalTime":5998.882049992797,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[10000.0,2.0,2.0],"name":"sqljs_integer_sort_10000_2_2","cycles":974,"samples":5,"hz":194.40925012164755,"meanTime":5.143788165297026,"medianTime":4.97632999997586,"standardDeviation":0.3998605014660671,"maxTime":6.9554210000205785,"minTime":4.917278999928385,"runTime":5010.049672999303,"totalTime":5014.813272001804,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[100000.0,2.0,2.0],"name":"sqljs_integer_sort_100000_2_2","cycles":66,"samples":5,"hz":12.809319296819218,"meanTime":78.06816090909045,"medianTime":74.11057699995581,"standardDeviation":7.891569874095893,"maxTime":97.77016800001729,"minTime":71.33711500000209,"runTime":5152.498619999969,"totalTime":5153.777434000396,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[1000.0,1.0,1.0,100.0],"name":"sqljs_integer_topk_1000_1_1_100","cycles":25330,"samples":6,"hz":4279.44042042115,"meanTime":0.2336754112121948,"medianTime":0.22888700000476092,"standardDeviation":0.04469099764432341,"maxTime":5.464906999957748,"minTime":0.2212429998908192,"runTime":5918.998166004894,"totalTime":5995.597081003361,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[10000.0,1.0,1.0,100.0],"name":"sqljs_integer_topk_10000_1_1_100","cycles":4259,"samples":5,"hz":853.3918271663201,"meanTime":1.171794676450665,"medianTime":1.1666950000217184,"standardDeviation":0.052460346350374915,"maxTime":3.339888000045903,"minTime":1.1382019999437034,"runTime":4990.673527003382,"totalTime":5002.246959998389,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"sqljs","tags":[],"timestamp":1731457424168,"parameters":[100000.0,1.0,1.0,100.0],"name":"sqljs_integer_topk_100000_1_1_100","cycles":492,"samples":5,"hz":97.897318435236,"meanTime":10.21478438821131,"medianTime":10.195150000043213,"standardDeviation":0.20625312614338848,"maxTime":13.16376400005538,"minTime":9.968106999993324,"runTime":5025.673918999964,"totalTime":5029.601497001364,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[1000.0,1.0,1.0],"name":"arquero_integer_sort_1000_1_1","cycles":7680,"samples":5,"hz":1542.71216352039,"meanTime":0.6482090591144697,"medianTime":0.6362270000390708,"standardDeviation":0.13938534864361243,"maxTime":10.940060999942943,"minTime":0.6151179999578744,"runTime":4978.245573999127,"totalTime":5000.570241001551,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[10000.0,1.0,1.0],"name":"arquero_integer_sort_10000_1_1","cycles":274,"samples":5,"hz":54.32843268134653,"meanTime":18.406568175182173,"medianTime":18.30468300008215,"standardDeviation":0.6897078504657886,"maxTime":26.526395000051707,"minTime":18.191281999927014,"runTime":5043.399679999915,"totalTime":5046.3251239983365,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[100000.0,1.0,1.0],"name":"arquero_integer_sort_100000_1_1","cycles":16,"samples":4,"hz":3.103742071069791,"meanTime":322.19172118748975,"medianTime":321.18572399998084,"standardDeviation":2.3106562203484358,"maxTime":329.4117789999582,"minTime":320.3335129999323,"runTime":5155.067538999836,"totalTime":5155.429182000109,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[1000.0,2.0,2.0],"name":"arquero_integer_sort_1000_2_2","cycles":7282,"samples":5,"hz":1461.4271366088026,"meanTime":0.6842626463885636,"medianTime":0.6744069999549538,"standardDeviation":0.1314270074765827,"maxTime":10.648898999905214,"minTime":0.6615839999867603,"runTime":4982.80059100152,"totalTime":5000.881813999382,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[10000.0,2.0,2.0],"name":"arquero_integer_sort_10000_2_2","cycles":272,"samples":5,"hz":53.99175303246047,"meanTime":18.521347128677007,"medianTime":18.434994000010192,"standardDeviation":0.589460882261199,"maxTime":24.868946000002325,"minTime":18.166553000104614,"runTime":5037.806419000146,"totalTime":5040.79051000101,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[100000.0,2.0,2.0],"name":"arquero_integer_sort_100000_2_2","cycles":16,"samples":4,"hz":3.1118977955889506,"meanTime":321.34731462501077,"medianTime":320.81690700002946,"standardDeviation":1.5073183048636247,"maxTime":324.73439999995753,"minTime":320.00745800009463,"runTime":5141.557034000172,"totalTime":5141.927340999711,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[1000.0,1.0,1.0,100.0],"name":"arquero_integer_topk_1000_1_1_100","cycles":7992,"samples":6,"hz":1336.8714333940186,"meanTime":0.7480150858345614,"medianTime":0.738376000081189,"standardDeviation":0.07210557651884895,"maxTime":4.062462999951094,"minTime":0.7243199999211356,"runTime":5978.136565989815,"totalTime":6000.0478889988735,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[10000.0,1.0,1.0,100.0],"name":"arquero_integer_topk_10000_1_1_100","cycles":285,"samples":5,"hz":56.986852050489276,"meanTime":17.547907350874883,"medianTime":17.466724000056274,"standardDeviation":0.4258930939812205,"maxTime":21.54576599993743,"minTime":17.339717000024393,"runTime":5001.153594999341,"totalTime":5004.0139629993355,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"arquero","tags":[],"timestamp":1731457424168,"parameters":[100000.0,1.0,1.0,100.0],"name":"arquero_integer_topk_100000_1_1_100","cycles":20,"samples":5,"hz":3.2422850547720987,"meanTime":308.42445469998637,"medianTime":308.12099700002,"standardDeviation":1.4017449447313122,"maxTime":312.11467200005427,"minTime":306.50249300000723,"runTime":6168.489093999728,"totalTime":6168.91215400002,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[1000.0,1.0,1.0],"name":"duckdb_sync_integer_sort_1000_1_1","cycles":15486,"samples":6,"hz":2617.2451506597013,"meanTime":0.3820811358645332,"medianTime":0.340885000070557,"standardDeviation":0.22860243250799625,"maxTime":13.479160999995656,"minTime":0.3248760000569746,"runTime":5916.908469998161,"totalTime":5996.339741997304,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[10000.0,1.0,1.0],"name":"duckdb_sync_integer_sort_10000_1_1","cycles":336,"samples":5,"hz":66.51879591127611,"meanTime":15.0333448809539,"medianTime":15.450626999954693,"standardDeviation":2.5865913444273563,"maxTime":19.327164000016637,"minTime":1.3121260000625625,"runTime":5051.20388000051,"totalTime":5054.539655999164,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[100000.0,1.0,1.0],"name":"duckdb_sync_integer_sort_100000_1_1","cycles":214,"samples":5,"hz":42.24899477844981,"meanTime":23.669202196263278,"medianTime":23.537252999958582,"standardDeviation":0.8497563665840694,"maxTime":32.477090000058524,"minTime":22.765523999929428,"runTime":5065.209270000341,"totalTime":5067.7414210003335,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[1000.0,2.0,2.0],"name":"duckdb_sync_integer_sort_1000_2_2","cycles":11969,"samples":6,"hz":2014.6270552298424,"meanTime":0.49636978586387204,"medianTime":0.48336199996992946,"standardDeviation":0.14350380246809205,"maxTime":14.641976000042632,"minTime":0.46641899994574487,"runTime":5941.049967004685,"totalTime":5998.319468992413,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[10000.0,2.0,2.0],"name":"duckdb_sync_integer_sort_10000_2_2","cycles":309,"samples":5,"hz":61.13292835521074,"meanTime":16.357796475731295,"medianTime":16.37322799989488,"standardDeviation":0.8836587629966206,"maxTime":18.58506099996157,"minTime":2.238825000007637,"runTime":5054.55911100097,"totalTime":5057.661583000794,"warning":null,"errorMessage":null} +{"benchmark":"integer_sort","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[100000.0,2.0,2.0],"name":"duckdb_sync_integer_sort_100000_2_2","cycles":156,"samples":5,"hz":30.72956150551834,"meanTime":32.54195475000261,"medianTime":32.17200400005095,"standardDeviation":2.2074286142688404,"maxTime":54.305461000069045,"minTime":31.046526000020094,"runTime":5076.544941000408,"totalTime":5078.973020999692,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[1000.0,1.0,1.0,100.0],"name":"duckdb_sync_integer_topk_1000_1_1_100","cycles":17584,"samples":6,"hz":2975.1339025778134,"meanTime":0.33611932529609745,"medianTime":0.32605699996929616,"standardDeviation":0.09797536585607224,"maxTime":11.64588399999775,"minTime":0.31523800001014024,"runTime":5910.322216006578,"totalTime":5994.11762599519,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[10000.0,1.0,1.0,100.0],"name":"duckdb_sync_integer_topk_10000_1_1_100","cycles":7740,"samples":6,"hz":1297.5413451159109,"meanTime":0.7706883512915489,"medianTime":0.7627960001118481,"standardDeviation":0.0471616653751784,"maxTime":2.045464000082575,"minTime":0.7421270000049844,"runTime":5965.127838996588,"totalTime":5999.88053299312,"warning":null,"errorMessage":null} +{"benchmark":"integer_topk","system":"duckdb","tags":["sync"],"timestamp":1731457424168,"parameters":[100000.0,1.0,1.0,100.0],"name":"duckdb_sync_integer_topk_100000_1_1_100","cycles":2909,"samples":5,"hz":582.9085656002072,"meanTime":1.7155349209362254,"medianTime":1.6906319999834523,"standardDeviation":0.13125594155973627,"maxTime":3.7733749999897555,"minTime":1.6503970000194386,"runTime":4990.491085003479,"totalTime":5003.16737299785,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"lovefield","tags":[],"timestamp":1731457621312,"parameters":[1000.0,10000.0,10.0,100.0],"name":"lovefield_integer_join2_1000_10000_100_10","cycles":2831,"samples":5,"hz":567.7324035465916,"meanTime":1.7613932087600737,"medianTime":1.6754929999588057,"standardDeviation":0.44747436543396407,"maxTime":15.041576000046916,"minTime":1.4037979999557137,"runTime":4986.504173999769,"totalTime":5001.59547800303,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"lovefield","tags":[],"timestamp":1731457621312,"parameters":[10000.0,100000.0,10.0,100.0],"name":"lovefield_integer_join2_10000_100000_100_10","cycles":181,"samples":5,"hz":35.806182996524775,"meanTime":27.9281374419903,"medianTime":27.0123489999678,"standardDeviation":4.972349434533771,"maxTime":62.31642000004649,"minTime":25.098981000017375,"runTime":5054.992877000244,"totalTime":5058.029249001178,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"lovefield","tags":[],"timestamp":1731457621312,"parameters":[100000.0,100000.0,10.0,100.0],"name":"lovefield_integer_join2_100000_100000_100_10","cycles":95,"samples":5,"hz":18.64527642035245,"meanTime":53.6328868210524,"medianTime":51.849907999974675,"standardDeviation":9.316673045320735,"maxTime":91.34037899994291,"minTime":43.19020499999169,"runTime":5095.124247999978,"totalTime":5096.6267990005435,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"lovefield","tags":[],"timestamp":1731457621312,"parameters":[100000.0,1000000.0,10.0,100.0],"name":"lovefield_integer_join2_100000_1000000_100_10","cycles":15,"samples":5,"hz":2.7983208418341996,"meanTime":357.35716400001354,"medianTime":349.2073709999677,"standardDeviation":29.702453675909265,"maxTime":435.8085270000156,"minTime":324.73264299996663,"runTime":5360.357460000203,"totalTime":5360.636814000318,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"sqljs","tags":[],"timestamp":1731457621312,"parameters":[1000.0,10000.0,10.0,100.0],"name":"sqljs_integer_join2_1000_10000_10_100","cycles":511,"samples":5,"hz":101.80172891433064,"meanTime":9.82301588258419,"medianTime":9.668838000041433,"standardDeviation":1.118518130155368,"maxTime":31.801172000006773,"minTime":9.597944999928586,"runTime":5019.561116000521,"totalTime":5022.795438002213,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"sqljs","tags":[],"timestamp":1731457621312,"parameters":[10000.0,100000.0,10.0,100.0],"name":"sqljs_integer_join2_10000_100000_10_100","cycles":45,"samples":5,"hz":8.245313379266298,"meanTime":121.28101795555817,"medianTime":120.59070800000336,"standardDeviation":2.462585413248792,"maxTime":134.43840700003784,"minTime":120.38470399996731,"runTime":5457.6458080001175,"totalTime":5458.391812999616,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"sqljs","tags":[],"timestamp":1731457621312,"parameters":[100000.0,100000.0,10.0,100.0],"name":"sqljs_integer_join2_100000_100000_10_100","cycles":40,"samples":5,"hz":7.866110460314491,"meanTime":127.12763252501027,"medianTime":126.89743300003465,"standardDeviation":0.8401176240915922,"maxTime":130.232047000085,"minTime":126.47981400007848,"runTime":5085.105301000411,"totalTime":5085.750140000018,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"sqljs","tags":[],"timestamp":1731457621312,"parameters":[100000.0,1000000.0,10.0,100.0],"name":"sqljs_integer_join2_100000_1000000_10_100","cycles":3,"samples":3,"hz":0.4324583495132711,"meanTime":2312.3614126666603,"medianTime":2312.82763100008,"standardDeviation":28.491503222371197,"maxTime":2347.0207899999805,"minTime":2277.2358169999206,"runTime":6937.084237999981,"totalTime":6937.210754,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"arquero","tags":[],"timestamp":1731457621312,"parameters":[1000.0,10000.0,10.0,100.0],"name":"arquero_integer_join2_1000_10000_100_10","cycles":3777,"samples":5,"hz":757.540774776588,"meanTime":1.320060956844095,"medianTime":1.2733299999963492,"standardDeviation":0.3068023069465298,"maxTime":16.226647000061348,"minTime":1.2325229999842122,"runTime":4985.870234000147,"totalTime":5001.840096003027,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"arquero","tags":[],"timestamp":1731457621312,"parameters":[10000.0,100000.0,10.0,100.0],"name":"arquero_integer_join2_10000_100000_100_10","cycles":412,"samples":5,"hz":82.07301114351627,"meanTime":12.1842733203898,"medianTime":11.915749000036158,"standardDeviation":0.8271789112193103,"maxTime":16.44515499996487,"minTime":11.678382999962196,"runTime":5019.920608000597,"totalTime":5023.1344910003245,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"arquero","tags":[],"timestamp":1731457621312,"parameters":[100000.0,100000.0,10.0,100.0],"name":"arquero_integer_join2_100000_100000_100_10","cycles":249,"samples":5,"hz":49.25710638867125,"meanTime":20.301639160638803,"medianTime":19.917946000001393,"standardDeviation":1.641908082432397,"maxTime":38.43888000003062,"minTime":19.613339000032283,"runTime":5055.108150999062,"totalTime":5065.253157000174,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"arquero","tags":[],"timestamp":1731457621312,"parameters":[100000.0,1000000.0,10.0,100.0],"name":"arquero_integer_join2_100000_1000000_100_10","cycles":40,"samples":5,"hz":7.138507698556013,"meanTime":140.08530105000537,"medianTime":139.67243999999482,"standardDeviation":1.1817120314493192,"maxTime":145.3625030000694,"minTime":139.0956180000212,"runTime":5603.412042000215,"totalTime":5603.98126900068,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"duckdb","tags":["sync"],"timestamp":1731457621312,"parameters":[1000.0,10000.0,10.0,100.0],"name":"duckdb_sync_integer_join2_1000_10000_10_100","cycles":7248,"samples":6,"hz":1215.4339477154158,"meanTime":0.8227514147351609,"medianTime":0.7265050000278279,"standardDeviation":0.5145350192576045,"maxTime":14.7757429999765,"minTime":0.683945000055246,"runTime":5963.302254000446,"totalTime":5999.356270995806,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"duckdb","tags":["sync"],"timestamp":1731457621312,"parameters":[10000.0,100000.0,10.0,100.0],"name":"duckdb_sync_integer_join2_10000_100000_10_100","cycles":5207,"samples":5,"hz":1046.5417205900924,"meanTime":0.9555280791253599,"medianTime":0.9296630000462756,"standardDeviation":0.1487747823550583,"maxTime":3.0912930000340566,"minTime":0.8939960000570863,"runTime":4975.434708005749,"totalTime":5000.677938005887,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"duckdb","tags":["sync"],"timestamp":1731457621312,"parameters":[100000.0,100000.0,10.0,100.0],"name":"duckdb_sync_integer_join2_100000_100000_10_100","cycles":4053,"samples":5,"hz":813.5516286024044,"meanTime":1.2291782904029018,"medianTime":1.1886870000744238,"standardDeviation":0.192978300897968,"maxTime":6.916643999982625,"minTime":1.1424199999310076,"runTime":4981.859611002961,"totalTime":5001.433241999126,"warning":null,"errorMessage":null} +{"benchmark":"integer_join2","system":"duckdb","tags":["sync"],"timestamp":1731457621312,"parameters":[100000.0,1000000.0,10.0,100.0],"name":"duckdb_sync_integer_join2_100000_1000000_10_100","cycles":1307,"samples":5,"hz":261.39053306224434,"meanTime":3.8256932578421736,"medianTime":3.788503999938257,"standardDeviation":0.19166163288060423,"maxTime":7.046562000061385,"minTime":3.7012920000124723,"runTime":5000.181087999721,"totalTime":5006.836829002015,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,1.0],"name":"arquero_tpch_001_q1","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q1` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,2.0],"name":"arquero_tpch_001_q2","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q2` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,3.0],"name":"arquero_tpch_001_q3","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q3` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,4.0],"name":"arquero_tpch_001_q4","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q4` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,5.0],"name":"arquero_tpch_001_q5","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q5` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,6.0],"name":"arquero_tpch_001_q6","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q6` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,7.0],"name":"arquero_tpch_001_q7","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q7` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,8.0],"name":"arquero_tpch_001_q8","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q8` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,9.0],"name":"arquero_tpch_001_q9","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q9` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,10.0],"name":"arquero_tpch_001_q10","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q10` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,11.0],"name":"arquero_tpch_001_q11","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q11` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,12.0],"name":"arquero_tpch_001_q12","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q12` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,13.0],"name":"arquero_tpch_001_q13","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q13` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,14.0],"name":"arquero_tpch_001_q14","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q14` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,15.0],"name":"arquero_tpch_001_q15","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q15` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,16.0],"name":"arquero_tpch_001_q16","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q16` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,17.0],"name":"arquero_tpch_001_q17","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q17` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,18.0],"name":"arquero_tpch_001_q18","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q18` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,19.0],"name":"arquero_tpch_001_q19","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q19` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,20.0],"name":"arquero_tpch_001_q20","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q20` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,21.0],"name":"arquero_tpch_001_q21","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q21` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458217574,"parameters":[0.01,22.0],"name":"arquero_tpch_001_q22","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_001_q22` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,1.0],"name":"sqljs_tpch_05_q1","cycles":1,"samples":1,"hz":0.1492844697508882,"meanTime":6698.620436999947,"medianTime":6698.620436999947,"standardDeviation":0.0,"maxTime":6698.620436999947,"minTime":6698.620436999947,"runTime":6698.620436999947,"totalTime":6698.755278000142,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,2.0],"name":"sqljs_tpch_05_q2","cycles":35,"samples":5,"hz":6.74502859479002,"meanTime":148.25734034284417,"medianTime":147.65526999998838,"standardDeviation":1.6501982181695463,"maxTime":154.63814300019294,"minTime":146.82727999985218,"runTime":5189.006911999546,"totalTime":5190.234403999057,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,3.0],"name":"sqljs_tpch_05_q3","cycles":5,"samples":5,"hz":0.9245578600574436,"meanTime":1081.5980731999502,"medianTime":1080.8735239999369,"standardDeviation":2.858791280078186,"maxTime":1087.1170540000312,"minTime":1079.3222869997844,"runTime":5407.990365999751,"totalTime":5408.13107800018,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,4.0],"name":"sqljs_tpch_05_q4","cycles":25,"samples":5,"hz":4.082912308438418,"meanTime":244.92321275997907,"medianTime":242.56204400025308,"standardDeviation":4.7570790969507275,"maxTime":253.85355000011623,"minTime":240.69684699969366,"runTime":6123.080318999477,"totalTime":6123.689132999163,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,5.0],"name":"sqljs_tpch_05_q5","cycles":5,"samples":5,"hz":0.8349410616089481,"meanTime":1197.6893292000518,"medianTime":1196.700069999788,"standardDeviation":8.284734542959951,"maxTime":1212.7574789999053,"minTime":1187.7841610000469,"runTime":5988.446646000259,"totalTime":5988.578962999862,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,6.0],"name":"sqljs_tpch_05_q6","cycles":8,"samples":4,"hz":1.3722668191249443,"meanTime":728.7212560001062,"medianTime":729.0379070001654,"standardDeviation":1.0333246998777215,"maxTime":730.7815089998767,"minTime":727.3248540000059,"runTime":5829.77004800085,"totalTime":5829.974797999952,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,7.0],"name":"sqljs_tpch_05_q7","cycles":3,"samples":3,"hz":0.5998632121119671,"meanTime":1667.0467196667257,"medianTime":1654.9724869998172,"standardDeviation":19.282499388880822,"maxTime":1694.2588650002144,"minTime":1651.9088070001453,"runTime":5001.140159000177,"totalTime":5001.362933999859,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,8.0],"name":"sqljs_tpch_05_q8","cycles":2,"samples":2,"hz":0.3759261826581266,"meanTime":2660.0967054998036,"medianTime":2667.865122999996,"standardDeviation":7.7684175001922995,"maxTime":2667.865122999996,"minTime":2652.3282879996113,"runTime":5320.193410999607,"totalTime":5320.582676999271,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,9.0],"name":"sqljs_tpch_05_q9","cycles":1,"samples":1,"hz":0.19453973997385074,"meanTime":5140.337907999754,"medianTime":5140.337907999754,"standardDeviation":0.0,"maxTime":5140.337907999754,"minTime":5140.337907999754,"runTime":5140.337907999754,"totalTime":5140.366710999981,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,10.0],"name":"sqljs_tpch_05_q10","cycles":8,"samples":4,"hz":1.2793966484132595,"meanTime":781.6184302500915,"medianTime":776.9383459999226,"standardDeviation":15.244084040053574,"maxTime":821.6275770002976,"minTime":773.3630180000328,"runTime":6252.947442000732,"totalTime":6256.7424229993485,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,11.0],"name":"sqljs_tpch_05_q11","cycles":15,"samples":5,"hz":2.5437936655697917,"meanTime":393.11364499997967,"medianTime":392.3832049998455,"standardDeviation":1.7891358479837791,"maxTime":397.18682700023055,"minTime":391.07065699994564,"runTime":5896.704674999695,"totalTime":5897.086043000221,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,12.0],"name":"sqljs_tpch_05_q12","cycles":8,"samples":4,"hz":1.5496803309050744,"meanTime":645.2943746249657,"medianTime":642.0629859999754,"standardDeviation":6.816872916976424,"maxTime":661.6172099998221,"minTime":640.1187459998764,"runTime":5162.354996999726,"totalTime":5162.55237499997,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,13.0],"name":"sqljs_tpch_05_q13","cycles":2,"samples":2,"hz":0.26262284350763054,"meanTime":3807.7418804999907,"medianTime":3813.802343999967,"standardDeviation":6.060463499976322,"maxTime":3813.802343999967,"minTime":3801.6814170000143,"runTime":7615.483760999981,"totalTime":7615.543032000307,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,14.0],"name":"sqljs_tpch_05_q14","cycles":8,"samples":4,"hz":1.44193012533061,"meanTime":693.514881500043,"medianTime":687.0977250002325,"standardDeviation":18.259840537692867,"maxTime":741.3591930000111,"minTime":682.980145000387,"runTime":5548.119052000344,"totalTime":5548.315275999717,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,15.0],"name":"sqljs_tpch_05_q15","cycles":4,"samples":4,"hz":0.7256969985533381,"meanTime":1377.9855807499262,"medianTime":1377.8299870002083,"standardDeviation":2.0484231065039746,"maxTime":1381.368233999703,"minTime":1376.1368490001187,"runTime":5511.942322999705,"totalTime":5512.039554999676,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,16.0],"name":"sqljs_tpch_05_q16","cycles":20,"samples":5,"hz":3.6457257699916332,"meanTime":274.2938068000367,"medianTime":273.7199780000374,"standardDeviation":2.311743592285294,"maxTime":279.3652939996682,"minTime":271.02124999975786,"runTime":5485.876136000734,"totalTime":5486.461277998984,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,18.0],"name":"sqljs_tpch_05_q18","cycles":8,"samples":4,"hz":1.2455858723500088,"meanTime":802.8350531251053,"medianTime":803.2797400001436,"standardDeviation":1.349546144016579,"maxTime":804.5825980002992,"minTime":800.9453210001811,"runTime":6422.680425000843,"totalTime":6422.8890119991265,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160865,"parameters":[0.5,19.0],"name":"sqljs_tpch_05_q19","cycles":8,"samples":4,"hz":1.2589249731344085,"meanTime":794.3285114999744,"medianTime":794.9109319997951,"standardDeviation":0.963418291395451,"maxTime":795.6281599998474,"minTime":792.9673510002904,"runTime":6354.628091999795,"totalTime":6354.824009999167,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731459160866,"parameters":[0.5,21.0],"name":"sqljs_tpch_05_q21","cycles":2,"samples":2,"hz":0.2124374688465014,"meanTime":4707.2675334997475,"medianTime":4710.275055999868,"standardDeviation":3.0075225001201034,"maxTime":4710.275055999868,"minTime":4704.260010999627,"runTime":9414.535066999495,"totalTime":9414.594047000166,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,1.0],"name":"arquero_tpch_025_q1","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q1` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,2.0],"name":"arquero_tpch_025_q2","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q2` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,3.0],"name":"arquero_tpch_025_q3","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q3` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,4.0],"name":"arquero_tpch_025_q4","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q4` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,5.0],"name":"arquero_tpch_025_q5","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q5` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,6.0],"name":"arquero_tpch_025_q6","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q6` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,7.0],"name":"arquero_tpch_025_q7","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q7` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,8.0],"name":"arquero_tpch_025_q8","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q8` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,10.0],"name":"arquero_tpch_025_q10","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q10` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,11.0],"name":"arquero_tpch_025_q11","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q11` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,12.0],"name":"arquero_tpch_025_q12","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q12` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,13.0],"name":"arquero_tpch_025_q13","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q13` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,14.0],"name":"arquero_tpch_025_q14","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q14` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,15.0],"name":"arquero_tpch_025_q15","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q15` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,16.0],"name":"arquero_tpch_025_q16","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q16` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,17.0],"name":"arquero_tpch_025_q17","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q17` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,18.0],"name":"arquero_tpch_025_q18","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q18` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,19.0],"name":"arquero_tpch_025_q19","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q19` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,20.0],"name":"arquero_tpch_025_q20","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q20` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458890417,"parameters":[0.25,22.0],"name":"arquero_tpch_025_q22","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_025_q22` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354102,"parameters":[0.5,1.0],"name":"lovefield_tpch_05_q1","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_05_q1` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,3.0],"name":"lovefield_tpch_05_q3","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_05_q3` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,4.0],"name":"lovefield_tpch_05_q4","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_05_q4` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,5.0],"name":"lovefield_tpch_05_q5","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_05_q5` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,6.0],"name":"lovefield_tpch_05_q6","cycles":4,"samples":4,"hz":0.7804712971106048,"meanTime":1281.2770997500047,"medianTime":1069.6717099999078,"standardDeviation":390.1694594015736,"maxTime":1956.8539880001917,"minTime":1041.7720559998415,"runTime":5125.108399000019,"totalTime":5126.518106999807,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,7.0],"name":"lovefield_tpch_05_q7","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_05_q7` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,8.0],"name":"lovefield_tpch_05_q8","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_05_q8` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,10.0],"name":"lovefield_tpch_05_q10","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_05_q10` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,12.0],"name":"lovefield_tpch_05_q12","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_05_q12` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,13.0],"name":"lovefield_tpch_05_q13","cycles":2,"samples":2,"hz":0.18198530040851704,"meanTime":5494.9493050000165,"medianTime":6052.027739000041,"standardDeviation":557.0784340000246,"maxTime":6052.027739000041,"minTime":4937.870870999992,"runTime":10989.898610000033,"totalTime":10989.969151000027,"warning":"","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,14.0],"name":"lovefield_tpch_05_q14","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"","errorMessage":"Benchmark `lovefield_tpch_05_q14` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,16.0],"name":"lovefield_tpch_05_q16","cycles":5,"samples":5,"hz":0.919074974779379,"meanTime":1088.0505154000596,"medianTime":1100.4499739999883,"standardDeviation":34.81238249928015,"maxTime":1139.9666130002588,"minTime":1047.1445280001499,"runTime":5440.252577000298,"totalTime":5440.381438000593,"warning":"","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731459354103,"parameters":[0.5,19.0],"name":"lovefield_tpch_05_q19","cycles":1,"samples":1,"hz":0.1527969258471129,"meanTime":6544.634287999943,"medianTime":6544.634287999943,"standardDeviation":0.0,"maxTime":6544.634287999943,"minTime":6544.634287999943,"runTime":6544.634287999943,"totalTime":6544.6556379999965,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,1.0],"name":"arquero_tpch_01_q1","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q1` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,2.0],"name":"arquero_tpch_01_q2","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q2` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,3.0],"name":"arquero_tpch_01_q3","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q3` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,4.0],"name":"arquero_tpch_01_q4","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q4` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,5.0],"name":"arquero_tpch_01_q5","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q5` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,6.0],"name":"arquero_tpch_01_q6","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q6` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,7.0],"name":"arquero_tpch_01_q7","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q7` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,8.0],"name":"arquero_tpch_01_q8","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q8` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,10.0],"name":"arquero_tpch_01_q10","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q10` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,11.0],"name":"arquero_tpch_01_q11","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q11` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,12.0],"name":"arquero_tpch_01_q12","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q12` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,13.0],"name":"arquero_tpch_01_q13","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q13` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,14.0],"name":"arquero_tpch_01_q14","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q14` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,15.0],"name":"arquero_tpch_01_q15","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q15` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,16.0],"name":"arquero_tpch_01_q16","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q16` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,17.0],"name":"arquero_tpch_01_q17","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q17` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,18.0],"name":"arquero_tpch_01_q18","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q18` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,19.0],"name":"arquero_tpch_01_q19","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q19` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,20.0],"name":"arquero_tpch_01_q20","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q20` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731458570714,"parameters":[0.1,22.0],"name":"arquero_tpch_01_q22","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_01_q22` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,1.0],"name":"arquero_tpch_05_q1","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q1` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,2.0],"name":"arquero_tpch_05_q2","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q2` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,3.0],"name":"arquero_tpch_05_q3","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q3` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,4.0],"name":"arquero_tpch_05_q4","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q4` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,5.0],"name":"arquero_tpch_05_q5","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q5` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,6.0],"name":"arquero_tpch_05_q6","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q6` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,7.0],"name":"arquero_tpch_05_q7","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q7` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,8.0],"name":"arquero_tpch_05_q8","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q8` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,10.0],"name":"arquero_tpch_05_q10","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q10` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,11.0],"name":"arquero_tpch_05_q11","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q11` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,12.0],"name":"arquero_tpch_05_q12","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q12` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,13.0],"name":"arquero_tpch_05_q13","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q13` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,14.0],"name":"arquero_tpch_05_q14","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q14` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,15.0],"name":"arquero_tpch_05_q15","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q15` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,16.0],"name":"arquero_tpch_05_q16","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q16` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,17.0],"name":"arquero_tpch_05_q17","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q17` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,18.0],"name":"arquero_tpch_05_q18","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q18` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,19.0],"name":"arquero_tpch_05_q19","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q19` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,20.0],"name":"arquero_tpch_05_q20","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q20` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"arquero","tags":[],"timestamp":1731459276200,"parameters":[0.5,22.0],"name":"arquero_tpch_05_q22","cycles":0,"samples":0,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Arquero does not implement join reordering and query unnesting. The plans were generated by a relational database and were manually migrated to the Arquero API.","errorMessage":"Benchmark `arquero_tpch_05_q22` failed to run `before` callback: Unrecognized type: \"undefined\""} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,1.0],"name":"duckdb_sync_tpch_01_q1","cycles":108,"samples":5,"hz":21.038262937481292,"meanTime":47.53244138889541,"medianTime":46.68448799988255,"standardDeviation":2.822342350720328,"maxTime":65.3829459999688,"minTime":45.932727000210434,"runTime":5133.503670000704,"totalTime":5135.505110998405,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,2.0],"name":"duckdb_sync_tpch_01_q2","cycles":666,"samples":5,"hz":132.96554727543312,"meanTime":7.520745189192036,"medianTime":7.20435700006783,"standardDeviation":1.046967624162111,"maxTime":14.859370999969542,"minTime":6.676542999921367,"runTime":5008.816296001896,"totalTime":5014.7675550002605,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,3.0],"name":"duckdb_sync_tpch_01_q3","cycles":500,"samples":5,"hz":99.5747783360263,"meanTime":10.042703752002213,"medianTime":9.931533999973908,"standardDeviation":0.5289151832561289,"maxTime":14.709906999953091,"minTime":9.332215999951586,"runTime":5021.351876001107,"totalTime":5026.054434001213,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,4.0],"name":"duckdb_sync_tpch_01_q4","cycles":318,"samples":5,"hz":63.10872506838087,"meanTime":15.845669500001138,"medianTime":15.753988000098616,"standardDeviation":0.4585633591795492,"maxTime":20.73824299988337,"minTime":15.37009199988097,"runTime":5038.922901000362,"totalTime":5041.794912999263,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,5.0],"name":"duckdb_sync_tpch_01_q5","cycles":492,"samples":5,"hz":97.73935429204788,"meanTime":10.231293292689172,"medianTime":10.11903000017628,"standardDeviation":0.4689634108911079,"maxTime":14.306180999847129,"minTime":9.733269999967888,"runTime":5033.796300003072,"totalTime":5037.545116998954,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,6.0],"name":"duckdb_sync_tpch_01_q6","cycles":1021,"samples":5,"hz":203.9687151008308,"meanTime":4.902712651328198,"medianTime":4.833843000000343,"standardDeviation":0.3088754281570818,"maxTime":8.05075200018473,"minTime":4.575241000158712,"runTime":5005.6696170060895,"totalTime":5011.436411997536,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,7.0],"name":"duckdb_sync_tpch_01_q7","cycles":303,"samples":5,"hz":60.26730835446113,"meanTime":16.59274368316762,"medianTime":16.487625000067055,"standardDeviation":0.8786606754948492,"maxTime":24.885305000003427,"minTime":15.660272000124678,"runTime":5027.601335999789,"totalTime":5030.289404997369,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,8.0],"name":"duckdb_sync_tpch_01_q8","cycles":396,"samples":5,"hz":78.91180084614017,"meanTime":12.672375858583807,"medianTime":12.525617999956012,"standardDeviation":0.48990336897674863,"maxTime":16.51014499994926,"minTime":12.03778800019063,"runTime":5018.260839999188,"totalTime":5020.501760999672,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,9.0],"name":"duckdb_sync_tpch_01_q9","cycles":189,"samples":5,"hz":37.359444858506286,"meanTime":26.766993026458536,"medianTime":26.548718000063673,"standardDeviation":0.9286767167469061,"maxTime":32.75284900004044,"minTime":25.680909000104293,"runTime":5058.961682000663,"totalTime":5060.719288998516,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,10.0],"name":"duckdb_sync_tpch_01_q10","cycles":158,"samples":5,"hz":30.999915332165862,"meanTime":32.258152620255345,"medianTime":32.077622999902815,"standardDeviation":1.0758209610052807,"maxTime":38.70468600001186,"minTime":30.329402999952435,"runTime":5096.788114000345,"totalTime":5098.584701000946,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,11.0],"name":"duckdb_sync_tpch_01_q11","cycles":1221,"samples":5,"hz":244.16963130446294,"meanTime":4.095513412776006,"medianTime":3.9899010001681745,"standardDeviation":0.4145486568286163,"maxTime":9.20388500019908,"minTime":3.873424000106752,"runTime":5000.621876999503,"totalTime":5007.489341998706,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,12.0],"name":"duckdb_sync_tpch_01_q12","cycles":205,"samples":5,"hz":40.30110335961362,"meanTime":24.813216429258265,"medianTime":24.7810439998284,"standardDeviation":0.8461242933174125,"maxTime":33.86132000014186,"minTime":23.549767999909818,"runTime":5086.709367997944,"totalTime":5089.0383209995925,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,13.0],"name":"duckdb_sync_tpch_01_q13","cycles":219,"samples":5,"hz":43.19223671589499,"meanTime":23.152308748854264,"medianTime":23.091753999935463,"standardDeviation":0.37212577578941564,"maxTime":25.634045000188053,"minTime":22.60682800016366,"runTime":5070.355615999084,"totalTime":5072.837080001365,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,14.0],"name":"duckdb_sync_tpch_01_q14","cycles":757,"samples":5,"hz":150.89662407257032,"meanTime":6.6270534953722535,"medianTime":6.561586000025272,"standardDeviation":0.2888400716962072,"maxTime":8.952674999833107,"minTime":6.210562000051141,"runTime":5016.679495996796,"totalTime":5021.808080001734,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,15.0],"name":"duckdb_sync_tpch_01_q15","cycles":531,"samples":5,"hz":105.76620806275892,"meanTime":9.454815657252512,"medianTime":9.394939000019804,"standardDeviation":0.711139049904947,"maxTime":14.1052830000408,"minTime":8.368424999993294,"runTime":5020.507114001084,"totalTime":5025.067352999467,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,16.0],"name":"duckdb_sync_tpch_01_q16","cycles":595,"samples":5,"hz":118.65604557436076,"meanTime":8.42772060335778,"medianTime":8.291922000003979,"standardDeviation":0.5872493250087077,"maxTime":13.339195000007749,"minTime":7.660023999866098,"runTime":5014.49375899788,"totalTime":5019.942114000209,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,17.0],"name":"duckdb_sync_tpch_01_q17","cycles":378,"samples":5,"hz":75.06934811057556,"meanTime":13.321016169302831,"medianTime":13.278081000084057,"standardDeviation":0.2856056726217407,"maxTime":16.499949000077322,"minTime":12.892552000004798,"runTime":5035.34411199647,"totalTime":5039.066626000451,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,18.0],"name":"duckdb_sync_tpch_01_q18","cycles":212,"samples":5,"hz":41.86695635914959,"meanTime":23.885185047168118,"medianTime":23.65717100002803,"standardDeviation":1.1599727023393729,"maxTime":33.34660800010897,"minTime":23.302128999959677,"runTime":5063.659229999641,"totalTime":5065.721687999787,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,19.0],"name":"duckdb_sync_tpch_01_q19","cycles":140,"samples":5,"hz":27.733041569896177,"meanTime":36.058071650009204,"medianTime":35.924775999970734,"standardDeviation":0.5848521907133403,"maxTime":39.71998200006783,"minTime":35.42256800015457,"runTime":5048.130031001288,"totalTime":5049.509026000742,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,20.0],"name":"duckdb_sync_tpch_01_q20","cycles":367,"samples":5,"hz":72.84059372399646,"meanTime":13.72860858039055,"medianTime":13.467852000147104,"standardDeviation":1.113081057003158,"maxTime":17.413170999847353,"minTime":12.052153000142425,"runTime":5038.399349003332,"totalTime":5041.977355002891,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,21.0],"name":"duckdb_sync_tpch_01_q21","cycles":119,"samples":5,"hz":23.23079275079171,"meanTime":43.04631403359749,"medianTime":42.60185500001535,"standardDeviation":1.9465055203654849,"maxTime":60.13898000004701,"minTime":41.644309000112116,"runTime":5122.511369998101,"totalTime":5123.713633000385,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458268673,"parameters":[0.1,22.0],"name":"duckdb_sync_tpch_01_q22","cycles":605,"samples":5,"hz":120.59239079705227,"meanTime":8.2923971685985,"medianTime":8.246955000096932,"standardDeviation":0.3357774697335301,"maxTime":12.555878999875858,"minTime":7.9137140000239015,"runTime":5016.900287002092,"totalTime":5022.163559998851,"warning":null,"errorMessage":null} +{"benchmark":"csv_sum","system":"arquero","tags":[],"timestamp":1731457945911,"parameters":[1000.0,10.0],"name":"arquero_csv_sum_1000","cycles":19140,"samples":6,"hz":3225.512677398143,"meanTime":0.3100282342733339,"medianTime":0.2866849999409169,"standardDeviation":0.10708342819611583,"maxTime":9.7749279999407,"minTime":0.2752529999706894,"runTime":5933.940403991612,"totalTime":5995.315362002584,"warning":null,"errorMessage":null} +{"benchmark":"csv_sum","system":"arquero","tags":[],"timestamp":1731457945911,"parameters":[10000.0,100.0],"name":"arquero_csv_sum_10000","cycles":2105,"samples":5,"hz":422.2148945637791,"meanTime":2.3684621572461877,"medianTime":2.2917230000020936,"standardDeviation":0.6261411583935704,"maxTime":24.204487000009976,"minTime":2.247459000092931,"runTime":4985.612841003225,"totalTime":5005.2228550009895,"warning":null,"errorMessage":null} +{"benchmark":"csv_sum","system":"arquero","tags":[],"timestamp":1731457945911,"parameters":[100000.0,1000.0],"name":"arquero_csv_sum_100000","cycles":192,"samples":5,"hz":38.196340382683346,"meanTime":26.180518604168658,"medianTime":25.702067999984138,"standardDeviation":2.5254325386529026,"maxTime":46.55212299991399,"minTime":25.129609000054188,"runTime":5026.6595720003825,"totalTime":5028.759247000213,"warning":null,"errorMessage":null} +{"benchmark":"csv_sum","system":"arquero","tags":[],"timestamp":1731457945911,"parameters":[1000000.0,10000.0],"name":"arquero_csv_sum_1000000","cycles":20,"samples":5,"hz":3.6499211796600792,"meanTime":273.9785192000039,"medianTime":267.4556520000333,"standardDeviation":12.41175597088167,"maxTime":304.1135119999526,"minTime":262.40863399999216,"runTime":5479.570384000079,"totalTime":5480.0201820000075,"warning":null,"errorMessage":null} +{"benchmark":"csv_sum","system":"duckdb","tags":["sync"],"timestamp":1731457945911,"parameters":[1000.0,10.0],"name":"duckdb_sync_csv_sum_1000","cycles":2152,"samples":5,"hz":431.4146631282231,"meanTime":2.3179555204473536,"medianTime":2.1003449999261647,"standardDeviation":0.9403160865285816,"maxTime":24.873845000052825,"minTime":1.9517589999595657,"runTime":4988.240280002705,"totalTime":5002.195728993975,"warning":null,"errorMessage":null} +{"benchmark":"csv_sum","system":"duckdb","tags":["sync"],"timestamp":1731457945911,"parameters":[10000.0,100.0],"name":"duckdb_sync_csv_sum_10000","cycles":826,"samples":5,"hz":164.9800779266331,"meanTime":6.061337905566402,"medianTime":5.979326999979094,"standardDeviation":0.36527234716620144,"maxTime":9.720471999957226,"minTime":5.8170849999878556,"runTime":5006.665109997848,"totalTime":5011.782118999399,"warning":null,"errorMessage":null} +{"benchmark":"csv_sum","system":"duckdb","tags":["sync"],"timestamp":1731457945911,"parameters":[100000.0,1000.0],"name":"duckdb_sync_csv_sum_100000","cycles":270,"samples":5,"hz":53.35006446152593,"meanTime":18.74411980741209,"medianTime":18.538599999970756,"standardDeviation":1.2282471041965184,"maxTime":29.58896399999503,"minTime":17.902234000037424,"runTime":5060.912348001264,"totalTime":5063.686315999948,"warning":null,"errorMessage":null} +{"benchmark":"csv_sum","system":"duckdb","tags":["sync"],"timestamp":1731457945911,"parameters":[1000000.0,10000.0],"name":"duckdb_sync_csv_sum_1000000","cycles":45,"samples":5,"hz":8.470226643908688,"meanTime":118.06059531112356,"medianTime":117.56210600002669,"standardDeviation":1.9335412792024438,"maxTime":129.88552800007164,"minTime":117.08588899997994,"runTime":5312.7267890005605,"totalTime":5313.253026999882,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,1.0],"name":"lovefield_tpch_001_q1","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_001_q1` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,3.0],"name":"lovefield_tpch_001_q3","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_001_q3` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,4.0],"name":"lovefield_tpch_001_q4","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_001_q4` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,5.0],"name":"lovefield_tpch_001_q5","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_001_q5` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,6.0],"name":"lovefield_tpch_001_q6","cycles":363,"samples":5,"hz":71.93618509860465,"meanTime":13.901209782382484,"medianTime":13.81507600005716,"standardDeviation":3.1542145087027373,"maxTime":44.92734799999744,"minTime":10.402589000063017,"runTime":5046.139151004842,"totalTime":5050.9285209989175,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,7.0],"name":"lovefield_tpch_001_q7","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_001_q7` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,8.0],"name":"lovefield_tpch_001_q8","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_001_q8` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,9.0],"name":"lovefield_tpch_001_q9","cycles":18,"samples":5,"hz":3.038270406992136,"meanTime":329.13462794445354,"medianTime":318.41067100013606,"standardDeviation":30.089921330233793,"maxTime":394.60440499987453,"minTime":297.726769000059,"runTime":5924.423303000163,"totalTime":5924.699359000428,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,10.0],"name":"lovefield_tpch_001_q10","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_001_q10` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,12.0],"name":"lovefield_tpch_001_q12","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":"Benchmark `lovefield_tpch_001_q12` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,13.0],"name":"lovefield_tpch_001_q13","cycles":75,"samples":5,"hz":14.527976054044911,"meanTime":68.83271257330973,"medianTime":67.4882979998365,"standardDeviation":7.762958036454715,"maxTime":130.22136999992654,"minTime":64.31985999993049,"runTime":5162.4534429982305,"totalTime":5163.77534199832,"warning":"","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,14.0],"name":"lovefield_tpch_001_q14","cycles":1,"samples":1,"hz":0.0,"meanTime":0.0,"medianTime":0.0,"standardDeviation":0.0,"maxTime":0.0,"minTime":0.0,"runTime":0.0,"totalTime":0.0,"warning":"","errorMessage":"Benchmark `lovefield_tpch_001_q14` failed to run `fn`: a.getTime is not a function"} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,16.0],"name":"lovefield_tpch_001_q16","cycles":512,"samples":5,"hz":102.09648819292094,"meanTime":9.794656189450961,"medianTime":9.67534099984914,"standardDeviation":1.1431801080776227,"maxTime":26.71719600004144,"minTime":8.358244000002742,"runTime":5014.863968998892,"totalTime":5020.981712001376,"warning":"","errorMessage":null} +{"benchmark":"tpch","system":"lovefield","tags":[],"timestamp":1731458219955,"parameters":[0.01,19.0],"name":"lovefield_tpch_001_q19","cycles":67,"samples":5,"hz":12.830435905667631,"meanTime":77.93967464178411,"medianTime":74.36416699993424,"standardDeviation":14.07081701580486,"maxTime":132.37206099997275,"minTime":69.79834099998698,"runTime":5221.958200999536,"totalTime":5222.908679999178,"warning":"Lovefield does not support arithmetic operations and nested subqueries. Aggregates and order by clauses were often simplified. Some queries with nesting were dropped.","errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,1.0],"name":"sqljs_tpch_01_q1","cycles":5,"samples":3,"hz":0.9957929091915518,"meanTime":1004.224865199998,"medianTime":940.4014240000397,"standardDeviation":128.45826590148212,"maxTime":1261.1205170000903,"minTime":937.764053999912,"runTime":5021.12432599999,"totalTime":5022.0122100000735,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,2.0],"name":"sqljs_tpch_01_q2","cycles":173,"samples":5,"hz":34.26581348445865,"meanTime":29.183606000002097,"medianTime":28.888404000084847,"standardDeviation":1.1239175628606237,"maxTime":41.238309000153095,"minTime":28.507333000190556,"runTime":5048.763838000363,"totalTime":5053.031676999759,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,3.0],"name":"sqljs_tpch_01_q3","cycles":25,"samples":5,"hz":4.656585680578466,"meanTime":214.74961883999407,"medianTime":214.3780029998161,"standardDeviation":0.877789137542694,"maxTime":216.96071100002155,"minTime":213.78335699997842,"runTime":5368.740470999852,"totalTime":5369.328506999882,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,4.0],"name":"sqljs_tpch_01_q4","cycles":105,"samples":5,"hz":20.3870775905227,"meanTime":49.05067906666857,"medianTime":48.877083000028506,"standardDeviation":0.6415376291873729,"maxTime":53.633232000051066,"minTime":48.521299000130966,"runTime":5150.3213020002,"totalTime":5152.748469002312,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,5.0],"name":"sqljs_tpch_01_q5","cycles":25,"samples":5,"hz":4.359282822006116,"meanTime":229.39553151997737,"medianTime":228.95744400005788,"standardDeviation":1.7043048968460386,"maxTime":234.25031900010072,"minTime":226.73179399990477,"runTime":5734.888287999434,"totalTime":5735.52054399997,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,6.0],"name":"sqljs_tpch_01_q6","cycles":35,"samples":5,"hz":6.876580936639999,"meanTime":145.421105228584,"medianTime":145.32371200015768,"standardDeviation":0.6356922654193503,"maxTime":147.64847899996676,"minTime":144.6628760001622,"runTime":5089.73868300044,"totalTime":5090.542633000528,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,7.0],"name":"sqljs_tpch_01_q7","cycles":20,"samples":5,"hz":3.3861464477149825,"meanTime":295.3209541999619,"medianTime":294.7784279999323,"standardDeviation":2.392003479605258,"maxTime":303.54458900005557,"minTime":292.2934560000431,"runTime":5906.419083999237,"totalTime":5906.907373999711,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,8.0],"name":"sqljs_tpch_01_q8","cycles":12,"samples":4,"hz":2.3437175047230463,"meanTime":426.6725823333254,"medianTime":426.2587060001679,"standardDeviation":2.6529678454023946,"maxTime":432.62306199991144,"minTime":423.4173399999272,"runTime":5120.070987999905,"totalTime":5120.360399000114,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,9.0],"name":"sqljs_tpch_01_q9","cycles":8,"samples":4,"hz":1.343626382767148,"meanTime":744.2545136249391,"medianTime":741.7546389999334,"standardDeviation":14.109988811709266,"maxTime":777.6498569999821,"minTime":731.8808799998369,"runTime":5954.036108999513,"totalTime":5954.225160999689,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,10.0],"name":"sqljs_tpch_01_q10","cycles":35,"samples":5,"hz":6.614531520123631,"meanTime":151.18228659999025,"medianTime":149.97201399994083,"standardDeviation":2.1448302124557586,"maxTime":155.32368299993686,"minTime":148.8332109998446,"runTime":5291.380030999659,"totalTime":5292.311970999464,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,11.0],"name":"sqljs_tpch_01_q11","cycles":70,"samples":5,"hz":13.100907579163538,"meanTime":76.33058961429965,"medianTime":76.22354199993424,"standardDeviation":0.5486840775509337,"maxTime":79.76727700000629,"minTime":75.63797000003979,"runTime":5343.141273000976,"totalTime":5344.7390970001,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,12.0],"name":"sqljs_tpch_01_q12","cycles":40,"samples":5,"hz":7.644877896585223,"meanTime":130.80653655000498,"medianTime":130.68653999990784,"standardDeviation":0.7386410569566056,"maxTime":133.89564999984577,"minTime":130.29920799983665,"runTime":5232.261462000199,"totalTime":5233.063496000366,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,13.0],"name":"sqljs_tpch_01_q13","cycles":10,"samples":5,"hz":1.7446305975586403,"meanTime":573.1872416999656,"medianTime":571.9100089999847,"standardDeviation":4.386994447108658,"maxTime":580.1921139999758,"minTime":568.6305250001606,"runTime":5731.872416999657,"totalTime":5734.042713999981,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,14.0],"name":"sqljs_tpch_01_q14","cycles":40,"samples":5,"hz":7.361453125936744,"meanTime":135.84274502498448,"medianTime":135.52314499998465,"standardDeviation":1.176750140278998,"maxTime":140.17455699993297,"minTime":134.57797300000675,"runTime":5433.709800999379,"totalTime":5434.481893000659,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,15.0],"name":"sqljs_tpch_01_q15","cycles":20,"samples":5,"hz":3.63414477887356,"meanTime":275.1679035500507,"medianTime":275.03223100001924,"standardDeviation":0.8563236108650683,"maxTime":276.9583730001468,"minTime":273.87485400005244,"runTime":5503.358071001014,"totalTime":5503.761332000373,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,16.0],"name":"sqljs_tpch_01_q16","cycles":105,"samples":5,"hz":20.22563295040866,"meanTime":49.44221040952862,"medianTime":49.33566700015217,"standardDeviation":0.3931150892844126,"maxTime":51.3536600000225,"minTime":49.072867000009865,"runTime":5191.432093000505,"totalTime":5193.20789900003,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,17.0],"name":"sqljs_tpch_01_q17","cycles":1,"samples":1,"hz":0.030729180581944016,"meanTime":32542.358144999947,"medianTime":32542.358144999947,"standardDeviation":0.0,"maxTime":32542.358144999947,"minTime":32542.358144999947,"runTime":32542.358144999947,"totalTime":32542.382310000015,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,18.0],"name":"sqljs_tpch_01_q18","cycles":35,"samples":5,"hz":6.249400636724736,"meanTime":160.0153451714199,"medianTime":159.87989600002766,"standardDeviation":0.7210974039489396,"maxTime":162.08137099980377,"minTime":158.8278149999678,"runTime":5600.537080999697,"totalTime":5601.229355000192,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,19.0],"name":"sqljs_tpch_01_q19","cycles":35,"samples":5,"hz":6.434425142248131,"meanTime":155.41403900001066,"medianTime":154.35725799994543,"standardDeviation":3.360890321380565,"maxTime":168.9802010001149,"minTime":153.4075690000318,"runTime":5439.491365000373,"totalTime":5440.177312999964,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,20.0],"name":"sqljs_tpch_01_q20","cycles":1,"samples":1,"hz":0.022836545134338533,"meanTime":43789.46088899998,"medianTime":43789.46088899998,"standardDeviation":0.0,"maxTime":43789.46088899998,"minTime":43789.46088899998,"runTime":43789.46088899998,"totalTime":43789.48350000009,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,21.0],"name":"sqljs_tpch_01_q21","cycles":6,"samples":3,"hz":1.0772754268661728,"meanTime":928.2677160000118,"medianTime":928.3374930000864,"standardDeviation":2.4095369208099333,"maxTime":933.1814640001394,"minTime":925.8877340001054,"runTime":5569.606296000071,"totalTime":5569.747868000064,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458380615,"parameters":[0.1,22.0],"name":"sqljs_tpch_01_q22","cycles":1,"samples":1,"hz":0.09773937060557346,"meanTime":10231.291584999999,"medianTime":10231.291584999999,"standardDeviation":0.0,"maxTime":10231.291584999999,"minTime":10231.291584999999,"runTime":10231.291584999999,"totalTime":10231.311892999802,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994504,"parameters":[0.01,1.0],"name":"duckdb_sync_tpch_001_q1","cycles":818,"samples":5,"hz":163.4747069033944,"meanTime":6.117154261612784,"medianTime":5.807787999976426,"standardDeviation":0.9929608912735348,"maxTime":14.750989999854937,"minTime":5.503500999882817,"runTime":5003.8321859992575,"totalTime":5012.294842001516,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994504,"parameters":[0.01,2.0],"name":"duckdb_sync_tpch_001_q2","cycles":1185,"samples":5,"hz":236.85186696841137,"meanTime":4.222048205908246,"medianTime":4.048760000150651,"standardDeviation":0.7597078853262941,"maxTime":15.49722299980931,"minTime":3.5891429998446256,"runTime":5003.127124001272,"totalTime":5012.658103997586,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994504,"parameters":[0.01,3.0],"name":"duckdb_sync_tpch_001_q3","cycles":1994,"samples":5,"hz":399.2273470053637,"meanTime":2.5048384272797946,"medianTime":2.454808000009507,"standardDeviation":0.21853213631373522,"maxTime":5.918329000007361,"minTime":2.36783599993214,"runTime":4994.647823995911,"totalTime":5004.779566997662,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994504,"parameters":[0.01,4.0],"name":"duckdb_sync_tpch_001_q4","cycles":1673,"samples":5,"hz":334.7291473420863,"meanTime":2.9874900585756894,"medianTime":2.947253999998793,"standardDeviation":0.1919983405522877,"maxTime":6.268916000146419,"minTime":2.8684469999279827,"runTime":4998.0708679971285,"totalTime":5005.3981290017255,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994504,"parameters":[0.01,5.0],"name":"duckdb_sync_tpch_001_q5","cycles":1122,"samples":5,"hz":224.32167140349867,"meanTime":4.457884045457426,"medianTime":4.427413000026718,"standardDeviation":0.18430628987337214,"maxTime":8.781209000153467,"minTime":4.340611000079662,"runTime":5001.745899003232,"totalTime":5011.955548996106,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994504,"parameters":[0.01,6.0],"name":"duckdb_sync_tpch_001_q6","cycles":5649,"samples":5,"hz":1134.4335994832807,"meanTime":0.8814971633910408,"medianTime":0.868187999818474,"standardDeviation":0.11641333230814008,"maxTime":4.429314999841154,"minTime":0.8422900000587106,"runTime":4979.5774759959895,"totalTime":5000.468255012995,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994504,"parameters":[0.01,7.0],"name":"duckdb_sync_tpch_001_q7","cycles":1114,"samples":5,"hz":222.5834795607189,"meanTime":4.492696412031822,"medianTime":4.4219240001402795,"standardDeviation":0.5061901858223457,"maxTime":13.975431999890134,"minTime":4.301750000100583,"runTime":5004.863803003449,"totalTime":5010.401026000967,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994504,"parameters":[0.01,8.0],"name":"duckdb_sync_tpch_001_q8","cycles":994,"samples":5,"hz":198.72599161864397,"meanTime":5.032054397388562,"medianTime":4.972981000086293,"standardDeviation":0.31718172757766716,"maxTime":10.064834000077099,"minTime":4.776094000088051,"runTime":5001.8620710042305,"totalTime":5007.303493000567,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,9.0],"name":"duckdb_sync_tpch_001_q9","cycles":892,"samples":5,"hz":178.183289491909,"meanTime":5.612198556057123,"medianTime":5.557918000034988,"standardDeviation":0.2667646565159116,"maxTime":9.74810600001365,"minTime":5.381558999884874,"runTime":5006.081112002954,"totalTime":5010.949580991641,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,10.0],"name":"duckdb_sync_tpch_001_q10","cycles":1037,"samples":5,"hz":207.16777536487237,"meanTime":4.82700554291689,"medianTime":4.790938999969512,"standardDeviation":0.20918563405478008,"maxTime":8.383493000175804,"minTime":4.713115999940783,"runTime":5005.604748004815,"totalTime":5011.0543630004395,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,11.0],"name":"duckdb_sync_tpch_001_q11","cycles":2477,"samples":5,"hz":495.875371717914,"meanTime":2.01663574566245,"medianTime":1.983407000079751,"standardDeviation":0.3302174369041994,"maxTime":10.411555000115186,"minTime":1.9251180000137538,"runTime":4995.206742005888,"totalTime":5006.405548002105,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,12.0],"name":"duckdb_sync_tpch_001_q12","cycles":1349,"samples":5,"hz":269.6186451167384,"meanTime":3.708942308374201,"medianTime":3.6653740000911057,"standardDeviation":0.3252982570876769,"maxTime":9.270887000020593,"minTime":3.5910450001247227,"runTime":5003.363173996797,"totalTime":5010.150876002386,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,13.0],"name":"duckdb_sync_tpch_001_q13","cycles":1847,"samples":5,"hz":369.79390987123304,"meanTime":2.70420894802787,"medianTime":2.6866389999631792,"standardDeviation":0.1465068674575475,"maxTime":7.183674999978393,"minTime":2.6311859998386353,"runTime":4994.673927007476,"totalTime":5006.080051996978,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,14.0],"name":"duckdb_sync_tpch_001_q14","cycles":3468,"samples":5,"hz":695.0995282031589,"meanTime":1.4386428984997481,"medianTime":1.4163709999993443,"standardDeviation":0.14925175436156163,"maxTime":4.270932999905199,"minTime":1.3673000000417233,"runTime":4989.213571997127,"totalTime":5003.3293270024005,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,15.0],"name":"duckdb_sync_tpch_001_q15","cycles":2188,"samples":5,"hz":438.0926612200002,"meanTime":2.2826221220305323,"medianTime":2.263410000130534,"standardDeviation":0.18917303884823225,"maxTime":5.941465999931097,"minTime":2.163643999956548,"runTime":4994.377203002805,"totalTime":5004.649881999707,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,16.0],"name":"duckdb_sync_tpch_001_q16","cycles":2309,"samples":5,"hz":462.76692474109393,"meanTime":2.160915023387797,"medianTime":2.1195809999480844,"standardDeviation":0.20459515905928383,"maxTime":6.249983000103384,"minTime":2.0424979999661446,"runTime":4989.552789002424,"totalTime":5003.4784909852315,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,17.0],"name":"duckdb_sync_tpch_001_q17","cycles":4161,"samples":5,"hz":834.6179106217492,"meanTime":1.198153055755836,"medianTime":1.1844080002047122,"standardDeviation":0.134628920876001,"maxTime":5.891120000043884,"minTime":1.1459759999997914,"runTime":4985.514865000034,"totalTime":5003.242779996246,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,18.0],"name":"duckdb_sync_tpch_001_q18","cycles":1253,"samples":5,"hz":250.54113130263624,"meanTime":3.9913605993583126,"medianTime":3.9489319999702275,"standardDeviation":0.30810819679082463,"maxTime":8.240712000057101,"minTime":3.673909000121057,"runTime":5001.174830995966,"totalTime":5008.948823000304,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,19.0],"name":"duckdb_sync_tpch_001_q19","cycles":944,"samples":5,"hz":188.6229318448089,"meanTime":5.301582316739506,"medianTime":5.235140000004321,"standardDeviation":0.4571894412497839,"maxTime":12.49083699984476,"minTime":5.129242000170052,"runTime":5004.693707002094,"totalTime":5009.711061996408,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,20.0],"name":"duckdb_sync_tpch_001_q20","cycles":1433,"samples":5,"hz":286.53372383246676,"meanTime":3.4899905903735418,"medianTime":3.4433900001458824,"standardDeviation":0.28029381826382294,"maxTime":8.643523999955505,"minTime":3.3232449998613447,"runTime":5001.156516005285,"totalTime":5007.976607999532,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,21.0],"name":"duckdb_sync_tpch_001_q21","cycles":873,"samples":5,"hz":174.5518049201482,"meanTime":5.72895823367434,"medianTime":5.66437999997288,"standardDeviation":0.3527246601222834,"maxTime":12.150816000066698,"minTime":5.56093699997291,"runTime":5001.380537997698,"totalTime":5006.164513000753,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731457994505,"parameters":[0.01,22.0],"name":"duckdb_sync_tpch_001_q22","cycles":2110,"samples":5,"hz":422.6501711278028,"meanTime":2.366022938856484,"medianTime":2.3379689999856055,"standardDeviation":0.1794038073574686,"maxTime":6.022359000053257,"minTime":2.2698520000558347,"runTime":4992.308400987182,"totalTime":5005.172281995416,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,1.0],"name":"sqljs_tpch_025_q1","cycles":2,"samples":2,"hz":0.338725354568458,"meanTime":2952.244307999965,"medianTime":3304.9020819999278,"standardDeviation":352.65777399996296,"maxTime":3304.9020819999278,"minTime":2599.586534000002,"runTime":5904.48861599993,"totalTime":5904.66777900001,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,2.0],"name":"sqljs_tpch_025_q2","cycles":70,"samples":5,"hz":13.563106344183614,"meanTime":73.72942264283276,"medianTime":73.38339799991809,"standardDeviation":1.3151598140405927,"maxTime":80.8531039999798,"minTime":72.6762499997858,"runTime":5161.059584998293,"totalTime":5162.971209001262,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,3.0],"name":"sqljs_tpch_025_q3","cycles":10,"samples":5,"hz":1.844136177669681,"meanTime":542.2593039000174,"medianTime":541.408458000049,"standardDeviation":1.7774276858845237,"maxTime":545.764737999998,"minTime":540.7318309999537,"runTime":5422.593039000174,"totalTime":5422.8377060000785,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,4.0],"name":"sqljs_tpch_025_q4","cycles":45,"samples":5,"hz":8.342117109931012,"meanTime":119.87364679998718,"medianTime":119.8418979998678,"standardDeviation":0.29548839803935817,"maxTime":120.57143699983135,"minTime":119.33575400011614,"runTime":5394.314105999423,"totalTime":5395.321942999726,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,5.0],"name":"sqljs_tpch_025_q5","cycles":10,"samples":5,"hz":1.7027606210560313,"meanTime":587.2816105999751,"medianTime":580.1983819999732,"standardDeviation":21.02389080760483,"maxTime":650.0126910000108,"minTime":577.6714500000235,"runTime":5872.816105999751,"totalTime":5873.054214000469,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,6.0],"name":"sqljs_tpch_025_q6","cycles":15,"samples":5,"hz":2.7374481945046187,"meanTime":365.30371680000485,"medianTime":364.49693699995987,"standardDeviation":1.6710172385817692,"maxTime":369.3014460001141,"minTime":364.0248680000659,"runTime":5479.555752000073,"totalTime":5479.9186590006575,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,7.0],"name":"sqljs_tpch_025_q7","cycles":8,"samples":4,"hz":1.2639106977096892,"meanTime":791.1951388749876,"medianTime":791.7354439999908,"standardDeviation":3.411816832371434,"maxTime":796.9642809999641,"minTime":784.9159599998966,"runTime":6329.561110999901,"totalTime":6329.849739999743,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,8.0],"name":"sqljs_tpch_025_q8","cycles":5,"samples":5,"hz":0.8138924365212338,"meanTime":1228.6635863999836,"medianTime":1225.8590969999786,"standardDeviation":10.356243891858519,"maxTime":1248.201487999875,"minTime":1217.1511790000368,"runTime":6143.317931999918,"totalTime":6143.4761960003525,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,9.0],"name":"sqljs_tpch_025_q9","cycles":3,"samples":3,"hz":0.4395514749000396,"meanTime":2275.046398666765,"medianTime":2286.576749,"standardDeviation":17.327223760663284,"maxTime":2288.006535000168,"minTime":2250.555912000127,"runTime":6825.139196000295,"totalTime":6825.223203000147,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,10.0],"name":"sqljs_tpch_025_q10","cycles":15,"samples":5,"hz":2.613298106446625,"meanTime":382.658219333319,"medianTime":382.0554239999037,"standardDeviation":1.9862909204324657,"maxTime":387.2445069998503,"minTime":379.4271829999052,"runTime":5739.873289999785,"totalTime":5740.455835000146,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,11.0],"name":"sqljs_tpch_025_q11","cycles":30,"samples":5,"hz":5.28153675497561,"meanTime":189.33883193332392,"medianTime":189.08448900002986,"standardDeviation":0.6855316874281541,"maxTime":191.0826230000239,"minTime":188.30443600006402,"runTime":5680.164957999717,"totalTime":5680.86450900021,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,12.0],"name":"sqljs_tpch_025_q12","cycles":16,"samples":4,"hz":3.109766566736684,"meanTime":321.56754487504077,"medianTime":319.69601100008003,"standardDeviation":6.972356393241109,"maxTime":348.42921700002626,"minTime":318.76329399994574,"runTime":5145.080718000652,"totalTime":5145.469755999977,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,13.0],"name":"sqljs_tpch_025_q13","cycles":3,"samples":3,"hz":0.5958477183882815,"meanTime":1678.2811599999357,"medianTime":1678.582654000027,"standardDeviation":5.548811710316262,"maxTime":1684.9212739998475,"minTime":1671.3395519999322,"runTime":5034.843479999807,"totalTime":5034.94494899991,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,14.0],"name":"sqljs_tpch_025_q14","cycles":15,"samples":5,"hz":2.916391280263745,"meanTime":342.8895178666028,"medianTime":342.135821999982,"standardDeviation":1.5797724470871357,"maxTime":347.07085899985395,"minTime":341.4555339999497,"runTime":5143.342767999042,"totalTime":5143.707837999798,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,15.0],"name":"sqljs_tpch_025_q15","cycles":8,"samples":4,"hz":1.4641400004388316,"meanTime":682.9947953749506,"medianTime":683.7700489999261,"standardDeviation":1.2965063064539857,"maxTime":684.8996589998715,"minTime":681.1711689999793,"runTime":5463.958362999605,"totalTime":5464.151441999944,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,16.0],"name":"sqljs_tpch_025_q16","cycles":44,"samples":5,"hz":8.032746954922347,"meanTime":124.49041474998971,"medianTime":123.99358499981463,"standardDeviation":3.0457217979853497,"maxTime":144.33120599994436,"minTime":123.42849899991415,"runTime":5477.578248999547,"totalTime":5478.595005999785,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,18.0],"name":"sqljs_tpch_025_q18","cycles":15,"samples":5,"hz":2.4742572069798547,"meanTime":404.16170040002714,"medianTime":403.82622100017034,"standardDeviation":3.0985805112771634,"maxTime":414.56445299996994,"minTime":401.1157259999309,"runTime":6062.425506000407,"totalTime":6062.810324000195,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,19.0],"name":"sqljs_tpch_025_q19","cycles":15,"samples":5,"hz":2.45834597267336,"meanTime":406.7775695999929,"medianTime":401.5130000000354,"standardDeviation":8.196847504717203,"maxTime":417.60204800008796,"minTime":396.74766299990006,"runTime":6101.663543999894,"totalTime":6102.018441000022,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"sqljs","tags":[],"timestamp":1731458780233,"parameters":[0.25,21.0],"name":"sqljs_tpch_025_q21","cycles":3,"samples":3,"hz":0.4311370600525274,"meanTime":2319.4480193332615,"medianTime":2315.3754179999232,"standardDeviation":11.748479732014955,"maxTime":2335.434251999948,"minTime":2307.5343879999127,"runTime":6958.344057999784,"totalTime":6958.422345000086,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,1.0],"name":"duckdb_sync_tpch_025_q1","cycles":45,"samples":5,"hz":8.629691380481946,"meanTime":115.87899913335633,"medianTime":114.39366400009021,"standardDeviation":4.535003545197857,"maxTime":139.42487900005654,"minTime":112.60855499980971,"runTime":5214.554961001035,"totalTime":5215.803103999933,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,2.0],"name":"duckdb_sync_tpch_025_q2","cycles":378,"samples":5,"hz":75.3512639705735,"meanTime":13.271177513233544,"medianTime":12.778513999888673,"standardDeviation":1.6437957616694021,"maxTime":29.608068000059575,"minTime":11.866124000167474,"runTime":5016.5051000022795,"totalTime":5024.688096998259,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,3.0],"name":"duckdb_sync_tpch_025_q3","cycles":214,"samples":5,"hz":42.18676413481963,"meanTime":23.70411716822413,"medianTime":23.54506799997762,"standardDeviation":0.7226820755617985,"maxTime":29.079206000082195,"minTime":22.925511999987066,"runTime":5072.681073999964,"totalTime":5074.936922000954,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,4.0],"name":"duckdb_sync_tpch_025_q4","cycles":140,"samples":5,"hz":27.56074948029072,"meanTime":36.28348353571159,"medianTime":36.20276700006798,"standardDeviation":0.652704500794005,"maxTime":42.45285000000149,"minTime":35.532405000180006,"runTime":5079.687694999622,"totalTime":5082.970492001157,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,5.0],"name":"duckdb_sync_tpch_025_q5","cycles":185,"samples":5,"hz":36.579512707219855,"meanTime":27.33770698379549,"medianTime":27.163912000134587,"standardDeviation":0.7300535070484394,"maxTime":31.588572999928147,"minTime":26.36558400001377,"runTime":5057.475792002166,"totalTime":5060.4186949997675,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,6.0],"name":"duckdb_sync_tpch_025_q6","cycles":429,"samples":5,"hz":85.30747339525746,"meanTime":11.72230239860314,"medianTime":11.612460999982432,"standardDeviation":0.4843154296358438,"maxTime":15.45264899986796,"minTime":11.097740000113845,"runTime":5028.867729000747,"totalTime":5033.0367950021755,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,7.0],"name":"duckdb_sync_tpch_025_q7","cycles":150,"samples":5,"hz":29.338668328410105,"meanTime":34.08470994000944,"medianTime":33.92786100017838,"standardDeviation":0.6389578074749457,"maxTime":38.001478999853134,"minTime":33.2315360000357,"runTime":5112.706491001416,"totalTime":5114.9462960017845,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,8.0],"name":"duckdb_sync_tpch_025_q8","cycles":137,"samples":5,"hz":26.812878459365994,"meanTime":37.295510868609874,"medianTime":37.14565799990669,"standardDeviation":1.1806133157167844,"maxTime":46.576837999979034,"minTime":36.167174000060186,"runTime":5109.484988999553,"totalTime":5111.040969997644,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,9.0],"name":"duckdb_sync_tpch_025_q9","cycles":70,"samples":5,"hz":13.515665893744599,"meanTime":73.98821544285332,"medianTime":74.00019799987786,"standardDeviation":2.6475607285971785,"maxTime":84.81023099995218,"minTime":69.23117400007322,"runTime":5179.175080999732,"totalTime":5179.966819999274,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,10.0],"name":"duckdb_sync_tpch_025_q10","cycles":75,"samples":5,"hz":14.239086092930078,"meanTime":70.2292263333189,"medianTime":70.00318100000732,"standardDeviation":1.076740080829615,"maxTime":73.16770599992014,"minTime":68.47400099993683,"runTime":5267.191974998917,"totalTime":5268.3709940009285,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,11.0],"name":"duckdb_sync_tpch_025_q11","cycles":671,"samples":5,"hz":134.06492200301577,"meanTime":7.4590727019369405,"medianTime":7.372401000000536,"standardDeviation":0.6692588436868815,"maxTime":12.554719999898225,"minTime":6.646517999935895,"runTime":5005.037782999687,"totalTime":5013.430234997766,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,12.0],"name":"duckdb_sync_tpch_025_q12","cycles":89,"samples":5,"hz":17.22706219331005,"meanTime":58.04820280896992,"medianTime":57.36695699999109,"standardDeviation":2.0657002578645787,"maxTime":67.90989400004037,"minTime":56.69524499983527,"runTime":5166.2900499983225,"totalTime":5167.285624999553,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,13.0],"name":"duckdb_sync_tpch_025_q13","cycles":86,"samples":5,"hz":16.85414384680261,"meanTime":59.33258960464547,"medianTime":59.045947999926284,"standardDeviation":1.2695036719291852,"maxTime":64.77555400016718,"minTime":57.84933100012131,"runTime":5102.60270599951,"totalTime":5104.201641001971,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,14.0],"name":"duckdb_sync_tpch_025_q14","cycles":320,"samples":5,"hz":63.672170902648375,"meanTime":15.70544848437712,"medianTime":15.611146999988705,"standardDeviation":0.4393903579493951,"maxTime":17.880617999937385,"minTime":15.118218000046909,"runTime":5025.743515000679,"totalTime":5029.234221001156,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,15.0],"name":"duckdb_sync_tpch_025_q15","cycles":233,"samples":5,"hz":46.303644745844096,"meanTime":21.596572051485282,"medianTime":21.552366000134498,"standardDeviation":0.4145371768112347,"maxTime":23.395130000077188,"minTime":20.73250799998641,"runTime":5032.0012879960705,"totalTime":5035.220955997938,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,16.0],"name":"duckdb_sync_tpch_025_q16","cycles":286,"samples":5,"hz":56.71400676426124,"meanTime":17.632328538461817,"medianTime":17.459225999889895,"standardDeviation":0.7490716975146954,"maxTime":22.167070999974385,"minTime":16.563215000089258,"runTime":5042.845962000079,"totalTime":5045.7765400002245,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,17.0],"name":"duckdb_sync_tpch_025_q17","cycles":161,"samples":5,"hz":31.860109047948374,"meanTime":31.387212093186317,"medianTime":31.33093599998392,"standardDeviation":0.3452444287048602,"maxTime":33.272392000071704,"minTime":30.95474600000307,"runTime":5053.341147002997,"totalTime":5054.857830999652,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,18.0],"name":"duckdb_sync_tpch_025_q18","cycles":85,"samples":5,"hz":16.678674137999206,"meanTime":59.95680422352572,"medianTime":59.76746100001037,"standardDeviation":0.8723339431493404,"maxTime":62.84335600002669,"minTime":58.4924540000502,"runTime":5096.328358999686,"totalTime":5097.1487449985,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,19.0],"name":"duckdb_sync_tpch_025_q19","cycles":60,"samples":5,"hz":11.555999772637893,"meanTime":86.53513496666758,"medianTime":86.20409399992786,"standardDeviation":1.700249095040564,"maxTime":97.04784299992025,"minTime":84.93030899995938,"runTime":5192.108098000055,"totalTime":5192.7058920001145,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,20.0],"name":"duckdb_sync_tpch_025_q20","cycles":174,"samples":5,"hz":34.39043178843875,"meanTime":29.077855321844964,"medianTime":28.253871999913827,"standardDeviation":2.388505710596481,"maxTime":33.64085800014436,"minTime":25.443520999979228,"runTime":5059.546826001024,"totalTime":5061.296810000669,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,21.0],"name":"duckdb_sync_tpch_025_q21","cycles":55,"samples":5,"hz":10.44614784843285,"meanTime":95.729068218197,"medianTime":95.5963360001333,"standardDeviation":2.5388567169440073,"maxTime":109.23213800019585,"minTime":92.83325399993919,"runTime":5265.098752000835,"totalTime":5265.649147999706,"warning":null,"errorMessage":null} +{"benchmark":"tpch","system":"duckdb","tags":["sync"],"timestamp":1731458666997,"parameters":[0.25,22.0],"name":"duckdb_sync_tpch_025_q22","cycles":323,"samples":5,"hz":64.16444820932327,"meanTime":15.584954408673575,"medianTime":15.438421000028029,"standardDeviation":0.710110044012572,"maxTime":23.037902999902144,"minTime":15.090110999997705,"runTime":5033.940274001565,"totalTime":5036.67918600305,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"lovefield","tags":[],"timestamp":1731457714952,"parameters":[10.0,100.0,1000.0,10.0,10.0,10.0],"name":"lovefield_integer_join3_10_100_1000_10_10_10","cycles":12696,"samples":6,"hz":2131.815563757559,"meanTime":0.4690837317264867,"medianTime":0.42158600001130253,"standardDeviation":0.15736720615073183,"maxTime":6.972978000063449,"minTime":0.383053999976255,"runTime":5955.487057999475,"totalTime":5998.1297129900195,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"lovefield","tags":[],"timestamp":1731457714952,"parameters":[100.0,1000.0,10000.0,10.0,10.0,100.0],"name":"lovefield_integer_join3_100_1000_10000_100_10_10","cycles":1008,"samples":5,"hz":201.25708638257055,"meanTime":4.968769139880596,"medianTime":4.772423999966122,"standardDeviation":0.69501710037827,"maxTime":12.762907000025734,"minTime":4.021223000017926,"runTime":5008.519292999641,"totalTime":5016.188003997086,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"lovefield","tags":[],"timestamp":1731457714952,"parameters":[1000.0,10000.0,100000.0,10.0,10.0,100.0],"name":"lovefield_integer_join3_1000_10000_100000_100_10_10","cycles":126,"samples":5,"hz":24.89099333202755,"meanTime":40.17517447619448,"medianTime":38.42983999999706,"standardDeviation":8.35868008349719,"maxTime":81.780434000073,"minTime":31.992476999992505,"runTime":5062.071984000504,"totalTime":5064.069354000618,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"lovefield","tags":[],"timestamp":1731457714952,"parameters":[10000.0,100000.0,1000000.0,10.0,10.0,100.0],"name":"lovefield_integer_join3_10000_100000_1000000_100_10_10","cycles":15,"samples":5,"hz":2.45812232599615,"meanTime":406.81457933333394,"medianTime":396.4669870000798,"standardDeviation":36.2556161848235,"maxTime":504.5230730000185,"minTime":378.81866399990395,"runTime":6102.218690000009,"totalTime":6102.490146000171,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"sqljs","tags":[],"timestamp":1731457714952,"parameters":[10.0,100.0,1000.0,10.0,10.0,10.0],"name":"sqljs_integer_join3_10_100_1000_10_10_10","cycles":3990,"samples":5,"hz":800.6424473774624,"meanTime":1.2489969814560062,"medianTime":1.1848800000734627,"standardDeviation":1.0366848463630913,"maxTime":64.78264899994247,"minTime":1.1507160000037402,"runTime":4983.497956009465,"totalTime":5000.705624998664,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"sqljs","tags":[],"timestamp":1731457714952,"parameters":[100.0,1000.0,10000.0,10.0,10.0,100.0],"name":"sqljs_integer_join3_100_1000_10000_100_10_10","cycles":334,"samples":5,"hz":66.54158796563392,"meanTime":15.02819560778231,"medianTime":14.666490999981761,"standardDeviation":0.6674381015677653,"maxTime":18.767427000100724,"minTime":14.49840799998492,"runTime":5019.417332999292,"totalTime":5022.459567000507,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"sqljs","tags":[],"timestamp":1731457714952,"parameters":[1000.0,10000.0,100000.0,10.0,10.0,100.0],"name":"sqljs_integer_join3_1000_10000_100000_100_10_10","cycles":39,"samples":5,"hz":7.241592465562426,"meanTime":138.0911732820543,"medianTime":135.7651509999996,"standardDeviation":8.67074888631851,"maxTime":187.2993570000399,"minTime":134.92414100002497,"runTime":5385.555758000119,"totalTime":5386.079015999916,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"sqljs","tags":[],"timestamp":1731457714952,"parameters":[10000.0,100000.0,1000000.0,10.0,10.0,100.0],"name":"sqljs_integer_join3_10000_100000_1000000_100_10_10","cycles":3,"samples":3,"hz":0.41197525994303524,"meanTime":2427.330224000034,"medianTime":2430.310748000047,"standardDeviation":10.122139467655327,"maxTime":2437.9653040000703,"minTime":2413.7146199999843,"runTime":7281.990672000102,"totalTime":7282.076050999924,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"arquero","tags":[],"timestamp":1731457714952,"parameters":[10.0,100.0,1000.0,10.0,10.0,10.0],"name":"arquero_integer_join3_10_100_1000_10_10_10","cycles":12311,"samples":6,"hz":2068.5808406633505,"meanTime":0.4834232147675316,"medianTime":0.45215300004929304,"standardDeviation":0.16924061905059448,"maxTime":12.631573999999091,"minTime":0.42767499992623925,"runTime":5951.423197003081,"totalTime":5997.712807999575,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"arquero","tags":[],"timestamp":1731457714952,"parameters":[100.0,1000.0,10000.0,10.0,10.0,100.0],"name":"arquero_integer_join3_100_1000_10000_100_10_10","cycles":1184,"samples":5,"hz":236.63005295856672,"meanTime":4.226005900337171,"medianTime":4.121564000030048,"standardDeviation":0.36716795971702765,"maxTime":10.222099000005983,"minTime":3.9665449999738485,"runTime":5003.59098599921,"totalTime":5009.98010699905,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"arquero","tags":[],"timestamp":1731457714952,"parameters":[1000.0,10000.0,100000.0,10.0,10.0,100.0],"name":"arquero_integer_join3_1000_10000_100000_100_10_10","cycles":302,"samples":5,"hz":59.88727191156925,"meanTime":16.698038966887992,"medianTime":16.554405000060797,"standardDeviation":0.7590773171984484,"maxTime":26.229171999963,"minTime":16.24997100001201,"runTime":5042.807768000173,"totalTime":5045.959996999125,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"arquero","tags":[],"timestamp":1731457714952,"parameters":[10000.0,100000.0,1000000.0,10.0,10.0,100.0],"name":"arquero_integer_join3_10000_100000_1000000_100_10_10","cycles":35,"samples":5,"hz":6.472648465485379,"meanTime":154.4962630571365,"medianTime":153.9418940000469,"standardDeviation":1.6371895772511773,"maxTime":161.02158100006636,"minTime":153.3051180000184,"runTime":5407.369206999778,"totalTime":5407.891369000077,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"duckdb","tags":["sync"],"timestamp":1731457714952,"parameters":[10.0,100.0,1000.0,10.0,10.0,10.0],"name":"duckdb_sync_integer_join3_10_100_1000_10_10_10","cycles":6413,"samples":6,"hz":1075.3677502663065,"meanTime":0.929914440666793,"medianTime":0.8313100000377744,"standardDeviation":0.6095066510367049,"maxTime":15.122712000040337,"minTime":0.7619699999922886,"runTime":5963.541307996144,"totalTime":5998.953402005369,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"duckdb","tags":["sync"],"timestamp":1731457714952,"parameters":[100.0,1000.0,10000.0,10.0,10.0,100.0],"name":"duckdb_sync_integer_join3_100_1000_10000_100_10_10","cycles":307,"samples":5,"hz":60.888143323843444,"meanTime":16.42355876547817,"medianTime":16.657438999973238,"standardDeviation":2.1561006900616717,"maxTime":20.855599000002258,"minTime":1.7386910000350326,"runTime":5042.032541001798,"totalTime":5044.691314999596,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"duckdb","tags":["sync"],"timestamp":1731457714952,"parameters":[1000.0,10000.0,100000.0,10.0,10.0,100.0],"name":"duckdb_sync_integer_join3_1000_10000_100000_100_10_10","cycles":259,"samples":5,"hz":51.41790285864485,"meanTime":19.44847892278187,"medianTime":19.22632799996063,"standardDeviation":1.1712441390169763,"maxTime":31.089961000019684,"minTime":18.55879699997604,"runTime":5037.156041000504,"totalTime":5039.539944000309,"warning":null,"errorMessage":null} +{"benchmark":"integer_join3","system":"duckdb","tags":["sync"],"timestamp":1731457714952,"parameters":[10000.0,100000.0,1000000.0,10.0,10.0,100.0],"name":"duckdb_sync_integer_join3_10000_100000_1000000_100_10_10","cycles":472,"samples":5,"hz":93.85148137564515,"meanTime":10.655132826273151,"medianTime":10.518027000012808,"standardDeviation":0.974533510018966,"maxTime":30.347252000006847,"minTime":10.345847000018694,"runTime":5029.222694000928,"totalTime":5033.79448900139,"warning":null,"errorMessage":null} diff --git a/docs/assets/icons.js b/docs/assets/icons.js new file mode 100644 index 000000000..b79c9e89f --- /dev/null +++ b/docs/assets/icons.js @@ -0,0 +1,15 @@ +(function(svg) { + svg.innerHTML = ``; + svg.style.display = 'none'; + if (location.protocol === 'file:') { + if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', updateUseElements); + else updateUseElements() + function updateUseElements() { + document.querySelectorAll('use').forEach(el => { + if (el.getAttribute('href').includes('#icon-')) { + el.setAttribute('href', el.getAttribute('href').replace(/.*#/, '#')); + } + }); + } + } +})(document.body.appendChild(document.createElementNS('http://www.w3.org/2000/svg', 'svg'))) \ No newline at end of file diff --git a/docs/assets/icons.svg b/docs/assets/icons.svg new file mode 100644 index 000000000..7dead6118 --- /dev/null +++ b/docs/assets/icons.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/assets/main.js b/docs/assets/main.js index abd0485a2..d6f138860 100644 --- a/docs/assets/main.js +++ b/docs/assets/main.js @@ -1,54 +1,59 @@ "use strict"; -"use strict";(()=>{var Qe=Object.create;var ae=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Ce=Object.getOwnPropertyNames;var Oe=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var _e=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Me=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ce(e))!Re.call(t,i)&&i!==n&&ae(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Qe(Oe(t)):{},Me(e||!t||!t.__esModule?ae(n,"default",{value:t,enumerable:!0}):n,t));var de=_e((ce,he)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var h=t.utils.clone(n)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(r.slice(a,o),h))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ou?h+=2:a==u&&(n+=r[l+1]*i[h+1],l+=2,h+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),m=s.str.charAt(1),v;m in s.node.edges?v=s.node.edges[m]:(v=new t.TokenSet,s.node.edges[m]=v),s.str.length==1&&(v.final=!0),i.push({node:v,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof ce=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});var le=[];function j(t,e){le.push({selector:e,constructor:t})}var Y=class{constructor(){this.createComponents(document.body)}createComponents(e){le.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r}),r.dataset.hasInstance=String(!0))})})}};var k=class{constructor(e){this.el=e.el}};var J=class{constructor(){this.listeners={}}addEventListener(e,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(n)}removeEventListener(e,n){if(!(e in this.listeners))return;let r=this.listeners[e];for(let i=0,s=r.length;i{let n=Date.now();return(...r)=>{n+e-Date.now()<0&&(t(...r),n=Date.now())}};var re=class extends J{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.navigation=document.querySelector(".col-menu"),window.addEventListener("scroll",ne(()=>this.onScroll(),10)),window.addEventListener("resize",ne(()=>this.onResize(),10)),this.searchInput=document.querySelector("#tsd-search input"),this.searchInput&&this.searchInput.addEventListener("focus",()=>{this.hideShowToolbar()}),this.onResize(),this.onScroll()}triggerResize(){let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let n=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(n)}onScroll(){this.scrollTop=window.scrollY||0;let n=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(n),this.hideShowToolbar()}hideShowToolbar(){let n=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0||!!this.searchInput&&this.searchInput===document.activeElement,n!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.navigation?.classList.toggle("col-menu--hide")),this.lastY=this.scrollTop}},R=re;R.instance=new re;var X=class extends k{constructor(n){super(n);this.anchors=[];this.index=-1;R.instance.addEventListener("resize",()=>this.onResize()),R.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substring(0,n.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let i=r.href;if(i.indexOf("#")==-1||i.substring(0,n.length)!=n)return;let s=i.substring(i.indexOf("#")+1),o=document.querySelector("a.tsd-anchor[name="+s+"]"),a=r.parentNode;!o||!a||this.anchors.push({link:a,anchor:o,position:0})}),this.onResize()}onResize(){let n;for(let i=0,s=this.anchors.length;ii.position-s.position);let r=new CustomEvent("scroll",{detail:{scrollTop:R.instance.scrollTop}});this.onScroll(r)}onScroll(n){let r=n.detail.scrollTop+5,i=this.anchors,s=i.length-1,o=this.index;for(;o>-1&&i[o].position>r;)o-=1;for(;o-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=o,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var ue=(t,e=100)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>t(r),e)}};var me=De(de());function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let n=document.querySelector("#tsd-search input"),r=document.querySelector("#tsd-search .results");if(!n||!r)throw new Error("The input field or the result list wrapper was not found");let i=!1;r.addEventListener("mousedown",()=>i=!0),r.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),n.addEventListener("focus",()=>t.classList.add("has-focus")),n.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Fe(t,r,n,s)}function Fe(t,e,n,r){n.addEventListener("input",ue(()=>{Ae(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ve(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?fe(e,-1):s.key==="ArrowDown"?fe(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function He(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=me.Index.load(window.searchData.index))}function Ae(t,e,n,r){if(He(r,t),!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s=i?r.index.search(`*${i}*`):[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o${pe(u.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=u.classes??"";let m=document.createElement("a");m.href=r.base+u.url,m.innerHTML=l,h.append(m),e.appendChild(h)}}function fe(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ve(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function pe(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ie(t.substring(s,o)),`${ie(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ie(t.substring(s))),i.join("")}var Ne={"&":"&","<":"<",">":">","'":"'",'"':"""};function ie(t){return t.replace(/[&<>"'"]/g,e=>Ne[e])}var F="mousedown",ye="mousemove",B="mouseup",Z={x:0,y:0},ge=!1,se=!1,je=!1,H=!1,xe=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(xe?"is-mobile":"not-mobile");xe&&"ontouchstart"in document.documentElement&&(je=!0,F="touchstart",ye="touchmove",B="touchend");document.addEventListener(F,t=>{se=!0,H=!1;let e=F=="touchstart"?t.targetTouches[0]:t;Z.y=e.pageY||0,Z.x=e.pageX||0});document.addEventListener(ye,t=>{if(!!se&&!H){let e=F=="touchstart"?t.targetTouches[0]:t,n=Z.x-(e.pageX||0),r=Z.y-(e.pageY||0);H=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{se=!1});document.addEventListener("click",t=>{ge&&(t.preventDefault(),t.stopImmediatePropagation(),ge=!1)});var K=class extends k{constructor(n){super(n);this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(F,r=>this.onDocumentPointerDown(r)),document.addEventListener(B,r=>this.onDocumentPointerUp(r))}setActive(n){if(this.active==n)return;this.active=n,document.documentElement.classList.toggle("has-"+this.className,n),this.el.classList.toggle("active",n);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(n){H||(this.setActive(!0),n.preventDefault())}onDocumentPointerDown(n){if(this.active){if(n.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(n){if(!H&&this.active&&n.target.closest(".col-menu")){let r=n.target.closest("a");if(r){let i=window.location.href;i.indexOf("#")!=-1&&(i=i.substring(0,i.indexOf("#"))),r.href.substring(0,i.length)==i&&setTimeout(()=>this.setActive(!1),250)}}}};var oe;try{oe=localStorage}catch{oe={getItem(){return null},setItem(){}}}var Q=oe;var Le=document.head.appendChild(document.createElement("style"));Le.dataset.for="filters";var ee=class extends k{constructor(n){super(n);this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),Le.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } -`}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.checked}setLocalStorage(n){Q.setItem(this.key,n.toString()),this.value=n,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),document.querySelectorAll(".tsd-index-section").forEach(n=>{n.style.display="block";let r=Array.from(n.querySelectorAll(".tsd-index-link")).every(i=>i.offsetParent==null);n.style.display=r?"none":"block"})}};var te=class extends k{constructor(n){super(n);this.calculateHeights(),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.textContent.replace(/\s+/g,"-").toLowerCase()}`,this.setLocalStorage(this.fromLocalStorage(),!0),this.summary.addEventListener("click",r=>this.toggleVisibility(r)),this.icon.style.transform=this.getIconRotation()}getIconRotation(n=this.el.open){return`rotate(${n?0:-90}deg)`}calculateHeights(){let n=this.el.open,{position:r,left:i}=this.el.style;this.el.style.position="fixed",this.el.style.left="-9999px",this.el.open=!0,this.expandedHeight=this.el.offsetHeight+"px",this.el.open=!1,this.collapsedHeight=this.el.offsetHeight+"px",this.el.open=n,this.el.style.height=n?this.expandedHeight:this.collapsedHeight,this.el.style.position=r,this.el.style.left=i}toggleVisibility(n){n.preventDefault(),this.el.style.overflow="hidden",this.el.open?this.collapse():this.expand()}expand(n=!0){this.el.open=!0,this.animate(this.collapsedHeight,this.expandedHeight,{opening:!0,duration:n?300:0})}collapse(n=!0){this.animate(this.expandedHeight,this.collapsedHeight,{opening:!1,duration:n?300:0})}animate(n,r,{opening:i,duration:s=300}){if(this.animation)return;let o={duration:s,easing:"ease"};this.animation=this.el.animate({height:[n,r]},o),this.icon.animate({transform:[this.icon.style.transform||this.getIconRotation(!i),this.getIconRotation(i)]},o).addEventListener("finish",()=>{this.icon.style.transform=this.getIconRotation(i)}),this.animation.addEventListener("finish",()=>this.animationEnd(i))}animationEnd(n){this.el.open=n,this.animation=void 0,this.el.style.height="auto",this.el.style.overflow="visible",this.setLocalStorage(n)}fromLocalStorage(){let n=Q.getItem(this.key);return n?n==="true":this.el.open}setLocalStorage(n,r=!1){this.fromLocalStorage()===n&&!r||(Q.setItem(this.key,n.toString()),this.el.open=n,this.handleValueChange(r))}handleValueChange(n=!1){this.fromLocalStorage()===this.el.open&&!n||(this.fromLocalStorage()?this.expand(!1):this.collapse(!1))}};function be(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,Ee(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),Ee(t.value)})}function Ee(t){document.documentElement.dataset.theme=t}ve();j(X,".menu-highlight");j(K,"a[data-toggle]");j(te,".tsd-index-accordion");j(ee,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("theme");Se&&be(Se);var Be=new Y;Object.defineProperty(window,"app",{value:Be});})(); -/*! - * lunr.Builder - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.Index - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.Pipeline - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.Set - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.TokenSet - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.Vector - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.stemmer - * Copyright (C) 2020 Oliver Nightingale - * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt - */ -/*! - * lunr.stopWordFilter - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.tokenizer - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.trimmer - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.utils - * Copyright (C) 2020 Oliver Nightingale - */ -/** - * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 - * Copyright (C) 2020 Oliver Nightingale - * @license MIT - */ +"use strict";(()=>{var Ce=Object.create;var ne=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var _e=Object.getPrototypeOf,Re=Object.prototype.hasOwnProperty;var Me=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Fe=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!Re.call(t,i)&&i!==n&&ne(t,i,{get:()=>e[i],enumerable:!(r=Pe(e,i))||r.enumerable});return t};var De=(t,e,n)=>(n=t!=null?Ce(_e(t)):{},Fe(e||!t||!t.__esModule?ne(n,"default",{value:t,enumerable:!0}):n,t));var ae=Me((se,oe)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,u],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[u+1]*i[d+1],u+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}s.str.length==1&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),y=s.str.charAt(1),p;y in s.node.edges?p=s.node.edges[y]:(p=new t.TokenSet,s.node.edges[y]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof se=="object"?oe.exports=n():e.lunr=n()}(this,function(){return t})})()});var re=[];function G(t,e){re.push({selector:e,constructor:t})}var U=class{constructor(){this.alwaysVisibleMember=null;this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){re.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(console.log("Show page"),document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){console.log("Scorlling");let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!e.checkVisibility()){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(n&&n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let r=document.createElement("p");r.classList.add("warning"),r.textContent="This member is normally hidden due to your filter settings.",n.prepend(r)}}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent="Copied!",e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent="Copy"},100)},1e3)})})}};var ie=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var de=De(ae());async function le(t,e){if(!window.searchData)return;let n=await fetch(window.searchData),r=new Blob([await n.arrayBuffer()]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();t.data=i,t.index=de.Index.load(i.index),e.classList.remove("loading"),e.classList.add("ready")}function he(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:t.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{le(e,t)}),le(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");let s=!1;i.addEventListener("mousedown",()=>s=!0),i.addEventListener("mouseup",()=>{s=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{s||(s=!1,t.classList.remove("has-focus"))}),Ae(t,i,r,e)}function Ae(t,e,n,r){n.addEventListener("input",ie(()=>{Ve(t,e,n,r)},200));let i=!1;n.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ne(e,n):s.key=="Escape"?n.blur():s.key=="ArrowUp"?ue(e,-1):s.key==="ArrowDown"?ue(e,1):i=!1}),n.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!n.matches(":focus")&&s.key==="/"&&(n.focus(),s.preventDefault())})}function Ve(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ce(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ce(l.parent,i)}.${d}`);let y=document.createElement("li");y.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=u+d,y.append(p),e.appendChild(y)}}function ue(t,e){let n=t.querySelector(".current");if(!n)n=t.querySelector(e==1?"li:first-child":"li:last-child"),n&&n.classList.add("current");else{let r=n;if(e===1)do r=r.nextElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);else do r=r.previousElementSibling??void 0;while(r instanceof HTMLElement&&r.offsetParent==null);r&&(n.classList.remove("current"),r.classList.add("current"))}}function Ne(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),e.blur()}}function ce(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(K(t.substring(s,o)),`${K(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(K(t.substring(s))),i.join("")}var He={"&":"&","<":"<",">":">","'":"'",'"':"""};function K(t){return t.replace(/[&<>"'"]/g,e=>He[e])}var I=class{constructor(e){this.el=e.el,this.app=e.app}};var F="mousedown",fe="mousemove",H="mouseup",J={x:0,y:0},pe=!1,ee=!1,Be=!1,D=!1,me=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(me?"is-mobile":"not-mobile");me&&"ontouchstart"in document.documentElement&&(Be=!0,F="touchstart",fe="touchmove",H="touchend");document.addEventListener(F,t=>{ee=!0,D=!1;let e=F=="touchstart"?t.targetTouches[0]:t;J.y=e.pageY||0,J.x=e.pageX||0});document.addEventListener(fe,t=>{if(ee&&!D){let e=F=="touchstart"?t.targetTouches[0]:t,n=J.x-(e.pageX||0),r=J.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(H,()=>{ee=!1});document.addEventListener("click",t=>{pe&&(t.preventDefault(),t.stopImmediatePropagation(),pe=!1)});var X=class extends I{constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(H,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(F,n=>this.onDocumentPointerDown(n)),document.addEventListener(H,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var te;try{te=localStorage}catch{te={getItem(){return null},setItem(){}}}var Q=te;var ye=document.head.appendChild(document.createElement("style"));ye.dataset.for="filters";var Y=class extends I{constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),ye.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=Q.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){Q.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var Z=class extends I{constructor(e){super(e),this.summary=this.el.querySelector(".tsd-accordion-summary"),this.icon=this.summary.querySelector("svg"),this.key=`tsd-accordion-${this.summary.dataset.key??this.summary.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`;let n=Q.getItem(this.key);this.el.open=n?n==="true":this.el.open,this.el.addEventListener("toggle",()=>this.update());let r=this.summary.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)}),this.update()}update(){this.icon.style.transform=`rotate(${this.el.open?0:-90}deg)`,Q.setItem(this.key,this.el.open.toString())}};function ge(t){let e=Q.getItem("tsd-theme")||"os";t.value=e,ve(e),t.addEventListener("change",()=>{Q.setItem("tsd-theme",t.value),ve(t.value)})}function ve(t){document.documentElement.dataset.theme=t}var Le;function be(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",xe),xe())}async function xe(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let n=await(await fetch(window.navigationData)).arrayBuffer(),r=new Blob([n]).stream().pipeThrough(new DecompressionStream("gzip")),i=await new Response(r).json();Le=t.dataset.base+"/",t.innerHTML="";for(let s of i)we(s,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function we(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-index-accordion`:"tsd-index-accordion",s.dataset.key=i.join("$");let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.innerHTML='',Ee(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let u of t.children)we(u,l,i)}else Ee(t,r,t.class)}function Ee(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));r.href=Le+t.path,n&&(r.className=n),location.pathname===r.pathname&&r.classList.add("current"),t.kind&&(r.innerHTML=``),r.appendChild(document.createElement("span")).textContent=t.text}else e.appendChild(document.createElement("span")).textContent=t.text}G(X,"a[data-toggle]");G(Z,".tsd-index-accordion");G(Y,".tsd-filter-item input[type=checkbox]");var Se=document.getElementById("tsd-theme");Se&&ge(Se);var je=new U;Object.defineProperty(window,"app",{value:je});he();be();})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js new file mode 100644 index 000000000..6de6e93e8 --- /dev/null +++ b/docs/assets/navigation.js @@ -0,0 +1 @@ +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAA72bWXPbNhRG/4v6mi5Z2+TNa+vUkV1JTR46GQ9NQTLHNKmCkBNPJ/+9Q1FcAN4NKtDHhPeeQ1EUTd4P/OufiVFfzeTdJCuW6uvk2WSTmLvJu8lDudzmqvpx998/3JmHfPJscp8Vy8m7F88m6V2WL7UqJu/+6gCn2/T+9PgoTVVVfSiXqmepYvvQktwqG/3Lt2cO7zQxybUuTZmWOUUc1nHMc5WYrSZ3cF+Ck86zXJ3nybqCKd1mnPB+fjVdJLe5mt8lG2Rn7BqcdVmuzx5VYWBKu5Xsv1SPCjnC7Vay/0pn66xAAc1mkrAoN1mKAnZb8f65Scy2OkHPu347zliU96pYPGFfRrcZJ3wq9b3SM/X3VlUGJ43KeGK1KYtK8ci+DmceVU9F2pznPSzNk6rqfvCDEpvz/AVCOimLQqUmKwsBsy8W0k+zapOY9E5pAb0vZunXWm0SrZb16aEerF8QgB9Vs/yZqra5mRutkocLo3RiSvoTQA2U5aQsqjJXl+V6jR8bq4iiNcfvOCuWWbGujpNKYchxJc/lTxGfs6O+xNZfRFaZLK0wol1F8cSngtdZ4HMC+H73H8tsSX/xfQXFaa4di6S6xzh9BXnGa11+uSgqpc3Vpv76Bt9KVhilV0nan+2jYucu4/Ub+FLQnnMUe1xNwU/mH6V77ZZSWPHuyvd0X7ktlrnigbsyKU6wg00dDzwpi1W2ZnlNGY+rf8IXxapkgW2hDFk9VUY9CPfVbeAVv+blbZKL990u5/EfdvfnLLYp43F/bJV+Eh6LQS0Pnm0Lkz3wO7qvo4D1wTnOy/QeuuqPsEA1Bb8oKpMUJkvqn/W1LtdaVRQerKcE9a289CozqqXA7l+AEQ36A2Ajrhd3WiVLgrGvICF5Ylalftg/OlGfzy2lsPOX7GnZlpCYVGcbs7uFp/ZsWEbhPqnb+gQjSPsK8u9Od59zcdqTzNNmeOPWVTikn97+/Pz1C+4M/i2pr9kaplMdnK1+piyMfoLJ7VYp5WOis2R4xwXB9kUcs7stww7qoIBjWQ9qMM0q8eKRHxqqlNKbZ0Ca29T4EUU7bJXK+PV95UyZrXYevsd4u1JOF+z5oIzjnp6dH/15ubiZ/TldXHw466mPdf9tPzZzCm3uyyHy+ujk96Nfz26mRxRvWCWAfTybzS+upjxvXyhH3nw4en81E4Obch/8xdQLX5d74K+PFie/yfG7cgKfJnk+n6nB6bXaFrurdktsK2zIm1dDSLl5Ot6uVsOL9QjT1VAgrRKjmpOaQA2qCNhSpeVSLep/oKi+hgLpctNeHJqPUBHEcTGBXiVZ/ikzdzivrSAga2XeV6cqzx716HnIxY1raXA7f71MbocjVgBrVbLQ3VBWBO0rWWgzqBVRB6Usdje+FVH7ShqK328CXPqO00Jn1Xmm1ar8igO7EhIztYbRY8Z0NIx2APNkleiMQjQVBKS+aZ8bnRVrHNPXEKBK5So17uTBRQ2rRrDPA5xJ9FqZ+juDoqTlNr1f3o7DqH3XTbNdlEqBs26C953d0LBfPX/76uVPw8NBzqOE+EGjQAMNT4Uiq1WggobtQpXVSqqIcSvrgnpJGT2FZX1IO6aEn+soi9NBgKFhP0O2WjA0nt5SdKCLFrgXEB7edUjAwh+h20Kj3fkDT+46aDCcbfN4p4+W4KNOXgT00jJwjMh77DZMwYzoKA3W6qUazVK8jT0BE4/HKpRkUM0BR0/AEm7fROEfxRfvQTUBdFYiMMC2mgC6SxMYYldOIJ21CgyxrSaA4gs6eyWHRwkU0ungwKOxgoTdNwnx7ojBQ9K1ilX2uMFLtW+VqpzRg4+qbUVV6AMRaRl3YQJ4hk7BnQ4UDI1sSa7VQGHdNUEctavHoMAiIYo5LMeQUI5PMa16DDpKKChiX4zi4Ek4CXVaRGj5kYXaRAqvP4VIJydyR/ASRdcjg/sfKatPJjnoWLmttMped8Lz9/U8FIoUZHirkxcdcJDsNkwBj3IputOBgalpJ4UH+wgJMvlkFG4XLYCmoLzA6qIF4ESUN9httAKajvIGq4sQHHZjADdiGmBqSsGH5ThyKv7T3dXiMHeaSuO6agwID0QpqNNhg4fD0abp+1tdfqmU/v62XsViTXBhy82+4aZtkA1IiUV7Pp7vQBA6yUKX3Hk5AUyQ2Rmmkw7TsIDYyzamhBreYULvaZ5w9E36BGNwalnyfzDuQSEmlrQv6AhToAo10yRVwpGgPLfgbHyG4T9WJZ1+c1b3paIDhD2Dn+naq0oPkfWQsBNk1uo1UsbW0R7gHqFos7vE9gBjhwg2Nid1sjk6sjD3AF/PwFzkml0vI0yivM7red62tp9yBPlYok90UPqBSP/POMRnF/h8hFhF7aWHOJQTelHTW2hB/msChHjCR0KMKFxGRIgChUa4IViKhCuCxUq4IkzOhPPDBU+II04SxcgiRVMya5ysSuqOEV4J3Wya5b6T4mfrukOlZZhIPiLzXvGEKT1WPx2y8AnRei6CGr+342UbtIeIIzGLPJ+UBYmYJ2iyiEjCRo2IJGT2iCj4MHK84N5LMGhHDcBqfD/HEIBZoNX1XhYLgFqopfd+OpCEecfr8r1kg/ZwMRbiippr4c5YQRdpjJN8kco4URipjJWN4dIYYRliC5eeoYJAcRrKZ/M16M0FL4cFCJHiIR4y1utNx7OrT/OzGfXSIKdzEHa8Z7+RtlsG4L720L+twZmG/eR7HPuosiiXSp5T1tXRQ8qxJHJCCQijxZOQK1I2CagiBpOQLVoqicriRJKsLmQeicvChpGMJ1gSiXrCx5CUKkoGiQqjBJCoLXj6iJuiRY+kMmbuiIrjhI6oLkLiiLpixI2oLE7WCOhiBY2IKnDKiFgiRoyA8X/NF6X+GOEi4I6YLCK2sLEiIImQKRKWgIEiYgmVJsL4cFEizA+XI8L8QCEiDA+YIAKCSPEhYYqVHfLKSMGhRBwlNRSIQ0WGkCp8XghZYoaFkC92Ugg4Y8WEgCp0RggpggeEkCRsOggYAkeDgCFoLgjwA4aCAD1sIggJAseBgCJaFgi54gSBgClOCgiI4kaAsDBa/ofqIoV/qC9S8of6osV+sDFK5geoAgZ+ID1U2gfCQ0Z9gCB8zgdIhCHf9Or0zCPhs0XD5nDZnu1ggr3P3z7/C2k2XGISaAAA" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index d3f31561e..22e403bd1 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"kinds\":{\"2\":\"Module\",\"8\":\"Enumeration\",\"16\":\"Enumeration Member\",\"32\":\"Variable\",\"64\":\"Function\",\"128\":\"Class\",\"256\":\"Interface\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"65536\":\"Type literal\",\"262144\":\"Accessor\",\"4194304\":\"Type alias\",\"8388608\":\"Reference\"},\"rows\":[{\"kind\":2,\"name\":\"index\",\"url\":\"modules/index.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":2,\"name\":\"targets/duckdb\",\"url\":\"modules/targets_duckdb.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":2,\"name\":\"targets/duckdb-browser-blocking\",\"url\":\"modules/targets_duckdb_browser_blocking.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":64,\"name\":\"createDuckDB\",\"url\":\"functions/targets_duckdb_browser_blocking.createDuckDB.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":2,\"name\":\"targets/duckdb-node-blocking\",\"url\":\"modules/targets_duckdb_node_blocking.html\",\"classes\":\"tsd-kind-module\"},{\"kind\":64,\"name\":\"createDuckDB\",\"url\":\"functions/targets_duckdb_node_blocking.createDuckDB.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":256,\"name\":\"DuckDBBindings\",\"url\":\"interfaces/index.DuckDBBindings.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":2048,\"name\":\"open\",\"url\":\"interfaces/index.DuckDBBindings.html#open\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"reset\",\"url\":\"interfaces/index.DuckDBBindings.html#reset\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"instantiate\",\"url\":\"interfaces/index.DuckDBBindings.html#instantiate\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"getVersion\",\"url\":\"interfaces/index.DuckDBBindings.html#getVersion\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"getFeatureFlags\",\"url\":\"interfaces/index.DuckDBBindings.html#getFeatureFlags\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"tokenize\",\"url\":\"interfaces/index.DuckDBBindings.html#tokenize\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"connect\",\"url\":\"interfaces/index.DuckDBBindings.html#connect\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"disconnect\",\"url\":\"interfaces/index.DuckDBBindings.html#disconnect\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"runQuery\",\"url\":\"interfaces/index.DuckDBBindings.html#runQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"startPendingQuery\",\"url\":\"interfaces/index.DuckDBBindings.html#startPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"pollPendingQuery\",\"url\":\"interfaces/index.DuckDBBindings.html#pollPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"cancelPendingQuery\",\"url\":\"interfaces/index.DuckDBBindings.html#cancelPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"fetchQueryResults\",\"url\":\"interfaces/index.DuckDBBindings.html#fetchQueryResults\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"getTableNames\",\"url\":\"interfaces/index.DuckDBBindings.html#getTableNames\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"createPrepared\",\"url\":\"interfaces/index.DuckDBBindings.html#createPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"closePrepared\",\"url\":\"interfaces/index.DuckDBBindings.html#closePrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"runPrepared\",\"url\":\"interfaces/index.DuckDBBindings.html#runPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"sendPrepared\",\"url\":\"interfaces/index.DuckDBBindings.html#sendPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"createScalarFunction\",\"url\":\"interfaces/index.DuckDBBindings.html#createScalarFunction\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"insertArrowFromIPCStream\",\"url\":\"interfaces/index.DuckDBBindings.html#insertArrowFromIPCStream\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"insertCSVFromPath\",\"url\":\"interfaces/index.DuckDBBindings.html#insertCSVFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"insertJSONFromPath\",\"url\":\"interfaces/index.DuckDBBindings.html#insertJSONFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"registerFileURL\",\"url\":\"interfaces/index.DuckDBBindings.html#registerFileURL\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"registerFileText\",\"url\":\"interfaces/index.DuckDBBindings.html#registerFileText\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"registerFileBuffer\",\"url\":\"interfaces/index.DuckDBBindings.html#registerFileBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"registerFileHandle\",\"url\":\"interfaces/index.DuckDBBindings.html#registerFileHandle\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"globFiles\",\"url\":\"interfaces/index.DuckDBBindings.html#globFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"dropFile\",\"url\":\"interfaces/index.DuckDBBindings.html#dropFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"dropFiles\",\"url\":\"interfaces/index.DuckDBBindings.html#dropFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"flushFiles\",\"url\":\"interfaces/index.DuckDBBindings.html#flushFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"copyFileToPath\",\"url\":\"interfaces/index.DuckDBBindings.html#copyFileToPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"copyFileToBuffer\",\"url\":\"interfaces/index.DuckDBBindings.html#copyFileToBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"collectFileStatistics\",\"url\":\"interfaces/index.DuckDBBindings.html#collectFileStatistics\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":2048,\"name\":\"exportFileStatistics\",\"url\":\"interfaces/index.DuckDBBindings.html#exportFileStatistics\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBindings\"},{\"kind\":8,\"name\":\"DuckDBFeature\",\"url\":\"enums/index.DuckDBFeature.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"WASM_EXCEPTIONS\",\"url\":\"enums/index.DuckDBFeature.html#WASM_EXCEPTIONS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBFeature\"},{\"kind\":16,\"name\":\"WASM_THREADS\",\"url\":\"enums/index.DuckDBFeature.html#WASM_THREADS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBFeature\"},{\"kind\":16,\"name\":\"WASM_SIMD\",\"url\":\"enums/index.DuckDBFeature.html#WASM_SIMD\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBFeature\"},{\"kind\":16,\"name\":\"WASM_BULK_MEMORY\",\"url\":\"enums/index.DuckDBFeature.html#WASM_BULK_MEMORY\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBFeature\"},{\"kind\":16,\"name\":\"EMIT_BIGINT\",\"url\":\"enums/index.DuckDBFeature.html#EMIT_BIGINT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBFeature\"},{\"kind\":128,\"name\":\"DuckDBBindingsBase\",\"url\":\"classes/index.DuckDBBindingsBase.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.DuckDBBindingsBase.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":262144,\"name\":\"logger\",\"url\":\"classes/index.DuckDBBindingsBase.html#logger\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":262144,\"name\":\"mod\",\"url\":\"classes/index.DuckDBBindingsBase.html#mod\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":262144,\"name\":\"pthread\",\"url\":\"classes/index.DuckDBBindingsBase.html#pthread\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"instantiate\",\"url\":\"classes/index.DuckDBBindingsBase.html#instantiate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"open\",\"url\":\"classes/index.DuckDBBindingsBase.html#open\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"reset\",\"url\":\"classes/index.DuckDBBindingsBase.html#reset\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"getVersion\",\"url\":\"classes/index.DuckDBBindingsBase.html#getVersion\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"getFeatureFlags\",\"url\":\"classes/index.DuckDBBindingsBase.html#getFeatureFlags\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"tokenize\",\"url\":\"classes/index.DuckDBBindingsBase.html#tokenize\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"connect\",\"url\":\"classes/index.DuckDBBindingsBase.html#connect\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"disconnect\",\"url\":\"classes/index.DuckDBBindingsBase.html#disconnect\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"runQuery\",\"url\":\"classes/index.DuckDBBindingsBase.html#runQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"startPendingQuery\",\"url\":\"classes/index.DuckDBBindingsBase.html#startPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"pollPendingQuery\",\"url\":\"classes/index.DuckDBBindingsBase.html#pollPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"cancelPendingQuery\",\"url\":\"classes/index.DuckDBBindingsBase.html#cancelPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"fetchQueryResults\",\"url\":\"classes/index.DuckDBBindingsBase.html#fetchQueryResults\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"getTableNames\",\"url\":\"classes/index.DuckDBBindingsBase.html#getTableNames\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"createScalarFunction\",\"url\":\"classes/index.DuckDBBindingsBase.html#createScalarFunction\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"createPrepared\",\"url\":\"classes/index.DuckDBBindingsBase.html#createPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"closePrepared\",\"url\":\"classes/index.DuckDBBindingsBase.html#closePrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"runPrepared\",\"url\":\"classes/index.DuckDBBindingsBase.html#runPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"sendPrepared\",\"url\":\"classes/index.DuckDBBindingsBase.html#sendPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"insertArrowFromIPCStream\",\"url\":\"classes/index.DuckDBBindingsBase.html#insertArrowFromIPCStream\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"insertCSVFromPath\",\"url\":\"classes/index.DuckDBBindingsBase.html#insertCSVFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"insertJSONFromPath\",\"url\":\"classes/index.DuckDBBindingsBase.html#insertJSONFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"globFiles\",\"url\":\"classes/index.DuckDBBindingsBase.html#globFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"registerFileURL\",\"url\":\"classes/index.DuckDBBindingsBase.html#registerFileURL\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"registerFileText\",\"url\":\"classes/index.DuckDBBindingsBase.html#registerFileText\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"registerFileBuffer\",\"url\":\"classes/index.DuckDBBindingsBase.html#registerFileBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"registerFileHandle\",\"url\":\"classes/index.DuckDBBindingsBase.html#registerFileHandle\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"dropFile\",\"url\":\"classes/index.DuckDBBindingsBase.html#dropFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"dropFiles\",\"url\":\"classes/index.DuckDBBindingsBase.html#dropFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"flushFiles\",\"url\":\"classes/index.DuckDBBindingsBase.html#flushFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"copyFileToPath\",\"url\":\"classes/index.DuckDBBindingsBase.html#copyFileToPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"copyFileToBuffer\",\"url\":\"classes/index.DuckDBBindingsBase.html#copyFileToBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"collectFileStatistics\",\"url\":\"classes/index.DuckDBBindingsBase.html#collectFileStatistics\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":2048,\"name\":\"exportFileStatistics\",\"url\":\"classes/index.DuckDBBindingsBase.html#exportFileStatistics\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBBindingsBase\"},{\"kind\":256,\"name\":\"DuckDBQueryConfig\",\"url\":\"interfaces/index.DuckDBQueryConfig.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"queryPollingInterval\",\"url\":\"interfaces/index.DuckDBQueryConfig.html#queryPollingInterval\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBQueryConfig\"},{\"kind\":1024,\"name\":\"castBigIntToDouble\",\"url\":\"interfaces/index.DuckDBQueryConfig.html#castBigIntToDouble\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBQueryConfig\"},{\"kind\":1024,\"name\":\"castTimestampToDate\",\"url\":\"interfaces/index.DuckDBQueryConfig.html#castTimestampToDate\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBQueryConfig\"},{\"kind\":1024,\"name\":\"castDurationToTime64\",\"url\":\"interfaces/index.DuckDBQueryConfig.html#castDurationToTime64\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBQueryConfig\"},{\"kind\":1024,\"name\":\"castDecimalToDouble\",\"url\":\"interfaces/index.DuckDBQueryConfig.html#castDecimalToDouble\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBQueryConfig\"},{\"kind\":256,\"name\":\"DuckDBFilesystemConfig\",\"url\":\"interfaces/index.DuckDBFilesystemConfig.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"allowFullHTTPReads\",\"url\":\"interfaces/index.DuckDBFilesystemConfig.html#allowFullHTTPReads\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBFilesystemConfig\"},{\"kind\":256,\"name\":\"DuckDBConfig\",\"url\":\"interfaces/index.DuckDBConfig.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"path\",\"url\":\"interfaces/index.DuckDBConfig.html#path\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBConfig\"},{\"kind\":1024,\"name\":\"maximumThreads\",\"url\":\"interfaces/index.DuckDBConfig.html#maximumThreads\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBConfig\"},{\"kind\":1024,\"name\":\"query\",\"url\":\"interfaces/index.DuckDBConfig.html#query\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBConfig\"},{\"kind\":1024,\"name\":\"filesystem\",\"url\":\"interfaces/index.DuckDBConfig.html#filesystem\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBConfig\"},{\"kind\":128,\"name\":\"DuckDBConnection\",\"url\":\"classes/index.DuckDBConnection.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.DuckDBConnection.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"close\",\"url\":\"classes/index.DuckDBConnection.html#close\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"useUnsafe\",\"url\":\"classes/index.DuckDBConnection.html#useUnsafe\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"query\",\"url\":\"classes/index.DuckDBConnection.html#query\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"send\",\"url\":\"classes/index.DuckDBConnection.html#send\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"cancelSent\",\"url\":\"classes/index.DuckDBConnection.html#cancelSent\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"getTableNames\",\"url\":\"classes/index.DuckDBConnection.html#getTableNames\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"prepare\",\"url\":\"classes/index.DuckDBConnection.html#prepare\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"createScalarFunction\",\"url\":\"classes/index.DuckDBConnection.html#createScalarFunction\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"insertArrowTable\",\"url\":\"classes/index.DuckDBConnection.html#insertArrowTable\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"insertArrowFromIPCStream\",\"url\":\"classes/index.DuckDBConnection.html#insertArrowFromIPCStream\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"insertCSVFromPath\",\"url\":\"classes/index.DuckDBConnection.html#insertCSVFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":2048,\"name\":\"insertJSONFromPath\",\"url\":\"classes/index.DuckDBConnection.html#insertJSONFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.DuckDBConnection\"},{\"kind\":128,\"name\":\"ResultStreamIterator\",\"url\":\"classes/index.ResultStreamIterator.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.ResultStreamIterator.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.ResultStreamIterator\"},{\"kind\":1024,\"name\":\"_first\",\"url\":\"classes/index.ResultStreamIterator.html#_first\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.ResultStreamIterator\"},{\"kind\":1024,\"name\":\"_depleted\",\"url\":\"classes/index.ResultStreamIterator.html#_depleted\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.ResultStreamIterator\"},{\"kind\":2048,\"name\":\"next\",\"url\":\"classes/index.ResultStreamIterator.html#next\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.ResultStreamIterator\"},{\"kind\":2048,\"name\":\"[iterator]\",\"url\":\"classes/index.ResultStreamIterator.html#_iterator_\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.ResultStreamIterator\"},{\"kind\":128,\"name\":\"PreparedStatement\",\"url\":\"classes/index.PreparedStatement.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.PreparedStatement.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.PreparedStatement\"},{\"kind\":2048,\"name\":\"close\",\"url\":\"classes/index.PreparedStatement.html#close\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.PreparedStatement\"},{\"kind\":2048,\"name\":\"query\",\"url\":\"classes/index.PreparedStatement.html#query\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.PreparedStatement\"},{\"kind\":2048,\"name\":\"send\",\"url\":\"classes/index.PreparedStatement.html#send\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.PreparedStatement\"},{\"kind\":256,\"name\":\"PThread\",\"url\":\"interfaces/index.PThread.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"unusedWorkers\",\"url\":\"interfaces/index.PThread.html#unusedWorkers\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.PThread\"},{\"kind\":1024,\"name\":\"runningWorkers\",\"url\":\"interfaces/index.PThread.html#runningWorkers\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.PThread\"},{\"kind\":256,\"name\":\"DuckDBModule\",\"url\":\"interfaces/index.DuckDBModule.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"stackSave\",\"url\":\"interfaces/index.DuckDBModule.html#stackSave\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBModule.html#__type-10\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":1024,\"name\":\"stackAlloc\",\"url\":\"interfaces/index.DuckDBModule.html#stackAlloc\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBModule.html#__type-6\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":1024,\"name\":\"stackRestore\",\"url\":\"interfaces/index.DuckDBModule.html#stackRestore\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBModule.html#__type-8\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":1024,\"name\":\"ccall\",\"url\":\"interfaces/index.DuckDBModule.html#ccall\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBModule.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":1024,\"name\":\"PThread\",\"url\":\"interfaces/index.DuckDBModule.html#PThread\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBModule.html#__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBModule.html#__type-4\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBModule\"},{\"kind\":256,\"name\":\"FileBlockStatistics\",\"url\":\"interfaces/index.FileBlockStatistics.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"file_reads_cold\",\"url\":\"interfaces/index.FileBlockStatistics.html#file_reads_cold\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.FileBlockStatistics\"},{\"kind\":1024,\"name\":\"file_reads_ahead\",\"url\":\"interfaces/index.FileBlockStatistics.html#file_reads_ahead\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.FileBlockStatistics\"},{\"kind\":1024,\"name\":\"file_reads_cached\",\"url\":\"interfaces/index.FileBlockStatistics.html#file_reads_cached\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.FileBlockStatistics\"},{\"kind\":1024,\"name\":\"file_writes\",\"url\":\"interfaces/index.FileBlockStatistics.html#file_writes\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.FileBlockStatistics\"},{\"kind\":1024,\"name\":\"page_accesses\",\"url\":\"interfaces/index.FileBlockStatistics.html#page_accesses\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.FileBlockStatistics\"},{\"kind\":1024,\"name\":\"page_loads\",\"url\":\"interfaces/index.FileBlockStatistics.html#page_loads\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.FileBlockStatistics\"},{\"kind\":128,\"name\":\"FileStatistics\",\"url\":\"classes/index.FileStatistics.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.FileStatistics.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":1024,\"name\":\"totalFileReadsCold\",\"url\":\"classes/index.FileStatistics.html#totalFileReadsCold\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":1024,\"name\":\"totalFileReadsAhead\",\"url\":\"classes/index.FileStatistics.html#totalFileReadsAhead\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":1024,\"name\":\"totalFileReadsCached\",\"url\":\"classes/index.FileStatistics.html#totalFileReadsCached\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":1024,\"name\":\"totalFileWrites\",\"url\":\"classes/index.FileStatistics.html#totalFileWrites\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":1024,\"name\":\"totalPageAccesses\",\"url\":\"classes/index.FileStatistics.html#totalPageAccesses\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":1024,\"name\":\"totalPageLoads\",\"url\":\"classes/index.FileStatistics.html#totalPageLoads\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":1024,\"name\":\"blockSize\",\"url\":\"classes/index.FileStatistics.html#blockSize\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":1024,\"name\":\"blockStats\",\"url\":\"classes/index.FileStatistics.html#blockStats\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":2048,\"name\":\"getBlockStats\",\"url\":\"classes/index.FileStatistics.html#getBlockStats\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.FileStatistics\"},{\"kind\":64,\"name\":\"failWith\",\"url\":\"functions/index.failWith.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"copyBuffer\",\"url\":\"functions/index.copyBuffer.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"readString\",\"url\":\"functions/index.readString.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"callSRet\",\"url\":\"functions/index.callSRet.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"dropResponseBuffers\",\"url\":\"functions/index.dropResponseBuffers.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"decodeText\",\"url\":\"functions/index.decodeText.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":8,\"name\":\"DuckDBDataProtocol\",\"url\":\"enums/index.DuckDBDataProtocol.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"BUFFER\",\"url\":\"enums/index.DuckDBDataProtocol.html#BUFFER\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBDataProtocol\"},{\"kind\":16,\"name\":\"NODE_FS\",\"url\":\"enums/index.DuckDBDataProtocol.html#NODE_FS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBDataProtocol\"},{\"kind\":16,\"name\":\"BROWSER_FILEREADER\",\"url\":\"enums/index.DuckDBDataProtocol.html#BROWSER_FILEREADER\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBDataProtocol\"},{\"kind\":16,\"name\":\"BROWSER_FSACCESS\",\"url\":\"enums/index.DuckDBDataProtocol.html#BROWSER_FSACCESS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBDataProtocol\"},{\"kind\":16,\"name\":\"HTTP\",\"url\":\"enums/index.DuckDBDataProtocol.html#HTTP\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBDataProtocol\"},{\"kind\":16,\"name\":\"S3\",\"url\":\"enums/index.DuckDBDataProtocol.html#S3\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.DuckDBDataProtocol\"},{\"kind\":8,\"name\":\"FileFlags\",\"url\":\"enums/index.FileFlags.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"FILE_FLAGS_READ\",\"url\":\"enums/index.FileFlags.html#FILE_FLAGS_READ\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.FileFlags\"},{\"kind\":16,\"name\":\"FILE_FLAGS_WRITE\",\"url\":\"enums/index.FileFlags.html#FILE_FLAGS_WRITE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.FileFlags\"},{\"kind\":16,\"name\":\"FILE_FLAGS_DIRECT_IO\",\"url\":\"enums/index.FileFlags.html#FILE_FLAGS_DIRECT_IO\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.FileFlags\"},{\"kind\":16,\"name\":\"FILE_FLAGS_FILE_CREATE\",\"url\":\"enums/index.FileFlags.html#FILE_FLAGS_FILE_CREATE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.FileFlags\"},{\"kind\":16,\"name\":\"FILE_FLAGS_FILE_CREATE_NEW\",\"url\":\"enums/index.FileFlags.html#FILE_FLAGS_FILE_CREATE_NEW\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.FileFlags\"},{\"kind\":16,\"name\":\"FILE_FLAGS_APPEND\",\"url\":\"enums/index.FileFlags.html#FILE_FLAGS_APPEND\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.FileFlags\"},{\"kind\":256,\"name\":\"S3Config\",\"url\":\"interfaces/index.S3Config.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"region\",\"url\":\"interfaces/index.S3Config.html#region\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.S3Config\"},{\"kind\":1024,\"name\":\"endpoint\",\"url\":\"interfaces/index.S3Config.html#endpoint\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.S3Config\"},{\"kind\":1024,\"name\":\"accessKeyId\",\"url\":\"interfaces/index.S3Config.html#accessKeyId\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.S3Config\"},{\"kind\":1024,\"name\":\"secretAccessKey\",\"url\":\"interfaces/index.S3Config.html#secretAccessKey\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.S3Config\"},{\"kind\":1024,\"name\":\"sessionToken\",\"url\":\"interfaces/index.S3Config.html#sessionToken\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.S3Config\"},{\"kind\":256,\"name\":\"DuckDBFileInfo\",\"url\":\"interfaces/index.DuckDBFileInfo.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"cacheEpoch\",\"url\":\"interfaces/index.DuckDBFileInfo.html#cacheEpoch\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBFileInfo\"},{\"kind\":1024,\"name\":\"fileId\",\"url\":\"interfaces/index.DuckDBFileInfo.html#fileId\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBFileInfo\"},{\"kind\":1024,\"name\":\"fileName\",\"url\":\"interfaces/index.DuckDBFileInfo.html#fileName\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBFileInfo\"},{\"kind\":1024,\"name\":\"dataProtocol\",\"url\":\"interfaces/index.DuckDBFileInfo.html#dataProtocol\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBFileInfo\"},{\"kind\":1024,\"name\":\"dataUrl\",\"url\":\"interfaces/index.DuckDBFileInfo.html#dataUrl\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBFileInfo\"},{\"kind\":1024,\"name\":\"allowFullHttpReads\",\"url\":\"interfaces/index.DuckDBFileInfo.html#allowFullHttpReads\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBFileInfo\"},{\"kind\":1024,\"name\":\"s3Config\",\"url\":\"interfaces/index.DuckDBFileInfo.html#s3Config\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBFileInfo\"},{\"kind\":256,\"name\":\"DuckDBGlobalFileInfo\",\"url\":\"interfaces/index.DuckDBGlobalFileInfo.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"cacheEpoch\",\"url\":\"interfaces/index.DuckDBGlobalFileInfo.html#cacheEpoch\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBGlobalFileInfo\"},{\"kind\":1024,\"name\":\"allowFullHttpReads\",\"url\":\"interfaces/index.DuckDBGlobalFileInfo.html#allowFullHttpReads\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBGlobalFileInfo\"},{\"kind\":1024,\"name\":\"s3Config\",\"url\":\"interfaces/index.DuckDBGlobalFileInfo.html#s3Config\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBGlobalFileInfo\"},{\"kind\":256,\"name\":\"DuckDBRuntime\",\"url\":\"interfaces/index.DuckDBRuntime.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"_files\",\"url\":\"interfaces/index.DuckDBRuntime.html#_files\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":1024,\"name\":\"_udfFunctions\",\"url\":\"interfaces/index.DuckDBRuntime.html#_udfFunctions\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"testPlatformFeature\",\"url\":\"interfaces/index.DuckDBRuntime.html#testPlatformFeature\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"getDefaultDataProtocol\",\"url\":\"interfaces/index.DuckDBRuntime.html#getDefaultDataProtocol\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"openFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#openFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"syncFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#syncFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"closeFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#closeFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"getLastFileModificationTime\",\"url\":\"interfaces/index.DuckDBRuntime.html#getLastFileModificationTime\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"truncateFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#truncateFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"readFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#readFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"writeFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#writeFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"removeDirectory\",\"url\":\"interfaces/index.DuckDBRuntime.html#removeDirectory\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"checkDirectory\",\"url\":\"interfaces/index.DuckDBRuntime.html#checkDirectory\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"createDirectory\",\"url\":\"interfaces/index.DuckDBRuntime.html#createDirectory\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"listDirectoryEntries\",\"url\":\"interfaces/index.DuckDBRuntime.html#listDirectoryEntries\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"glob\",\"url\":\"interfaces/index.DuckDBRuntime.html#glob\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"moveFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#moveFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"checkFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#checkFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"removeFile\",\"url\":\"interfaces/index.DuckDBRuntime.html#removeFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":2048,\"name\":\"callScalarUDF\",\"url\":\"interfaces/index.DuckDBRuntime.html#callScalarUDF\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.DuckDBRuntime\"},{\"kind\":32,\"name\":\"DEFAULT_RUNTIME\",\"url\":\"variables/index.DEFAULT_RUNTIME.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":8,\"name\":\"JSONTableShape\",\"url\":\"enums/index.JSONTableShape.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"ROW_ARRAY\",\"url\":\"enums/index.JSONTableShape.html#ROW_ARRAY\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.JSONTableShape\"},{\"kind\":16,\"name\":\"COLUMN_OBJECT\",\"url\":\"enums/index.JSONTableShape.html#COLUMN_OBJECT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.JSONTableShape\"},{\"kind\":256,\"name\":\"JSONInsertOptions\",\"url\":\"interfaces/index.JSONInsertOptions.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"interfaces/index.JSONInsertOptions.html#name\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.JSONInsertOptions\"},{\"kind\":1024,\"name\":\"schema\",\"url\":\"interfaces/index.JSONInsertOptions.html#schema\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.JSONInsertOptions\"},{\"kind\":1024,\"name\":\"create\",\"url\":\"interfaces/index.JSONInsertOptions.html#create\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.JSONInsertOptions\"},{\"kind\":1024,\"name\":\"shape\",\"url\":\"interfaces/index.JSONInsertOptions.html#shape\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.JSONInsertOptions\"},{\"kind\":1024,\"name\":\"columns\",\"url\":\"interfaces/index.JSONInsertOptions.html#columns\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.JSONInsertOptions\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.JSONInsertOptions.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.JSONInsertOptions\"},{\"kind\":1024,\"name\":\"columnsFlat\",\"url\":\"interfaces/index.JSONInsertOptions.html#columnsFlat\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.JSONInsertOptions\"},{\"kind\":256,\"name\":\"CSVInsertOptions\",\"url\":\"interfaces/index.CSVInsertOptions.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"interfaces/index.CSVInsertOptions.html#name\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"schema\",\"url\":\"interfaces/index.CSVInsertOptions.html#schema\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"create\",\"url\":\"interfaces/index.CSVInsertOptions.html#create\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"header\",\"url\":\"interfaces/index.CSVInsertOptions.html#header\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"delimiter\",\"url\":\"interfaces/index.CSVInsertOptions.html#delimiter\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"quote\",\"url\":\"interfaces/index.CSVInsertOptions.html#quote\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"escape\",\"url\":\"interfaces/index.CSVInsertOptions.html#escape\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"skip\",\"url\":\"interfaces/index.CSVInsertOptions.html#skip\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"detect\",\"url\":\"interfaces/index.CSVInsertOptions.html#detect\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"dateFormat\",\"url\":\"interfaces/index.CSVInsertOptions.html#dateFormat\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"timestampFormat\",\"url\":\"interfaces/index.CSVInsertOptions.html#timestampFormat\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"columns\",\"url\":\"interfaces/index.CSVInsertOptions.html#columns\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.CSVInsertOptions.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":1024,\"name\":\"columnsFlat\",\"url\":\"interfaces/index.CSVInsertOptions.html#columnsFlat\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.CSVInsertOptions\"},{\"kind\":256,\"name\":\"ArrowInsertOptions\",\"url\":\"interfaces/index.ArrowInsertOptions.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"name\",\"url\":\"interfaces/index.ArrowInsertOptions.html#name\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.ArrowInsertOptions\"},{\"kind\":1024,\"name\":\"schema\",\"url\":\"interfaces/index.ArrowInsertOptions.html#schema\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.ArrowInsertOptions\"},{\"kind\":1024,\"name\":\"create\",\"url\":\"interfaces/index.ArrowInsertOptions.html#create\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.ArrowInsertOptions\"},{\"kind\":256,\"name\":\"InstantiationProgress\",\"url\":\"interfaces/index.InstantiationProgress.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"startedAt\",\"url\":\"interfaces/index.InstantiationProgress.html#startedAt\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.InstantiationProgress\"},{\"kind\":1024,\"name\":\"updatedAt\",\"url\":\"interfaces/index.InstantiationProgress.html#updatedAt\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.InstantiationProgress\"},{\"kind\":1024,\"name\":\"bytesTotal\",\"url\":\"interfaces/index.InstantiationProgress.html#bytesTotal\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.InstantiationProgress\"},{\"kind\":1024,\"name\":\"bytesLoaded\",\"url\":\"interfaces/index.InstantiationProgress.html#bytesLoaded\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.InstantiationProgress\"},{\"kind\":4194304,\"name\":\"InstantiationProgressHandler\",\"url\":\"types/index.InstantiationProgressHandler.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/index.InstantiationProgressHandler.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"index.InstantiationProgressHandler\"},{\"kind\":64,\"name\":\"getLogLevelLabel\",\"url\":\"functions/index.getLogLevelLabel.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"getLogEventLabel\",\"url\":\"functions/index.getLogEventLabel.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"getLogTopicLabel\",\"url\":\"functions/index.getLogTopicLabel.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"getLogOriginLabel\",\"url\":\"functions/index.getLogOriginLabel.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":8,\"name\":\"LogLevel\",\"url\":\"enums/index.LogLevel.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"NONE\",\"url\":\"enums/index.LogLevel.html#NONE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogLevel\"},{\"kind\":16,\"name\":\"DEBUG\",\"url\":\"enums/index.LogLevel.html#DEBUG\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogLevel\"},{\"kind\":16,\"name\":\"INFO\",\"url\":\"enums/index.LogLevel.html#INFO\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogLevel\"},{\"kind\":16,\"name\":\"WARNING\",\"url\":\"enums/index.LogLevel.html#WARNING\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogLevel\"},{\"kind\":16,\"name\":\"ERROR\",\"url\":\"enums/index.LogLevel.html#ERROR\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogLevel\"},{\"kind\":8,\"name\":\"LogTopic\",\"url\":\"enums/index.LogTopic.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"NONE\",\"url\":\"enums/index.LogTopic.html#NONE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogTopic\"},{\"kind\":16,\"name\":\"CONNECT\",\"url\":\"enums/index.LogTopic.html#CONNECT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogTopic\"},{\"kind\":16,\"name\":\"DISCONNECT\",\"url\":\"enums/index.LogTopic.html#DISCONNECT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogTopic\"},{\"kind\":16,\"name\":\"OPEN\",\"url\":\"enums/index.LogTopic.html#OPEN\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogTopic\"},{\"kind\":16,\"name\":\"QUERY\",\"url\":\"enums/index.LogTopic.html#QUERY\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogTopic\"},{\"kind\":16,\"name\":\"INSTANTIATE\",\"url\":\"enums/index.LogTopic.html#INSTANTIATE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogTopic\"},{\"kind\":8,\"name\":\"LogEvent\",\"url\":\"enums/index.LogEvent.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"NONE\",\"url\":\"enums/index.LogEvent.html#NONE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogEvent\"},{\"kind\":16,\"name\":\"OK\",\"url\":\"enums/index.LogEvent.html#OK\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogEvent\"},{\"kind\":16,\"name\":\"ERROR\",\"url\":\"enums/index.LogEvent.html#ERROR\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogEvent\"},{\"kind\":16,\"name\":\"START\",\"url\":\"enums/index.LogEvent.html#START\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogEvent\"},{\"kind\":16,\"name\":\"RUN\",\"url\":\"enums/index.LogEvent.html#RUN\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogEvent\"},{\"kind\":16,\"name\":\"CAPTURE\",\"url\":\"enums/index.LogEvent.html#CAPTURE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogEvent\"},{\"kind\":8,\"name\":\"LogOrigin\",\"url\":\"enums/index.LogOrigin.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"NONE\",\"url\":\"enums/index.LogOrigin.html#NONE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogOrigin\"},{\"kind\":16,\"name\":\"WEB_WORKER\",\"url\":\"enums/index.LogOrigin.html#WEB_WORKER\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogOrigin\"},{\"kind\":16,\"name\":\"NODE_WORKER\",\"url\":\"enums/index.LogOrigin.html#NODE_WORKER\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogOrigin\"},{\"kind\":16,\"name\":\"BINDINGS\",\"url\":\"enums/index.LogOrigin.html#BINDINGS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogOrigin\"},{\"kind\":16,\"name\":\"ASYNC_DUCKDB\",\"url\":\"enums/index.LogOrigin.html#ASYNC_DUCKDB\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.LogOrigin\"},{\"kind\":4194304,\"name\":\"LogEntry\",\"url\":\"types/index.LogEntry.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/index.LogEntry.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"index.LogEntry\"},{\"kind\":1024,\"name\":\"timestamp\",\"url\":\"types/index.LogEntry.html#__type.timestamp\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.LogEntry.__type\"},{\"kind\":1024,\"name\":\"level\",\"url\":\"types/index.LogEntry.html#__type.level\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.LogEntry.__type\"},{\"kind\":1024,\"name\":\"origin\",\"url\":\"types/index.LogEntry.html#__type.origin\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.LogEntry.__type\"},{\"kind\":1024,\"name\":\"topic\",\"url\":\"types/index.LogEntry.html#__type.topic\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.LogEntry.__type\"},{\"kind\":1024,\"name\":\"event\",\"url\":\"types/index.LogEntry.html#__type.event\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.LogEntry.__type\"},{\"kind\":1024,\"name\":\"value\",\"url\":\"types/index.LogEntry.html#__type.value\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.LogEntry.__type\"},{\"kind\":4194304,\"name\":\"LogEntryVariant\",\"url\":\"types/index.LogEntryVariant.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":256,\"name\":\"Logger\",\"url\":\"interfaces/index.Logger.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":2048,\"name\":\"log\",\"url\":\"interfaces/index.Logger.html#log\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.Logger\"},{\"kind\":128,\"name\":\"VoidLogger\",\"url\":\"classes/index.VoidLogger.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.VoidLogger.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.VoidLogger\"},{\"kind\":2048,\"name\":\"log\",\"url\":\"classes/index.VoidLogger.html#log\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.VoidLogger\"},{\"kind\":128,\"name\":\"ConsoleLogger\",\"url\":\"classes/index.ConsoleLogger.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.ConsoleLogger.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.ConsoleLogger\"},{\"kind\":2048,\"name\":\"log\",\"url\":\"classes/index.ConsoleLogger.html#log\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.ConsoleLogger\"},{\"kind\":128,\"name\":\"AsyncDuckDBConnection\",\"url\":\"classes/index.AsyncDuckDBConnection.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.AsyncDuckDBConnection.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":262144,\"name\":\"bindings\",\"url\":\"classes/index.AsyncDuckDBConnection.html#bindings\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"close\",\"url\":\"classes/index.AsyncDuckDBConnection.html#close\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"useUnsafe\",\"url\":\"classes/index.AsyncDuckDBConnection.html#useUnsafe\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"query\",\"url\":\"classes/index.AsyncDuckDBConnection.html#query\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"send\",\"url\":\"classes/index.AsyncDuckDBConnection.html#send\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"cancelSent\",\"url\":\"classes/index.AsyncDuckDBConnection.html#cancelSent\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"getTableNames\",\"url\":\"classes/index.AsyncDuckDBConnection.html#getTableNames\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"prepare\",\"url\":\"classes/index.AsyncDuckDBConnection.html#prepare\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"insertArrowTable\",\"url\":\"classes/index.AsyncDuckDBConnection.html#insertArrowTable\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"insertArrowFromIPCStream\",\"url\":\"classes/index.AsyncDuckDBConnection.html#insertArrowFromIPCStream\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"insertCSVFromPath\",\"url\":\"classes/index.AsyncDuckDBConnection.html#insertCSVFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":2048,\"name\":\"insertJSONFromPath\",\"url\":\"classes/index.AsyncDuckDBConnection.html#insertJSONFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBConnection\"},{\"kind\":128,\"name\":\"AsyncResultStreamIterator\",\"url\":\"classes/index.AsyncResultStreamIterator.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.AsyncResultStreamIterator.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.AsyncResultStreamIterator\"},{\"kind\":2048,\"name\":\"next\",\"url\":\"classes/index.AsyncResultStreamIterator.html#next\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncResultStreamIterator\"},{\"kind\":2048,\"name\":\"[asyncIterator]\",\"url\":\"classes/index.AsyncResultStreamIterator.html#_asyncIterator_\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncResultStreamIterator\"},{\"kind\":128,\"name\":\"AsyncPreparedStatement\",\"url\":\"classes/index.AsyncPreparedStatement.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.AsyncPreparedStatement.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.AsyncPreparedStatement\"},{\"kind\":2048,\"name\":\"close\",\"url\":\"classes/index.AsyncPreparedStatement.html#close\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncPreparedStatement\"},{\"kind\":2048,\"name\":\"query\",\"url\":\"classes/index.AsyncPreparedStatement.html#query\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncPreparedStatement\"},{\"kind\":2048,\"name\":\"send\",\"url\":\"classes/index.AsyncPreparedStatement.html#send\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncPreparedStatement\"},{\"kind\":256,\"name\":\"AsyncDuckDBBindings\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"logger\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#logger\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"registerFileURL\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#registerFileURL\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"registerFileBuffer\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#registerFileBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"registerFileHandle\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#registerFileHandle\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"copyFileToPath\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#copyFileToPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"copyFileToBuffer\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#copyFileToBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"disconnect\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#disconnect\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"runQuery\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#runQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"startPendingQuery\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#startPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"pollPendingQuery\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#pollPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"cancelPendingQuery\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#cancelPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"fetchQueryResults\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#fetchQueryResults\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"createPrepared\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#createPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"closePrepared\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#closePrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"runPrepared\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#runPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"sendPrepared\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#sendPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"insertArrowFromIPCStream\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#insertArrowFromIPCStream\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"insertCSVFromPath\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#insertCSVFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":2048,\"name\":\"insertJSONFromPath\",\"url\":\"interfaces/index.AsyncDuckDBBindings.html#insertJSONFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-interface\",\"parent\":\"index.AsyncDuckDBBindings\"},{\"kind\":128,\"name\":\"AsyncDuckDB\",\"url\":\"classes/index.AsyncDuckDB.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.AsyncDuckDB.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":262144,\"name\":\"logger\",\"url\":\"classes/index.AsyncDuckDB.html#logger\",\"classes\":\"tsd-kind-accessor tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"detach\",\"url\":\"classes/index.AsyncDuckDB.html#detach\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"terminate\",\"url\":\"classes/index.AsyncDuckDB.html#terminate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"reset\",\"url\":\"classes/index.AsyncDuckDB.html#reset\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"ping\",\"url\":\"classes/index.AsyncDuckDB.html#ping\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"dropFile\",\"url\":\"classes/index.AsyncDuckDB.html#dropFile\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"dropFiles\",\"url\":\"classes/index.AsyncDuckDB.html#dropFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"flushFiles\",\"url\":\"classes/index.AsyncDuckDB.html#flushFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"instantiate\",\"url\":\"classes/index.AsyncDuckDB.html#instantiate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"getVersion\",\"url\":\"classes/index.AsyncDuckDB.html#getVersion\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"getFeatureFlags\",\"url\":\"classes/index.AsyncDuckDB.html#getFeatureFlags\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"open\",\"url\":\"classes/index.AsyncDuckDB.html#open\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"tokenize\",\"url\":\"classes/index.AsyncDuckDB.html#tokenize\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"connectInternal\",\"url\":\"classes/index.AsyncDuckDB.html#connectInternal\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"connect\",\"url\":\"classes/index.AsyncDuckDB.html#connect\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"disconnect\",\"url\":\"classes/index.AsyncDuckDB.html#disconnect\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"runQuery\",\"url\":\"classes/index.AsyncDuckDB.html#runQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"startPendingQuery\",\"url\":\"classes/index.AsyncDuckDB.html#startPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"pollPendingQuery\",\"url\":\"classes/index.AsyncDuckDB.html#pollPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"cancelPendingQuery\",\"url\":\"classes/index.AsyncDuckDB.html#cancelPendingQuery\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"fetchQueryResults\",\"url\":\"classes/index.AsyncDuckDB.html#fetchQueryResults\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"getTableNames\",\"url\":\"classes/index.AsyncDuckDB.html#getTableNames\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"createPrepared\",\"url\":\"classes/index.AsyncDuckDB.html#createPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"closePrepared\",\"url\":\"classes/index.AsyncDuckDB.html#closePrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"runPrepared\",\"url\":\"classes/index.AsyncDuckDB.html#runPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"sendPrepared\",\"url\":\"classes/index.AsyncDuckDB.html#sendPrepared\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"globFiles\",\"url\":\"classes/index.AsyncDuckDB.html#globFiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"registerFileText\",\"url\":\"classes/index.AsyncDuckDB.html#registerFileText\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"registerFileURL\",\"url\":\"classes/index.AsyncDuckDB.html#registerFileURL\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"registerEmptyFileBuffer\",\"url\":\"classes/index.AsyncDuckDB.html#registerEmptyFileBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"registerFileBuffer\",\"url\":\"classes/index.AsyncDuckDB.html#registerFileBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"registerFileHandle\",\"url\":\"classes/index.AsyncDuckDB.html#registerFileHandle\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"collectFileStatistics\",\"url\":\"classes/index.AsyncDuckDB.html#collectFileStatistics\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"exportFileStatistics\",\"url\":\"classes/index.AsyncDuckDB.html#exportFileStatistics\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"copyFileToBuffer\",\"url\":\"classes/index.AsyncDuckDB.html#copyFileToBuffer\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"copyFileToPath\",\"url\":\"classes/index.AsyncDuckDB.html#copyFileToPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"insertArrowFromIPCStream\",\"url\":\"classes/index.AsyncDuckDB.html#insertArrowFromIPCStream\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"insertCSVFromPath\",\"url\":\"classes/index.AsyncDuckDB.html#insertCSVFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":2048,\"name\":\"insertJSONFromPath\",\"url\":\"classes/index.AsyncDuckDB.html#insertJSONFromPath\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDB\"},{\"kind\":128,\"name\":\"AsyncDuckDBDispatcher\",\"url\":\"classes/index.AsyncDuckDBDispatcher.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.AsyncDuckDBDispatcher.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBDispatcher\"},{\"kind\":2048,\"name\":\"log\",\"url\":\"classes/index.AsyncDuckDBDispatcher.html#log\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBDispatcher\"},{\"kind\":2048,\"name\":\"onMessage\",\"url\":\"classes/index.AsyncDuckDBDispatcher.html#onMessage\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"index.AsyncDuckDBDispatcher\"},{\"kind\":4194304,\"name\":\"ConnectionID\",\"url\":\"types/index.ConnectionID.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":4194304,\"name\":\"StatementID\",\"url\":\"types/index.StatementID.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":8,\"name\":\"WorkerRequestType\",\"url\":\"enums/index.WorkerRequestType.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"CANCEL_PENDING_QUERY\",\"url\":\"enums/index.WorkerRequestType.html#CANCEL_PENDING_QUERY\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"CLOSE_PREPARED\",\"url\":\"enums/index.WorkerRequestType.html#CLOSE_PREPARED\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"COLLECT_FILE_STATISTICS\",\"url\":\"enums/index.WorkerRequestType.html#COLLECT_FILE_STATISTICS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"CONNECT\",\"url\":\"enums/index.WorkerRequestType.html#CONNECT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"COPY_FILE_TO_BUFFER\",\"url\":\"enums/index.WorkerRequestType.html#COPY_FILE_TO_BUFFER\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"COPY_FILE_TO_PATH\",\"url\":\"enums/index.WorkerRequestType.html#COPY_FILE_TO_PATH\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"CREATE_PREPARED\",\"url\":\"enums/index.WorkerRequestType.html#CREATE_PREPARED\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"DISCONNECT\",\"url\":\"enums/index.WorkerRequestType.html#DISCONNECT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"DROP_FILE\",\"url\":\"enums/index.WorkerRequestType.html#DROP_FILE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"DROP_FILES\",\"url\":\"enums/index.WorkerRequestType.html#DROP_FILES\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"EXPORT_FILE_STATISTICS\",\"url\":\"enums/index.WorkerRequestType.html#EXPORT_FILE_STATISTICS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"FETCH_QUERY_RESULTS\",\"url\":\"enums/index.WorkerRequestType.html#FETCH_QUERY_RESULTS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"FLUSH_FILES\",\"url\":\"enums/index.WorkerRequestType.html#FLUSH_FILES\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"GET_FEATURE_FLAGS\",\"url\":\"enums/index.WorkerRequestType.html#GET_FEATURE_FLAGS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"GET_TABLE_NAMES\",\"url\":\"enums/index.WorkerRequestType.html#GET_TABLE_NAMES\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"GET_VERSION\",\"url\":\"enums/index.WorkerRequestType.html#GET_VERSION\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"GLOB_FILE_INFOS\",\"url\":\"enums/index.WorkerRequestType.html#GLOB_FILE_INFOS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"INSERT_ARROW_FROM_IPC_STREAM\",\"url\":\"enums/index.WorkerRequestType.html#INSERT_ARROW_FROM_IPC_STREAM\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"INSERT_CSV_FROM_PATH\",\"url\":\"enums/index.WorkerRequestType.html#INSERT_CSV_FROM_PATH\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"INSERT_JSON_FROM_PATH\",\"url\":\"enums/index.WorkerRequestType.html#INSERT_JSON_FROM_PATH\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"INSTANTIATE\",\"url\":\"enums/index.WorkerRequestType.html#INSTANTIATE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"OPEN\",\"url\":\"enums/index.WorkerRequestType.html#OPEN\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"PING\",\"url\":\"enums/index.WorkerRequestType.html#PING\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"POLL_PENDING_QUERY\",\"url\":\"enums/index.WorkerRequestType.html#POLL_PENDING_QUERY\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"REGISTER_FILE_BUFFER\",\"url\":\"enums/index.WorkerRequestType.html#REGISTER_FILE_BUFFER\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"REGISTER_FILE_HANDLE\",\"url\":\"enums/index.WorkerRequestType.html#REGISTER_FILE_HANDLE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"REGISTER_FILE_URL\",\"url\":\"enums/index.WorkerRequestType.html#REGISTER_FILE_URL\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"RESET\",\"url\":\"enums/index.WorkerRequestType.html#RESET\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"RUN_PREPARED\",\"url\":\"enums/index.WorkerRequestType.html#RUN_PREPARED\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"RUN_QUERY\",\"url\":\"enums/index.WorkerRequestType.html#RUN_QUERY\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"SEND_PREPARED\",\"url\":\"enums/index.WorkerRequestType.html#SEND_PREPARED\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"START_PENDING_QUERY\",\"url\":\"enums/index.WorkerRequestType.html#START_PENDING_QUERY\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":16,\"name\":\"TOKENIZE\",\"url\":\"enums/index.WorkerRequestType.html#TOKENIZE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerRequestType\"},{\"kind\":8,\"name\":\"WorkerResponseType\",\"url\":\"enums/index.WorkerResponseType.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"CONNECTION_INFO\",\"url\":\"enums/index.WorkerResponseType.html#CONNECTION_INFO\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"ERROR\",\"url\":\"enums/index.WorkerResponseType.html#ERROR\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"FEATURE_FLAGS\",\"url\":\"enums/index.WorkerResponseType.html#FEATURE_FLAGS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"FILE_BUFFER\",\"url\":\"enums/index.WorkerResponseType.html#FILE_BUFFER\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"FILE_INFOS\",\"url\":\"enums/index.WorkerResponseType.html#FILE_INFOS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"FILE_SIZE\",\"url\":\"enums/index.WorkerResponseType.html#FILE_SIZE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"FILE_STATISTICS\",\"url\":\"enums/index.WorkerResponseType.html#FILE_STATISTICS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"INSTANTIATE_PROGRESS\",\"url\":\"enums/index.WorkerResponseType.html#INSTANTIATE_PROGRESS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"LOG\",\"url\":\"enums/index.WorkerResponseType.html#LOG\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"OK\",\"url\":\"enums/index.WorkerResponseType.html#OK\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"PREPARED_STATEMENT_ID\",\"url\":\"enums/index.WorkerResponseType.html#PREPARED_STATEMENT_ID\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"QUERY_PLAN\",\"url\":\"enums/index.WorkerResponseType.html#QUERY_PLAN\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"QUERY_RESULT\",\"url\":\"enums/index.WorkerResponseType.html#QUERY_RESULT\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"QUERY_RESULT_CHUNK\",\"url\":\"enums/index.WorkerResponseType.html#QUERY_RESULT_CHUNK\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"QUERY_RESULT_HEADER\",\"url\":\"enums/index.WorkerResponseType.html#QUERY_RESULT_HEADER\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"QUERY_RESULT_HEADER_OR_NULL\",\"url\":\"enums/index.WorkerResponseType.html#QUERY_RESULT_HEADER_OR_NULL\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"REGISTERED_FILE\",\"url\":\"enums/index.WorkerResponseType.html#REGISTERED_FILE\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"SCRIPT_TOKENS\",\"url\":\"enums/index.WorkerResponseType.html#SCRIPT_TOKENS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"SUCCESS\",\"url\":\"enums/index.WorkerResponseType.html#SUCCESS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"TABLE_NAMES\",\"url\":\"enums/index.WorkerResponseType.html#TABLE_NAMES\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":16,\"name\":\"VERSION_STRING\",\"url\":\"enums/index.WorkerResponseType.html#VERSION_STRING\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.WorkerResponseType\"},{\"kind\":4194304,\"name\":\"WorkerRequest\",\"url\":\"types/index.WorkerRequest.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/index.WorkerRequest.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"index.WorkerRequest\"},{\"kind\":1024,\"name\":\"messageId\",\"url\":\"types/index.WorkerRequest.html#__type.messageId\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.WorkerRequest.__type\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/index.WorkerRequest.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.WorkerRequest.__type\"},{\"kind\":1024,\"name\":\"data\",\"url\":\"types/index.WorkerRequest.html#__type.data\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.WorkerRequest.__type\"},{\"kind\":4194304,\"name\":\"WorkerResponse\",\"url\":\"types/index.WorkerResponse.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"types/index.WorkerResponse.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-type-alias\",\"parent\":\"index.WorkerResponse\"},{\"kind\":1024,\"name\":\"messageId\",\"url\":\"types/index.WorkerResponse.html#__type.messageId\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.WorkerResponse.__type\"},{\"kind\":1024,\"name\":\"requestId\",\"url\":\"types/index.WorkerResponse.html#__type.requestId\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.WorkerResponse.__type\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"types/index.WorkerResponse.html#__type.type\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.WorkerResponse.__type\"},{\"kind\":1024,\"name\":\"data\",\"url\":\"types/index.WorkerResponse.html#__type.data\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.WorkerResponse.__type\"},{\"kind\":4194304,\"name\":\"WorkerTaskReturnType\",\"url\":\"types/index.WorkerTaskReturnType.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":128,\"name\":\"WorkerTask\",\"url\":\"classes/index.WorkerTask.html\",\"classes\":\"tsd-kind-class tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/index.WorkerTask.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"index.WorkerTask\"},{\"kind\":1024,\"name\":\"type\",\"url\":\"classes/index.WorkerTask.html#type\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.WorkerTask\"},{\"kind\":1024,\"name\":\"data\",\"url\":\"classes/index.WorkerTask.html#data\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.WorkerTask\"},{\"kind\":1024,\"name\":\"promise\",\"url\":\"classes/index.WorkerTask.html#promise\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.WorkerTask\"},{\"kind\":1024,\"name\":\"promiseResolver\",\"url\":\"classes/index.WorkerTask.html#promiseResolver\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.WorkerTask\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/index.WorkerTask.html#__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-class\",\"parent\":\"index.WorkerTask\"},{\"kind\":1024,\"name\":\"promiseRejecter\",\"url\":\"classes/index.WorkerTask.html#promiseRejecter\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"index.WorkerTask\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"classes/index.WorkerTask.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-class\",\"parent\":\"index.WorkerTask\"},{\"kind\":4194304,\"name\":\"WorkerRequestVariant\",\"url\":\"types/index.WorkerRequestVariant.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":4194304,\"name\":\"WorkerResponseVariant\",\"url\":\"types/index.WorkerResponseVariant.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":4194304,\"name\":\"WorkerTaskVariant\",\"url\":\"types/index.WorkerTaskVariant.html\",\"classes\":\"tsd-kind-type-alias tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":8,\"name\":\"StatusCode\",\"url\":\"enums/index.StatusCode.html\",\"classes\":\"tsd-kind-enum tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":16,\"name\":\"SUCCESS\",\"url\":\"enums/index.StatusCode.html#SUCCESS\",\"classes\":\"tsd-kind-enum-member tsd-parent-kind-enum\",\"parent\":\"index.StatusCode\"},{\"kind\":64,\"name\":\"getJsDelivrBundles\",\"url\":\"functions/index.getJsDelivrBundles.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"getPlatformFeatures\",\"url\":\"functions/index.getPlatformFeatures.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"selectBundle\",\"url\":\"functions/index.selectBundle.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"isNode\",\"url\":\"functions/index.isNode.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"isFirefox\",\"url\":\"functions/index.isFirefox.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"isSafari\",\"url\":\"functions/index.isSafari.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":256,\"name\":\"DuckDBBundles\",\"url\":\"interfaces/index.DuckDBBundles.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"mvp\",\"url\":\"interfaces/index.DuckDBBundles.html#mvp\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundles\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBBundles.html#__type-2\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundles\"},{\"kind\":1024,\"name\":\"mainModule\",\"url\":\"interfaces/index.DuckDBBundles.html#__type-2.mainModule-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.DuckDBBundles.__type\"},{\"kind\":1024,\"name\":\"mainWorker\",\"url\":\"interfaces/index.DuckDBBundles.html#__type-2.mainWorker-2\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.DuckDBBundles.__type\"},{\"kind\":1024,\"name\":\"eh\",\"url\":\"interfaces/index.DuckDBBundles.html#eh\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundles\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBBundles.html#__type-1\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundles\"},{\"kind\":1024,\"name\":\"mainModule\",\"url\":\"interfaces/index.DuckDBBundles.html#__type-1.mainModule-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.DuckDBBundles.__type\"},{\"kind\":1024,\"name\":\"mainWorker\",\"url\":\"interfaces/index.DuckDBBundles.html#__type-1.mainWorker-1\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.DuckDBBundles.__type\"},{\"kind\":1024,\"name\":\"coi\",\"url\":\"interfaces/index.DuckDBBundles.html#coi\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundles\"},{\"kind\":65536,\"name\":\"__type\",\"url\":\"interfaces/index.DuckDBBundles.html#__type\",\"classes\":\"tsd-kind-type-literal tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundles\"},{\"kind\":1024,\"name\":\"mainModule\",\"url\":\"interfaces/index.DuckDBBundles.html#__type.mainModule\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.DuckDBBundles.__type\"},{\"kind\":1024,\"name\":\"mainWorker\",\"url\":\"interfaces/index.DuckDBBundles.html#__type.mainWorker\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.DuckDBBundles.__type\"},{\"kind\":1024,\"name\":\"pthreadWorker\",\"url\":\"interfaces/index.DuckDBBundles.html#__type.pthreadWorker\",\"classes\":\"tsd-kind-property tsd-parent-kind-type-literal\",\"parent\":\"index.DuckDBBundles.__type\"},{\"kind\":256,\"name\":\"DuckDBBundle\",\"url\":\"interfaces/index.DuckDBBundle.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"mainModule\",\"url\":\"interfaces/index.DuckDBBundle.html#mainModule\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundle\"},{\"kind\":1024,\"name\":\"mainWorker\",\"url\":\"interfaces/index.DuckDBBundle.html#mainWorker\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundle\"},{\"kind\":1024,\"name\":\"pthreadWorker\",\"url\":\"interfaces/index.DuckDBBundle.html#pthreadWorker\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.DuckDBBundle\"},{\"kind\":256,\"name\":\"PlatformFeatures\",\"url\":\"interfaces/index.PlatformFeatures.html\",\"classes\":\"tsd-kind-interface tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":1024,\"name\":\"bigInt64Array\",\"url\":\"interfaces/index.PlatformFeatures.html#bigInt64Array\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.PlatformFeatures\"},{\"kind\":1024,\"name\":\"crossOriginIsolated\",\"url\":\"interfaces/index.PlatformFeatures.html#crossOriginIsolated\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.PlatformFeatures\"},{\"kind\":1024,\"name\":\"wasmExceptions\",\"url\":\"interfaces/index.PlatformFeatures.html#wasmExceptions\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.PlatformFeatures\"},{\"kind\":1024,\"name\":\"wasmSIMD\",\"url\":\"interfaces/index.PlatformFeatures.html#wasmSIMD\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.PlatformFeatures\"},{\"kind\":1024,\"name\":\"wasmBulkMemory\",\"url\":\"interfaces/index.PlatformFeatures.html#wasmBulkMemory\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.PlatformFeatures\"},{\"kind\":1024,\"name\":\"wasmThreads\",\"url\":\"interfaces/index.PlatformFeatures.html#wasmThreads\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"index.PlatformFeatures\"},{\"kind\":32,\"name\":\"PACKAGE_NAME\",\"url\":\"variables/index.PACKAGE_NAME.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":32,\"name\":\"PACKAGE_VERSION\",\"url\":\"variables/index.PACKAGE_VERSION.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":32,\"name\":\"PACKAGE_VERSION_MAJOR\",\"url\":\"variables/index.PACKAGE_VERSION_MAJOR.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":32,\"name\":\"PACKAGE_VERSION_MINOR\",\"url\":\"variables/index.PACKAGE_VERSION_MINOR.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":32,\"name\":\"PACKAGE_VERSION_PATCH\",\"url\":\"variables/index.PACKAGE_VERSION_PATCH.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":64,\"name\":\"createWorker\",\"url\":\"functions/index.createWorker.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-module\",\"parent\":\"index\"},{\"kind\":8388608,\"name\":\"InstantiationProgress\",\"url\":\"modules/targets_duckdb.html#InstantiationProgress\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"InstantiationProgressHandler\",\"url\":\"modules/targets_duckdb.html#InstantiationProgressHandler\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"DuckDBDataProtocol\",\"url\":\"modules/targets_duckdb.html#DuckDBDataProtocol\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"DuckDBQueryConfig\",\"url\":\"modules/targets_duckdb.html#DuckDBQueryConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"DuckDBFilesystemConfig\",\"url\":\"modules/targets_duckdb.html#DuckDBFilesystemConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"DuckDBConfig\",\"url\":\"modules/targets_duckdb.html#DuckDBConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"getLogLevelLabel\",\"url\":\"modules/targets_duckdb.html#getLogLevelLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"getLogEventLabel\",\"url\":\"modules/targets_duckdb.html#getLogEventLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"getLogTopicLabel\",\"url\":\"modules/targets_duckdb.html#getLogTopicLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"getLogOriginLabel\",\"url\":\"modules/targets_duckdb.html#getLogOriginLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"LogLevel\",\"url\":\"modules/targets_duckdb.html#LogLevel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"LogTopic\",\"url\":\"modules/targets_duckdb.html#LogTopic\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"LogEvent\",\"url\":\"modules/targets_duckdb.html#LogEvent\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"LogOrigin\",\"url\":\"modules/targets_duckdb.html#LogOrigin\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"LogEntry\",\"url\":\"modules/targets_duckdb.html#LogEntry\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"LogEntryVariant\",\"url\":\"modules/targets_duckdb.html#LogEntryVariant\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"Logger\",\"url\":\"modules/targets_duckdb.html#Logger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"VoidLogger\",\"url\":\"modules/targets_duckdb.html#VoidLogger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"ConsoleLogger\",\"url\":\"modules/targets_duckdb.html#ConsoleLogger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"StatusCode\",\"url\":\"modules/targets_duckdb.html#StatusCode\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"AsyncDuckDBConnection\",\"url\":\"modules/targets_duckdb.html#AsyncDuckDBConnection\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"AsyncResultStreamIterator\",\"url\":\"modules/targets_duckdb.html#AsyncResultStreamIterator\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"AsyncPreparedStatement\",\"url\":\"modules/targets_duckdb.html#AsyncPreparedStatement\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"AsyncDuckDBBindings\",\"url\":\"modules/targets_duckdb.html#AsyncDuckDBBindings\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"AsyncDuckDB\",\"url\":\"modules/targets_duckdb.html#AsyncDuckDB\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"AsyncDuckDBDispatcher\",\"url\":\"modules/targets_duckdb.html#AsyncDuckDBDispatcher\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"ConnectionID\",\"url\":\"modules/targets_duckdb.html#ConnectionID\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"StatementID\",\"url\":\"modules/targets_duckdb.html#StatementID\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerRequestType\",\"url\":\"modules/targets_duckdb.html#WorkerRequestType\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerResponseType\",\"url\":\"modules/targets_duckdb.html#WorkerResponseType\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerRequest\",\"url\":\"modules/targets_duckdb.html#WorkerRequest\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerResponse\",\"url\":\"modules/targets_duckdb.html#WorkerResponse\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerTaskReturnType\",\"url\":\"modules/targets_duckdb.html#WorkerTaskReturnType\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerTask\",\"url\":\"modules/targets_duckdb.html#WorkerTask\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerRequestVariant\",\"url\":\"modules/targets_duckdb.html#WorkerRequestVariant\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerResponseVariant\",\"url\":\"modules/targets_duckdb.html#WorkerResponseVariant\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"WorkerTaskVariant\",\"url\":\"modules/targets_duckdb.html#WorkerTaskVariant\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"getJsDelivrBundles\",\"url\":\"modules/targets_duckdb.html#getJsDelivrBundles\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"getPlatformFeatures\",\"url\":\"modules/targets_duckdb.html#getPlatformFeatures\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"selectBundle\",\"url\":\"modules/targets_duckdb.html#selectBundle\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"isNode\",\"url\":\"modules/targets_duckdb.html#isNode\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"isFirefox\",\"url\":\"modules/targets_duckdb.html#isFirefox\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"isSafari\",\"url\":\"modules/targets_duckdb.html#isSafari\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"DuckDBBundles\",\"url\":\"modules/targets_duckdb.html#DuckDBBundles\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"DuckDBBundle\",\"url\":\"modules/targets_duckdb.html#DuckDBBundle\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"PlatformFeatures\",\"url\":\"modules/targets_duckdb.html#PlatformFeatures\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"PACKAGE_NAME\",\"url\":\"modules/targets_duckdb.html#PACKAGE_NAME\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION\",\"url\":\"modules/targets_duckdb.html#PACKAGE_VERSION\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_MAJOR\",\"url\":\"modules/targets_duckdb.html#PACKAGE_VERSION_MAJOR\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_MINOR\",\"url\":\"modules/targets_duckdb.html#PACKAGE_VERSION_MINOR\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_PATCH\",\"url\":\"modules/targets_duckdb.html#PACKAGE_VERSION_PATCH\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"createWorker\",\"url\":\"modules/targets_duckdb.html#createWorker\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb\"},{\"kind\":8388608,\"name\":\"DuckDBDataProtocol\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBDataProtocol\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DEFAULT_RUNTIME\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DEFAULT_RUNTIME\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":32,\"name\":\"BROWSER_RUNTIME\",\"url\":\"variables/targets_duckdb_browser_blocking.BROWSER_RUNTIME.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBBindings\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBBindings\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBFeature\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBFeature\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBBindingsBase\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBBindingsBase\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBQueryConfig\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBQueryConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBFilesystemConfig\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBFilesystemConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBConfig\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBConnection\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBConnection\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"ResultStreamIterator\",\"url\":\"modules/targets_duckdb_browser_blocking.html#ResultStreamIterator\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"PreparedStatement\",\"url\":\"modules/targets_duckdb_browser_blocking.html#PreparedStatement\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"PThread\",\"url\":\"modules/targets_duckdb_browser_blocking.html#PThread\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBModule\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBModule\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"FileBlockStatistics\",\"url\":\"modules/targets_duckdb_browser_blocking.html#FileBlockStatistics\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"FileStatistics\",\"url\":\"modules/targets_duckdb_browser_blocking.html#FileStatistics\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"failWith\",\"url\":\"modules/targets_duckdb_browser_blocking.html#failWith\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"copyBuffer\",\"url\":\"modules/targets_duckdb_browser_blocking.html#copyBuffer\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"readString\",\"url\":\"modules/targets_duckdb_browser_blocking.html#readString\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"callSRet\",\"url\":\"modules/targets_duckdb_browser_blocking.html#callSRet\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"dropResponseBuffers\",\"url\":\"modules/targets_duckdb_browser_blocking.html#dropResponseBuffers\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"decodeText\",\"url\":\"modules/targets_duckdb_browser_blocking.html#decodeText\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"FileFlags\",\"url\":\"modules/targets_duckdb_browser_blocking.html#FileFlags\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"S3Config\",\"url\":\"modules/targets_duckdb_browser_blocking.html#S3Config\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBFileInfo\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBFileInfo\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBGlobalFileInfo\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBGlobalFileInfo\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBRuntime\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBRuntime\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"JSONTableShape\",\"url\":\"modules/targets_duckdb_browser_blocking.html#JSONTableShape\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"JSONInsertOptions\",\"url\":\"modules/targets_duckdb_browser_blocking.html#JSONInsertOptions\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"CSVInsertOptions\",\"url\":\"modules/targets_duckdb_browser_blocking.html#CSVInsertOptions\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"ArrowInsertOptions\",\"url\":\"modules/targets_duckdb_browser_blocking.html#ArrowInsertOptions\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"InstantiationProgress\",\"url\":\"modules/targets_duckdb_browser_blocking.html#InstantiationProgress\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"InstantiationProgressHandler\",\"url\":\"modules/targets_duckdb_browser_blocking.html#InstantiationProgressHandler\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"getLogLevelLabel\",\"url\":\"modules/targets_duckdb_browser_blocking.html#getLogLevelLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"getLogEventLabel\",\"url\":\"modules/targets_duckdb_browser_blocking.html#getLogEventLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"getLogTopicLabel\",\"url\":\"modules/targets_duckdb_browser_blocking.html#getLogTopicLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"getLogOriginLabel\",\"url\":\"modules/targets_duckdb_browser_blocking.html#getLogOriginLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"LogLevel\",\"url\":\"modules/targets_duckdb_browser_blocking.html#LogLevel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"LogTopic\",\"url\":\"modules/targets_duckdb_browser_blocking.html#LogTopic\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"LogEvent\",\"url\":\"modules/targets_duckdb_browser_blocking.html#LogEvent\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"LogOrigin\",\"url\":\"modules/targets_duckdb_browser_blocking.html#LogOrigin\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"LogEntry\",\"url\":\"modules/targets_duckdb_browser_blocking.html#LogEntry\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"LogEntryVariant\",\"url\":\"modules/targets_duckdb_browser_blocking.html#LogEntryVariant\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"Logger\",\"url\":\"modules/targets_duckdb_browser_blocking.html#Logger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"VoidLogger\",\"url\":\"modules/targets_duckdb_browser_blocking.html#VoidLogger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"ConsoleLogger\",\"url\":\"modules/targets_duckdb_browser_blocking.html#ConsoleLogger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"getJsDelivrBundles\",\"url\":\"modules/targets_duckdb_browser_blocking.html#getJsDelivrBundles\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"getPlatformFeatures\",\"url\":\"modules/targets_duckdb_browser_blocking.html#getPlatformFeatures\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"selectBundle\",\"url\":\"modules/targets_duckdb_browser_blocking.html#selectBundle\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"isNode\",\"url\":\"modules/targets_duckdb_browser_blocking.html#isNode\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"isFirefox\",\"url\":\"modules/targets_duckdb_browser_blocking.html#isFirefox\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"isSafari\",\"url\":\"modules/targets_duckdb_browser_blocking.html#isSafari\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBBundles\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBBundles\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBBundle\",\"url\":\"modules/targets_duckdb_browser_blocking.html#DuckDBBundle\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"PlatformFeatures\",\"url\":\"modules/targets_duckdb_browser_blocking.html#PlatformFeatures\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"StatusCode\",\"url\":\"modules/targets_duckdb_browser_blocking.html#StatusCode\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_NAME\",\"url\":\"modules/targets_duckdb_browser_blocking.html#PACKAGE_NAME\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION\",\"url\":\"modules/targets_duckdb_browser_blocking.html#PACKAGE_VERSION\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_MAJOR\",\"url\":\"modules/targets_duckdb_browser_blocking.html#PACKAGE_VERSION_MAJOR\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_MINOR\",\"url\":\"modules/targets_duckdb_browser_blocking.html#PACKAGE_VERSION_MINOR\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_PATCH\",\"url\":\"modules/targets_duckdb_browser_blocking.html#PACKAGE_VERSION_PATCH\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-browser-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBDataProtocol\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBDataProtocol\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DEFAULT_RUNTIME\",\"url\":\"modules/targets_duckdb_node_blocking.html#DEFAULT_RUNTIME\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":32,\"name\":\"NODE_RUNTIME\",\"url\":\"variables/targets_duckdb_node_blocking.NODE_RUNTIME.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBBindings\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBBindings\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBFeature\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBFeature\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBBindingsBase\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBBindingsBase\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBQueryConfig\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBQueryConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBFilesystemConfig\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBFilesystemConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBConfig\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBConfig\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBConnection\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBConnection\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"ResultStreamIterator\",\"url\":\"modules/targets_duckdb_node_blocking.html#ResultStreamIterator\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"PreparedStatement\",\"url\":\"modules/targets_duckdb_node_blocking.html#PreparedStatement\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"PThread\",\"url\":\"modules/targets_duckdb_node_blocking.html#PThread\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBModule\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBModule\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"FileBlockStatistics\",\"url\":\"modules/targets_duckdb_node_blocking.html#FileBlockStatistics\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"FileStatistics\",\"url\":\"modules/targets_duckdb_node_blocking.html#FileStatistics\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"failWith\",\"url\":\"modules/targets_duckdb_node_blocking.html#failWith\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"copyBuffer\",\"url\":\"modules/targets_duckdb_node_blocking.html#copyBuffer\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"readString\",\"url\":\"modules/targets_duckdb_node_blocking.html#readString\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"callSRet\",\"url\":\"modules/targets_duckdb_node_blocking.html#callSRet\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"dropResponseBuffers\",\"url\":\"modules/targets_duckdb_node_blocking.html#dropResponseBuffers\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"decodeText\",\"url\":\"modules/targets_duckdb_node_blocking.html#decodeText\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"FileFlags\",\"url\":\"modules/targets_duckdb_node_blocking.html#FileFlags\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"S3Config\",\"url\":\"modules/targets_duckdb_node_blocking.html#S3Config\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBFileInfo\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBFileInfo\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBGlobalFileInfo\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBGlobalFileInfo\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBRuntime\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBRuntime\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"JSONTableShape\",\"url\":\"modules/targets_duckdb_node_blocking.html#JSONTableShape\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"JSONInsertOptions\",\"url\":\"modules/targets_duckdb_node_blocking.html#JSONInsertOptions\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"CSVInsertOptions\",\"url\":\"modules/targets_duckdb_node_blocking.html#CSVInsertOptions\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"ArrowInsertOptions\",\"url\":\"modules/targets_duckdb_node_blocking.html#ArrowInsertOptions\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"InstantiationProgress\",\"url\":\"modules/targets_duckdb_node_blocking.html#InstantiationProgress\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"InstantiationProgressHandler\",\"url\":\"modules/targets_duckdb_node_blocking.html#InstantiationProgressHandler\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"getLogLevelLabel\",\"url\":\"modules/targets_duckdb_node_blocking.html#getLogLevelLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"getLogEventLabel\",\"url\":\"modules/targets_duckdb_node_blocking.html#getLogEventLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"getLogTopicLabel\",\"url\":\"modules/targets_duckdb_node_blocking.html#getLogTopicLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"getLogOriginLabel\",\"url\":\"modules/targets_duckdb_node_blocking.html#getLogOriginLabel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"LogLevel\",\"url\":\"modules/targets_duckdb_node_blocking.html#LogLevel\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"LogTopic\",\"url\":\"modules/targets_duckdb_node_blocking.html#LogTopic\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"LogEvent\",\"url\":\"modules/targets_duckdb_node_blocking.html#LogEvent\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"LogOrigin\",\"url\":\"modules/targets_duckdb_node_blocking.html#LogOrigin\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"LogEntry\",\"url\":\"modules/targets_duckdb_node_blocking.html#LogEntry\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"LogEntryVariant\",\"url\":\"modules/targets_duckdb_node_blocking.html#LogEntryVariant\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"Logger\",\"url\":\"modules/targets_duckdb_node_blocking.html#Logger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"VoidLogger\",\"url\":\"modules/targets_duckdb_node_blocking.html#VoidLogger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"ConsoleLogger\",\"url\":\"modules/targets_duckdb_node_blocking.html#ConsoleLogger\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"getJsDelivrBundles\",\"url\":\"modules/targets_duckdb_node_blocking.html#getJsDelivrBundles\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"getPlatformFeatures\",\"url\":\"modules/targets_duckdb_node_blocking.html#getPlatformFeatures\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"selectBundle\",\"url\":\"modules/targets_duckdb_node_blocking.html#selectBundle\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"isNode\",\"url\":\"modules/targets_duckdb_node_blocking.html#isNode\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"isFirefox\",\"url\":\"modules/targets_duckdb_node_blocking.html#isFirefox\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"isSafari\",\"url\":\"modules/targets_duckdb_node_blocking.html#isSafari\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBBundles\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBBundles\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"DuckDBBundle\",\"url\":\"modules/targets_duckdb_node_blocking.html#DuckDBBundle\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"PlatformFeatures\",\"url\":\"modules/targets_duckdb_node_blocking.html#PlatformFeatures\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"StatusCode\",\"url\":\"modules/targets_duckdb_node_blocking.html#StatusCode\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_NAME\",\"url\":\"modules/targets_duckdb_node_blocking.html#PACKAGE_NAME\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION\",\"url\":\"modules/targets_duckdb_node_blocking.html#PACKAGE_VERSION\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_MAJOR\",\"url\":\"modules/targets_duckdb_node_blocking.html#PACKAGE_VERSION_MAJOR\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_MINOR\",\"url\":\"modules/targets_duckdb_node_blocking.html#PACKAGE_VERSION_MINOR\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"},{\"kind\":8388608,\"name\":\"PACKAGE_VERSION_PATCH\",\"url\":\"modules/targets_duckdb_node_blocking.html#PACKAGE_VERSION_PATCH\",\"classes\":\"tsd-kind-reference tsd-parent-kind-module\",\"parent\":\"targets/duckdb-node-blocking\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,61.386]],[\"comment/0\",[]],[\"name/1\",[1,52.892]],[\"comment/1\",[]],[\"name/2\",[1,29.136,2,33.814,3,30.994]],[\"comment/2\",[]],[\"name/3\",[4,56.265]],[\"comment/3\",[]],[\"name/4\",[1,29.136,3,30.994,5,33.814]],[\"comment/4\",[]],[\"name/5\",[4,56.265]],[\"comment/5\",[]],[\"name/6\",[6,52.892]],[\"comment/6\",[]],[\"name/7\",[7,48.362]],[\"comment/7\",[]],[\"name/8\",[8,50.373]],[\"comment/8\",[]],[\"name/9\",[9,48.362]],[\"comment/9\",[]],[\"name/10\",[10,52.892]],[\"comment/10\",[]],[\"name/11\",[11,52.892]],[\"comment/11\",[]],[\"name/12\",[12,50.373]],[\"comment/12\",[]],[\"name/13\",[13,48.362]],[\"comment/13\",[]],[\"name/14\",[14,46.687]],[\"comment/14\",[]],[\"name/15\",[15,50.373]],[\"comment/15\",[]],[\"name/16\",[16,50.373]],[\"comment/16\",[]],[\"name/17\",[17,50.373]],[\"comment/17\",[]],[\"name/18\",[18,50.373]],[\"comment/18\",[]],[\"name/19\",[19,50.373]],[\"comment/19\",[]],[\"name/20\",[20,48.362]],[\"comment/20\",[]],[\"name/21\",[21,50.373]],[\"comment/21\",[]],[\"name/22\",[22,50.373]],[\"comment/22\",[]],[\"name/23\",[23,50.373]],[\"comment/23\",[]],[\"name/24\",[24,50.373]],[\"comment/24\",[]],[\"name/25\",[25,52.892]],[\"comment/25\",[]],[\"name/26\",[26,46.687]],[\"comment/26\",[]],[\"name/27\",[27,46.687]],[\"comment/27\",[]],[\"name/28\",[28,46.687]],[\"comment/28\",[]],[\"name/29\",[29,50.373]],[\"comment/29\",[]],[\"name/30\",[30,52.892]],[\"comment/30\",[]],[\"name/31\",[31,50.373]],[\"comment/31\",[]],[\"name/32\",[32,50.373]],[\"comment/32\",[]],[\"name/33\",[33,52.892]],[\"comment/33\",[]],[\"name/34\",[34,52.892]],[\"comment/34\",[]],[\"name/35\",[35,52.892]],[\"comment/35\",[]],[\"name/36\",[36,52.892]],[\"comment/36\",[]],[\"name/37\",[37,50.373]],[\"comment/37\",[]],[\"name/38\",[38,50.373]],[\"comment/38\",[]],[\"name/39\",[39,52.892]],[\"comment/39\",[]],[\"name/40\",[40,52.892]],[\"comment/40\",[]],[\"name/41\",[41,52.892]],[\"comment/41\",[]],[\"name/42\",[42,61.386]],[\"comment/42\",[]],[\"name/43\",[43,61.386]],[\"comment/43\",[]],[\"name/44\",[44,61.386]],[\"comment/44\",[]],[\"name/45\",[45,61.386]],[\"comment/45\",[]],[\"name/46\",[46,61.386]],[\"comment/46\",[]],[\"name/47\",[47,52.892]],[\"comment/47\",[]],[\"name/48\",[48,39.361]],[\"comment/48\",[]],[\"name/49\",[49,45.253]],[\"comment/49\",[]],[\"name/50\",[50,61.386]],[\"comment/50\",[]],[\"name/51\",[51,48.362]],[\"comment/51\",[]],[\"name/52\",[9,48.362]],[\"comment/52\",[]],[\"name/53\",[7,48.362]],[\"comment/53\",[]],[\"name/54\",[8,50.373]],[\"comment/54\",[]],[\"name/55\",[10,52.892]],[\"comment/55\",[]],[\"name/56\",[11,52.892]],[\"comment/56\",[]],[\"name/57\",[12,50.373]],[\"comment/57\",[]],[\"name/58\",[13,48.362]],[\"comment/58\",[]],[\"name/59\",[14,46.687]],[\"comment/59\",[]],[\"name/60\",[15,50.373]],[\"comment/60\",[]],[\"name/61\",[16,50.373]],[\"comment/61\",[]],[\"name/62\",[17,50.373]],[\"comment/62\",[]],[\"name/63\",[18,50.373]],[\"comment/63\",[]],[\"name/64\",[19,50.373]],[\"comment/64\",[]],[\"name/65\",[20,48.362]],[\"comment/65\",[]],[\"name/66\",[25,52.892]],[\"comment/66\",[]],[\"name/67\",[21,50.373]],[\"comment/67\",[]],[\"name/68\",[22,50.373]],[\"comment/68\",[]],[\"name/69\",[23,50.373]],[\"comment/69\",[]],[\"name/70\",[24,50.373]],[\"comment/70\",[]],[\"name/71\",[26,46.687]],[\"comment/71\",[]],[\"name/72\",[27,46.687]],[\"comment/72\",[]],[\"name/73\",[28,46.687]],[\"comment/73\",[]],[\"name/74\",[33,52.892]],[\"comment/74\",[]],[\"name/75\",[29,50.373]],[\"comment/75\",[]],[\"name/76\",[30,52.892]],[\"comment/76\",[]],[\"name/77\",[31,50.373]],[\"comment/77\",[]],[\"name/78\",[32,50.373]],[\"comment/78\",[]],[\"name/79\",[34,52.892]],[\"comment/79\",[]],[\"name/80\",[35,52.892]],[\"comment/80\",[]],[\"name/81\",[36,52.892]],[\"comment/81\",[]],[\"name/82\",[37,50.373]],[\"comment/82\",[]],[\"name/83\",[38,50.373]],[\"comment/83\",[]],[\"name/84\",[39,52.892]],[\"comment/84\",[]],[\"name/85\",[40,52.892]],[\"comment/85\",[]],[\"name/86\",[52,50.373]],[\"comment/86\",[]],[\"name/87\",[53,61.386]],[\"comment/87\",[]],[\"name/88\",[54,61.386]],[\"comment/88\",[]],[\"name/89\",[55,61.386]],[\"comment/89\",[]],[\"name/90\",[56,61.386]],[\"comment/90\",[]],[\"name/91\",[57,61.386]],[\"comment/91\",[]],[\"name/92\",[58,50.373]],[\"comment/92\",[]],[\"name/93\",[59,52.892]],[\"comment/93\",[]],[\"name/94\",[60,50.373]],[\"comment/94\",[]],[\"name/95\",[61,61.386]],[\"comment/95\",[]],[\"name/96\",[62,61.386]],[\"comment/96\",[]],[\"name/97\",[63,46.687]],[\"comment/97\",[]],[\"name/98\",[64,61.386]],[\"comment/98\",[]],[\"name/99\",[65,52.892]],[\"comment/99\",[]],[\"name/100\",[48,39.361]],[\"comment/100\",[]],[\"name/101\",[66,50.373]],[\"comment/101\",[]],[\"name/102\",[67,56.265]],[\"comment/102\",[]],[\"name/103\",[63,46.687]],[\"comment/103\",[]],[\"name/104\",[68,50.373]],[\"comment/104\",[]],[\"name/105\",[69,56.265]],[\"comment/105\",[]],[\"name/106\",[20,48.362]],[\"comment/106\",[]],[\"name/107\",[70,56.265]],[\"comment/107\",[]],[\"name/108\",[25,52.892]],[\"comment/108\",[]],[\"name/109\",[71,56.265]],[\"comment/109\",[]],[\"name/110\",[26,46.687]],[\"comment/110\",[]],[\"name/111\",[27,46.687]],[\"comment/111\",[]],[\"name/112\",[28,46.687]],[\"comment/112\",[]],[\"name/113\",[72,52.892]],[\"comment/113\",[]],[\"name/114\",[48,39.361]],[\"comment/114\",[]],[\"name/115\",[73,61.386]],[\"comment/115\",[]],[\"name/116\",[74,61.386]],[\"comment/116\",[]],[\"name/117\",[75,56.265]],[\"comment/117\",[]],[\"name/118\",[76,61.386]],[\"comment/118\",[]],[\"name/119\",[77,52.892]],[\"comment/119\",[]],[\"name/120\",[48,39.361]],[\"comment/120\",[]],[\"name/121\",[66,50.373]],[\"comment/121\",[]],[\"name/122\",[63,46.687]],[\"comment/122\",[]],[\"name/123\",[68,50.373]],[\"comment/123\",[]],[\"name/124\",[51,48.362]],[\"comment/124\",[]],[\"name/125\",[78,61.386]],[\"comment/125\",[]],[\"name/126\",[79,61.386]],[\"comment/126\",[]],[\"name/127\",[80,52.892]],[\"comment/127\",[]],[\"name/128\",[81,61.386]],[\"comment/128\",[]],[\"name/129\",[82,36.76]],[\"comment/129\",[]],[\"name/130\",[83,61.386]],[\"comment/130\",[]],[\"name/131\",[82,36.76]],[\"comment/131\",[]],[\"name/132\",[84,61.386]],[\"comment/132\",[]],[\"name/133\",[82,36.76]],[\"comment/133\",[]],[\"name/134\",[85,61.386]],[\"comment/134\",[]],[\"name/135\",[82,36.76]],[\"comment/135\",[]],[\"name/136\",[51,48.362]],[\"comment/136\",[]],[\"name/137\",[82,36.76]],[\"comment/137\",[]],[\"name/138\",[82,36.76]],[\"comment/138\",[]],[\"name/139\",[86,52.892]],[\"comment/139\",[]],[\"name/140\",[87,61.386]],[\"comment/140\",[]],[\"name/141\",[88,61.386]],[\"comment/141\",[]],[\"name/142\",[89,61.386]],[\"comment/142\",[]],[\"name/143\",[90,61.386]],[\"comment/143\",[]],[\"name/144\",[91,61.386]],[\"comment/144\",[]],[\"name/145\",[92,61.386]],[\"comment/145\",[]],[\"name/146\",[93,52.892]],[\"comment/146\",[]],[\"name/147\",[48,39.361]],[\"comment/147\",[]],[\"name/148\",[94,61.386]],[\"comment/148\",[]],[\"name/149\",[95,61.386]],[\"comment/149\",[]],[\"name/150\",[96,61.386]],[\"comment/150\",[]],[\"name/151\",[97,61.386]],[\"comment/151\",[]],[\"name/152\",[98,61.386]],[\"comment/152\",[]],[\"name/153\",[99,61.386]],[\"comment/153\",[]],[\"name/154\",[100,61.386]],[\"comment/154\",[]],[\"name/155\",[101,61.386]],[\"comment/155\",[]],[\"name/156\",[102,61.386]],[\"comment/156\",[]],[\"name/157\",[103,52.892]],[\"comment/157\",[]],[\"name/158\",[104,52.892]],[\"comment/158\",[]],[\"name/159\",[105,52.892]],[\"comment/159\",[]],[\"name/160\",[106,52.892]],[\"comment/160\",[]],[\"name/161\",[107,52.892]],[\"comment/161\",[]],[\"name/162\",[108,52.892]],[\"comment/162\",[]],[\"name/163\",[109,50.373]],[\"comment/163\",[]],[\"name/164\",[110,61.386]],[\"comment/164\",[]],[\"name/165\",[111,61.386]],[\"comment/165\",[]],[\"name/166\",[112,61.386]],[\"comment/166\",[]],[\"name/167\",[113,61.386]],[\"comment/167\",[]],[\"name/168\",[114,61.386]],[\"comment/168\",[]],[\"name/169\",[115,61.386]],[\"comment/169\",[]],[\"name/170\",[116,52.892]],[\"comment/170\",[]],[\"name/171\",[117,61.386]],[\"comment/171\",[]],[\"name/172\",[118,61.386]],[\"comment/172\",[]],[\"name/173\",[119,61.386]],[\"comment/173\",[]],[\"name/174\",[120,61.386]],[\"comment/174\",[]],[\"name/175\",[121,61.386]],[\"comment/175\",[]],[\"name/176\",[122,61.386]],[\"comment/176\",[]],[\"name/177\",[123,48.362]],[\"comment/177\",[]],[\"name/178\",[124,61.386]],[\"comment/178\",[]],[\"name/179\",[125,61.386]],[\"comment/179\",[]],[\"name/180\",[126,61.386]],[\"comment/180\",[]],[\"name/181\",[127,61.386]],[\"comment/181\",[]],[\"name/182\",[128,61.386]],[\"comment/182\",[]],[\"name/183\",[129,52.892]],[\"comment/183\",[]],[\"name/184\",[130,56.265]],[\"comment/184\",[]],[\"name/185\",[131,61.386]],[\"comment/185\",[]],[\"name/186\",[132,61.386]],[\"comment/186\",[]],[\"name/187\",[133,61.386]],[\"comment/187\",[]],[\"name/188\",[134,61.386]],[\"comment/188\",[]],[\"name/189\",[59,52.892]],[\"comment/189\",[]],[\"name/190\",[123,48.362]],[\"comment/190\",[]],[\"name/191\",[135,52.892]],[\"comment/191\",[]],[\"name/192\",[130,56.265]],[\"comment/192\",[]],[\"name/193\",[59,52.892]],[\"comment/193\",[]],[\"name/194\",[123,48.362]],[\"comment/194\",[]],[\"name/195\",[136,52.892]],[\"comment/195\",[]],[\"name/196\",[137,61.386]],[\"comment/196\",[]],[\"name/197\",[138,61.386]],[\"comment/197\",[]],[\"name/198\",[139,61.386]],[\"comment/198\",[]],[\"name/199\",[140,61.386]],[\"comment/199\",[]],[\"name/200\",[141,61.386]],[\"comment/200\",[]],[\"name/201\",[142,61.386]],[\"comment/201\",[]],[\"name/202\",[143,61.386]],[\"comment/202\",[]],[\"name/203\",[144,61.386]],[\"comment/203\",[]],[\"name/204\",[145,61.386]],[\"comment/204\",[]],[\"name/205\",[146,61.386]],[\"comment/205\",[]],[\"name/206\",[147,61.386]],[\"comment/206\",[]],[\"name/207\",[148,61.386]],[\"comment/207\",[]],[\"name/208\",[149,61.386]],[\"comment/208\",[]],[\"name/209\",[150,61.386]],[\"comment/209\",[]],[\"name/210\",[151,61.386]],[\"comment/210\",[]],[\"name/211\",[152,61.386]],[\"comment/211\",[]],[\"name/212\",[153,61.386]],[\"comment/212\",[]],[\"name/213\",[154,61.386]],[\"comment/213\",[]],[\"name/214\",[155,61.386]],[\"comment/214\",[]],[\"name/215\",[156,61.386]],[\"comment/215\",[]],[\"name/216\",[157,52.892]],[\"comment/216\",[]],[\"name/217\",[158,52.892]],[\"comment/217\",[]],[\"name/218\",[159,61.386]],[\"comment/218\",[]],[\"name/219\",[160,61.386]],[\"comment/219\",[]],[\"name/220\",[161,52.892]],[\"comment/220\",[]],[\"name/221\",[162,52.892]],[\"comment/221\",[]],[\"name/222\",[163,52.892]],[\"comment/222\",[]],[\"name/223\",[164,52.892]],[\"comment/223\",[]],[\"name/224\",[165,61.386]],[\"comment/224\",[]],[\"name/225\",[166,56.265]],[\"comment/225\",[]],[\"name/226\",[82,36.76]],[\"comment/226\",[]],[\"name/227\",[167,56.265]],[\"comment/227\",[]],[\"name/228\",[168,52.892]],[\"comment/228\",[]],[\"name/229\",[162,52.892]],[\"comment/229\",[]],[\"name/230\",[163,52.892]],[\"comment/230\",[]],[\"name/231\",[164,52.892]],[\"comment/231\",[]],[\"name/232\",[169,61.386]],[\"comment/232\",[]],[\"name/233\",[170,61.386]],[\"comment/233\",[]],[\"name/234\",[171,61.386]],[\"comment/234\",[]],[\"name/235\",[172,61.386]],[\"comment/235\",[]],[\"name/236\",[173,61.386]],[\"comment/236\",[]],[\"name/237\",[174,61.386]],[\"comment/237\",[]],[\"name/238\",[175,61.386]],[\"comment/238\",[]],[\"name/239\",[176,61.386]],[\"comment/239\",[]],[\"name/240\",[166,56.265]],[\"comment/240\",[]],[\"name/241\",[82,36.76]],[\"comment/241\",[]],[\"name/242\",[167,56.265]],[\"comment/242\",[]],[\"name/243\",[177,52.892]],[\"comment/243\",[]],[\"name/244\",[162,52.892]],[\"comment/244\",[]],[\"name/245\",[163,52.892]],[\"comment/245\",[]],[\"name/246\",[164,52.892]],[\"comment/246\",[]],[\"name/247\",[178,50.373]],[\"comment/247\",[]],[\"name/248\",[179,61.386]],[\"comment/248\",[]],[\"name/249\",[180,61.386]],[\"comment/249\",[]],[\"name/250\",[181,61.386]],[\"comment/250\",[]],[\"name/251\",[182,61.386]],[\"comment/251\",[]],[\"name/252\",[183,50.373]],[\"comment/252\",[]],[\"name/253\",[82,36.76]],[\"comment/253\",[]],[\"name/254\",[184,50.373]],[\"comment/254\",[]],[\"name/255\",[185,50.373]],[\"comment/255\",[]],[\"name/256\",[186,50.373]],[\"comment/256\",[]],[\"name/257\",[187,50.373]],[\"comment/257\",[]],[\"name/258\",[188,50.373]],[\"comment/258\",[]],[\"name/259\",[189,50.373]],[\"comment/259\",[]],[\"name/260\",[190,61.386]],[\"comment/260\",[]],[\"name/261\",[191,61.386]],[\"comment/261\",[]],[\"name/262\",[192,61.386]],[\"comment/262\",[]],[\"name/263\",[193,52.892]],[\"comment/263\",[]],[\"name/264\",[194,50.373]],[\"comment/264\",[]],[\"name/265\",[189,50.373]],[\"comment/265\",[]],[\"name/266\",[13,48.362]],[\"comment/266\",[]],[\"name/267\",[14,46.687]],[\"comment/267\",[]],[\"name/268\",[7,48.362]],[\"comment/268\",[]],[\"name/269\",[63,46.687]],[\"comment/269\",[]],[\"name/270\",[9,48.362]],[\"comment/270\",[]],[\"name/271\",[195,50.373]],[\"comment/271\",[]],[\"name/272\",[189,50.373]],[\"comment/272\",[]],[\"name/273\",[196,56.265]],[\"comment/273\",[]],[\"name/274\",[193,52.892]],[\"comment/274\",[]],[\"name/275\",[197,61.386]],[\"comment/275\",[]],[\"name/276\",[198,61.386]],[\"comment/276\",[]],[\"name/277\",[199,61.386]],[\"comment/277\",[]],[\"name/278\",[200,50.373]],[\"comment/278\",[]],[\"name/279\",[189,50.373]],[\"comment/279\",[]],[\"name/280\",[201,61.386]],[\"comment/280\",[]],[\"name/281\",[202,61.386]],[\"comment/281\",[]],[\"name/282\",[203,56.265]],[\"comment/282\",[]],[\"name/283\",[204,61.386]],[\"comment/283\",[]],[\"name/284\",[205,50.373]],[\"comment/284\",[]],[\"name/285\",[82,36.76]],[\"comment/285\",[]],[\"name/286\",[206,61.386]],[\"comment/286\",[]],[\"name/287\",[207,61.386]],[\"comment/287\",[]],[\"name/288\",[208,61.386]],[\"comment/288\",[]],[\"name/289\",[209,61.386]],[\"comment/289\",[]],[\"name/290\",[210,61.386]],[\"comment/290\",[]],[\"name/291\",[211,61.386]],[\"comment/291\",[]],[\"name/292\",[212,50.373]],[\"comment/292\",[]],[\"name/293\",[49,45.253]],[\"comment/293\",[]],[\"name/294\",[213,48.362]],[\"comment/294\",[]],[\"name/295\",[214,50.373]],[\"comment/295\",[]],[\"name/296\",[48,39.361]],[\"comment/296\",[]],[\"name/297\",[213,48.362]],[\"comment/297\",[]],[\"name/298\",[215,50.373]],[\"comment/298\",[]],[\"name/299\",[48,39.361]],[\"comment/299\",[]],[\"name/300\",[213,48.362]],[\"comment/300\",[]],[\"name/301\",[216,56.265]],[\"comment/301\",[]],[\"name/302\",[48,39.361]],[\"comment/302\",[]],[\"name/303\",[203,56.265]],[\"comment/303\",[]],[\"name/304\",[66,50.373]],[\"comment/304\",[]],[\"name/305\",[67,56.265]],[\"comment/305\",[]],[\"name/306\",[63,46.687]],[\"comment/306\",[]],[\"name/307\",[68,50.373]],[\"comment/307\",[]],[\"name/308\",[69,56.265]],[\"comment/308\",[]],[\"name/309\",[20,48.362]],[\"comment/309\",[]],[\"name/310\",[70,56.265]],[\"comment/310\",[]],[\"name/311\",[71,56.265]],[\"comment/311\",[]],[\"name/312\",[26,46.687]],[\"comment/312\",[]],[\"name/313\",[27,46.687]],[\"comment/313\",[]],[\"name/314\",[28,46.687]],[\"comment/314\",[]],[\"name/315\",[217,56.265]],[\"comment/315\",[]],[\"name/316\",[48,39.361]],[\"comment/316\",[]],[\"name/317\",[75,56.265]],[\"comment/317\",[]],[\"name/318\",[218,61.386]],[\"comment/318\",[]],[\"name/319\",[219,56.265]],[\"comment/319\",[]],[\"name/320\",[48,39.361]],[\"comment/320\",[]],[\"name/321\",[66,50.373]],[\"comment/321\",[]],[\"name/322\",[63,46.687]],[\"comment/322\",[]],[\"name/323\",[68,50.373]],[\"comment/323\",[]],[\"name/324\",[220,56.265]],[\"comment/324\",[]],[\"name/325\",[49,45.253]],[\"comment/325\",[]],[\"name/326\",[29,50.373]],[\"comment/326\",[]],[\"name/327\",[31,50.373]],[\"comment/327\",[]],[\"name/328\",[32,50.373]],[\"comment/328\",[]],[\"name/329\",[37,50.373]],[\"comment/329\",[]],[\"name/330\",[38,50.373]],[\"comment/330\",[]],[\"name/331\",[14,46.687]],[\"comment/331\",[]],[\"name/332\",[15,50.373]],[\"comment/332\",[]],[\"name/333\",[16,50.373]],[\"comment/333\",[]],[\"name/334\",[17,50.373]],[\"comment/334\",[]],[\"name/335\",[18,50.373]],[\"comment/335\",[]],[\"name/336\",[19,50.373]],[\"comment/336\",[]],[\"name/337\",[21,50.373]],[\"comment/337\",[]],[\"name/338\",[22,50.373]],[\"comment/338\",[]],[\"name/339\",[23,50.373]],[\"comment/339\",[]],[\"name/340\",[24,50.373]],[\"comment/340\",[]],[\"name/341\",[26,46.687]],[\"comment/341\",[]],[\"name/342\",[27,46.687]],[\"comment/342\",[]],[\"name/343\",[28,46.687]],[\"comment/343\",[]],[\"name/344\",[221,56.265]],[\"comment/344\",[]],[\"name/345\",[48,39.361]],[\"comment/345\",[]],[\"name/346\",[49,45.253]],[\"comment/346\",[]],[\"name/347\",[222,61.386]],[\"comment/347\",[]],[\"name/348\",[223,61.386]],[\"comment/348\",[]],[\"name/349\",[8,50.373]],[\"comment/349\",[]],[\"name/350\",[224,56.265]],[\"comment/350\",[]],[\"name/351\",[34,52.892]],[\"comment/351\",[]],[\"name/352\",[35,52.892]],[\"comment/352\",[]],[\"name/353\",[36,52.892]],[\"comment/353\",[]],[\"name/354\",[9,48.362]],[\"comment/354\",[]],[\"name/355\",[10,52.892]],[\"comment/355\",[]],[\"name/356\",[11,52.892]],[\"comment/356\",[]],[\"name/357\",[7,48.362]],[\"comment/357\",[]],[\"name/358\",[12,50.373]],[\"comment/358\",[]],[\"name/359\",[225,61.386]],[\"comment/359\",[]],[\"name/360\",[13,48.362]],[\"comment/360\",[]],[\"name/361\",[14,46.687]],[\"comment/361\",[]],[\"name/362\",[15,50.373]],[\"comment/362\",[]],[\"name/363\",[16,50.373]],[\"comment/363\",[]],[\"name/364\",[17,50.373]],[\"comment/364\",[]],[\"name/365\",[18,50.373]],[\"comment/365\",[]],[\"name/366\",[19,50.373]],[\"comment/366\",[]],[\"name/367\",[20,48.362]],[\"comment/367\",[]],[\"name/368\",[21,50.373]],[\"comment/368\",[]],[\"name/369\",[22,50.373]],[\"comment/369\",[]],[\"name/370\",[23,50.373]],[\"comment/370\",[]],[\"name/371\",[24,50.373]],[\"comment/371\",[]],[\"name/372\",[33,52.892]],[\"comment/372\",[]],[\"name/373\",[30,52.892]],[\"comment/373\",[]],[\"name/374\",[29,50.373]],[\"comment/374\",[]],[\"name/375\",[226,61.386]],[\"comment/375\",[]],[\"name/376\",[31,50.373]],[\"comment/376\",[]],[\"name/377\",[32,50.373]],[\"comment/377\",[]],[\"name/378\",[39,52.892]],[\"comment/378\",[]],[\"name/379\",[40,52.892]],[\"comment/379\",[]],[\"name/380\",[38,50.373]],[\"comment/380\",[]],[\"name/381\",[37,50.373]],[\"comment/381\",[]],[\"name/382\",[26,46.687]],[\"comment/382\",[]],[\"name/383\",[27,46.687]],[\"comment/383\",[]],[\"name/384\",[28,46.687]],[\"comment/384\",[]],[\"name/385\",[227,56.265]],[\"comment/385\",[]],[\"name/386\",[48,39.361]],[\"comment/386\",[]],[\"name/387\",[213,48.362]],[\"comment/387\",[]],[\"name/388\",[228,61.386]],[\"comment/388\",[]],[\"name/389\",[229,56.265]],[\"comment/389\",[]],[\"name/390\",[230,56.265]],[\"comment/390\",[]],[\"name/391\",[231,56.265]],[\"comment/391\",[]],[\"name/392\",[232,61.386]],[\"comment/392\",[]],[\"name/393\",[233,61.386]],[\"comment/393\",[]],[\"name/394\",[234,61.386]],[\"comment/394\",[]],[\"name/395\",[13,48.362]],[\"comment/395\",[]],[\"name/396\",[235,61.386]],[\"comment/396\",[]],[\"name/397\",[236,61.386]],[\"comment/397\",[]],[\"name/398\",[237,61.386]],[\"comment/398\",[]],[\"name/399\",[14,46.687]],[\"comment/399\",[]],[\"name/400\",[238,61.386]],[\"comment/400\",[]],[\"name/401\",[239,61.386]],[\"comment/401\",[]],[\"name/402\",[240,61.386]],[\"comment/402\",[]],[\"name/403\",[241,61.386]],[\"comment/403\",[]],[\"name/404\",[242,61.386]],[\"comment/404\",[]],[\"name/405\",[243,61.386]],[\"comment/405\",[]],[\"name/406\",[244,61.386]],[\"comment/406\",[]],[\"name/407\",[245,61.386]],[\"comment/407\",[]],[\"name/408\",[246,61.386]],[\"comment/408\",[]],[\"name/409\",[247,61.386]],[\"comment/409\",[]],[\"name/410\",[248,61.386]],[\"comment/410\",[]],[\"name/411\",[249,61.386]],[\"comment/411\",[]],[\"name/412\",[9,48.362]],[\"comment/412\",[]],[\"name/413\",[7,48.362]],[\"comment/413\",[]],[\"name/414\",[224,56.265]],[\"comment/414\",[]],[\"name/415\",[250,61.386]],[\"comment/415\",[]],[\"name/416\",[251,61.386]],[\"comment/416\",[]],[\"name/417\",[252,61.386]],[\"comment/417\",[]],[\"name/418\",[253,61.386]],[\"comment/418\",[]],[\"name/419\",[8,50.373]],[\"comment/419\",[]],[\"name/420\",[254,61.386]],[\"comment/420\",[]],[\"name/421\",[255,61.386]],[\"comment/421\",[]],[\"name/422\",[256,61.386]],[\"comment/422\",[]],[\"name/423\",[257,61.386]],[\"comment/423\",[]],[\"name/424\",[12,50.373]],[\"comment/424\",[]],[\"name/425\",[258,56.265]],[\"comment/425\",[]],[\"name/426\",[259,61.386]],[\"comment/426\",[]],[\"name/427\",[193,52.892]],[\"comment/427\",[]],[\"name/428\",[260,61.386]],[\"comment/428\",[]],[\"name/429\",[261,61.386]],[\"comment/429\",[]],[\"name/430\",[262,61.386]],[\"comment/430\",[]],[\"name/431\",[263,61.386]],[\"comment/431\",[]],[\"name/432\",[264,61.386]],[\"comment/432\",[]],[\"name/433\",[265,61.386]],[\"comment/433\",[]],[\"name/434\",[213,48.362]],[\"comment/434\",[]],[\"name/435\",[196,56.265]],[\"comment/435\",[]],[\"name/436\",[266,61.386]],[\"comment/436\",[]],[\"name/437\",[267,61.386]],[\"comment/437\",[]],[\"name/438\",[268,61.386]],[\"comment/438\",[]],[\"name/439\",[269,61.386]],[\"comment/439\",[]],[\"name/440\",[270,61.386]],[\"comment/440\",[]],[\"name/441\",[271,61.386]],[\"comment/441\",[]],[\"name/442\",[272,61.386]],[\"comment/442\",[]],[\"name/443\",[273,61.386]],[\"comment/443\",[]],[\"name/444\",[274,56.265]],[\"comment/444\",[]],[\"name/445\",[275,61.386]],[\"comment/445\",[]],[\"name/446\",[276,61.386]],[\"comment/446\",[]],[\"name/447\",[277,56.265]],[\"comment/447\",[]],[\"name/448\",[82,36.76]],[\"comment/448\",[]],[\"name/449\",[278,56.265]],[\"comment/449\",[]],[\"name/450\",[279,52.892]],[\"comment/450\",[]],[\"name/451\",[280,52.892]],[\"comment/451\",[]],[\"name/452\",[281,56.265]],[\"comment/452\",[]],[\"name/453\",[82,36.76]],[\"comment/453\",[]],[\"name/454\",[278,56.265]],[\"comment/454\",[]],[\"name/455\",[282,61.386]],[\"comment/455\",[]],[\"name/456\",[279,52.892]],[\"comment/456\",[]],[\"name/457\",[280,52.892]],[\"comment/457\",[]],[\"name/458\",[283,56.265]],[\"comment/458\",[]],[\"name/459\",[284,56.265]],[\"comment/459\",[]],[\"name/460\",[48,39.361]],[\"comment/460\",[]],[\"name/461\",[279,52.892]],[\"comment/461\",[]],[\"name/462\",[280,52.892]],[\"comment/462\",[]],[\"name/463\",[285,61.386]],[\"comment/463\",[]],[\"name/464\",[286,61.386]],[\"comment/464\",[]],[\"name/465\",[82,36.76]],[\"comment/465\",[]],[\"name/466\",[287,61.386]],[\"comment/466\",[]],[\"name/467\",[82,36.76]],[\"comment/467\",[]],[\"name/468\",[288,56.265]],[\"comment/468\",[]],[\"name/469\",[289,56.265]],[\"comment/469\",[]],[\"name/470\",[290,56.265]],[\"comment/470\",[]],[\"name/471\",[291,50.373]],[\"comment/471\",[]],[\"name/472\",[274,56.265]],[\"comment/472\",[]],[\"name/473\",[292,50.373]],[\"comment/473\",[]],[\"name/474\",[293,50.373]],[\"comment/474\",[]],[\"name/475\",[294,50.373]],[\"comment/475\",[]],[\"name/476\",[295,50.373]],[\"comment/476\",[]],[\"name/477\",[296,50.373]],[\"comment/477\",[]],[\"name/478\",[297,50.373]],[\"comment/478\",[]],[\"name/479\",[298,50.373]],[\"comment/479\",[]],[\"name/480\",[299,61.386]],[\"comment/480\",[]],[\"name/481\",[82,36.76]],[\"comment/481\",[]],[\"name/482\",[300,50.373]],[\"comment/482\",[]],[\"name/483\",[301,50.373]],[\"comment/483\",[]],[\"name/484\",[302,61.386]],[\"comment/484\",[]],[\"name/485\",[82,36.76]],[\"comment/485\",[]],[\"name/486\",[300,50.373]],[\"comment/486\",[]],[\"name/487\",[301,50.373]],[\"comment/487\",[]],[\"name/488\",[303,61.386]],[\"comment/488\",[]],[\"name/489\",[82,36.76]],[\"comment/489\",[]],[\"name/490\",[300,50.373]],[\"comment/490\",[]],[\"name/491\",[301,50.373]],[\"comment/491\",[]],[\"name/492\",[304,56.265]],[\"comment/492\",[]],[\"name/493\",[305,50.373]],[\"comment/493\",[]],[\"name/494\",[300,50.373]],[\"comment/494\",[]],[\"name/495\",[301,50.373]],[\"comment/495\",[]],[\"name/496\",[304,56.265]],[\"comment/496\",[]],[\"name/497\",[306,50.373]],[\"comment/497\",[]],[\"name/498\",[307,61.386]],[\"comment/498\",[]],[\"name/499\",[308,61.386]],[\"comment/499\",[]],[\"name/500\",[309,61.386]],[\"comment/500\",[]],[\"name/501\",[310,61.386]],[\"comment/501\",[]],[\"name/502\",[311,61.386]],[\"comment/502\",[]],[\"name/503\",[312,61.386]],[\"comment/503\",[]],[\"name/504\",[313,50.373]],[\"comment/504\",[]],[\"name/505\",[314,50.373]],[\"comment/505\",[]],[\"name/506\",[315,50.373]],[\"comment/506\",[]],[\"name/507\",[316,50.373]],[\"comment/507\",[]],[\"name/508\",[317,50.373]],[\"comment/508\",[]],[\"name/509\",[318,56.265]],[\"comment/509\",[]],[\"name/510\",[178,50.373]],[\"comment/510\",[]],[\"name/511\",[183,50.373]],[\"comment/511\",[]],[\"name/512\",[109,50.373]],[\"comment/512\",[]],[\"name/513\",[52,50.373]],[\"comment/513\",[]],[\"name/514\",[58,50.373]],[\"comment/514\",[]],[\"name/515\",[60,50.373]],[\"comment/515\",[]],[\"name/516\",[184,50.373]],[\"comment/516\",[]],[\"name/517\",[185,50.373]],[\"comment/517\",[]],[\"name/518\",[186,50.373]],[\"comment/518\",[]],[\"name/519\",[187,50.373]],[\"comment/519\",[]],[\"name/520\",[188,50.373]],[\"comment/520\",[]],[\"name/521\",[194,50.373]],[\"comment/521\",[]],[\"name/522\",[195,50.373]],[\"comment/522\",[]],[\"name/523\",[200,50.373]],[\"comment/523\",[]],[\"name/524\",[205,50.373]],[\"comment/524\",[]],[\"name/525\",[212,50.373]],[\"comment/525\",[]],[\"name/526\",[49,45.253]],[\"comment/526\",[]],[\"name/527\",[214,50.373]],[\"comment/527\",[]],[\"name/528\",[215,50.373]],[\"comment/528\",[]],[\"name/529\",[291,50.373]],[\"comment/529\",[]],[\"name/530\",[216,56.265]],[\"comment/530\",[]],[\"name/531\",[217,56.265]],[\"comment/531\",[]],[\"name/532\",[219,56.265]],[\"comment/532\",[]],[\"name/533\",[220,56.265]],[\"comment/533\",[]],[\"name/534\",[221,56.265]],[\"comment/534\",[]],[\"name/535\",[227,56.265]],[\"comment/535\",[]],[\"name/536\",[229,56.265]],[\"comment/536\",[]],[\"name/537\",[230,56.265]],[\"comment/537\",[]],[\"name/538\",[231,56.265]],[\"comment/538\",[]],[\"name/539\",[258,56.265]],[\"comment/539\",[]],[\"name/540\",[277,56.265]],[\"comment/540\",[]],[\"name/541\",[281,56.265]],[\"comment/541\",[]],[\"name/542\",[283,56.265]],[\"comment/542\",[]],[\"name/543\",[284,56.265]],[\"comment/543\",[]],[\"name/544\",[288,56.265]],[\"comment/544\",[]],[\"name/545\",[289,56.265]],[\"comment/545\",[]],[\"name/546\",[290,56.265]],[\"comment/546\",[]],[\"name/547\",[292,50.373]],[\"comment/547\",[]],[\"name/548\",[293,50.373]],[\"comment/548\",[]],[\"name/549\",[294,50.373]],[\"comment/549\",[]],[\"name/550\",[295,50.373]],[\"comment/550\",[]],[\"name/551\",[296,50.373]],[\"comment/551\",[]],[\"name/552\",[297,50.373]],[\"comment/552\",[]],[\"name/553\",[298,50.373]],[\"comment/553\",[]],[\"name/554\",[305,50.373]],[\"comment/554\",[]],[\"name/555\",[306,50.373]],[\"comment/555\",[]],[\"name/556\",[313,50.373]],[\"comment/556\",[]],[\"name/557\",[314,50.373]],[\"comment/557\",[]],[\"name/558\",[315,50.373]],[\"comment/558\",[]],[\"name/559\",[316,50.373]],[\"comment/559\",[]],[\"name/560\",[317,50.373]],[\"comment/560\",[]],[\"name/561\",[318,56.265]],[\"comment/561\",[]],[\"name/562\",[109,50.373]],[\"comment/562\",[]],[\"name/563\",[157,52.892]],[\"comment/563\",[]],[\"name/564\",[319,61.386]],[\"comment/564\",[]],[\"name/565\",[6,52.892]],[\"comment/565\",[]],[\"name/566\",[41,52.892]],[\"comment/566\",[]],[\"name/567\",[47,52.892]],[\"comment/567\",[]],[\"name/568\",[52,50.373]],[\"comment/568\",[]],[\"name/569\",[58,50.373]],[\"comment/569\",[]],[\"name/570\",[60,50.373]],[\"comment/570\",[]],[\"name/571\",[65,52.892]],[\"comment/571\",[]],[\"name/572\",[72,52.892]],[\"comment/572\",[]],[\"name/573\",[77,52.892]],[\"comment/573\",[]],[\"name/574\",[51,48.362]],[\"comment/574\",[]],[\"name/575\",[80,52.892]],[\"comment/575\",[]],[\"name/576\",[86,52.892]],[\"comment/576\",[]],[\"name/577\",[93,52.892]],[\"comment/577\",[]],[\"name/578\",[103,52.892]],[\"comment/578\",[]],[\"name/579\",[104,52.892]],[\"comment/579\",[]],[\"name/580\",[105,52.892]],[\"comment/580\",[]],[\"name/581\",[106,52.892]],[\"comment/581\",[]],[\"name/582\",[107,52.892]],[\"comment/582\",[]],[\"name/583\",[108,52.892]],[\"comment/583\",[]],[\"name/584\",[116,52.892]],[\"comment/584\",[]],[\"name/585\",[123,48.362]],[\"comment/585\",[]],[\"name/586\",[129,52.892]],[\"comment/586\",[]],[\"name/587\",[135,52.892]],[\"comment/587\",[]],[\"name/588\",[136,52.892]],[\"comment/588\",[]],[\"name/589\",[158,52.892]],[\"comment/589\",[]],[\"name/590\",[161,52.892]],[\"comment/590\",[]],[\"name/591\",[168,52.892]],[\"comment/591\",[]],[\"name/592\",[177,52.892]],[\"comment/592\",[]],[\"name/593\",[178,50.373]],[\"comment/593\",[]],[\"name/594\",[183,50.373]],[\"comment/594\",[]],[\"name/595\",[184,50.373]],[\"comment/595\",[]],[\"name/596\",[185,50.373]],[\"comment/596\",[]],[\"name/597\",[186,50.373]],[\"comment/597\",[]],[\"name/598\",[187,50.373]],[\"comment/598\",[]],[\"name/599\",[188,50.373]],[\"comment/599\",[]],[\"name/600\",[194,50.373]],[\"comment/600\",[]],[\"name/601\",[195,50.373]],[\"comment/601\",[]],[\"name/602\",[200,50.373]],[\"comment/602\",[]],[\"name/603\",[205,50.373]],[\"comment/603\",[]],[\"name/604\",[212,50.373]],[\"comment/604\",[]],[\"name/605\",[49,45.253]],[\"comment/605\",[]],[\"name/606\",[214,50.373]],[\"comment/606\",[]],[\"name/607\",[215,50.373]],[\"comment/607\",[]],[\"name/608\",[292,50.373]],[\"comment/608\",[]],[\"name/609\",[293,50.373]],[\"comment/609\",[]],[\"name/610\",[294,50.373]],[\"comment/610\",[]],[\"name/611\",[295,50.373]],[\"comment/611\",[]],[\"name/612\",[296,50.373]],[\"comment/612\",[]],[\"name/613\",[297,50.373]],[\"comment/613\",[]],[\"name/614\",[298,50.373]],[\"comment/614\",[]],[\"name/615\",[305,50.373]],[\"comment/615\",[]],[\"name/616\",[306,50.373]],[\"comment/616\",[]],[\"name/617\",[291,50.373]],[\"comment/617\",[]],[\"name/618\",[313,50.373]],[\"comment/618\",[]],[\"name/619\",[314,50.373]],[\"comment/619\",[]],[\"name/620\",[315,50.373]],[\"comment/620\",[]],[\"name/621\",[316,50.373]],[\"comment/621\",[]],[\"name/622\",[317,50.373]],[\"comment/622\",[]],[\"name/623\",[109,50.373]],[\"comment/623\",[]],[\"name/624\",[157,52.892]],[\"comment/624\",[]],[\"name/625\",[320,61.386]],[\"comment/625\",[]],[\"name/626\",[6,52.892]],[\"comment/626\",[]],[\"name/627\",[41,52.892]],[\"comment/627\",[]],[\"name/628\",[47,52.892]],[\"comment/628\",[]],[\"name/629\",[52,50.373]],[\"comment/629\",[]],[\"name/630\",[58,50.373]],[\"comment/630\",[]],[\"name/631\",[60,50.373]],[\"comment/631\",[]],[\"name/632\",[65,52.892]],[\"comment/632\",[]],[\"name/633\",[72,52.892]],[\"comment/633\",[]],[\"name/634\",[77,52.892]],[\"comment/634\",[]],[\"name/635\",[51,48.362]],[\"comment/635\",[]],[\"name/636\",[80,52.892]],[\"comment/636\",[]],[\"name/637\",[86,52.892]],[\"comment/637\",[]],[\"name/638\",[93,52.892]],[\"comment/638\",[]],[\"name/639\",[103,52.892]],[\"comment/639\",[]],[\"name/640\",[104,52.892]],[\"comment/640\",[]],[\"name/641\",[105,52.892]],[\"comment/641\",[]],[\"name/642\",[106,52.892]],[\"comment/642\",[]],[\"name/643\",[107,52.892]],[\"comment/643\",[]],[\"name/644\",[108,52.892]],[\"comment/644\",[]],[\"name/645\",[116,52.892]],[\"comment/645\",[]],[\"name/646\",[123,48.362]],[\"comment/646\",[]],[\"name/647\",[129,52.892]],[\"comment/647\",[]],[\"name/648\",[135,52.892]],[\"comment/648\",[]],[\"name/649\",[136,52.892]],[\"comment/649\",[]],[\"name/650\",[158,52.892]],[\"comment/650\",[]],[\"name/651\",[161,52.892]],[\"comment/651\",[]],[\"name/652\",[168,52.892]],[\"comment/652\",[]],[\"name/653\",[177,52.892]],[\"comment/653\",[]],[\"name/654\",[178,50.373]],[\"comment/654\",[]],[\"name/655\",[183,50.373]],[\"comment/655\",[]],[\"name/656\",[184,50.373]],[\"comment/656\",[]],[\"name/657\",[185,50.373]],[\"comment/657\",[]],[\"name/658\",[186,50.373]],[\"comment/658\",[]],[\"name/659\",[187,50.373]],[\"comment/659\",[]],[\"name/660\",[188,50.373]],[\"comment/660\",[]],[\"name/661\",[194,50.373]],[\"comment/661\",[]],[\"name/662\",[195,50.373]],[\"comment/662\",[]],[\"name/663\",[200,50.373]],[\"comment/663\",[]],[\"name/664\",[205,50.373]],[\"comment/664\",[]],[\"name/665\",[212,50.373]],[\"comment/665\",[]],[\"name/666\",[49,45.253]],[\"comment/666\",[]],[\"name/667\",[214,50.373]],[\"comment/667\",[]],[\"name/668\",[215,50.373]],[\"comment/668\",[]],[\"name/669\",[292,50.373]],[\"comment/669\",[]],[\"name/670\",[293,50.373]],[\"comment/670\",[]],[\"name/671\",[294,50.373]],[\"comment/671\",[]],[\"name/672\",[295,50.373]],[\"comment/672\",[]],[\"name/673\",[296,50.373]],[\"comment/673\",[]],[\"name/674\",[297,50.373]],[\"comment/674\",[]],[\"name/675\",[298,50.373]],[\"comment/675\",[]],[\"name/676\",[305,50.373]],[\"comment/676\",[]],[\"name/677\",[306,50.373]],[\"comment/677\",[]],[\"name/678\",[291,50.373]],[\"comment/678\",[]],[\"name/679\",[313,50.373]],[\"comment/679\",[]],[\"name/680\",[314,50.373]],[\"comment/680\",[]],[\"name/681\",[315,50.373]],[\"comment/681\",[]],[\"name/682\",[316,50.373]],[\"comment/682\",[]],[\"name/683\",[317,50.373]],[\"comment/683\",[]]],\"invertedIndex\":[[\"__type\",{\"_index\":82,\"name\":{\"129\":{},\"131\":{},\"133\":{},\"135\":{},\"137\":{},\"138\":{},\"226\":{},\"241\":{},\"253\":{},\"285\":{},\"448\":{},\"453\":{},\"465\":{},\"467\":{},\"481\":{},\"485\":{},\"489\":{}},\"comment\":{}}],[\"_depleted\",{\"_index\":74,\"name\":{\"116\":{}},\"comment\":{}}],[\"_files\",{\"_index\":137,\"name\":{\"196\":{}},\"comment\":{}}],[\"_first\",{\"_index\":73,\"name\":{\"115\":{}},\"comment\":{}}],[\"_udffunctions\",{\"_index\":138,\"name\":{\"197\":{}},\"comment\":{}}],[\"accesskeyid\",{\"_index\":126,\"name\":{\"180\":{}},\"comment\":{}}],[\"allowfullhttpreads\",{\"_index\":59,\"name\":{\"93\":{},\"189\":{},\"193\":{}},\"comment\":{}}],[\"arrowinsertoptions\",{\"_index\":177,\"name\":{\"243\":{},\"592\":{},\"653\":{}},\"comment\":{}}],[\"async_duckdb\",{\"_index\":204,\"name\":{\"283\":{}},\"comment\":{}}],[\"asyncduckdb\",{\"_index\":221,\"name\":{\"344\":{},\"534\":{}},\"comment\":{}}],[\"asyncduckdbbindings\",{\"_index\":220,\"name\":{\"324\":{},\"533\":{}},\"comment\":{}}],[\"asyncduckdbconnection\",{\"_index\":216,\"name\":{\"301\":{},\"530\":{}},\"comment\":{}}],[\"asyncduckdbdispatcher\",{\"_index\":227,\"name\":{\"385\":{},\"535\":{}},\"comment\":{}}],[\"asynciterator\",{\"_index\":218,\"name\":{\"318\":{}},\"comment\":{}}],[\"asyncpreparedstatement\",{\"_index\":219,\"name\":{\"319\":{},\"532\":{}},\"comment\":{}}],[\"asyncresultstreamiterator\",{\"_index\":217,\"name\":{\"315\":{},\"531\":{}},\"comment\":{}}],[\"bigint64array\",{\"_index\":307,\"name\":{\"498\":{}},\"comment\":{}}],[\"bindings\",{\"_index\":203,\"name\":{\"282\":{},\"303\":{}},\"comment\":{}}],[\"blocking\",{\"_index\":3,\"name\":{\"2\":{},\"4\":{}},\"comment\":{}}],[\"blocksize\",{\"_index\":100,\"name\":{\"154\":{}},\"comment\":{}}],[\"blockstats\",{\"_index\":101,\"name\":{\"155\":{}},\"comment\":{}}],[\"browser\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"browser_filereader\",{\"_index\":112,\"name\":{\"166\":{}},\"comment\":{}}],[\"browser_fsaccess\",{\"_index\":113,\"name\":{\"167\":{}},\"comment\":{}}],[\"browser_runtime\",{\"_index\":319,\"name\":{\"564\":{}},\"comment\":{}}],[\"buffer\",{\"_index\":110,\"name\":{\"164\":{}},\"comment\":{}}],[\"bytesloaded\",{\"_index\":182,\"name\":{\"251\":{}},\"comment\":{}}],[\"bytestotal\",{\"_index\":181,\"name\":{\"250\":{}},\"comment\":{}}],[\"cacheepoch\",{\"_index\":130,\"name\":{\"184\":{},\"192\":{}},\"comment\":{}}],[\"callscalarudf\",{\"_index\":156,\"name\":{\"215\":{}},\"comment\":{}}],[\"callsret\",{\"_index\":106,\"name\":{\"160\":{},\"581\":{},\"642\":{}},\"comment\":{}}],[\"cancel_pending_query\",{\"_index\":232,\"name\":{\"392\":{}},\"comment\":{}}],[\"cancelpendingquery\",{\"_index\":18,\"name\":{\"18\":{},\"63\":{},\"335\":{},\"365\":{}},\"comment\":{}}],[\"cancelsent\",{\"_index\":69,\"name\":{\"105\":{},\"308\":{}},\"comment\":{}}],[\"capture\",{\"_index\":199,\"name\":{\"277\":{}},\"comment\":{}}],[\"castbiginttodouble\",{\"_index\":54,\"name\":{\"88\":{}},\"comment\":{}}],[\"castdecimaltodouble\",{\"_index\":57,\"name\":{\"91\":{}},\"comment\":{}}],[\"castdurationtotime64\",{\"_index\":56,\"name\":{\"90\":{}},\"comment\":{}}],[\"casttimestamptodate\",{\"_index\":55,\"name\":{\"89\":{}},\"comment\":{}}],[\"ccall\",{\"_index\":85,\"name\":{\"134\":{}},\"comment\":{}}],[\"checkdirectory\",{\"_index\":149,\"name\":{\"208\":{}},\"comment\":{}}],[\"checkfile\",{\"_index\":154,\"name\":{\"213\":{}},\"comment\":{}}],[\"close\",{\"_index\":66,\"name\":{\"101\":{},\"121\":{},\"304\":{},\"321\":{}},\"comment\":{}}],[\"close_prepared\",{\"_index\":233,\"name\":{\"393\":{}},\"comment\":{}}],[\"closefile\",{\"_index\":143,\"name\":{\"202\":{}},\"comment\":{}}],[\"closeprepared\",{\"_index\":22,\"name\":{\"22\":{},\"68\":{},\"338\":{},\"369\":{}},\"comment\":{}}],[\"coi\",{\"_index\":303,\"name\":{\"488\":{}},\"comment\":{}}],[\"collect_file_statistics\",{\"_index\":234,\"name\":{\"394\":{}},\"comment\":{}}],[\"collectfilestatistics\",{\"_index\":39,\"name\":{\"39\":{},\"84\":{},\"378\":{}},\"comment\":{}}],[\"column_object\",{\"_index\":160,\"name\":{\"219\":{}},\"comment\":{}}],[\"columns\",{\"_index\":166,\"name\":{\"225\":{},\"240\":{}},\"comment\":{}}],[\"columnsflat\",{\"_index\":167,\"name\":{\"227\":{},\"242\":{}},\"comment\":{}}],[\"connect\",{\"_index\":13,\"name\":{\"13\":{},\"58\":{},\"266\":{},\"360\":{},\"395\":{}},\"comment\":{}}],[\"connectinternal\",{\"_index\":225,\"name\":{\"359\":{}},\"comment\":{}}],[\"connection_info\",{\"_index\":259,\"name\":{\"426\":{}},\"comment\":{}}],[\"connectionid\",{\"_index\":229,\"name\":{\"389\":{},\"536\":{}},\"comment\":{}}],[\"consolelogger\",{\"_index\":215,\"name\":{\"298\":{},\"528\":{},\"607\":{},\"668\":{}},\"comment\":{}}],[\"constructor\",{\"_index\":48,\"name\":{\"48\":{},\"100\":{},\"114\":{},\"120\":{},\"147\":{},\"296\":{},\"299\":{},\"302\":{},\"316\":{},\"320\":{},\"345\":{},\"386\":{},\"460\":{}},\"comment\":{}}],[\"copy_file_to_buffer\",{\"_index\":235,\"name\":{\"396\":{}},\"comment\":{}}],[\"copy_file_to_path\",{\"_index\":236,\"name\":{\"397\":{}},\"comment\":{}}],[\"copybuffer\",{\"_index\":104,\"name\":{\"158\":{},\"579\":{},\"640\":{}},\"comment\":{}}],[\"copyfiletobuffer\",{\"_index\":38,\"name\":{\"38\":{},\"83\":{},\"330\":{},\"380\":{}},\"comment\":{}}],[\"copyfiletopath\",{\"_index\":37,\"name\":{\"37\":{},\"82\":{},\"329\":{},\"381\":{}},\"comment\":{}}],[\"create\",{\"_index\":164,\"name\":{\"223\":{},\"231\":{},\"246\":{}},\"comment\":{}}],[\"create_prepared\",{\"_index\":237,\"name\":{\"398\":{}},\"comment\":{}}],[\"createdirectory\",{\"_index\":150,\"name\":{\"209\":{}},\"comment\":{}}],[\"createduckdb\",{\"_index\":4,\"name\":{\"3\":{},\"5\":{}},\"comment\":{}}],[\"createprepared\",{\"_index\":21,\"name\":{\"21\":{},\"67\":{},\"337\":{},\"368\":{}},\"comment\":{}}],[\"createscalarfunction\",{\"_index\":25,\"name\":{\"25\":{},\"66\":{},\"108\":{}},\"comment\":{}}],[\"createworker\",{\"_index\":318,\"name\":{\"509\":{},\"561\":{}},\"comment\":{}}],[\"crossoriginisolated\",{\"_index\":308,\"name\":{\"499\":{}},\"comment\":{}}],[\"csvinsertoptions\",{\"_index\":168,\"name\":{\"228\":{},\"591\":{},\"652\":{}},\"comment\":{}}],[\"data\",{\"_index\":280,\"name\":{\"451\":{},\"457\":{},\"462\":{}},\"comment\":{}}],[\"dataprotocol\",{\"_index\":133,\"name\":{\"187\":{}},\"comment\":{}}],[\"dataurl\",{\"_index\":134,\"name\":{\"188\":{}},\"comment\":{}}],[\"dateformat\",{\"_index\":175,\"name\":{\"238\":{}},\"comment\":{}}],[\"debug\",{\"_index\":190,\"name\":{\"260\":{}},\"comment\":{}}],[\"decodetext\",{\"_index\":108,\"name\":{\"162\":{},\"583\":{},\"644\":{}},\"comment\":{}}],[\"default_runtime\",{\"_index\":157,\"name\":{\"216\":{},\"563\":{},\"624\":{}},\"comment\":{}}],[\"delimiter\",{\"_index\":170,\"name\":{\"233\":{}},\"comment\":{}}],[\"detach\",{\"_index\":222,\"name\":{\"347\":{}},\"comment\":{}}],[\"detect\",{\"_index\":174,\"name\":{\"237\":{}},\"comment\":{}}],[\"disconnect\",{\"_index\":14,\"name\":{\"14\":{},\"59\":{},\"267\":{},\"331\":{},\"361\":{},\"399\":{}},\"comment\":{}}],[\"drop_file\",{\"_index\":238,\"name\":{\"400\":{}},\"comment\":{}}],[\"drop_files\",{\"_index\":239,\"name\":{\"401\":{}},\"comment\":{}}],[\"dropfile\",{\"_index\":34,\"name\":{\"34\":{},\"79\":{},\"351\":{}},\"comment\":{}}],[\"dropfiles\",{\"_index\":35,\"name\":{\"35\":{},\"80\":{},\"352\":{}},\"comment\":{}}],[\"dropresponsebuffers\",{\"_index\":107,\"name\":{\"161\":{},\"582\":{},\"643\":{}},\"comment\":{}}],[\"duckdbbindings\",{\"_index\":6,\"name\":{\"6\":{},\"565\":{},\"626\":{}},\"comment\":{}}],[\"duckdbbindingsbase\",{\"_index\":47,\"name\":{\"47\":{},\"567\":{},\"628\":{}},\"comment\":{}}],[\"duckdbbundle\",{\"_index\":305,\"name\":{\"493\":{},\"554\":{},\"615\":{},\"676\":{}},\"comment\":{}}],[\"duckdbbundles\",{\"_index\":298,\"name\":{\"479\":{},\"553\":{},\"614\":{},\"675\":{}},\"comment\":{}}],[\"duckdbconfig\",{\"_index\":60,\"name\":{\"94\":{},\"515\":{},\"570\":{},\"631\":{}},\"comment\":{}}],[\"duckdbconnection\",{\"_index\":65,\"name\":{\"99\":{},\"571\":{},\"632\":{}},\"comment\":{}}],[\"duckdbdataprotocol\",{\"_index\":109,\"name\":{\"163\":{},\"512\":{},\"562\":{},\"623\":{}},\"comment\":{}}],[\"duckdbfeature\",{\"_index\":41,\"name\":{\"41\":{},\"566\":{},\"627\":{}},\"comment\":{}}],[\"duckdbfileinfo\",{\"_index\":129,\"name\":{\"183\":{},\"586\":{},\"647\":{}},\"comment\":{}}],[\"duckdbfilesystemconfig\",{\"_index\":58,\"name\":{\"92\":{},\"514\":{},\"569\":{},\"630\":{}},\"comment\":{}}],[\"duckdbglobalfileinfo\",{\"_index\":135,\"name\":{\"191\":{},\"587\":{},\"648\":{}},\"comment\":{}}],[\"duckdbmodule\",{\"_index\":80,\"name\":{\"127\":{},\"575\":{},\"636\":{}},\"comment\":{}}],[\"duckdbqueryconfig\",{\"_index\":52,\"name\":{\"86\":{},\"513\":{},\"568\":{},\"629\":{}},\"comment\":{}}],[\"duckdbruntime\",{\"_index\":136,\"name\":{\"195\":{},\"588\":{},\"649\":{}},\"comment\":{}}],[\"eh\",{\"_index\":302,\"name\":{\"484\":{}},\"comment\":{}}],[\"emit_bigint\",{\"_index\":46,\"name\":{\"46\":{}},\"comment\":{}}],[\"endpoint\",{\"_index\":125,\"name\":{\"179\":{}},\"comment\":{}}],[\"error\",{\"_index\":193,\"name\":{\"263\":{},\"274\":{},\"427\":{}},\"comment\":{}}],[\"escape\",{\"_index\":172,\"name\":{\"235\":{}},\"comment\":{}}],[\"event\",{\"_index\":210,\"name\":{\"290\":{}},\"comment\":{}}],[\"export_file_statistics\",{\"_index\":240,\"name\":{\"402\":{}},\"comment\":{}}],[\"exportfilestatistics\",{\"_index\":40,\"name\":{\"40\":{},\"85\":{},\"379\":{}},\"comment\":{}}],[\"failwith\",{\"_index\":103,\"name\":{\"157\":{},\"578\":{},\"639\":{}},\"comment\":{}}],[\"feature_flags\",{\"_index\":260,\"name\":{\"428\":{}},\"comment\":{}}],[\"fetch_query_results\",{\"_index\":241,\"name\":{\"403\":{}},\"comment\":{}}],[\"fetchqueryresults\",{\"_index\":19,\"name\":{\"19\":{},\"64\":{},\"336\":{},\"366\":{}},\"comment\":{}}],[\"file_buffer\",{\"_index\":261,\"name\":{\"429\":{}},\"comment\":{}}],[\"file_flags_append\",{\"_index\":122,\"name\":{\"176\":{}},\"comment\":{}}],[\"file_flags_direct_io\",{\"_index\":119,\"name\":{\"173\":{}},\"comment\":{}}],[\"file_flags_file_create\",{\"_index\":120,\"name\":{\"174\":{}},\"comment\":{}}],[\"file_flags_file_create_new\",{\"_index\":121,\"name\":{\"175\":{}},\"comment\":{}}],[\"file_flags_read\",{\"_index\":117,\"name\":{\"171\":{}},\"comment\":{}}],[\"file_flags_write\",{\"_index\":118,\"name\":{\"172\":{}},\"comment\":{}}],[\"file_infos\",{\"_index\":262,\"name\":{\"430\":{}},\"comment\":{}}],[\"file_reads_ahead\",{\"_index\":88,\"name\":{\"141\":{}},\"comment\":{}}],[\"file_reads_cached\",{\"_index\":89,\"name\":{\"142\":{}},\"comment\":{}}],[\"file_reads_cold\",{\"_index\":87,\"name\":{\"140\":{}},\"comment\":{}}],[\"file_size\",{\"_index\":263,\"name\":{\"431\":{}},\"comment\":{}}],[\"file_statistics\",{\"_index\":264,\"name\":{\"432\":{}},\"comment\":{}}],[\"file_writes\",{\"_index\":90,\"name\":{\"143\":{}},\"comment\":{}}],[\"fileblockstatistics\",{\"_index\":86,\"name\":{\"139\":{},\"576\":{},\"637\":{}},\"comment\":{}}],[\"fileflags\",{\"_index\":116,\"name\":{\"170\":{},\"584\":{},\"645\":{}},\"comment\":{}}],[\"fileid\",{\"_index\":131,\"name\":{\"185\":{}},\"comment\":{}}],[\"filename\",{\"_index\":132,\"name\":{\"186\":{}},\"comment\":{}}],[\"filestatistics\",{\"_index\":93,\"name\":{\"146\":{},\"577\":{},\"638\":{}},\"comment\":{}}],[\"filesystem\",{\"_index\":64,\"name\":{\"98\":{}},\"comment\":{}}],[\"flush_files\",{\"_index\":242,\"name\":{\"404\":{}},\"comment\":{}}],[\"flushfiles\",{\"_index\":36,\"name\":{\"36\":{},\"81\":{},\"353\":{}},\"comment\":{}}],[\"get_feature_flags\",{\"_index\":243,\"name\":{\"405\":{}},\"comment\":{}}],[\"get_table_names\",{\"_index\":244,\"name\":{\"406\":{}},\"comment\":{}}],[\"get_version\",{\"_index\":245,\"name\":{\"407\":{}},\"comment\":{}}],[\"getblockstats\",{\"_index\":102,\"name\":{\"156\":{}},\"comment\":{}}],[\"getdefaultdataprotocol\",{\"_index\":140,\"name\":{\"199\":{}},\"comment\":{}}],[\"getfeatureflags\",{\"_index\":11,\"name\":{\"11\":{},\"56\":{},\"356\":{}},\"comment\":{}}],[\"getjsdelivrbundles\",{\"_index\":292,\"name\":{\"473\":{},\"547\":{},\"608\":{},\"669\":{}},\"comment\":{}}],[\"getlastfilemodificationtime\",{\"_index\":144,\"name\":{\"203\":{}},\"comment\":{}}],[\"getlogeventlabel\",{\"_index\":185,\"name\":{\"255\":{},\"517\":{},\"596\":{},\"657\":{}},\"comment\":{}}],[\"getloglevellabel\",{\"_index\":184,\"name\":{\"254\":{},\"516\":{},\"595\":{},\"656\":{}},\"comment\":{}}],[\"getlogoriginlabel\",{\"_index\":187,\"name\":{\"257\":{},\"519\":{},\"598\":{},\"659\":{}},\"comment\":{}}],[\"getlogtopiclabel\",{\"_index\":186,\"name\":{\"256\":{},\"518\":{},\"597\":{},\"658\":{}},\"comment\":{}}],[\"getplatformfeatures\",{\"_index\":293,\"name\":{\"474\":{},\"548\":{},\"609\":{},\"670\":{}},\"comment\":{}}],[\"gettablenames\",{\"_index\":20,\"name\":{\"20\":{},\"65\":{},\"106\":{},\"309\":{},\"367\":{}},\"comment\":{}}],[\"getversion\",{\"_index\":10,\"name\":{\"10\":{},\"55\":{},\"355\":{}},\"comment\":{}}],[\"glob\",{\"_index\":152,\"name\":{\"211\":{}},\"comment\":{}}],[\"glob_file_infos\",{\"_index\":246,\"name\":{\"408\":{}},\"comment\":{}}],[\"globfiles\",{\"_index\":33,\"name\":{\"33\":{},\"74\":{},\"372\":{}},\"comment\":{}}],[\"header\",{\"_index\":169,\"name\":{\"232\":{}},\"comment\":{}}],[\"http\",{\"_index\":114,\"name\":{\"168\":{}},\"comment\":{}}],[\"index\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"info\",{\"_index\":191,\"name\":{\"261\":{}},\"comment\":{}}],[\"insert_arrow_from_ipc_stream\",{\"_index\":247,\"name\":{\"409\":{}},\"comment\":{}}],[\"insert_csv_from_path\",{\"_index\":248,\"name\":{\"410\":{}},\"comment\":{}}],[\"insert_json_from_path\",{\"_index\":249,\"name\":{\"411\":{}},\"comment\":{}}],[\"insertarrowfromipcstream\",{\"_index\":26,\"name\":{\"26\":{},\"71\":{},\"110\":{},\"312\":{},\"341\":{},\"382\":{}},\"comment\":{}}],[\"insertarrowtable\",{\"_index\":71,\"name\":{\"109\":{},\"311\":{}},\"comment\":{}}],[\"insertcsvfrompath\",{\"_index\":27,\"name\":{\"27\":{},\"72\":{},\"111\":{},\"313\":{},\"342\":{},\"383\":{}},\"comment\":{}}],[\"insertjsonfrompath\",{\"_index\":28,\"name\":{\"28\":{},\"73\":{},\"112\":{},\"314\":{},\"343\":{},\"384\":{}},\"comment\":{}}],[\"instantiate\",{\"_index\":9,\"name\":{\"9\":{},\"52\":{},\"270\":{},\"354\":{},\"412\":{}},\"comment\":{}}],[\"instantiate_progress\",{\"_index\":265,\"name\":{\"433\":{}},\"comment\":{}}],[\"instantiationprogress\",{\"_index\":178,\"name\":{\"247\":{},\"510\":{},\"593\":{},\"654\":{}},\"comment\":{}}],[\"instantiationprogresshandler\",{\"_index\":183,\"name\":{\"252\":{},\"511\":{},\"594\":{},\"655\":{}},\"comment\":{}}],[\"isfirefox\",{\"_index\":296,\"name\":{\"477\":{},\"551\":{},\"612\":{},\"673\":{}},\"comment\":{}}],[\"isnode\",{\"_index\":295,\"name\":{\"476\":{},\"550\":{},\"611\":{},\"672\":{}},\"comment\":{}}],[\"issafari\",{\"_index\":297,\"name\":{\"478\":{},\"552\":{},\"613\":{},\"674\":{}},\"comment\":{}}],[\"iterator\",{\"_index\":76,\"name\":{\"118\":{}},\"comment\":{}}],[\"jsoninsertoptions\",{\"_index\":161,\"name\":{\"220\":{},\"590\":{},\"651\":{}},\"comment\":{}}],[\"jsontableshape\",{\"_index\":158,\"name\":{\"217\":{},\"589\":{},\"650\":{}},\"comment\":{}}],[\"level\",{\"_index\":207,\"name\":{\"287\":{}},\"comment\":{}}],[\"listdirectoryentries\",{\"_index\":151,\"name\":{\"210\":{}},\"comment\":{}}],[\"log\",{\"_index\":213,\"name\":{\"294\":{},\"297\":{},\"300\":{},\"387\":{},\"434\":{}},\"comment\":{}}],[\"logentry\",{\"_index\":205,\"name\":{\"284\":{},\"524\":{},\"603\":{},\"664\":{}},\"comment\":{}}],[\"logentryvariant\",{\"_index\":212,\"name\":{\"292\":{},\"525\":{},\"604\":{},\"665\":{}},\"comment\":{}}],[\"logevent\",{\"_index\":195,\"name\":{\"271\":{},\"522\":{},\"601\":{},\"662\":{}},\"comment\":{}}],[\"logger\",{\"_index\":49,\"name\":{\"49\":{},\"293\":{},\"325\":{},\"346\":{},\"526\":{},\"605\":{},\"666\":{}},\"comment\":{}}],[\"loglevel\",{\"_index\":188,\"name\":{\"258\":{},\"520\":{},\"599\":{},\"660\":{}},\"comment\":{}}],[\"logorigin\",{\"_index\":200,\"name\":{\"278\":{},\"523\":{},\"602\":{},\"663\":{}},\"comment\":{}}],[\"logtopic\",{\"_index\":194,\"name\":{\"264\":{},\"521\":{},\"600\":{},\"661\":{}},\"comment\":{}}],[\"mainmodule\",{\"_index\":300,\"name\":{\"482\":{},\"486\":{},\"490\":{},\"494\":{}},\"comment\":{}}],[\"mainworker\",{\"_index\":301,\"name\":{\"483\":{},\"487\":{},\"491\":{},\"495\":{}},\"comment\":{}}],[\"maximumthreads\",{\"_index\":62,\"name\":{\"96\":{}},\"comment\":{}}],[\"messageid\",{\"_index\":278,\"name\":{\"449\":{},\"454\":{}},\"comment\":{}}],[\"mod\",{\"_index\":50,\"name\":{\"50\":{}},\"comment\":{}}],[\"movefile\",{\"_index\":153,\"name\":{\"212\":{}},\"comment\":{}}],[\"mvp\",{\"_index\":299,\"name\":{\"480\":{}},\"comment\":{}}],[\"name\",{\"_index\":162,\"name\":{\"221\":{},\"229\":{},\"244\":{}},\"comment\":{}}],[\"next\",{\"_index\":75,\"name\":{\"117\":{},\"317\":{}},\"comment\":{}}],[\"node\",{\"_index\":5,\"name\":{\"4\":{}},\"comment\":{}}],[\"node_fs\",{\"_index\":111,\"name\":{\"165\":{}},\"comment\":{}}],[\"node_runtime\",{\"_index\":320,\"name\":{\"625\":{}},\"comment\":{}}],[\"node_worker\",{\"_index\":202,\"name\":{\"281\":{}},\"comment\":{}}],[\"none\",{\"_index\":189,\"name\":{\"259\":{},\"265\":{},\"272\":{},\"279\":{}},\"comment\":{}}],[\"ok\",{\"_index\":196,\"name\":{\"273\":{},\"435\":{}},\"comment\":{}}],[\"onmessage\",{\"_index\":228,\"name\":{\"388\":{}},\"comment\":{}}],[\"open\",{\"_index\":7,\"name\":{\"7\":{},\"53\":{},\"268\":{},\"357\":{},\"413\":{}},\"comment\":{}}],[\"openfile\",{\"_index\":141,\"name\":{\"200\":{}},\"comment\":{}}],[\"origin\",{\"_index\":208,\"name\":{\"288\":{}},\"comment\":{}}],[\"package_name\",{\"_index\":313,\"name\":{\"504\":{},\"556\":{},\"618\":{},\"679\":{}},\"comment\":{}}],[\"package_version\",{\"_index\":314,\"name\":{\"505\":{},\"557\":{},\"619\":{},\"680\":{}},\"comment\":{}}],[\"package_version_major\",{\"_index\":315,\"name\":{\"506\":{},\"558\":{},\"620\":{},\"681\":{}},\"comment\":{}}],[\"package_version_minor\",{\"_index\":316,\"name\":{\"507\":{},\"559\":{},\"621\":{},\"682\":{}},\"comment\":{}}],[\"package_version_patch\",{\"_index\":317,\"name\":{\"508\":{},\"560\":{},\"622\":{},\"683\":{}},\"comment\":{}}],[\"page_accesses\",{\"_index\":91,\"name\":{\"144\":{}},\"comment\":{}}],[\"page_loads\",{\"_index\":92,\"name\":{\"145\":{}},\"comment\":{}}],[\"path\",{\"_index\":61,\"name\":{\"95\":{}},\"comment\":{}}],[\"ping\",{\"_index\":224,\"name\":{\"350\":{},\"414\":{}},\"comment\":{}}],[\"platformfeatures\",{\"_index\":306,\"name\":{\"497\":{},\"555\":{},\"616\":{},\"677\":{}},\"comment\":{}}],[\"poll_pending_query\",{\"_index\":250,\"name\":{\"415\":{}},\"comment\":{}}],[\"pollpendingquery\",{\"_index\":17,\"name\":{\"17\":{},\"62\":{},\"334\":{},\"364\":{}},\"comment\":{}}],[\"prepare\",{\"_index\":70,\"name\":{\"107\":{},\"310\":{}},\"comment\":{}}],[\"prepared_statement_id\",{\"_index\":266,\"name\":{\"436\":{}},\"comment\":{}}],[\"preparedstatement\",{\"_index\":77,\"name\":{\"119\":{},\"573\":{},\"634\":{}},\"comment\":{}}],[\"promise\",{\"_index\":285,\"name\":{\"463\":{}},\"comment\":{}}],[\"promiserejecter\",{\"_index\":287,\"name\":{\"466\":{}},\"comment\":{}}],[\"promiseresolver\",{\"_index\":286,\"name\":{\"464\":{}},\"comment\":{}}],[\"pthread\",{\"_index\":51,\"name\":{\"51\":{},\"124\":{},\"136\":{},\"574\":{},\"635\":{}},\"comment\":{}}],[\"pthreadworker\",{\"_index\":304,\"name\":{\"492\":{},\"496\":{}},\"comment\":{}}],[\"query\",{\"_index\":63,\"name\":{\"97\":{},\"103\":{},\"122\":{},\"269\":{},\"306\":{},\"322\":{}},\"comment\":{}}],[\"query_plan\",{\"_index\":267,\"name\":{\"437\":{}},\"comment\":{}}],[\"query_result\",{\"_index\":268,\"name\":{\"438\":{}},\"comment\":{}}],[\"query_result_chunk\",{\"_index\":269,\"name\":{\"439\":{}},\"comment\":{}}],[\"query_result_header\",{\"_index\":270,\"name\":{\"440\":{}},\"comment\":{}}],[\"query_result_header_or_null\",{\"_index\":271,\"name\":{\"441\":{}},\"comment\":{}}],[\"querypollinginterval\",{\"_index\":53,\"name\":{\"87\":{}},\"comment\":{}}],[\"quote\",{\"_index\":171,\"name\":{\"234\":{}},\"comment\":{}}],[\"readfile\",{\"_index\":146,\"name\":{\"205\":{}},\"comment\":{}}],[\"readstring\",{\"_index\":105,\"name\":{\"159\":{},\"580\":{},\"641\":{}},\"comment\":{}}],[\"region\",{\"_index\":124,\"name\":{\"178\":{}},\"comment\":{}}],[\"register_file_buffer\",{\"_index\":251,\"name\":{\"416\":{}},\"comment\":{}}],[\"register_file_handle\",{\"_index\":252,\"name\":{\"417\":{}},\"comment\":{}}],[\"register_file_url\",{\"_index\":253,\"name\":{\"418\":{}},\"comment\":{}}],[\"registered_file\",{\"_index\":272,\"name\":{\"442\":{}},\"comment\":{}}],[\"registeremptyfilebuffer\",{\"_index\":226,\"name\":{\"375\":{}},\"comment\":{}}],[\"registerfilebuffer\",{\"_index\":31,\"name\":{\"31\":{},\"77\":{},\"327\":{},\"376\":{}},\"comment\":{}}],[\"registerfilehandle\",{\"_index\":32,\"name\":{\"32\":{},\"78\":{},\"328\":{},\"377\":{}},\"comment\":{}}],[\"registerfiletext\",{\"_index\":30,\"name\":{\"30\":{},\"76\":{},\"373\":{}},\"comment\":{}}],[\"registerfileurl\",{\"_index\":29,\"name\":{\"29\":{},\"75\":{},\"326\":{},\"374\":{}},\"comment\":{}}],[\"removedirectory\",{\"_index\":148,\"name\":{\"207\":{}},\"comment\":{}}],[\"removefile\",{\"_index\":155,\"name\":{\"214\":{}},\"comment\":{}}],[\"requestid\",{\"_index\":282,\"name\":{\"455\":{}},\"comment\":{}}],[\"reset\",{\"_index\":8,\"name\":{\"8\":{},\"54\":{},\"349\":{},\"419\":{}},\"comment\":{}}],[\"resultstreamiterator\",{\"_index\":72,\"name\":{\"113\":{},\"572\":{},\"633\":{}},\"comment\":{}}],[\"row_array\",{\"_index\":159,\"name\":{\"218\":{}},\"comment\":{}}],[\"run\",{\"_index\":198,\"name\":{\"276\":{}},\"comment\":{}}],[\"run_prepared\",{\"_index\":254,\"name\":{\"420\":{}},\"comment\":{}}],[\"run_query\",{\"_index\":255,\"name\":{\"421\":{}},\"comment\":{}}],[\"runningworkers\",{\"_index\":79,\"name\":{\"126\":{}},\"comment\":{}}],[\"runprepared\",{\"_index\":23,\"name\":{\"23\":{},\"69\":{},\"339\":{},\"370\":{}},\"comment\":{}}],[\"runquery\",{\"_index\":15,\"name\":{\"15\":{},\"60\":{},\"332\":{},\"362\":{}},\"comment\":{}}],[\"s3\",{\"_index\":115,\"name\":{\"169\":{}},\"comment\":{}}],[\"s3config\",{\"_index\":123,\"name\":{\"177\":{},\"190\":{},\"194\":{},\"585\":{},\"646\":{}},\"comment\":{}}],[\"schema\",{\"_index\":163,\"name\":{\"222\":{},\"230\":{},\"245\":{}},\"comment\":{}}],[\"script_tokens\",{\"_index\":273,\"name\":{\"443\":{}},\"comment\":{}}],[\"secretaccesskey\",{\"_index\":127,\"name\":{\"181\":{}},\"comment\":{}}],[\"selectbundle\",{\"_index\":294,\"name\":{\"475\":{},\"549\":{},\"610\":{},\"671\":{}},\"comment\":{}}],[\"send\",{\"_index\":68,\"name\":{\"104\":{},\"123\":{},\"307\":{},\"323\":{}},\"comment\":{}}],[\"send_prepared\",{\"_index\":256,\"name\":{\"422\":{}},\"comment\":{}}],[\"sendprepared\",{\"_index\":24,\"name\":{\"24\":{},\"70\":{},\"340\":{},\"371\":{}},\"comment\":{}}],[\"sessiontoken\",{\"_index\":128,\"name\":{\"182\":{}},\"comment\":{}}],[\"shape\",{\"_index\":165,\"name\":{\"224\":{}},\"comment\":{}}],[\"skip\",{\"_index\":173,\"name\":{\"236\":{}},\"comment\":{}}],[\"stackalloc\",{\"_index\":83,\"name\":{\"130\":{}},\"comment\":{}}],[\"stackrestore\",{\"_index\":84,\"name\":{\"132\":{}},\"comment\":{}}],[\"stacksave\",{\"_index\":81,\"name\":{\"128\":{}},\"comment\":{}}],[\"start\",{\"_index\":197,\"name\":{\"275\":{}},\"comment\":{}}],[\"start_pending_query\",{\"_index\":257,\"name\":{\"423\":{}},\"comment\":{}}],[\"startedat\",{\"_index\":179,\"name\":{\"248\":{}},\"comment\":{}}],[\"startpendingquery\",{\"_index\":16,\"name\":{\"16\":{},\"61\":{},\"333\":{},\"363\":{}},\"comment\":{}}],[\"statementid\",{\"_index\":230,\"name\":{\"390\":{},\"537\":{}},\"comment\":{}}],[\"statuscode\",{\"_index\":291,\"name\":{\"471\":{},\"529\":{},\"617\":{},\"678\":{}},\"comment\":{}}],[\"success\",{\"_index\":274,\"name\":{\"444\":{},\"472\":{}},\"comment\":{}}],[\"syncfile\",{\"_index\":142,\"name\":{\"201\":{}},\"comment\":{}}],[\"table_names\",{\"_index\":275,\"name\":{\"445\":{}},\"comment\":{}}],[\"targets/duckdb\",{\"_index\":1,\"name\":{\"1\":{},\"2\":{},\"4\":{}},\"comment\":{}}],[\"terminate\",{\"_index\":223,\"name\":{\"348\":{}},\"comment\":{}}],[\"testplatformfeature\",{\"_index\":139,\"name\":{\"198\":{}},\"comment\":{}}],[\"timestamp\",{\"_index\":206,\"name\":{\"286\":{}},\"comment\":{}}],[\"timestampformat\",{\"_index\":176,\"name\":{\"239\":{}},\"comment\":{}}],[\"tokenize\",{\"_index\":12,\"name\":{\"12\":{},\"57\":{},\"358\":{},\"424\":{}},\"comment\":{}}],[\"topic\",{\"_index\":209,\"name\":{\"289\":{}},\"comment\":{}}],[\"totalfilereadsahead\",{\"_index\":95,\"name\":{\"149\":{}},\"comment\":{}}],[\"totalfilereadscached\",{\"_index\":96,\"name\":{\"150\":{}},\"comment\":{}}],[\"totalfilereadscold\",{\"_index\":94,\"name\":{\"148\":{}},\"comment\":{}}],[\"totalfilewrites\",{\"_index\":97,\"name\":{\"151\":{}},\"comment\":{}}],[\"totalpageaccesses\",{\"_index\":98,\"name\":{\"152\":{}},\"comment\":{}}],[\"totalpageloads\",{\"_index\":99,\"name\":{\"153\":{}},\"comment\":{}}],[\"truncatefile\",{\"_index\":145,\"name\":{\"204\":{}},\"comment\":{}}],[\"type\",{\"_index\":279,\"name\":{\"450\":{},\"456\":{},\"461\":{}},\"comment\":{}}],[\"unusedworkers\",{\"_index\":78,\"name\":{\"125\":{}},\"comment\":{}}],[\"updatedat\",{\"_index\":180,\"name\":{\"249\":{}},\"comment\":{}}],[\"useunsafe\",{\"_index\":67,\"name\":{\"102\":{},\"305\":{}},\"comment\":{}}],[\"value\",{\"_index\":211,\"name\":{\"291\":{}},\"comment\":{}}],[\"version_string\",{\"_index\":276,\"name\":{\"446\":{}},\"comment\":{}}],[\"voidlogger\",{\"_index\":214,\"name\":{\"295\":{},\"527\":{},\"606\":{},\"667\":{}},\"comment\":{}}],[\"warning\",{\"_index\":192,\"name\":{\"262\":{}},\"comment\":{}}],[\"wasm_bulk_memory\",{\"_index\":45,\"name\":{\"45\":{}},\"comment\":{}}],[\"wasm_exceptions\",{\"_index\":42,\"name\":{\"42\":{}},\"comment\":{}}],[\"wasm_simd\",{\"_index\":44,\"name\":{\"44\":{}},\"comment\":{}}],[\"wasm_threads\",{\"_index\":43,\"name\":{\"43\":{}},\"comment\":{}}],[\"wasmbulkmemory\",{\"_index\":311,\"name\":{\"502\":{}},\"comment\":{}}],[\"wasmexceptions\",{\"_index\":309,\"name\":{\"500\":{}},\"comment\":{}}],[\"wasmsimd\",{\"_index\":310,\"name\":{\"501\":{}},\"comment\":{}}],[\"wasmthreads\",{\"_index\":312,\"name\":{\"503\":{}},\"comment\":{}}],[\"web_worker\",{\"_index\":201,\"name\":{\"280\":{}},\"comment\":{}}],[\"workerrequest\",{\"_index\":277,\"name\":{\"447\":{},\"540\":{}},\"comment\":{}}],[\"workerrequesttype\",{\"_index\":231,\"name\":{\"391\":{},\"538\":{}},\"comment\":{}}],[\"workerrequestvariant\",{\"_index\":288,\"name\":{\"468\":{},\"544\":{}},\"comment\":{}}],[\"workerresponse\",{\"_index\":281,\"name\":{\"452\":{},\"541\":{}},\"comment\":{}}],[\"workerresponsetype\",{\"_index\":258,\"name\":{\"425\":{},\"539\":{}},\"comment\":{}}],[\"workerresponsevariant\",{\"_index\":289,\"name\":{\"469\":{},\"545\":{}},\"comment\":{}}],[\"workertask\",{\"_index\":284,\"name\":{\"459\":{},\"543\":{}},\"comment\":{}}],[\"workertaskreturntype\",{\"_index\":283,\"name\":{\"458\":{},\"542\":{}},\"comment\":{}}],[\"workertaskvariant\",{\"_index\":290,\"name\":{\"470\":{},\"546\":{}},\"comment\":{}}],[\"writefile\",{\"_index\":147,\"name\":{\"206\":{}},\"comment\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAA8V9XXfbOLLtf3FeMxkRAEmp35zE6faZxM6xnc49t9csLUamHZ3Iooakks6dNf/9LgAEBRSrSICkZ96cCIXaROGjsKsA/POsLH5UZ7/88c+zb9v9/dkv7OXZPnvKz3452+7v8z/PXp4dy93ZL2dPxf1xl1d/Vf/76mv9tDt7ebbZZVWVV2e/nJ3962W3hjorH/O6+uv9cfPt/kunqubntf55VJ1/+SLh5+VfvuyKzbft/nFAybopvzble7UmolW7KfOszt8eN9/evm51PBz3m3pb7Ie12OKIypdnh6zM97XH93m0yb64z70bRBZ+5tZwVYxuCvezrHaIkxaYrvb1dn+/3T9WLbTtvs7Lh2zT9l+3XD8MPQ4sfQuxbBUWh3wfpOZFI9GjC4hRqsu8yusw3UZkuvLtvqqzfb3N6jwMgis4HchjXv+el9W2CDSDIzcLjHd5Vh/L/N0uC+x5L7rC0wHVxbd8v/1/gdaxpKZD2BT7fb4J7KInoekA7rfVKAyO3AwD9bj/72Ne/gwcqyep6RCqOivrj7kqNAILJj4d1KHY7cZjQqRn6LLZfpNPAIXKT4f1kNebr6q6m7w67urA+QUTn2XKu8u+7PKr7CkPn/Ac0RkMp7yKj2Uupe8DjQZlZ4CzK6qxaIDoLPPPOCiu4AyzUL6/H4cESM7VX2432S4r3zWO65he06lhFtcqL+vzsix+vCuLp8uPb27rMs+egv0sqpa5IL65/V1W/TGrv47B5orPBeq/bq+vpqAC8nO46Y/bqs7Ld9td/unmfajDDoXnBXSX/xm8hehIzwvp9fHhIS/Hg2rl54X1W7a/3wV606j8DAvvrvgiqwxddC2xGXzrsjjI2gI965PUfBAC28EWm8E12x2rryNQOHJz7LUOP9WQLMInvo7snHDGDGdEeg5Iu12+qWW9t3VWb6t6uwm0GVXFdHD5n4einISNqGEUtBMuXaQhJ1pA+f745GJpSoQRadGJt/t8fvthffF/3lx8vLu8vrr11PSiKzb8veZjaBx3v91cnL8NA3GSmQPB7eWHt0HqG4E5dL/+9P5v6w8XH65v/icIgis3EcnFh8u79evLXy+v7nxBuCKj9DPY8c3YeJ1Vp97fVI2ORVkwbBDEEbOmqH1Vl8dNXZRh2l64kv6DXn2YNSclLBInmn9XPD7moVBaoblQPBX3gRC0xFz6D/XXMs9CMZykxuMYItz9kIxl3PvQOGEPPxjBcY8+/W7sww9AePCjDwESd/CDMTLwMIAFDT54AxodfehD1YlA+MEZFYLowwFDAN4zanAAoA8FEovwAzIyGNE7emBAwnMAjYlI9OGgoxJ+gKaFJfqQkaEJz8l/Smyity/T8QnPbj0tQNGHjQ5S+EGbFqUYmB+RSIX37DgyVNFrxz762dOSU/nnYXwdrj4E2Si6vhcTGlPxhDQ6qDIwj47EMzay0jubYtEVz4l0bHhlwGPtj2N4u6/TAxnDOLFgRgjAsdGMYWRoRCME2uiQRu+c2iGhPefTUSx0/14AD7D47grGR1h8UTlRlnBYwWEWX1yAmw1HNoKe9cUG4i3h2EYEXHr9dxjv8PTexwQ8fHCEjrtxUY9ef68b+fB09MaFPvr3eGj4w3erNzr+4Ydp1DibFATpx9UXCPEFNzUS0oewNxriB3ByOATi6yQZq53Km2L/sD3lWBORGqtoYIRkwU485D9kLR+L3W67f7yUir5nu1DNL4hKhtvF/lwC4Car6tdbWe1d8bY4fhkODnfgoVXMBu5u+5RXdfZ0uCveeiQuo+i6dcwG7+2xzOQu7q6QShIxCh9SyXwA8832KdtNsm63jrHwukNSrSk/qzp/8huXsPyEwVnmu62kCX7Ls/ub/B/HvBpO0kTVvyBq8ghowa8noGa7XfHj3XG3++3u7uNNnt2PBIrWMwkmDL+dbzZ5VX0o7vtCz6dCo6PPn67eXry7vLroi7kCNS9smeGPtr4ERXD+6e76w/nd5ZsABLbMdAQyfL2+vnrfF/SFCGyZmRB8vrm8uwiFYIRGYuhOJH7Tx+RJ4+CRqmOPuIOvezowAXSHlYdyR2oqhKfsz+3T8elOxUgH5x8bRkdyKpR/+GT5d1yoGRQ/tBNhiHZHanJPkFP4p321fdzn9xd/1vlexiWD7EFXMRXc5ljVxdOnKi/PH6VsAKiu6BgwnXSQNzoON8TVn4o9fyoI0BWcCGJ9Uh/tHoahkZhD+7HKP+2r7CEMgS01B4p/DEbaIIKgSWJAu2Tng5Q3ArNYX8ULb+3x59UFbLE5cPiH8CCU8ADeMJqDjpUE4TjJzGKX0ABix0Jjw4fD2KyIjWr5IFyI8MyY/INRPdjCQ1G+GH0DUTi40DCULyrvIBQOKzgEheKyV2SdI6Db/7LOy4xeKbGiz7kyk/oCVmf08whHaf2wLStqfqbBtGKz4bjPD7u8JqPPPVAsyQlonH67p4NuNJD9cKgtBMMf26bA38ObxIiuJ1rIGjMmxC8p8fyJXtM75Z5ztODKAoZK96tGeLIUCg9X1lt/nxdJ6PdxI7319/iRhHoPR7JXu0WsfLxzs6g7u7imwAQ65bg/Vvn956L8lpc9e1hb0Qso0/upzSdQFPBxv9/uH8P0d4TCAHSpqw/qmp+hzbIuNaGtqzrbfLvNvodoemELDbsAzZecACRxzE+fu17XPw/j1L/Ssn+JFgFAXp3Q97XJ+W5XbIJRGan/VKso/aZZkuBW0fD7muUmr+qiDAd2kvtPNU2DwDTOMrhxzCdQNNcm2w3GcW1URuA/0CBK9atWzrsdNGSiAQZXhi6Ok8iIRrDnTJXEJK8U8zl2iRSeMINKInetSOz1ptj1fD6l9kW3hr7WwD51GFr2tdc0PthMFfOD22Sbr303iXi1nKljTng/ym3ddyC8H1grPROkQ/aYr3X4ZhQoKD8nrF3RG//px2SEJwCydkde+UZuoefcFyGaAjZF4GMIE9RFne1kURW+f2NPQ8NgUOG5MZ1/pY9eDoM695x6glvKnXiC28p3zgnA9dmdcgIgffadbjzRfMwe83M423jiAbIzInrvTDQBcN57TjLDWNTdpbf0iUgMhi0zF4I6I89m0RAaoVEYYCTn9RgYUG4UEusO24dsu/u8tdjs0/21uhJTIGySt2/JLQ4/Qeov1HEqMlqLdGNu69K+6hdqORUZ/y3Zbnd7Y5257nxJU2C0BpmgfpNXh2JfNecKKlIZUna83nxT3LtHNDrq2iJhWmD+wNuszj6WRV1sitOOr5vjZBcbndP2+tO7dxc3IVpetCLDmyrnS1D9V9dvL9bv+i5R6QI4ycyB4PXN9efbi5v1u8v3FzJNLLQ1MPFZcd2ev3lzcRvWRIjwHJhkCmcQjkZgDt23PEizKj5ar+vuu9cl2NrbX0cPQNlv1u/en/96u5bdx0PLi67I0CKnP2BIP51USQPwyan0R/D28ubizd368joQhS03DxL155ubi/PgFnElZ0ezvrr4PB5RIz0PqvOPHy+uQntsKxSKwebjbvlQ6q0pMSlX/7H3tldHxYu2dN93tbgJlfn+/lBs+5IYXaVW+SlqNWnzt/znZQ9L5mp2RaYor/JNmdfnpj5fAF2xaSCqSp2G+db3TgNE4MgEqsePpVzuHwqfYxay3ISurdjMi0OxGcwrd5S9cOSGF9f2i3pI0L4uh0FoZeZRL9P9wgE0UtMh3GOuvhcMIDkPlE/lCBRaaDqAsWejTmgmnYnqg3Y6w1TXB++zUCdgqPx0WNXgMoiBsaRGQejOXL/uii+aJPSZv9zS/5ZZDFEZOpeBb5yxD2PgRvdkP5jh/RkDObJX+0H07dsYsKAeTsLp9vOb477eDq8XTbEJPXv94HNTtK3nRSsy/MXmMyjlx/sHk+odiAFIjoHi3g2YV/XHXVY/FOUTvF3YBxAuPxnWY16/zR+y465GqTofZGQVk8HJCzTfedy47sCxhCYDqH7uN8EALKHJAFQ2ZjACW2qOHvI+q9TFEh+K++3DdqNP2wfOHi/665k+vsrjfpPV4Y0FBCcDkaGHYBCW0GQAKpkiGIEtNUMbPBXf87fbMpeB+8GzpqApoOz0UfQ133wbh6YjOh2Mfg1yHJqO7GQ4u21VtxVe7OtyG7haExVMn3d2xZewCUYLTFYsu1/w8LGE5umu4ZO+JTXTAB4xjc3aDjLAqo7rfXr7LqwtgOQYKPyUuvT24t35p/d365tPV3eXH04s+vesVFubFolbbmzoVB4dUycBb79mVraqTUq7RUZHbG6uP6/Pb27O8SswECUvbIm+VgXfgGp/c/3+04er9fXr/7p4gz96gCGAUqNQ2BsiWehSndm7PgxsFDpFJ2yM9r10Ha7pxX6Yret+DrUt3XzNn7JgCK3YLCD0ihYMohWbpyWccebdEI3UPO1Q7I5P4V3vxUluLIywDPl+GH6J8t06zFf0N867XdYTTupH1siObSR7vnhz+7vndAFLPttsgSrymSw63zJyrsABeE0VvhCGZgocgtdE4QtB5tb2veyFQ2il5oBwn++2T/KgbCgKW3AOIP84FuHWMEJzAMirTe+sjSNopWYZFd+2h+AxoWXm6Qt170PfVEeoh1/W8IYgiZOifOqbmAkYtuQcUGpzTeU4PF3xWSatoWWdmLW8VvUeEGGLei8IvzW9U8UcS3ovLo8VvaeB7AVdXW/iuaR3yz7bok6o8lnWkS8aubBTILyWdn8YQ4s7BcNree+FYXeEy/bdsG2x/1gWj2Ve9fQFtPi0E+Zlnd+f94wIWuULW7qvNfCPpC4YOMh5eiwkW3o2SF9+1nl1J8+qjMLkiM8LSp6b6TucOYSqlZ8Ciy1WaRSz/j6tXwo4+ZBygu9F2QgEHjnoW4SCVL7wWoN6PxUj2lS+291PgmNrfx1Nr12+vbi6u3x3SeThuwpeOKX7vvMEGz+H8OnDxc3lm/Wb66vbu3PiOVGgG5GZgOD27uby6tcgAF2RCfqvP17cnN9de7W6VXaCxr9d/M/n6xs8gRgoPBWdoO/N9YcPF34teyoaqs9JU96U20OtSvWsiHapCQth8fBQ5X3ZRh09L04ivcmr9ldQ+wg5MYWoNgIjFNst/Dn/0h9vaQpMvIChP0vU1uGbHmqAT8oLdRQHJIQOKB9Ky+1872A+rodC58DrsEqPs64eTdyb79pp3eFEVw+VV1m9/Z6/821eIDJBefMWi88NJg4CTG4CjLAMSQfJiKTIATAheZAOlODUxy4Q62ypzPIpHt/n3/Pd++xLfuqT8IQpLDj6NKuu6OJ7vq99NJ4KTtR4Vxy2Gx+Np4ITNV6X28ft3kelVXJsENoYB3UxzI+jPeOr6yv8MJpT84umWF9vbHGiet5evP70q4ciU268psurd/hRP1dRU2y8ns/nN1eXVz7fdCo5XtvFzQ3hRru6TLlATU53U+OE0qV+fJbudqrZs7tpnIRbfnVF5TK4qk4lx2t7e3nrr9ApPF7n9ceLKw9tTbHxev7708UNnpXiKjLlxmu61DvOS+p4rKvPLR2o1enuaiGiNKofn6W7n2r27O4aJ94Z/uahRRUar6N3BrLUeM5APZpu785vyJFkaTLlxmu6+USOIUuPLjVey5vzj3efbnw6wqlkoDanQ2ung1Knf32WLm1V7dmnG6j4Anvxev35+uZvBGkH9DmlJ2hVF4H4q3WLT9D7+vLq7eXVr/iVHECpVXaCxvPb/7l6s3776c3f3r720QrKh2qGfLjsxfvayru2iWjz4zPx3E71fpx2C3co6u2t8JUt4qPaBIAJBDtnlzCo3RSfQXPhTjiDqtvyM+iuHWd1uM2b4jNozh2/YVCzKT6D5u/Z7ujfsV+Z4uM0U+P2d5lzPdAATZmwUWxzse+Lx8e+FCv9e2D9zqmLouc0qFX7C11woAkfc+r9g9+L7T34mKauRtepQNjXhN3sCbQE3OppfYBHU/ZrHW5LVJvdnm+KfVXs8t4mdco8Z6t2FQU0rPslwW2L6B5uXkqn3cLn8vhk50UcHARa9jlbnFYY0PL4F1oWSFgkrNSC5nnucEiW5CQ8vi+K9LWOx6siQTiGXsnrweL7VF4Qnr6XTnqw+Lx2EoSj58WTHhger56E9ZKhN/T6uorvQ3pBiHxe0+sBFfKkXhCu/nf1ehD5Pa4XhMXzFbseUIFP2Y1F5/OenR/KkEftRqAdftluEKb/83Yj8Hm8cTcIMOChuyGEHT8g4Mk7svyz+wNzPH5Hfy1hv5633gZAeTz4Fozmj0xKXA48/TYAbO1UMvQInA/GTn/yfQ4OL/zsPWnyw3DER4715SY8EReGZNB7mvBYXBiSIf9p/LNxwzjsIwmnmfI19P+7yfHdwhOSxHYD3Ael7UUr6LkEtB9GmEJeQ1rVeSmTTT7dvB+BqFvDM0AD992PQ9dW8gwAdQb0RIBtJTMBlM8AyHrvCsf38AfXqWB2YKMNi1QxE7j7bbXRjtMIWI7wXP3suP9vZ+4O6F0n0ZnAqBMwH3NVaCwqrI6Z4B2K3W4iOqSKubq92nVPhIdWMhPAh7zefFV1aqdvxHr4AqtjrvZTB9HM8j6m7WAFcwGTztoUXEB+voljAihXeq7pI9/fT8AExGcCNch6+AOcTnv4gcVIj1CUo1gPP3go5xGKbxzpgQAkQh/DZMy/KcwxIbhBhzR2feGzjvLQfQXpPOV1tvGguRpvyZSeqLXOy6ft3j7cPKDYFpiou8yr3IOBN96+LjxR58F+lmtAZVN2ql3L4uCcnBqy7Kn8TJo9Agqu6gDHg/SHdsfqa5ByR2Ki9m171Na72V2Rifof8/r3vKy8QsNtBOckMV17cwWz+5zSMAQgNhGHvOrYV3lTdupsJk8w0u85diezU/mJmput66VcqPfW2f/hlQuIzYMjUP8Mc0136z802YzY73vv84cWk+DNffimfgDChJ188A5+aJ0bvW0fsV0f6pAT9ujhe/OhJWn8hnymQP+k8H4gGTBkmZEMQNjOfwjEuO1+yDZ/eOqYTz+6px+aOEZt5Mn+uCu+BLlptsBk//9E4N8NBIzdrUBHbkYkdiwnAEhQAGcIx8XTof6JRG888XTFZ2yfcZCeCw2IHgWgCQ0Z0R6XOrUPXrj29r9w4YmY8j8PRTkSEiE7uZWIuNVgA40NVgWG9rxxhHFq86eLzcWWzpgaNpkanTMNbDoPOsx/vt1Wh6zefPXpx6ey/yZOFCgcx45aXxicfN+DZTgJPwhDsf+QV1X26LEAQCS26DQ87kGgU+bg5em+LfsUkF0g9IiOq6rN0iE0Wb+HKTo18Oei/JaXzRUw5FV0nVKjz9G+Ob96c/F+LR8ulvet0cfscZUvCPk+A3c/EUf2/vr2Yv3x5uLj+c0FfpMahQlKzoHm+v17+Q63eu759u787vL27vINfkyWgkVWMQs++uIHEo/P9Q/e+j/+j/6yu+v160/v3hHnlkksmPjcuD6e3/02GlUjPAcm/V75qK7dEZ0Bz8C9IQQU7wtEfFHcXH9UjR0EwhKaE0PQwHakZkBx8X8+Xt9MmmrIGmZA9+7i7s1veqJf31zcfnp/FwQNF58D1/tPt7+FG88VmwHHrxd363cX5/ICjfW79+fEVQoEGkx4Jkx356/fX6yvzj+EtU9XdCY8v1/c3F5e4xef9GA5ic2B4/31az1K5D1cYe3SEZ0Bz+XV7cXNnXxQ6/rz+t3N9Yf15cc369u7m4vzDyHgBuqZD+mb2991/aFLKyE/HzK5E50ErVPBPNh675aiEXleMuWJg7y1iwDgcX2Xp+aP1F11hOaPwzfW+Wq+fj9hn4NKz4Dq5uLXy9u7ixs9lYQ7zoT87Mh+O796G+aaEfKzI7PDB8GwhoMI3phuL4LcZyMwh+5PV6M2E0BuJiTBQ8sWmgHD7cXV21HNAQXnwCKvhhs/6eDiM+C6u/7bxdXl/w0az5bMWARdmqs6FPsqH+S5TsXGE116r3p5fbUmr2Yl1L3oyvq0gPVt+DaPvMmQwuFzp6Gvdv8tCkQxZn8yiMZz9etgCV71vJAM7wZQICE7AS8ct0NjFIVx6z9K/VD4cRA4llD2YQiR5QuvP95c/3pzcRsGi6hgDmzvr/t9WwhFl59DM3HzKqV48A5WX71muVR2vpDviqwv+xddCIWqYQ50mmX6+P68f7MDITli8+HQbNcIJK3g3FjWb377dBXWc1Dx2XH9dnH+NnAlwOWfCdn6+mZ99el9/8bDA6FVzxxIzd7m4u0wkQ7RdWXnQHT75uby491a+Y5h0zSUnAXNpzdvQpeLk8wcCHxJWIginIEdQtLwqGv90FYQmI7oaDwwwO5sHtAQu1MibDPgfS1vV4ff3bwueuI6jSedBGE9QuSl+pUt5w1i6NLa4BZ4FdoMAwjkG0CBCBqRCQioXqe7aC8cXeSZ+52lJKzjNR8wqed1lQd3vaaKfsuX2jrhaGzB2dCMsEnIUPDCMDgWEAwBg4HCgI+Gu6z6dpPXx9J9D7MLyy0YSM8wyAjJ2ojUslOB50zrA1oCcvmsD/DpZP1qvftWnz6nQ/Xr8+5HffoOZfG0JW8QgypPpWfRepNXxe47mR9KaLekglH0zutB2ptB+RfmDeMVxD/UOP+bb+rwxmml/iONo7X7vTePNU2D3tPd7LtIHis4LZXUnZV9dDsl51AuG2tYsVVqbE6rTIs9Vm+Ke5zkP/08mtzv29iB6j03dBZmq1M7L/D9V/U2322/l6+P8lzL6bgH8gQfKBroPzpaP+6y+qEon5qT471qYdnReqtcHprR6EmFdqHRmrbVld1PoA7984Ta323L/KH4s0dBU2KCjtvsISu3PSp0gcAxbN0G2dweA/pd584ap1jg2HI2Dt8PIUpe6PJ9o8v9AM9Vw1O172LqSkvM1Odn2/2H4v7Yd2fiAJRXpzrCcQ1sG2TVeqqeBk/XMTu8vOdSJQRWPnRs6Nm6Tv7VtEcU1AT515k7jgXE7jehqJ6n20BwTa+ZGdym2Aah0uX/I91mU2z9PFRXViKet9ucgLxyagjC9DydBkBra5gT2qH+WubZ/TR0sJKJAKk12w/elBU7sAs1S8KYbjNXVzlBCG79GbtEswMd2Q0I05MuewfKNIfd+fgv28fLfZ2I87LMeu5uRTW+gMJ9DdD5OmpOL4uq0s8xXlbFLqv7btXEYeFVzAHuR1Y9Xfy5yQ/KUQ/F1ZGeC9Lt5Ye3Y8A0cnPBeH3cffuQPxV9lwDTYBzpuSDdqRE6ylIn0ZFg+IlJ+Xj+5m/nv+rIbIvlu6RLvuxOUKxCYSMa0QSPzVDKmnJz6Vt/OP8vK1txQKsuPZ/uy6sQ3bL0bLo/nt+9+c1btyo9mjrQNz6B9QrSB3ahME0iWgm+OKm7bG9g3Bb7j2XxWObVaUQ9KU+g+mudlY95Xa3vj5tv91+aHDpCEsfR1PBXXUMoIH1tTDke16mCifCaSwmyOvtYFnWxKXZeoFCxiVA+51+cK0779J/KzvL96nq2N8X+YfsY8Pmu1CxA1KVYP6s6fwpGg4jOAul8s8mr6oPNYA6DcYRmgRHcHnO1wp283tMJGPfptktPVHy7KbeHWlXoN4MBgYnqH/P6ffH4Xj5l/T77kvvNC4jQLDAu5AvPoTAcoVlg3MknrkNhOEKzwNDbhVAcrtREIMbKXvqtwtPV3jmvkg+ovet9kzxE7YXzJPmA2oveB8lD1F67778P6L3uf/096HvlI+Pe39sUnkktjOD6aD/JTAfx6Omave+/td9bJfKCeZ9ap/hE1fhj333aocTUVa4bSO9d4+ziE1Vbt3Ihz3D3oaAk5wDU+x7oIChCeg5g9MOSg6gw0fmM13k90NN0ltx8YEJBzKocuVLQE4YjOX1O6d5eNzCl2AIzzCjwRruhKeVUfuomtnNU2Gs7i0jNBAQ5jeyDxBGbs03C22PuthjRDnNBIDKQh4F0BGeDEwhi5t4Q4ukRgrP2jTF4oORspgkH40pN32tS6YADm82u2HQoZMBxAAsiNxEMmjjYhwIITFQPsgn7FLdFJ6uEKYb9Wk+lJysGeYf9etvCszCOIZ0eSswIIFj/dPWjxtr8Aw0NRPZCcAVmUg+jkz4Ihm70GwsChCwDoLSScwNy4phBgBrJmQG5wc0QQEZyIiA04tmHAwj8uyN66y9l8aPKy/WXXbH5tt0/Tgzx/aWp7y+mvj6wF+/O5dUBN5+u7i4HRzmFtFPJVJhW7Pz1zfXn24ubDsJT1HwII6ihP749oSlDuJBemwfyIuEgmyViCsZTFc/bjq+zwQ2jV1s29TwPWP/wdS/W8Hj2CNOHBbj7+8C4iHc4aO8QeC/c4Jh4ONDpbfrMLenNsw+BDOPcQ4CO4N8JsBO4+BDAobw8gXYsRx8EVecpjgTYCj9P3wTJ5SP65UCi+XiA6uEzWQx5iSsIJ17Rc8CdA+mzgnzItrvPW+sxqCB4lvTcwOQrYeB9syBojvzc4OQIvK1L+wH0IHCO/Owtl+12tzf5yAnQkp4bmHwT3RDF2jQjRwVe0exw801x776mGYbSln+OycV9kjx4Xul/mnw8tFs+xQGzpJ/P977cPxRTfe6mjucB+euu+JLt5oDaqel5AN8c9/X2aZLfcKpibojywQf16vPt12ww4Ehg7NTxHCAv1VOL1+CsUjBOWM3cUN/c/j4DUqSWuYGqRz1ngIrWMzfYMYc2CLxTTnFMhux3rCMEedg5j5AP8E1rJ9CG5rkHLaP+ie/UUhqeCR8C0O+kCoEt7OhKCKzAjH0C38gU/nCg3jn9vUCDk/zDgXpn/fcCDT4GEA7U/1xAL9LwgwIhUD1PDhAIA48SBALzOVtAAws5bBAIzOf0AQ0s5DhCIDCv8wk0sqADC6Ft5nGCoafNAo40jAHml9w1gC8s1ysQ5vCBABqd/9GAEFDe5yQIYMEHJ4K2BgEnKah9wYijFYGrRFhGH71MjEvxCwQbmIdEox2ZmxQCNyArkMA5Ik0wBKBX3iABLSiRMAyUX2YhiSss1TAMmlfuIYksKBlxRILClAE8Jl1xLMTpCJ8jEDnLzPJvmFa8j8dRO+HQ83JBreifoEm1YHjG5hiAfimcAxjDcjonwPRK8vQDG5T1OQmyRxqoL+SAvNApkH0SRT0hh2SOhs+jIbmc++I+ny2RU1b2DFmcGMZxKZwUQCt/8+r67YV/8qYLzZYNStv0brignE3StqEJm2HwPLM1SXSBqZrj2s4nT3Ow/UKSNMNgBmRokihHpGcGGjowN5O2+MjEzDC4/lmZJNDwlMwwiBPb8Tlbzz8Tsw9eYBqmL8QxOZgIzCkJmL5Qg7MvEZyjUy+9QfrlXWLQwpIuw/qgX8Yl2f/C0i19oY3ItUQQTki0DAE6GePzwfPNr0SAhSZX+kLyz6xEQIWnVfrC8s+pRGCFJ1R6t5ZnNiXWVoGplL6QRuRRIugmJFF6A/XOoMTwBadPhkwZXrmTxGwRlDjpC8o3axLBFJoyGe4P+yQh9vrBIbmHYfDCMiVJkOPSJMOgeuZIkhgDEyR9wYVlRyLoxqVGhsALSuEjEI5K3/MFGZoRiWAcmw7pCzE8FxIBOT4R0hfmqCxIBOmkFMhJYD3zH30xByY/+kL3znxEcAanPXovggE5j9hCOCLh0ReaZ7Yjgiow1dEXUGieI4JsbJJjGET/DEcSYnh6YxhE/9xGEmJ4YmMYxICsRhLjiJRGX5C++YwIttBkxgBIXpmMOKSgNMYASF45jDikoATGAEh+2Ys4prDUxZB28slbJNopJGkxFJJnxmIPssB0xQCAHil3OK6ARDtfOP5Zigik8BRFb0c9JD8R89LHJCcGzPSBmYn4VD8yLTEAZmjmEI5zbOaQL9CQbEQE4ZhURF9ofnmICKiwJER/OJ4ZiCiiwPRDf1B+uYcoprDEw8Bw++jBOSrlcAy4idhmD71Nny+ee7LwzzHEdp7BCYbeLReQXYi12ojUwlBonnmFPegCkwpHAvTLKByGGZZOOBqsTy6hD9iQRMKxYL2yCD3ABqUQArB/f9m8i/fLP8++52UlMzJ+OWOv+KvV2cuzh22+u6/OfvlDf8LLs03xpJIM/t789nu+qYtSltBF/ro4e/nH4mUSvVolf//7yz+MgPp/9R+qVHT28o/oZcxfiWTpFIucYkwVY6tXIn7JXnLxKmLLl/wlj17xhSvHHDl+9vIP8TJOXi2FU4o7pYRVu6n0ZdyoceSEIxcTtcdOqeTs5R8J9omJUyw9e/lH+lIsX624Wyx1ii3PXv6xfBkvXq3Eyim2dIqtzl7+scJqW7nNL60RLVADAEMpS+Gmcm0VKWMxDGPkWieSZog4BjNyLRQpE4mXIn3FErexI9cmkWz8KEa1u3aJZPtHCVrSNU0kTRClaEnXOpG0QoTaJ3INFElDRCu0pGsjJg3BFlgrMddGTBqCRVidDIwnaQiG2oi5NmLSEIyjJV0bMWkIJtCSro2YNASLsb7EXBsxaQiWYHZnro2YNARL0ZKujZg0BFuiJV0bMWkIhtqIuTbi0hAcHUfctRGXhuCojbhrIy4NwVEbcTDLSUNwjmp3bcSlIbhAS7o24tIQHLURd23EpSE4OsNx10ZcGoKj44i7NuLSEBwdR9y1EZeG4CtUu2sjIQ0hUBsJ10ZCGkKgc51wbSSkIQRDljnhmkiolYhjBcFaJM0gBFbQNZBQq0+MFXTtI6QRRIIVdM0jpA1Ein62ax4hbSCWL/mqMyUJ1zxC2kCsXor41ZK5hhSueWJpgxjzGGLXOrE0QRxh82HsWidm1CoYu9aJObX4xq51YkEtvzFwDWJyYY1d88QJubDGrn3ilFxYY9c+8ZJcWGPXPvGKXFhj1z7JglxYE9dASUQurIlroISRC2viWijh5MKauCZKBLmwJq6NkphcWBPgwiXkgpW4NkpScglOXBslS3IJTlwbJStyCU5cG6ULcglOXRulEbmwpq6NUkYurKlro5STC2vq2igV5IKVujZKY3IJTl0bpQm5BKfA007JJTh1bZQuySU4dW2UrsiFNXVttFyQC+vStdEyIhfWpWujJSMX1qVroyUnF9ala6OlIBfWpWujZUwurEvXRktpiBhtz6Vro6U0RIytl0uwH5J2iLH1culaaCnNEGPr5dI10EotRNh6uXLts1ILUYoVdM2zkjaI0UZfueZZSRvEaHdfueZZSRskC7Ska56VtEGCdveVa56V2qpi3szKtc5K2iDBrLNyrbOSNkgw66zAflXaIMGss4I7VmmEBN+2LcCedSHtkGAW0j/ZRaUhkiVaFOxaF9ISyQotCratC2mKdIHuWxdg47qQxkgjtFqwc11Ic6SYofRPdlHFK2Cm0j/ZRaVJUnQO07/ZZVekB6h/s8oqJiHFt+QdlkGaJU0QUiWCNIMiE4i2hUSDohNSfAcPqQZFKKRLFAIwWUR7EBFkGxSnkK7QaoHNFKmAuxsRJBwUrbBcoNUCmyleAV/zI8A5RJp0QFf9CLAOkaYd0HU/YpAbkoZZ4jQSYB4ixS8QfQxwD5FiGJboiADkQ6QohiU6IgD7ECmOYYlRfBGgHyJFMiyxCSwC/EOkWIYluq5HgIGIWM84AxxExHvGGWAhIsU1EIMH8BCRYhuIwcMho8fJzVkEuIhIMQ5LdHYGZESkKIclOjsDNiJSnMMS9VsiwEdEinVYYXvOCBASkaIdVtFLvnwVx7DBgNEU8bBCOyPgJCLFPBDVAlYiUtzDCu24gJaIFPtAVQtMpgiIFbZGRwKysKKnWmAyxUIQPQEwFJEiIlb4hAdIikhRESvMPYsASxEpLmKFdjBAU0SKjFihHQzwFJGiI1bo8g+YikjxEdEC7WCAq4gUJREt0PUf0BWRYiWiBUMbDFAWkWImiCkkhuS5pi3QPgZ4i0gTFwu04wDmItLUxQKdHgF3EWnyYoFaGLAXkaYvFqiJAX8RaQJjgdoYMBiRpjAWqJEBhxFpEiNCjQxYjEjTGBFqZMBjRJrIiHAjAyojUoRFFKFb6iiBgQ9NOeGeHiA0IkVbRBE+OAGnESnmIorwtQ3QGpEiL6IIJRwjwGxEir+IiNAKIDeiVAerUPMBeiNKdbgKNR8gOCJFY0QMNR+gOCJFZEQMXQUAyREpKiNi6LADNEekyIyIocMuhXErzRjitgNcR6QYjYih4w6wHZHiNCKGjjvAd0SK1ZDxWqQsYDwixWtEDDUc4DwixWxEHDUcYD2ipY40ooYDvEek2I2IM3TlAtRHpAiOiKOWA+RHpCiOiKOWA/RHpFiOiKMTJmBAoqVme1HDARIkUlxHxFHDAR4kUnRHJMkipPcALiRSlEfE0f0NoEMiRXpEAt20AEIkUrRHJIMxSFlguZWOEjO0LDCcoj4iwdGywHCK/cBZmQgwI5GmRlBeJgLkSLRa9vQ0QJBEK83U45M2IEnYYkFagwGShCkmBP86BlgSplkS9OsYoEnYgtNfxwBRwhbadHhMGDAlbKFth3V4BqgSpviQSGAdngGuhClCJBLYTMUAWcIUIRIJbKZigCxhihCJ0NgWA2QJ0xkZMTZTMUCWMJ2TEWNLDANsCdNZGSijygBbwnReBkqqMsCWMJ2ZgfKqDNAlrMnNQO0G6BKmszNQdpUBvoTp/IwYtRvgS5jO0IhRuwHChOkcjQS1G0zSUKRIlKB2g2kaTAfIULt1EjWU3VCulcFUDUWKRCjdymCyhmJFIpRxZTBdQ9EiUYJ6dQxmbDCdVoN6dQwmbShqJEJpVwbTNhQ1EqG8K4OJG4oaiVI0JsEAb8IUNxKlKCnFAHHCFDkSpahXzgBzwriOb6JeOQPUCVP0SJSi1gPUCVP8SCS5nu78DrgTpggSfNPOAHnCFEESofwrA+QJ4zorCjc0oE+YokjINgbW46u+NgbWE4ueNgYUChPaemh/AxwKE9p4aH8DHAoTOjyNzhSARGGKKImW6EwBSBSmiJII5TUZIFGYIkoilNhkgERhiimJlmhfAywKEzqnDZ0pAI3CxIrul4BHYTFNfTFApDBNpOD9EhApTBMpOL/KAJPCNJNC9EvApLBY9PRLQKUwTaUQ/RJwKUxzKUuUY2WATGGaTEHZUAbIFKbJlCXaiQGZwjSZgtKhDJApTJMpK7QTAzKFaTJlhWcbAjaFJTRzyQCbwjSbssKTEwGdwpq8ELTLAzaFaTZlhXZ5QKYwTaaghCQDXArTXArKSDJApTBNpaCUJANMCtNMCspJMkCkMJ0jssB9eECkMJ0mgpKSDBApTCeKLNC5ChApTKeKLHDLASaFaSYF3QIywKQwzaSgW0AGmBSmmRR0G8oAk8IUWcJQspMBIoVpIgXdWjJApDBFljCUGGWASGFLbTm0pwEihS17NnWASGHLnk0dIFLYUhsOn6gAk8IUWcIWKGfHAJPCljqWSkAGplN0CYsIzMB2S52ThedFAzKFKcKE4Vl2DLApTDEmLEKXXMCmMEWYsAjtQYBMYSudyI32CkCmMEWYMJxyZYBNYYoxYXjGHQN0ClOUCdUUgE9hmk9BUw4Z4FPYKiGTDhngU9iKPBfBAJ3CFGOCxzQZYFPYijwgwQCXwhfacHgyMiBT+CKi24wDNoUvtOkwloYDNoUvOG1mDtgUrggThnLaHJApXBEmDOW0OSBTuCJMGMppc0CmcEWYMDxtkQM2hS96Rh0HdApXlAlDGXAO6BSuKBPGsJHEAZ3CFWXCGOZkckCn8EgfoMBWcg7oFK4oE8bwDgT4FB7RIVYO+BSu009QtpwDPoUrzoShbDkHfArX+ScoW84Bn8IVZ8I42iUAn8J1AgpKlnPAp3CdgIKS5RzwKVwnoHA084EDQoUr0gTPSOeAUOHN4ZcEmyc4YFS4Pv9CHG8AlApXrAkelOWAUeH6EAyFAthOn4Mhjk4ASoUzOo+fA0qF68MwFApgPa6th85s8ECMIk0IEPBIDGf0EO0ciuFkOgyHx2IUZ4JuLzk8F6MoE3yV4fBkjKJM8MwZDs/GKMYETTvj8HCM4kvwtDMOj8cougRNO+OASeGKLEFTyTjgUbig08c54FG4oBPIOeBRuKBTyDngUbjQ581wvMBoome4AR6FCzLpiwMahSuqhAl0ogQ0CldUCUN3JhzQKFzQWV8c0Cg8prO+OKBReExnfXFAo/CYzvrigEXhiihh6I6HAxKF63QUfP4FHAqP6ex/DigUrlgS4mAdYFC4YkmIo3WAQeGKJSFmdcCgcMWSEHMvYFC4ZlBQJ5gDBoVrBgW3MSBQuE5HQfOjOSBQuCZQ8G8D/AnX/An+bYA/4Q1/gpeFpwcT8sQMB/wJ16drcLsB/oTr8zW4+wn4E65P2KDnZjjgT7jmT/CpD9AnXNMn+NQH6BOu6RN86gP0Cdf0iUDnKMCe8JRO/+KAPeGKISHGJmBPuGJIGHoAkQP2hGv2BA3YcsCe8JQ84c4BecI1eSJPLCLNAMymj93gJ18BecL1wRv87CsgT7g+eoNvywB5whU/gm46OaBOuE5CwQ8UA+aE6xwUlMLmgDjhihtBt9Mc0CZ8SR835IA14Zo1QSPnHJAmvElBwTEAq616JklAmvBVzyQJSBO+6pkkAWfCVz2TJKBM+KpnkgSMCV/1TJKAMeGKFSE8PsCY8BV9BJEDyoSv6EOIHFAmfEUfQ+SAMxEL+iCiAJSJUKwIfhhQAMZEKFYEP+QnAGMiNGOCtq8AhInQhAmazSEAYSIUKYI7GgIQJkKRIrijIQBhIhQngh+4E4AvEYoSoc6ygxPYC9opEYAuEYoSwZ0dAegSEdF7AAHoEhHRewAB6BIR0XsAAdgSoRgRFmN7AAHYEhHRewAB2BIR9Wy5BaBLRHNcB9sFCECXCE2XxNguQAC6RGi6JMa8agHoEqHpkhjzCASgS4SmS9CUHQHYEqEvCkFTdgRgS4RmS9CUHQHIEqHTT9BFQACuRDTXhWCLiwBcidBcCZreIwBVIjRVgqb3CMCUCJ18gi5EAjAlQjMlaCqQAESJ0EQJmgokAFEiuB5w+CUSwG6aKEFTgQQgSoQiQxiaCiQAUSIUG8IStD8ApkQoNoShxy8FYEoE1xe9oDYGTIng2m6ojQFVIjRVkqI2BlSJUHwIQ09gCniXiNDn41C7wdtE9LkdtKvD60QUH4K6ZwJeKKKpEtT5FZ07RZTV0FOgAl4rougQhqYhCXiziOJDWIr2HHi5iOZKUrTnwOtFBLkHEPB+EaGNhnYyQJWIWBsN7WSAKhGx3rqhnQxQJSLWWze0kwGqROiEE9wjAFSJUHQIW2KBbwGoEqGpEjRTSACqRMQJHUsSgCsRig9hS7TvAK5ExPpqJbTvAK5EKD6EoWlFAnAlQvEhbInfYQMMl+jTqGiHAFyJSLTh0A4BuBKR9MQCBCBLRCLIyJ4AZInQ15CgKToCkCVCkyVoio4AZInQZAmaoiMAWSI0WYIeWRSALBGaLEHPIQpAlghNlqBJNwKQJUKTJWjSjQBkidBkCZp0IwBZIjRZskInSkCWCEWIMDTpRgCyRDRXk6B2A2SJaC4nQf1UQJYIRYjgEUAByBKhLyhZoDMEYEuEvqIEPzQoAF0iNF2ywHdlgC8Rmi9ZoM4n4EvEks7vEoAvEfqyEvzrAGEi9HUlaCKNAISJUKQI1RKAMRHLpK8lgO0UL8IXWCBJAM5ELLXt0H4JOBOxpAMCAnAmYrXo+TpAmohV1PN1gDURK737RkcHYE3EStsOHR2ANRErOuYtAGsiVnr3jc6AgDURihmh6gWWW+lLgdC+BlgToZgRHqGbOMCaCMWM8AjdxAHWJFbMCI9Q2iQGtEmsM03QaS0GtEmsaROcG4sBbxIrboTj5FgMiJNYkSMcZ8diwJzEDXOC358GqJNYUyc4PxYD7iTW3AlD88FiQJ7EC32rE8rgxIA9iTV7gqa8xIA9iSM6ozkG7EmsGBKO02kxoE/iSF8FiXcMwJ/EiiPhaMpLDPiTuCfbJAb8Saw4EhIxsF6U9CEG1ou09bDVPAYEShzR9zDEgECJo1UfYmA8xZJQiAGFEjNtPXTwAQolZtp4eK8HHErMeA9kQKLEiighIQPzsbgHMrAe09bDxx6gUWJFlXA0sygGNEqsqBKOZhbFgEaJFVXC0cyiGNAosb5/Fc0sigGNEusbWNHMohjQKLG+gxU9hhsDGiVubmHF503Ao8T6IlacaY0BkRLru1hxCjcGTEqsr2PluO0AlRLrG1kFPm8CLiXWl7Kiedgx4FJifYQHP9AQAzIl1kd48AMCMWBTYn2Eh1hEAJ8S69wTPM88BoxKrFgT/Ha6GDAqsWJN8CvdYsCoxIK+gC0GjEqsWBP8drMYMCqxPsSDH3+IAaUS6/QTPO0/BqRKrEkVPMs7hve2alYFz/KO4d2tmlbBs7xjeH2r5lXwLO8YXuGqc1DwLO8YXuOqmRXCbelc5RrTCcAxvM1VcyvEBA4vdNXcCrE0wDtdNbmCZznG8FrXmL53NwbsSqzZFWIuAvRKrOkVYi4C/EqcsB6HFhAscUOwYJxJDPiVOKFzv2LAr8SaX0ETr2LAr8SaX0ETmWLAr8SaX0GTMGLAr8SaX0HjVDHgV2LNr6AhohjwK7HmV9AQUQz4lVjzK2iIKAb8Stwko6BTPeBX4pST3EYM+JVYX/yKMgUx4FfiNCb30jHgV+KGX0GdG8CvxCm904sBvxKn9E4vBvxKnNI7vRjQK7GmV4gNGaBXYk2vEBsywK/EOh+FmNkAwRJrgoWY2QDDEmuGhdiQAYol1hQLsSEDFEusKRZiQwYollhTLMScCTiWWHMshCMLSJZ4uepx4ADLEmuWhZg0AcsSa5aFmDQByxJrloVw4ADNEmuahXDgAM8SrwTtwAGeJdbZKUTXAERLrA/04BcExIBpiTXTgl6aHwOmJdb3x+LVwovMV+Sl/TEgWhLFpeA33SeAZ0n09Sj4Pd2AZ0kW9EW/CaBZEn2LLH5TOGBZEkWk4F5hAkiWRF8jiya6JYBjSRSNgt/GmQCKJVEsCn6qOgEMS6JIFPzuvwQQLIkiUfD7GhNAsCSaYMHvYQcES6IvR8Fp0AQQLIm+HQW/ay0BBEuir0fB71pLAMOS6PtR8LvWEkCxJPqCFPyutQRQLIm+IQWP4iWAYkn0FSn4XWsJ4FgSfUcKcd89IFkSfUkKfs1PAkiWhPVcKZUAkiXR16TgNx4lgGVJ9D0p+AVCCWBZkuaiFLw1AMuS6FQV/C6RBLAsib4qBb8UIwE0S6KvSiHGFKBZEn1VCr6jTgDPkuh0FXxHnQCiJdGXpeD7yAQwLQnvOT6eAKol0Rkr+PY7AVxLolNW8E1nAsiWROes4JvOBJAtiU5awTedCSBbEp21gm86E0C2JDptBd90JoBsSXTeCvHcBSBbEp24Qr14ASyoM1eIJyIA25Lo1BXcgUoA25KInqN1CWBbEkEfrUsA2ZLo9BXcf0oA25Lo/BXcf0oA3ZKImPatE8C3JCKhfesEEC6JSGnfOgGESyKWtG+dAMIlESvat04A4ZLEC9q3TgDhksQR7VsngHBJ4h6qOgGESxJz2rdOAOGSxIJmAhJAuCRxTDviCSBcEn3uh+hIgHBJ9MEfoiMBwiXRJ39wRzwBhEuij/7gjngCn9JJei4zTeBrOs1zOvgqAR/U0YwL+tBUAp/UUaQKUS0wn+JUcOc6ga/qKE6FcK477+rQD4Ik8GUdxakQzjV8W0dxKoRzDV/XUZwK4VwDviVRnArhXAO+JVGcCuFcA74lUZwK4QgAviVJ6SvWE8C3JIpTIZxrwLckilMhnGvAtyT66hTCuQaES6JvoSWca8C4JPryFMK5BpRLoq+hJZxrwLkk+h5awrkGnEuiL6IlnGvAuST6JlrCuQacS6KvoiWca8C5JH130SaAc0mau2hx5xpwLom+jJZwrgHnkuijQIRzDTiXRF9HSzjXgHNJlj0X9SWAc0n0aSDCuQacS6KPAxFjCnAuiT4PRDjXgHNJ9IEgwrkGnEuiTwQRzjUgXZJV3ONcA9Ilac4EETUDC+pDQYRzDViXRJ8KIpxrwLsk+lgQ4VwD4iVt7lJBPzAFzEva3KWCP9QFqJe0uUsF/cAUcC9pc5kK+oEpIF/S5jIVtJ1TwL6kzW0qRM3gxTJ9nQruXKeAf0kVx4I71yngX1J9nQruE6WAgEn1dSq4T5QCBiaNeojrFFAwadRDXKeAgkmjHuI6BRRMGvUQ1ymgYNKoh7hOAQWTRj3EdQoomDTqIa5TQMGkUQ9xnQIKJo16iOsUUDCpznPBnesUUDCpznPBnesUUDCpznMhOhKgYFKd6EJ0JEDBpDrRBXeuU0DBpDrRBXeu04aCUe+Xf8/LOr+/1O+Y//HH2Xpd/zzkZy//ebZuHjdfReYV9n+eyYdbfvnnv16eyadWmj+Y+UPoP+QVqfqPuCkjryFUf8j7eNQfMi1X/7FsfpJpi80fif5DJoA1fwjzh9L+r9Nb6vJf8tPW9/lhl9f5vQ18yS3gLKZEH7a7vLLl5D3ZraC8HpsULKvaUchshYKSO94/PBz3m3pb7IHe1NabEPLZZpNX1bf859b5Wnn1/Un7Mu2VfiruHRsnS0t2wSjZ3a748XDc7b7W9aHMs3sHfrI41WGMKS9w111g0diZLXtrP+6r7eM+v8//rPN9BVsotRuYbqCyLH5s91Ve1sWh28pL27pxA0uSh/qPVURVW/3cb9b3x823+y92hfJOq7ZCeZVVjzgiLYQlnfKmpyek/U7VfNnu77f7x8qtzur08iaRpjqyrU7VbYr9Ple90qmQr6wKuRmSCR+u8H5bHbJ68zUvnQpjq5+Idmgn1NBWFW7rvMzqwq1IWBOTvDymR/5Q5oeszO+rOqtz9bNTEbMrWhpE1MBXNZZ5ddzVVV3m2ROObmFX2n4mNStkx7p4yurtxhlSljFX1Ad+2T5u93UisrLMftrSMsOwFZeJhZQ80o1YYvfpqJm+OdW5v+yKzbft/tFRbw2zZmrvk662/8+ZkuRbQqfBnlCjUsvWWe0O8mhhC5Owy+JHBbonQE1LqYVDzoJuBfKxm5PqlBonbSWVnpHdKux5LiWbramiPO7r7ZPTeNzu0jHddY4PDwB9ZLd6Srb6zzqvdkV27664ke0ryFuNe6Tros52rvDCnphXhPAm23zN80Ox+equfjbuVWRWHQrCJtvtqk22y8rj/YNTUWIto4xcxJV8mddu29krcNKsfDIKqf9Y0mD2m3y3PuRqIK7/cczLn+6UaVUsD5z3VdPU0qkkspf4Zo5LmvWBJ838xFf0B8vKKzB1pnalZi6Xt69RlRzqY5m7M409+ZJr+iaraj3R1cV9cfyycyqJrTV0SS0ksor7fLN9ynZoHdYqTvoAqo5jmclVsi7kqJNcrlWJNW2uaHNXtRSt6uzpUBf3We0CsYy9JEeB7ICOl241gXyFkBD7mm++3W/LfFMXoHvElinlGyA9FciJzx0z9lzPqHlzsysqRy61x4vx9iPjY8grB/UfMdmSssa1WdzdIZPYQ6YXUudzYnsRiMi+IGVR3ba48S+XZqSlZqSR/bTYOlO5vRTHtGGK3S7f1GpRWsv1cFvV2427qNtdXN4v0VuT2hah9Tge4Up/ztLs3hYDAAloC9sppyfKYnd82q+LL/+bb9ypN1nZbU43rZR311q7E8qXQPTCIciBp6t42GUugNT+AN5sJuRLC1Q1T9ANlbfRW4snDUC56e7iZ+/QG0+z6XDyKmnd4ZaNqQS9qDU7gH2dl3t3cZY3VZ2MTs+x7R5ivd0/FE4N9u5YHrAfqmELBrQtHrVOek8zVcUu3xWPj8DB4/aXsNRU1LgMiXHVJZFHV12Xxw3w+O0WMpuIaNE0esS4+cP8T2yWS2YsxMwkwY3DLcxPopHiqRloxq0Q9BpRHH7q+aAu1l1Xj9kzviD5EaeWQ1Z/detY2XWQq3dx+In5mna/TYybZHqwjF3R1UlEddGt1LFu057LdiExQ6DHtqZq+Knc3uU3vcaQV9yMNhGRU1eZg3VevnRiTRmGHzHEGqOHiKoKX/ZsEkaQWz5dA+EH2LMQSbg1NXToDJvMaEZWbw3oR9ibCDMszbKZJGb97P847dwbns3ts/Y2o6m+qTWi11dV64+i/Ab6m81CxKbHxbQfXRZVVZTSld1WxS4DnKU86Wft2cnmr77TBFdq04imqybtp9J+6bGqi6djlZfZI/Tz7ZFKLvH3WZ05H7Pg9pS4MBNW09iCdLNlRfus3n7PH9yesbBtl1KDWIofyqIuNoW7w7R3xZHhKOUrJ3Q9xxJUYbeEWVsZOVVJ5/6hKJ+At7C0xgkjqav7/Mvx0R0Z9pRBTvz3+aa4z+v8T7A9Te3pdmWmW9NBSGL2Pn/Ijrsa4xlkko3ld8Wm9xsylaRt7vPdVvFmbs+15x5B46kzd/cvL1W1JmdqGZJtAjwnO0Yg3/wiBLcV5nY5Wy7z6cbtMvNUYrYzK9P/yVF9XxaHNdyNyGvRrCmdtLmRdf3qxPaaODXypTDUy+2p3PhExgshPXRTk7thsK3T9BEzG8jrYemqyrw6FPsq1+s8oPgSuzsbRiMyXY+uVy1aRBzEamszuGPjhMlDBk23Ji1IEvMWWBPfWhnMJJnuVvclc7fPdrhImFG8WJhKyVlNV3rc3wODs6W99DT+SLw0NZtQSUqukXbNbgewl3R5YURTtbFVHJmqyRFoQhQPW2dGtOefyHx7LEzFC2Fagxw3PbGP1B7gBnWyMN0hJQeBDn9Qq5DDxKUt5sh0i9Yn6a//Ic8gmWb7Iqf6zExPxh6a+ra7HG7aItudjswMJs8dNIOsv5OpmeBnVedPXcvZu4+V6Wxm85WYcGFCBsK0hsdd8SXbodDtwFrUNkLrUC77u9pTcX90x8fSZph528NMxSRNr+tTfCzSCtb8bIZDLMw8szBgyfidrhxbme0lkbXj4MRHUe2au7se21uOI2qiyp+29Vrzs05/tEk46hPy/f2hAIKRvfpEpKnysgRRN3tRYKZbcTNxy6v6iJqqTeamPcj3Ri3XgLJu/h1GE7kdgY2oeSf/81CU/XSdzaoKTi1nuiKarbPjkGZvuTTcwYJayB6y7e7H1t0By4RUa8U1XSoyXSqlulQzU60fdhkIM9rul7wbkZKvN191WGTdxF3dhhJ2Q1Fuo6pFVYLU4YS9zJA2BI2hJviKmu6UGRGKxfbzRUw2tpRWjbPODjJ+4w4FO564pEagVYfe16+37nTInPgPtbRY1ag/EdqC2U1Fell4Ret9/sP9ODtOS+5ArMpkwNWFY3sA5D7MquFHuYVfZG+MyF2lqkKuMqAL27E5MmqphFXKzDr7Cj5hZasXvV+ga1AhULcK27gkd21XUezcCuxWJDekerYCgXq2dGb53p5FzHRL25Ml94yqBmU9R9qmzSMyVCSF21yBLoSVHYpq3UcTk0pIikBW25nWInvRjNI2EGw8yN5BDLK67Ok7MgsaI7e4sgZV3KnDnkFW3NRBLWlqLYFGXtiMBT3Tk8uQPPpgmcl4OFHL7/V9kfYhHdfc/iQyRe9hd6y+Yrtie8xy0hpSuruZtTNjmo6yNHw9OYM95vWaXgbtXYzglF1kHXX2ZZevZVlQgz2CONUesobveVlBRtRO/xOcssRjXlPZNrY1yN3sY143VBJN0NkEEOmcPOZ105bdoWcjMTsgQ8WQu5XHvP7fSlJS30ts92rndcSLdmNsJgfDD6Qk+f+Y17usUk7aU3G/fdhudAYB9Nljm40iMwllbcWjcjx32ZfcjdMt7DC+icrGJhM3MTH1hAw/69p3+fd8h9RuU8smrBKb4FRighgJSc7r2jX/3a3eztpi7XaozdE03FFKpvXo6uvisN0g4O3OZVzg2HAPiSG5khW1fj7m9WGX1ZLPbfof6Cd2pH7RBmLbyGJi+gm1wj3mtRrg3fFtN4yxZfMFkYkEchN94KueIYyMfydZzvARbdiYnI52hRP6iWzyjDHSRLviy5rwpewoviCziGQN3WnZ3nU1Td/GShdUg3/tpu/ZKU1MkIJ1fXCXfDsuQLoL2/t8X28ftkCnnbzDSJpGl7bkLLNRrd2JwtukNSNDQTq4tFaZ1OuHsnhabw+btc52dapL7d0lp+aUprpN9V1X1gkj28u54NT4a6r536rYU/XYdLfo/zr1cbKa7WGDfJlNJLQD14w4w4Mbko0bGk+QY9tSqsa4Qy3ZA9C4iXwA/6b6LtF328B21Brg5oyGmTu4ObXBzTcJcrnR2mSjo+qc9aZR1+Y6tHkMJgJvkAiSStruqzrb11uw7bRmhqbxzbLAVm1UwtA85LC1Kl8fyuKxBJm38mUDayfS0yRNNdtij9UT2TsaZhyQmLcspNkTrIJUfM2kcwLmDjvbzGSxxKKlas2mY0U2ePWwLfOH4k93LVvZa5n5AONQJGbJTyNytqr2ILjCbeI7NjR6bKyWmKSZlO4bVZU9ZCXIj7Oz3Bcmn8es74lxfdKInJSR9H17Vx+ReRRyUPTE4e1Fm7WmN01Ihm9lrWqKqL5CTtJ281l7ZMXkFiVkXta3/OePogS52vbIJSNayhF0+U37YAMZsNltq7pNMMn3dbkFh6zsTBVG0qS7wg2AO7sv893ctAQ3rSxMGFCQuxHpQu9rkGhtz2a8TaWLzWg1oyold5ym1u9Zuc0gMWyHQc3UGJvUocSsJSmZBG28fndBtyG3ETDjviXGJ0wXPQ0BUuTsXVibeMbaXCdDi6atC90SpiZESKaImK2F+wm242jijXHLEZhddkq6ce2WwjWm7RK2E4OZjBMzGacLagozWwkXrD0EV20XMaPa5Nuk5Cm6p2y770aXuI02breuxrePo3bVo+wo60Xyk5iw6zWbVzM+YuMRxGRW6FP25/bp+FR/7Z74s5k3sn895VWVPQJeS75RYgWvTfocyYw9FY547Mz5pMz3bm534iRnUx3q6fvBbUT7OA2ZPNgh3my3lpm8dmaGJIupr92D1B07jBC1kx0ZUYMLr8129YisHwCLaXulKdWdlSR6BMnq0AnpSinxbrdlNoXKSWJlX+xdmtIOUbFlmwNtpiwTUOUkt7Q/PuXldrNWSb4ZzNC2Y6pkgkXx8FDlIERld3dGHqsqvrkfYyfaG95JkPvDYt8MNaeS2MkJoObl4pC7qQ8nITNxGt7YHOnlbR4fmakla+2ernC4DGosFYeuUxbZkRJGZgYgS4EdQ+NkIxyyzbfsUdOrLrdgEzu8JXbMsmcW25QkPUzNCPnC7cTimLd5ZC3LY1Y/crICla+fsv91243bWRwxb7P0DDEVt9tEypAdFds9VGHvF8yKHZuARWK8nJRcvqAKdXTYnVDsSd+ss7FZghPjhaTkSnaQ9evEL+CMLuypjjy0oeTlqUcgbHPOMd2E7sbZduUj0rM5gEO1TDhp6MbdJQ989fKVdiQ3Zu0ezzikZsSnZBb4odj1HVu0s4YFmUEhKyEPLTqR2QaXcUTb04vk1rbJLncmNttnMV4QJyknk5++bk+Or8G5FDstSJBrQu8BdDuAGrUbduOxJuTSe5DklZsTyG3+X5DsQiNZ5vIgFXAYbTZYkBkPbQ1VsfsOalg4+wfSONqjdBwVO03QkG1mvo1OeZimicjT1U3dmDtsz7btJow8/dLpkanDlZtrLoxfHZmTO8wkd3Iz3XJyWtGJLYdd5q5Z9nFoQSaA2Vkxrri97pNrpS2+3nw97l0PxCaXBMkROJV0KXX58qVVCzXUkFrWRbneH92DrswmywWZg6lqk1PLdv+oDrR9dw+02aE2MhfuH8cCpIrYTC0jZ13Z99bFfuf0HDtLiYy+KclOhoodryajU1K062zZHivJ1amdXV2CtSZyEtyTNinCbHXJTJkyf4QRJjs8E5FxWClY1c3VClg+lZ2RK4RfNZo0dauxd0TkNsqtBhwEYfaBT0FmzJg68vtuYr+9mxDknqCt4elQq6NpSLM4hA1JZ5ia8EpcF7lZ+Y2rb5xQQRJfduXdFuf2IX9DEpkZ0rifgiS+7MrhsRaHjjT8XAuXWgDtGqFl7TCx8SnbSbzNnKTH/m4ryVs5g5X5P4555W4F7fN1xneNzGkRZjaojEysK3PJaxBn9+z9EUnN6hq6zIgdGSTd9OaTIJtjd2UyYlzmlXtjhuWrmDMBLbloKCEyIW7oBh47fzdq855NKCOhB1zxY925SyeyU2QYGRAoj4CCtAcVPXaOe/w0p32ST5BpfVIccb5tR5DkyMrjfr/dP2pHyemndiQsIjOKyuMeRe4cbW1a3DDJ7V0I9FJ23He3AnZEpvUETZWG1yGPFFbc5bbspY3MPat4N2M/sueyyATEIuPvsfaQUJtGTI6HavM1f3JOTEZ2AJu1zqShqllMV1VuD/W6Lr7lbhSK2ZmdgtxKaHlE3N4Zs9NhlfYCGUNTkBuFKt+U8sBec2md25T2xocMXlW5vDgCObBk7w5j44vH5lB2Ys5EpWRouwK51vZ4i0z4JzILFje0Bic3+bJCYijbSzS5FZDyqLhzXrT5rLbzt6faqVFe5VWlbqz5lgO3zP5gMiDZjUPafhgjEyirb1s3Sca+AoKR7ltVSypotyucwIu9FYnI/bqSLeXtUu62396CRGR6gJKusu+uqL3jI5OSqjor3Q0YcxwTcuBKuR4Oxd5wCLrfyVrye3jK2F6zyNMVSpYkYJxDlmZmMx3PDAySZ2jpDniZh70jbENb5GZOVnOsNp18Aju01YY+k5ZzNAOFjC7rPQ/B9TsJQOQKcezc3sZWzrlMwxaTFJ+8TbC7b3PuQKDahcoGtkP7gszzrrPyMa+rv3ZvcbA9p2blaaYYqqq8fNruQcoOs49/cTJnXN4FB2hKB4t9rwojA8vthVruGLQjKGQCSCuLndS3N9CkL6pmVniBoXMbrOnizYgxUW5BxgBVlfAu3siex5ghQOP29G+bZULeP9ENaDt7M5LqVdf1mRsPq84Zlsg+HxCRx+zcWrrnWKKF4+WRxnarAWdZIvvaiYi8RqWtpHukJLKvo4rIc1uqBhkUwGMK9tpKHgxq60DiCrYHTp6rqcvjfiNvmehMIfYaTaZUwR7G7XMaog0wtCcGyZRRWRFwHe3VnvQ8j/v7/GG7d/uBHaUnk5mP+2OV32NbF7vlyeMUx4O8nKOzZtq7f9Lyxyo/7qvswQ0t2J3mdGcqpf97tju686Vz5QIZSzQBsi5hx+yjUIJMQv5ebO+xe7HsyJJxMmOzxUpMCmdKhs5/ZOUeIrJ3bYzcnP3Iqqf1l+Pu2/opfwKkhnDO1/VVkP+5ybtpePadL2SgWslX2yenEwqHbOyTRHJjhHN4t0dYfnb3q7ndF2Ly8K+sAP9sbk/rMXltiKwAfje3ydqYvDREiiIfzu00t5g8jfsj/4KmfdhDgEwO+JF/6bCp9qTPWq/LZKQlZi+dkNOJRtPwW+6UaPvghluMyeCTUxGcX5k9LYs2+4pko5zKkKxCbifPCZObEZPelqlP36vifqaNzJxaiUn30a2p8502/SaMKx6Ty4BbG/qh9kA2dEtMnvjVFdZZ9c39SNs5X7a19HcKWUuZ18ey45Bx21MQbe4iOfee6kM/0Z40Vu22iBwG0nHprvv2xgX3ef/+8uywPeS77T4/++WPv//rX/8ft5QDzbpmAgA="; \ No newline at end of file diff --git a/docs/assets/style.css b/docs/assets/style.css index e5093854c..778b94927 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -2,38 +2,80 @@ /* Light */ --light-color-background: #f2f4f8; --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; --light-color-icon-background: var(--light-color-background); --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); --light-color-text: #222; - --light-color-text-aside: #707070; - --light-color-link: #4da6ff; - --light-color-ts: #db1373; - --light-color-ts-interface: #139d2c; - --light-color-ts-enum: #9c891a; - --light-color-ts-class: #2484e5; + --light-color-text-aside: #6e6e6e; + --light-color-link: #1f70c2; + + --light-color-ts-keyword: #056bd6; + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; --light-color-ts-function: #572be7; - --light-color-ts-namespace: #b111c9; - --light-color-ts-private: #707070; - --light-color-ts-variable: #4d68ff; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: var(--light-color-ts-class); + --light-color-ts-property: var(--light-color-ts-variable); + --light-color-ts-method: var(--light-color-ts-function); + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var(--light-color-ts-constructor); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: #a55c0e; + --light-color-ts-accessor: var(--light-color-ts-property); + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + --light-external-icon: url("data:image/svg+xml;utf8,"); --light-color-scheme: light; /* Dark */ --dark-color-background: #2b2e33; --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; --dark-color-icon-background: var(--dark-color-background-secondary); --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; --dark-color-text: #f5f5f5; --dark-color-text-aside: #dddddd; --dark-color-link: #00aff4; - --dark-color-ts: #ff6492; - --dark-color-ts-interface: #6cff87; + + --dark-color-ts-keyword: #3399ff; + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); --dark-color-ts-enum: #f4d93e; - --dark-color-ts-class: #61b0ff; - --dark-color-ts-function: #9772ff; - --dark-color-ts-namespace: #e14dff; - --dark-color-ts-private: #e2e2e2; - --dark-color-ts-variable: #4d68ff; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: var(--dark-color-ts-class); + --dark-color-ts-property: var(--dark-color-ts-variable); + --dark-color-ts-method: var(--dark-color-ts-function); + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: #e07d13; + --dark-color-ts-accessor: var(--dark-color-ts-property); + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + --dark-external-icon: url("data:image/svg+xml;utf8,"); --dark-color-scheme: dark; } @@ -42,19 +84,39 @@ :root { --color-background: var(--light-color-background); --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); --color-icon-background: var(--light-color-icon-background); --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); - --color-ts: var(--light-color-ts); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-class: var(--light-color-ts-class); - --color-ts-function: var(--light-color-ts-function); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); - --color-ts-private: var(--light-color-ts-private); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); } @@ -64,19 +126,39 @@ :root { --color-background: var(--dark-color-background); --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); --color-icon-background: var(--dark-color-icon-background); --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); - --color-ts: var(--dark-color-ts); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-class: var(--dark-color-ts-class); - --color-ts-function: var(--dark-color-ts-function); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); - --color-ts-private: var(--dark-color-ts-private); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } @@ -93,19 +175,39 @@ body { :root[data-theme="light"] { --color-background: var(--light-color-background); --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); --color-icon-background: var(--light-color-icon-background); --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); --color-link: var(--light-color-link); - --color-ts: var(--light-color-ts); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-class: var(--light-color-ts-class); - --color-ts-function: var(--light-color-ts-function); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-module: var(--light-color-ts-module); --color-ts-namespace: var(--light-color-ts-namespace); - --color-ts-private: var(--light-color-ts-private); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --external-icon: var(--light-external-icon); --color-scheme: var(--light-color-scheme); } @@ -113,23 +215,48 @@ body { :root[data-theme="dark"] { --color-background: var(--dark-color-background); --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); --color-icon-background: var(--dark-color-icon-background); --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); --color-link: var(--dark-color-link); - --color-ts: var(--dark-color-ts); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-class: var(--dark-color-ts-class); - --color-ts-function: var(--dark-color-ts-function); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-module: var(--dark-color-ts-module); --color-ts-namespace: var(--dark-color-ts-namespace); - --color-ts-private: var(--dark-color-ts-private); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --external-icon: var(--dark-external-icon); --color-scheme: var(--dark-color-scheme); } +.always-visible, +.always-visible .tsd-signatures { + display: inherit !important; +} + h1, h2, h3, @@ -139,6 +266,16 @@ h6 { line-height: 1.2; } +h1 > a:not(.link), +h2 > a:not(.link), +h3 > a:not(.link), +h4 > a:not(.link), +h5 > a:not(.link), +h6 > a:not(.link) { + text-decoration: none; + color: var(--color-text); +} + h1 { font-size: 1.875rem; margin: 0.67rem 0; @@ -173,12 +310,6 @@ h6 { text-transform: uppercase; } -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - dl, menu, ol, @@ -191,61 +322,25 @@ dd { } .container { - max-width: 1600px; + max-width: 1700px; padding: 0 2rem; } -@media (min-width: 640px) { - .container { - padding: 0 4rem; - } -} -@media (min-width: 1200px) { - .container { - padding: 0 8rem; - } -} -@media (min-width: 1600px) { - .container { - padding: 0 12rem; - } -} - /* Footer */ -.tsd-generator { +footer { border-top: 1px solid var(--color-accent); padding-top: 1rem; padding-bottom: 1rem; max-height: 3.5rem; } - -.tsd-generator > p { - margin-top: 0; - margin-bottom: 0; - padding: 0 1rem; +.tsd-generator { + margin: 0 1em; } .container-main { - display: flex; - justify-content: space-between; - position: relative; margin: 0 auto; -} - -.col-4, -.col-8 { - box-sizing: border-box; - float: left; - padding: 2rem 1rem; -} - -.col-4 { - flex: 0 0 25%; -} -.col-8 { - flex: 1 0; - flex-wrap: wrap; - padding-left: 0; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); } @keyframes fade-in { @@ -288,22 +383,6 @@ dd { opacity: 0; } } -@keyframes shift-to-left { - from { - transform: translate(0, 0); - } - to { - transform: translate(-25%, 0); - } -} -@keyframes unshift-to-left { - from { - transform: translate(-25%, 0); - } - to { - transform: translate(0, 0); - } -} @keyframes pop-in-from-right { from { transform: translate(100%, 0); @@ -323,7 +402,8 @@ dd { } body { background: var(--color-background); - font-family: "Segoe UI", sans-serif; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; color: var(--color-text); } @@ -352,13 +432,29 @@ pre { } pre { + position: relative; + white-space: pre; + white-space: pre-wrap; + word-wrap: break-word; padding: 10px; - border: 0.1em solid var(--color-accent); + border: 1px solid var(--color-accent); } pre code { padding: 0; font-size: 100%; } +pre > button { + position: absolute; + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; +} +pre:hover > button, +pre > button.visible { + opacity: 1; +} blockquote { margin: 1em 0; @@ -374,13 +470,12 @@ blockquote { padding: 0 0 0 20px; margin: 0; } -.tsd-typography h4, .tsd-typography .tsd-index-panel h3, .tsd-index-panel .tsd-typography h3, +.tsd-typography h4, .tsd-typography h5, .tsd-typography h6 { font-size: 1em; - margin: 0; } .tsd-typography h5, .tsd-typography h6 { @@ -391,91 +486,18 @@ blockquote { .tsd-typography ol { margin: 1em 0; } - -@media (max-width: 1024px) { - html .col-content { - float: none; - max-width: 100%; - width: 100%; - padding-top: 3rem; - } - html .col-menu { - position: fixed !important; - overflow-y: auto; - -webkit-overflow-scrolling: touch; - z-index: 1024; - top: 0 !important; - bottom: 0 !important; - left: auto !important; - right: 0 !important; - padding: 1.5rem 1.5rem 0 0; - max-width: 25rem; - visibility: hidden; - background-color: var(--color-background); - transform: translate(100%, 0); - } - html .col-menu > *:last-child { - padding-bottom: 20px; - } - html .overlay { - content: ""; - display: block; - position: fixed; - z-index: 1023; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.75); - visibility: hidden; - } - - .to-has-menu .overlay { - animation: fade-in 0.4s; - } - - .to-has-menu :is(header, footer, .col-content) { - animation: shift-to-left 0.4s; - } - - .to-has-menu .col-menu { - animation: pop-in-from-right 0.4s; - } - - .from-has-menu .overlay { - animation: fade-out 0.4s; - } - - .from-has-menu :is(header, footer, .col-content) { - animation: unshift-to-left 0.4s; - } - - .from-has-menu .col-menu { - animation: pop-out-to-right 0.4s; - } - - .has-menu body { - overflow: hidden; - } - .has-menu .overlay { - visibility: visible; - } - .has-menu :is(header, footer, .col-content) { - transform: translate(-25%, 0); - } - .has-menu .col-menu { - visibility: visible; - transform: translate(0, 0); - display: grid; - align-items: center; - grid-template-rows: auto 1fr; - grid-gap: 1.5rem; - max-height: 100vh; - padding: 1rem 2rem; - } - .has-menu .tsd-navigation { - max-height: 100%; - } +.tsd-typography table { + border-collapse: collapse; + border: none; +} +.tsd-typography td, +.tsd-typography th { + padding: 6px 13px; + border: 1px solid var(--color-accent); +} +.tsd-typography thead, +.tsd-typography tr:nth-child(even) { + background-color: var(--color-background-secondary); } .tsd-breadcrumb { @@ -625,6 +647,28 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { font-weight: bold; } +.tsd-full-hierarchy:not(:last-child) { + margin-bottom: 1em; + padding-bottom: 1em; + border-bottom: 1px solid var(--color-accent); +} +.tsd-full-hierarchy, +.tsd-full-hierarchy ul { + list-style: none; + margin: 0; + padding: 0; +} +.tsd-full-hierarchy ul { + padding-left: 1.5rem; +} +.tsd-full-hierarchy a { + padding: 0.25rem 0 !important; + font-size: 1rem; + display: inline-flex; + align-items: center; + color: var(--color-text); +} + .tsd-panel-group.tsd-index-group { margin-bottom: 0; } @@ -656,43 +700,6 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { -o-page-break-inside: avoid; page-break-inside: avoid; } -.tsd-index-panel a, -.tsd-index-panel a.tsd-parent-kind-module { - color: var(--color-ts); -} -.tsd-index-panel a.tsd-parent-kind-interface { - color: var(--color-ts-interface); -} -.tsd-index-panel a.tsd-parent-kind-enum { - color: var(--color-ts-enum); -} -.tsd-index-panel a.tsd-parent-kind-class { - color: var(--color-ts-class); -} -.tsd-index-panel a.tsd-kind-module { - color: var(--color-ts-namespace); -} -.tsd-index-panel a.tsd-kind-interface { - color: var(--color-ts-interface); -} -.tsd-index-panel a.tsd-kind-enum { - color: var(--color-ts-enum); -} -.tsd-index-panel a.tsd-kind-class { - color: var(--color-ts-class); -} -.tsd-index-panel a.tsd-kind-function { - color: var(--color-ts-function); -} -.tsd-index-panel a.tsd-kind-namespace { - color: var(--color-ts-namespace); -} -.tsd-index-panel a.tsd-kind-variable { - color: var(--color-ts-variable); -} -.tsd-index-panel a.tsd-is-private { - color: var(--color-ts-private); -} .tsd-flag { display: inline-block; @@ -707,7 +714,7 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { } .tsd-anchor { - position: absolute; + position: relative; top: -100px; } @@ -721,108 +728,62 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { margin-bottom: 0; border-bottom: none; } -.tsd-member [data-tsd-kind] { - color: var(--color-ts); -} -.tsd-member [data-tsd-kind="Interface"] { - color: var(--color-ts-interface); -} -.tsd-member [data-tsd-kind="Enum"] { - color: var(--color-ts-enum); -} -.tsd-member [data-tsd-kind="Class"] { - color: var(--color-ts-class); + +.tsd-navigation.settings { + margin: 1rem 0; } -.tsd-member [data-tsd-kind="Private"] { - color: var(--color-ts-private); +.tsd-navigation > a, +.tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.25rem); + display: flex; + align-items: center; } - -.tsd-navigation a { - display: block; - margin: 0.4rem 0; - border-left: 2px solid transparent; +.tsd-navigation a, +.tsd-navigation summary > span, +.tsd-page-navigation a { + display: flex; + width: calc(100% - 0.25rem); + align-items: center; + padding: 0.25rem; color: var(--color-text); text-decoration: none; - transition: border-left-color 0.1s; + box-sizing: border-box; +} +.tsd-navigation a.current, +.tsd-page-navigation a.current { + background: var(--color-active-menu-item); } -.tsd-navigation a:hover { +.tsd-navigation a:hover, +.tsd-page-navigation a:hover { text-decoration: underline; } -.tsd-navigation ul { - margin: 0; +.tsd-navigation ul, +.tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; padding: 0; list-style: none; } -.tsd-navigation li { +.tsd-navigation li, +.tsd-page-navigation li { padding: 0; + max-width: 100%; } - -.tsd-navigation.primary .tsd-accordion-details > ul { - margin-top: 0.75rem; -} -.tsd-navigation.primary a { - padding: 0.75rem 0.5rem; - margin: 0; +.tsd-nested-navigation { + margin-left: 3rem; } -.tsd-navigation.primary ul li a { - margin-left: 0.5rem; +.tsd-nested-navigation > li > details { + margin-left: -1.5rem; } -.tsd-navigation.primary ul li li a { +.tsd-small-nested-navigation { margin-left: 1.5rem; } -.tsd-navigation.primary ul li li li a { - margin-left: 2.5rem; -} -.tsd-navigation.primary ul li li li li a { - margin-left: 3.5rem; -} -.tsd-navigation.primary ul li li li li li a { - margin-left: 4.5rem; -} -.tsd-navigation.primary ul li li li li li li a { - margin-left: 5.5rem; -} -.tsd-navigation.primary li.current > a { - border-left: 0.15rem var(--color-text) solid; -} -.tsd-navigation.primary li.selected > a { - font-weight: bold; - border-left: 0.2rem var(--color-text) solid; -} -.tsd-navigation.primary ul li a:hover { - border-left: 0.2rem var(--color-text-aside) solid; -} -.tsd-navigation.primary li.globals + li > span, -.tsd-navigation.primary li.globals + li > a { - padding-top: 20px; +.tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; } -.tsd-navigation.secondary.tsd-navigation--toolbar-hide { - max-height: calc(100vh - 1rem); - top: 0.5rem; -} -.tsd-navigation.secondary > ul { - display: inline; - padding-right: 0.5rem; - transition: opacity 0.2s; -} -.tsd-navigation.secondary ul li a { - padding-left: 0; -} -.tsd-navigation.secondary ul li li a { - padding-left: 1.1rem; -} -.tsd-navigation.secondary ul li li li a { - padding-left: 2.2rem; -} -.tsd-navigation.secondary ul li li li li a { - padding-left: 3.3rem; -} -.tsd-navigation.secondary ul li li li li li a { - padding-left: 4.4rem; -} -.tsd-navigation.secondary ul li li li li li li a { - padding-left: 5.5rem; +.tsd-page-navigation ul { + padding-left: 1.75rem; } #tsd-sidebar-links a { @@ -835,41 +796,40 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { } a.tsd-index-link { - margin: 0.25rem 0; + padding: 0.25rem 0 !important; font-size: 1rem; line-height: 1.25rem; display: inline-flex; align-items: center; + color: var(--color-text); } -.tsd-accordion-summary > h1, -.tsd-accordion-summary > h2, -.tsd-accordion-summary > h3, -.tsd-accordion-summary > h4, -.tsd-accordion-summary > h5 { - display: inline-flex; - align-items: center; - vertical-align: middle; - margin-bottom: 0; +.tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ +} +.tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ +} +.tsd-accordion-summary, +.tsd-accordion-summary a { user-select: none; -moz-user-select: none; -webkit-user-select: none; -ms-user-select: none; -} -.tsd-accordion-summary { - display: block; + cursor: pointer; } +.tsd-accordion-summary a { + width: calc(100% - 1.5rem); +} .tsd-accordion-summary > * { margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; } -.tsd-accordion-summary::-webkit-details-marker { - display: none; -} -.tsd-index-accordion .tsd-accordion-summary svg { - margin-right: 0.25rem; +.tsd-index-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; } .tsd-index-content > :not(:first-child) { margin-top: 0.75rem; @@ -894,34 +854,6 @@ a.tsd-index-link { margin-right: 0.8rem; } -@media (min-width: 1024px) { - .col-content { - margin: 2rem auto; - } - - .menu-sticky-wrap { - position: sticky; - height: calc(100vh - 2rem); - top: 4rem; - right: 0; - padding: 0 1.5rem; - padding-top: 1rem; - margin-top: 3rem; - transition: 0.3s ease-in-out; - transition-property: top, padding-top, padding, height; - overflow-y: auto; - } - .col-menu { - border-left: 1px solid var(--color-accent); - } - .col-menu--hide { - top: 1rem; - } - .col-menu .tsd-navigation:not(:last-child) { - padding-bottom: 1.75rem; - } -} - .tsd-panel { margin-bottom: 2.5rem; } @@ -1002,8 +934,9 @@ a.tsd-index-link { box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); } #tsd-search .results li { - padding: 0 10px; background-color: var(--color-background); + line-height: initial; + padding: 4px; } #tsd-search .results li:nth-child(even) { background-color: var(--color-background-secondary); @@ -1011,12 +944,15 @@ a.tsd-index-link { #tsd-search .results li.state { display: none; } -#tsd-search .results li.current, -#tsd-search .results li:hover { +#tsd-search .results li.current:not(.no-results), +#tsd-search .results li:hover:not(.no-results) { background-color: var(--color-accent); } #tsd-search .results a { - display: block; + display: flex; + align-items: center; + padding: 0.25rem; + box-sizing: border-box; } #tsd-search .results a:before { top: 10px; @@ -1072,6 +1008,11 @@ a.tsd-index-link { overflow-x: auto; } +.tsd-signature-keyword { + color: var(--color-ts-keyword); + font-weight: normal; +} + .tsd-signature-symbol { color: var(--color-text-aside); font-weight: normal; @@ -1127,7 +1068,7 @@ ul.tsd-type-parameter-list h5 { } .tsd-page-toolbar { - position: fixed; + position: sticky; z-index: 1; top: 0; left: 0; @@ -1167,16 +1108,14 @@ ul.tsd-type-parameter-list h5 { padding: 12px 0; } -.tsd-page-toolbar--hide { - transform: translateY(-100%); -} - .tsd-widget { display: inline-block; overflow: hidden; opacity: 0.8; height: 40px; - transition: opacity 0.1s, background-color 0.2s; + transition: + opacity 0.1s, + background-color 0.2s; vertical-align: bottom; cursor: pointer; } @@ -1198,12 +1137,6 @@ ul.tsd-type-parameter-list h5 { .tsd-widget.menu { display: none; } -@media (max-width: 1024px) { - .tsd-widget.options, - .tsd-widget.menu { - display: inline-block; - } -} input[type="checkbox"] + .tsd-widget:before { background-position: -120px 0; } @@ -1234,7 +1167,85 @@ img { } .deprecated { - text-decoration: line-through; + text-decoration: line-through !important; +} + +.warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); +} + +.tsd-kind-project { + color: var(--color-ts-project); +} +.tsd-kind-module { + color: var(--color-ts-module); +} +.tsd-kind-namespace { + color: var(--color-ts-namespace); +} +.tsd-kind-enum { + color: var(--color-ts-enum); +} +.tsd-kind-enum-member { + color: var(--color-ts-enum-member); +} +.tsd-kind-variable { + color: var(--color-ts-variable); +} +.tsd-kind-function { + color: var(--color-ts-function); +} +.tsd-kind-class { + color: var(--color-ts-class); +} +.tsd-kind-interface { + color: var(--color-ts-interface); +} +.tsd-kind-constructor { + color: var(--color-ts-constructor); +} +.tsd-kind-property { + color: var(--color-ts-property); +} +.tsd-kind-method { + color: var(--color-ts-method); +} +.tsd-kind-call-signature { + color: var(--color-ts-call-signature); +} +.tsd-kind-index-signature { + color: var(--color-ts-index-signature); +} +.tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); +} +.tsd-kind-parameter { + color: var(--color-ts-parameter); +} +.tsd-kind-type-literal { + color: var(--color-ts-type-literal); +} +.tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); +} +.tsd-kind-accessor { + color: var(--color-ts-accessor); +} +.tsd-kind-get-signature { + color: var(--color-ts-get-signature); +} +.tsd-kind-set-signature { + color: var(--color-ts-set-signature); +} +.tsd-kind-type-alias { + color: var(--color-ts-type-alias); +} + +/* if we have a kind icon, don't color the text by kind */ +.tsd-kind-icon ~ span { + color: var(--color-text); } * { @@ -1255,3 +1266,147 @@ img { border-radius: 999rem; border: 0.25rem solid var(--color-icon-background); } + +/* mobile */ +@media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } +} + +/* one sidebar */ +@media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } +} +@media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } +} + +/* two sidebars */ +@media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax(0, 20rem); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem 0; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } +} diff --git a/docs/classes/index.AsyncDuckDB.html b/docs/classes/index.AsyncDuckDB.html index 0adf60fd7..dea0789ed 100644 --- a/docs/classes/index.AsyncDuckDB.html +++ b/docs/classes/index.AsyncDuckDB.html @@ -1,796 +1,81 @@ -AsyncDuckDB | DuckDB-WASM
-
- -
-
-
-
- -

Class AsyncDuckDB

-
-

An interface for the async DuckDB bindings

-
-
-

Hierarchy

-
    -
  • AsyncDuckDB
-
-

Implements

-
-
-
-
- -
-
-

Constructors

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      logger: Logger
    • -
    • -
      worker: null | Worker = null
    -

    Returns AsyncDuckDB

-
-

Accessors

-
- -
-
-

Methods

-
- -
    - -
  • -

    Cancel a pending query

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Promise<boolean>

-
- -
    - -
  • -

    Close a prepared statement

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Enable file statistics

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      enable: boolean
    -

    Returns Promise<void>

-
- -
-
- -
    - -
  • -

    Connect to the database

    -
    -

    Returns Promise<number>

-
- -
    - -
  • -

    Copy a file to a buffer.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -

    Copy a file to a path.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      path: string
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Prepare a statement and return its identifier

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Promise<number>

-
- -
    - -
  • -

    Detach from worker

    -
    -

    Returns void

-
- -
    - -
  • -

    Disconnect from the database

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Try to drop a file

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns Promise<null>

-
- -
    - -
  • -

    Try to drop files

    -
    -

    Returns Promise<null>

-
- -
    - -
  • -

    Export file statistics

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns Promise<FileStatistics>

-
- -
    - -
  • -

    Fetch query results

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -

    Flush all files

    -
    -

    Returns Promise<null>

-
- -
    - -
  • -

    Get the feature flags

    -
    -

    Returns Promise<number>

-
- -
    - -
  • -

    Get table names

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Promise<string[]>

-
- -
    - -
  • -

    Get the version

    -
    -

    Returns Promise<string>

-
- -
    - -
  • -

    Glob file infos

    -
    -
    -

    Parameters

    -
      -
    • -
      path: string
    -

    Returns Promise<WebFile[]>

-
- -
-
- -
-
- -
-
- -
    - -
  • -

    Open the database

    -
    -
    -

    Parameters

    -
    -

    Returns Promise<null>

-
- -
    - -
  • -

    Open a new database

    -
    -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Ping the worker thread

    -
    -

    Returns Promise<any>

-
- -
    - -
  • -

    Poll a pending query

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Promise<null | Uint8Array>

-
- -
    - -
  • -

    Register an empty file buffer.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Register a file buffer.

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      buffer: Uint8Array
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Register a file handle.

    -
    -
    -

    Type Parameters

    -
      -
    • -

      HandleType

    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      handle: HandleType
    • -
    • -
      protocol: DuckDBDataProtocol
    • -
    • -
      directIO: boolean
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Register file text

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      text: string
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Register a file path.

    -
    -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Reset the duckdb

    -
    -

    Returns Promise<null>

-
- -
    - -
  • -

    Execute a prepared statement and return the full result

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    • -
    • -
      params: any[]
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -

    Run a query

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -

    Execute a prepared statement and stream the result

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    • -
    • -
      params: any[]
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -

    Start a pending query

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Promise<null | Uint8Array>

-
- -
    - -
  • -

    Kill the worker

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Tokenize a script text

    -
    -
    -

    Parameters

    -
      -
    • -
      text: string
    -

    Returns Promise<ScriptTokens>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +AsyncDuckDB | DuckDB-WASM

An interface for the async DuckDB bindings

+

Implements

Constructors

Accessors

Methods

\ No newline at end of file diff --git a/docs/classes/index.AsyncDuckDBConnection.html b/docs/classes/index.AsyncDuckDBConnection.html index 0aa6e5c8a..7edcbc9dc 100644 --- a/docs/classes/index.AsyncDuckDBConnection.html +++ b/docs/classes/index.AsyncDuckDBConnection.html @@ -1,325 +1,27 @@ -AsyncDuckDBConnection | DuckDB-WASM
-
- -
-
-
-
- -

Class AsyncDuckDBConnection

-
-

A thin helper to memoize the connection id

-
-
-

Hierarchy

-
    -
  • AsyncDuckDBConnection
-
-
-
- -
-
-

Constructors

-
- -
-
-

Accessors

-
- -
    -
  • get bindings(): AsyncDuckDB
  • -
  • -

    Access the database bindings

    -
    -

    Returns AsyncDuckDB

-
-

Methods

-
- -
    - -
  • -

    Cancel a query that was sent earlier

    -
    -

    Returns Promise<boolean>

-
- -
    - -
  • -

    Disconnect from the database

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Get table names

    -
    -
    -

    Parameters

    -
      -
    • -
      query: string
    -

    Returns Promise<string[]>

-
- -
    - -
  • -

    Insert an arrow table from an ipc stream

    -
    -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Insert an arrow table

    -
    -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Insert csv file from path

    -
    -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Insert json file from path

    -
    -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Create a prepared statement

    -
    -
    -

    Type Parameters

    -
      -
    • -

      T extends {
          [key: string]: arrow.DataType;
      } = any

    -
    -

    Parameters

    -
      -
    • -
      text: string
    -

    Returns Promise<AsyncPreparedStatement<any>>

-
- -
    - -
  • -

    Run a query

    -
    -
    -

    Type Parameters

    -
      -
    • -

      T extends {
          [key: string]: arrow.DataType;
      } = any

    -
    -

    Parameters

    -
      -
    • -
      text: string
    -

    Returns Promise<Table<T>>

-
- -
    - -
  • -

    Send a query

    -
    -
    -

    Type Parameters

    -
      -
    • -

      T extends {
          [key: string]: arrow.DataType;
      } = any

    -
    -

    Parameters

    -
      -
    • -
      text: string
    -

    Returns Promise<AsyncRecordBatchStreamReader<T>>

-
- -
    - -
  • -

    Brave souls may use this function to consume the underlying connection id

    -
    -
    -

    Type Parameters

    -
      -
    • -

      R

    -
    -

    Parameters

    -
      -
    • -
      callback: ((bindings: AsyncDuckDB, conn: number) => R)
      -
        -
      • -
          -
        • (bindings: AsyncDuckDB, conn: number): R
        • -
        • -
          -

          Parameters

          -
          -

          Returns R

    -

    Returns R

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +AsyncDuckDBConnection | DuckDB-WASM

Class AsyncDuckDBConnection

A thin helper to memoize the connection id

+

Constructors

Accessors

Methods

  • Send a query

    +

    Type Parameters

    • T extends {
          [key: string]: arrow.DataType;
      } = any

    Parameters

    • text: string
    • allowStreamResult: boolean = false

    Returns Promise<AsyncRecordBatchStreamReader<T>>

\ No newline at end of file diff --git a/docs/classes/index.AsyncDuckDBDispatcher.html b/docs/classes/index.AsyncDuckDBDispatcher.html index 08fa26945..c5f17b03a 100644 --- a/docs/classes/index.AsyncDuckDBDispatcher.html +++ b/docs/classes/index.AsyncDuckDBDispatcher.html @@ -1,117 +1,6 @@ -AsyncDuckDBDispatcher | DuckDB-WASM
-
- -
-
-
-
- -

Class AsyncDuckDBDispatcherAbstract

-
-

Hierarchy

-
    -
  • AsyncDuckDBDispatcher
-
-

Implements

-
-
-
-
- -
-
-

Constructors

-
-
-

Methods

-
-
-

Constructors

-
- -
-
-

Methods

-
- -
    - -
  • -

    Send log entry to the main thread

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Process a request from the main thread

    -
    -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +AsyncDuckDBDispatcher | DuckDB-WASM

Class AsyncDuckDBDispatcherAbstract

Implements

Constructors

Methods

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/index.AsyncPreparedStatement.html b/docs/classes/index.AsyncPreparedStatement.html index 558d11e2e..dcc31ba0a 100644 --- a/docs/classes/index.AsyncPreparedStatement.html +++ b/docs/classes/index.AsyncPreparedStatement.html @@ -1,150 +1,10 @@ -AsyncPreparedStatement | DuckDB-WASM
-
- -
-
-
-
- -

Class AsyncPreparedStatement<T>

-
-

A thin helper to bind the prepared statement id

-
-
-

Type Parameters

-
    -
  • -

    T extends {
        [key: string]: arrow.DataType;
    } = any

-
-

Hierarchy

-
    -
  • AsyncPreparedStatement
-
-
-
- -
-
-

Constructors

-
-
-

Methods

-
-
-

Constructors

-
- -
    - -
  • -

    Constructor

    -
    -
    -

    Type Parameters

    -
      -
    • -

      T extends {
          [key: string]: arrow.DataType;
      } = any

    -
    -

    Parameters

    -
      -
    • -
      bindings: AsyncDuckDB
    • -
    • -
      connectionId: number
    • -
    • -
      statementId: number
    -

    Returns AsyncPreparedStatement<T>

-
-

Methods

-
- -
    - -
  • -

    Close a prepared statement

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -

    Run a prepared statement

    -
    -
    -

    Parameters

    -
      -
    • -
      Rest ...params: any[]
    -

    Returns Promise<Table<T>>

-
- -
    - -
  • -

    Send a prepared statement

    -
    -
    -

    Parameters

    -
      -
    • -
      Rest ...params: any[]
    -

    Returns Promise<AsyncRecordBatchStreamReader<T>>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +AsyncPreparedStatement | DuckDB-WASM

Class AsyncPreparedStatement<T>

A thin helper to bind the prepared statement id

+

Type Parameters

  • T extends {
        [key: string]: arrow.DataType;
    } = any

Constructors

Methods

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/index.AsyncResultStreamIterator.html b/docs/classes/index.AsyncResultStreamIterator.html index f5b86ff03..d483ee642 100644 --- a/docs/classes/index.AsyncResultStreamIterator.html +++ b/docs/classes/index.AsyncResultStreamIterator.html @@ -1,117 +1,5 @@ -AsyncResultStreamIterator | DuckDB-WASM
-
- -
-
-
-
- -

Class AsyncResultStreamIterator

-
-

An async result stream iterator

-
-
-

Hierarchy

-
    -
  • AsyncResultStreamIterator
-
-

Implements

-
    -
  • AsyncIterable<Uint8Array>
-
-
-
- -
-
-

Constructors

-
-
-

Methods

-
-
-

Constructors

-
- -
-
-

Methods

-
- -
-
- -
    - -
  • -

    Returns Promise<IteratorResult<Uint8Array, any>>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +AsyncResultStreamIterator | DuckDB-WASM

Class AsyncResultStreamIterator

An async result stream iterator

+

Implements

  • AsyncIterable<Uint8Array>

Constructors

Methods

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/index.ConsoleLogger.html b/docs/classes/index.ConsoleLogger.html index 25b9ded23..6b37d5c34 100644 --- a/docs/classes/index.ConsoleLogger.html +++ b/docs/classes/index.ConsoleLogger.html @@ -1,105 +1,3 @@ -ConsoleLogger | DuckDB-WASM
-
- -
-
-
-
- -

Class ConsoleLogger

-
-

Hierarchy

-
    -
  • ConsoleLogger
-
-

Implements

-
-
-
-
- -
-
-

Constructors

-
-
-

Methods

-
log -
-
-

Constructors

-
- -
-
-

Methods

-
- -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +ConsoleLogger | DuckDB-WASM

Implements

Constructors

Methods

log +

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/index.DuckDBBindingsBase.html b/docs/classes/index.DuckDBBindingsBase.html index 8ff08b4f2..60fce40fd 100644 --- a/docs/classes/index.DuckDBBindingsBase.html +++ b/docs/classes/index.DuckDBBindingsBase.html @@ -1,803 +1,80 @@ -DuckDBBindingsBase | DuckDB-WASM
-
- -
-
-
-
- -

Class DuckDBBindingsBaseAbstract

-
-

The proxy for either the browser- order node-based DuckDB API

-
-
-

Hierarchy

-
    -
  • DuckDBBindingsBase
-
-

Implements

-
-
-
-
- -
-
-

Constructors

-
- -
-
-

Accessors

-
- -
    -
  • get logger(): Logger
  • -
  • -

    Get the logger

    -
    -

    Returns Logger

-
- -
    -
  • get mod(): DuckDBModule
  • -
  • -

    Get the instance

    -
    -

    Returns DuckDBModule

-
- -
    -
  • get pthread(): null | PThread
  • -
  • -

    Get the instance

    -
    -

    Returns null | PThread

-
-

Methods

-
- -
    - -
  • -

    Cancel a pending query

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns boolean

-
- -
    - -
  • -

    Close a prepared statement

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    -

    Returns void

-
- -
    - -
  • -

    Enable tracking of file statistics

    -
    -
    -

    Parameters

    -
      -
    • -
      file: string
    • -
    • -
      enable: boolean
    -

    Returns void

-
- -
-
- -
    - -
  • -

    Write a file to a buffer

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns Uint8Array

-
- -
    - -
  • -

    Write a file to a path

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      path: string
    -

    Returns void

-
- -
    - -
  • -

    Prepare a statement and return its identifier

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns number

-
- -
    - -
  • -

    Create a scalar function

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      name: string
    • -
    • -
      returns: DataType<Type, any>
    • -
    • -
      func: ((...args: any[]) => void)
      -
        -
      • -
          -
        • (...args: any[]): void
        • -
        • -
          -

          Parameters

          -
            -
          • -
            Rest ...args: any[]
          -

          Returns void

    -

    Returns void

-
- -
    - -
  • -

    Disconnect from database

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns void

-
- -
    - -
  • -

    Drop file

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns void

-
- -
    - -
  • -

    Drop files

    -
    -

    Returns void

-
- -
-
- -
    - -
  • -

    Fetch query results

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Uint8Array

-
- -
    - -
  • -

    Flush all files

    -
    -

    Returns void

-
- -
    - -
  • -

    Get the feature flags

    -
    -

    Returns number

-
- -
    - -
  • -

    Get table names

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns string[]

-
- -
    - -
  • -

    Get the version

    -
    -

    Returns string

-
- -
    - -
  • -

    Glob file infos

    -
    -
    -

    Parameters

    -
      -
    • -
      path: string
    -

    Returns WebFile[]

-
- -
    - -
  • -

    Insert record batches from an arrow ipc stream

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Insert csv from path

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
-
- -
-
- -
    - -
  • -

    Open a database with a config

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Poll a pending query

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns null | Uint8Array

-
- -
    - -
  • -

    Register a file buffer

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      buffer: Uint8Array
    -

    Returns void

-
- -
    - -
  • -

    Register a file object URL

    -
    -
    -

    Type Parameters

    -
      -
    • -

      HandleType

    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      handle: HandleType
    • -
    • -
      protocol: DuckDBDataProtocol
    • -
    • -
      directIO: boolean
    -

    Returns void

-
- -
    - -
  • -

    Register file text

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      text: string
    -

    Returns void

-
- -
    - -
  • -

    Register a file object URL

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Reset the database

    -
    -

    Returns void

-
- -
    - -
  • -

    Execute a prepared statement and return the full result

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    • -
    • -
      params: any[]
    -

    Returns Uint8Array

-
- -
    - -
  • -

    Send a query and return the full result

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Uint8Array

-
- -
    - -
  • -

    Execute a prepared statement and stream the result

    -
    -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    • -
    • -
      params: any[]
    -

    Returns Uint8Array

-
- -
\ No newline at end of file diff --git a/docs/classes/index.DuckDBConnection.html b/docs/classes/index.DuckDBConnection.html index acb17ac9e..4eb3c9224 100644 --- a/docs/classes/index.DuckDBConnection.html +++ b/docs/classes/index.DuckDBConnection.html @@ -1,342 +1,28 @@ -DuckDBConnection | DuckDB-WASM
-
- -
-
-
-
- -

Class DuckDBConnection

-
-

A thin helper to bind the connection id and talk record batches

-
-
-

Hierarchy

-
    -
  • DuckDBConnection
-
-
-
- -
-
-

Constructors

-
- -
-
-

Methods

-
- -
    - -
  • -

    Cancel a query that was sent earlier

    -
    -

    Returns boolean

-
- -
    - -
  • -

    Close a connection

    -
    -

    Returns void

-
- -
    - -
  • -

    Create a scalar function

    -
    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      returns: DataType<Type, any>
    • -
    • -
      func: ((...args: any[]) => void)
      -
        -
      • -
          -
        • (...args: any[]): void
        • -
        • -
          -

          Parameters

          -
            -
          • -
            Rest ...args: any[]
          -

          Returns void

    -

    Returns void

-
- -
    - -
  • -

    Get table names

    -
    -
    -

    Parameters

    -
      -
    • -
      query: string
    -

    Returns string[]

-
- -
    - -
  • -

    Insert an arrow table from an ipc stream

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Insert an arrow table

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Inesrt csv file from path

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Insert json file from path

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Create a prepared statement

    -
    -
    -

    Type Parameters

    -
      -
    • -

      T extends {
          [key: string]: arrow.DataType;
      } = any

    -
    -

    Parameters

    -
      -
    • -
      text: string
    -

    Returns PreparedStatement<any>

-
- -
    - -
  • -

    Run a query

    -
    -
    -

    Type Parameters

    -
      -
    • -

      T extends {
          [key: string]: arrow.DataType;
      } = any

    -
    -

    Parameters

    -
      -
    • -
      text: string
    -

    Returns Table<T>

-
- -
    - -
  • -

    Send a query

    -
    -
    -

    Type Parameters

    -
      -
    • -

      T extends {
          [key: string]: arrow.DataType;
      } = any

    -
    -

    Parameters

    -
      -
    • -
      text: string
    -

    Returns Promise<RecordBatchStreamReader<T>>

-
- -
    - -
  • -

    Brave souls may use this function to consume the underlying connection id

    -
    -
    -

    Type Parameters

    -
      -
    • -

      R

    -
    -

    Parameters

    -
    -

    Returns R

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBConnection | DuckDB-WASM

Class DuckDBConnection

A thin helper to bind the connection id and talk record batches

+

Constructors

Methods

  • Create a scalar function

    +

    Parameters

    • name: string
    • returns: DataType<Type, any>
    • func: ((...args) => void)
        • (...args): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns void

  • Send a query

    +

    Type Parameters

    • T extends {
          [key: string]: arrow.DataType;
      } = any

    Parameters

    • text: string
    • allowStreamResult: boolean = false

    Returns Promise<RecordBatchStreamReader<T>>

\ No newline at end of file diff --git a/docs/classes/index.FileStatistics.html b/docs/classes/index.FileStatistics.html index 10e93371b..7c6e524e4 100644 --- a/docs/classes/index.FileStatistics.html +++ b/docs/classes/index.FileStatistics.html @@ -1,184 +1,21 @@ -FileStatistics | DuckDB-WASM
-
- -
-
-
-
- -

Class FileStatistics

-
-

The file block statistics

-
-
-

Hierarchy

-
    -
  • FileStatistics
-
-
-
- -
-
-

Constructors

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      u8array: Uint8Array
    -

    Returns FileStatistics

-
-

Properties

-
- -
blockSize: number
-

The blocks

-
-
- -
blockStats: Uint8Array
-

The blocks

-
-
- -
totalFileReadsAhead: number
-

The file readaheads

-
-
- -
totalFileReadsCached: number
-

The cached file reads

-
-
- -
totalFileReadsCold: number
-

The cold file reads

-
-
- -
totalFileWrites: number
-

The file writes

-
-
- -
totalPageAccesses: number
-

The page accesses

-
-
- -
totalPageLoads: number
-

The page loads

-
-
-

Methods

-
- -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +FileStatistics | DuckDB-WASM

Class FileStatistics

The file block statistics

+

Constructors

Properties

blockSize: number

The blocks

+
blockStats: Uint8Array

The blocks

+
totalFileReadsAhead: number

The file readaheads

+
totalFileReadsCached: number

The cached file reads

+
totalFileReadsCold: number

The cold file reads

+
totalFileWrites: number

The file writes

+
totalPageAccesses: number

The page accesses

+
totalPageLoads: number

The page loads

+

Methods

\ No newline at end of file diff --git a/docs/classes/index.PreparedStatement.html b/docs/classes/index.PreparedStatement.html index 6710bdf3d..2e4ca7bd8 100644 --- a/docs/classes/index.PreparedStatement.html +++ b/docs/classes/index.PreparedStatement.html @@ -1,150 +1,10 @@ -PreparedStatement | DuckDB-WASM
-
- -
-
-
-
- -

Class PreparedStatement<T>

-
-

A thin helper to bind the prepared statement id

-
-
-

Type Parameters

-
    -
  • -

    T extends {
        [key: string]: arrow.DataType;
    } = any

-
-

Hierarchy

-
    -
  • PreparedStatement
-
-
-
- -
-
-

Constructors

-
-
-

Methods

-
-
-

Constructors

-
- -
    - -
  • -

    Constructor

    -
    -
    -

    Type Parameters

    -
      -
    • -

      T extends {
          [key: string]: arrow.DataType;
      } = any

    -
    -

    Parameters

    -
      -
    • -
      bindings: DuckDBBindings
    • -
    • -
      connectionId: number
    • -
    • -
      statementId: number
    -

    Returns PreparedStatement<T>

-
-

Methods

-
- -
    - -
  • -

    Close a prepared statement

    -
    -

    Returns void

-
- -
    - -
  • -

    Run a prepared statement

    -
    -
    -

    Parameters

    -
      -
    • -
      Rest ...params: any[]
    -

    Returns Table<T>

-
- -
    - -
  • -

    Send a prepared statement

    -
    -
    -

    Parameters

    -
      -
    • -
      Rest ...params: any[]
    -

    Returns RecordBatchStreamReader<T>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +PreparedStatement | DuckDB-WASM

Class PreparedStatement<T>

A thin helper to bind the prepared statement id

+

Type Parameters

  • T extends {
        [key: string]: arrow.DataType;
    } = any

Constructors

Methods

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/index.ResultStreamIterator.html b/docs/classes/index.ResultStreamIterator.html index 6e350d559..29897cab2 100644 --- a/docs/classes/index.ResultStreamIterator.html +++ b/docs/classes/index.ResultStreamIterator.html @@ -1,140 +1,9 @@ -ResultStreamIterator | DuckDB-WASM
-
- -
-
-
-
- -

Class ResultStreamIterator

-
-

A result stream iterator

-
-
-

Hierarchy

-
    -
  • ResultStreamIterator
-
-

Implements

-
    -
  • Iterable<Uint8Array>
-
-
-
- -
-
-

Constructors

-
-
-

Properties

-
-
-

Methods

-
-
-

Constructors

-
- -
-
-

Properties

-
- -
_depleted: boolean
-

Reached end of stream?

-
-
- -
_first: boolean
-

First chunk?

-
-
-

Methods

-
- -
-
- -
    - -
  • -

    Returns IteratorResult<Uint8Array, any>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +ResultStreamIterator | DuckDB-WASM

Class ResultStreamIterator

A result stream iterator

+

Implements

  • Iterable<Uint8Array>

Constructors

Properties

Methods

Constructors

Properties

_depleted: boolean

Reached end of stream?

+
_first: boolean

First chunk?

+

Methods

\ No newline at end of file diff --git a/docs/classes/index.VoidLogger.html b/docs/classes/index.VoidLogger.html index b4655fb2a..9d06eb0d6 100644 --- a/docs/classes/index.VoidLogger.html +++ b/docs/classes/index.VoidLogger.html @@ -1,98 +1,3 @@ -VoidLogger | DuckDB-WASM
-
- -
-
-
-
- -

Class VoidLogger

-
-

Hierarchy

-
    -
  • VoidLogger
-
-

Implements

-
-
-
-
- -
-
-

Constructors

-
-
-

Methods

-
log -
-
-

Constructors

-
- -
-
-

Methods

-
- -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +VoidLogger | DuckDB-WASM

Implements

Constructors

Methods

log +

Constructors

Methods

\ No newline at end of file diff --git a/docs/classes/index.WorkerTask.html b/docs/classes/index.WorkerTask.html index 51be191ed..dd862d31d 100644 --- a/docs/classes/index.WorkerTask.html +++ b/docs/classes/index.WorkerTask.html @@ -1,166 +1,7 @@ -WorkerTask | DuckDB-WASM
-
- -
-
-
-
- -

Class WorkerTask<T, D, P>

-
-

Type Parameters

-
    -
  • -

    T

  • -
  • -

    D

  • -
  • -

    P

-
-

Hierarchy

-
    -
  • WorkerTask
-
-
-
- -
-
-

Constructors

-
-
-

Properties

-
-
-

Constructors

-
- -
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      T

    • -
    • -

      D

    • -
    • -

      P

    -
    -

    Parameters

    -
      -
    • -
      type: T
    • -
    • -
      data: D
    -

    Returns WorkerTask<T, D, P>

-
-

Properties

-
- -
data: D
-
- -
promise: Promise<P>
-
- -
promiseRejecter: ((value: any) => void) = ...
-
-

Type declaration

-
    -
  • -
      -
    • (value: any): void
    • -
    • -
      -

      Parameters

      -
        -
      • -
        value: any
      -

      Returns void

-
- -
promiseResolver: ((value: P | PromiseLike<P>) => void) = ...
-
-

Type declaration

-
    -
  • -
      -
    • (value: P | PromiseLike<P>): void
    • -
    • -
      -

      Parameters

      -
        -
      • -
        value: P | PromiseLike<P>
      -

      Returns void

-
- -
type: T
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerTask | DuckDB-WASM

Class WorkerTask<T, D, P>

Type Parameters

  • T
  • D
  • P

Constructors

Properties

data: D
promise: Promise<P>
promiseRejecter: ((value) => void) = ...

Type declaration

    • (value): void
    • Parameters

      • value: any

      Returns void

promiseResolver: ((value) => void) = ...

Type declaration

    • (value): void
    • Parameters

      • value: P | PromiseLike<P>

      Returns void

type: T
\ No newline at end of file diff --git a/docs/enums/index.DuckDBAccessMode.html b/docs/enums/index.DuckDBAccessMode.html new file mode 100644 index 000000000..4ceead234 --- /dev/null +++ b/docs/enums/index.DuckDBAccessMode.html @@ -0,0 +1,5 @@ +DuckDBAccessMode | DuckDB-WASM

Enumeration DuckDBAccessMode

Enumeration Members

Enumeration Members

AUTOMATIC: 1
READ_ONLY: 2
READ_WRITE: 3
UNDEFINED: 0
\ No newline at end of file diff --git a/docs/enums/index.DuckDBDataProtocol.html b/docs/enums/index.DuckDBDataProtocol.html index 885b80497..ae20cd4d5 100644 --- a/docs/enums/index.DuckDBDataProtocol.html +++ b/docs/enums/index.DuckDBDataProtocol.html @@ -1,106 +1,8 @@ -DuckDBDataProtocol | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration DuckDBDataProtocol

-
-

The data protocol

-
-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
BROWSER_FILEREADER: 2
-
- -
BROWSER_FSACCESS: 3
-
- -
BUFFER: 0
-
- -
HTTP: 4
-
- -
NODE_FS: 1
-
- -
S3: 5
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBDataProtocol | DuckDB-WASM

Enumeration DuckDBDataProtocol

The data protocol

+

Enumeration Members

BROWSER_FILEREADER: 2
BROWSER_FSACCESS: 3
BUFFER: 0
HTTP: 4
NODE_FS: 1
S3: 5
\ No newline at end of file diff --git a/docs/enums/index.DuckDBFeature.html b/docs/enums/index.DuckDBFeature.html index 8ea38741f..3ef63ebc3 100644 --- a/docs/enums/index.DuckDBFeature.html +++ b/docs/enums/index.DuckDBFeature.html @@ -1,99 +1,7 @@ -DuckDBFeature | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration DuckDBFeature

-
-

A DuckDB Feature

-
-
-
-
- -
-
-

Enumeration Members

-
- -
EMIT_BIGINT: 16
-
- -
WASM_BULK_MEMORY: 8
-
- -
WASM_EXCEPTIONS: 1
-
- -
WASM_SIMD: 4
-
- -
WASM_THREADS: 2
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBFeature | DuckDB-WASM

Enumeration DuckDBFeature

A DuckDB Feature

+

Enumeration Members

EMIT_BIGINT: 16
WASM_BULK_MEMORY: 8
WASM_EXCEPTIONS: 1
WASM_SIMD: 4
WASM_THREADS: 2
\ No newline at end of file diff --git a/docs/enums/index.FileFlags.html b/docs/enums/index.FileFlags.html index 40f1c6a05..cb2292c49 100644 --- a/docs/enums/index.FileFlags.html +++ b/docs/enums/index.FileFlags.html @@ -1,106 +1,8 @@ -FileFlags | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration FileFlags

-
-

File flags for opening files

-
-
-
-
- -
-
-

Enumeration Members

-
- -
FILE_FLAGS_APPEND: 32
-
- -
FILE_FLAGS_DIRECT_IO: 4
-
- -
FILE_FLAGS_FILE_CREATE: 8
-
- -
FILE_FLAGS_FILE_CREATE_NEW: 16
-
- -
FILE_FLAGS_READ: 1
-
- -
FILE_FLAGS_WRITE: 2
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +FileFlags | DuckDB-WASM

Enumeration FileFlags

File flags for opening files

+

Enumeration Members

FILE_FLAGS_APPEND: 32
FILE_FLAGS_DIRECT_IO: 4
FILE_FLAGS_FILE_CREATE: 8
FILE_FLAGS_FILE_CREATE_NEW: 16
FILE_FLAGS_READ: 1
FILE_FLAGS_WRITE: 2
\ No newline at end of file diff --git a/docs/enums/index.JSONTableShape.html b/docs/enums/index.JSONTableShape.html index 6fcfa8483..6bd629269 100644 --- a/docs/enums/index.JSONTableShape.html +++ b/docs/enums/index.JSONTableShape.html @@ -1,75 +1,3 @@ -JSONTableShape | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration JSONTableShape

-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
COLUMN_OBJECT: "column-object"
-
- -
ROW_ARRAY: "row-array"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +JSONTableShape | DuckDB-WASM

Enumeration JSONTableShape

Enumeration Members

Enumeration Members

COLUMN_OBJECT: "column-object"
ROW_ARRAY: "row-array"
\ No newline at end of file diff --git a/docs/enums/index.LogEvent.html b/docs/enums/index.LogEvent.html index 9e5a70b96..7fbabe5b7 100644 --- a/docs/enums/index.LogEvent.html +++ b/docs/enums/index.LogEvent.html @@ -1,103 +1,7 @@ -LogEvent | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration LogEvent

-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
CAPTURE: 5
-
- -
ERROR: 2
-
- -
NONE: 0
-
- -
OK: 1
-
- -
RUN: 4
-
- -
START: 3
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +LogEvent | DuckDB-WASM

Enumeration LogEvent

Enumeration Members

Enumeration Members

CAPTURE: 5
ERROR: 2
NONE: 0
OK: 1
RUN: 4
START: 3
\ No newline at end of file diff --git a/docs/enums/index.LogLevel.html b/docs/enums/index.LogLevel.html index f0c17b2bd..27c191665 100644 --- a/docs/enums/index.LogLevel.html +++ b/docs/enums/index.LogLevel.html @@ -1,96 +1,6 @@ -LogLevel | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration LogLevel

-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
DEBUG: 1
-
- -
ERROR: 4
-
- -
INFO: 2
-
- -
NONE: 0
-
- -
WARNING: 3
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +LogLevel | DuckDB-WASM

Enumeration LogLevel

Enumeration Members

Enumeration Members

DEBUG: 1
ERROR: 4
INFO: 2
NONE: 0
WARNING: 3
\ No newline at end of file diff --git a/docs/enums/index.LogOrigin.html b/docs/enums/index.LogOrigin.html index 6c49cc10a..e709fafbd 100644 --- a/docs/enums/index.LogOrigin.html +++ b/docs/enums/index.LogOrigin.html @@ -1,96 +1,6 @@ -LogOrigin | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration LogOrigin

-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
ASYNC_DUCKDB: 4
-
- -
BINDINGS: 3
-
- -
NODE_WORKER: 2
-
- -
NONE: 0
-
- -
WEB_WORKER: 1
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +LogOrigin | DuckDB-WASM

Enumeration LogOrigin

Enumeration Members

ASYNC_DUCKDB: 4
BINDINGS: 3
NODE_WORKER: 2
NONE: 0
WEB_WORKER: 1
\ No newline at end of file diff --git a/docs/enums/index.LogTopic.html b/docs/enums/index.LogTopic.html index e31494e7b..f9d5f3816 100644 --- a/docs/enums/index.LogTopic.html +++ b/docs/enums/index.LogTopic.html @@ -1,103 +1,7 @@ -LogTopic | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration LogTopic

-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
CONNECT: 1
-
- -
DISCONNECT: 2
-
- -
INSTANTIATE: 5
-
- -
NONE: 0
-
- -
OPEN: 3
-
- -
QUERY: 4
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +LogTopic | DuckDB-WASM

Enumeration LogTopic

Enumeration Members

Enumeration Members

CONNECT: 1
DISCONNECT: 2
INSTANTIATE: 5
NONE: 0
OPEN: 3
QUERY: 4
\ No newline at end of file diff --git a/docs/enums/index.StatusCode.html b/docs/enums/index.StatusCode.html index 1d4b55c0b..ebf2656c7 100644 --- a/docs/enums/index.StatusCode.html +++ b/docs/enums/index.StatusCode.html @@ -1,68 +1,2 @@ -StatusCode | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration StatusCode

-
-
-
- -
-
-

Enumeration Members

-
-
-

Enumeration Members

-
- -
SUCCESS: 0
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +StatusCode | DuckDB-WASM

Enumeration StatusCode

Enumeration Members

Enumeration Members

SUCCESS: 0
\ No newline at end of file diff --git a/docs/enums/index.TokenType.html b/docs/enums/index.TokenType.html new file mode 100644 index 000000000..0411df82c --- /dev/null +++ b/docs/enums/index.TokenType.html @@ -0,0 +1,7 @@ +TokenType | DuckDB-WASM

Enumeration TokenType

Enumeration Members

COMMENT: 5
IDENTIFIER: 0
KEYWORD: 4
NUMERIC_CONSTANT: 1
OPERATOR: 3
STRING_CONSTANT: 2
\ No newline at end of file diff --git a/docs/enums/index.WorkerRequestType.html b/docs/enums/index.WorkerRequestType.html index 74e7e4d17..7fdf661aa 100644 --- a/docs/enums/index.WorkerRequestType.html +++ b/docs/enums/index.WorkerRequestType.html @@ -1,292 +1,34 @@ -WorkerRequestType | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration WorkerRequestType

-
-
-
- -
-
-

Enumeration Members

-
- -
CANCEL_PENDING_QUERY: "CANCEL_PENDING_QUERY"
-
- -
CLOSE_PREPARED: "CLOSE_PREPARED"
-
- -
COLLECT_FILE_STATISTICS: "COLLECT_FILE_STATISTICS"
-
- -
CONNECT: "CONNECT"
-
- -
COPY_FILE_TO_BUFFER: "COPY_FILE_TO_BUFFER"
-
- -
COPY_FILE_TO_PATH: "COPY_FILE_TO_PATH"
-
- -
CREATE_PREPARED: "CREATE_PREPARED"
-
- -
DISCONNECT: "DISCONNECT"
-
- -
DROP_FILE: "DROP_FILE"
-
- -
DROP_FILES: "DROP_FILES"
-
- -
EXPORT_FILE_STATISTICS: "EXPORT_FILE_STATISTICS"
-
- -
FETCH_QUERY_RESULTS: "FETCH_QUERY_RESULTS"
-
- -
FLUSH_FILES: "FLUSH_FILES"
-
- -
GET_FEATURE_FLAGS: "GET_FEATURE_FLAGS"
-
- -
GET_TABLE_NAMES: "GET_TABLE_NAMES"
-
- -
GET_VERSION: "GET_VERSION"
-
- -
GLOB_FILE_INFOS: "GLOB_FILE_INFOS"
-
- -
INSERT_ARROW_FROM_IPC_STREAM: "INSERT_ARROW_FROM_IPC_STREAM"
-
- -
INSERT_CSV_FROM_PATH: "IMPORT_CSV_FROM_PATH"
-
- -
INSERT_JSON_FROM_PATH: "IMPORT_JSON_FROM_PATH"
-
- -
INSTANTIATE: "INSTANTIATE"
-
- -
OPEN: "OPEN"
-
- -
PING: "PING"
-
- -
POLL_PENDING_QUERY: "POLL_PENDING_QUERY"
-
- -
REGISTER_FILE_BUFFER: "REGISTER_FILE_BUFFER"
-
- -
REGISTER_FILE_HANDLE: "REGISTER_FILE_HANDLE"
-
- -
REGISTER_FILE_URL: "REGISTER_FILE_URL"
-
- -
RESET: "RESET"
-
- -
RUN_PREPARED: "RUN_PREPARED"
-
- -
RUN_QUERY: "RUN_QUERY"
-
- -
SEND_PREPARED: "SEND_PREPARED"
-
- -
START_PENDING_QUERY: "START_PENDING_QUERY"
-
- -
TOKENIZE: "TOKENIZE"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerRequestType | DuckDB-WASM

Enumeration WorkerRequestType

Enumeration Members

CANCEL_PENDING_QUERY: "CANCEL_PENDING_QUERY"
CLOSE_PREPARED: "CLOSE_PREPARED"
COLLECT_FILE_STATISTICS: "COLLECT_FILE_STATISTICS"
CONNECT: "CONNECT"
COPY_FILE_TO_BUFFER: "COPY_FILE_TO_BUFFER"
COPY_FILE_TO_PATH: "COPY_FILE_TO_PATH"
CREATE_PREPARED: "CREATE_PREPARED"
DISCONNECT: "DISCONNECT"
DROP_FILE: "DROP_FILE"
DROP_FILES: "DROP_FILES"
EXPORT_FILE_STATISTICS: "EXPORT_FILE_STATISTICS"
FETCH_QUERY_RESULTS: "FETCH_QUERY_RESULTS"
FLUSH_FILES: "FLUSH_FILES"
GET_FEATURE_FLAGS: "GET_FEATURE_FLAGS"
GET_TABLE_NAMES: "GET_TABLE_NAMES"
GET_VERSION: "GET_VERSION"
GLOB_FILE_INFOS: "GLOB_FILE_INFOS"
INSERT_ARROW_FROM_IPC_STREAM: "INSERT_ARROW_FROM_IPC_STREAM"
INSERT_CSV_FROM_PATH: "IMPORT_CSV_FROM_PATH"
INSERT_JSON_FROM_PATH: "IMPORT_JSON_FROM_PATH"
INSTANTIATE: "INSTANTIATE"
OPEN: "OPEN"
PING: "PING"
POLL_PENDING_QUERY: "POLL_PENDING_QUERY"
REGISTER_FILE_BUFFER: "REGISTER_FILE_BUFFER"
REGISTER_FILE_HANDLE: "REGISTER_FILE_HANDLE"
REGISTER_FILE_URL: "REGISTER_FILE_URL"
RESET: "RESET"
RUN_PREPARED: "RUN_PREPARED"
RUN_QUERY: "RUN_QUERY"
SEND_PREPARED: "SEND_PREPARED"
START_PENDING_QUERY: "START_PENDING_QUERY"
TOKENIZE: "TOKENIZE"
\ No newline at end of file diff --git a/docs/enums/index.WorkerResponseType.html b/docs/enums/index.WorkerResponseType.html index c4e4f96e6..072fbf4c5 100644 --- a/docs/enums/index.WorkerResponseType.html +++ b/docs/enums/index.WorkerResponseType.html @@ -1,208 +1,22 @@ -WorkerResponseType | DuckDB-WASM
-
- -
-
-
-
- -

Enumeration WorkerResponseType

-
-
-
- -
-
-

Enumeration Members

-
- -
CONNECTION_INFO: "CONNECTION_INFO"
-
- -
ERROR: "ERROR"
-
- -
FEATURE_FLAGS: "FEATURE_FLAGS"
-
- -
FILE_BUFFER: "FILE_BUFFER"
-
- -
FILE_INFOS: "FILE_INFOS"
-
- -
FILE_SIZE: "FILE_SIZE"
-
- -
FILE_STATISTICS: "FILE_STATISTICS"
-
- -
INSTANTIATE_PROGRESS: "INSTANTIATE_PROGRESS"
-
- -
LOG: "LOG"
-
- -
OK: "OK"
-
- -
PREPARED_STATEMENT_ID: "PREPARED_STATEMENT_ID"
-
- -
QUERY_PLAN: "QUERY_PLAN"
-
- -
QUERY_RESULT: "QUERY_RESULT"
-
- -
QUERY_RESULT_CHUNK: "QUERY_RESULT_CHUNK"
-
- -
QUERY_RESULT_HEADER: "QUERY_RESULT_HEADER"
-
- -
QUERY_RESULT_HEADER_OR_NULL: "QUERY_RESULT_HEADER_OR_NULL"
-
- -
REGISTERED_FILE: "REGISTERED_FILE"
-
- -
SCRIPT_TOKENS: "SCRIPT_TOKENS"
-
- -
SUCCESS: "SUCCESS"
-
- -
TABLE_NAMES: "TABLE_NAMES"
-
- -
VERSION_STRING: "VERSION_STRING"
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerResponseType | DuckDB-WASM

Enumeration WorkerResponseType

Enumeration Members

CONNECTION_INFO: "CONNECTION_INFO"
ERROR: "ERROR"
FEATURE_FLAGS: "FEATURE_FLAGS"
FILE_BUFFER: "FILE_BUFFER"
FILE_INFOS: "FILE_INFOS"
FILE_SIZE: "FILE_SIZE"
FILE_STATISTICS: "FILE_STATISTICS"
INSTANTIATE_PROGRESS: "INSTANTIATE_PROGRESS"
LOG: "LOG"
OK: "OK"
PREPARED_STATEMENT_ID: "PREPARED_STATEMENT_ID"
QUERY_PLAN: "QUERY_PLAN"
QUERY_RESULT: "QUERY_RESULT"
QUERY_RESULT_CHUNK: "QUERY_RESULT_CHUNK"
QUERY_RESULT_HEADER: "QUERY_RESULT_HEADER"
QUERY_RESULT_HEADER_OR_NULL: "QUERY_RESULT_HEADER_OR_NULL"
REGISTERED_FILE: "REGISTERED_FILE"
SCRIPT_TOKENS: "SCRIPT_TOKENS"
SUCCESS: "SUCCESS"
TABLE_NAMES: "TABLE_NAMES"
VERSION_STRING: "VERSION_STRING"
\ No newline at end of file diff --git a/docs/functions/index.callSRet.html b/docs/functions/index.callSRet.html index a7dc38804..f8d758240 100644 --- a/docs/functions/index.callSRet.html +++ b/docs/functions/index.callSRet.html @@ -1,145 +1,2 @@ -callSRet | DuckDB-WASM
-
- -
-
-
-
- -

Function callSRet

-
-
    - -
  • -

    Call a function with packed response buffer

    -
    -
    -

    Parameters

    -
      -
    • -
      mod: DuckDBModule
    • -
    • -
      funcName: string
    • -
    • -
      argTypes: JSType[]
    • -
    • -
      args: any[]
    -

    Returns [number, number, number]

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +callSRet | DuckDB-WASM

Function callSRet

\ No newline at end of file diff --git a/docs/functions/index.copyBuffer.html b/docs/functions/index.copyBuffer.html index b05b30bdb..44727752e 100644 --- a/docs/functions/index.copyBuffer.html +++ b/docs/functions/index.copyBuffer.html @@ -1,143 +1,2 @@ -copyBuffer | DuckDB-WASM
-
- -
-
-
-
- -

Function copyBuffer

-
-
    - -
  • -

    Copy a buffer

    -
    -
    -

    Parameters

    -
    -

    Returns Uint8Array

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +copyBuffer | DuckDB-WASM

Function copyBuffer

\ No newline at end of file diff --git a/docs/functions/index.createWorker.html b/docs/functions/index.createWorker.html index f5ea40de4..bc0420aba 100644 --- a/docs/functions/index.createWorker.html +++ b/docs/functions/index.createWorker.html @@ -1,137 +1 @@ -createWorker | DuckDB-WASM
-
- -
-
-
-
- -

Function createWorker

-
-
    - -
  • -
    -

    Parameters

    -
      -
    • -
      url: string
    -

    Returns Promise<Worker>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +createWorker | DuckDB-WASM

Function createWorker

\ No newline at end of file diff --git a/docs/functions/index.decodeText.html b/docs/functions/index.decodeText.html index 68ae0633d..ef6d1b8b2 100644 --- a/docs/functions/index.decodeText.html +++ b/docs/functions/index.decodeText.html @@ -1,139 +1,2 @@ -decodeText | DuckDB-WASM
-
- -
-
-
-
- -

Function decodeText

-
-
    - -
  • -

    Helper to decode text

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional input: BufferSource
    -

    Returns string

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +decodeText | DuckDB-WASM

Function decodeText

\ No newline at end of file diff --git a/docs/functions/index.dropResponseBuffers.html b/docs/functions/index.dropResponseBuffers.html index a8b5d1f52..b671aff4c 100644 --- a/docs/functions/index.dropResponseBuffers.html +++ b/docs/functions/index.dropResponseBuffers.html @@ -1,139 +1,2 @@ -dropResponseBuffers | DuckDB-WASM
-
- -
-
-
-
- -

Function dropResponseBuffers

-
-
    - -
  • -

    Drop response buffers

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +dropResponseBuffers | DuckDB-WASM

Function dropResponseBuffers

\ No newline at end of file diff --git a/docs/functions/index.failWith.html b/docs/functions/index.failWith.html index e577f1b0b..d9e103cc4 100644 --- a/docs/functions/index.failWith.html +++ b/docs/functions/index.failWith.html @@ -1,141 +1,2 @@ -failWith | DuckDB-WASM
-
- -
-
-
-
- -

Function failWith

-
-
    - -
  • -

    Copy a buffer

    -
    -
    -

    Parameters

    -
    -

    Returns void

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +failWith | DuckDB-WASM

Function failWith

\ No newline at end of file diff --git a/docs/functions/index.getJsDelivrBundles.html b/docs/functions/index.getJsDelivrBundles.html index 1ad7861a9..35e261db2 100644 --- a/docs/functions/index.getJsDelivrBundles.html +++ b/docs/functions/index.getJsDelivrBundles.html @@ -1,132 +1 @@ -getJsDelivrBundles | DuckDB-WASM
-
- -
-
-
-
- -

Function getJsDelivrBundles

-
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +getJsDelivrBundles | DuckDB-WASM

Function getJsDelivrBundles

\ No newline at end of file diff --git a/docs/functions/index.getLogEventLabel.html b/docs/functions/index.getLogEventLabel.html index 444ec7c85..54e86c4b2 100644 --- a/docs/functions/index.getLogEventLabel.html +++ b/docs/functions/index.getLogEventLabel.html @@ -1,137 +1 @@ -getLogEventLabel | DuckDB-WASM
-
- -
-
-
-
- -

Function getLogEventLabel

-
-
    - -
  • -
    -

    Parameters

    -
    -

    Returns string

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +getLogEventLabel | DuckDB-WASM

Function getLogEventLabel

\ No newline at end of file diff --git a/docs/functions/index.getLogLevelLabel.html b/docs/functions/index.getLogLevelLabel.html index 81666680e..87d1bb0f0 100644 --- a/docs/functions/index.getLogLevelLabel.html +++ b/docs/functions/index.getLogLevelLabel.html @@ -1,137 +1 @@ -getLogLevelLabel | DuckDB-WASM
-
- -
-
-
-
- -

Function getLogLevelLabel

-
-
    - -
  • -
    -

    Parameters

    -
    -

    Returns string

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +getLogLevelLabel | DuckDB-WASM

Function getLogLevelLabel

\ No newline at end of file diff --git a/docs/functions/index.getLogOriginLabel.html b/docs/functions/index.getLogOriginLabel.html index 01c478dd9..1a0c3d296 100644 --- a/docs/functions/index.getLogOriginLabel.html +++ b/docs/functions/index.getLogOriginLabel.html @@ -1,137 +1 @@ -getLogOriginLabel | DuckDB-WASM
-
- -
-
-
-
- -

Function getLogOriginLabel

-
-
    - -
  • -
    -

    Parameters

    -
    -

    Returns string

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +getLogOriginLabel | DuckDB-WASM

Function getLogOriginLabel

\ No newline at end of file diff --git a/docs/functions/index.getLogTopicLabel.html b/docs/functions/index.getLogTopicLabel.html index 0a4efe476..7eb6738b6 100644 --- a/docs/functions/index.getLogTopicLabel.html +++ b/docs/functions/index.getLogTopicLabel.html @@ -1,137 +1 @@ -getLogTopicLabel | DuckDB-WASM
-
- -
-
-
-
- -

Function getLogTopicLabel

-
-
    - -
  • -
    -

    Parameters

    -
    -

    Returns string

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +getLogTopicLabel | DuckDB-WASM

Function getLogTopicLabel

\ No newline at end of file diff --git a/docs/functions/index.getPlatformFeatures.html b/docs/functions/index.getPlatformFeatures.html index d475c717d..2b0b762df 100644 --- a/docs/functions/index.getPlatformFeatures.html +++ b/docs/functions/index.getPlatformFeatures.html @@ -1,132 +1 @@ -getPlatformFeatures | DuckDB-WASM
-
- -
-
-
-
- -

Function getPlatformFeatures

-
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +getPlatformFeatures | DuckDB-WASM

Function getPlatformFeatures

\ No newline at end of file diff --git a/docs/functions/index.isFirefox.html b/docs/functions/index.isFirefox.html index 77758c88d..fab314f5f 100644 --- a/docs/functions/index.isFirefox.html +++ b/docs/functions/index.isFirefox.html @@ -1,132 +1 @@ -isFirefox | DuckDB-WASM
-
- -
-
-
-
- -

Function isFirefox

-
-
    - -
  • -

    Returns boolean

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +isFirefox | DuckDB-WASM

Function isFirefox

\ No newline at end of file diff --git a/docs/functions/index.isNode.html b/docs/functions/index.isNode.html index 3868fc2d0..277bf568e 100644 --- a/docs/functions/index.isNode.html +++ b/docs/functions/index.isNode.html @@ -1,132 +1 @@ -isNode | DuckDB-WASM
-
- -
-
-
-
- -

Function isNode

-
-
    - -
  • -

    Returns boolean

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +isNode | DuckDB-WASM

Function isNode

\ No newline at end of file diff --git a/docs/functions/index.isSafari.html b/docs/functions/index.isSafari.html index 25a0cdaee..6802a14d9 100644 --- a/docs/functions/index.isSafari.html +++ b/docs/functions/index.isSafari.html @@ -1,132 +1 @@ -isSafari | DuckDB-WASM
-
- -
-
-
-
- -

Function isSafari

-
-
    - -
  • -

    Returns boolean

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +isSafari | DuckDB-WASM

Function isSafari

\ No newline at end of file diff --git a/docs/functions/index.readString.html b/docs/functions/index.readString.html index f68e0563f..6decee088 100644 --- a/docs/functions/index.readString.html +++ b/docs/functions/index.readString.html @@ -1,143 +1,2 @@ -readString | DuckDB-WASM
-
- -
-
-
-
- -

Function readString

-
-
    - -
  • -

    Decode a string

    -
    -
    -

    Parameters

    -
    -

    Returns string

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +readString | DuckDB-WASM

Function readString

\ No newline at end of file diff --git a/docs/functions/index.selectBundle.html b/docs/functions/index.selectBundle.html index b08661aca..f465335ca 100644 --- a/docs/functions/index.selectBundle.html +++ b/docs/functions/index.selectBundle.html @@ -1,137 +1 @@ -selectBundle | DuckDB-WASM
-
- -
-
-
-
- -

Function selectBundle

-
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +selectBundle | DuckDB-WASM

Function selectBundle

\ No newline at end of file diff --git a/docs/functions/targets_duckdb_browser_blocking.createDuckDB.html b/docs/functions/targets_duckdb_browser_blocking.createDuckDB.html index 2f481c3fe..546449760 100644 --- a/docs/functions/targets_duckdb_browser_blocking.createDuckDB.html +++ b/docs/functions/targets_duckdb_browser_blocking.createDuckDB.html @@ -1,125 +1 @@ -createDuckDB | DuckDB-WASM
-
- -
-
-
- -
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +createDuckDB | DuckDB-WASM
\ No newline at end of file diff --git a/docs/functions/targets_duckdb_node_blocking.createDuckDB.html b/docs/functions/targets_duckdb_node_blocking.createDuckDB.html index 75a79d0ef..a49648780 100644 --- a/docs/functions/targets_duckdb_node_blocking.createDuckDB.html +++ b/docs/functions/targets_duckdb_node_blocking.createDuckDB.html @@ -1,125 +1 @@ -createDuckDB | DuckDB-WASM
-
- -
-
-
- -
-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +createDuckDB | DuckDB-WASM
\ No newline at end of file diff --git a/docs/hierarchy.html b/docs/hierarchy.html new file mode 100644 index 000000000..4e3baa48c --- /dev/null +++ b/docs/hierarchy.html @@ -0,0 +1 @@ +DuckDB-WASM
\ No newline at end of file diff --git a/docs/index.html b/docs/index.html index fde71d267..2e8217610 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,51 +1,5 @@ -DuckDB-WASM
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDB-WASM
\ No newline at end of file diff --git a/docs/interfaces/index.ArrowInsertOptions.html b/docs/interfaces/index.ArrowInsertOptions.html index 6eb33f563..6ea803d2a 100644 --- a/docs/interfaces/index.ArrowInsertOptions.html +++ b/docs/interfaces/index.ArrowInsertOptions.html @@ -1,86 +1,4 @@ -ArrowInsertOptions | DuckDB-WASM
-
- -
-
-
-
- -

Interface ArrowInsertOptions

-
-

Hierarchy

-
    -
  • ArrowInsertOptions
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
create?: boolean
-
- -
name: string
-
- -
schema?: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +ArrowInsertOptions | DuckDB-WASM

Interface ArrowInsertOptions

interface ArrowInsertOptions {
    create?: boolean;
    name: string;
    schema?: string;
}

Properties

Properties

create?: boolean
name: string
schema?: string
\ No newline at end of file diff --git a/docs/interfaces/index.AsyncDuckDBBindings.html b/docs/interfaces/index.AsyncDuckDBBindings.html index 9b4ea58fa..9f3a725b6 100644 --- a/docs/interfaces/index.AsyncDuckDBBindings.html +++ b/docs/interfaces/index.AsyncDuckDBBindings.html @@ -1,403 +1,21 @@ -AsyncDuckDBBindings | DuckDB-WASM
-
- -
-
-
-
- -

Interface AsyncDuckDBBindings

-
-

An interface for the async DuckDB bindings

-
-
-

Hierarchy

-
    -
  • AsyncDuckDBBindings
-
-

Implemented by

-
-
-
-
- -
-
-

Properties

-
- -
logger: Logger
-
-

Methods

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Promise<boolean>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      out: string
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Promise<number>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Promise<null | Uint8Array>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      buffer: Uint8Array
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      HandleType

    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      handle: HandleType
    • -
    • -
      protocol: DuckDBDataProtocol
    • -
    • -
      directIO: boolean
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns Promise<void>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    • -
    • -
      params: any[]
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    • -
    • -
      params: any[]
    -

    Returns Promise<Uint8Array>

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Promise<null | Uint8Array>

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +AsyncDuckDBBindings | DuckDB-WASM

Interface AsyncDuckDBBindings

An interface for the async DuckDB bindings

+
interface AsyncDuckDBBindings {
    logger: Logger;
    cancelPendingQuery(conn): Promise<boolean>;
    closePrepared(conn, statement): Promise<void>;
    copyFileToBuffer(name): Promise<Uint8Array>;
    copyFileToPath(name, out): Promise<void>;
    createPrepared(conn, text): Promise<number>;
    disconnect(conn): Promise<void>;
    fetchQueryResults(conn): Promise<Uint8Array>;
    insertArrowFromIPCStream(conn, buffer, options?): Promise<void>;
    insertCSVFromPath(conn, path, options): Promise<void>;
    insertJSONFromPath(conn, path, options): Promise<void>;
    pollPendingQuery(conn): Promise<null | Uint8Array>;
    registerFileBuffer(name, buffer): Promise<void>;
    registerFileHandle<HandleType>(name, handle, protocol, directIO): Promise<void>;
    registerFileURL(name, url, proto, directIO): Promise<void>;
    runPrepared(conn, statement, params): Promise<Uint8Array>;
    runQuery(conn, text): Promise<Uint8Array>;
    sendPrepared(conn, statement, params): Promise<Uint8Array>;
    startPendingQuery(conn, text, allowStreamResult): Promise<null | Uint8Array>;
}

Implemented by

Properties

logger: Logger

Methods

\ No newline at end of file diff --git a/docs/interfaces/index.CSVInsertOptions.html b/docs/interfaces/index.CSVInsertOptions.html index 24e5c3261..4b8c9141e 100644 --- a/docs/interfaces/index.CSVInsertOptions.html +++ b/docs/interfaces/index.CSVInsertOptions.html @@ -1,161 +1,14 @@ -CSVInsertOptions | DuckDB-WASM
-
- -
-
-
-
- -

Interface CSVInsertOptions

-
-

Hierarchy

-
    -
  • CSVInsertOptions
-
-
-
- -
-
-

Properties

-
- -
columns?: {
    [key: string]: arrow.DataType;
}
-
-

Type declaration

-
    -
  • -
    [key: string]: arrow.DataType
-
- -
columnsFlat?: SQLField[]
-
- -
create?: boolean
-
- -
dateFormat?: string
-
- -
delimiter?: string
-
- -
detect?: boolean
-
- -
escape?: string
-
- -
header?: boolean
-
- -
name: string
-
- -
quote?: string
-
- -
schema?: string
-
- -
skip?: number
-
- -
timestampFormat?: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +CSVInsertOptions | DuckDB-WASM

Interface CSVInsertOptions

interface CSVInsertOptions {
    columns?: {
        [key: string]: arrow.DataType;
    };
    columnsFlat?: SQLField[];
    create?: boolean;
    dateFormat?: string;
    delimiter?: string;
    detect?: boolean;
    escape?: string;
    header?: boolean;
    name: string;
    quote?: string;
    schema?: string;
    skip?: number;
    timestampFormat?: string;
}

Properties

columns?: {
    [key: string]: arrow.DataType;
}

Type declaration

  • [key: string]: arrow.DataType
columnsFlat?: SQLField[]
create?: boolean
dateFormat?: string
delimiter?: string
detect?: boolean
escape?: string
header?: boolean
name: string
quote?: string
schema?: string
skip?: number
timestampFormat?: string
\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBBindings.html b/docs/interfaces/index.DuckDBBindings.html index aaba760d6..aaeda43ef 100644 --- a/docs/interfaces/index.DuckDBBindings.html +++ b/docs/interfaces/index.DuckDBBindings.html @@ -1,632 +1,35 @@ -DuckDBBindings | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBBindings

-
-

Hierarchy

-
    -
  • DuckDBBindings
-
-

Implemented by

-
-
-
-
- -
-
-

Methods

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns boolean

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      file: string
    • -
    • -
      enable: boolean
    -

    Returns void

-
- -
-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns Uint8Array

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      path: string
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns number

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      name: string
    • -
    • -
      returns: DataType<Type, any>
    • -
    • -
      func: ((...args: any[]) => void)
      -
        -
      • -
          -
        • (...args: any[]): void
        • -
        • -
          -

          Parameters

          -
            -
          • -
            Rest ...args: any[]
          -

          Returns void

    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      name: string
    -

    Returns void

-
- -
    - -
  • -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      file: string
    -

    Returns FileStatistics

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns Uint8Array

-
- -
    - -
  • -

    Returns void

-
- -
    - -
  • -

    Returns number

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns string[]

-
- -
    - -
  • -

    Returns string

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      path: string
    -

    Returns WebFile[]

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    -

    Returns null | Uint8Array

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      buffer: Uint8Array
    -

    Returns void

-
- -
    - -
  • -
    -

    Type Parameters

    -
      -
    • -

      HandleType

    -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      handle: HandleType
    • -
    • -
      protocol: DuckDBDataProtocol
    • -
    • -
      directIO: boolean
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      name: string
    • -
    • -
      text: string
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    • -
    • -
      params: any[]
    -

    Returns Uint8Array

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns Uint8Array

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      statement: number
    • -
    • -
      params: any[]
    -

    Returns Uint8Array

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      conn: number
    • -
    • -
      text: string
    -

    Returns null | Uint8Array

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      text: string
    -

    Returns ScriptTokens

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBBindings | DuckDB-WASM

Interface DuckDBBindings

interface DuckDBBindings {
    cancelPendingQuery(conn): boolean;
    closePrepared(conn, statement): void;
    collectFileStatistics(file, enable): void;
    connect(): DuckDBConnection;
    copyFileToBuffer(name): Uint8Array;
    copyFileToPath(name, path): void;
    createPrepared(conn, text): number;
    createScalarFunction(conn, name, returns, func): void;
    disconnect(conn): void;
    dropFile(name): void;
    dropFiles(): void;
    exportFileStatistics(file): FileStatistics;
    fetchQueryResults(conn): Uint8Array;
    flushFiles(): void;
    getFeatureFlags(): number;
    getTableNames(conn, text): string[];
    getVersion(): string;
    globFiles(path): WebFile[];
    insertArrowFromIPCStream(conn, buffer, options?): void;
    insertCSVFromPath(conn, path, options): void;
    insertJSONFromPath(conn, path, options): void;
    instantiate(onProgress): Promise<DuckDBBindings>;
    open(config): void;
    pollPendingQuery(conn): null | Uint8Array;
    registerFileBuffer(name, buffer): void;
    registerFileHandle<HandleType>(name, handle, protocol, directIO): void;
    registerFileText(name, text): void;
    registerFileURL(name, url, proto, directIO): void;
    reset(): void;
    runPrepared(conn, statement, params): Uint8Array;
    runQuery(conn, text): Uint8Array;
    sendPrepared(conn, statement, params): Uint8Array;
    startPendingQuery(conn, text, allowStreamResult): null | Uint8Array;
    tokenize(text): ScriptTokens;
}

Implemented by

Methods

\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBBundle.html b/docs/interfaces/index.DuckDBBundle.html index 60255ee9a..732ca3aa2 100644 --- a/docs/interfaces/index.DuckDBBundle.html +++ b/docs/interfaces/index.DuckDBBundle.html @@ -1,86 +1,4 @@ -DuckDBBundle | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBBundle

-
-

Hierarchy

-
    -
  • DuckDBBundle
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
mainModule: string
-
- -
mainWorker: null | string
-
- -
pthreadWorker: null | string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBBundle | DuckDB-WASM

Interface DuckDBBundle

interface DuckDBBundle {
    mainModule: string;
    mainWorker: null | string;
    pthreadWorker: null | string;
}

Properties

mainModule: string
mainWorker: null | string
pthreadWorker: null | string
\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBBundles.html b/docs/interfaces/index.DuckDBBundles.html index 330d25af5..95ed66241 100644 --- a/docs/interfaces/index.DuckDBBundles.html +++ b/docs/interfaces/index.DuckDBBundles.html @@ -1,109 +1,10 @@ -DuckDBBundles | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBBundles

-
-

Hierarchy

-
    -
  • DuckDBBundles
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
coi?: {
    mainModule: string;
    mainWorker: string;
    pthreadWorker: string;
}
-
-

Type declaration

-
    -
  • -
    mainModule: string
  • -
  • -
    mainWorker: string
  • -
  • -
    pthreadWorker: string
-
- -
eh?: {
    mainModule: string;
    mainWorker: string;
}
-
-

Type declaration

-
    -
  • -
    mainModule: string
  • -
  • -
    mainWorker: string
-
- -
mvp: {
    mainModule: string;
    mainWorker: string;
}
-
-

Type declaration

-
    -
  • -
    mainModule: string
  • -
  • -
    mainWorker: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBBundles | DuckDB-WASM

Interface DuckDBBundles

Bundles have different characteristics:

+
    +
  • MVP: minimum viable product (uses features from first stable version of WebAssembly standard)
  • +
  • EH: exception handling
  • +
  • COI: cross origin isolation
  • +
+
interface DuckDBBundles {
    coi?: {
        mainModule: string;
        mainWorker: string;
        pthreadWorker: string;
    };
    eh?: {
        mainModule: string;
        mainWorker: string;
    };
    mvp: {
        mainModule: string;
        mainWorker: string;
    };
}

Properties

Properties

coi?: {
    mainModule: string;
    mainWorker: string;
    pthreadWorker: string;
}

Type declaration

  • mainModule: string
  • mainWorker: string
  • pthreadWorker: string
eh?: {
    mainModule: string;
    mainWorker: string;
}

Type declaration

  • mainModule: string
  • mainWorker: string
mvp: {
    mainModule: string;
    mainWorker: string;
}

Type declaration

  • mainModule: string
  • mainWorker: string
\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBConfig.html b/docs/interfaces/index.DuckDBConfig.html index 7a10509b0..9b68ec5cd 100644 --- a/docs/interfaces/index.DuckDBConfig.html +++ b/docs/interfaces/index.DuckDBConfig.html @@ -1,102 +1,16 @@ -DuckDBConfig | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBConfig

-
-

Hierarchy

-
    -
  • DuckDBConfig
-
-
-
- -
-
-

Properties

-
- - -

The filesystem config

-
-
- -
maximumThreads?: number
-

The maximum number of threads. +DuckDBConfig | DuckDB-WASM

Interface DuckDBConfig

interface DuckDBConfig {
    accessMode?: DuckDBAccessMode;
    allowUnsignedExtensions?: boolean;
    customUserAgent?: string;
    filesystem?: DuckDBFilesystemConfig;
    maximumThreads?: number;
    path?: string;
    query?: DuckDBQueryConfig;
}

Properties

accessMode?: DuckDBAccessMode

The access mode

+
allowUnsignedExtensions?: boolean

Whether to allow unsigned extensions

+
customUserAgent?: string

Custom user agent string

+

The filesystem config

+
maximumThreads?: number

The maximum number of threads. Note that this will only work with cross-origin isolated sites since it requires SharedArrayBuffers.

-
-
- -
path?: string
-

The database path

-
-
- - -

The query config

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +
path?: string

The database path

+

The query config

+
\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBFileInfo.html b/docs/interfaces/index.DuckDBFileInfo.html index 5ca337c68..28d04498b 100644 --- a/docs/interfaces/index.DuckDBFileInfo.html +++ b/docs/interfaces/index.DuckDBFileInfo.html @@ -1,117 +1,10 @@ -DuckDBFileInfo | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBFileInfo

-
-

An info for a file registered with DuckDB

-
-
-

Hierarchy

-
    -
  • DuckDBFileInfo
-
-
-
- -
-
-

Properties

-
- -
allowFullHttpReads?: boolean
-
- -
cacheEpoch: number
-
- -
dataProtocol: DuckDBDataProtocol
-
- -
dataUrl: null | string
-
- -
fileId: number
-
- -
fileName: string
-
- -
s3Config?: S3Config
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBFileInfo | DuckDB-WASM

Interface DuckDBFileInfo

An info for a file registered with DuckDB

+
interface DuckDBFileInfo {
    allowFullHttpReads?: boolean;
    cacheEpoch: number;
    dataProtocol: DuckDBDataProtocol;
    dataUrl: null | string;
    fileId: number;
    fileName: string;
    reliableHeadRequests?: boolean;
    s3Config?: S3Config;
}

Properties

allowFullHttpReads?: boolean
cacheEpoch: number
dataProtocol: DuckDBDataProtocol
dataUrl: null | string
fileId: number
fileName: string
reliableHeadRequests?: boolean
s3Config?: S3Config
\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBFilesystemConfig.html b/docs/interfaces/index.DuckDBFilesystemConfig.html index 9d39f83bf..f50735ae6 100644 --- a/docs/interfaces/index.DuckDBFilesystemConfig.html +++ b/docs/interfaces/index.DuckDBFilesystemConfig.html @@ -1,74 +1,4 @@ -DuckDBFilesystemConfig | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBFilesystemConfig

-
-

Hierarchy

-
    -
  • DuckDBFilesystemConfig
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
allowFullHTTPReads?: boolean
-

Allow falling back to full HTTP reads if the server does not support range requests.

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBFilesystemConfig | DuckDB-WASM

Interface DuckDBFilesystemConfig

interface DuckDBFilesystemConfig {
    allowFullHTTPReads?: boolean;
    reliableHeadRequests?: boolean;
}

Properties

allowFullHTTPReads?: boolean
reliableHeadRequests?: boolean

Allow falling back to full HTTP reads if the server does not support range requests.

+
\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBGlobalFileInfo.html b/docs/interfaces/index.DuckDBGlobalFileInfo.html index 7a162be0e..4d4fa9313 100644 --- a/docs/interfaces/index.DuckDBGlobalFileInfo.html +++ b/docs/interfaces/index.DuckDBGlobalFileInfo.html @@ -1,89 +1,6 @@ -DuckDBGlobalFileInfo | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBGlobalFileInfo

-
-

Global info for all files registered with DuckDB

-
-
-

Hierarchy

-
    -
  • DuckDBGlobalFileInfo
-
-
-
- -
-
-

Properties

-
- -
allowFullHttpReads?: boolean
-
- -
cacheEpoch: number
-
- -
s3Config?: S3Config
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBGlobalFileInfo | DuckDB-WASM

Interface DuckDBGlobalFileInfo

Global info for all files registered with DuckDB

+
interface DuckDBGlobalFileInfo {
    allowFullHttpReads?: boolean;
    cacheEpoch: number;
    reliableHeadRequests?: boolean;
    s3Config?: S3Config;
}

Properties

allowFullHttpReads?: boolean
cacheEpoch: number
reliableHeadRequests?: boolean
s3Config?: S3Config
\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBModule.html b/docs/interfaces/index.DuckDBModule.html index 0fdfd186a..ad0e053f2 100644 --- a/docs/interfaces/index.DuckDBModule.html +++ b/docs/interfaces/index.DuckDBModule.html @@ -1,693 +1,51 @@ -DuckDBModule | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBModule

-
-

Hierarchy

-
    -
  • EmscriptenModule -
      -
    • DuckDBModule
-
-
-
- -
-
-

Properties

-
- -
FAST_MEMORY: number
-
- -
FHEAP: Float64Array
-
- -
HEAP: Int32Array
-
- -
HEAP16: Int16Array
-
- -
HEAP32: Int32Array
-
- -
HEAP8: Int8Array
-
- -
HEAPF32: Float32Array
-
- -
HEAPF64: Float64Array
-
- -
HEAPU16: Uint16Array
-
- -
HEAPU32: Uint32Array
-
- -
HEAPU8: Uint8Array
-
- -
IHEAP: Int32Array
-
- -
PThread: PThread
-
- -
TOTAL_MEMORY: number
-
- -
TOTAL_STACK: number
-
- -
arguments: string[]
-
- -
ccall: (<I, R>(ident: string, returnType: R, argTypes: I, args: Extract<{ [ P in string | number | symbol]: StringToType<I[P]> }, any[]>, opts?: CCallOpts) => ReturnToType<R>)
-
-

Type declaration

-
    -
  • -
      -
    • <I, R>(ident: string, returnType: R, argTypes: I, args: Extract<{ [ P in string | number | symbol]: StringToType<I[P]> }, any[]>, opts?: CCallOpts): ReturnToType<R>
    • -
    • -
      -

      Type Parameters

      -
        -
      • -

        I extends (null | JSType)[] | []

      • -
      • -

        R extends null | JSType

      -
      -

      Parameters

      -
        -
      • -
        ident: string
      • -
      • -
        returnType: R
      • -
      • -
        argTypes: I
      • -
      • -
        args: Extract<{ [ P in string | number | symbol]: StringToType<I[P]> }, any[]>
      • -
      • -
        Optional opts: CCallOpts
      -

      Returns ReturnToType<R>

-
- -
environment: EnvironmentType
-
- -
filePackagePrefixURL: string
-
- -
logReadFiles: boolean
-
- -
noExitRuntime: boolean
-
- -
noInitialRun: boolean
-
- -
onAbort: ((what: any) => void)
-
-

Type declaration

-
    -
  • -
      -
    • (what: any): void
    • -
    • -
      -

      Parameters

      -
        -
      • -
        what: any
      -

      Returns void

-
- -
onRuntimeInitialized: (() => void)
-
-

Type declaration

-
    -
  • -
      -
    • (): void
    • -
    • -

      Returns void

-
- -
postRun: (() => void)[]
-
- -
preInit: (() => void)[]
-
- -
preRun: (() => void)[]
-
- -
preinitializedWebGLContext: WebGLRenderingContext
-
- -
preloadedAudios: any
-
- -
preloadedImages: any
-
- -
stackAlloc: ((size: number) => number)
-
-

Type declaration

-
    -
  • -
      -
    • (size: number): number
    • -
    • -
      -

      Parameters

      -
        -
      • -
        size: number
      -

      Returns number

-
- -
stackRestore: ((ptr: number) => void)
-
-

Type declaration

-
    -
  • -
      -
    • (ptr: number): void
    • -
    • -
      -

      Parameters

      -
        -
      • -
        ptr: number
      -

      Returns void

-
- -
stackSave: (() => number)
-
-

Type declaration

-
    -
  • -
      -
    • (): number
    • -
    • -

      Returns number

-
- -
wasmBinary: ArrayBuffer
-
-

Methods

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      ptr: number
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      size: number
    -

    Returns number

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      cb: (() => any)
      -
        -
      • -
          -
        • (): any
        • -
        • -

          Returns any

    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      cb: (() => any)
      -
        -
      • -
          -
        • (): any
        • -
        • -

          Returns any

    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      cb: (() => any)
      -
        -
      • -
          -
        • (): any
        • -
        • -

          Returns any

    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      cb: (() => any)
      -
        -
      • -
          -
        • (): any
        • -
        • -

          Returns any

    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      cb: (() => any)
      -
        -
      • -
          -
        • (): any
        • -
        • -

          Returns any

    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      object: object
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      remotePackageName: string
    • -
    • -
      remotePackageSize: number
    -

    Returns ArrayBuffer

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      imports: WebAssemblyImports
    • -
    • -
      successCallback: ((module: Module) => void)
      -
        -
      • -
          -
        • (module: Module): void
        • -
        • -
          -

          Parameters

          -
            -
          • -
            module: Module
          -

          Returns void

    -

    Returns WebAssemblyExports

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      url: string
    • -
    • -
      scriptDirectory: string
    -

    Returns string

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      event: MessageEvent<any>
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      str: string
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      str: string
    -

    Returns void

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBModule | DuckDB-WASM

Interface DuckDBModule

interface DuckDBModule {
    FAST_MEMORY: number;
    FHEAP: Float64Array;
    HEAP: Int32Array;
    HEAP16: Int16Array;
    HEAP32: Int32Array;
    HEAP64: BigInt64Array;
    HEAP8: Int8Array;
    HEAPF32: Float32Array;
    HEAPF64: Float64Array;
    HEAPU16: Uint16Array;
    HEAPU32: Uint32Array;
    HEAPU64: BigUint64Array;
    HEAPU8: Uint8Array;
    IHEAP: Int32Array;
    PThread: PThread;
    TOTAL_MEMORY: number;
    TOTAL_STACK: number;
    arguments: string[];
    ccall: (<I, R>(ident, returnType, argTypes, args, opts?) => ReturnToType<R>);
    environment: EnvironmentType;
    filePackagePrefixURL: string;
    logReadFiles: boolean;
    noExitRuntime: boolean;
    noInitialRun: boolean;
    onAbort: ((what) => void);
    onRuntimeInitialized: (() => void);
    postRun: (() => void)[];
    preInit: (() => void)[];
    preRun: (() => void)[];
    preinitializedWebGLContext: WebGLRenderingContext;
    preloadedAudios: any;
    preloadedImages: any;
    stackAlloc: ((size) => number);
    stackRestore: ((ptr) => void);
    stackSave: (() => number);
    wasmBinary: ArrayBuffer;
    _free(ptr): void;
    _malloc(size): number;
    addOnExit(cb): void;
    addOnInit(cb): void;
    addOnPostRun(cb): void;
    addOnPreMain(cb): void;
    addOnPreRun(cb): void;
    destroy(object): void;
    getPreloadedPackage(remotePackageName, remotePackageSize): ArrayBuffer;
    instantiateWasm(imports, successCallback): WebAssemblyExports;
    locateFile(url, scriptDirectory): string;
    onCustomMessage(event): void;
    print(str): void;
    printErr(str): void;
}

Hierarchy

  • EmscriptenModule
    • DuckDBModule

Properties

FAST_MEMORY: number
FHEAP: Float64Array
HEAP: Int32Array
HEAP16: Int16Array
HEAP32: Int32Array
HEAP64: BigInt64Array
HEAP8: Int8Array
HEAPF32: Float32Array
HEAPF64: Float64Array
HEAPU16: Uint16Array
HEAPU32: Uint32Array
HEAPU64: BigUint64Array
HEAPU8: Uint8Array
IHEAP: Int32Array
PThread: PThread
TOTAL_MEMORY: number
TOTAL_STACK: number
arguments: string[]
ccall: (<I, R>(ident, returnType, argTypes, args, opts?) => ReturnToType<R>)

Type declaration

    • <I, R>(ident, returnType, argTypes, args, opts?): ReturnToType<R>
    • Type Parameters

      • I extends (null | JSType)[] | []
      • R extends null | JSType

      Parameters

      • ident: string
      • returnType: R
      • argTypes: I
      • args: Extract<{
            [P in string | number | symbol]: StringToType<I[P<P>]>
        }, any[]>
      • Optional opts: CCallOpts

      Returns ReturnToType<R>

environment: EnvironmentType
filePackagePrefixURL: string
logReadFiles: boolean
noExitRuntime: boolean
noInitialRun: boolean
onAbort: ((what) => void)

Type declaration

    • (what): void
    • Parameters

      • what: any

      Returns void

onRuntimeInitialized: (() => void)

Type declaration

    • (): void
    • Returns void

postRun: (() => void)[]

Type declaration

    • (): void
    • Returns void

preInit: (() => void)[]

Type declaration

    • (): void
    • Returns void

preRun: (() => void)[]

Type declaration

    • (): void
    • Returns void

preinitializedWebGLContext: WebGLRenderingContext
preloadedAudios: any
preloadedImages: any
stackAlloc: ((size) => number)

Type declaration

    • (size): number
    • Parameters

      • size: number

      Returns number

stackRestore: ((ptr) => void)

Type declaration

    • (ptr): void
    • Parameters

      • ptr: number

      Returns void

stackSave: (() => number)

Type declaration

    • (): number
    • Returns number

wasmBinary: ArrayBuffer

Methods

  • Parameters

    • ptr: number

    Returns void

  • Parameters

    • size: number

    Returns number

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • cb: (() => any)
        • (): any
        • Returns any

    Returns void

  • Parameters

    • object: object

    Returns void

  • Parameters

    • remotePackageName: string
    • remotePackageSize: number

    Returns ArrayBuffer

  • Parameters

    • imports: WebAssemblyImports
    • successCallback: ((module) => void)
        • (module): void
        • Parameters

          • module: Module

          Returns void

    Returns WebAssemblyExports

  • Parameters

    • url: string
    • scriptDirectory: string

    Returns string

  • Parameters

    • event: MessageEvent<any>

    Returns void

  • Parameters

    • str: string

    Returns void

  • Parameters

    • str: string

    Returns void

\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBQueryConfig.html b/docs/interfaces/index.DuckDBQueryConfig.html index 9c0443dce..f1b5d3b0f 100644 --- a/docs/interfaces/index.DuckDBQueryConfig.html +++ b/docs/interfaces/index.DuckDBQueryConfig.html @@ -1,110 +1,11 @@ -DuckDBQueryConfig | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBQueryConfig

-
-

Hierarchy

-
    -
  • DuckDBQueryConfig
-
-
-
- -
-
-

Properties

-
- -
castBigIntToDouble?: boolean
-

Cast BigInt to Double?

-
-
- -
castDecimalToDouble?: boolean
-

Cast Decimal to Double?

-
-
- -
castDurationToTime64?: boolean
-

Cast Timestamp to Date64?

-
-
- -
castTimestampToDate?: boolean
-

Cast Timestamp to Date64?

-
-
- -
queryPollingInterval?: number
-

The polling interval for queries

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBQueryConfig | DuckDB-WASM

Interface DuckDBQueryConfig

interface DuckDBQueryConfig {
    castBigIntToDouble?: boolean;
    castDecimalToDouble?: boolean;
    castDurationToTime64?: boolean;
    castTimestampToDate?: boolean;
    queryPollingInterval?: number;
}

Properties

castBigIntToDouble?: boolean

Cast BigInt to Double?

+
castDecimalToDouble?: boolean

Cast Decimal to Double?

+
castDurationToTime64?: boolean

Cast Timestamp to Date64?

+
castTimestampToDate?: boolean

Cast Timestamp to Date64?

+
queryPollingInterval?: number

The polling interval for queries

+
\ No newline at end of file diff --git a/docs/interfaces/index.DuckDBRuntime.html b/docs/interfaces/index.DuckDBRuntime.html index 492bc51fb..ec88a7660 100644 --- a/docs/interfaces/index.DuckDBRuntime.html +++ b/docs/interfaces/index.DuckDBRuntime.html @@ -1,437 +1,22 @@ -DuckDBRuntime | DuckDB-WASM
-
- -
-
-
-
- -

Interface DuckDBRuntime

-
-

The duckdb runtime

-
-
-

Hierarchy

-
    -
  • DuckDBRuntime
-
-
-
- -
-
-

Properties

-
- -
_files?: Map<string, any>
-
- -
_udfFunctions: Map<number, UDFFunction>
-
-

Methods

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      mod: DuckDBModule
    • -
    • -
      response: number
    • -
    • -
      funcId: number
    • -
    • -
      descPtr: number
    • -
    • -
      descSize: number
    • -
    • -
      ptrsPtr: number
    • -
    • -
      ptrsSize: number
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns boolean

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns boolean

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns number

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns number

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns boolean

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      mod: DuckDBModule
    • -
    • -
      fromPtr: number
    • -
    • -
      fromLen: number
    • -
    • -
      toPtr: number
    • -
    • -
      toLen: number
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      mod: DuckDBModule
    • -
    • -
      fileId: number
    • -
    • -
      buffer: number
    • -
    • -
      bytes: number
    • -
    • -
      location: number
    -

    Returns number

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns boolean

-
- -
    - -
  • -
    -

    Parameters

    -
    -

    Returns void

-
- -
    - -
  • -
    -

    Parameters

    -
      -
    • -
      mod: DuckDBModule
    • -
    • -
      fileId: number
    • -
    • -
      buffer: number
    • -
    • -
      bytes: number
    • -
    • -
      location: number
    -

    Returns number

-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DuckDBRuntime | DuckDB-WASM

Interface DuckDBRuntime

The duckdb runtime

+
interface DuckDBRuntime {
    _files?: Map<string, any>;
    _udfFunctions: Map<number, UDFFunction>;
    callScalarUDF(mod, response, funcId, descPtr, descSize, ptrsPtr, ptrsSize): void;
    checkDirectory(mod, pathPtr, pathLen): boolean;
    checkFile(mod, pathPtr, pathLen): boolean;
    closeFile(mod, fileId): void;
    createDirectory(mod, pathPtr, pathLen): void;
    getDefaultDataProtocol(mod): number;
    getLastFileModificationTime(mod, fileId): number;
    glob(mod, pathPtr, pathLen): void;
    listDirectoryEntries(mod, pathPtr, pathLen): boolean;
    moveFile(mod, fromPtr, fromLen, toPtr, toLen): void;
    openFile(mod, fileId, flags): void;
    readFile(mod, fileId, buffer, bytes, location): number;
    removeDirectory(mod, pathPtr, pathLen): void;
    removeFile(mod, pathPtr, pathLen): void;
    syncFile(mod, fileId): void;
    testPlatformFeature(mod, feature): boolean;
    truncateFile(mod, fileId, newSize): void;
    writeFile(mod, fileId, buffer, bytes, location): number;
}

Properties

_files?: Map<string, any>
_udfFunctions: Map<number, UDFFunction>

Methods

\ No newline at end of file diff --git a/docs/interfaces/index.FileBlockStatistics.html b/docs/interfaces/index.FileBlockStatistics.html index 1660539bd..e0e2b6f2d 100644 --- a/docs/interfaces/index.FileBlockStatistics.html +++ b/docs/interfaces/index.FileBlockStatistics.html @@ -1,119 +1,13 @@ -FileBlockStatistics | DuckDB-WASM
-
- -
-
-
-
- -

Interface FileBlockStatistics

-
-

Hierarchy

-
    -
  • FileBlockStatistics
-
-
-
- -
-
-

Properties

-
- -
file_reads_ahead: number
-

The file reads aheads

-
-
- -
file_reads_cached: number
-

The file reads cached

-
-
- -
file_reads_cold: number
-

The file reads cold

-
-
- -
file_writes: number
-

The file writes

-
-
- -
page_accesses: number
-

The page accesses

-
-
- -
page_loads: number
-

The page loads

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +FileBlockStatistics | DuckDB-WASM

Interface FileBlockStatistics

interface FileBlockStatistics {
    file_reads_ahead: number;
    file_reads_cached: number;
    file_reads_cold: number;
    file_writes: number;
    page_accesses: number;
    page_loads: number;
}

Properties

file_reads_ahead: number

The file reads aheads

+
file_reads_cached: number

The file reads cached

+
file_reads_cold: number

The file reads cold

+
file_writes: number

The file writes

+
page_accesses: number

The page accesses

+
page_loads: number

The page loads

+
\ No newline at end of file diff --git a/docs/interfaces/index.InstantiationProgress.html b/docs/interfaces/index.InstantiationProgress.html index 5b5b2c2ab..6126303ac 100644 --- a/docs/interfaces/index.InstantiationProgress.html +++ b/docs/interfaces/index.InstantiationProgress.html @@ -1,96 +1,6 @@ -InstantiationProgress | DuckDB-WASM
-
- -
-
-
-
- -

Interface InstantiationProgress

-
-

An instantiation progress

-
-
-

Hierarchy

-
    -
  • InstantiationProgress
-
-
-
- -
-
-

Properties

-
- -
bytesLoaded: number
-
- -
bytesTotal: number
-
- -
startedAt: Date
-
- -
updatedAt: Date
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +InstantiationProgress | DuckDB-WASM

Interface InstantiationProgress

An instantiation progress

+
interface InstantiationProgress {
    bytesLoaded: number;
    bytesTotal: number;
    startedAt: Date;
    updatedAt: Date;
}

Properties

bytesLoaded: number
bytesTotal: number
startedAt: Date
updatedAt: Date
\ No newline at end of file diff --git a/docs/interfaces/index.JSONInsertOptions.html b/docs/interfaces/index.JSONInsertOptions.html index 03e774578..d3921de34 100644 --- a/docs/interfaces/index.JSONInsertOptions.html +++ b/docs/interfaces/index.JSONInsertOptions.html @@ -1,112 +1,7 @@ -JSONInsertOptions | DuckDB-WASM
-
- -
-
-
-
- -

Interface JSONInsertOptions

-
-

Hierarchy

-
    -
  • JSONInsertOptions
-
-
-
- -
-
-

Properties

-
- -
columns?: {
    [key: string]: arrow.DataType;
}
-
-

Type declaration

-
    -
  • -
    [key: string]: arrow.DataType
-
- -
columnsFlat?: SQLField[]
-
- -
create?: boolean
-
- -
name: string
-
- -
schema?: string
-
- -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +JSONInsertOptions | DuckDB-WASM

Interface JSONInsertOptions

interface JSONInsertOptions {
    columns?: {
        [key: string]: arrow.DataType;
    };
    columnsFlat?: SQLField[];
    create?: boolean;
    name: string;
    schema?: string;
    shape?: JSONTableShape;
}

Properties

columns?: {
    [key: string]: arrow.DataType;
}

Type declaration

  • [key: string]: arrow.DataType
columnsFlat?: SQLField[]
create?: boolean
name: string
schema?: string
\ No newline at end of file diff --git a/docs/interfaces/index.Logger.html b/docs/interfaces/index.Logger.html index ee8fdd4eb..0bc18f8b0 100644 --- a/docs/interfaces/index.Logger.html +++ b/docs/interfaces/index.Logger.html @@ -1,86 +1,2 @@ -Logger | DuckDB-WASM
-
- -
-
-
-
- -

Interface Logger

-
-

Hierarchy

-
    -
  • Logger
-
-

Implemented by

-
-
-
-
- -
-
-

Methods

-
log -
-
-

Methods

-
- -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +Logger | DuckDB-WASM

Interface Logger

interface Logger {
    log(entry): void;
}

Implemented by

Methods

log +

Methods

\ No newline at end of file diff --git a/docs/interfaces/index.PThread.html b/docs/interfaces/index.PThread.html index fa1a3bba5..ebe3494a9 100644 --- a/docs/interfaces/index.PThread.html +++ b/docs/interfaces/index.PThread.html @@ -1,79 +1,3 @@ -PThread | DuckDB-WASM
-
- -
-
-
-
- -

Interface PThread

-
-

Hierarchy

-
    -
  • PThread
-
-
-
- -
-
-

Properties

-
-
-

Properties

-
- -
runningWorkers: Worker[]
-
- -
unusedWorkers: Worker[]
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +PThread | DuckDB-WASM

Interface PThread

interface PThread {
    runningWorkers: Worker[];
    unusedWorkers: Worker[];
}

Properties

runningWorkers: Worker[]
unusedWorkers: Worker[]
\ No newline at end of file diff --git a/docs/interfaces/index.PlatformFeatures.html b/docs/interfaces/index.PlatformFeatures.html index c74272981..dffe10047 100644 --- a/docs/interfaces/index.PlatformFeatures.html +++ b/docs/interfaces/index.PlatformFeatures.html @@ -1,107 +1,7 @@ -PlatformFeatures | DuckDB-WASM
-
- -
-
-
-
- -

Interface PlatformFeatures

-
-

Hierarchy

-
    -
  • PlatformFeatures
-
-
-
- -
-
-

Properties

-
- -
bigInt64Array: boolean
-
- -
crossOriginIsolated: boolean
-
- -
wasmBulkMemory: boolean
-
- -
wasmExceptions: boolean
-
- -
wasmSIMD: boolean
-
- -
wasmThreads: boolean
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +PlatformFeatures | DuckDB-WASM

Interface PlatformFeatures

interface PlatformFeatures {
    bigInt64Array: boolean;
    crossOriginIsolated: boolean;
    wasmBulkMemory: boolean;
    wasmExceptions: boolean;
    wasmSIMD: boolean;
    wasmThreads: boolean;
}

Properties

bigInt64Array: boolean
crossOriginIsolated: boolean
wasmBulkMemory: boolean
wasmExceptions: boolean
wasmSIMD: boolean
wasmThreads: boolean
\ No newline at end of file diff --git a/docs/interfaces/index.S3Config.html b/docs/interfaces/index.S3Config.html index 6d52ebb55..a375a5f68 100644 --- a/docs/interfaces/index.S3Config.html +++ b/docs/interfaces/index.S3Config.html @@ -1,103 +1,7 @@ -S3Config | DuckDB-WASM
-
- -
-
-
-
- -

Interface S3Config

-
-

Configuration for the AWS S3 Filesystem

-
-
-

Hierarchy

-
    -
  • S3Config
-
-
-
- -
-
-

Properties

-
- -
accessKeyId?: string
-
- -
endpoint?: string
-
- -
region?: string
-
- -
secretAccessKey?: string
-
- -
sessionToken?: string
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +S3Config | DuckDB-WASM

Interface S3Config

Configuration for the AWS S3 Filesystem

+
interface S3Config {
    accessKeyId?: string;
    endpoint?: string;
    region?: string;
    secretAccessKey?: string;
    sessionToken?: string;
}

Properties

accessKeyId?: string
endpoint?: string
region?: string
secretAccessKey?: string
sessionToken?: string
\ No newline at end of file diff --git a/docs/interfaces/index.ScriptTokens.html b/docs/interfaces/index.ScriptTokens.html new file mode 100644 index 000000000..557dffa90 --- /dev/null +++ b/docs/interfaces/index.ScriptTokens.html @@ -0,0 +1,3 @@ +ScriptTokens | DuckDB-WASM

Interface ScriptTokens

interface ScriptTokens {
    offsets: number[];
    types: TokenType[];
}

Properties

Properties

offsets: number[]
types: TokenType[]
\ No newline at end of file diff --git a/docs/interfaces/index.WebFile.html b/docs/interfaces/index.WebFile.html new file mode 100644 index 000000000..048be01ba --- /dev/null +++ b/docs/interfaces/index.WebFile.html @@ -0,0 +1,10 @@ +WebFile | DuckDB-WASM

Interface WebFile

interface WebFile {
    allowFullHttpReads?: boolean;
    collectStatistics?: boolean;
    dataNativeFd?: number;
    dataProtocol: DuckDBDataProtocol;
    dataUrl?: string;
    fileId?: number;
    fileName: string;
    fileSize?: number;
    reliableHeadRequests?: boolean;
}

Properties

allowFullHttpReads?: boolean
collectStatistics?: boolean
dataNativeFd?: number
dataProtocol: DuckDBDataProtocol
dataUrl?: string
fileId?: number
fileName: string
fileSize?: number
reliableHeadRequests?: boolean
\ No newline at end of file diff --git a/docs/modules/index.html b/docs/modules/index.html index 64547825d..79d2d29b8 100644 --- a/docs/modules/index.html +++ b/docs/modules/index.html @@ -1,227 +1,83 @@ -index | DuckDB-WASM
-
- -
-
- -
-
-

Generated using TypeDoc

-
\ No newline at end of file +index | DuckDB-WASM
\ No newline at end of file diff --git a/docs/modules/targets_duckdb.html b/docs/modules/targets_duckdb.html index 5b1fd9502..1ef6e5e60 100644 --- a/docs/modules/targets_duckdb.html +++ b/docs/modules/targets_duckdb.html @@ -1,268 +1,57 @@ -targets/duckdb | DuckDB-WASM
-
- -
-
-
-
- -

Module targets/duckdb

-
-
-
-
-
- -
-
-

References

-
-Re-exports AsyncDuckDB
-
-Re-exports AsyncDuckDBBindings
-
-Re-exports AsyncDuckDBConnection
-
-Re-exports AsyncDuckDBDispatcher
-
-Re-exports AsyncPreparedStatement
-
-Re-exports AsyncResultStreamIterator
-
-Re-exports ConnectionID
-
-Re-exports ConsoleLogger
-
-Re-exports DuckDBBundle
-
-Re-exports DuckDBBundles
-
-Re-exports DuckDBConfig
-
-Re-exports DuckDBDataProtocol
-
-Re-exports DuckDBFilesystemConfig
-
-Re-exports DuckDBQueryConfig
-
-Re-exports InstantiationProgress
-
-Re-exports InstantiationProgressHandler
-
-Re-exports LogEntry
-
-Re-exports LogEntryVariant
-
-Re-exports LogEvent
-
-Re-exports LogLevel
-
-Re-exports LogOrigin
-
-Re-exports LogTopic
-
-Re-exports Logger
-
-Re-exports PACKAGE_NAME
-
-Re-exports PACKAGE_VERSION
-
-Re-exports PACKAGE_VERSION_MAJOR
-
-Re-exports PACKAGE_VERSION_MINOR
-
-Re-exports PACKAGE_VERSION_PATCH
-
-Re-exports PlatformFeatures
-
-Re-exports StatementID
-
-Re-exports StatusCode
-
-Re-exports VoidLogger
-
-Re-exports WorkerRequest
-
-Re-exports WorkerRequestType
-
-Re-exports WorkerRequestVariant
-
-Re-exports WorkerResponse
-
-Re-exports WorkerResponseType
-
-Re-exports WorkerResponseVariant
-
-Re-exports WorkerTask
-
-Re-exports WorkerTaskReturnType
-
-Re-exports WorkerTaskVariant
-
-Re-exports createWorker
-
-Re-exports getJsDelivrBundles
-
-Re-exports getLogEventLabel
-
-Re-exports getLogLevelLabel
-
-Re-exports getLogOriginLabel
-
-Re-exports getLogTopicLabel
-
-Re-exports getPlatformFeatures
-
-Re-exports isFirefox
-
-Re-exports isNode
-
-Re-exports isSafari
-
-Re-exports selectBundle
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +targets/duckdb | DuckDB-WASM

Module targets/duckdb

References

Re-exports AsyncDuckDB
Re-exports AsyncDuckDBBindings
Re-exports AsyncDuckDBConnection
Re-exports AsyncDuckDBDispatcher
Re-exports AsyncPreparedStatement
Re-exports AsyncResultStreamIterator
Re-exports ConnectionID
Re-exports ConsoleLogger
Re-exports DuckDBAccessMode
Re-exports DuckDBBundle
Re-exports DuckDBBundles
Re-exports DuckDBConfig
Re-exports DuckDBDataProtocol
Re-exports DuckDBFilesystemConfig
Re-exports DuckDBQueryConfig
Re-exports InstantiationProgress
Re-exports InstantiationProgressHandler
Re-exports LogEntry
Re-exports LogEntryVariant
Re-exports LogEvent
Re-exports LogLevel
Re-exports LogOrigin
Re-exports LogTopic
Re-exports Logger
Re-exports PACKAGE_NAME
Re-exports PACKAGE_VERSION
Re-exports PACKAGE_VERSION_MAJOR
Re-exports PACKAGE_VERSION_MINOR
Re-exports PACKAGE_VERSION_PATCH
Re-exports PlatformFeatures
Re-exports ScriptTokens
Re-exports StatementID
Re-exports StatusCode
Re-exports TokenType
Re-exports VoidLogger
Re-exports WebFile
Re-exports WorkerRequest
Re-exports WorkerRequestType
Re-exports WorkerRequestVariant
Re-exports WorkerResponse
Re-exports WorkerResponseType
Re-exports WorkerResponseVariant
Re-exports WorkerTask
Re-exports WorkerTaskReturnType
Re-exports WorkerTaskVariant
Re-exports createWorker
Re-exports getJsDelivrBundles
Re-exports getLogEventLabel
Re-exports getLogLevelLabel
Re-exports getLogOriginLabel
Re-exports getLogTopicLabel
Re-exports getPlatformFeatures
Re-exports isFirefox
Re-exports isNode
Re-exports isSafari
Re-exports selectBundle
\ No newline at end of file diff --git a/docs/modules/targets_duckdb_browser_blocking.html b/docs/modules/targets_duckdb_browser_blocking.html index cbfcd18c5..f395ae45f 100644 --- a/docs/modules/targets_duckdb_browser_blocking.html +++ b/docs/modules/targets_duckdb_browser_blocking.html @@ -1,310 +1,67 @@ -targets/duckdb-browser-blocking | DuckDB-WASM
-
- -
-
-
-
- -

Module targets/duckdb-browser-blocking

-
-
-
-
-
- -
-
-

References

-
-Re-exports ArrowInsertOptions
-
-Re-exports CSVInsertOptions
-
-Re-exports ConsoleLogger
-
-Re-exports DEFAULT_RUNTIME
-
-Re-exports DuckDBBindings
-
-Re-exports DuckDBBindingsBase
-
-Re-exports DuckDBBundle
-
-Re-exports DuckDBBundles
-
-Re-exports DuckDBConfig
-
-Re-exports DuckDBConnection
-
-Re-exports DuckDBDataProtocol
-
-Re-exports DuckDBFeature
-
-Re-exports DuckDBFileInfo
-
-Re-exports DuckDBFilesystemConfig
-
-Re-exports DuckDBGlobalFileInfo
-
-Re-exports DuckDBModule
-
-Re-exports DuckDBQueryConfig
-
-Re-exports DuckDBRuntime
-
-Re-exports FileBlockStatistics
-
-Re-exports FileFlags
-
-Re-exports FileStatistics
-
-Re-exports InstantiationProgress
-
-Re-exports InstantiationProgressHandler
-
-Re-exports JSONInsertOptions
-
-Re-exports JSONTableShape
-
-Re-exports LogEntry
-
-Re-exports LogEntryVariant
-
-Re-exports LogEvent
-
-Re-exports LogLevel
-
-Re-exports LogOrigin
-
-Re-exports LogTopic
-
-Re-exports Logger
-
-Re-exports PACKAGE_NAME
-
-Re-exports PACKAGE_VERSION
-
-Re-exports PACKAGE_VERSION_MAJOR
-
-Re-exports PACKAGE_VERSION_MINOR
-
-Re-exports PACKAGE_VERSION_PATCH
-
-Re-exports PThread
-
-Re-exports PlatformFeatures
-
-Re-exports PreparedStatement
-
-Re-exports ResultStreamIterator
-
-Re-exports S3Config
-
-Re-exports StatusCode
-
-Re-exports VoidLogger
-
-Re-exports callSRet
-
-Re-exports copyBuffer
-
-Re-exports decodeText
-
-Re-exports dropResponseBuffers
-
-Re-exports failWith
-
-Re-exports getJsDelivrBundles
-
-Re-exports getLogEventLabel
-
-Re-exports getLogLevelLabel
-
-Re-exports getLogOriginLabel
-
-Re-exports getLogTopicLabel
-
-Re-exports getPlatformFeatures
-
-Re-exports isFirefox
-
-Re-exports isNode
-
-Re-exports isSafari
-
-Re-exports readString
-
-Re-exports selectBundle
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +targets/duckdb-browser-blocking | DuckDB-WASM

Module targets/duckdb-browser-blocking

References

Re-exports ArrowInsertOptions
Re-exports CSVInsertOptions
Re-exports ConsoleLogger
Re-exports DEFAULT_RUNTIME
Re-exports DuckDBAccessMode
Re-exports DuckDBBindings
Re-exports DuckDBBindingsBase
Re-exports DuckDBBundle
Re-exports DuckDBBundles
Re-exports DuckDBConfig
Re-exports DuckDBConnection
Re-exports DuckDBDataProtocol
Re-exports DuckDBFeature
Re-exports DuckDBFileInfo
Re-exports DuckDBFilesystemConfig
Re-exports DuckDBGlobalFileInfo
Re-exports DuckDBModule
Re-exports DuckDBQueryConfig
Re-exports DuckDBRuntime
Re-exports FileBlockStatistics
Re-exports FileFlags
Re-exports FileStatistics
Re-exports InstantiationProgress
Re-exports InstantiationProgressHandler
Re-exports JSONInsertOptions
Re-exports JSONTableShape
Re-exports LogEntry
Re-exports LogEntryVariant
Re-exports LogEvent
Re-exports LogLevel
Re-exports LogOrigin
Re-exports LogTopic
Re-exports Logger
Re-exports PACKAGE_NAME
Re-exports PACKAGE_VERSION
Re-exports PACKAGE_VERSION_MAJOR
Re-exports PACKAGE_VERSION_MINOR
Re-exports PACKAGE_VERSION_PATCH
Re-exports PThread
Re-exports PlatformFeatures
Re-exports PreparedStatement
Re-exports ResultStreamIterator
Re-exports S3Config
Re-exports ScriptTokens
Re-exports StatusCode
Re-exports TokenType
Re-exports VoidLogger
Re-exports WebFile
Re-exports callSRet
Re-exports copyBuffer
Re-exports decodeText
Re-exports dropResponseBuffers
Re-exports failWith
Re-exports getJsDelivrBundles
Re-exports getLogEventLabel
Re-exports getLogLevelLabel
Re-exports getLogOriginLabel
Re-exports getLogTopicLabel
Re-exports getPlatformFeatures
Re-exports isFirefox
Re-exports isNode
Re-exports isSafari
Re-exports readString
Re-exports selectBundle
\ No newline at end of file diff --git a/docs/modules/targets_duckdb_node_blocking.html b/docs/modules/targets_duckdb_node_blocking.html index a438ba622..a25e93842 100644 --- a/docs/modules/targets_duckdb_node_blocking.html +++ b/docs/modules/targets_duckdb_node_blocking.html @@ -1,310 +1,67 @@ -targets/duckdb-node-blocking | DuckDB-WASM
-
- -
-
-
-
- -

Module targets/duckdb-node-blocking

-
-
-
-
-
- -
-
-

References

-
-Re-exports ArrowInsertOptions
-
-Re-exports CSVInsertOptions
-
-Re-exports ConsoleLogger
-
-Re-exports DEFAULT_RUNTIME
-
-Re-exports DuckDBBindings
-
-Re-exports DuckDBBindingsBase
-
-Re-exports DuckDBBundle
-
-Re-exports DuckDBBundles
-
-Re-exports DuckDBConfig
-
-Re-exports DuckDBConnection
-
-Re-exports DuckDBDataProtocol
-
-Re-exports DuckDBFeature
-
-Re-exports DuckDBFileInfo
-
-Re-exports DuckDBFilesystemConfig
-
-Re-exports DuckDBGlobalFileInfo
-
-Re-exports DuckDBModule
-
-Re-exports DuckDBQueryConfig
-
-Re-exports DuckDBRuntime
-
-Re-exports FileBlockStatistics
-
-Re-exports FileFlags
-
-Re-exports FileStatistics
-
-Re-exports InstantiationProgress
-
-Re-exports InstantiationProgressHandler
-
-Re-exports JSONInsertOptions
-
-Re-exports JSONTableShape
-
-Re-exports LogEntry
-
-Re-exports LogEntryVariant
-
-Re-exports LogEvent
-
-Re-exports LogLevel
-
-Re-exports LogOrigin
-
-Re-exports LogTopic
-
-Re-exports Logger
-
-Re-exports PACKAGE_NAME
-
-Re-exports PACKAGE_VERSION
-
-Re-exports PACKAGE_VERSION_MAJOR
-
-Re-exports PACKAGE_VERSION_MINOR
-
-Re-exports PACKAGE_VERSION_PATCH
-
-Re-exports PThread
-
-Re-exports PlatformFeatures
-
-Re-exports PreparedStatement
-
-Re-exports ResultStreamIterator
-
-Re-exports S3Config
-
-Re-exports StatusCode
-
-Re-exports VoidLogger
-
-Re-exports callSRet
-
-Re-exports copyBuffer
-
-Re-exports decodeText
-
-Re-exports dropResponseBuffers
-
-Re-exports failWith
-
-Re-exports getJsDelivrBundles
-
-Re-exports getLogEventLabel
-
-Re-exports getLogLevelLabel
-
-Re-exports getLogOriginLabel
-
-Re-exports getLogTopicLabel
-
-Re-exports getPlatformFeatures
-
-Re-exports isFirefox
-
-Re-exports isNode
-
-Re-exports isSafari
-
-Re-exports readString
-
-Re-exports selectBundle
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +targets/duckdb-node-blocking | DuckDB-WASM

Module targets/duckdb-node-blocking

References

Re-exports ArrowInsertOptions
Re-exports CSVInsertOptions
Re-exports ConsoleLogger
Re-exports DEFAULT_RUNTIME
Re-exports DuckDBAccessMode
Re-exports DuckDBBindings
Re-exports DuckDBBindingsBase
Re-exports DuckDBBundle
Re-exports DuckDBBundles
Re-exports DuckDBConfig
Re-exports DuckDBConnection
Re-exports DuckDBDataProtocol
Re-exports DuckDBFeature
Re-exports DuckDBFileInfo
Re-exports DuckDBFilesystemConfig
Re-exports DuckDBGlobalFileInfo
Re-exports DuckDBModule
Re-exports DuckDBQueryConfig
Re-exports DuckDBRuntime
Re-exports FileBlockStatistics
Re-exports FileFlags
Re-exports FileStatistics
Re-exports InstantiationProgress
Re-exports InstantiationProgressHandler
Re-exports JSONInsertOptions
Re-exports JSONTableShape
Re-exports LogEntry
Re-exports LogEntryVariant
Re-exports LogEvent
Re-exports LogLevel
Re-exports LogOrigin
Re-exports LogTopic
Re-exports Logger
Re-exports PACKAGE_NAME
Re-exports PACKAGE_VERSION
Re-exports PACKAGE_VERSION_MAJOR
Re-exports PACKAGE_VERSION_MINOR
Re-exports PACKAGE_VERSION_PATCH
Re-exports PThread
Re-exports PlatformFeatures
Re-exports PreparedStatement
Re-exports ResultStreamIterator
Re-exports S3Config
Re-exports ScriptTokens
Re-exports StatusCode
Re-exports TokenType
Re-exports VoidLogger
Re-exports WebFile
Re-exports callSRet
Re-exports copyBuffer
Re-exports decodeText
Re-exports dropResponseBuffers
Re-exports failWith
Re-exports getJsDelivrBundles
Re-exports getLogEventLabel
Re-exports getLogLevelLabel
Re-exports getLogOriginLabel
Re-exports getLogTopicLabel
Re-exports getPlatformFeatures
Re-exports isFirefox
Re-exports isNode
Re-exports isSafari
Re-exports readString
Re-exports selectBundle
\ No newline at end of file diff --git a/docs/types/index.ConnectionID.html b/docs/types/index.ConnectionID.html index 6dd4ada51..e14b12436 100644 --- a/docs/types/index.ConnectionID.html +++ b/docs/types/index.ConnectionID.html @@ -1,128 +1 @@ -ConnectionID | DuckDB-WASM
-
- -
-
-
-
- -

Type alias ConnectionID

-
ConnectionID: number
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +ConnectionID | DuckDB-WASM
\ No newline at end of file diff --git a/docs/types/index.InstantiationProgressHandler.html b/docs/types/index.InstantiationProgressHandler.html index 62a646987..8e64857b1 100644 --- a/docs/types/index.InstantiationProgressHandler.html +++ b/docs/types/index.InstantiationProgressHandler.html @@ -1,143 +1,2 @@ -InstantiationProgressHandler | DuckDB-WASM
-
- -
-
-
-
- -

Type alias InstantiationProgressHandler

-
InstantiationProgressHandler: ((p: InstantiationProgress) => void)
-
-

Type declaration

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +InstantiationProgressHandler | DuckDB-WASM

Type alias InstantiationProgressHandler

InstantiationProgressHandler: ((p) => void)

An instantiation progress handler

+

Type declaration

\ No newline at end of file diff --git a/docs/types/index.LogEntry.html b/docs/types/index.LogEntry.html index a95642c9f..56a8bf1cb 100644 --- a/docs/types/index.LogEntry.html +++ b/docs/types/index.LogEntry.html @@ -1,154 +1 @@ -LogEntry | DuckDB-WASM
-
- -
-
-
-
- -

Type alias LogEntry<O, T, E, V>

-
LogEntry<O, T, E, V>: {
    event: E;
    level: LogLevel;
    origin: O;
    timestamp: Date;
    topic: T;
    value: V;
}
-
-

Type Parameters

-
    -
  • -

    O

  • -
  • -

    T

  • -
  • -

    E

  • -
  • -

    V

-
-

Type declaration

-
    -
  • -
    Readonly event: E
  • -
  • -
    Readonly level: LogLevel
  • -
  • -
    Readonly origin: O
  • -
  • -
    Readonly timestamp: Date
  • -
  • -
    Readonly topic: T
  • -
  • -
    Readonly value: V
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +LogEntry | DuckDB-WASM

Type alias LogEntry<O, T, E, V>

LogEntry<O, T, E, V>: {
    event: E;
    level: LogLevel;
    origin: O;
    timestamp: Date;
    topic: T;
    value: V;
}

Type Parameters

  • O
  • T
  • E
  • V

Type declaration

  • Readonly event: E
  • Readonly level: LogLevel
  • Readonly origin: O
  • Readonly timestamp: Date
  • Readonly topic: T
  • Readonly value: V
\ No newline at end of file diff --git a/docs/types/index.LogEntryVariant.html b/docs/types/index.LogEntryVariant.html index 0bd9213c9..7c6f83c2e 100644 --- a/docs/types/index.LogEntryVariant.html +++ b/docs/types/index.LogEntryVariant.html @@ -1,128 +1 @@ -LogEntryVariant | DuckDB-WASM
-
- -
-
-
-
- -

Type alias LogEntryVariant

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +LogEntryVariant | DuckDB-WASM
\ No newline at end of file diff --git a/docs/types/index.StatementID.html b/docs/types/index.StatementID.html index 2af3943d0..ce251c7c1 100644 --- a/docs/types/index.StatementID.html +++ b/docs/types/index.StatementID.html @@ -1,128 +1 @@ -StatementID | DuckDB-WASM
-
- -
-
-
-
- -

Type alias StatementID

-
StatementID: number
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +StatementID | DuckDB-WASM
\ No newline at end of file diff --git a/docs/types/index.WorkerRequest.html b/docs/types/index.WorkerRequest.html index 86d5afa02..70480d750 100644 --- a/docs/types/index.WorkerRequest.html +++ b/docs/types/index.WorkerRequest.html @@ -1,144 +1 @@ -WorkerRequest | DuckDB-WASM
-
- -
-
-
-
- -

Type alias WorkerRequest<T, P>

-
WorkerRequest<T, P>: {
    data: P;
    messageId: number;
    type: T;
}
-
-

Type Parameters

-
    -
  • -

    T

  • -
  • -

    P

-
-

Type declaration

-
    -
  • -
    Readonly data: P
  • -
  • -
    Readonly messageId: number
  • -
  • -
    Readonly type: T
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerRequest | DuckDB-WASM

Type alias WorkerRequest<T, P>

WorkerRequest<T, P>: {
    data: P;
    messageId: number;
    type: T;
}

Type Parameters

  • T
  • P

Type declaration

  • Readonly data: P
  • Readonly messageId: number
  • Readonly type: T
\ No newline at end of file diff --git a/docs/types/index.WorkerRequestVariant.html b/docs/types/index.WorkerRequestVariant.html index d6c8dc012..6e8b66261 100644 --- a/docs/types/index.WorkerRequestVariant.html +++ b/docs/types/index.WorkerRequestVariant.html @@ -1,128 +1 @@ -WorkerRequestVariant | DuckDB-WASM
-
- -
-
-
-
- -

Type alias WorkerRequestVariant

-
WorkerRequestVariant: WorkerRequest<CLOSE_PREPARED, [ConnectionID, StatementID]> | WorkerRequest<CANCEL_PENDING_QUERY, number> | WorkerRequest<COLLECT_FILE_STATISTICS, [string, boolean]> | WorkerRequest<CONNECT, null> | WorkerRequest<COPY_FILE_TO_BUFFER, string> | WorkerRequest<COPY_FILE_TO_PATH, [string, string]> | WorkerRequest<CREATE_PREPARED, [ConnectionID, string]> | WorkerRequest<DISCONNECT, number> | WorkerRequest<DROP_FILE, string> | WorkerRequest<DROP_FILES, null> | WorkerRequest<EXPORT_FILE_STATISTICS, string> | WorkerRequest<FETCH_QUERY_RESULTS, number> | WorkerRequest<FLUSH_FILES, null> | WorkerRequest<GET_FEATURE_FLAGS, null> | WorkerRequest<GET_TABLE_NAMES, [number, string]> | WorkerRequest<GET_VERSION, null> | WorkerRequest<GLOB_FILE_INFOS, string> | WorkerRequest<INSERT_ARROW_FROM_IPC_STREAM, [number, Uint8Array, ArrowInsertOptions | undefined]> | WorkerRequest<INSERT_CSV_FROM_PATH, [number, string, CSVInsertOptions]> | WorkerRequest<INSERT_JSON_FROM_PATH, [number, string, JSONInsertOptions]> | WorkerRequest<INSTANTIATE, [string, string | null]> | WorkerRequest<OPEN, DuckDBConfig> | WorkerRequest<PING, null> | WorkerRequest<POLL_PENDING_QUERY, number> | WorkerRequest<REGISTER_FILE_BUFFER, [string, Uint8Array]> | WorkerRequest<REGISTER_FILE_HANDLE, [string, any, DuckDBDataProtocol, boolean]> | WorkerRequest<REGISTER_FILE_URL, [string, string, DuckDBDataProtocol, boolean]> | WorkerRequest<RESET, null> | WorkerRequest<RUN_PREPARED, [number, number, any[]]> | WorkerRequest<RUN_QUERY, [number, string]> | WorkerRequest<SEND_PREPARED, [number, number, any[]]> | WorkerRequest<START_PENDING_QUERY, [number, string]> | WorkerRequest<TOKENIZE, string>
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerRequestVariant | DuckDB-WASM

Type alias WorkerRequestVariant

WorkerRequestVariant: WorkerRequest<CLOSE_PREPARED, [ConnectionID, StatementID]> | WorkerRequest<CANCEL_PENDING_QUERY, number> | WorkerRequest<COLLECT_FILE_STATISTICS, [string, boolean]> | WorkerRequest<CONNECT, null> | WorkerRequest<COPY_FILE_TO_BUFFER, string> | WorkerRequest<COPY_FILE_TO_PATH, [string, string]> | WorkerRequest<CREATE_PREPARED, [ConnectionID, string]> | WorkerRequest<DISCONNECT, number> | WorkerRequest<DROP_FILE, string> | WorkerRequest<DROP_FILES, null> | WorkerRequest<EXPORT_FILE_STATISTICS, string> | WorkerRequest<FETCH_QUERY_RESULTS, number> | WorkerRequest<FLUSH_FILES, null> | WorkerRequest<GET_FEATURE_FLAGS, null> | WorkerRequest<GET_TABLE_NAMES, [number, string]> | WorkerRequest<GET_VERSION, null> | WorkerRequest<GLOB_FILE_INFOS, string> | WorkerRequest<INSERT_ARROW_FROM_IPC_STREAM, [number, Uint8Array, ArrowInsertOptions | undefined]> | WorkerRequest<INSERT_CSV_FROM_PATH, [number, string, CSVInsertOptions]> | WorkerRequest<INSERT_JSON_FROM_PATH, [number, string, JSONInsertOptions]> | WorkerRequest<INSTANTIATE, [string, string | null]> | WorkerRequest<OPEN, DuckDBConfig> | WorkerRequest<PING, null> | WorkerRequest<POLL_PENDING_QUERY, number> | WorkerRequest<REGISTER_FILE_BUFFER, [string, Uint8Array]> | WorkerRequest<REGISTER_FILE_HANDLE, [string, any, DuckDBDataProtocol, boolean]> | WorkerRequest<REGISTER_FILE_URL, [string, string, DuckDBDataProtocol, boolean]> | WorkerRequest<RESET, null> | WorkerRequest<RUN_PREPARED, [number, number, any[]]> | WorkerRequest<RUN_QUERY, [number, string]> | WorkerRequest<SEND_PREPARED, [number, number, any[]]> | WorkerRequest<START_PENDING_QUERY, [number, string, boolean]> | WorkerRequest<TOKENIZE, string>
\ No newline at end of file diff --git a/docs/types/index.WorkerResponse.html b/docs/types/index.WorkerResponse.html index 0c69547c1..293fa42ef 100644 --- a/docs/types/index.WorkerResponse.html +++ b/docs/types/index.WorkerResponse.html @@ -1,146 +1 @@ -WorkerResponse | DuckDB-WASM
-
- -
-
-
-
- -

Type alias WorkerResponse<T, P>

-
WorkerResponse<T, P>: {
    data: P;
    messageId: number;
    requestId: number;
    type: T;
}
-
-

Type Parameters

-
    -
  • -

    T

  • -
  • -

    P

-
-

Type declaration

-
    -
  • -
    Readonly data: P
  • -
  • -
    Readonly messageId: number
  • -
  • -
    Readonly requestId: number
  • -
  • -
    Readonly type: T
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerResponse | DuckDB-WASM

Type alias WorkerResponse<T, P>

WorkerResponse<T, P>: {
    data: P;
    messageId: number;
    requestId: number;
    type: T;
}

Type Parameters

  • T
  • P

Type declaration

  • Readonly data: P
  • Readonly messageId: number
  • Readonly requestId: number
  • Readonly type: T
\ No newline at end of file diff --git a/docs/types/index.WorkerResponseVariant.html b/docs/types/index.WorkerResponseVariant.html index 163a3a21a..5b7033aae 100644 --- a/docs/types/index.WorkerResponseVariant.html +++ b/docs/types/index.WorkerResponseVariant.html @@ -1,128 +1 @@ -WorkerResponseVariant | DuckDB-WASM
-
- -
-
-
-
- -

Type alias WorkerResponseVariant

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerResponseVariant | DuckDB-WASM
\ No newline at end of file diff --git a/docs/types/index.WorkerTaskReturnType.html b/docs/types/index.WorkerTaskReturnType.html index 82d903181..4ad25365a 100644 --- a/docs/types/index.WorkerTaskReturnType.html +++ b/docs/types/index.WorkerTaskReturnType.html @@ -1,133 +1 @@ -WorkerTaskReturnType | DuckDB-WASM
-
- -
-
-
-
- -

Type alias WorkerTaskReturnType<T>

-
WorkerTaskReturnType<T>: T extends WorkerTask<any, any, infer P> ? P : never
-
-

Type Parameters

-
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerTaskReturnType | DuckDB-WASM

Type alias WorkerTaskReturnType<T>

WorkerTaskReturnType<T>: T extends WorkerTask<any, any, infer P>
    ? P
    : never

Type Parameters

\ No newline at end of file diff --git a/docs/types/index.WorkerTaskVariant.html b/docs/types/index.WorkerTaskVariant.html index d62a605ed..72fca39d7 100644 --- a/docs/types/index.WorkerTaskVariant.html +++ b/docs/types/index.WorkerTaskVariant.html @@ -1,128 +1 @@ -WorkerTaskVariant | DuckDB-WASM
-
- -
-
-
-
- -

Type alias WorkerTaskVariant

-
WorkerTaskVariant: WorkerTask<COLLECT_FILE_STATISTICS, [string, boolean], null> | WorkerTask<CLOSE_PREPARED, [number, number], null> | WorkerTask<CONNECT, null, ConnectionID> | WorkerTask<COPY_FILE_TO_BUFFER, string, Uint8Array> | WorkerTask<COPY_FILE_TO_PATH, [string, string], null> | WorkerTask<CREATE_PREPARED, [number, string], number> | WorkerTask<DISCONNECT, ConnectionID, null> | WorkerTask<DROP_FILE, string, null> | WorkerTask<DROP_FILES, null, null> | WorkerTask<EXPORT_FILE_STATISTICS, string, FileStatistics> | WorkerTask<FETCH_QUERY_RESULTS, ConnectionID, Uint8Array> | WorkerTask<FLUSH_FILES, null, null> | WorkerTask<GET_FEATURE_FLAGS, null, number> | WorkerTask<GET_TABLE_NAMES, [number, string], string[]> | WorkerTask<GET_VERSION, null, string> | WorkerTask<INSERT_ARROW_FROM_IPC_STREAM, [number, Uint8Array, ArrowInsertOptions | undefined], null> | WorkerTask<INSERT_CSV_FROM_PATH, [number, string, CSVInsertOptions], null> | WorkerTask<INSERT_JSON_FROM_PATH, [number, string, JSONInsertOptions], null> | WorkerTask<INSTANTIATE, [string, string | null], null> | WorkerTask<OPEN, DuckDBConfig, null> | WorkerTask<PING, null, null> | WorkerTask<REGISTER_FILE_BUFFER, [string, Uint8Array], null> | WorkerTask<REGISTER_FILE_HANDLE, [string, any, DuckDBDataProtocol, boolean], null> | WorkerTask<REGISTER_FILE_URL, [string, string, DuckDBDataProtocol, boolean], null> | WorkerTask<GLOB_FILE_INFOS, string, WebFile[]> | WorkerTask<RESET, null, null> | WorkerTask<RUN_PREPARED, [number, number, any[]], Uint8Array> | WorkerTask<RUN_QUERY, [ConnectionID, string], Uint8Array> | WorkerTask<SEND_PREPARED, [number, number, any[]], Uint8Array> | WorkerTask<START_PENDING_QUERY, [ConnectionID, string], Uint8Array | null> | WorkerTask<POLL_PENDING_QUERY, ConnectionID, Uint8Array | null> | WorkerTask<CANCEL_PENDING_QUERY, ConnectionID, boolean> | WorkerTask<TOKENIZE, string, ScriptTokens>
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +WorkerTaskVariant | DuckDB-WASM

Type alias WorkerTaskVariant

WorkerTaskVariant: WorkerTask<COLLECT_FILE_STATISTICS, [string, boolean], null> | WorkerTask<CLOSE_PREPARED, [number, number], null> | WorkerTask<CONNECT, null, ConnectionID> | WorkerTask<COPY_FILE_TO_BUFFER, string, Uint8Array> | WorkerTask<COPY_FILE_TO_PATH, [string, string], null> | WorkerTask<CREATE_PREPARED, [number, string], number> | WorkerTask<DISCONNECT, ConnectionID, null> | WorkerTask<DROP_FILE, string, null> | WorkerTask<DROP_FILES, null, null> | WorkerTask<EXPORT_FILE_STATISTICS, string, FileStatistics> | WorkerTask<FETCH_QUERY_RESULTS, ConnectionID, Uint8Array> | WorkerTask<FLUSH_FILES, null, null> | WorkerTask<GET_FEATURE_FLAGS, null, number> | WorkerTask<GET_TABLE_NAMES, [number, string], string[]> | WorkerTask<GET_VERSION, null, string> | WorkerTask<INSERT_ARROW_FROM_IPC_STREAM, [number, Uint8Array, ArrowInsertOptions | undefined], null> | WorkerTask<INSERT_CSV_FROM_PATH, [number, string, CSVInsertOptions], null> | WorkerTask<INSERT_JSON_FROM_PATH, [number, string, JSONInsertOptions], null> | WorkerTask<INSTANTIATE, [string, string | null], null> | WorkerTask<OPEN, DuckDBConfig, null> | WorkerTask<PING, null, null> | WorkerTask<REGISTER_FILE_BUFFER, [string, Uint8Array], null> | WorkerTask<REGISTER_FILE_HANDLE, [string, any, DuckDBDataProtocol, boolean], null> | WorkerTask<REGISTER_FILE_URL, [string, string, DuckDBDataProtocol, boolean], null> | WorkerTask<GLOB_FILE_INFOS, string, WebFile[]> | WorkerTask<RESET, null, null> | WorkerTask<RUN_PREPARED, [number, number, any[]], Uint8Array> | WorkerTask<RUN_QUERY, [ConnectionID, string], Uint8Array> | WorkerTask<SEND_PREPARED, [number, number, any[]], Uint8Array> | WorkerTask<START_PENDING_QUERY, [ConnectionID, string, boolean], Uint8Array | null> | WorkerTask<POLL_PENDING_QUERY, ConnectionID, Uint8Array | null> | WorkerTask<CANCEL_PENDING_QUERY, ConnectionID, boolean> | WorkerTask<TOKENIZE, string, ScriptTokens>
\ No newline at end of file diff --git a/docs/variables/index.DEFAULT_RUNTIME.html b/docs/variables/index.DEFAULT_RUNTIME.html index 48ae90603..426ecbbef 100644 --- a/docs/variables/index.DEFAULT_RUNTIME.html +++ b/docs/variables/index.DEFAULT_RUNTIME.html @@ -1,128 +1 @@ -DEFAULT_RUNTIME | DuckDB-WASM
-
- -
-
-
-
- -

Variable DEFAULT_RUNTIMEConst

-
DEFAULT_RUNTIME: DuckDBRuntime = ...
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +DEFAULT_RUNTIME | DuckDB-WASM

Variable DEFAULT_RUNTIMEConst

DEFAULT_RUNTIME: DuckDBRuntime = ...
\ No newline at end of file diff --git a/docs/variables/index.PACKAGE_NAME.html b/docs/variables/index.PACKAGE_NAME.html index 533d04496..550c79314 100644 --- a/docs/variables/index.PACKAGE_NAME.html +++ b/docs/variables/index.PACKAGE_NAME.html @@ -1,128 +1 @@ -PACKAGE_NAME | DuckDB-WASM
-
- -
-
-
-
- -

Variable PACKAGE_NAMEConst

-
PACKAGE_NAME: string = config.name
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +PACKAGE_NAME | DuckDB-WASM

Variable PACKAGE_NAMEConst

PACKAGE_NAME: string = config.name
\ No newline at end of file diff --git a/docs/variables/index.PACKAGE_VERSION.html b/docs/variables/index.PACKAGE_VERSION.html index eae2a6594..f2b4d7723 100644 --- a/docs/variables/index.PACKAGE_VERSION.html +++ b/docs/variables/index.PACKAGE_VERSION.html @@ -1,128 +1 @@ -PACKAGE_VERSION | DuckDB-WASM
-
- -
-
-
-
- -

Variable PACKAGE_VERSIONConst

-
PACKAGE_VERSION: string = config.version
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +PACKAGE_VERSION | DuckDB-WASM

Variable PACKAGE_VERSIONConst

PACKAGE_VERSION: string = config.version
\ No newline at end of file diff --git a/docs/variables/index.PACKAGE_VERSION_MAJOR.html b/docs/variables/index.PACKAGE_VERSION_MAJOR.html index 9e0231109..37b5c069e 100644 --- a/docs/variables/index.PACKAGE_VERSION_MAJOR.html +++ b/docs/variables/index.PACKAGE_VERSION_MAJOR.html @@ -1,128 +1 @@ -PACKAGE_VERSION_MAJOR | DuckDB-WASM
-
- -
-
-
-
- -

Variable PACKAGE_VERSION_MAJORConst

-
PACKAGE_VERSION_MAJOR: string = ...
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +PACKAGE_VERSION_MAJOR | DuckDB-WASM

Variable PACKAGE_VERSION_MAJORConst

PACKAGE_VERSION_MAJOR: string = ...
\ No newline at end of file diff --git a/docs/variables/index.PACKAGE_VERSION_MINOR.html b/docs/variables/index.PACKAGE_VERSION_MINOR.html index 6d06207ce..eba932b23 100644 --- a/docs/variables/index.PACKAGE_VERSION_MINOR.html +++ b/docs/variables/index.PACKAGE_VERSION_MINOR.html @@ -1,128 +1 @@ -PACKAGE_VERSION_MINOR | DuckDB-WASM
-
- -
-
-
-
- -

Variable PACKAGE_VERSION_MINORConst

-
PACKAGE_VERSION_MINOR: string = ...
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +PACKAGE_VERSION_MINOR | DuckDB-WASM

Variable PACKAGE_VERSION_MINORConst

PACKAGE_VERSION_MINOR: string = ...
\ No newline at end of file diff --git a/docs/variables/index.PACKAGE_VERSION_PATCH.html b/docs/variables/index.PACKAGE_VERSION_PATCH.html index e2cf4fc0d..48497d557 100644 --- a/docs/variables/index.PACKAGE_VERSION_PATCH.html +++ b/docs/variables/index.PACKAGE_VERSION_PATCH.html @@ -1,128 +1 @@ -PACKAGE_VERSION_PATCH | DuckDB-WASM
-
- -
-
-
-
- -

Variable PACKAGE_VERSION_PATCHConst

-
PACKAGE_VERSION_PATCH: string = ...
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +PACKAGE_VERSION_PATCH | DuckDB-WASM

Variable PACKAGE_VERSION_PATCHConst

PACKAGE_VERSION_PATCH: string = ...
\ No newline at end of file diff --git a/docs/variables/targets_duckdb_browser_blocking.BROWSER_RUNTIME.html b/docs/variables/targets_duckdb_browser_blocking.BROWSER_RUNTIME.html index b39337d7a..f31c27358 100644 --- a/docs/variables/targets_duckdb_browser_blocking.BROWSER_RUNTIME.html +++ b/docs/variables/targets_duckdb_browser_blocking.BROWSER_RUNTIME.html @@ -1,112 +1 @@ -BROWSER_RUNTIME | DuckDB-WASM
-
- -
-
-
-
- -

Variable BROWSER_RUNTIMEConst

-
BROWSER_RUNTIME: DuckDBRuntime & {
    _fileInfoCache: Map<number, DuckDBFileInfo>;
    _globalFileInfo: DuckDBGlobalFileInfo | null;
    getFileInfo(mod: DuckDBModule, fileId: number): null | DuckDBFileInfo;
    getGlobalFileInfo(mod: DuckDBModule): null | DuckDBGlobalFileInfo;
} = ...
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +BROWSER_RUNTIME | DuckDB-WASM
BROWSER_RUNTIME: DuckDBRuntime & {
    _fileInfoCache: Map<number, DuckDBFileInfo>;
    _globalFileInfo: DuckDBGlobalFileInfo | null;
    getFileInfo(mod, fileId): null | DuckDBFileInfo;
    getGlobalFileInfo(mod): null | DuckDBGlobalFileInfo;
} = ...

Type declaration

\ No newline at end of file diff --git a/docs/variables/targets_duckdb_node_blocking.NODE_RUNTIME.html b/docs/variables/targets_duckdb_node_blocking.NODE_RUNTIME.html index 76fdabae3..e9c66b7cd 100644 --- a/docs/variables/targets_duckdb_node_blocking.NODE_RUNTIME.html +++ b/docs/variables/targets_duckdb_node_blocking.NODE_RUNTIME.html @@ -1,112 +1 @@ -NODE_RUNTIME | DuckDB-WASM
-
- -
-
-
-
- -

Variable NODE_RUNTIMEConst

-
NODE_RUNTIME: DuckDBRuntime & {
    _fileInfoCache: Map<number, DuckDBFileInfo>;
    _filesById: Map<number, any>;
    resolveFileInfo(mod: DuckDBModule, fileId: number): null | DuckDBFileInfo;
} = ...
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +NODE_RUNTIME | DuckDB-WASM
NODE_RUNTIME: DuckDBRuntime & {
    _fileInfoCache: Map<number, DuckDBFileInfo>;
    _filesById: Map<number, any>;
    resolveFileInfo(mod, fileId): null | DuckDBFileInfo;
} = ...

Type declaration

\ No newline at end of file diff --git a/index.html b/index.html index 355197c07..ef340ddda 100644 --- a/index.html +++ b/index.html @@ -1,18 +1 @@ -DuckDB Shell
\ No newline at end of file +DuckDB Shell
\ No newline at end of file diff --git a/misc/duckdb_version_badge.svg b/misc/duckdb_version_badge.svg index c4b711442..e6e2de383 100644 --- a/misc/duckdb_version_badge.svg +++ b/misc/duckdb_version_badge.svg @@ -1 +1 @@ -duckdb: v0.6.0-dev3duckdbv0.6.0-dev3 +duckdb: v1.1.3duckdbv1.1.3 diff --git a/misc/duckdb_wasm.svg b/misc/duckdb_wasm.svg index 65dca1a6f..99f4972ad 100644 --- a/misc/duckdb_wasm.svg +++ b/misc/duckdb_wasm.svg @@ -1,14 +1 @@ - - - - - - - - - - - - - - + \ No newline at end of file diff --git a/misc/duckdb_wasm_light.svg b/misc/duckdb_wasm_light.svg new file mode 100644 index 000000000..208610ac3 --- /dev/null +++ b/misc/duckdb_wasm_light.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/assets/duckdb-browser-coi.pthread.worker.8123a2e48a10fef4525b.js b/static/assets/duckdb-browser-coi.pthread.worker.8123a2e48a10fef4525b.js deleted file mode 100644 index 35354d28b..000000000 --- a/static/assets/duckdb-browser-coi.pthread.worker.8123a2e48a10fef4525b.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see duckdb-browser-coi.pthread.worker.8123a2e48a10fef4525b.js.LICENSE.txt */ -"use strict";(()=>{var xi=Object.create,or=Object.defineProperty,Ti=Object.getOwnPropertyDescriptor,Hi=Object.getOwnPropertyNames,Mi=Object.getPrototypeOf,Bi=Object.prototype.hasOwnProperty,ye=(r=function(e){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r),r,Ui=(e,t)=>()=>(e&&(t=e(e=0)),t),we=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ci=(e,t)=>{for(var r in t)or(e,r,{get:t[r],enumerable:!0})},Ii=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let a of Hi(t))!Bi.call(e,a)&&a!==r&&or(e,a,{get:()=>t[a],enumerable:!(n=Ti(t,a))||n.enumerable});return e},lr=(e,t,r)=>(r=null!=e?xi(Mi(e)):{},Ii(!t&&e&&e.__esModule?r:or(r,"default",{value:e,enumerable:!0}),e)),cr=we((()=>{})),fr=we((()=>{})),_r=we((()=>{})),Zt=we((()=>{})),en=we((()=>{})),rn={};Ci(rn,{default:()=>hr});var dr,Ni,hr,br=Ui((()=>{dr={},Ni=(()=>{var e=dr.url;return function(t){function r(){return F.buffer!=B&&V(F.buffer),O}function n(){return F.buffer!=B&&V(F.buffer),N}function a(){return F.buffer!=B&&V(F.buffer),P}function o(){return F.buffer!=B&&V(F.buffer),X}function i(){return F.buffer!=B&&V(F.buffer),L}function u(){return F.buffer!=B&&V(F.buffer),q}var s,l,f=typeof(t=t||{})<"u"?t:{};f.ready=new Promise((function(e,t){s=e,l=t}));var c,d,_=Object.assign({},f),h=[],p="./this.program",m=(e,t)=>{throw t},b="object"==typeof window,y="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,w=f.ENVIRONMENT_IS_PTHREAD||!1,v="";function A(e){return f.locateFile?f.locateFile(e,v):v+e}if(g){var E,H;let e;v=y?_r().dirname(v)+"/":__dirname+"/","function"==typeof ye&&(E=fr(),H=_r()),c=(e,t)=>(e=H.normalize(e),E.readFileSync(e,t?void 0:"utf8")),d=e=>{var t=c(e,!0);return t.buffer||(t=new Uint8Array(t)),t},process.argv.length>1&&(p=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof de))throw e})),process.on("unhandledRejection",(function(e){throw e})),m=(e,t)=>{if(re())throw process.exitCode=e,t;(function(e){e instanceof de||U("exiting due to exception: "+e)})(t),process.exit(e)},f.inspect=function(){return"[Emscripten Module object]"};try{e=cr()}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}global.Worker=e.Worker}else(b||y)&&(y?v=self.location.href:typeof document<"u"&&document.currentScript&&(v=document.currentScript.src),e&&(v=e),v=0!==v.indexOf("blob:")?v.substr(0,v.replace(/[?#].*/,"").lastIndexOf("/")+1):"",g||(c=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},y&&(d=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})));g&&typeof performance>"u"&&(global.performance=Zt().performance);var k=console.log.bind(console),R=console.warn.bind(console);g&&(k=e=>E.writeSync(1,e+"\n"),R=e=>E.writeSync(2,e+"\n"));var S,T=f.print||k,U=f.printErr||R;Object.assign(f,_),_=null,f.arguments&&(h=f.arguments),f.thisProgram&&(p=f.thisProgram),f.quit&&(m=f.quit),Atomics.load,Atomics.store,Atomics.compareExchange,f.wasmBinary&&(S=f.wasmBinary);var C=f.noExitRuntime||!0;"object"!=typeof WebAssembly&&se("no native wasm support detected");var F,D,M,x=!1;function I(e,t){e||se(t)}var B,O,N,P,W,X,L,q,K=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function j(e,t,r){for(var n=(t>>>=0)+r,a=t;e[a]&&!(a>=n);)++a;if(a-t>16&&e.buffer&&K)return K.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,a):e.subarray(t,a));for(var o="";t>10,56320|1023&l)}}else o+=String.fromCharCode((31&i)<<6|u)}else o+=String.fromCharCode(i)}return o}function $(e,t){return(e>>>=0)?j(n(),e,t):""}function Y(e,t,r,n){if(!(n>0))return 0;for(var a=r>>>=0,o=r+n-1,i=0;i=55296&&u<=57343&&(u=65536+((1023&u)<<10)|1023&e.charCodeAt(++i)),u<=127){if(r>=o)break;t[r++>>>0]=u}else if(u<=2047){if(r+1>=o)break;t[r++>>>0]=192|u>>6,t[r++>>>0]=128|63&u}else if(u<=65535){if(r+2>=o)break;t[r++>>>0]=224|u>>12,t[r++>>>0]=128|u>>6&63,t[r++>>>0]=128|63&u}else{if(r+3>=o)break;t[r++>>>0]=240|u>>18,t[r++>>>0]=128|u>>12&63,t[r++>>>0]=128|u>>6&63,t[r++>>>0]=128|63&u}}return t[r>>>0]=0,r-a}function z(e,t,r){return Y(e,n(),t,r)}function V(e){B=e,f.HEAP8=O=new Int8Array(e),f.HEAP16=P=new Int16Array(e),f.HEAP32=X=new Int32Array(e),f.HEAPU8=N=new Uint8Array(e),f.HEAPU16=W=new Uint16Array(e),f.HEAPU32=L=new Uint32Array(e),f.HEAPF32=new Float32Array(e),f.HEAPF64=q=new Float64Array(e)}w&&(B=f.buffer);var J=f.INITIAL_MEMORY||16777216;if(w)F=f.wasmMemory,B=f.buffer;else if(f.wasmMemory)F=f.wasmMemory;else if(!((F=new WebAssembly.Memory({initial:J/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw U("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),g&&U("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");F&&(B=F.buffer),J=B.byteLength,V(B);var G,Z=[],Q=[],ee=[],te=[];function re(){return C}function ne(){!w&&Ee(Q)}var ae,oe=0,ie=null,ue=null;function se(e){w?postMessage({cmd:"onAbort",arg:e}):f.onAbort&&f.onAbort(e),U(e="Aborted("+e+")"),x=!0,M=1,e+=". Build with -sASSERTIONS for more info.",Yt()}function le(e){return e.startsWith("data:application/octet-stream;base64,")}function fe(e){try{if(e==ae&&S)return new Uint8Array(S);if(d)return d(e);throw"both async and sync fetching of the wasm failed"}catch(e){se(e)}}f.locateFile?le(ae="./duckdb-coi.wasm")||(ae=A(ae)):ae=new URL("./duckdb-coi.wasm",dr.url).toString();var ce={};function de(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function _e(e){var t=Ae.pthreads[e];I(t),Ae.returnWorkerToPool(t)}function he(e,t){return n().fill(0,e,e+t),e}function pe(e){var t=Ae.getNewWorker();if(!t)return 6;Ae.runningWorkers.push(t),Ae.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return t.runPthread=()=>{r.time=performance.now(),t.postMessage(r,e.transferList)},t.loaded&&(t.runPthread(),delete t.runPthread),0}var me={varargs:void 0,get:function(){return me.varargs+=4,o()[me.varargs-4>>>2]},getStr:function(e){return $(e)}};function be(e){if(w)return _t(1,1,e);M=e,re()||(Ae.terminateAllThreads(),f.onExit&&f.onExit(e),x=!0),m(e,new de(e))}function ge(e,t){if(M=e,!t&&w)throw He(e),"unwind";be(e)}var we=ge;function ve(e){if(e instanceof de||"unwind"==e)return M;m(1,e)}var Ae={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init:function(){w?Ae.initWorker():Ae.initMainThread()},initMainThread:function(){for(var e=4;e--;)Ae.allocateUnusedWorker()},initWorker:function(){C=!1},setExitStatus:function(e){M=e},terminateAllThreads:function(){for(var e of Object.values(Ae.pthreads))Ae.returnWorkerToPool(e);for(var e of Ae.unusedWorkers)e.terminate();Ae.unusedWorkers=[]},returnWorkerToPool:function(e){var t=e.pthread_ptr;delete Ae.pthreads[t],Ae.unusedWorkers.push(e),Ae.runningWorkers.splice(Ae.runningWorkers.indexOf(e),1),e.pthread_ptr=0,Kt(t)},receiveObjectTransfer:function(e){},threadInitTLS:function(){Ae.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:function(e,t){e.onmessage=r=>{var n=r.data,a=n.cmd;if(e.pthread_ptr&&(Ae.currentProxiedOperationCallerThread=e.pthread_ptr),n.targetThread&&n.targetThread!=Ot()){var o=Ae.pthreads[n.targetThread];return o?o.postMessage(n,n.transferList):U('Internal error! Worker sent a message "'+a+'" to target pthread '+n.targetThread+", but that thread no longer exists!"),void(Ae.currentProxiedOperationCallerThread=void 0)}"processProxyingQueue"===a?ft(n.queue):"spawnThread"===a?pe(n):"cleanupThread"===a?_e(n.thread):"killThread"===a?function(e){var t=Ae.pthreads[e];delete Ae.pthreads[e],t.terminate(),Kt(e),Ae.runningWorkers.splice(Ae.runningWorkers.indexOf(t),1),t.pthread_ptr=0}(n.thread):"cancelThread"===a?function(e){Ae.pthreads[e].postMessage({cmd:"cancel"})}(n.thread):"loaded"===a?(e.loaded=!0,t&&t(e),e.runPthread&&(e.runPthread(),delete e.runPthread)):"print"===a?T("Thread "+n.threadId+": "+n.text):"printErr"===a?U("Thread "+n.threadId+": "+n.text):"alert"===a?alert("Thread "+n.threadId+": "+n.text):"setimmediate"===n.target?e.postMessage(n):"onAbort"===a?f.onAbort&&f.onAbort(n.arg):a&&U("worker sent an unknown command "+a),Ae.currentProxiedOperationCallerThread=void 0},e.onerror=e=>{throw U("worker sent an error! "+e.filename+":"+e.lineno+": "+e.message),e},g&&(e.on("message",(function(t){e.onmessage({data:t})})),e.on("error",(function(t){e.onerror(t)})),e.on("detachedExit",(function(){}))),e.postMessage({cmd:"load",urlOrBlob:f.mainScriptUrlOrBlob,wasmMemory:F,wasmModule:D})},allocateUnusedWorker:function(){if(f.locateFile){var e=A("duckdb_wasm.worker.js");Ae.unusedWorkers.push(new Worker(e))}else Ae.unusedWorkers.push(new Worker(new URL("duckdb_wasm.worker.js",dr.url)))},getNewWorker:function(){return 0==Ae.unusedWorkers.length&&(Ae.allocateUnusedWorker(),Ae.loadWasmModuleToWorker(Ae.unusedWorkers[0])),Ae.unusedWorkers.pop()}};function Ee(e){for(;e.length>0;)e.shift()(f)}function He(e){if(w)return _t(2,0,e);try{we(e)}catch(e){ve(e)}}f.PThread=Ae,f.establishStackSpace=function(){var e=Ot(),t=o()[e+44>>>2],r=o()[e+48>>>2];zt(t,t-r),Jt(t)};var ke=[];function Re(e,t,r,n){return w?_t(3,1,e,t,r,n):Se(e,t,r,n)}function Se(e,t,r,n){if(typeof SharedArrayBuffer>"u")return U("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];if(w&&0===a.length)return Re(e,t,r,n);var o={startRoutine:r,pthread_ptr:e,arg:n,transferList:a};return w?(o.cmd="spawnThread",postMessage(o,a),0):pe(o)}function Te(e,t,r,n,a){if(w)return _t(4,1,e,t,r,n,a);for(var i=0,u=t?o()[t>>>2]:0,s=t?o()[t+4>>>2]:0,l=r?o()[r>>>2]:0,f=r?o()[r+4>>>2]:0,c=n?o()[n>>>2]:0,d=n?o()[n+4>>>2]:0,_=0,h=0,p=0,m=0,b=0,y=0,g=(t?o()[t>>>2]:0)|(r?o()[r>>>2]:0)|(n?o()[n>>>2]:0),v=(t?o()[t+4>>>2]:0)|(r?o()[r+4>>>2]:0)|(n?o()[n+4>>>2]:0),A=function(e,t,r,n){return e<32?t&n:r&n},E=0;E>>2]=_,o()[t+4>>>2]=h),r&&(o()[r>>>2]=p,o()[r+4>>>2]=m),n&&(o()[n>>>2]=b,o()[n+4>>>2]=y),i}function Ue(){U("missing function: $SOCKFS"),se(-1)}function Ce(){U("missing function: $FS"),se(-1)}function Fe(e){var t=Ue.getSocket(e);if(!t)throw new Ce.ErrnoError(8);return t}function De(e){return(255&e)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255)}function Me(e){var t="",r=0,n=0,a=0,o=0,i=0,u=0,s=[65535&e[0],e[0]>>16,65535&e[1],e[1]>>16,65535&e[2],e[2]>>16,65535&e[3],e[3]>>16],l=!0,f="";for(u=0;u<5;u++)if(0!==s[u]){l=!1;break}if(l){if(f=De(s[6]|s[7]<<16),-1===s[5])return(t="::ffff:")+f;if(0===s[5])return"0.0.0.0"===f&&(f=""),"0.0.0.1"===f&&(f="1"),(t="::")+f}for(r=0;r<8;r++)0===s[r]&&(r-a>1&&(i=0),a=r,i++),i>n&&(o=r-(n=i)+1);for(r=0;r<8;r++)n>1&&0===s[r]&&r>=o&&r>>1],i=Lt((F.buffer!=B&&V(F.buffer),W)[e+2>>>1]);switch(n){case 2:if(16!==t)return{errno:28};r=De(r=o()[e+4>>>2]);break;case 10:if(28!==t)return{errno:28};r=Me(r=[o()[e+8>>>2],o()[e+12>>>2],o()[e+16>>>2],o()[e+20>>>2]]);break;default:return{errno:5}}return{family:n,addr:r,port:i}}function Ie(e){for(var t=e.split("."),r=0;r<4;r++){var n=Number(t[r]);if(isNaN(n))return null;t[r]=n}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0}function Be(e){return parseInt(e)}function Oe(e){var t,r,n,a,o=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(e))return null;if("::"===e)return[0,0,0,0,0,0,0,0];for((e=e.startsWith("::")?e.replace("::","Z:"):e.replace("::",":Z:")).indexOf(".")>0?((t=(e=e.replace(new RegExp("[.]","g"),":")).split(":"))[t.length-4]=Be(t[t.length-4])+256*Be(t[t.length-3]),t[t.length-3]=Be(t[t.length-2])+256*Be(t[t.length-1]),t=t.slice(0,t.length-2)):t=e.split(":"),n=0,a=0,r=0;r=ke.length&&(ke.length=e+1),ke[e]=t=G.get(e)),t}(e)(t);re()?Ae.setExitStatus(r):jt(r)};var Ne={address_map:{id:1,addrs:{},names:{}},lookup_name:function(e){var t,r=Ie(e);if(null!==r||null!==(r=Oe(e)))return e;if(Ne.address_map.addrs[e])t=Ne.address_map.addrs[e];else{var n=Ne.address_map.id++;I(n<65535,"exceeded max address mappings of 65535"),t="172.29."+(255&n)+"."+(65280&n),Ne.address_map.names[t]=e,Ne.address_map.addrs[e]=t}return t},lookup_addr:function(e){return Ne.address_map.names[e]?Ne.address_map.names[e]:null}};function Pe(e,t,r){if(r&&0===e)return null;var n=xe(e,t);if(n.errno)throw new Ce.ErrnoError(n.errno);return n.addr=Ne.lookup_addr(n.addr)||n.addr,n}function We(e,t,r){if(w)return _t(5,1,e,t,r);var n=Fe(e),a=Pe(t,r);return n.sock_ops.bind(n,a.addr,a.port),0}function Xe(e,t,r){if(w)return _t(6,1,e,t,r);var n=Fe(e),a=Pe(t,r);return n.sock_ops.connect(n,a.addr,a.port),0}function Le(e,t,r,n){if(w)return _t(7,1,e,t,r,n)}function qe(e,t,r){return w?_t(8,1,e,t,r):(me.varargs=r,0)}function Ke(e,t){if(w)return _t(9,1,e,t)}function je(e,t,r){if(w)return _t(10,1,e,t,r)}function $e(e,t,r){if(w)return _t(11,1,e,t,r)}function Ye(e,t,r,n,i){switch(t){case 2:r=Ie(r),he(e,16),i&&(o()[i>>>2]=16),a()[e>>>1]=t,o()[e+4>>>2]=r,a()[e+2>>>1]=Wt(n);break;case 10:r=Oe(r),he(e,28),i&&(o()[i>>>2]=28),o()[e>>>2]=t,o()[e+8>>>2]=r[0],o()[e+12>>>2]=r[1],o()[e+16>>>2]=r[2],o()[e+20>>>2]=r[3],a()[e+2>>>1]=Wt(n);break;default:return 5}return 0}function ze(e,t,r){if(w)return _t(12,1,e,t,r);var n=Fe(e);return n.daddr?(Ye(t,n.family,Ne.lookup_name(n.daddr),n.dport,r),0):-53}function Ve(e,t,r,n,a){if(w)return _t(13,1,e,t,r,n,a);var i=Fe(e);return 1===t&&4===r?(o()[n>>>2]=i.error,o()[a>>>2]=4,i.error=null,0):-50}function Je(e,t,r){return w?_t(14,1,e,t,r):(me.varargs=r,0)}function Ge(e,t){if(w)return _t(15,1,e,t)}function Ze(e,t,r){if(w)return _t(16,1,e,t,r)}function Qe(e,t,r,n){if(w)return _t(17,1,e,t,r,n)}function et(e,t,r,n){if(w)return _t(18,1,e,t,r,n);me.varargs=n}function tt(e,t,r,a,o,i){if(w)return _t(19,1,e,t,r,a,o,i);var u=Fe(e),s=u.sock_ops.recvmsg(u,r);return s?(o&&Ye(o,u.family,Ne.lookup_name(s.addr),s.port,i),n().set(s.buffer,t>>>0),s.buffer.byteLength):0}function rt(e,t,r,n){if(w)return _t(20,1,e,t,r,n)}function nt(e){if(w)return _t(21,1,e)}function at(e,t,r,n,a,o){if(w)return _t(22,1,e,t,r,n,a,o)}function ot(e,t,r){if(w)return _t(23,1,e,t,r)}function it(e,t){if(w)return _t(24,1,e,t)}function ut(e,t,r){if(w)return _t(25,1,e,t,r)}var st,lt="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function ft(e){Atomics.store(o(),e>>2,1),Ot()&&qt(e),Atomics.compareExchange(o(),e>>2,1,0)}function ct(e){ct.shown||(ct.shown={}),ct.shown[e]||(ct.shown[e]=1,g&&(e="warning: "+e),U(e))}function dt(e){var t=Vt(),r=e();return Jt(t),r}function _t(e,t){var r=arguments.length-2,n=arguments;return dt((()=>{for(var a=r,o=Gt(8*a),i=o>>3,s=0;s>>0]=l}return Xt(e,a,o,t)}))}f.executeNotifiedProxyingQueue=ft,st=g?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:w?()=>performance.now()-f.__performance_now_clock_drift:()=>performance.now();var ht=[];function pt(e){try{return F.grow(e-B.byteLength+65535>>>16),V(F.buffer),1}catch(e){}}var mt={};function bt(){if(!bt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:p||"./this.program"};for(var t in mt)void 0===mt[t]?delete e[t]:e[t]=mt[t];var r=[];for(var t in e)r.push(t+"="+e[t]);bt.strings=r}return bt.strings}function yt(e,t){if(w)return _t(26,1,e,t);var n=0;return bt().forEach((function(a,o){var u=t+n;i()[e+4*o>>>2]=u,function(e,t,n){for(var a=0;a>>0]=e.charCodeAt(a);r()[t>>>0]=0}(a,u),n+=a.length+1})),0}function gt(e,t){if(w)return _t(27,1,e,t);var r=bt();i()[e>>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),i()[t>>>2]=n,0}function wt(e){return w?_t(28,1,e):52}function vt(e,t,r,n,a,o){return w?_t(29,1,e,t,r,n,a,o):52}function At(e,t,r,n,a,o){return w?_t(30,1,e,t,r,n,a,o):52}function Et(e,t,r,n){return w?_t(31,1,e,t,r,n):52}function Ht(e,t,r,n,a){return w?_t(32,1,e,t,r,n,a):70}function kt(e){return w?_t(33,1,e):52}var Rt=[null,[],[]];function St(e,t){var r=Rt[e];0===t||10===t?((1===e?T:U)(j(r,0)),r.length=0):r.push(t)}function Tt(e,t,r,a){if(w)return _t(34,1,e,t,r,a);for(var o=0,u=0;u>>2],l=i()[t+4>>>2];t+=8;for(var f=0;f>>0]);o+=l}return i()[a>>>2]=o,0}function Ut(e,t,r,n){if(w)return _t(35,1,e,t,r,n);var a,u=0,s=0,l=0,f=0,c=0,d=0;function _(e,t,r,n,a,u){var s,l,f;return l=10===e?28:16,a=10===e?Me(a):De(a),I(!Ye(s=$t(l),e,a,u)),f=$t(32),o()[f+4>>>2]=e,o()[f+8>>>2]=t,o()[f+12>>>2]=r,o()[f+24>>>2]=n,i()[f+20>>>2]=s,o()[f+16>>>2]=10===e?28:16,o()[f+28>>>2]=0,f}if(r&&(l=o()[r>>>2],f=o()[r+4>>>2],c=o()[r+8>>>2],d=o()[r+12>>>2]),c&&!d&&(d=2===c?17:6),!c&&d&&(c=17===d?2:1),0===d&&(d=6),0===c&&(c=1),!e&&!t)return-2;if(-1088&l||0!==r&&2&o()[r>>>2]&&!e)return-1;if(32&l)return-2;if(0!==c&&1!==c&&2!==c)return-7;if(0!==f&&2!==f&&10!==f)return-6;if(t&&(t=$(t),s=parseInt(t,10),isNaN(s)))return 1024&l?-2:-8;if(!e)return 0===f&&(f=2),0==(1&l)&&(u=2===f?Pt(2130706433):[0,0,0,1]),a=_(f,c,d,null,u,s),i()[n>>>2]=a,0;if(null!==(u=Ie(e=$(e))))if(0===f||2===f)f=2;else{if(!(10===f&&8&l))return-2;u=[0,0,Pt(65535),u],f=10}else if(null!==(u=Oe(e))){if(0!==f&&10!==f)return-2;f=10}return null!=u?(a=_(f,c,d,e,u,s),i()[n>>>2]=a,0):4&l?-2:(u=Ie(e=Ne.lookup_name(e)),0===f?f=2:10===f&&(u=[0,0,Pt(65535),u]),a=_(f,c,d,null,u,s),i()[n>>>2]=a,0)}function Ct(e){return e%4==0&&(e%100!=0||e%400==0)}var Ft=[31,29,31,30,31,30,31,31,30,31,30,31],Dt=[31,28,31,30,31,30,31,31,30,31,30,31];function Mt(e,t){r().set(e,t>>>0)}Ae.init();var xt,It=[null,be,He,Re,Te,We,Xe,Le,qe,Ke,je,$e,ze,Ve,Je,Ge,Ze,Qe,et,tt,rt,nt,at,ot,it,ut,yt,gt,wt,vt,At,Et,Ht,kt,Tt,Ut],Bt={b:function(e,t,r,n){se("Assertion failed: "+$(e)+", at: "+[t?$(t):"unknown filename",r,n?$(n):"unknown function"])},v:function(e){Nt(e,!y,1,!b),Ae.threadInitTLS()},s:function(e){w?postMessage({cmd:"cleanupThread",thread:e}):_e(e)},ba:Se,U:Te,Y:We,X:Xe,Q:Le,c:qe,ja:Ke,A:je,fa:$e,S:ze,T:Ve,la:Je,ga:Ge,ka:Ze,ha:Qe,r:et,V:tt,O:rt,p:nt,W:at,m:ot,ia:it,q:ut,_:function(e){},o:function(e,t){se(lt)},$:function(e,t){se(lt)},ca:function(){return 2097152},sa:function(){return!0},Z:function(e,t,r,n){if(e==t)setTimeout((()=>ft(n)));else if(w)postMessage({targetThread:e,cmd:"processProxyingQueue",queue:n});else{var a=Ae.pthreads[e];if(!a)return;a.postMessage({cmd:"processProxyingQueue",queue:n})}return 1},J:function(e,t,r){return-1},f:function(){se("")},H:function(e,t){return globalThis.DUCKDB_RUNTIME.createDirectory(f,e,t)},I:function(e,t){return globalThis.DUCKDB_RUNTIME.checkDirectory(f,e,t)},F:function(e,t){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(f,e,t)},G:function(e,t){return globalThis.DUCKDB_RUNTIME.removeDirectory(f,e,t)},k:function(e){return globalThis.DUCKDB_RUNTIME.closeFile(f,e)},D:function(e,t){return globalThis.DUCKDB_RUNTIME.checkFile(f,e,t)},w:function(e){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(f,e)},E:function(e,t,r,n){return globalThis.DUCKDB_RUNTIME.moveFile(f,e,t,r,n)},L:function(e,t){return globalThis.DUCKDB_RUNTIME.openFile(f,e,t)},g:function(e,t,r,n){return globalThis.DUCKDB_RUNTIME.readFile(f,e,t,r,n)},K:function(e,t){return globalThis.DUCKDB_RUNTIME.truncateFile(f,e,t)},h:function(e,t,r,n){return globalThis.DUCKDB_RUNTIME.writeFile(f,e,t,r,n)},M:function(e){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(e)},C:function(e,t){return globalThis.DUCKDB_RUNTIME.glob(f,e,t)},j:function(e){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(f,e)},N:function(e,t,r,n,a,o){return globalThis.DUCKDB_RUNTIME.callScalarUDF(f,e,t,r,n,a,o)},l:function(){g||y||ct("Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread")},ta:function(){return Date.now()},ma:function(){return 4294901760},d:st,ea:function(e,t,r){n().copyWithin(e>>>0,t>>>0,t+r>>>0)},na:function(){return g?en().cpus().length:navigator.hardwareConcurrency},z:function(e,t,r){ht.length=t;for(var n=r>>3,a=0;a>>0];return(e<0?ce[-e-1]:It[e]).apply(null,ht)},ra:function(e){var t=n().length;if((e>>>=0)<=t)return!1;var r,a=4294901760;if(e>a)return!1;for(var o=1;o<=4;o*=2){var i=t*(1+.2/o);if(i=Math.min(i,e+100663296),pt(Math.min(a,(r=Math.max(e,i))+(65536-r%65536)%65536)))return!0}return!1},u:function(){throw"unwind"},pa:yt,qa:gt,aa:we,e:wt,y:vt,x:At,t:Et,B:Ht,P:kt,i:Tt,n:Ut,da:function e(t,n){e.randomDevice||(e.randomDevice=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return()=>(crypto.getRandomValues(e),e[0])}if(g)try{var t=ye("crypto");return()=>t.randomBytes(1)[0]}catch(e){}return()=>se("randomDevice")}());for(var a=0;a>>0]=e.randomDevice();return 0},R:function(e,t,r,n,a,o,i){var u=xe(e,t);if(u.errno)return-6;var s=u.port,l=u.addr,f=!1;if(r&&n){var c;if(1&i||!(c=Ne.lookup_addr(l))){if(8&i)return-2}else l=c;z(l,r,n)+1>=n&&(f=!0)}return a&&o&&z(s=""+s,a,o)+1>=o&&(f=!0),f?-12:0},a:F||f.wasmMemory,oa:function(e,t,r,n,a){return function(e,t,r,n){var a=o()[n+40>>>2],i={tm_sec:o()[n>>>2],tm_min:o()[n+4>>>2],tm_hour:o()[n+8>>>2],tm_mday:o()[n+12>>>2],tm_mon:o()[n+16>>>2],tm_year:o()[n+20>>>2],tm_wday:o()[n+24>>>2],tm_yday:o()[n+28>>>2],tm_isdst:o()[n+32>>>2],tm_gmtoff:o()[n+36>>>2],tm_zone:a?$(a):""},u=$(r),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)u=u.replace(new RegExp(l,"g"),s[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function p(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function m(e){var t=function(e,t){for(var r=new Date(e.getTime());t>0;){var n=Ct(r.getFullYear()),a=r.getMonth(),o=(n?Ft:Dt)[a];if(!(t>o-r.getDate()))return r.setDate(r.getDate()+t),r;t-=o-r.getDate()+1,r.setDate(1),a<11?r.setMonth(a+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),a=p(r),o=p(n);return h(a,t)<=0?h(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var b={"%a":function(e){return f[e.tm_wday].substring(0,3)},"%A":function(e){return f[e.tm_wday]},"%b":function(e){return c[e.tm_mon].substring(0,3)},"%B":function(e){return c[e.tm_mon]},"%C":function(e){return _((e.tm_year+1900)/100|0,2)},"%d":function(e){return _(e.tm_mday,2)},"%e":function(e){return d(e.tm_mday,2," ")},"%g":function(e){return m(e).toString().substring(2)},"%G":function(e){return m(e)},"%H":function(e){return _(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),_(t,2)},"%j":function(e){return _(e.tm_mday+function(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}(Ct(e.tm_year+1900)?Ft:Dt,e.tm_mon-1),3)},"%m":function(e){return _(e.tm_mon+1,2)},"%M":function(e){return _(e.tm_min,2)},"%n":function(){return"\n"},"%p":function(e){return e.tm_hour>=0&&e.tm_hour<12?"AM":"PM"},"%S":function(e){return _(e.tm_sec,2)},"%t":function(){return"\t"},"%u":function(e){return e.tm_wday||7},"%U":function(e){var t=e.tm_yday+7-e.tm_wday;return _(Math.floor(t/7),2)},"%V":function(e){var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4!=r&&(3!=r||!Ct(e.tm_year))&&(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&Ct(e.tm_year%400-1))&&t++}return _(t,2)},"%w":function(e){return e.tm_wday},"%W":function(e){var t=e.tm_yday+7-(e.tm_wday+6)%7;return _(Math.floor(t/7),2)},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,r=t>=0;return t=(t=Math.abs(t)/60)/60*100+t%60,(r?"+":"-")+String("0000"+t).slice(-4)},"%Z":function(e){return e.tm_zone},"%%":function(){return"%"}};for(var l in u=u.replace(/%%/g,"\0\0"),b)u.includes(l)&&(u=u.replace(new RegExp(l,"g"),b[l](i)));var y=function(e,t,r){var n=function(e){for(var t=0,r=0;r=55296&&n<=57343?(t+=4,++r):t+=3}return t}(e)+1,a=new Array(n);return Y(e,a,0,a.length),a}(u=u.replace(/\0\0/g,"%"));return y.length>t?0:(Mt(y,e),y.length-1)}(e,t,r,n)}},Ot=(function(){var e={a:Bt};function t(e,t){var r=e.exports;if(f.asm=r,function(e){Ae.tlsInitFunctions.push(e)}(f.asm.hb),G=f.asm.wa,function(e){Q.unshift(e)}(f.asm.ua),D=t,!w){var n=Ae.unusedWorkers.length;Ae.unusedWorkers.forEach((function(e){Ae.loadWasmModuleToWorker(e,(function(){--n||function(e){if(oe--,f.monitorRunDependencies&&f.monitorRunDependencies(oe),0==oe&&(null!==ie&&(clearInterval(ie),ie=null),ue)){var t=ue;ue=null,t()}}()}))}))}}function r(e){t(e.instance,e.module)}function n(t){return(S||!b&&!y||"function"!=typeof fetch?Promise.resolve().then((function(){return fe(ae)})):fetch(ae,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ae+"'";return e.arrayBuffer()})).catch((function(){return fe(ae)}))).then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){U("failed to asynchronously prepare wasm: "+e),se(e)}))}if(w||(oe++,f.monitorRunDependencies&&f.monitorRunDependencies(oe)),f.instantiateWasm)try{return f.instantiateWasm(e,t)}catch(e){U("Module.instantiateWasm callback failed with error: "+e),l(e)}(S||"function"!=typeof WebAssembly.instantiateStreaming||le(ae)||g||"function"!=typeof fetch?n(r):fetch(ae,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return U("wasm streaming compile failed: "+e),U("falling back to ArrayBuffer instantiation"),n(r)}))}))).catch(l)}(),f.___wasm_call_ctors=function(){return(f.___wasm_call_ctors=f.asm.ua).apply(null,arguments)},f._main=function(){return(f._main=f.asm.va).apply(null,arguments)},f._duckdb_web_fs_glob_add_path=function(){return(f._duckdb_web_fs_glob_add_path=f.asm.xa).apply(null,arguments)},f._duckdb_web_clear_response=function(){return(f._duckdb_web_clear_response=f.asm.ya).apply(null,arguments)},f._duckdb_web_fail_with=function(){return(f._duckdb_web_fail_with=f.asm.za).apply(null,arguments)},f._duckdb_web_reset=function(){return(f._duckdb_web_reset=f.asm.Aa).apply(null,arguments)},f._duckdb_web_connect=function(){return(f._duckdb_web_connect=f.asm.Ba).apply(null,arguments)},f._duckdb_web_disconnect=function(){return(f._duckdb_web_disconnect=f.asm.Ca).apply(null,arguments)},f._duckdb_web_flush_files=function(){return(f._duckdb_web_flush_files=f.asm.Da).apply(null,arguments)},f._duckdb_web_flush_file=function(){return(f._duckdb_web_flush_file=f.asm.Ea).apply(null,arguments)},f._duckdb_web_open=function(){return(f._duckdb_web_open=f.asm.Fa).apply(null,arguments)},f._duckdb_web_get_global_file_info=function(){return(f._duckdb_web_get_global_file_info=f.asm.Ga).apply(null,arguments)},f._duckdb_web_collect_file_stats=function(){return(f._duckdb_web_collect_file_stats=f.asm.Ha).apply(null,arguments)},f._duckdb_web_export_file_stats=function(){return(f._duckdb_web_export_file_stats=f.asm.Ia).apply(null,arguments)},f._duckdb_web_fs_drop_file=function(){return(f._duckdb_web_fs_drop_file=f.asm.Ja).apply(null,arguments)},f._duckdb_web_fs_drop_files=function(){return(f._duckdb_web_fs_drop_files=f.asm.Ka).apply(null,arguments)},f._duckdb_web_fs_glob_file_infos=function(){return(f._duckdb_web_fs_glob_file_infos=f.asm.La).apply(null,arguments)},f._duckdb_web_fs_get_file_info_by_id=function(){return(f._duckdb_web_fs_get_file_info_by_id=f.asm.Ma).apply(null,arguments)},f._duckdb_web_fs_get_file_info_by_name=function(){return(f._duckdb_web_fs_get_file_info_by_name=f.asm.Na).apply(null,arguments)},f._duckdb_web_fs_register_file_url=function(){return(f._duckdb_web_fs_register_file_url=f.asm.Oa).apply(null,arguments)},f._duckdb_web_fs_register_file_buffer=function(){return(f._duckdb_web_fs_register_file_buffer=f.asm.Pa).apply(null,arguments)},f._duckdb_web_copy_file_to_buffer=function(){return(f._duckdb_web_copy_file_to_buffer=f.asm.Qa).apply(null,arguments)},f._duckdb_web_copy_file_to_path=function(){return(f._duckdb_web_copy_file_to_path=f.asm.Ra).apply(null,arguments)},f._duckdb_web_get_version=function(){return(f._duckdb_web_get_version=f.asm.Sa).apply(null,arguments)},f._duckdb_web_get_feature_flags=function(){return(f._duckdb_web_get_feature_flags=f.asm.Ta).apply(null,arguments)},f._duckdb_web_tokenize=function(){return(f._duckdb_web_tokenize=f.asm.Ua).apply(null,arguments)},f._duckdb_web_udf_scalar_create=function(){return(f._duckdb_web_udf_scalar_create=f.asm.Va).apply(null,arguments)},f._duckdb_web_prepared_create=function(){return(f._duckdb_web_prepared_create=f.asm.Wa).apply(null,arguments)},f._duckdb_web_prepared_close=function(){return(f._duckdb_web_prepared_close=f.asm.Xa).apply(null,arguments)},f._duckdb_web_prepared_run=function(){return(f._duckdb_web_prepared_run=f.asm.Ya).apply(null,arguments)},f._duckdb_web_prepared_send=function(){return(f._duckdb_web_prepared_send=f.asm.Za).apply(null,arguments)},f._duckdb_web_query_run=function(){return(f._duckdb_web_query_run=f.asm._a).apply(null,arguments)},f._duckdb_web_pending_query_start=function(){return(f._duckdb_web_pending_query_start=f.asm.$a).apply(null,arguments)},f._duckdb_web_pending_query_poll=function(){return(f._duckdb_web_pending_query_poll=f.asm.ab).apply(null,arguments)},f._duckdb_web_pending_query_cancel=function(){return(f._duckdb_web_pending_query_cancel=f.asm.bb).apply(null,arguments)},f._duckdb_web_query_fetch_results=function(){return(f._duckdb_web_query_fetch_results=f.asm.cb).apply(null,arguments)},f._duckdb_web_get_tablenames=function(){return(f._duckdb_web_get_tablenames=f.asm.db).apply(null,arguments)},f._duckdb_web_insert_arrow_from_ipc_stream=function(){return(f._duckdb_web_insert_arrow_from_ipc_stream=f.asm.eb).apply(null,arguments)},f._duckdb_web_insert_csv_from_path=function(){return(f._duckdb_web_insert_csv_from_path=f.asm.fb).apply(null,arguments)},f._duckdb_web_insert_json_from_path=function(){return(f._duckdb_web_insert_json_from_path=f.asm.gb).apply(null,arguments)},f.__emscripten_tls_init=function(){return(f.__emscripten_tls_init=f.asm.hb).apply(null,arguments)},f._pthread_self=function(){return(Ot=f._pthread_self=f.asm.ib).apply(null,arguments)}),Nt=f.__emscripten_thread_init=function(){return(Nt=f.__emscripten_thread_init=f.asm.jb).apply(null,arguments)},Pt=(f.__emscripten_thread_crashed=function(){return(f.__emscripten_thread_crashed=f.asm.kb).apply(null,arguments)},f._htonl=function(){return(Pt=f._htonl=f.asm.lb).apply(null,arguments)}),Wt=f._htons=function(){return(Wt=f._htons=f.asm.mb).apply(null,arguments)},Xt=f._emscripten_run_in_main_runtime_thread_js=function(){return(Xt=f._emscripten_run_in_main_runtime_thread_js=f.asm.nb).apply(null,arguments)},Lt=f._ntohs=function(){return(Lt=f._ntohs=f.asm.ob).apply(null,arguments)},qt=f.__emscripten_proxy_execute_task_queue=function(){return(qt=f.__emscripten_proxy_execute_task_queue=f.asm.pb).apply(null,arguments)},Kt=f.__emscripten_thread_free_data=function(){return(Kt=f.__emscripten_thread_free_data=f.asm.qb).apply(null,arguments)},jt=f.__emscripten_thread_exit=function(){return(jt=f.__emscripten_thread_exit=f.asm.rb).apply(null,arguments)},$t=f._malloc=function(){return($t=f._malloc=f.asm.sb).apply(null,arguments)},Yt=(f._free=function(){return(f._free=f.asm.tb).apply(null,arguments)},f.___trap=function(){return(Yt=f.___trap=f.asm.ub).apply(null,arguments)}),zt=f._emscripten_stack_set_limits=function(){return(zt=f._emscripten_stack_set_limits=f.asm.vb).apply(null,arguments)},Vt=f.stackSave=function(){return(Vt=f.stackSave=f.asm.wb).apply(null,arguments)},Jt=f.stackRestore=function(){return(Jt=f.stackRestore=f.asm.xb).apply(null,arguments)},Gt=f.stackAlloc=function(){return(Gt=f.stackAlloc=f.asm.yb).apply(null,arguments)};function Qt(e){if(e=e||h,!(oe>0)){if(w)return s(f),ne(),void postMessage({cmd:"loaded"});(function(){if(f.preRun)for("function"==typeof f.preRun&&(f.preRun=[f.preRun]);f.preRun.length;)e=f.preRun.shift(),Z.unshift(e);var e;Ee(Z)})(),oe>0||(f.setStatus?(f.setStatus("Running..."),setTimeout((function(){setTimeout((function(){f.setStatus("")}),1),t()}),1)):t())}function t(){xt||(xt=!0,f.calledRun=!0,!x&&(ne(),w||Ee(ee),s(f),f.onRuntimeInitialized&&f.onRuntimeInitialized(),er&&function(e){var t=f._main;try{ge(t(0,0),!0)}catch(e){return ve(e)}}(),function(){if(!w){if(f.postRun)for("function"==typeof f.postRun&&(f.postRun=[f.postRun]);f.postRun.length;)e=f.postRun.shift(),te.unshift(e);Ee(te)}var e}()))}}if(f.keepRuntimeAlive=re,f.wasmMemory=F,f.ccall=function(e,t,r,n,a){var o={string:e=>{var t=0;if(null!=e&&0!==e){var r=1+(e.length<<2);z(e,t=Gt(r),r)}return t},array:e=>{var t=Gt(e.length);return Mt(e,t),t}},i=function(e){return f["_"+e]}(e),u=[],s=0;if(n)for(var l=0;l0;)f.preInit.pop()();var er=!0;return f.noInitialRun&&(er=!1),Qt(),t.ready}})(),hr=Ni})),sn=we(((exports,module)=>{(function(){var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(r){return new Sha256(t,!0).update(r)[e]()}},createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r>6,i[s++]=128|63&o):o<55296||o>=57344?(i[s++]=224|o>>12,i[s++]=128|o>>6&63,i[s++]=128|63&o):(o=65536+((1023&o)<<10|1023&e.charCodeAt(++n)),i[s++]=240|o>>18,i[s++]=128|o>>12&63,i[s++]=128|o>>6&63,i[s++]=128|63&o);e=i}else{if("object"!==a)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var l=[],f=[];for(n=0;n<64;++n){var c=e[n]||0;l[n]=92^c,f[n]=54^c}Sha256.call(this,t,r),this.update(f),this.oKeyPad=l,this.inner=!0,this.sharedMemory=r}Sha256.prototype.update=function(e){if(!this.finalized){var t,r=typeof e;if("string"!==r){if("object"!==r)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var n,a,o=0,i=e.length,u=this.blocks;o>2]|=e[o]<>2]|=n<>2]|=(192|n>>6)<>2]|=(128|63&n)<=57344?(u[a>>2]|=(224|n>>12)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<>2]|=(240|n>>18)<>2]|=(128|n>>12&63)<>2]|=(128|n>>6&63)<>2]|=(128|63&n)<=64?(this.block=u[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,r,n,a,o,i,u,s,l=this.h0,f=this.h1,c=this.h2,d=this.h3,_=this.h4,h=this.h5,p=this.h6,m=this.h7,b=this.blocks;for(e=16;e<64;++e)t=((a=b[e-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,r=((a=b[e-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,b[e]=b[e-16]+t+b[e-7]+r<<0;for(s=f&c,e=0;e<64;e+=4)this.first?(this.is224?(o=300032,m=(a=b[0]-1413257819)-150054599<<0,d=a+24177077<<0):(o=704751109,m=(a=b[0]-210244248)-1521486534<<0,d=a+143694565<<0),this.first=!1):(t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),n=(o=l&f)^l&c^s,m=d+(a=m+(r=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&h^~_&p)+K[e]+b[e])<<0,d=a+(t+n)<<0),t=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),n=(i=d&l)^d&f^o,p=c+(a=p+(r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&_^~m&h)+K[e+1]+b[e+1])<<0,t=((c=a+(t+n)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),n=(u=c&d)^c&l^i,h=f+(a=h+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&m^~p&_)+K[e+2]+b[e+2])<<0,t=((f=a+(t+n)<<0)>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10),n=(s=f&c)^f&d^u,_=l+(a=_+(r=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&p^~h&m)+K[e+3]+b[e+3])<<0,l=a+(t+n)<<0;this.h0=this.h0+l<<0,this.h1=this.h1+f<<0,this.h2=this.h2+c<<0,this.h3=this.h3+d<<0,this.h4=this.h4+_<<0,this.h5=this.h5+h<<0,this.h6=this.h6+p<<0,this.h7=this.h7+m<<0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,a=this.h4,o=this.h5,i=this.h6,u=this.h7,s=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i];return this.is224||(s+=HEX_CHARS[u>>28&15]+HEX_CHARS[u>>24&15]+HEX_CHARS[u>>20&15]+HEX_CHARS[u>>16&15]+HEX_CHARS[u>>12&15]+HEX_CHARS[u>>8&15]+HEX_CHARS[u>>4&15]+HEX_CHARS[15&u]),s},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,a=this.h4,o=this.h5,i=this.h6,u=this.h7,s=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o,i>>24&255,i>>16&255,i>>8&255,255&i];return this.is224||s.push(u>>24&255,u>>16&255,u>>8&255,255&u),s},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define((function(){return exports})))})()})),B={},nn="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;nn&&(pr=cr(),mr=pr.parentPort,mr.on("message",(e=>vr({data:e}))),wr=fr(),Object.assign(global,{self:global,require:ye,Module:B,location:{href:__filename},Worker:pr.Worker,importScripts:function(e){(0,eval)(wr.readFileSync(e,"utf8"))},postMessage:function(e){mr.postMessage(e)},performance:global.performance||{now:function(){return Date.now()}}}));var pr,mr,wr,gr=!1,yr=[];function Pi(){var e=Array.prototype.slice.call(arguments).join(" ");nn?wr.writeSync(2,e+"\n"):console.error(e)}function Oi(){var e=Array.prototype.slice.call(arguments).join(" ");postMessage({cmd:"alert",text:e,threadId:B._pthread_self()})}var tn=Pi;self.alert=Oi,B.instantiateWasm=(e,t)=>{var r=new WebAssembly.Instance(B.wasmModule,e);return t(r),B.wasmModule=null,r.exports},self.onunhandledrejection=e=>{var t;throw null!=(t=e.reason)?t:e},self.onmessage=e=>{try{if("load"===e.data.cmd)B.wasmModule=e.data.wasmModule,B.wasmMemory=e.data.wasmMemory,B.buffer=B.wasmMemory.buffer,B.ENVIRONMENT_IS_PTHREAD=!0,(e.data.urlOrBlob?Promise.resolve().then((()=>lr(ye(e.data.urlOrBlob)))):Promise.resolve().then((()=>(br(),rn)))).then((function(e){return e.default(B)})).then((function(e){B=e}));else if("run"===e.data.cmd){B.__performance_now_clock_drift=performance.now()-e.data.time,B.__emscripten_thread_init(e.data.pthread_ptr,0,0,1),B.establishStackSpace(),B.PThread.receiveObjectTransfer(e.data),B.PThread.threadInitTLS(),gr||(yr.forEach((e=>{B.executeNotifiedProxyingQueue(e)})),yr=[],gr=!0);try{B.invokeEntryPoint(e.data.start_routine,e.data.arg)}catch(e){if("unwind"!=e){if(!(e instanceof B.ExitStatus))throw e;B.keepRuntimeAlive()||B.__emscripten_thread_exit(e.status)}}}else"cancel"===e.data.cmd?B._pthread_self()&&B.__emscripten_thread_exit(-1):"setimmediate"===e.data.target||("processProxyingQueue"===e.data.cmd?gr?B.executeNotifiedProxyingQueue(e.data.queue):yr.push(e.data.queue):e.data.cmd&&(tn("worker.js received unknown command "+e.data.cmd),tn(e.data)))}catch(e){throw B.__emscripten_thread_crashed&&B.__emscripten_thread_crashed(),e}};var vr=self.onmessage;function an(){return B}function un(e){B=e}br();var de=lr(sn()),on=function(e,t,r){var n;if(null!=(n=null==e?void 0:e.endpoint)&&n.startsWith("http")){let t=`${null==e?void 0:e.endpoint}`,r=t.indexOf("://")+3;return t.substring(r)}return null!=e&&e.endpoint?`${r}.${null==e?void 0:e.endpoint}`:`${r}.s3.amazonaws.com`};function Wi(e,t,r){var n,a,o,i;let u=ln(t);return{url:u.path,query:"",host:on(e,t,u.bucket),region:null!=(n=null==e?void 0:e.region)?n:"",service:"s3",method:r,accessKeyId:null!=(a=null==e?void 0:e.accessKeyId)?a:"",secretAccessKey:null!=(o=null==e?void 0:e.secretAccessKey)?o:"",sessionToken:null!=(i=null==e?void 0:e.sessionToken)?i:"",dateNow:(new Date).toISOString().replace(/-/g,"").split("T")[0],datetimeNow:(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function Xi(e,t=!1){let r="0123456789ABCDEF",n="";for(let a=0;a="A"&&o<="Z"||o>="a"&&o<="z"||o>="0"&&o<="9"||"_"==o||"-"==o||"~"==o||"."==o?n+=o:"/"==o?n+=t?"%2F":o:(n+="%",n+=r[o.charCodeAt(0)>>4],n+=r[15&o.charCodeAt(0)])}return n}function qi(e,t=null){var r;let n=null!=(r=null==t?void 0:t.contentHash)?r:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",a=new Map;a.set("x-amz-date",e.datetimeNow),a.set("x-amz-content-sha256",n),e.sessionToken&&a.set("x-amz-security-token",e.sessionToken);let o="";null!=t&&t.contentType&&(o+="content-type;"),o+="host;x-amz-content-sha256;x-amz-date",e.sessionToken&&(o+=";x-amz-security-token");let i=e.method+"\n"+Xi(e.url)+"\n"+e.query;null!=t&&t.contentType&&(i+="\ncontent-type:"+(null==t?void 0:t.contentType)),i+="\nhost:"+e.host+"\nx-amz-content-sha256:"+n+"\nx-amz-date:"+e.datetimeNow,e.sessionToken&&e.sessionToken.length>0&&(i+="\nx-amz-security-token:"+e.sessionToken),i+="\n\n"+o+"\n"+n;let u=(0,de.sha256)(i),s="AWS4-HMAC-SHA256\n"+e.datetimeNow+"\n"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request\n"+u,l="AWS4"+e.secretAccessKey,f=de.sha256.hmac.arrayBuffer(l,e.dateNow),c=de.sha256.hmac.arrayBuffer(f,e.region),d=de.sha256.hmac.arrayBuffer(c,e.service),_=de.sha256.hmac.arrayBuffer(d,"aws4_request"),h=de.sha256.hmac(_,s);return a.set("Authorization","AWS4-HMAC-SHA256 Credential="+e.accessKeyId+"/"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request, SignedHeaders="+o+", Signature="+h),a}var Ki=function(e,t,r,n=null,a=null){return qi(Wi(e,t,r),{contentType:n,contentHash:a?de.sha256.hex(a):null})};function he(e,t,r,n,a=null,o=null){((null==t?void 0:t.accessKeyId)||(null==t?void 0:t.sessionToken))&&(Ki(t,r,n,a,o).forEach(((t,r)=>{e.setRequestHeader(r,t)})),a&&e.setRequestHeader("content-type",a))}function ln(e){if(0!=e.indexOf("s3://"))throw new Error("URL needs to start with s3://");let t=e.indexOf("/",5);if(-1==t)throw new Error("URL needs to contain a '/' after the host");let r=e.substring(5,t);if(!r)throw new Error("URL needs to contain a bucket name");let n=e.substring(t);if(!n)throw new Error("URL needs to contain key");return{bucket:r,path:n}}function be(e,t){var r;let n=ln(t);return null!=(r=null==e?void 0:e.endpoint)&&r.startsWith("http")?`${null==e?void 0:e.endpoint}/${n.bucket}`+n.path:"https://"+on(e,t,n.bucket)+n.path}var _n=new TextEncoder,cn=new TextDecoder("utf-8");function Er(e,t,r){let n=_n.encode(r),a=e._malloc(n.byteLength),o=e.HEAPU8.subarray(a,a+n.byteLength);o.set(n),e.HEAPF64[0+(t>>3)]=1,e.HEAPF64[1+(t>>3)]=a,e.HEAPF64[2+(t>>3)]=o.byteLength}function Fr(e){switch(e){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function Ar(e,t,r,n){let a=e.HEAPU8.subarray(t,t+n*Fr(r));switch(r){case"UINT8":return new Uint8Array(a.buffer,a.byteOffset,n);case"INT8":return new Int8Array(a.buffer,a.byteOffset,n);case"INT32":return new Int32Array(a.buffer,a.byteOffset,n);case"FLOAT":return new Float32Array(a.buffer,a.byteOffset,n);case"DOUBLE":case"VARCHAR":return new Float64Array(a.buffer,a.byteOffset,n);default:return new Array(0)}}function fn(e,t,r){let n=e.HEAPU8.subarray(t,t+r);return new Uint8Array(n.buffer,n.byteOffset,r)}function Ye(e,t,r){let n=e.HEAPU8.subarray(t,t+8*r);return new Float64Array(n.buffer,n.byteOffset,r)}function dn(e,t,r,n,a,o,i,u){try{let s=e._udfFunctions.get(n);if(!s)return void Er(t,r,"Unknown UDF with id: "+n);let l=cn.decode(t.HEAPU8.subarray(a,a+o)),f=JSON.parse(l),c=Ye(t,i,u/8),d=e=>{var r;let n=null;switch(void 0!==e.validityBuffer&&(n=fn(t,c[e.validityBuffer],f.rows)),e.physicalType){case"VARCHAR":{if(null===e.dataBuffer||void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(null===e.lengthBuffer||void 0===e.lengthBuffer)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let r=Ar(t,c[e.dataBuffer],e.physicalType,f.rows),a=[],o=Ye(t,c[e.lengthBuffer],f.rows);for(let e=0;ea[e]}case"STRUCT":{let t={},a=[];for(let n=0;n<((null==(r=e.children)?void 0:r.length)||0);++n){let r=e.children[n],o=d(r);a.push((e=>{t[r.name]=o(e)}))}return null!=n?e=>{if(!n[e])return null;for(let t of a)t(e);return t}:e=>{for(let t of a)t(e);return t}}default:{if(void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for argument of type: "+e.physicalType);let r=Ar(t,c[e.dataBuffer],e.physicalType,f.rows);return null!=n?e=>n[e]?r[e]:null:e=>r[e]}}},_=[];for(let e=0;e>3)]=0,t.HEAPF64[1+(r>>3)]=E,t.HEAPF64[2+(r>>3)]=0}catch(e){Er(t,r,e.toString())}}function ji(){let e=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),e.decode(t))}var Yi=ji();function oe(e,t){console.error(`FAIL WITH: ${t}`),e.ccall("duckdb_web_fail_with",null,["string"],[t])}function ue(e,t,r){return Yi(e.HEAPU8.subarray(t,t+r))}function kr(e,t,r,n){let a=e.stackSave(),o=e.stackAlloc(24);r.unshift("number"),n.unshift(o),e.ccall(t,null,r,n);let i=e.HEAPF64[0+(o>>3)],u=e.HEAPF64[1+(o>>3)],s=e.HEAPF64[2+(o>>3)];return e.stackRestore(a),[i,u,s]}function Sr(e){e.ccall("duckdb_web_clear_response",null,[],[])}var x={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(e,t){try{let r=x._fileInfoCache.get(t),[n,a,o]=kr(e,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(null==r?void 0:r.cacheEpoch)||0]);if(0!==n)return null;if(0===o)return r;let i=ue(e,a,o);Sr(e);let u=JSON.parse(i);if(null==u)return null;let s={...u,blob:null};return x._fileInfoCache.set(t,s),s}catch(e){return null}},getGlobalFileInfo(e){var t;try{let[r,n,a]=kr(e,"duckdb_web_get_global_file_info",["number"],[(null==(t=x._globalFileInfo)?void 0:t.cacheEpoch)||0]);if(0!==r)return null;if(0===a)return x._globalFileInfo;let o=ue(e,n,a);Sr(e);let i=JSON.parse(o);return null==i?null:(x._globalFileInfo={...i,blob:null},x._globalFileInfo)}catch(e){return null}},testPlatformFeature:(e,t)=>1===t?typeof BigInt64Array<"u":(console.warn(`test for unknown feature: ${t}`),!1),getDefaultDataProtocol:e=>2,openFile:(e,t,r)=>{var n;try{x._fileInfoCache.delete(t);let a=x.getFileInfo(e,t);switch(null==a?void 0:a.dataProtocol){case 4:case 5:{if(1&r&&2&r)throw new Error(`Opening file ${a.fileName} failed: cannot open file with both read and write flags set`);if(32&r)throw new Error(`Opening file ${a.fileName} failed: appending to HTTP/S3 files is not supported`);if(2&r){let t=new XMLHttpRequest;if(5==a.dataProtocol?(t.open("HEAD",be(a.s3Config,a.dataUrl),!1),he(t,a.s3Config,a.dataUrl,"HEAD")):t.open("HEAD",a.dataUrl,!1),t.send(null),200!=t.status&&404!=t.status)throw new Error(`Opening file ${a.fileName} failed: Unexpected return status from server (${t.status})`);if(404==t.status&&!(8&r||16&r))throw new Error(`Opening file ${a.fileName} failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag.`);let n=e._malloc(1),o=new Uint8Array;e.HEAPU8.set(o,n);let i=e._malloc(16);return e.HEAPF64[0+(i>>3)]=1,e.HEAPF64[1+(i>>3)]=n,i}if(1!=r)throw new Error(`Opening file ${a.fileName} failed: unsupported file flags: ${r}`);let t=null;try{let t=new XMLHttpRequest;5==a.dataProtocol?(t.open("HEAD",be(a.s3Config,a.dataUrl),!1),he(t,a.s3Config,a.dataUrl,"HEAD")):t.open("HEAD",a.dataUrl,!1),t.setRequestHeader("Range","bytes=0-"),t.send(null);let r=t.getResponseHeader("Content-Length");if(206==t.status&&null!==r){let t=e._malloc(16);return e.HEAPF64[0+(t>>3)]=+r,e.HEAPF64[1+(t>>3)]=0,t}}catch(e){t=e,console.warn(`HEAD request with range header failed: ${e}`)}if(a.allowFullHttpReads){console.warn(`falling back to full HTTP read for: ${a.dataUrl}`);let t=new XMLHttpRequest;if(5==a.dataProtocol?(t.open("GET",be(a.s3Config,a.dataUrl),!1),he(t,a.s3Config,a.dataUrl,"GET")):t.open("GET",a.dataUrl,!1),t.responseType="arraybuffer",t.send(null),200==t.status){let r=e._malloc(t.response.byteLength),n=new Uint8Array(t.response,0,t.response.byteLength);e.HEAPU8.set(n,r);let a=e._malloc(16);return e.HEAPF64[0+(a>>3)]=t.response.byteLength,e.HEAPF64[1+(a>>3)]=r,a}}if(null!=t)throw new Error(`Reading file ${a.fileName} failed with error: ${t}`);return 0}case 2:{let t=null==(n=x._files)?void 0:n.get(a.fileName);if(t){let r=e._malloc(16);return e.HEAPF64[0+(r>>3)]=t.size,e.HEAPF64[1+(r>>3)]=0,r}console.warn(`Buffering missing file: ${a.fileName}`);let r=e._malloc(16),o=e._malloc(1);return e.HEAPF64[0+(r>>3)]=1,e.HEAPF64[1+(r>>3)]=o,r}}}catch(t){console.error(t.toString()),oe(e,t.toString())}return 0},glob:(e,t,r)=>{try{let n=ue(e,t,r);if(n.startsWith("http")||n.startsWith("s3://")){let t=new XMLHttpRequest;if(n.startsWith("s3://")){let r=x.getGlobalFileInfo(e);t.open("HEAD",be(null==r?void 0:r.s3Config,n),!1),he(t,null==r?void 0:r.s3Config,n,"HEAD")}else t.open("HEAD",n,!1);if(t.send(null),200!=t.status&&206!==t.status)return void oe(e,`HEAD request failed: ${n}`);e.ccall("duckdb_web_fs_glob_add_path",null,["string"],[n])}}catch(t){return oe(e,t.toString()),0}},checkFile:(e,t,r)=>{try{let n=ue(e,t,r);if(n.startsWith("http")||n.startsWith("s3://")){let t=new XMLHttpRequest;if(n.startsWith("s3://")){let r=x.getGlobalFileInfo(e);t.open("HEAD",be(null==r?void 0:r.s3Config,n),!1),he(t,null==r?void 0:r.s3Config,n,"HEAD")}else t.open("HEAD",n,!1);return t.send(null),206==t.status||200==t.status}}catch(e){return!1}return!1},syncFile:(e,t)=>{},closeFile:(e,t)=>{var r;let n=x.getFileInfo(e,t);switch(x._fileInfoCache.delete(t),null==n?void 0:n.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let e=null==(r=x._files)?void 0:r.get(n.fileName);if(!e)throw new Error(`No OPFS access handle registered with name: ${n.fileName}`);return e.flush()}}},truncateFile:(e,t,r)=>{var n;let a=x.getFileInfo(e,t);switch(null==a?void 0:a.dataProtocol){case 4:return void oe(e,"Cannot truncate a http file");case 5:return void oe(e,"Cannot truncate an s3 file");case 0:case 1:case 2:return void oe(e,"truncateFile not implemented");case 3:{let e=null==(n=x._files)?void 0:n.get(a.fileName);if(!e)throw new Error(`No OPFS access handle registered with name: ${a.fileName}`);return e.truncate(r)}}return 0},readFile(e,t,r,n,a){var o,i;try{let u=x.getFileInfo(e,t);switch(null==u?void 0:u.dataProtocol){case 4:case 5:if(!u.dataUrl)throw new Error(`Missing data URL for file ${t}`);try{let t=new XMLHttpRequest;if(5==u.dataProtocol?(t.open("GET",be(null==u?void 0:u.s3Config,u.dataUrl),!1),he(t,null==u?void 0:u.s3Config,u.dataUrl,"GET")):t.open("GET",u.dataUrl,!1),t.responseType="arraybuffer",t.setRequestHeader("Range",`bytes=${a}-${a+n-1}`),t.send(null),206==t.status||200==t.status&&n==t.response.byteLength&&0==a){let a=new Uint8Array(t.response,0,Math.min(t.response.byteLength,n));return e.HEAPU8.set(a,r),a.byteLength}throw 200==t.status?new Error(`Range request for ${u.dataUrl} did not return a partial response: ${t.status} "${t.statusText}"`):new Error(`Range request for ${u.dataUrl} did returned non-success status: ${t.status} "${t.statusText}"`)}catch(e){throw new Error(`Range request for ${u.dataUrl} failed with error: ${e}"`)}case 2:{let t=null==(o=x._files)?void 0:o.get(u.fileName);if(!t)throw new Error(`No HTML5 file registered with name: ${u.fileName}`);let i=t.slice(a,a+n),s=new Uint8Array((new FileReaderSync).readAsArrayBuffer(i));return e.HEAPU8.set(s,r),s.byteLength}case 3:{let t=null==(i=x._files)?void 0:i.get(u.fileName);if(!t)throw new Error(`No OPFS access handle registered with name: ${u.fileName}`);let o=e.HEAPU8.subarray(r,r+n);return t.read(o,{at:a})}}return 0}catch(t){return oe(e,t.toString()),0}},writeFile:(e,t,r,n,a)=>{var o;let i=x.getFileInfo(e,t);switch(null==i?void 0:i.dataProtocol){case 4:return oe(e,"Cannot write to HTTP file"),0;case 5:{let t=e.HEAPU8.subarray(r,r+n),a=new XMLHttpRequest;return a.open("PUT",be(null==i?void 0:i.s3Config,i.dataUrl),!1),he(a,null==i?void 0:i.s3Config,i.dataUrl,"PUT","",t),a.send(t),n}case 2:return oe(e,"cannot write using the html5 file reader api"),0;case 3:{let t=null==(o=x._files)?void 0:o.get(i.fileName);if(!t)throw new Error(`No OPFS access handle registered with name: ${i.fileName}`);let u=e.HEAPU8.subarray(r,r+n);return t.write(u,{at:a})}}return 0},getLastFileModificationTime:(e,t)=>{var r;let n=x.getFileInfo(e,t);switch(null==n?void 0:n.dataProtocol){case 2:if(!(null==(r=x._files)?void 0:r.get(n.fileName)))throw Error(`No handle available for file: ${n.fileName}`);return 0;case 4:case 5:return(new Date).getTime()}return 0},checkDirectory:(e,t,r)=>{let n=ue(e,t,r);return console.log(`checkDirectory: ${n}`),!1},createDirectory:(e,t,r)=>{let n=ue(e,t,r);console.log(`createDirectory: ${n}`)},removeDirectory:(e,t,r)=>{let n=ue(e,t,r);console.log(`removeDirectory: ${n}`)},listDirectoryEntries:(e,t,r)=>{let n=ue(e,t,r);return console.log(`listDirectoryEntries: ${n}`),!1},moveFile:(e,t,r,n,a)=>{var o,i;let u=ue(e,t,r),s=ue(e,n,a),l=null==(o=x._files)?void 0:o.get(u);void 0!==l&&(x._files.delete(l),x._files.set(s,l));for(let[e,t]of(null==(i=x._fileInfoCache)?void 0:i.entries())||[])if(t.dataUrl==u){x._fileInfoCache.delete(e);break}return!0},removeFile:(e,t,r)=>{},callScalarUDF:(e,t,r,n,a,o,i)=>{dn(x,e,t,r,n,a,o,i)}};globalThis.DUCKDB_RUNTIME={};for(let e of Object.getOwnPropertyNames(x))"constructor"!=e&&(globalThis.DUCKDB_RUNTIME[e]=Object.getOwnPropertyDescriptor(x,e).value);globalThis.onmessage=e=>{if("load"===e.data.cmd){let t=an();t.wasmModule=e.data.wasmModule,t.wasmMemory=e.data.wasmMemory,t.buffer=t.wasmMemory.buffer,t.ENVIRONMENT_IS_PTHREAD=!0,hr(t).then((function(e){un(e)}))}else if("registerFileHandle"===e.data.cmd)globalThis.DUCKDB_RUNTIME._files=globalThis.DUCKDB_RUNTIME._files||new Map,globalThis.DUCKDB_RUNTIME._files.set(e.data.fileName,e.data.fileHandle);else if("dropFileHandle"===e.data.cmd)globalThis.DUCKDB_RUNTIME._files=globalThis.DUCKDB_RUNTIME._files||new Map,globalThis.DUCKDB_RUNTIME._files.delete(e.data.fileName);else if("registerUDFFunction"===e.data.cmd)globalThis.DUCKDB_RUNTIME._udfFunctions=globalThis.DUCKDB_RUNTIME._files||new Map,globalThis.DUCKDB_RUNTIME._udfFunctions.set(e.data.udf.name,e.data.udf);else if("dropUDFFunctions"===e.data.cmd){globalThis.DUCKDB_RUNTIME._udfFunctions=globalThis.DUCKDB_RUNTIME._files||new Map;for(let t of globalThis.DUCKDB_RUNTIME._udfFunctions.keys())globalThis.DUCKDB_RUNTIME._udfFunctions.get(t).connection_id==e.data.connectionId&&globalThis.DUCKDB_RUNTIME._udfFunctions.delete(t)}else vr(e)}})(); \ No newline at end of file diff --git a/static/assets/duckdb-browser-coi.pthread.worker.8123a2e48a10fef4525b.js.LICENSE.txt b/static/assets/duckdb-browser-coi.pthread.worker.8123a2e48a10fef4525b.js.LICENSE.txt deleted file mode 100644 index 7bcb1f4c4..000000000 --- a/static/assets/duckdb-browser-coi.pthread.worker.8123a2e48a10fef4525b.js.LICENSE.txt +++ /dev/null @@ -1,8 +0,0 @@ -/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.9.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2017 - * @license MIT - */ diff --git a/static/assets/duckdb-browser-coi.pthread.worker.dc11897ab653fccb082a.js b/static/assets/duckdb-browser-coi.pthread.worker.dc11897ab653fccb082a.js new file mode 100644 index 000000000..6f94a5b7e --- /dev/null +++ b/static/assets/duckdb-browser-coi.pthread.worker.dc11897ab653fccb082a.js @@ -0,0 +1,2 @@ +/*! For license information please see duckdb-browser-coi.pthread.worker.dc11897ab653fccb082a.js.LICENSE.txt */ +"use strict";(()=>{var Ve=Object.create,Le=Object.defineProperty,qe=Object.getOwnPropertyDescriptor,ze=Object.getOwnPropertyNames,je=Object.getPrototypeOf,$e=Object.prototype.hasOwnProperty,K=(m=function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(m,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):m),m,$=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Xe=(e,r,t,n)=>{if(r&&"object"==typeof r||"function"==typeof r)for(let a of ze(r))!$e.call(e,a)&&a!==t&&Le(e,a,{get:()=>r[a],enumerable:!(n=qe(r,a))||n.enumerable});return e},be=(e,r,t)=>(t=null!=e?Ve(je(e)):{},Xe(!r&&e&&e.__esModule?t:Le(t,"default",{value:e,enumerable:!0}),e)),te=$((()=>{})),Z=$((()=>{})),le=$((()=>{})),Me=$((()=>{})),ce=$((()=>{})),ue=$(((e,r)=>{r.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}})),Ie=$(((exports,module)=>{var DuckDB=(()=>{var m,_scriptDir=typeof document<"u"?null==(m=document.currentScript)?void 0:m.src:void 0;return typeof __filename<"u"&&(_scriptDir||(_scriptDir=__filename)),function(moduleArg={}){function GROWABLE_HEAP_I8(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP8}function GROWABLE_HEAP_U8(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU8}function GROWABLE_HEAP_I16(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP16}function GROWABLE_HEAP_U16(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU16}function GROWABLE_HEAP_I32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP32}function GROWABLE_HEAP_U32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU32}function GROWABLE_HEAP_F32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPF32}function GROWABLE_HEAP_F64(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPF64}var Module=moduleArg,readyPromiseResolve,readyPromiseReject,readyPromise=new Promise(((e,r)=>{readyPromiseResolve=e,readyPromiseReject=r})),moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,r)=>{throw r},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER,ENVIRONMENT_IS_PTHREAD=Module.ENVIRONMENT_IS_PTHREAD||!1,scriptDirectory="",read_,readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=Z(),nodePath=le();scriptDirectory=ENVIRONMENT_IS_WORKER?nodePath.dirname(scriptDirectory)+"/":__dirname+"/",read_=(e,r)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e,r?void 0:"utf8")),readBinary=e=>{var r=read_(e,!0);return r.buffer||(r=new Uint8Array(r)),r},readAsync=(e,r,t,n=!0)=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFile(e,n?void 0:"utf8",((e,a)=>{e?t(e):r(n?a.buffer:a)}))},!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=(e,r)=>{throw process.exitCode=e,r},global.Worker=te().Worker}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:typeof document<"u"&&document.currentScript&&(scriptDirectory=document.currentScript.src),_scriptDir&&(scriptDirectory=_scriptDir),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_NODE||(read_=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.send(null),r.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),readAsync=(e,r,t)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?r(n.response):t()},n.onerror=t,n.send(null)}));ENVIRONMENT_IS_NODE&&typeof performance>"u"&&(global.performance=Me().performance);var defaultPrint=console.log.bind(console),defaultPrintErr=console.error.bind(console);ENVIRONMENT_IS_NODE&&(defaultPrint=(...e)=>fs.writeSync(1,e.join(" ")+"\n"),defaultPrintErr=(...e)=>fs.writeSync(2,e.join(" ")+"\n"));var out=Module.print||defaultPrint,err=Module.printErr||defaultPrintErr;Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,wasmModule,ABORT=!1,EXITSTATUS,HEAP,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function assert(e,r){e||abort(r)}function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||16777216;if(ENVIRONMENT_IS_PTHREAD)wasmMemory=Module.wasmMemory;else if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else if(wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:65536,shared:!0}),!(wasmMemory.buffer instanceof SharedArrayBuffer))throw err("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),ENVIRONMENT_IS_NODE&&err("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");updateMemoryViews(),INITIAL_MEMORY=wasmMemory.buffer.byteLength;var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,!ENVIRONMENT_IS_PTHREAD&&(callRuntimeCallbacks(__RELOC_FUNCS__),!Module.noFSInit&&!FS.init.initialized&&FS.init(),FS.ignorePermissions=!1,TTY.init(),SOCKFS.root=FS.mount(SOCKFS,{},null),PIPEFS.root=FS.mount(PIPEFS,{},null),callRuntimeCallbacks(__ATINIT__))}function preMain(){ENVIRONMENT_IS_PTHREAD||callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(!ENVIRONMENT_IS_PTHREAD){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPreMain(e){__ATMAIN__.unshift(e)}function addOnExit(e){}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){var r;runDependencies++,null==(r=Module.monitorRunDependencies)||r.call(Module,runDependencies)}function removeRunDependency(e){var r;if(runDependencies--,null==(r=Module.monitorRunDependencies)||r.call(Module,runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){var r;null==(r=Module.onAbort)||r.call(Module,e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",runtimeInitialized&&___trap();var t=new WebAssembly.RuntimeError(e);throw readyPromiseReject(t),t}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch?Promise.resolve().then((()=>getBinarySync(e))):fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok)throw"failed to load wasm binary file at '".concat(e,"'");return r.arrayBuffer()})).catch((()=>getBinarySync(e)))}function instantiateArrayBuffer(e,r,t){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,r))).then(t,(e=>{err("failed to asynchronously prepare wasm: ".concat(e)),abort(e)}))}function instantiateAsync(e,r,t,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(r)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(r,t,n):fetch(r,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,t).then(n,(function(e){return err("wasm streaming compile failed: ".concat(e)),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(r,t,n)}))))}function createWasm(){var e={env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)};function r(e,r){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var t=getDylinkMetadata(r);return t.neededDynlibs&&(dynamicLibraries=t.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),wasmExports=applySignatureConversions(wasmExports),registerTLSInit(wasmExports._emscripten_tls_init,e.exports,t),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),wasmModule=r,removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,r)}catch(e){err("Module.instantiateWasm callback failed with error: ".concat(e)),readyPromiseReject(e)}return instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){r(e.instance,e.module)})).catch(readyPromiseReject),{}}wasmBinaryFile="./duckdb-coi.wasm",isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile));var tempDouble,tempI64,ASM_CONSTS={2184008:(e,r)=>{var t="object"==typeof runtime&&runtime&&"function"==typeof runtime.whereToLoad&&runtime.whereToLoad?runtime.whereToLoad(UTF8ToString(e)):UTF8ToString(r),n=lengthBytesUTF8(t)+1,a=_malloc(n);return stringToUTF8(t,a,n),a},2184374:(e,r)=>{var t=UTF8ToString(e);if(typeof XMLHttpRequest>"u"){let e=ce(),r=le(),l=Z();var n=t.split("/"),a=n.length,i=r.join(e.homedir(),".duckdb/extensions/"+n[a-4]+"/"+n[a-3]+"/"+n[a-2]+"/"),_=r.join(i,n[a-1]);try{if(l.existsSync(i)||l.mkdirSync(i,{recursive:!0}),l.existsSync(_))s=l.readFileSync(_);else{let e=new Int32Array(new SharedArrayBuffer(8));var s,o=new(0,K("node:worker_threads").Worker)("const {Worker,isMainThread,parentPort,workerData,} = require('node:worker_threads');var times = 0;var SAB = 23;var Z = 0; async function ZZZ(e) {var x = await fetch(e);var res = await x.arrayBuffer();Atomics.store(SAB, 1, res.byteLength);Atomics.store(SAB, 0, 1);Atomics.notify(SAB, 1);Atomics.notify(SAB, 0);Z = res;};parentPort.on('message', function(event) {if (times == 0) {times++;SAB = event;} else if (times == 1) {times++; ZZZ(event);} else {const a = new Uint8Array(Z);const b = new Uint8Array(event.buffer);var K = Z.byteLength;for (var i = 0; i < K; i++) {b[i] = a[i];}Atomics.notify(event, 0);Atomics.store(SAB, 0, 2);Atomics.notify(SAB, 0);}});",{eval:!0});e[0]=0,e[2]=4,o.postMessage(e),o.postMessage(t),Atomics.wait(e,0,0);let r=new Int32Array(new SharedArrayBuffer(e[1]+3-(e[1]+3)%4));o.postMessage(r),Atomics.wait(e,0,1),s=new Uint8Array(r.buffer,0,e[1]),o.terminate(),l.writeFileSync(_,s)}}catch(e){return console.log("Error fetching module",e),0}}else{let e=new XMLHttpRequest;if(e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),200!=e.status)return 0;s=e.response}WebAssembly.validate(s);for(var l=s.byteLength,c=_malloc(l+4),u=new Uint8Array(s),d=0;d{if(!e)return AL.alcErr=40964,1},2187063:e=>AL.currentCtx?e?void 0:(AL.currentCtx.err=40963,1):(err("alGetProcAddress() called without a valid context"),1)};function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit(".concat(e,")"),this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,r){var t=GOT[r];return t||(t=GOT[r]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(r)||(t.required=!0),t}},terminateWorker=e=>{e.terminate(),e.onmessage=e=>{}},killThread=e=>{var r=PThread.pthreads[e];delete PThread.pthreads[e],terminateWorker(r),__emscripten_thread_free_data(e),PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(r),1),r.pthread_ptr=0},cancelThread=e=>{PThread.pthreads[e].postMessage({cmd:"cancel"})},cleanupThread=e=>{var r=PThread.pthreads[e];PThread.finishedThreads.delete(e),e in PThread.outstandingPromises&&PThread.outstandingPromises[e].resolve(),PThread.returnWorkerToPool(r)},zeroMemory=(e,r)=>(GROWABLE_HEAP_U8().fill(0,e,e+r),e),markAsFinished=e=>{PThread.finishedThreads.add(e),e in PThread.outstandingPromises&&PThread.outstandingPromises[e].resolve()},spawnThread=e=>{var r=PThread.getNewWorker();if(!r)return 6;PThread.runningWorkers.push(r),PThread.pthreads[e.pthread_ptr]=r,r.pthread_ptr=e.pthread_ptr;var t={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return ENVIRONMENT_IS_NODE&&r.unref(),r.postMessage(t,e.transferList),0},runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),withStackSave=e=>{var r=stackSave(),t=e();return stackRestore(r),t},stackAlloc=e=>__emscripten_stack_alloc(e),convertI32PairToI53Checked=(e,r)=>r+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*r:NaN,proxyToMainThread=(e,r,t,...n)=>withStackSave((()=>{for(var a=n.length,i=stackAlloc(8*a),_=i>>>3,s=0;s>>0]=o}return __emscripten_run_on_main_thread_js(e,r,a,i,t)}));function _proc_exit(e){var r;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(0,0,1,e);EXITSTATUS=e,keepRuntimeAlive()||(PThread.terminateAllThreads(),null==(r=Module.onExit)||r.call(Module,e),ABORT=!0),quit_(e,new ExitStatus(e))}_proc_exit.sig="vi";var exitJS=(e,r)=>{if(EXITSTATUS=e,ENVIRONMENT_IS_PTHREAD)throw exitOnMainThread(e),"unwind";_proc_exit(e)},_exit=exitJS;_exit.sig="vi";var handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},PThread={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){ENVIRONMENT_IS_PTHREAD?PThread.initWorker():PThread.initMainThread()},initMainThread(){for(var e=4;e--;)PThread.allocateUnusedWorker();addOnPreRun((()=>{addRunDependency("loading-workers"),PThread.loadWasmModuleToAllWorkers((()=>removeRunDependency("loading-workers")))})),PThread.outstandingPromises={},PThread.finishedThreads=new Set},initWorker(){noExitRuntime=!1},setExitStatus:e=>EXITSTATUS=e,terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of PThread.runningWorkers)terminateWorker(e);for(var e of PThread.unusedWorkers)terminateWorker(e);PThread.unusedWorkers=[],PThread.runningWorkers=[],PThread.pthreads=[]},returnWorkerToPool:e=>{var r=e.pthread_ptr;delete PThread.pthreads[r],PThread.unusedWorkers.push(e),PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(e),1),e.pthread_ptr=0,__emscripten_thread_free_data(r)},receiveObjectTransfer(e){},threadInitTLS(){PThread.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((r=>{e.onmessage=t=>{var n=t.data,a=n.cmd;if(n.targetThread&&n.targetThread!=_pthread_self()){var i=PThread.pthreads[n.targetThread];i?i.postMessage(n,n.transferList):err('Internal error! Worker sent a message "'.concat(a,'" to target pthread ').concat(n.targetThread,", but that thread no longer exists!"))}else"checkMailbox"===a?checkMailbox():"spawnThread"===a?spawnThread(n):"cleanupThread"===a?cleanupThread(n.thread):"markAsFinished"===a?markAsFinished(n.thread):"killThread"===a?killThread(n.thread):"cancelThread"===a?cancelThread(n.thread):"loaded"===a?(e.loaded=!0,ENVIRONMENT_IS_NODE&&!e.pthread_ptr&&e.unref(),r(e)):"alert"===a?alert("Thread ".concat(n.threadId,": ").concat(n.text)):"setimmediate"===n.target?e.postMessage(n):"callHandler"===a?Module[n.handler](...n.args):a&&err("worker sent an unknown command ".concat(a))},e.onerror=e=>{throw err("".concat("worker sent an error!"," ").concat(e.filename,":").concat(e.lineno,": ").concat(e.message)),e},ENVIRONMENT_IS_NODE&&(e.on("message",(r=>e.onmessage({data:r}))),e.on("error",(r=>e.onerror(r))));var t=[];for(var n of["onExit","onAbort","print","printErr"])Module.hasOwnProperty(n)&&t.push(n);e.postMessage({cmd:"load",handlers:t,urlOrBlob:Module.mainScriptUrlOrBlob||_scriptDir,wasmMemory,wasmModule,sharedModules})})),loadWasmModuleToAllWorkers(e){if(ENVIRONMENT_IS_PTHREAD)return e();Promise.all(PThread.unusedWorkers.map(PThread.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e,r=locateFile("duckdb_wasm.worker.js");e=new Worker(r),PThread.unusedWorkers.push(e)},getNewWorker:()=>(0==PThread.unusedWorkers.length&&(PThread.allocateUnusedWorker(),PThread.loadWasmModuleToWorker(PThread.unusedWorkers[0])),PThread.unusedWorkers.pop())};Module.PThread=PThread;var callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},establishStackSpace=()=>{var e=_pthread_self(),r=GROWABLE_HEAP_U32()[e+52>>>2>>>0],t=GROWABLE_HEAP_U32()[e+56>>>2>>>0];_emscripten_stack_set_limits(r,r-t),stackRestore(r)};function exitOnMainThread(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(1,0,0,e);_exit(e)}Module.establishStackSpace=establishStackSpace;var UTF8Decoder=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,UTF8ArrayToString=(e,r,t)=>{for(var n=(r>>>=0)+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.slice(r,a));for(var i="";r>10,56320|1023&l)}}else i+=String.fromCharCode((31&_)<<6|s)}else i+=String.fromCharCode(_)}return i},getDylinkMetadata=e=>{var r=0,t=0;function n(){for(var t=0,n=1;;){var a=e[r++];if(t+=(127&a)*n,n*=128,!(128&a))break}return t}function a(){var t=n();return UTF8ArrayToString(e,(r+=t)-t,t)}function i(e,r){if(e)throw new Error(r)}var _="dylink.0";if(e instanceof WebAssembly.Module){var s=WebAssembly.Module.customSections(e,_);0===s.length&&(_="dylink",s=WebAssembly.Module.customSections(e,_)),i(0===s.length,"need dylink section"),t=(e=new Uint8Array(s[0])).length}else{i(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),r=9;var o=n();t=r+o,_=a()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==_){l.memorySize=n(),l.memoryAlign=n(),l.tableSize=n(),l.tableAlign=n();for(var c=n(),u=0;u>>0];case"i16":return GROWABLE_HEAP_I16()[e>>>1>>>0];case"i32":return GROWABLE_HEAP_I32()[e>>>2>>>0];case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return GROWABLE_HEAP_F32()[e>>>2>>>0];case"double":return GROWABLE_HEAP_F64()[e>>>3>>>0];case"*":return GROWABLE_HEAP_U32()[e>>>2>>>0];default:abort("invalid type for getValue: ".concat(r))}}var wasmTable=new WebAssembly.Table({initial:24658,element:"anyfunc"}),getWasmTableEntry=e=>wasmTable.get(e),invokeEntryPoint=(e,r)=>{var t;runtimeKeepaliveCounter=0,__emscripten_dlsync_self(),t=getWasmTableEntry(e)(r),keepRuntimeAlive()?PThread.setExitStatus(t):__emscripten_thread_exit(t)};Module.invokeEntryPoint=invokeEntryPoint;var newDSO=(e,r,t)=>{var n={refcount:1/0,name:e,exports:t,global:!0};return LDSO.loadedLibsByName[e]=n,null!=r&&(LDSO.loadedLibsByHandle[r]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=2325024,alignMemory=(e,r)=>Math.ceil(e/r)*r,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var r=___heap_base,t=r+alignMemory(e,16);return ___heap_base=t,GOT.__heap_base.value=t,r},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,r)=>{e<128?r.push(e):r.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var r={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},t={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},n=1;n{var t=e.slice(0,1),n=e.slice(1),a={i:127,p:127,j:126,f:125,d:124,e:111};r.push(96),uleb128Encode(n.length,r);for(var i=0;i{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(r),e);var t=[1];generateFuncType(r,t);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(t.length,n),n.push(...t),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var a=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(a,{e:{f:e}}).exports.f},updateTableMap=(e,r)=>{if(functionsInTableMap)for(var t=e;t(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){throw e instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":e}return wasmTable.length-1},setWasmTableEntry=(e,r)=>wasmTable.set(e,r),addFunction=(e,r)=>{var t=getFunctionAddress(e);if(t)return t;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(t){if(!(t instanceof TypeError))throw t;var a=convertJsFunctionToWasm(e,r);setWasmTableEntry(n,a)}return functionsInTableMap.set(e,n),n},updateGOT=(e,r)=>{for(var t in e)if(!isInternalSym(t)){var n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),GOT[t]||(GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==GOT[t].value)&&("function"==typeof n?GOT[t].value=addFunction(n):"number"==typeof n?GOT[t].value=n:err("unhandled export type for '".concat(t,"': ").concat(typeof n)))}},relocateExports=(e,r,t)=>{var n={};for(var a in e){var i=e[a];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=r),n[a]=i}return updateGOT(n,t),n},isSymbolDefined=e=>{var r=wasmImports[e];return!(!r||r.stub)},resolveGlobalSymbol=(e,r=!1)=>{var t;return r&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)&&(t=wasmImports[e]),{sym:t,name:e}},UTF8ToString=(e,r)=>(e>>>=0)?UTF8ArrayToString(GROWABLE_HEAP_U8(),e,r):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!GROWABLE_HEAP_I8()[handle+8>>>0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(GROWABLE_HEAP_I8()[handle+8>>>0]=1,GROWABLE_HEAP_U32()[handle+12>>>2>>>0]=memoryBase,GROWABLE_HEAP_I32()[handle+16>>>2>>>0]=metadata.memorySize,GROWABLE_HEAP_U32()[handle+20>>>2>>>0]=tableBase,GROWABLE_HEAP_I32()[handle+24>>>2>>>0]=metadata.tableSize)}else memoryBase=GROWABLE_HEAP_U32()[handle+12>>>2>>>0],tableBase=GROWABLE_HEAP_U32()[handle+20>>>2>>>0];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var r=resolveGlobalSymbol(e).sym;return!r&&localScope&&(r=localScope[e]),r||(r=moduleExports[e]),r}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,r){if(r.startsWith("invoke_"))return createDyncallWrapper(r.substring(7));switch(r){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return r in wasmImports&&!wasmImports[r].stub?wasmImports[r]:(r in e||(e[r]=(...e)=>(t||(t=resolveSymbol(r)),t(...e))),e[r]);var t}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func="(".concat(args,") => { ").concat(body," };");ASM_CONSTS[start]=eval(func)}if(!ENVIRONMENT_IS_PTHREAD&&libName&&(sharedModules[libName]=module),updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start ").concat(body,";");moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}if(registerTLSInit(moduleExports._emscripten_tls_init,instance.exports,metadata),firstLoad){var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;init&&(runtimeInitialized?init():__ATINIT__.push(init))}return moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,r)=>e.then((()=>loadDynamicLibrary(r,flags)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,r)=>{for(var[t,n]of Object.entries(e))isSymbolDefined(a=t)||(wasmImports[a]=n),t.startsWith("dynCall_")&&!Module.hasOwnProperty(t)&&(Module[t]=n);var a},asyncLoad=(e,r,t,n)=>{var a=n?"":"al ".concat(e);readAsync(e,(e=>{r(new Uint8Array(e)),a&&removeRunDependency(a)}),(r=>{if(!t)throw'Loading data file "'.concat(e,'" failed.');t()})),a&&addRunDependency(a)},preloadPlugins=Module.preloadPlugins||[],registerWasmPlugin=()=>{var e={promiseChainEnd:Promise.resolve(),canHandle:e=>!Module.noWasmDecoding&&e.endsWith(".so"),handle:(r,t,n,a)=>{e.promiseChainEnd=e.promiseChainEnd.then((()=>loadWebAssemblyModule(r,{loadAsync:!0,nodelete:!0},t))).then((e=>{preloadedWasm[t]=e,n(r)}),(e=>{err("failed to instantiate wasm: ".concat(t,": ").concat(e)),a()}))}};preloadPlugins.push(e)},preloadedWasm={};function loadDynamicLibrary(e,r={global:!0,nodelete:!0},t,n){var a=LDSO.loadedLibsByName[e];if(a)return r.global?a.global||(a.global=!0,mergeLibSymbols(a.exports,e)):t&&Object.assign(t,a.exports),r.nodelete&&a.refcount!==1/0&&(a.refcount=1/0),a.refcount++,n&&(LDSO.loadedLibsByHandle[n]=a),!r.loadAsync||Promise.resolve(!0);function i(){var t=sharedModules[e];if(t)return r.loadAsync?Promise.resolve(t):t;if(n){var a=GROWABLE_HEAP_U32()[n+28>>>2>>>0],i=GROWABLE_HEAP_U32()[n+32>>>2>>>0];if(a&&i){var _=GROWABLE_HEAP_I8().slice(a,a+i);return r.loadAsync?Promise.resolve(_):_}}var s=locateFile(e);if(r.loadAsync)return new Promise((function(e,r){asyncLoad(s,e,r)}));if(!readBinary)throw new Error("".concat(s,": file not found, and synchronous loading of external files is not available"));return readBinary(s)}function _(){var a=preloadedWasm[e];return a?r.loadAsync?Promise.resolve(a):a:r.loadAsync?i().then((a=>loadWebAssemblyModule(a,r,e,t,n))):loadWebAssemblyModule(i(),r,e,t,n)}function s(r){a.global?mergeLibSymbols(r,e):t&&Object.assign(t,r),a.exports=r}return(a=newDSO(e,n,"loading")).refcount=r.nodelete?1/0:1,a.global=r.global,r.loadAsync?_().then((e=>(s(e),!0))):(s(_()),!0)}var reportUndefinedSymbols=()=>{for(var[e,r]of Object.entries(GOT))if(0==r.value){var t=resolveGlobalSymbol(e,!0).sym;if(!t&&!r.required)continue;if("function"==typeof t)r.value=addFunction(t,t.sig);else{if("number"!=typeof t)throw new Error("bad export type for '".concat(e,"': ").concat(typeof t));r.value=t}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,r)=>e.then((()=>loadDynamicLibrary(r,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0,registerTLSInit=(e,r,t)=>{function n(){var n=e();if(n){var a={};t.tlsExports.forEach((e=>a[e]=r[e])),relocateExports(a,n,!0)}}PThread.tlsInitFunctions.push(n),runtimeInitialized&&n()};function setValue(e,r,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":GROWABLE_HEAP_I8()[e>>>0]=r;break;case"i16":GROWABLE_HEAP_I16()[e>>>1>>>0]=r;break;case"i32":GROWABLE_HEAP_I32()[e>>>2>>>0]=r;break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":GROWABLE_HEAP_F32()[e>>>2>>>0]=r;break;case"double":GROWABLE_HEAP_F64()[e>>>3>>>0]=r;break;case"*":GROWABLE_HEAP_U32()[e>>>2>>>0]=r;break;default:abort("invalid type for setValue: ".concat(t))}}function __ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm(...e){return wasmImports._ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm(...e)}function ___assert_fail(e,r,t,n){r>>>=0,n>>>=0,abort("Assertion failed: ".concat(UTF8ToString(e>>>=0),", at: ")+[r?UTF8ToString(r):"unknown filename",t,n?UTF8ToString(n):"unknown function"])}__ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm.stub=!0,___assert_fail.sig="vppip";var ___c_longjmp=new WebAssembly.Tag({parameters:["i32"]});function ___call_sighandler(e,r){return getWasmTableEntry(e>>>=0)(r)}___call_sighandler.sig="vpi";var ___cpp_exception=new WebAssembly.Tag({parameters:["i32"]});function ___emscripten_init_main_thread_js(e){__emscripten_thread_init(e>>>=0,!ENVIRONMENT_IS_WORKER,1,!ENVIRONMENT_IS_WEB,65536,!1),PThread.threadInitTLS()}function ___emscripten_thread_cleanup(e){e>>>=0,ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"cleanupThread",thread:e}):cleanupThread(e)}___emscripten_init_main_thread_js.sig="vp",___emscripten_thread_cleanup.sig="vp";var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024);function pthreadCreateProxied(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(2,0,1,e,r,t,n):___pthread_create_js(e,r,t,n)}function ___pthread_create_js(e,r,t,n){if(e>>>=0,r>>>=0,t>>>=0,n>>>=0,typeof SharedArrayBuffer>"u")return err("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var a=[];if(ENVIRONMENT_IS_PTHREAD&&0===a.length)return pthreadCreateProxied(e,r,t,n);var i={startRoutine:t,pthread_ptr:e,arg:n,transferList:a};return ENVIRONMENT_IS_PTHREAD?(i.cmd="spawnThread",postMessage(i,a),0):spawnThread(i)}function ___pthread_kill_js(e,r){return e>>>=0,33===r?ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"cancelThread",thread:e}):cancelThread(e):ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"killThread",thread:e}):killThread(e),0}___pthread_create_js.sig="ipppp",___pthread_kill_js.sig="ipi";var ___stack_high=2325024,___stack_low=2259488,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},2325024),PATH={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,r)=>{for(var t=0,n=e.length-1;n>=0;n--){var a=e[n];"."===a?e.splice(n,1):".."===a?(e.splice(n,1),t++):t&&(e.splice(n,1),t--)}if(r)for(;t;t--)e.unshift("..");return e},normalize:e=>{var r=PATH.isAbs(e),t="/"===e.substr(-1);return!(e=PATH.normalizeArray(e.split("/").filter((e=>!!e)),!r).join("/"))&&!r&&(e="."),e&&t&&(e+="/"),(r?"/":"")+e},dirname:e=>{var r=PATH.splitPath(e),t=r[0],n=r[1];return t||n?(n&&(n=n.substr(0,n.length-1)),t+n):"."},basename:e=>{if("/"===e)return"/";var r=(e=(e=PATH.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===r?e:e.substr(r+1)},join:(...e)=>PATH.normalize(e.join("/")),join2:(e,r)=>PATH.normalize(e+"/"+r)},initRandomFill=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);if(ENVIRONMENT_IS_NODE)try{var e=K("crypto");if(e.randomFillSync)return r=>e.randomFillSync(r);var r=e.randomBytes;return e=>(e.set(r(e.byteLength)),e)}catch(e){}abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:(...e)=>{for(var r="",t=!1,n=e.length-1;n>=-1&&!t;n--){var a=n>=0?e[n]:FS.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");if(!a)return"";r=a+"/"+r,t=PATH.isAbs(a)}return(t?"/":"")+(r=PATH.normalizeArray(r.split("/").filter((e=>!!e)),!t).join("/"))||"."},relative:(e,r)=>{function t(e){for(var r=0;r=0&&""===e[t];t--);return r>t?[]:e.slice(r,t-r+1)}e=PATH_FS.resolve(e).substr(1),r=PATH_FS.resolve(r).substr(1);for(var n=t(e.split("/")),a=t(r.split("/")),i=Math.min(n.length,a.length),_=i,s=0;s{for(var r=0,t=0;t=55296&&n<=57343?(r+=4,++t):r+=3}return r},stringToUTF8Array=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t>>>=0,i=t+n-1,_=0;_=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++_)),s<=127){if(t>=i)break;r[t++>>>0]=s}else if(s<=2047){if(t+1>=i)break;r[t++>>>0]=192|s>>6,r[t++>>>0]=128|63&s}else if(s<=65535){if(t+2>=i)break;r[t++>>>0]=224|s>>12,r[t++>>>0]=128|s>>6&63,r[t++>>>0]=128|63&s}else{if(t+3>=i)break;r[t++>>>0]=240|s>>18,r[t++>>>0]=128|s>>12&63,r[t++>>>0]=128|s>>6&63,r[t++>>>0]=128|63&s}}return r[t>>>0]=0,t-a};function intArrayFromString(e,r,t){var n=t>0?t:lengthBytesUTF8(e)+1,a=new Array(n),i=stringToUTF8Array(e,a,0,a.length);return r&&(a.length=i),a}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if(ENVIRONMENT_IS_NODE){var r=Buffer.alloc(256),t=0,n=process.stdin.fd;try{t=fs.readSync(n,r)}catch(e){if(!e.toString().includes("EOF"))throw e;t=0}e=t>0?r.slice(0,t).toString("utf-8"):null}else typeof window<"u"&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,r){TTY.ttys[e]={input:[],output:[],ops:r},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var r=TTY.ttys[e.node.rdev];if(!r)throw new FS.ErrnoError(43);e.tty=r,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,r,t,n,a){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var i=0,_=0;_FS_stdin_getChar(),put_char(e,r){null===r||10===r?(out(UTF8ArrayToString(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,r,t)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,r){null===r||10===r?(err(UTF8ArrayToString(e.output,0)),e.output=[]):0!=r&&e.output.push(r)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output,0)),e.output=[])}}},mmapAlloc=e=>{e=alignMemory(e,65536);var r=_emscripten_builtin_memalign(65536,e);return r?zeroMemory(r,e):0},MEMFS={ops_table:null,mount:e=>MEMFS.createNode(null,"/",16895,0),createNode(e,r,t,n){if(FS.isBlkdev(t)||FS.isFIFO(t))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var a=FS.createNode(e,r,t,n);return FS.isDir(a.mode)?(a.node_ops=MEMFS.ops_table.dir.node,a.stream_ops=MEMFS.ops_table.dir.stream,a.contents={}):FS.isFile(a.mode)?(a.node_ops=MEMFS.ops_table.file.node,a.stream_ops=MEMFS.ops_table.file.stream,a.usedBytes=0,a.contents=null):FS.isLink(a.mode)?(a.node_ops=MEMFS.ops_table.link.node,a.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(a.mode)&&(a.node_ops=MEMFS.ops_table.chrdev.node,a.stream_ops=MEMFS.ops_table.chrdev.stream),a.timestamp=Date.now(),e&&(e.contents[r]=a,e.timestamp=a.timestamp),a},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,r){var t=e.contents?e.contents.length:0;if(!(t>=r)){r=Math.max(r,t*(t<1048576?2:1.125)>>>0),0!=t&&(r=Math.max(r,256));var n=e.contents;e.contents=new Uint8Array(r),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,r){if(e.usedBytes!=r)if(0==r)e.contents=null,e.usedBytes=0;else{var t=e.contents;e.contents=new Uint8Array(r),t&&e.contents.set(t.subarray(0,Math.min(r,e.usedBytes))),e.usedBytes=r}},node_ops:{getattr(e){var r={};return r.dev=FS.isChrdev(e.mode)?e.id:1,r.ino=e.id,r.mode=e.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=e.rdev,FS.isDir(e.mode)?r.size=4096:FS.isFile(e.mode)?r.size=e.usedBytes:FS.isLink(e.mode)?r.size=e.link.length:r.size=0,r.atime=new Date(e.timestamp),r.mtime=new Date(e.timestamp),r.ctime=new Date(e.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr(e,r){void 0!==r.mode&&(e.mode=r.mode),void 0!==r.timestamp&&(e.timestamp=r.timestamp),void 0!==r.size&&MEMFS.resizeFileStorage(e,r.size)},lookup(e,r){throw FS.genericErrors[44]},mknod:(e,r,t,n)=>MEMFS.createNode(e,r,t,n),rename(e,r,t){if(FS.isDir(e.mode)){var n;try{n=FS.lookupNode(r,t)}catch(e){}if(n)for(var a in n.contents)throw new FS.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=t,r.contents[t]=e,r.timestamp=e.parent.timestamp,e.parent=r},unlink(e,r){delete e.contents[r],e.timestamp=Date.now()},rmdir(e,r){var t=FS.lookupNode(e,r);for(var n in t.contents)throw new FS.ErrnoError(55);delete e.contents[r],e.timestamp=Date.now()},readdir(e){var r=[".",".."];for(var t of Object.keys(e.contents))r.push(t);return r},symlink(e,r,t){var n=MEMFS.createNode(e,r,41471,0);return n.link=t,n},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,r,t,n,a){var i=e.node.contents;if(a>=e.node.usedBytes)return 0;var _=Math.min(e.node.usedBytes-a,n);if(_>8&&i.subarray)r.set(i.subarray(a,a+_),t);else for(var s=0;s<_;s++)r[t+s]=i[a+s];return _},write(e,r,t,n,a,i){if(r.buffer===GROWABLE_HEAP_I8().buffer&&(i=!1),!n)return 0;var _=e.node;if(_.timestamp=Date.now(),r.subarray&&(!_.contents||_.contents.subarray)){if(i)return _.contents=r.subarray(t,t+n),_.usedBytes=n,n;if(0===_.usedBytes&&0===a)return _.contents=r.slice(t,t+n),_.usedBytes=n,n;if(a+n<=_.usedBytes)return _.contents.set(r.subarray(t,t+n),a),n}if(MEMFS.expandFileStorage(_,a+n),_.contents.subarray&&r.subarray)_.contents.set(r.subarray(t,t+n),a);else for(var s=0;s0||t+r>>0)}else _=!1,i=s.byteOffset;return{ptr:i,allocated:_}},msync:(e,r,t,n,a)=>(MEMFS.stream_ops.write(e,r,0,n,t,!1),0)}},FS_createDataFile=(e,r,t,n,a,i)=>{FS.createDataFile(e,r,t,n,a,i)},FS_handledByPreloadPlugin=(e,r,t,n)=>{typeof Browser<"u"&&Browser.init();var a=!1;return preloadPlugins.forEach((i=>{a||i.canHandle(r)&&(i.handle(e,r,t,n),a=!0)})),a},FS_createPreloadedFile=(e,r,t,n,a,i,_,s,o,l)=>{var c=r?PATH_FS.resolve(PATH.join2(e,r)):e,u="cp ".concat(c);function d(t){function d(t){null==l||l(),s||FS_createDataFile(e,r,t,n,a,o),null==i||i(),removeRunDependency(u)}FS_handledByPreloadPlugin(t,c,d,(()=>{null==_||_(),removeRunDependency(u)}))||d(t)}addRunDependency(u),"string"==typeof t?asyncLoad(t,d,_):d(t)},FS_modeStringToFlags=e=>{var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(typeof r>"u")throw new Error("Unknown file open mode: ".concat(e));return r},FS_getMode=(e,r)=>{var t=0;return e&&(t|=365),r&&(t|=146),t},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(e){this.name="ErrnoError",this.errno=e}},genericErrors:{},filesystems:null,syncFSRequests:0,FSStream:class{constructor(){this.shared={}}get object(){return this.node}set object(e){this.node=e}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return 0!=(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{constructor(e,r,t,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=FS.nextInode++,this.name=r,this.mode=t,this.node_ops={},this.stream_ops={},this.rdev=n,this.readMode=365,this.writeMode=146}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return FS.isDir(this.mode)}get isDevice(){return FS.isChrdev(this.mode)}},lookupPath(e,r={}){if(!(e=PATH_FS.resolve(e)))return{path:"",node:null};if((r=Object.assign({follow_mount:!0,recurse_count:0},r)).recurse_count>8)throw new FS.ErrnoError(32);for(var t=e.split("/").filter((e=>!!e)),n=FS.root,a="/",i=0;i40)throw new FS.ErrnoError(32)}}return{path:a,node:n}},getPath(e){for(var r;;){if(FS.isRoot(e)){var t=e.mount.mountpoint;return r?"/"!==t[t.length-1]?"".concat(t,"/").concat(r):t+r:t}r=r?"".concat(e.name,"/").concat(r):e.name,e=e.parent}},hashName(e,r){for(var t=0,n=0;n>>0)%FS.nameTable.length},hashAddNode(e){var r=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[r],FS.nameTable[r]=e},hashRemoveNode(e){var r=FS.hashName(e.parent.id,e.name);if(FS.nameTable[r]===e)FS.nameTable[r]=e.name_next;else for(var t=FS.nameTable[r];t;){if(t.name_next===e){t.name_next=e.name_next;break}t=t.name_next}},lookupNode(e,r){var t=FS.mayLookup(e);if(t)throw new FS.ErrnoError(t);for(var n=FS.hashName(e.id,r),a=FS.nameTable[n];a;a=a.name_next){var i=a.name;if(a.parent.id===e.id&&i===r)return a}return FS.lookup(e,r)},createNode(e,r,t,n){var a=new FS.FSNode(e,r,t,n);return FS.hashAddNode(a),a},destroyNode(e){FS.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var r=["r","w","rw"][3&e];return 512&e&&(r+="w"),r},nodePermissions:(e,r)=>FS.ignorePermissions?0:r.includes("r")&&!(292&e.mode)||r.includes("w")&&!(146&e.mode)||r.includes("x")&&!(73&e.mode)?2:0,mayLookup:e=>FS.isDir(e.mode)?FS.nodePermissions(e,"x")||(e.node_ops.lookup?0:2):54,mayCreate(e,r){try{return FS.lookupNode(e,r),20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete(e,r,t){var n;try{n=FS.lookupNode(e,r)}catch(e){return e.errno}var a=FS.nodePermissions(e,"wx");if(a)return a;if(t){if(!FS.isDir(n.mode))return 54;if(FS.isRoot(n)||FS.getPath(n)===FS.cwd())return 10}else if(FS.isDir(n.mode))return 31;return 0},mayOpen:(e,r)=>e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(r)||512&r)?31:FS.nodePermissions(e,FS.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var r=FS.getStream(e);if(!r)throw new FS.ErrnoError(8);return r},getStream:e=>FS.streams[e],createStream:(e,r=-1)=>(e=Object.assign(new FS.FSStream,e),-1==r&&(r=FS.nextfd()),e.fd=r,FS.streams[r]=e,e),closeStream(e){FS.streams[e]=null},dupStream(e,r=-1){var t,n,a=FS.createStream(e,r);return null==(n=null==(t=a.stream_ops)?void 0:t.dup)||n.call(t,a),a},chrdev_stream_ops:{open(e){var r,t,n=FS.getDevice(e.node.rdev);e.stream_ops=n.stream_ops,null==(t=(r=e.stream_ops).open)||t.call(r,e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,r)=>e<<8|r,registerDevice(e,r){FS.devices[e]={stream_ops:r}},getDevice:e=>FS.devices[e],getMounts(e){for(var r=[],t=[e];t.length;){var n=t.pop();r.push(n),t.push(...n.mounts)}return r},syncfs(e,r){"function"==typeof e&&(r=e,e=!1),FS.syncFSRequests++,FS.syncFSRequests>1&&err("warning: ".concat(FS.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var t=FS.getMounts(FS.root.mount),n=0;function a(e){return FS.syncFSRequests--,r(e)}function i(e){if(e)return i.errored?void 0:(i.errored=!0,a(e));++n>=t.length&&a(null)}t.forEach((r=>{if(!r.type.syncfs)return i(null);r.type.syncfs(r,e,i)}))},mount(e,r,t){var n,a="/"===t,i=!t;if(a&&FS.root)throw new FS.ErrnoError(10);if(!a&&!i){var _=FS.lookupPath(t,{follow_mount:!1});if(t=_.path,n=_.node,FS.isMountpoint(n))throw new FS.ErrnoError(10);if(!FS.isDir(n.mode))throw new FS.ErrnoError(54)}var s={type:e,opts:r,mountpoint:t,mounts:[]},o=e.mount(s);return o.mount=s,s.root=o,a?FS.root=o:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),o},unmount(e){var r=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(r.node))throw new FS.ErrnoError(28);var t=r.node,n=t.mounted,a=FS.getMounts(n);Object.keys(FS.nameTable).forEach((e=>{for(var r=FS.nameTable[e];r;){var t=r.name_next;a.includes(r.mount)&&FS.destroyNode(r),r=t}})),t.mounted=null;var i=t.mount.mounts.indexOf(n);t.mount.mounts.splice(i,1)},lookup:(e,r)=>e.node_ops.lookup(e,r),mknod(e,r,t){var n=FS.lookupPath(e,{parent:!0}).node,a=PATH.basename(e);if(!a||"."===a||".."===a)throw new FS.ErrnoError(28);var i=FS.mayCreate(n,a);if(i)throw new FS.ErrnoError(i);if(!n.node_ops.mknod)throw new FS.ErrnoError(63);return n.node_ops.mknod(n,a,r,t)},create:(e,r)=>(r=void 0!==r?r:438,r&=4095,r|=32768,FS.mknod(e,r,0)),mkdir:(e,r)=>(r=void 0!==r?r:511,r&=1023,r|=16384,FS.mknod(e,r,0)),mkdirTree(e,r){for(var t=e.split("/"),n="",a=0;a(typeof t>"u"&&(t=r,r=438),r|=8192,FS.mknod(e,r,t)),symlink(e,r){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var t=FS.lookupPath(r,{parent:!0}).node;if(!t)throw new FS.ErrnoError(44);var n=PATH.basename(r),a=FS.mayCreate(t,n);if(a)throw new FS.ErrnoError(a);if(!t.node_ops.symlink)throw new FS.ErrnoError(63);return t.node_ops.symlink(t,n,e)},rename(e,r){var t,n,a=PATH.dirname(e),i=PATH.dirname(r),_=PATH.basename(e),s=PATH.basename(r);if(t=FS.lookupPath(e,{parent:!0}).node,n=FS.lookupPath(r,{parent:!0}).node,!t||!n)throw new FS.ErrnoError(44);if(t.mount!==n.mount)throw new FS.ErrnoError(75);var o,l=FS.lookupNode(t,_),c=PATH_FS.relative(e,i);if("."!==c.charAt(0))throw new FS.ErrnoError(28);if("."!==(c=PATH_FS.relative(r,a)).charAt(0))throw new FS.ErrnoError(55);try{o=FS.lookupNode(n,s)}catch(e){}if(l!==o){var u=FS.isDir(l.mode),d=FS.mayDelete(t,_,u);if(d)throw new FS.ErrnoError(d);if(d=o?FS.mayDelete(n,s,u):FS.mayCreate(n,s))throw new FS.ErrnoError(d);if(!t.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(l)||o&&FS.isMountpoint(o))throw new FS.ErrnoError(10);if(n!==t&&(d=FS.nodePermissions(t,"w")))throw new FS.ErrnoError(d);FS.hashRemoveNode(l);try{t.node_ops.rename(l,n,s)}catch(e){throw e}finally{FS.hashAddNode(l)}}},rmdir(e){var r=FS.lookupPath(e,{parent:!0}).node,t=PATH.basename(e),n=FS.lookupNode(r,t),a=FS.mayDelete(r,t,!0);if(a)throw new FS.ErrnoError(a);if(!r.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);r.node_ops.rmdir(r,t),FS.destroyNode(n)},readdir(e){var r=FS.lookupPath(e,{follow:!0}).node;if(!r.node_ops.readdir)throw new FS.ErrnoError(54);return r.node_ops.readdir(r)},unlink(e){var r=FS.lookupPath(e,{parent:!0}).node;if(!r)throw new FS.ErrnoError(44);var t=PATH.basename(e),n=FS.lookupNode(r,t),a=FS.mayDelete(r,t,!1);if(a)throw new FS.ErrnoError(a);if(!r.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);r.node_ops.unlink(r,t),FS.destroyNode(n)},readlink(e){var r=FS.lookupPath(e).node;if(!r)throw new FS.ErrnoError(44);if(!r.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(r.parent),r.node_ops.readlink(r))},stat(e,r){var t=FS.lookupPath(e,{follow:!r}).node;if(!t)throw new FS.ErrnoError(44);if(!t.node_ops.getattr)throw new FS.ErrnoError(63);return t.node_ops.getattr(t)},lstat:e=>FS.stat(e,!0),chmod(e,r,t){var n;if(!(n="string"==typeof e?FS.lookupPath(e,{follow:!t}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&r|-4096&n.mode,timestamp:Date.now()})},lchmod(e,r){FS.chmod(e,r,!0)},fchmod(e,r){var t=FS.getStreamChecked(e);FS.chmod(t.node,r)},chown(e,r,t,n){var a;if(!(a="string"==typeof e?FS.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);a.node_ops.setattr(a,{timestamp:Date.now()})},lchown(e,r,t){FS.chown(e,r,t,!0)},fchown(e,r,t){var n=FS.getStreamChecked(e);FS.chown(n.node,r,t)},truncate(e,r){if(r<0)throw new FS.ErrnoError(28);var t;if(!(t="string"==typeof e?FS.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(t.mode))throw new FS.ErrnoError(31);if(!FS.isFile(t.mode))throw new FS.ErrnoError(28);var n=FS.nodePermissions(t,"w");if(n)throw new FS.ErrnoError(n);t.node_ops.setattr(t,{size:r,timestamp:Date.now()})},ftruncate(e,r){var t=FS.getStreamChecked(e);if(!(2097155&t.flags))throw new FS.ErrnoError(28);FS.truncate(t.node,r)},utime(e,r,t){var n=FS.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(r,t)})},open(e,r,t){if(""===e)throw new FS.ErrnoError(44);var n;if(t=typeof t>"u"?438:t,t=64&(r="string"==typeof r?FS_modeStringToFlags(r):r)?4095&t|32768:0,"object"==typeof e)n=e;else{e=PATH.normalize(e);try{n=FS.lookupPath(e,{follow:!(131072&r)}).node}catch(e){}}var a=!1;if(64&r)if(n){if(128&r)throw new FS.ErrnoError(20)}else n=FS.mknod(e,t,0),a=!0;if(!n)throw new FS.ErrnoError(44);if(FS.isChrdev(n.mode)&&(r&=-513),65536&r&&!FS.isDir(n.mode))throw new FS.ErrnoError(54);if(!a){var i=FS.mayOpen(n,r);if(i)throw new FS.ErrnoError(i)}512&r&&!a&&FS.truncate(n,0),r&=-131713;var _=FS.createStream({node:n,path:FS.getPath(n),flags:r,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return _.stream_ops.open&&_.stream_ops.open(_),Module.logReadFiles&&!(1&r)&&(FS.readFiles||(FS.readFiles={}),e in FS.readFiles||(FS.readFiles[e]=1)),_},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{FS.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,r,t){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=t&&1!=t&&2!=t)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,r,t),e.ungotten=[],e.position},read(e,r,t,n,a){if(n<0||a<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(1==(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var i=typeof a<"u";if(i){if(!e.seekable)throw new FS.ErrnoError(70)}else a=e.position;var _=e.stream_ops.read(e,r,t,n,a);return i||(e.position+=_),_},write(e,r,t,n,a,i){if(n<0||a<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var _=typeof a<"u";if(_){if(!e.seekable)throw new FS.ErrnoError(70)}else a=e.position;var s=e.stream_ops.write(e,r,t,n,a,i);return _||(e.position+=s),s},allocate(e,r,t){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(r<0||t<=0)throw new FS.ErrnoError(28);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,r,t)},mmap(e,r,t,n,a){if(2&n&&!(2&a)&&2!=(2097155&e.flags))throw new FS.ErrnoError(2);if(1==(2097155&e.flags))throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);return e.stream_ops.mmap(e,r,t,n,a)},msync:(e,r,t,n,a)=>e.stream_ops.msync?e.stream_ops.msync(e,r,t,n,a):0,ioctl(e,r,t){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(59);return e.stream_ops.ioctl(e,r,t)},readFile(e,r={}){if(r.flags=r.flags||0,r.encoding=r.encoding||"binary","utf8"!==r.encoding&&"binary"!==r.encoding)throw new Error('Invalid encoding type "'.concat(r.encoding,'"'));var t,n=FS.open(e,r.flags),a=FS.stat(e).size,i=new Uint8Array(a);return FS.read(n,i,0,a,0),"utf8"===r.encoding?t=UTF8ArrayToString(i,0):"binary"===r.encoding&&(t=i),FS.close(n),t},writeFile(e,r,t={}){t.flags=t.flags||577;var n=FS.open(e,t.flags,t.mode);if("string"==typeof r){var a=new Uint8Array(lengthBytesUTF8(r)+1),i=stringToUTF8Array(r,a,0,a.length);FS.write(n,a,0,i,void 0,t.canOwn)}else{if(!ArrayBuffer.isView(r))throw new Error("Unsupported data type");FS.write(n,r,0,r.byteLength,void 0,t.canOwn)}FS.close(n)},cwd:()=>FS.currentPath,chdir(e){var r=FS.lookupPath(e,{follow:!0});if(null===r.node)throw new FS.ErrnoError(44);if(!FS.isDir(r.node.mode))throw new FS.ErrnoError(54);var t=FS.nodePermissions(r.node,"x");if(t)throw new FS.ErrnoError(t);FS.currentPath=r.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,r,t,n,a)=>n}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),r=0,t=()=>(0===r&&(r=randomFill(e).byteLength),e[--r]);FS.createDevice("/dev","random",t),FS.createDevice("/dev","urandom",t),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var r=FS.createNode(e,"fd",16895,73);return r.node_ops={lookup(e,r){var t=+r,n=FS.getStreamChecked(t),a={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return a.parent=a,a}},r}},{},"/proc/self/fd")},createStandardStreams(){Module.stdin?FS.createDevice("/dev","stdin",Module.stdin):FS.symlink("/dev/tty","/dev/stdin"),Module.stdout?FS.createDevice("/dev","stdout",null,Module.stdout):FS.symlink("/dev/tty","/dev/stdout"),Module.stderr?FS.createDevice("/dev","stderr",null,Module.stderr):FS.symlink("/dev/tty1","/dev/stderr"),FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},staticInit(){[44].forEach((e=>{FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack=""})),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS}},init(e,r,t){FS.init.initialized=!0,Module.stdin=e||Module.stdin,Module.stdout=r||Module.stdout,Module.stderr=t||Module.stderr,FS.createStandardStreams()},quit(){FS.init.initialized=!1,_fflush(0);for(var e=0;ethis.length-1||e<0)){var r=e%this.chunkSize,t=e/this.chunkSize|0;return this.getter(t)[r]}}setDataGetter(e){this.getter=e}cacheLength(){var e=new XMLHttpRequest;if(e.open("HEAD",t,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+t+". Status: "+e.status);var r,n=Number(e.getResponseHeader("Content-length")),a=(r=e.getResponseHeader("Accept-Ranges"))&&"bytes"===r,i=(r=e.getResponseHeader("Content-Encoding"))&&"gzip"===r,_=1048576;a||(_=n);var s=this;s.setDataGetter((e=>{var r=e*_,a=(e+1)*_-1;if(a=Math.min(a,n-1),typeof s.chunks[e]>"u"&&(s.chunks[e]=((e,r)=>{if(e>r)throw new Error("invalid range ("+e+", "+r+") or no bytes requested!");if(r>n-1)throw new Error("only "+n+" bytes available! programmer error!");var a=new XMLHttpRequest;if(a.open("GET",t,!1),n!==_&&a.setRequestHeader("Range","bytes="+e+"-"+r),a.responseType="arraybuffer",a.overrideMimeType&&a.overrideMimeType("text/plain; charset=x-user-defined"),a.send(null),!(a.status>=200&&a.status<300||304===a.status))throw new Error("Couldn't load "+t+". Status: "+a.status);return void 0!==a.response?new Uint8Array(a.response||[]):intArrayFromString(a.responseText||"",!0)})(r,a)),typeof s.chunks[e]>"u")throw new Error("doXHR failed!");return s.chunks[e]})),(i||!n)&&(_=n=1,n=this.getter(0).length,_=n,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=_,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var _={isDevice:!1,contents:new i}}else _={isDevice:!1,url:t};var s=FS.createFile(e,r,_,n,a);_.contents?s.contents=_.contents:_.url&&(s.contents=null,s.url=_.url),Object.defineProperties(s,{usedBytes:{get:function(){return this.contents.length}}});var o={};function l(e,r,t,n,a){var i=e.node.contents;if(a>=i.length)return 0;var _=Math.min(i.length-a,n);if(i.slice)for(var s=0;s<_;s++)r[t+s]=i[a+s];else for(s=0;s<_;s++)r[t+s]=i.get(a+s);return _}return Object.keys(s.stream_ops).forEach((e=>{var r=s.stream_ops[e];o[e]=(...e)=>(FS.forceLoadFile(s),r(...e))})),o.read=(e,r,t,n,a)=>(FS.forceLoadFile(s),l(e,r,t,n,a)),o.mmap=(e,r,t,n,a)=>{FS.forceLoadFile(s);var i=mmapAlloc(r);if(!i)throw new FS.ErrnoError(48);return l(e,GROWABLE_HEAP_I8(),i,r,t),{ptr:i,allocated:!0}},s.stream_ops=o,s}},SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,r,t){if(PATH.isAbs(r))return r;var n;if(n=-100===e?FS.cwd():SYSCALLS.getStreamFromFD(e).path,0==r.length){if(!t)throw new FS.ErrnoError(44);return n}return PATH.join2(n,r)},doStat(e,r,t){var n=e(r);GROWABLE_HEAP_I32()[t>>>2>>>0]=n.dev,GROWABLE_HEAP_I32()[t+4>>>2>>>0]=n.mode,GROWABLE_HEAP_U32()[t+8>>>2>>>0]=n.nlink,GROWABLE_HEAP_I32()[t+12>>>2>>>0]=n.uid,GROWABLE_HEAP_I32()[t+16>>>2>>>0]=n.gid,GROWABLE_HEAP_I32()[t+20>>>2>>>0]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+24>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+28>>>2>>>0]=tempI64[1],GROWABLE_HEAP_I32()[t+32>>>2>>>0]=4096,GROWABLE_HEAP_I32()[t+36>>>2>>>0]=n.blocks;var a=n.atime.getTime(),i=n.mtime.getTime(),_=n.ctime.getTime();return tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+40>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+44>>>2>>>0]=tempI64[1],GROWABLE_HEAP_U32()[t+48>>>2>>>0]=a%1e3*1e3,tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+56>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+60>>>2>>>0]=tempI64[1],GROWABLE_HEAP_U32()[t+64>>>2>>>0]=i%1e3*1e3,tempI64=[Math.floor(_/1e3)>>>0,(tempDouble=Math.floor(_/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+72>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+76>>>2>>>0]=tempI64[1],GROWABLE_HEAP_U32()[t+80>>>2>>>0]=_%1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+88>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+92>>>2>>>0]=tempI64[1],0},doMsync(e,r,t,n,a){if(!FS.isFile(r.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var i=GROWABLE_HEAP_U8().slice(e,e+t);FS.msync(r,i,a,t,n)},getStreamFromFD:e=>FS.getStreamChecked(e),varargs:void 0,getStr:e=>UTF8ToString(e)};function ___syscall__newselect(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(3,0,1,e,r,t,n,a);r>>>=0,t>>>=0,n>>>=0,a>>>=0;try{for(var i=0,_=r?GROWABLE_HEAP_I32()[r>>>2>>>0]:0,s=r?GROWABLE_HEAP_I32()[r+4>>>2>>>0]:0,o=t?GROWABLE_HEAP_I32()[t>>>2>>>0]:0,l=t?GROWABLE_HEAP_I32()[t+4>>>2>>>0]:0,c=n?GROWABLE_HEAP_I32()[n>>>2>>>0]:0,u=n?GROWABLE_HEAP_I32()[n+4>>>2>>>0]:0,d=0,p=0,m=0,f=0,g=0,E=0,h=(r?GROWABLE_HEAP_I32()[r>>>2>>>0]:0)|(t?GROWABLE_HEAP_I32()[t>>>2>>>0]:0)|(n?GROWABLE_HEAP_I32()[n>>>2>>>0]:0),v=(r?GROWABLE_HEAP_I32()[r+4>>>2>>>0]:0)|(t?GROWABLE_HEAP_I32()[t+4>>>2>>>0]:0)|(n?GROWABLE_HEAP_I32()[n+4>>>2>>>0]:0),S=function(e,r,t,n){return e<32?r&n:t&n},A=0;A>>2>>>0]:0)+(r?GROWABLE_HEAP_I32()[a+4>>>2>>>0]:0)/1e6)),y=L.stream_ops.poll(L,T)}1&y&&S(A,_,s,b)&&(A<32?d|=b:p|=b,i++),4&y&&S(A,o,l,b)&&(A<32?m|=b:f|=b,i++),2&y&&S(A,c,u,b)&&(A<32?g|=b:E|=b,i++)}}return r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=d,GROWABLE_HEAP_I32()[r+4>>>2>>>0]=p),t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=m,GROWABLE_HEAP_I32()[t+4>>>2>>>0]=f),n&&(GROWABLE_HEAP_I32()[n>>>2>>>0]=g,GROWABLE_HEAP_I32()[n+4>>>2>>>0]=E),i}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall__newselect.sig="iipppp";var SOCKFS={mount:e=>(Module.websocket=Module.websocket&&"object"==typeof Module.websocket?Module.websocket:{},Module.websocket._callbacks={},Module.websocket.on=function(e,r){return"function"==typeof r&&(this._callbacks[e]=r),this},Module.websocket.emit=function(e,r){"function"==typeof this._callbacks[e]&&this._callbacks[e].call(this,r)},FS.createNode(null,"/",16895,0)),createSocket(e,r,t){if(1==(r&=-526337)&&t&&6!=t)throw new FS.ErrnoError(66);var n={family:e,type:r,protocol:t,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops},a=SOCKFS.nextname(),i=FS.createNode(SOCKFS.root,a,49152,0);i.sock=n;var _=FS.createStream({path:a,node:i,flags:2,seekable:!1,stream_ops:SOCKFS.stream_ops});return n.stream=_,n},getSocket(e){var r=FS.getStream(e);return r&&FS.isSocket(r.node.mode)?r.node.sock:null},stream_ops:{poll(e){var r=e.node.sock;return r.sock_ops.poll(r)},ioctl(e,r,t){var n=e.node.sock;return n.sock_ops.ioctl(n,r,t)},read(e,r,t,n,a){var i=e.node.sock,_=i.sock_ops.recvmsg(i,n);return _?(r.set(_.buffer,t),_.buffer.length):0},write(e,r,t,n,a){var i=e.node.sock;return i.sock_ops.sendmsg(i,r,t,n)},close(e){var r=e.node.sock;r.sock_ops.close(r)}},nextname:()=>(SOCKFS.nextname.current||(SOCKFS.nextname.current=0),"socket["+SOCKFS.nextname.current+++"]"),websocket_sock_ops:{createPeer(e,r,t){var n;if("object"==typeof r&&(n=r,r=null,t=null),n)if(n._socket)r=n._socket.remoteAddress,t=n._socket.remotePort;else{var a=/ws[s]?:\/\/([^:]+):(\d+)/.exec(n.url);if(!a)throw new Error("WebSocket URL must be in the format ws(s)://address:port");r=a[1],t=parseInt(a[2],10)}else try{var i=Module.websocket&&"object"==typeof Module.websocket,_="ws:#".replace("#","//");if(i&&"string"==typeof Module.websocket.url&&(_=Module.websocket.url),"ws://"===_||"wss://"===_){var s=r.split("/");_=_+s[0]+":"+t+"/"+s.slice(1).join("/")}var o="binary";i&&"string"==typeof Module.websocket.subprotocol&&(o=Module.websocket.subprotocol);var l=void 0;"null"!==o&&(l=o=o.replace(/^ +| +$/g,"").split(/ *, */)),i&&null===Module.websocket.subprotocol&&(o="null",l=void 0),(n=new(ENVIRONMENT_IS_NODE?ue():WebSocket)(_,l)).binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(23)}var c={addr:r,port:t,socket:n,dgram_send_queue:[]};return SOCKFS.websocket_sock_ops.addPeer(e,c),SOCKFS.websocket_sock_ops.handlePeerEvents(e,c),2===e.type&&typeof e.sport<"u"&&c.dgram_send_queue.push(new Uint8Array([255,255,255,255,112,111,114,116,(65280&e.sport)>>8,255&e.sport])),c},getPeer:(e,r,t)=>e.peers[r+":"+t],addPeer(e,r){e.peers[r.addr+":"+r.port]=r},removePeer(e,r){delete e.peers[r.addr+":"+r.port]},handlePeerEvents(e,r){var t=!0,n=function(){Module.websocket.emit("open",e.stream.fd);try{for(var t=r.dgram_send_queue.shift();t;)r.socket.send(t),t=r.dgram_send_queue.shift()}catch(e){r.socket.close()}};function a(n){if("string"==typeof n)n=(new TextEncoder).encode(n);else{if(assert(void 0!==n.byteLength),0==n.byteLength)return;n=new Uint8Array(n)}var a=t;if(t=!1,a&&10===n.length&&255===n[0]&&255===n[1]&&255===n[2]&&255===n[3]&&112===n[4]&&111===n[5]&&114===n[6]&&116===n[7]){var i=n[8]<<8|n[9];return SOCKFS.websocket_sock_ops.removePeer(e,r),r.port=i,void SOCKFS.websocket_sock_ops.addPeer(e,r)}e.recv_queue.push({addr:r.addr,port:r.port,data:n}),Module.websocket.emit("message",e.stream.fd)}ENVIRONMENT_IS_NODE?(r.socket.on("open",n),r.socket.on("message",(function(e,r){r&&a(new Uint8Array(e).buffer)})),r.socket.on("close",(function(){Module.websocket.emit("close",e.stream.fd)})),r.socket.on("error",(function(r){e.error=14,Module.websocket.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])}))):(r.socket.onopen=n,r.socket.onclose=function(){Module.websocket.emit("close",e.stream.fd)},r.socket.onmessage=function(e){a(e.data)},r.socket.onerror=function(r){e.error=14,Module.websocket.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})},poll(e){if(1===e.type&&e.server)return e.pending.length?65:0;var r=0,t=1===e.type?SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport):null;return(e.recv_queue.length||!t||t&&t.socket.readyState===t.socket.CLOSING||t&&t.socket.readyState===t.socket.CLOSED)&&(r|=65),(!t||t&&t.socket.readyState===t.socket.OPEN)&&(r|=4),(t&&t.socket.readyState===t.socket.CLOSING||t&&t.socket.readyState===t.socket.CLOSED)&&(r|=16),r},ioctl(e,r,t){if(21531===r){var n=0;return e.recv_queue.length&&(n=e.recv_queue[0].data.length),GROWABLE_HEAP_I32()[t>>>2>>>0]=n,0}return 28},close(e){if(e.server){try{e.server.close()}catch(e){}e.server=null}for(var r=Object.keys(e.peers),t=0;t{var r=SOCKFS.getSocket(e);if(!r)throw new FS.ErrnoError(8);return r},Sockets={BUFFER_SIZE:10240,MAX_BUFFER_SIZE:10485760,nextFd:1,fds:{},nextport:1,maxport:65535,peer:null,connections:{},portmap:{},localAddr:4261412874,addrPool:[33554442,50331658,67108874,83886090,100663306,117440522,134217738,150994954,167772170,184549386,201326602,218103818,234881034]},inetPton4=e=>{for(var r=e.split("."),t=0;t<4;t++){var n=Number(r[t]);if(isNaN(n))return null;r[t]=n}return(r[0]|r[1]<<8|r[2]<<16|r[3]<<24)>>>0},jstoi_q=e=>parseInt(e),inetPton6=e=>{var r,t,n,a,i=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(e))return null;if("::"===e)return[0,0,0,0,0,0,0,0];for((e=e.startsWith("::")?e.replace("::","Z:"):e.replace("::",":Z:")).indexOf(".")>0?((r=(e=e.replace(new RegExp("[.]","g"),":")).split(":"))[r.length-4]=jstoi_q(r[r.length-4])+256*jstoi_q(r[r.length-3]),r[r.length-3]=jstoi_q(r[r.length-2])+256*jstoi_q(r[r.length-1]),r=r.slice(0,r.length-2)):r=e.split(":"),n=0,a=0,t=0;t{switch(r){case 2:t=inetPton4(t),zeroMemory(e,16),a&&(GROWABLE_HEAP_I32()[a>>>2>>>0]=16),GROWABLE_HEAP_I16()[e>>>1>>>0]=r,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=t,GROWABLE_HEAP_I16()[e+2>>>1>>>0]=_htons(n);break;case 10:t=inetPton6(t),zeroMemory(e,28),a&&(GROWABLE_HEAP_I32()[a>>>2>>>0]=28),GROWABLE_HEAP_I32()[e>>>2>>>0]=r,GROWABLE_HEAP_I32()[e+8>>>2>>>0]=t[0],GROWABLE_HEAP_I32()[e+12>>>2>>>0]=t[1],GROWABLE_HEAP_I32()[e+16>>>2>>>0]=t[2],GROWABLE_HEAP_I32()[e+20>>>2>>>0]=t[3],GROWABLE_HEAP_I16()[e+2>>>1>>>0]=_htons(n);break;default:return 5}return 0},DNS={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var r,t=inetPton4(e);if(null!==t||null!==(t=inetPton6(e)))return e;if(DNS.address_map.addrs[e])r=DNS.address_map.addrs[e];else{var n=DNS.address_map.id++;assert(n<65535,"exceeded max address mappings of 65535"),r="172.29."+(255&n)+"."+(65280&n),DNS.address_map.names[r]=e,DNS.address_map.addrs[e]=r}return r},lookup_addr:e=>DNS.address_map.names[e]?DNS.address_map.names[e]:null};function ___syscall_accept4(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(4,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0;try{var _=getSocketFromFD(e),s=_.sock_ops.accept(_);return r&&writeSockaddr(r,s.family,DNS.lookup_name(s.daddr),s.dport,t),s.stream.fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_accept4.sig="iippiii";var inetNtop4=e=>(255&e)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),inetNtop6=e=>{var r="",t=0,n=0,a=0,i=0,_=0,s=0,o=[65535&e[0],e[0]>>16,65535&e[1],e[1]>>16,65535&e[2],e[2]>>16,65535&e[3],e[3]>>16],l=!0,c="";for(s=0;s<5;s++)if(0!==o[s]){l=!1;break}if(l){if(c=inetNtop4(o[6]|o[7]<<16),-1===o[5])return(r="::ffff:")+c;if(0===o[5])return"0.0.0.0"===c&&(c=""),"0.0.0.1"===c&&(c="1"),(r="::")+c}for(t=0;t<8;t++)0===o[t]&&(t-a>1&&(_=0),a=t,_++),_>n&&(i=t-(n=_)+1);for(t=0;t<8;t++)n>1&&0===o[t]&&t>=i&&t{var t,n=GROWABLE_HEAP_I16()[e>>>1>>>0],a=_ntohs(GROWABLE_HEAP_U16()[e+2>>>1>>>0]);switch(n){case 2:if(16!==r)return{errno:28};t=GROWABLE_HEAP_I32()[e+4>>>2>>>0],t=inetNtop4(t);break;case 10:if(28!==r)return{errno:28};t=[GROWABLE_HEAP_I32()[e+8>>>2>>>0],GROWABLE_HEAP_I32()[e+12>>>2>>>0],GROWABLE_HEAP_I32()[e+16>>>2>>>0],GROWABLE_HEAP_I32()[e+20>>>2>>>0]],t=inetNtop6(t);break;default:return{errno:5}}return{family:n,addr:t,port:a}},getSocketAddress=(e,r,t)=>{if(t&&0===e)return null;var n=readSockaddr(e,r);if(n.errno)throw new FS.ErrnoError(n.errno);return n.addr=DNS.lookup_addr(n.addr)||n.addr,n};function ___syscall_bind(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(5,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0;try{var _=getSocketFromFD(e),s=getSocketAddress(r,t);return _.sock_ops.bind(_,s.addr,s.port),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_chdir(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(6,0,1,e);e>>>=0;try{return e=SYSCALLS.getStr(e),FS.chdir(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_chmod(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(7,0,1,e,r);e>>>=0;try{return e=SYSCALLS.getStr(e),FS.chmod(e,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_connect(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(8,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0;try{var _=getSocketFromFD(e),s=getSocketAddress(r,t);return _.sock_ops.connect(_,s.addr,s.port),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_dup(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(9,0,1,e);try{var r=SYSCALLS.getStreamFromFD(e);return FS.dupStream(r).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_dup3(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(10,0,1,e,r,t);try{var n=SYSCALLS.getStreamFromFD(e);if(n.fd===r)return-28;var a=FS.getStream(r);return a&&FS.close(a),FS.dupStream(n,r).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_faccessat(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(11,0,1,e,r,t,n);r>>>=0;try{if(r=SYSCALLS.getStr(r),r=SYSCALLS.calculateAt(e,r),-8&t)return-28;var a=FS.lookupPath(r,{follow:!0}).node;if(!a)return-44;var i="";return 4&t&&(i+="r"),2&t&&(i+="w"),1&t&&(i+="x"),i&&FS.nodePermissions(a,i)?-2:0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fadvise64(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(12,0,0,e,r,t,n):0}function ___syscall_fallocate(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(13,0,1,e,r,t,n,a,i);var _=convertI32PairToI53Checked(t,n),s=convertI32PairToI53Checked(a,i);try{if(isNaN(_))return 61;var o=SYSCALLS.getStreamFromFD(e);return FS.allocate(o,_,s),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchdir(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(14,0,1,e);try{var r=SYSCALLS.getStreamFromFD(e);return FS.chdir(r.path),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchmod(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(15,0,1,e,r);try{return FS.fchmod(e,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchmodat2(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(16,0,1,e,r,t,n);r>>>=0;try{var a=256&n;return r=SYSCALLS.getStr(r),r=SYSCALLS.calculateAt(e,r),FS.chmod(r,t,a),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchown32(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(17,0,1,e,r,t);try{return FS.fchown(e,r,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchownat(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(18,0,1,e,r,t,n,a);r>>>=0;try{r=SYSCALLS.getStr(r);var i=256&a;return a&=-257,r=SYSCALLS.calculateAt(e,r),(i?FS.lchown:FS.chown)(r,t,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function syscallGetVarargI(){var e=GROWABLE_HEAP_I32()[+SYSCALLS.varargs>>>2>>>0];return SYSCALLS.varargs+=4,e}___syscall_bind.sig="iippiii",___syscall_chdir.sig="ip",___syscall_chmod.sig="ipi",___syscall_connect.sig="iippiii",___syscall_dup.sig="ii",___syscall_dup3.sig="iiii",___syscall_faccessat.sig="iipii",___syscall_fadvise64.sig="iiiiiii",___syscall_fallocate.sig="iiiiiii",___syscall_fchdir.sig="ii",___syscall_fchmod.sig="iii",___syscall_fchmodat2.sig="iipii",___syscall_fchown32.sig="iiii",___syscall_fchownat.sig="iipiii";var syscallGetVarargP=syscallGetVarargI;function ___syscall_fcntl64(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(19,0,1,e,r,t);t>>>=0,SYSCALLS.varargs=t;try{var n=SYSCALLS.getStreamFromFD(e);switch(r){case 0:if((a=syscallGetVarargI())<0)return-28;for(;FS.streams[a];)a++;return FS.dupStream(n,a).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var a=syscallGetVarargI();return n.flags|=a,0;case 12:return a=syscallGetVarargP(),GROWABLE_HEAP_I16()[a+0>>>1>>>0]=2,0}return-28}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fdatasync(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(20,0,1,e);try{return SYSCALLS.getStreamFromFD(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstat64(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(21,0,1,e,r);r>>>=0;try{var t=SYSCALLS.getStreamFromFD(e);return SYSCALLS.doStat(FS.stat,t.path,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_statfs64(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(23,0,1,e,r,t);e>>>=0,r>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),GROWABLE_HEAP_I32()[t+4>>>2>>>0]=4096,GROWABLE_HEAP_I32()[t+40>>>2>>>0]=4096,GROWABLE_HEAP_I32()[t+8>>>2>>>0]=1e6,GROWABLE_HEAP_I32()[t+12>>>2>>>0]=5e5,GROWABLE_HEAP_I32()[t+16>>>2>>>0]=5e5,GROWABLE_HEAP_I32()[t+20>>>2>>>0]=FS.nextInode,GROWABLE_HEAP_I32()[t+24>>>2>>>0]=1e6,GROWABLE_HEAP_I32()[t+28>>>2>>>0]=42,GROWABLE_HEAP_I32()[t+44>>>2>>>0]=2,GROWABLE_HEAP_I32()[t+36>>>2>>>0]=255,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstatfs64(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(22,0,1,e,r,t);r>>>=0,t>>>=0;try{return SYSCALLS.getStreamFromFD(e),___syscall_statfs64(0,r,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ftruncate64(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(24,0,1,e,r,t);var n=convertI32PairToI53Checked(r,t);try{return isNaN(n)?61:(FS.ftruncate(e,n),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_fcntl64.sig="iiip",___syscall_fdatasync.sig="ii",___syscall_fstat64.sig="iip",___syscall_statfs64.sig="ippp",___syscall_fstatfs64.sig="iipp",___syscall_ftruncate64.sig="iiii";var stringToUTF8=(e,r,t)=>stringToUTF8Array(e,GROWABLE_HEAP_U8(),r,t);function ___syscall_getcwd(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(25,0,1,e,r);e>>>=0,r>>>=0;try{if(0===r)return-28;var t=FS.cwd(),n=lengthBytesUTF8(t)+1;return r"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getdents64(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(26,0,1,e,r,t);r>>>=0,t>>>=0;try{var n=SYSCALLS.getStreamFromFD(e);n.getdents||(n.getdents=FS.readdir(n.path));for(var a=280,i=0,_=FS.llseek(n,0,1),s=Math.floor(_/a);s>>0,(tempDouble=o,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+i>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+i+4>>>2>>>0]=tempI64[1],tempI64=[(s+1)*a>>>0,(tempDouble=(s+1)*a,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+i+8>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+i+12>>>2>>>0]=tempI64[1],GROWABLE_HEAP_I16()[r+i+16>>>1>>>0]=280,GROWABLE_HEAP_I8()[r+i+18>>>0]=l,stringToUTF8(c,r+i+19,256),i+=a,s+=1}return FS.llseek(n,s*a,0),i}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getpeername(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(27,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0;try{var _=getSocketFromFD(e);return _.daddr?(writeSockaddr(r,_.family,DNS.lookup_name(_.daddr),_.dport,t),0):-53}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getsockname(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(28,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0;try{var _=getSocketFromFD(e);return writeSockaddr(r,_.family,DNS.lookup_name(_.saddr||"0.0.0.0"),_.sport,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getsockopt(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(29,0,1,e,r,t,n,a,i);n>>>=0,a>>>=0;try{var _=getSocketFromFD(e);return 1===r&&4===t?(GROWABLE_HEAP_I32()[n>>>2>>>0]=_.error,GROWABLE_HEAP_I32()[a>>>2>>>0]=4,_.error=null,0):-50}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ioctl(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(30,0,1,e,r,t);t>>>=0,SYSCALLS.varargs=t;try{var n=SYSCALLS.getStreamFromFD(e);switch(r){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var a=n.tty.ops.ioctl_tcgets(n),i=syscallGetVarargP();GROWABLE_HEAP_I32()[i>>>2>>>0]=a.c_iflag||0,GROWABLE_HEAP_I32()[i+4>>>2>>>0]=a.c_oflag||0,GROWABLE_HEAP_I32()[i+8>>>2>>>0]=a.c_cflag||0,GROWABLE_HEAP_I32()[i+12>>>2>>>0]=a.c_lflag||0;for(var _=0;_<32;_++)GROWABLE_HEAP_I8()[i+_+17>>>0]=a.c_cc[_]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){i=syscallGetVarargP();var s=GROWABLE_HEAP_I32()[i>>>2>>>0],o=GROWABLE_HEAP_I32()[i+4>>>2>>>0],l=GROWABLE_HEAP_I32()[i+8>>>2>>>0],c=GROWABLE_HEAP_I32()[i+12>>>2>>>0],u=[];for(_=0;_<32;_++)u.push(GROWABLE_HEAP_I8()[i+_+17>>>0]);return n.tty.ops.ioctl_tcsets(n.tty,r,{c_iflag:s,c_oflag:o,c_cflag:l,c_lflag:c,c_cc:u})}return 0;case 21519:return n.tty?(i=syscallGetVarargP(),GROWABLE_HEAP_I32()[i>>>2>>>0]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return i=syscallGetVarargP(),FS.ioctl(n,r,i);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var d=n.tty.ops.ioctl_tiocgwinsz(n.tty);i=syscallGetVarargP(),GROWABLE_HEAP_I16()[i>>>1>>>0]=d[0],GROWABLE_HEAP_I16()[i+2>>>1>>>0]=d[1]}return 0;default:return-28}}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_listen(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(31,0,1,e,r);try{var t=getSocketFromFD(e);return t.sock_ops.listen(t,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_lstat64(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(32,0,1,e,r);e>>>=0,r>>>=0;try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.lstat,e,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mkdirat(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(33,0,1,e,r,t);r>>>=0;try{return r=SYSCALLS.getStr(r),r=SYSCALLS.calculateAt(e,r),"/"===(r=PATH.normalize(r))[r.length-1]&&(r=r.substr(0,r.length-1)),FS.mkdir(r,t,0),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mknodat(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(34,0,1,e,r,t,n);r>>>=0;try{switch(r=SYSCALLS.getStr(r),r=SYSCALLS.calculateAt(e,r),61440&t){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return FS.mknod(r,t,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_newfstatat(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(35,0,1,e,r,t,n);r>>>=0,t>>>=0;try{r=SYSCALLS.getStr(r);var a=256&n,i=4096&n;return n&=-6401,r=SYSCALLS.calculateAt(e,r,i),SYSCALLS.doStat(a?FS.lstat:FS.stat,r,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_openat(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(36,0,1,e,r,t,n);r>>>=0,n>>>=0,SYSCALLS.varargs=n;try{r=SYSCALLS.getStr(r),r=SYSCALLS.calculateAt(e,r);var a=n?syscallGetVarargI():0;return FS.open(r,t,a).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_getcwd.sig="ipp",___syscall_getdents64.sig="iipp",___syscall_getpeername.sig="iippiii",___syscall_getsockname.sig="iippiii",___syscall_getsockopt.sig="iiiippi",___syscall_ioctl.sig="iiip",___syscall_listen.sig="iiiiiii",___syscall_lstat64.sig="ipp",___syscall_mkdirat.sig="iipi",___syscall_mknodat.sig="iipii",___syscall_newfstatat.sig="iippi",___syscall_openat.sig="iipip";var PIPEFS={BUCKET_BUFFER_SIZE:8192,mount:e=>FS.createNode(null,"/",16895,0),createPipe(){var e={buckets:[],refcnt:2};e.buckets.push({buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var r=PIPEFS.nextname(),t=PIPEFS.nextname(),n=FS.createNode(PIPEFS.root,r,4096,0),a=FS.createNode(PIPEFS.root,t,4096,0);n.pipe=e,a.pipe=e;var i=FS.createStream({path:r,node:n,flags:0,seekable:!1,stream_ops:PIPEFS.stream_ops});n.stream=i;var _=FS.createStream({path:t,node:a,flags:1,seekable:!1,stream_ops:PIPEFS.stream_ops});return a.stream=_,{readable_fd:i.fd,writable_fd:_.fd}},stream_ops:{poll(e){var r=e.node.pipe;if(1==(2097155&e.flags))return 260;if(r.buckets.length>0)for(var t=0;t0)return 65}return 0},ioctl:(e,r,t)=>28,fsync:e=>28,read(e,r,t,n,a){for(var i=e.node.pipe,_=0,s=0;s=s)return o.buffer.set(_,o.offset),o.offset+=s,s;l>0&&(o.buffer.set(_.subarray(0,l),o.offset),o.offset+=l,_=_.subarray(l,_.byteLength));for(var c=_.byteLength/PIPEFS.BUCKET_BUFFER_SIZE|0,u=_.byteLength%PIPEFS.BUCKET_BUFFER_SIZE,d=0;d0&&(p={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:_.byteLength,roffset:0},i.buckets.push(p),p.buffer.set(_)),s},close(e){var r=e.node.pipe;r.refcnt--,0===r.refcnt&&(r.buckets=null)}},nextname:()=>(PIPEFS.nextname.current||(PIPEFS.nextname.current=0),"pipe["+PIPEFS.nextname.current+++"]")};function ___syscall_pipe(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(37,0,1,e);e>>>=0;try{if(0==e)throw new FS.ErrnoError(21);var r=PIPEFS.createPipe();return GROWABLE_HEAP_I32()[e>>>2>>>0]=r.readable_fd,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=r.writable_fd,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_poll(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(38,0,1,e,r,t);e>>>=0;try{for(var n=0,a=0;a>>2>>>0],s=GROWABLE_HEAP_I16()[i+4>>>1>>>0],o=32,l=FS.getStream(_);l&&(o=SYSCALLS.DEFAULT_POLLMASK,l.stream_ops.poll&&(o=l.stream_ops.poll(l,-1))),(o&=24|s)&&n++,GROWABLE_HEAP_I16()[i+6>>>1>>>0]=o}return n}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_readlinkat(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(39,0,1,e,r,t,n);r>>>=0,t>>>=0,n>>>=0;try{if(r=SYSCALLS.getStr(r),r=SYSCALLS.calculateAt(e,r),n<=0)return-28;var a=FS.readlink(r),i=Math.min(n,lengthBytesUTF8(a)),_=GROWABLE_HEAP_I8()[t+i>>>0];return stringToUTF8(a,t,n+1),GROWABLE_HEAP_I8()[t+i>>>0]=_,i}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_recvfrom(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(40,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0,a>>>=0,i>>>=0;try{var _=getSocketFromFD(e),s=_.sock_ops.recvmsg(_,t);return s?(a&&writeSockaddr(a,_.family,DNS.lookup_name(s.addr),s.port,i),GROWABLE_HEAP_U8().set(s.buffer,r>>>0),s.buffer.byteLength):0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_recvmsg(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(41,0,1,e,r,t,n,a,i);r>>>=0;try{for(var _=getSocketFromFD(e),s=GROWABLE_HEAP_U32()[r+8>>>2>>>0],o=GROWABLE_HEAP_I32()[r+12>>>2>>>0],l=0,c=0;c>>2>>>0];var u=_.sock_ops.recvmsg(_,l);if(!u)return 0;var d=GROWABLE_HEAP_U32()[r>>>2>>>0];d&&writeSockaddr(d,_.family,DNS.lookup_name(u.addr),u.port);var p=0,m=u.buffer.byteLength;for(c=0;m>0&&c>>2>>>0],g=GROWABLE_HEAP_I32()[s+(8*c+4)>>>2>>>0];if(g){var E=Math.min(g,m),h=u.buffer.subarray(p,p+E);GROWABLE_HEAP_U8().set(h,f+p>>>0),p+=E,m-=E}}return p}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_renameat(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(42,0,1,e,r,t,n);r>>>=0,n>>>=0;try{return r=SYSCALLS.getStr(r),n=SYSCALLS.getStr(n),r=SYSCALLS.calculateAt(e,r),n=SYSCALLS.calculateAt(t,n),FS.rename(r,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_rmdir(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(43,0,1,e);e>>>=0;try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_sendmsg(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(44,0,1,e,r,t,n,a,i);r>>>=0,n>>>=0,a>>>=0;try{var _,s,o=getSocketFromFD(e),l=GROWABLE_HEAP_U32()[r+8>>>2>>>0],c=GROWABLE_HEAP_I32()[r+12>>>2>>>0],u=GROWABLE_HEAP_U32()[r>>>2>>>0],d=GROWABLE_HEAP_I32()[r+4>>>2>>>0];if(u){var p=readSockaddr(u,d);if(p.errno)return-p.errno;s=p.port,_=DNS.lookup_addr(p.addr)||p.addr}for(var m=0,f=0;f>>2>>>0];var g=new Uint8Array(m),E=0;for(f=0;f>>2>>>0],v=GROWABLE_HEAP_I32()[l+(8*f+4)>>>2>>>0],S=0;S>>0];return o.sock_ops.sendmsg(o,g,0,m,_,s)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_sendto(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(45,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0,a>>>=0,i>>>=0;try{var _=getSocketFromFD(e),s=getSocketAddress(a,i,!0);return s?_.sock_ops.sendmsg(_,GROWABLE_HEAP_I8(),r,t,s.addr,s.port):FS.write(_.stream,GROWABLE_HEAP_I8(),r,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_socket(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(46,0,1,e,r,t);try{return SOCKFS.createSocket(e,r,t).stream.fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_stat64(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(47,0,1,e,r);e>>>=0,r>>>=0;try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.stat,e,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_symlink(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(48,0,1,e,r);e>>>=0,r>>>=0;try{return e=SYSCALLS.getStr(e),r=SYSCALLS.getStr(r),FS.symlink(e,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_symlinkat(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(49,0,1,e,r,t);e>>>=0,t>>>=0;try{return t=SYSCALLS.calculateAt(r,t),FS.symlink(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_truncate64(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(50,0,1,e,r,t);e>>>=0;var n=convertI32PairToI53Checked(r,t);try{return isNaN(n)?61:(e=SYSCALLS.getStr(e),FS.truncate(e,n),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_unlinkat(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(51,0,1,e,r,t);r>>>=0;try{return r=SYSCALLS.getStr(r),r=SYSCALLS.calculateAt(e,r),0===t?FS.unlink(r):512===t?FS.rmdir(r):abort("Invalid flags passed to unlinkat"),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_pipe.sig="ip",___syscall_poll.sig="ipii",___syscall_readlinkat.sig="iippp",___syscall_recvfrom.sig="iippipp",___syscall_recvmsg.sig="iipiiii",___syscall_renameat.sig="iipip",___syscall_rmdir.sig="ip",___syscall_sendmsg.sig="iipippi",___syscall_sendto.sig="iippipp",___syscall_socket.sig="iiiiiii",___syscall_stat64.sig="ipp",___syscall_symlink.sig="ipp",___syscall_symlinkat.sig="ipip",___syscall_truncate64.sig="ipii",___syscall_unlinkat.sig="iipi";var readI53FromI64=e=>GROWABLE_HEAP_U32()[e>>>2>>>0]+4294967296*GROWABLE_HEAP_I32()[e+4>>>2>>>0];function ___syscall_utimensat(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(52,0,1,e,r,t,n);r>>>=0,t>>>=0;try{if(r=SYSCALLS.getStr(r),r=SYSCALLS.calculateAt(e,r,!0),t){var a=readI53FromI64(t),i=GROWABLE_HEAP_I32()[t+8>>>2>>>0];_=1e3*a+i/1e6,s=1e3*(a=readI53FromI64(t+=16))+(i=GROWABLE_HEAP_I32()[t+8>>>2>>>0])/1e6}else var _=Date.now(),s=_;return FS.utime(r,_,s),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_utimensat.sig="iippi";var ___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),ENV={},stringToUTF8OnStack=e=>{var r=lengthBytesUTF8(e)+1,t=stackAlloc(r);return stringToUTF8(e,t,r),t},dlSetError=e=>{withStackSave((()=>{var r=stringToUTF8OnStack(e);___dl_seterr(r,0)}))},dlopenInternal=(e,r)=>{var t=UTF8ToString(e+36),n=GROWABLE_HEAP_I32()[e+4>>>2>>>0];t=PATH.normalize(t);var a=!!(256&n),i=a?null:{},_={global:a,nodelete:!!(4096&n),loadAsync:r.loadAsync};if(r.loadAsync)return loadDynamicLibrary(t,_,i,e);try{return loadDynamicLibrary(t,_,i,e)}catch(e){return dlSetError("Could not load dynamic lib: ".concat(t,"\n").concat(e)),0}};function __dlopen_js(e){return dlopenInternal(e>>>=0,{loadAsync:!1})}function __dlsym_catchup_js(e,r){e>>>=0;var t=LDSO.loadedLibsByHandle[e].exports,n=t[Object.keys(t)[r]];return addFunction(n,n.sig)}function __dlsym_js(e,r,t){e>>>=0,t>>>=0,r=UTF8ToString(r>>>=0);var n,a,i=LDSO.loadedLibsByHandle[e];if(!i.exports.hasOwnProperty(r)||i.exports[r].stub)return dlSetError('Tried to lookup unknown symbol "'.concat(r,'" in dynamic lib: ').concat(i.name)),0;a=Object.keys(i.exports).indexOf(r);var _="orig$"+r;if((n=i.exports[_])?a=Object.keys(i.exports).indexOf(_):n=i.exports[r],"function"==typeof n){var s=getFunctionAddress(n);s?n=s:(n=addFunction(n,n.sig),GROWABLE_HEAP_U32()[t>>>2>>>0]=a)}return n}function __embind_register_bigint(e,r,t,n,a){}__dlopen_js.sig="pp",__dlsym_catchup_js.sig="ppi",__dlsym_js.sig="pppp",__embind_register_bigint.sig="vpppiiii";var embind_init_charCodes=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);embind_charCodes=e},embind_charCodes,readLatin1String=e=>{for(var r="",t=e;GROWABLE_HEAP_U8()[t>>>0];)r+=embind_charCodes[GROWABLE_HEAP_U8()[t++>>>0]];return r},awaitingDependencies={},registeredTypes={},typeDependencies={},BindingError,throwBindingError=e=>{throw new BindingError(e)},InternalError,throwInternalError=e=>{throw new InternalError(e)},whenDependentTypesAreResolved=(e,r,t)=>{function n(r){var n=t(r);n.length!==e.length&&throwInternalError("Mismatched type converter count");for(var a=0;a{registeredTypes.hasOwnProperty(e)?a[r]=registeredTypes[e]:(i.push(e),awaitingDependencies.hasOwnProperty(e)||(awaitingDependencies[e]=[]),awaitingDependencies[e].push((()=>{a[r]=registeredTypes[e],++_===i.length&&n(a)})))})),0===i.length&&n(a)};function sharedRegisterType(e,r,t={}){var n=r.name;if(e||throwBindingError('type "'.concat(n,'" must have a positive integer typeid pointer')),registeredTypes.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;throwBindingError("Cannot register type '".concat(n,"' twice"))}if(registeredTypes[e]=r,delete typeDependencies[e],awaitingDependencies.hasOwnProperty(e)){var a=awaitingDependencies[e];delete awaitingDependencies[e],a.forEach((e=>e()))}}function registerType(e,r,t={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return sharedRegisterType(e,r,t)}var GenericWireTypeSize=8;function __embind_register_bool(e,r,t,n){registerType(e>>>=0,{name:r=readLatin1String(r>>>=0),fromWireType:function(e){return!!e},toWireType:function(e,r){return r?t:n},argPackAdvance:GenericWireTypeSize,readValueFromPointer:function(e){return this.fromWireType(GROWABLE_HEAP_U8()[e>>>0])},destructorFunction:null})}__embind_register_bool.sig="vppii";var emval_freelist=[],emval_handles=[];function __emval_decref(e){(e>>>=0)>9&&0==--emval_handles[e+1]&&(emval_handles[e]=void 0,emval_freelist.push(e))}__emval_decref.sig="vp";var count_emval_handles=()=>emval_handles.length/2-5-emval_freelist.length,init_emval=()=>{emval_handles.push(0,1,void 0,1,null,1,!0,1,!1,1),Module.count_emval_handles=count_emval_handles},Emval={toValue:e=>(e||throwBindingError("Cannot use deleted val. handle = "+e),emval_handles[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let r=emval_freelist.pop()||emval_handles.length;return emval_handles[r]=e,emval_handles[r+1]=1,r}}}};function readPointer(e){return this.fromWireType(GROWABLE_HEAP_U32()[e>>>2>>>0])}var EmValType={name:"emscripten::val",fromWireType:e=>{var r=Emval.toValue(e);return __emval_decref(e),r},toWireType:(e,r)=>Emval.toHandle(r),argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:null};function __embind_register_emval(e){return registerType(e>>>=0,EmValType)}__embind_register_emval.sig="vp";var embindRepr=e=>{if(null===e)return"null";var r=typeof e;return"object"===r||"array"===r||"function"===r?e.toString():""+e},floatReadValueFromPointer=(e,r)=>{switch(r){case 4:return function(e){return this.fromWireType(GROWABLE_HEAP_F32()[e>>>2>>>0])};case 8:return function(e){return this.fromWireType(GROWABLE_HEAP_F64()[e>>>3>>>0])};default:throw new TypeError("invalid float width (".concat(r,"): ").concat(e))}},__embind_register_float=function(e,r,t){t>>>=0,registerType(e>>>=0,{name:r=readLatin1String(r>>>=0),fromWireType:e=>e,toWireType:(e,r)=>r,argPackAdvance:GenericWireTypeSize,readValueFromPointer:floatReadValueFromPointer(r,t),destructorFunction:null})};__embind_register_float.sig="vppp";var integerReadValueFromPointer=(e,r,t)=>{switch(r){case 1:return t?e=>GROWABLE_HEAP_I8()[e>>>0]:e=>GROWABLE_HEAP_U8()[e>>>0];case 2:return t?e=>GROWABLE_HEAP_I16()[e>>>1>>>0]:e=>GROWABLE_HEAP_U16()[e>>>1>>>0];case 4:return t?e=>GROWABLE_HEAP_I32()[e>>>2>>>0]:e=>GROWABLE_HEAP_U32()[e>>>2>>>0];default:throw new TypeError("invalid integer width (".concat(r,"): ").concat(e))}};function __embind_register_integer(e,r,t,n,a){e>>>=0,t>>>=0,r=readLatin1String(r>>>=0),-1===a&&(a=4294967295);var i=e=>e;if(0===n){var _=32-8*t;i=e=>e<<_>>>_}var s=r.includes("unsigned");registerType(e,{name:r,fromWireType:i,toWireType:s?function(e,r){return this.name,r>>>0}:function(e,r){return this.name,r},argPackAdvance:GenericWireTypeSize,readValueFromPointer:integerReadValueFromPointer(r,t,0!==n),destructorFunction:null})}function __embind_register_memory_view(e,r,t){t>>>=0;var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][r];function a(e){var r=GROWABLE_HEAP_U32()[e>>>2>>>0],t=GROWABLE_HEAP_U32()[e+4>>>2>>>0];return new n(GROWABLE_HEAP_I8().buffer,t,r)}registerType(e>>>=0,{name:t=readLatin1String(t),fromWireType:a,argPackAdvance:GenericWireTypeSize,readValueFromPointer:a},{ignoreDuplicateRegistrations:!0})}function __embind_register_std_string(e,r){e>>>=0;var t="std::string"===(r=readLatin1String(r>>>=0));registerType(e,{name:r,fromWireType(e){var r,n=GROWABLE_HEAP_U32()[e>>>2>>>0],a=e+4;if(t)for(var i=a,_=0;_<=n;++_){var s=a+_;if(_==n||0==GROWABLE_HEAP_U8()[s>>>0]){var o=UTF8ToString(i,s-i);void 0===r?r=o:(r+="\0",r+=o),i=s+1}}else{var l=new Array(n);for(_=0;_>>0]);r=l.join("")}return _free(e),r},toWireType(e,r){r instanceof ArrayBuffer&&(r=new Uint8Array(r));var n,a="string"==typeof r;a||r instanceof Uint8Array||r instanceof Uint8ClampedArray||r instanceof Int8Array||throwBindingError("Cannot pass non-string to std::string"),n=t&&a?lengthBytesUTF8(r):r.length;var i=_malloc(4+n+1),_=i+4;if(GROWABLE_HEAP_U32()[i>>>2>>>0]=n,t&&a)stringToUTF8(r,_,n+1);else if(a)for(var s=0;s255&&(_free(_),throwBindingError("String has UTF-16 code units that do not fit in 8 bits")),GROWABLE_HEAP_U8()[_+s>>>0]=o}else for(s=0;s>>0]=r[s];return null!==e&&e.push(_free,i),i},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(e){_free(e)}})}__embind_register_integer.sig="vpppii",__embind_register_memory_view.sig="vpip",__embind_register_std_string.sig="vpp";var UTF16Decoder=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,UTF16ToString=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&GROWABLE_HEAP_U16()[n>>>0];)++n;if((t=n<<1)-e>32&&UTF16Decoder)return UTF16Decoder.decode(GROWABLE_HEAP_U8().slice(e,t));for(var i="",_=0;!(_>=r/2);++_){var s=GROWABLE_HEAP_I16()[e+2*_>>>1>>>0];if(0==s)break;i+=String.fromCharCode(s)}return i},stringToUTF16=(e,r,t)=>{if(null!=t||(t=2147483647),t<2)return 0;for(var n=r,a=(t-=2)<2*e.length?t/2:e.length,i=0;i>>1>>>0]=_,r+=2}return GROWABLE_HEAP_I16()[r>>>1>>>0]=0,r-n},lengthBytesUTF16=e=>2*e.length,UTF32ToString=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=GROWABLE_HEAP_I32()[e+4*t>>>2>>>0];if(0==a)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(a)}return n},stringToUTF32=(e,r,t)=>{if(null!=t||(t=2147483647),t<4)return 0;for(var n=r>>>=0,a=n+t-4,i=0;i=55296&&_<=57343&&(_=65536+((1023&_)<<10)|1023&e.charCodeAt(++i)),GROWABLE_HEAP_I32()[r>>>2>>>0]=_,(r+=4)+4>a)break}return GROWABLE_HEAP_I32()[r>>>2>>>0]=0,r-n},lengthBytesUTF32=e=>{for(var r=0,t=0;t=55296&&n<=57343&&++t,r+=4}return r},__embind_register_std_wstring=function(e,r,t){var n,a,i,_;e>>>=0,r>>>=0,t=readLatin1String(t>>>=0),2===r?(n=UTF16ToString,a=stringToUTF16,_=lengthBytesUTF16,i=e=>GROWABLE_HEAP_U16()[e>>>1>>>0]):4===r&&(n=UTF32ToString,a=stringToUTF32,_=lengthBytesUTF32,i=e=>GROWABLE_HEAP_U32()[e>>>2>>>0]),registerType(e,{name:t,fromWireType:e=>{for(var t,a=GROWABLE_HEAP_U32()[e>>>2>>>0],_=e+4,s=0;s<=a;++s){var o=e+4+s*r;if(s==a||0==i(o)){var l=n(_,o-_);void 0===t?t=l:(t+="\0",t+=l),_=o+r}}return _free(e),t},toWireType:(e,n)=>{"string"!=typeof n&&throwBindingError("Cannot pass non-string to C++ string type ".concat(t));var i=_(n),s=_malloc(4+i+r);return GROWABLE_HEAP_U32()[s>>>2>>>0]=i/r,a(n,s+4,i+r),null!==e&&e.push(_free,s),s},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(e){_free(e)}})};__embind_register_std_wstring.sig="vppp";var __embind_register_void=function(e,r){registerType(e>>>=0,{isVoid:!0,name:r=readLatin1String(r>>>=0),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,r)=>{}})};__embind_register_void.sig="vpp";var maybeExit=()=>{if(!keepRuntimeAlive())try{ENVIRONMENT_IS_PTHREAD?__emscripten_thread_exit(EXITSTATUS):_exit(EXITSTATUS)}catch(e){handleException(e)}},callUserCallback=e=>{if(!ABORT)try{e(),maybeExit()}catch(e){handleException(e)}},runtimeKeepalivePush=()=>{runtimeKeepaliveCounter+=1};runtimeKeepalivePush.sig="v";var runtimeKeepalivePop=()=>{runtimeKeepaliveCounter-=1};function __emscripten_dlopen_js(e,r,t,n){function a(r){var a=UTF8ToString(e+36);dlSetError("'Could not load dynamic lib: ".concat(a,"\n").concat(r)),runtimeKeepalivePop(),callUserCallback((()=>getWasmTableEntry(t)(e,n)))}e>>>=0,r>>>=0,t>>>=0,n>>>=0,runtimeKeepalivePush();var i=dlopenInternal(e,{loadAsync:!0});i?i.then((function(){runtimeKeepalivePop(),callUserCallback((()=>getWasmTableEntry(r)(e,n)))}),a):a()}runtimeKeepalivePop.sig="v",__emscripten_dlopen_js.sig="vpppp";var __emscripten_dlsync_threads=()=>{for(let e of Object.keys(PThread.pthreads)){let r=Number(e);PThread.finishedThreads.has(r)||__emscripten_proxy_dlsync(r)}};__emscripten_dlsync_threads.sig="v";class HandleAllocator{constructor(){this.allocated=[void 0],this.freelist=[]}get(e){return this.allocated[e]}has(e){return void 0!==this.allocated[e]}allocate(e){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=e,r}free(e){this.allocated[e]=void 0,this.freelist.push(e)}}var promiseMap=new HandleAllocator,makePromise=()=>{var e={};return e.promise=new Promise(((r,t)=>{e.reject=t,e.resolve=r})),e.id=promiseMap.allocate(e),e};function _emscripten_promise_create(){return makePromise().id}_emscripten_promise_create.sig="p";var getPromise=e=>promiseMap.get(e).promise;function __emscripten_dlsync_threads_async(e,r,t){e>>>=0,r>>>=0,t>>>=0;let n=[];assert(0===Object.keys(PThread.outstandingPromises).length);var a=makePromise();n.push(a.promise),__emscripten_dlsync_self_async(a.id);for(let r of Object.keys(PThread.pthreads)){let t=Number(r);t!==e&&!PThread.finishedThreads.has(t)&&(a=makePromise(),__emscripten_proxy_dlsync_async(t,a.id),PThread.outstandingPromises[t]=a,n.push(a.promise))}Promise.all(n).then((()=>{PThread.outstandingPromises={},getWasmTableEntry(r)(t)}))}__emscripten_dlsync_threads_async.sig="vppp";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;function __emscripten_get_progname(e,r){stringToUTF8(thisProgram,e>>>=0,r)}function __emscripten_lookup_name(e){var r=UTF8ToString(e>>>=0);return inetPton4(DNS.lookup_name(r))}function __emscripten_thread_mailbox_await(e){if(e>>>=0,"function"==typeof Atomics.waitAsync){Atomics.waitAsync(GROWABLE_HEAP_I32(),e>>>2,e).value.then(checkMailbox);var r=e+128;Atomics.store(GROWABLE_HEAP_I32(),r>>>2,1)}}__emscripten_get_now_is_monotonic.sig="i",__emscripten_get_progname.sig="vpi",__emscripten_lookup_name.sig="ip",Module.__emscripten_thread_mailbox_await=__emscripten_thread_mailbox_await,__emscripten_thread_mailbox_await.sig="vp";var checkMailbox=()=>{var e=_pthread_self();e&&(__emscripten_thread_mailbox_await(e),callUserCallback(__emscripten_check_mailbox))};function __emscripten_notify_mailbox_postmessage(e,r,t){if((e>>>=0)==(r>>>=0))setTimeout(checkMailbox);else if(ENVIRONMENT_IS_PTHREAD)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=PThread.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}}Module.checkMailbox=checkMailbox,__emscripten_notify_mailbox_postmessage.sig="vppp";var proxiedJSCallArgs=[];function __emscripten_receive_on_main_thread_js(e,r,t,n,a){r>>>=0,t>>>=0,a>>>=0,proxiedJSCallArgs.length=n;for(var i=a>>>3,_=0;_>>0];var s=r?ASM_CONSTS[r]:proxiedFunctionTable[e];PThread.currentProxiedOperationCallerThread=t;var o=s(...proxiedJSCallArgs);return PThread.currentProxiedOperationCallerThread=0,o}function __emscripten_runtime_keepalive_clear(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(53,0,1);noExitRuntime=!1,runtimeKeepaliveCounter=0}function __emscripten_set_offscreencanvas_size(e,r,t){return-1}function __emscripten_system(e){if(e>>>=0,ENVIRONMENT_IS_NODE){if(!e)return 1;var r=UTF8ToString(e);if(!r.length)return 0;var t=["child_process"].map(K).spawnSync(r,[],{shell:!0,stdio:"inherit"}),n=(e,r)=>e<<8|r;return null===t.status?n(0,(e=>{switch(e){case"SIGHUP":return 1;case"SIGINT":return 2;case"SIGQUIT":return 3;case"SIGFPE":return 8;case"SIGKILL":return 9;case"SIGALRM":return 14;case"SIGTERM":return 15}return 2})(t.signal)):n(t.status,0)}return e?-52:0}function __emscripten_thread_exit_joinable(e){e>>>=0,ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"markAsFinished",thread:e}):markAsFinished(e)}function __emscripten_thread_set_strongref(e){e>>>=0,ENVIRONMENT_IS_NODE&&PThread.pthreads[e].ref()}function __gmtime_js(e,r,t){var n=convertI32PairToI53Checked(e,r);t>>>=0;var a=new Date(1e3*n);GROWABLE_HEAP_I32()[t>>>2>>>0]=a.getUTCSeconds(),GROWABLE_HEAP_I32()[t+4>>>2>>>0]=a.getUTCMinutes(),GROWABLE_HEAP_I32()[t+8>>>2>>>0]=a.getUTCHours(),GROWABLE_HEAP_I32()[t+12>>>2>>>0]=a.getUTCDate(),GROWABLE_HEAP_I32()[t+16>>>2>>>0]=a.getUTCMonth(),GROWABLE_HEAP_I32()[t+20>>>2>>>0]=a.getUTCFullYear()-1900,GROWABLE_HEAP_I32()[t+24>>>2>>>0]=a.getUTCDay();var i=Date.UTC(a.getUTCFullYear(),0,1,0,0,0,0),_=(a.getTime()-i)/864e5|0;GROWABLE_HEAP_I32()[t+28>>>2>>>0]=_}__emscripten_receive_on_main_thread_js.sig="dippip",__emscripten_runtime_keepalive_clear.sig="v",__emscripten_set_offscreencanvas_size.sig="ipii",__emscripten_system.sig="ip",__emscripten_thread_exit_joinable.sig="vp",__emscripten_thread_set_strongref.sig="vp",__gmtime_js.sig="viip";var isLeapYear=e=>e%4==0&&(e%100!=0||e%400==0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>(isLeapYear(e.getFullYear())?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE)[e.getMonth()]+e.getDate()-1;function __localtime_js(e,r,t){var n=convertI32PairToI53Checked(e,r);t>>>=0;var a=new Date(1e3*n);GROWABLE_HEAP_I32()[t>>>2>>>0]=a.getSeconds(),GROWABLE_HEAP_I32()[t+4>>>2>>>0]=a.getMinutes(),GROWABLE_HEAP_I32()[t+8>>>2>>>0]=a.getHours(),GROWABLE_HEAP_I32()[t+12>>>2>>>0]=a.getDate(),GROWABLE_HEAP_I32()[t+16>>>2>>>0]=a.getMonth(),GROWABLE_HEAP_I32()[t+20>>>2>>>0]=a.getFullYear()-1900,GROWABLE_HEAP_I32()[t+24>>>2>>>0]=a.getDay();var i=0|ydayFromDate(a);GROWABLE_HEAP_I32()[t+28>>>2>>>0]=i,GROWABLE_HEAP_I32()[t+36>>>2>>>0]=-60*a.getTimezoneOffset();var _=new Date(a.getFullYear(),0,1),s=new Date(a.getFullYear(),6,1).getTimezoneOffset(),o=_.getTimezoneOffset(),l=0|(s!=o&&a.getTimezoneOffset()==Math.min(o,s));GROWABLE_HEAP_I32()[t+32>>>2>>>0]=l}__localtime_js.sig="viip";var __mktime_js=function(e){e>>>=0;var r=(()=>{var r=new Date(GROWABLE_HEAP_I32()[e+20>>>2>>>0]+1900,GROWABLE_HEAP_I32()[e+16>>>2>>>0],GROWABLE_HEAP_I32()[e+12>>>2>>>0],GROWABLE_HEAP_I32()[e+8>>>2>>>0],GROWABLE_HEAP_I32()[e+4>>>2>>>0],GROWABLE_HEAP_I32()[e>>>2>>>0],0),t=GROWABLE_HEAP_I32()[e+32>>>2>>>0],n=r.getTimezoneOffset(),a=new Date(r.getFullYear(),0,1),i=new Date(r.getFullYear(),6,1).getTimezoneOffset(),_=a.getTimezoneOffset(),s=Math.min(_,i);if(t<0)GROWABLE_HEAP_I32()[e+32>>>2>>>0]=+(i!=_&&s==n);else if(t>0!=(s==n)){var o=Math.max(_,i),l=t>0?s:o;r.setTime(r.getTime()+6e4*(l-n))}GROWABLE_HEAP_I32()[e+24>>>2>>>0]=r.getDay();var c=0|ydayFromDate(r);GROWABLE_HEAP_I32()[e+28>>>2>>>0]=c,GROWABLE_HEAP_I32()[e>>>2>>>0]=r.getSeconds(),GROWABLE_HEAP_I32()[e+4>>>2>>>0]=r.getMinutes(),GROWABLE_HEAP_I32()[e+8>>>2>>>0]=r.getHours(),GROWABLE_HEAP_I32()[e+12>>>2>>>0]=r.getDate(),GROWABLE_HEAP_I32()[e+16>>>2>>>0]=r.getMonth(),GROWABLE_HEAP_I32()[e+20>>>2>>>0]=r.getYear();var u=r.getTime();return isNaN(u)?-1:u/1e3})();return setTempRet0((tempDouble=r,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),r>>>0};function __mmap_js(e,r,t,n,a,i,_,s){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(54,0,1,e,r,t,n,a,i,_,s);e>>>=0;var o=convertI32PairToI53Checked(a,i);_>>>=0,s>>>=0;try{if(isNaN(o))return 61;var l=SYSCALLS.getStreamFromFD(n),c=FS.mmap(l,e,o,r,t),u=c.ptr;return GROWABLE_HEAP_I32()[_>>>2>>>0]=c.allocated,GROWABLE_HEAP_U32()[s>>>2>>>0]=u,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __msync_js(e,r,t,n,a,i,_){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(55,0,1,e,r,t,n,a,i,_);e>>>=0,r>>>=0;var s=convertI32PairToI53Checked(i,_);try{return isNaN(s)?61:(SYSCALLS.doMsync(e,SYSCALLS.getStreamFromFD(a),r,n,s),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __munmap_js(e,r,t,n,a,i,_){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(56,0,1,e,r,t,n,a,i,_);e>>>=0,r>>>=0;var s=convertI32PairToI53Checked(i,_);try{var o=SYSCALLS.getStreamFromFD(a);2&t&&SYSCALLS.doMsync(e,o,r,n,s)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}__mktime_js.sig="ip",__mmap_js.sig="ipiiiiipp",__msync_js.sig="ippiiiii",__munmap_js.sig="ippiiiii";var timers={},_emscripten_get_now;function __setitimer_js(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(57,0,1,e,r);if(timers[e]&&(clearTimeout(timers[e].id),delete timers[e]),!r)return 0;var t=setTimeout((()=>{delete timers[e],callUserCallback((()=>__emscripten_timeout(e,_emscripten_get_now())))}),r);return timers[e]={id:t,timeout_ms:r},0}_emscripten_get_now=()=>performance.timeOrigin+performance.now(),_emscripten_get_now.sig="d",__setitimer_js.sig="iid";var __timegm_js=function(e){e>>>=0;var r=(()=>{var r=Date.UTC(GROWABLE_HEAP_I32()[e+20>>>2>>>0]+1900,GROWABLE_HEAP_I32()[e+16>>>2>>>0],GROWABLE_HEAP_I32()[e+12>>>2>>>0],GROWABLE_HEAP_I32()[e+8>>>2>>>0],GROWABLE_HEAP_I32()[e+4>>>2>>>0],GROWABLE_HEAP_I32()[e>>>2>>>0],0),t=new Date(r);GROWABLE_HEAP_I32()[e+24>>>2>>>0]=t.getUTCDay();var n=Date.UTC(t.getUTCFullYear(),0,1,0,0,0,0),a=(t.getTime()-n)/864e5|0;return GROWABLE_HEAP_I32()[e+28>>>2>>>0]=a,t.getTime()/1e3})();return setTempRet0((tempDouble=r,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),r>>>0};__timegm_js.sig="ip";var __tzset_js=function(e,r,t,n){e>>>=0,r>>>=0,t>>>=0,n>>>=0;var a=(new Date).getFullYear(),i=new Date(a,0,1),_=new Date(a,6,1),s=i.getTimezoneOffset(),o=_.getTimezoneOffset(),l=Math.max(s,o);GROWABLE_HEAP_U32()[e>>>2>>>0]=60*l,GROWABLE_HEAP_I32()[r>>>2>>>0]=+(s!=o);var c=e=>e.toLocaleTimeString(void 0,{hour12:!1,timeZoneName:"short"}).split(" ")[1],u=c(i),d=c(_);o{abort("")};_abort.sig="v";var _emscripten_set_main_loop_timing=(e,r)=>{if(Browser.mainLoop.timingMode=e,Browser.mainLoop.timingValue=r,!Browser.mainLoop.func)return 1;if(Browser.mainLoop.running||(runtimeKeepalivePush(),Browser.mainLoop.running=!0),0==e)Browser.mainLoop.scheduler=function(){var e=0|Math.max(0,Browser.mainLoop.tickStartTime+r-_emscripten_get_now());setTimeout(Browser.mainLoop.runner,e)},Browser.mainLoop.method="timeout";else if(1==e)Browser.mainLoop.scheduler=function(){Browser.requestAnimationFrame(Browser.mainLoop.runner)},Browser.mainLoop.method="rAF";else if(2==e){if(typeof Browser.setImmediate>"u")if(typeof setImmediate>"u"){var t=[],n="setimmediate";addEventListener("message",(e=>{(e.data===n||e.data.target===n)&&(e.stopPropagation(),t.shift()())}),!0),Browser.setImmediate=function(e){t.push(e),ENVIRONMENT_IS_WORKER?(void 0===Module.setImmediates&&(Module.setImmediates=[]),Module.setImmediates.push(e),postMessage({target:n})):postMessage(n,"*")}}else Browser.setImmediate=setImmediate;Browser.mainLoop.scheduler=function(){Browser.setImmediate(Browser.mainLoop.runner)},Browser.mainLoop.method="immediate"}return 0};_emscripten_set_main_loop_timing.sig="iii";var setMainLoop=(e,r,t,n,a)=>{Browser.mainLoop.func=e,Browser.mainLoop.arg=n;var i=Browser.mainLoop.currentlyRunningMainloop;function _(){return!(i0){Date.now();var n=Browser.mainLoop.queue.shift();if(n.func(n.arg),Browser.mainLoop.remainingBlockers){var a=Browser.mainLoop.remainingBlockers,i=a%1==0?a-1:Math.floor(a);n.counted?Browser.mainLoop.remainingBlockers=i:(i+=.5,Browser.mainLoop.remainingBlockers=(8*a+i)/9)}if(Browser.mainLoop.updateStatus(),!_())return;return void setTimeout(Browser.mainLoop.runner,0)}if(_()){if(Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0,1==Browser.mainLoop.timingMode&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0)return void Browser.mainLoop.scheduler();0==Browser.mainLoop.timingMode&&(Browser.mainLoop.tickStartTime=_emscripten_get_now()),Browser.mainLoop.runIter(e),_()&&("object"==typeof SDL&&(null==(t=null==(r=SDL.audio)?void 0:r.queueNewAudioData)||t.call(r)),Browser.mainLoop.scheduler())}}},a||(r&&r>0?_emscripten_set_main_loop_timing(0,1e3/r):_emscripten_set_main_loop_timing(1,1),Browser.mainLoop.scheduler()),t)throw"unwind"},safeSetTimeout=(e,r)=>(runtimeKeepalivePush(),setTimeout((()=>{runtimeKeepalivePop(),callUserCallback(e)}),r)),warnOnce=e=>{warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,ENVIRONMENT_IS_NODE&&(e="warning: "+e),err(e))},Browser={mainLoop:{running:!1,scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause(){Browser.mainLoop.scheduler=null,Browser.mainLoop.currentlyRunningMainloop++},resume(){Browser.mainLoop.currentlyRunningMainloop++;var e=Browser.mainLoop.timingMode,r=Browser.mainLoop.timingValue,t=Browser.mainLoop.func;Browser.mainLoop.func=null,setMainLoop(t,0,!1,Browser.mainLoop.arg,!0),_emscripten_set_main_loop_timing(e,r),Browser.mainLoop.scheduler()},updateStatus(){if(Module.setStatus){var e=Module.statusMessage||"Please wait...",r=Browser.mainLoop.remainingBlockers,t=Browser.mainLoop.expectedBlockers;r?r{var n=document.createElement("canvas");n.width=_.width,n.height=_.height,n.getContext("2d").drawImage(_,0,0),preloadedImages[r]=n,URL.revokeObjectURL(i),null==t||t(e)},_.onerror=e=>{err("Image ".concat(i," could not be decoded")),null==n||n()},_.src=i}};preloadPlugins.push(e);var r={canHandle:function(e){return!Module.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,r,t,n){var a=!1;function i(n){a||(a=!0,preloadedAudios[r]=n,null==t||t(e))}var _=new Blob([e],{type:Browser.getMimetype(r)}),s=URL.createObjectURL(_),o=new Audio;o.addEventListener("canplaythrough",(()=>i(o)),!1),o.onerror=function(t){a||(err("warning: browser could not fully decode audio ".concat(r,", trying slower base64 approach")),o.src="data:audio/x-"+r.substr(-3)+";base64,"+function(e){for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="",n=0,a=0,i=0;i=6;){var _=n>>a-6&63;a-=6,t+=r[_]}return 2==a?(t+=r[(3&n)<<4],t+="=="):4==a&&(t+=r[(15&n)<<2],t+="="),t}(e),i(o))},o.src=s,safeSetTimeout((()=>{i(o)}),1e4)}};preloadPlugins.push(r);var t=Module.canvas;t&&(t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock||t.msRequestPointerLock||(()=>{}),t.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),t.exitPointerLock=t.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),document.addEventListener("mspointerlockchange",n,!1),Module.elementPointerLock&&t.addEventListener("click",(e=>{!Browser.pointerLock&&Module.canvas.requestPointerLock&&(Module.canvas.requestPointerLock(),e.preventDefault())}),!1))}function n(){Browser.pointerLock=document.pointerLockElement===Module.canvas||document.mozPointerLockElement===Module.canvas||document.webkitPointerLockElement===Module.canvas||document.msPointerLockElement===Module.canvas}},createContext(e,r,t,n){if(r&&Module.ctx&&e==Module.canvas)return Module.ctx;var a,i;if(r){var _={antialias:!1,alpha:!1,majorVersion:1};if(n)for(var s in n)_[s]=n[s];typeof GL<"u"&&(i=GL.createContext(e,_))&&(a=GL.getContext(i).GLctx)}else a=e.getContext("2d");return a?(t&&(Module.ctx=a,r&&GL.makeContextCurrent(i),Module.useWebGL=r,Browser.moduleContextCreatedCallbacks.forEach((e=>e())),Browser.init()),a):null},destroyContext(e,r,t){},fullscreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullscreen(e,r){Browser.lockPointer=e,Browser.resizeCanvas=r,typeof Browser.lockPointer>"u"&&(Browser.lockPointer=!0),typeof Browser.resizeCanvas>"u"&&(Browser.resizeCanvas=!1);var t=Module.canvas;function n(){var e,r;Browser.isFullscreen=!1;var n=t.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===n?(t.exitFullscreen=Browser.exitFullscreen,Browser.lockPointer&&t.requestPointerLock(),Browser.isFullscreen=!0,Browser.resizeCanvas?Browser.setFullscreenCanvasSize():Browser.updateCanvasDimensions(t)):(n.parentNode.insertBefore(t,n),n.parentNode.removeChild(n),Browser.resizeCanvas?Browser.setWindowedCanvasSize():Browser.updateCanvasDimensions(t)),null==(e=Module.onFullScreen)||e.call(Module,Browser.isFullscreen),null==(r=Module.onFullscreen)||r.call(Module,Browser.isFullscreen)}Browser.fullscreenHandlersInstalled||(Browser.fullscreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1));var a=document.createElement("div");t.parentNode.insertBefore(a,t),a.appendChild(t),a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||(a.webkitRequestFullscreen?()=>a.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(a.webkitRequestFullScreen?()=>a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),a.requestFullscreen()},exitFullscreen:()=>!!Browser.isFullscreen&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0),nextRAF:0,fakeRequestAnimationFrame(e){var r=Date.now();if(0===Browser.nextRAF)Browser.nextRAF=r+1e3/60;else for(;r+2>=Browser.nextRAF;)Browser.nextRAF+=1e3/60;var t=Math.max(Browser.nextRAF-r,0);setTimeout(e,t)},requestAnimationFrame(e){"function"!=typeof requestAnimationFrame?(0,Browser.fakeRequestAnimationFrame)(e):requestAnimationFrame(e)},safeSetTimeout:(e,r)=>safeSetTimeout(e,r),safeRequestAnimationFrame:e=>(runtimeKeepalivePush(),Browser.requestAnimationFrame((()=>{runtimeKeepalivePop(),callUserCallback(e)}))),getMimetype:e=>({jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]),getUserMedia(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:e=>e.movementX||e.mozMovementX||e.webkitMovementX||0,getMovementY:e=>e.movementY||e.mozMovementY||e.webkitMovementY||0,getMouseWheelDelta(e){var r=0;switch(e.type){case"DOMMouseScroll":r=e.detail/3;break;case"mousewheel":r=e.wheelDelta/120;break;case"wheel":switch(r=e.deltaY,e.deltaMode){case 0:r/=100;break;case 1:r/=3;break;case 2:r*=80;break;default:throw"unrecognized mouse wheel delta mode: "+e.deltaMode}break;default:throw"unrecognized mouse wheel event: "+e.type}return r},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseCoords(e,r){var t=Module.canvas.getBoundingClientRect(),n=Module.canvas.width,a=Module.canvas.height,i=typeof window.scrollX<"u"?window.scrollX:window.pageXOffset,_=typeof window.scrollY<"u"?window.scrollY:window.pageYOffset,s=e-(i+t.left),o=r-(_+t.top);return{x:s*=n/t.width,y:o*=a/t.height}},setMouseCoords(e,r){let{x:t,y:n}=Browser.calculateMouseCoords(e,r);Browser.mouseMovementX=t-Browser.mouseX,Browser.mouseMovementY=n-Browser.mouseY,Browser.mouseX=t,Browser.mouseY=n},calculateMouseEvent(e){if(Browser.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?Browser.mouseMovementX=Browser.mouseMovementY=0:(Browser.mouseMovementX=Browser.getMovementX(e),Browser.mouseMovementY=Browser.getMovementY(e)),Browser.mouseX+=Browser.mouseMovementX,Browser.mouseY+=Browser.mouseMovementY;else{if("touchstart"===e.type||"touchend"===e.type||"touchmove"===e.type){var r=e.touch;if(void 0===r)return;var t=Browser.calculateMouseCoords(r.pageX,r.pageY);if("touchstart"===e.type)Browser.lastTouches[r.identifier]=t,Browser.touches[r.identifier]=t;else if("touchend"===e.type||"touchmove"===e.type){var n=Browser.touches[r.identifier];n||(n=t),Browser.lastTouches[r.identifier]=n,Browser.touches[r.identifier]=t}return}Browser.setMouseCoords(e.pageX,e.pageY)}},resizeListeners:[],updateResizeListeners(){var e=Module.canvas;Browser.resizeListeners.forEach((r=>r(e.width,e.height)))},setCanvasSize(e,r,t){var n=Module.canvas;Browser.updateCanvasDimensions(n,e,r),t||Browser.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize(){if(typeof SDL<"u"){var e=GROWABLE_HEAP_U32()[SDL.screen>>>2>>>0];e|=8388608,GROWABLE_HEAP_I32()[SDL.screen>>>2>>>0]=e}Browser.updateCanvasDimensions(Module.canvas),Browser.updateResizeListeners()},setWindowedCanvasSize(){if(typeof SDL<"u"){var e=GROWABLE_HEAP_U32()[SDL.screen>>>2>>>0];e&=-8388609,GROWABLE_HEAP_I32()[SDL.screen>>>2>>>0]=e}Browser.updateCanvasDimensions(Module.canvas),Browser.updateResizeListeners()},updateCanvasDimensions(e,r,t){r&&t?(e.widthNative=r,e.heightNative=t):(r=e.widthNative,t=e.heightNative);var n=r,a=t;if(Module.forcedAspectRatio&&Module.forcedAspectRatio>0&&(n/aAL.freeIds.length>0?AL.freeIds.pop():AL._nextId++,freeIds:[],scheduleContextAudio:e=>{if(1!==Browser.mainLoop.timingMode||"visible"==document.visibilityState)for(var r in e.sources)AL.scheduleSourceAudio(e.sources[r])},scheduleSourceAudio:(e,r)=>{if((1!==Browser.mainLoop.timingMode||"visible"==document.visibilityState)&&4114===e.state){for(var t=AL.updateSourceTime(e),n=e.bufStartTime,a=e.bufOffset,i=e.bufsProcessed,_=0;_=e.bufQueue.length){if(!e.looping)break;i%=e.bufQueue.length}var l=e.bufQueue[i%e.bufQueue.length];if(0===l.length){if(++o===e.bufQueue.length)break}else{var c;(c=e.context.audioCtx.createBufferSource()).buffer=l.audioBuf,c.playbackRate.value=e.playbackRate,(l.audioBuf._loopStart||l.audioBuf._loopEnd)&&(c.loopStart=l.audioBuf._loopStart,c.loopEnd=l.audioBuf._loopEnd);var u=0;4136===e.type&&e.looping?(u=Number.POSITIVE_INFINITY,c.loop=!0,l.audioBuf._loopStart&&(c.loopStart=l.audioBuf._loopStart),l.audioBuf._loopEnd&&(c.loopEnd=l.audioBuf._loopEnd)):u=(l.audioBuf.duration-a)/e.playbackRate,c._startOffset=a,c._duration=u,c._skipCount=o,o=0,c.connect(e.gain),typeof c.start<"u"?(n=Math.max(n,e.context.audioCtx.currentTime),c.start(n,a)):typeof c.noteOn<"u"&&(n=Math.max(n,e.context.audioCtx.currentTime),c.noteOn(n)),c._startTime=n,e.audioQueue.push(c),n+=u}a=0,i++}}},updateSourceTime:e=>{var r=e.context.audioCtx.currentTime;if(4114!==e.state)return r;isFinite(e.bufStartTime)||(e.bufStartTime=r-e.bufOffset/e.playbackRate,e.bufOffset=0);for(var t=0;e.audioQueue.length;){var n=e.audioQueue[0];if(e.bufsProcessed+=n._skipCount,r<(t=n._startTime+n._duration))break;e.audioQueue.shift(),e.bufStartTime=t,e.bufOffset=0,e.bufsProcessed++}if(e.bufsProcessed>=e.bufQueue.length&&!e.looping)AL.setSourceState(e,4116);else if(4136===e.type&&e.looping)if(0===(l=e.bufQueue[0]).length)e.bufOffset=0;else{var a=(r-e.bufStartTime)*e.playbackRate,i=l.audioBuf._loopStart||0,_=l.audioBuf._loopEnd||l.audioBuf.duration;_<=i&&(_=l.audioBuf.duration),e.bufOffset=a<_?a:i+(a-i)%(_-i)}else if(e.audioQueue[0])e.bufOffset=(r-e.audioQueue[0]._startTime)*e.playbackRate;else{if(4136!==e.type&&e.looping){var s=AL.sourceDuration(e)/e.playbackRate;s>0&&(e.bufStartTime+=Math.floor((r-e.bufStartTime)/s)*s)}for(var o=0;o=e.bufQueue.length){if(!e.looping){AL.setSourceState(e,4116);break}e.bufsProcessed%=e.bufQueue.length}var l;if((l=e.bufQueue[e.bufsProcessed]).length>0){if(r<(t=e.bufStartTime+l.audioBuf.duration/e.playbackRate)){e.bufOffset=(r-e.bufStartTime)*e.playbackRate;break}e.bufStartTime=t}e.bufOffset=0,e.bufsProcessed++}}return r},cancelPendingSourceAudio:e=>{AL.updateSourceTime(e);for(var r=1;r1&&(e.audioQueue.length=1)},stopSourceAudio:e=>{for(var r=0;r{4114===r?((4114===e.state||4116==e.state)&&(e.bufsProcessed=0,e.bufOffset=0),AL.stopSourceAudio(e),e.state=4114,e.bufStartTime=Number.NEGATIVE_INFINITY,AL.scheduleSourceAudio(e)):4115===r?4114===e.state&&(AL.updateSourceTime(e),AL.stopSourceAudio(e),e.state=4115):4116===r?4113!==e.state&&(e.state=4116,e.bufsProcessed=e.bufQueue.length,e.bufStartTime=Number.NEGATIVE_INFINITY,e.bufOffset=0,AL.stopSourceAudio(e)):4113===r&&4113!==e.state&&(e.state=4113,e.bufsProcessed=0,e.bufStartTime=Number.NEGATIVE_INFINITY,e.bufOffset=0,AL.stopSourceAudio(e))},initSourcePanner:e=>{if(4144!==e.type){for(var r=AL.buffers[0],t=0;t{for(var r in e.sources)AL.updateSourceGlobal(e.sources[r])},updateSourceGlobal:e=>{var r=e.panner;if(r)switch(r.refDistance=e.refDistance,r.maxDistance=e.maxDistance,r.rolloffFactor=e.rolloffFactor,r.panningModel=e.context.hrtf?"HRTF":"equalpower",e.context.sourceDistanceModel?e.distanceModel:e.context.distanceModel){case 0:r.distanceModel="inverse",r.refDistance=340282e33;break;case 53249:case 53250:r.distanceModel="inverse";break;case 53251:case 53252:r.distanceModel="linear";break;case 53253:case 53254:r.distanceModel="exponential"}},updateListenerSpace:e=>{var r=e.audioCtx.listener;for(var t in r.positionX?(r.positionX.value=e.listener.position[0],r.positionY.value=e.listener.position[1],r.positionZ.value=e.listener.position[2]):r.setPosition(e.listener.position[0],e.listener.position[1],e.listener.position[2]),r.forwardX?(r.forwardX.value=e.listener.direction[0],r.forwardY.value=e.listener.direction[1],r.forwardZ.value=e.listener.direction[2],r.upX.value=e.listener.up[0],r.upY.value=e.listener.up[1],r.upZ.value=e.listener.up[2]):r.setOrientation(e.listener.direction[0],e.listener.direction[1],e.listener.direction[2],e.listener.up[0],e.listener.up[1],e.listener.up[2]),e.sources)AL.updateSourceSpace(e.sources[t])},updateSourceSpace:e=>{if(e.panner){var r=e.panner,t=e.position[0],n=e.position[1],a=e.position[2],i=e.direction[0],_=e.direction[1],s=e.direction[2],o=e.context.listener,l=o.position[0],c=o.position[1],u=o.position[2];if(e.relative){var d=-o.direction[0],p=-o.direction[1],m=-o.direction[2],f=o.up[0],g=o.up[1],E=o.up[2],h=(e,r,t)=>{var n=Math.sqrt(e*e+r*r+t*t);return n{if(4114===e.state){AL.cancelPendingSourceAudio(e);var r,t=e.audioQueue[0];if(!t)return;r=4136===e.type&&e.looping?Number.POSITIVE_INFINITY:(t.buffer.duration-t._startOffset)/e.playbackRate,t._duration=r,t.playbackRate.value=e.playbackRate,AL.scheduleSourceAudio(e)}},sourceDuration:e=>{for(var r=0,t=0;t{AL.updateSourceTime(e);for(var r=0,t=0;t{var t=4114==e.state;if(t&&AL.setSourceState(e,4113),null!==e.bufQueue[e.bufsProcessed].audioBuf){for(e.bufsProcessed=0;r>e.bufQueue[e.bufsProcessed].audioBuf.duration;)r-=e.bufQueue[e.bufsProcessed].audiobuf.duration,e.bufsProcessed++;e.bufOffset=r}t&&AL.setSourceState(e,4114)},getGlobalParam:(e,r)=>{if(!AL.currentCtx)return null;switch(r){case 49152:return AL.currentCtx.dopplerFactor;case 49155:return AL.currentCtx.speedOfSound;case 53248:return AL.currentCtx.distanceModel;default:return AL.currentCtx.err=40962,null}},setGlobalParam:(e,r,t)=>{if(AL.currentCtx)switch(r){case 49152:if(!Number.isFinite(t)||t<0)return void(AL.currentCtx.err=40963);AL.currentCtx.dopplerFactor=t,AL.updateListenerSpace(AL.currentCtx);break;case 49155:if(!Number.isFinite(t)||t<=0)return void(AL.currentCtx.err=40963);AL.currentCtx.speedOfSound=t,AL.updateListenerSpace(AL.currentCtx);break;case 53248:switch(t){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:AL.currentCtx.distanceModel=t,AL.updateContextGlobal(AL.currentCtx);break;default:return void(AL.currentCtx.err=40963)}break;default:return void(AL.currentCtx.err=40962)}},getListenerParam:(e,r)=>{if(!AL.currentCtx)return null;switch(r){case 4100:return AL.currentCtx.listener.position;case 4102:return AL.currentCtx.listener.velocity;case 4111:return AL.currentCtx.listener.direction.concat(AL.currentCtx.listener.up);case 4106:return AL.currentCtx.gain.gain.value;default:return AL.currentCtx.err=40962,null}},setListenerParam:(e,r,t)=>{if(AL.currentCtx){if(null===t)return void(AL.currentCtx.err=40962);var n=AL.currentCtx.listener;switch(r){case 4100:if(!Number.isFinite(t[0])||!Number.isFinite(t[1])||!Number.isFinite(t[2]))return void(AL.currentCtx.err=40963);n.position[0]=t[0],n.position[1]=t[1],n.position[2]=t[2],AL.updateListenerSpace(AL.currentCtx);break;case 4102:if(!Number.isFinite(t[0])||!Number.isFinite(t[1])||!Number.isFinite(t[2]))return void(AL.currentCtx.err=40963);n.velocity[0]=t[0],n.velocity[1]=t[1],n.velocity[2]=t[2],AL.updateListenerSpace(AL.currentCtx);break;case 4106:if(!Number.isFinite(t)||t<0)return void(AL.currentCtx.err=40963);AL.currentCtx.gain.gain.value=t;break;case 4111:if(!(Number.isFinite(t[0])&&Number.isFinite(t[1])&&Number.isFinite(t[2])&&Number.isFinite(t[3])&&Number.isFinite(t[4])&&Number.isFinite(t[5])))return void(AL.currentCtx.err=40963);n.direction[0]=t[0],n.direction[1]=t[1],n.direction[2]=t[2],n.up[0]=t[3],n.up[1]=t[4],n.up[2]=t[5],AL.updateListenerSpace(AL.currentCtx);break;default:return void(AL.currentCtx.err=40962)}}},getBufferParam:(e,r,t)=>{if(AL.currentCtx){var n=AL.buffers[r];if(!n||0===r)return void(AL.currentCtx.err=40961);switch(t){case 8193:return n.frequency;case 8194:return 8*n.bytesPerSample;case 8195:return n.channels;case 8196:return n.length*n.bytesPerSample*n.channels;case 8213:return 0===n.length?[0,0]:[(n.audioBuf._loopStart||0)*n.frequency,(n.audioBuf._loopEnd||n.length)*n.frequency];default:return AL.currentCtx.err=40962,null}}},setBufferParam:(e,r,t,n)=>{if(AL.currentCtx){var a=AL.buffers[r];if(!a||0===r)return void(AL.currentCtx.err=40961);if(null===n)return void(AL.currentCtx.err=40962);switch(t){case 8196:if(0!==n)return void(AL.currentCtx.err=40963);break;case 8213:if(n[0]<0||n[0]>a.length||n[1]<0||n[1]>a.Length||n[0]>=n[1])return void(AL.currentCtx.err=40963);if(a.refCount>0)return void(AL.currentCtx.err=40964);a.audioBuf&&(a.audioBuf._loopStart=n[0]/a.frequency,a.audioBuf._loopEnd=n[1]/a.frequency);break;default:return void(AL.currentCtx.err=40962)}}},getSourceParam:(e,r,t)=>{if(!AL.currentCtx)return null;var n=AL.currentCtx.sources[r];if(!n)return AL.currentCtx.err=40961,null;switch(t){case 514:return n.relative;case 4097:return n.coneInnerAngle;case 4098:return n.coneOuterAngle;case 4099:return n.pitch;case 4100:return n.position;case 4101:return n.direction;case 4102:return n.velocity;case 4103:return n.looping;case 4105:return 4136===n.type?n.bufQueue[0].id:0;case 4106:return n.gain.gain.value;case 4109:return n.minGain;case 4110:return n.maxGain;case 4112:return n.state;case 4117:return 1===n.bufQueue.length&&0===n.bufQueue[0].id?0:n.bufQueue.length;case 4118:return 1===n.bufQueue.length&&0===n.bufQueue[0].id||n.looping?0:n.bufsProcessed;case 4128:return n.refDistance;case 4129:return n.rolloffFactor;case 4130:return n.coneOuterGain;case 4131:return n.maxDistance;case 4132:return AL.sourceTell(n);case 4133:return(a=AL.sourceTell(n))>0&&(a*=n.bufQueue[0].frequency),a;case 4134:var a;return(a=AL.sourceTell(n))>0&&(a*=n.bufQueue[0].frequency*n.bufQueue[0].bytesPerSample),a;case 4135:return n.type;case 4628:return n.spatialize;case 8201:for(var i=0,_=0,s=0;s{if(AL.currentCtx){var a=AL.currentCtx.sources[r];if(!a)return void(AL.currentCtx.err=40961);if(null===n)return void(AL.currentCtx.err=40962);switch(t){case 514:if(1===n)a.relative=!0,AL.updateSourceSpace(a);else{if(0!==n)return void(AL.currentCtx.err=40963);a.relative=!1,AL.updateSourceSpace(a)}break;case 4097:if(!Number.isFinite(n))return void(AL.currentCtx.err=40963);a.coneInnerAngle=n,a.panner&&(a.panner.coneInnerAngle=n%360);break;case 4098:if(!Number.isFinite(n))return void(AL.currentCtx.err=40963);a.coneOuterAngle=n,a.panner&&(a.panner.coneOuterAngle=n%360);break;case 4099:if(!Number.isFinite(n)||n<=0)return void(AL.currentCtx.err=40963);if(a.pitch===n)break;a.pitch=n,AL.updateSourceRate(a);break;case 4100:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);a.position[0]=n[0],a.position[1]=n[1],a.position[2]=n[2],AL.updateSourceSpace(a);break;case 4101:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);a.direction[0]=n[0],a.direction[1]=n[1],a.direction[2]=n[2],AL.updateSourceSpace(a);break;case 4102:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);a.velocity[0]=n[0],a.velocity[1]=n[1],a.velocity[2]=n[2],AL.updateSourceSpace(a);break;case 4103:if(1===n)a.looping=!0,AL.updateSourceTime(a),4136===a.type&&a.audioQueue.length>0&&((i=a.audioQueue[0]).loop=!0,i._duration=Number.POSITIVE_INFINITY);else{if(0!==n)return void(AL.currentCtx.err=40963);a.looping=!1;var i,_=AL.updateSourceTime(a);4136===a.type&&a.audioQueue.length>0&&((i=a.audioQueue[0]).loop=!1,i._duration=a.bufQueue[0].audioBuf.duration/a.playbackRate,i._startTime=_-a.bufOffset/a.playbackRate)}break;case 4105:if(4114===a.state||4115===a.state)return void(AL.currentCtx.err=40964);if(0===n){for(var s in a.bufQueue)a.bufQueue[s].refCount--;a.bufQueue.length=1,a.bufQueue[0]=AL.buffers[0],a.bufsProcessed=0,a.type=4144}else{if(!(d=AL.buffers[n]))return void(AL.currentCtx.err=40963);for(var s in a.bufQueue)a.bufQueue[s].refCount--;a.bufQueue.length=0,d.refCount++,a.bufQueue=[d],a.bufsProcessed=0,a.type=4136}AL.initSourcePanner(a),AL.scheduleSourceAudio(a);break;case 4106:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);a.gain.gain.value=n;break;case 4109:if(!Number.isFinite(n)||n<0||n>Math.min(a.maxGain,1))return void(AL.currentCtx.err=40963);a.minGain=n;break;case 4110:if(!Number.isFinite(n)||n1)return void(AL.currentCtx.err=40963);a.maxGain=n;break;case 4128:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);a.refDistance=n,a.panner&&(a.panner.refDistance=n);break;case 4129:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);a.rolloffFactor=n,a.panner&&(a.panner.rolloffFactor=n);break;case 4130:if(!Number.isFinite(n)||n<0||n>1)return void(AL.currentCtx.err=40963);a.coneOuterGain=n,a.panner&&(a.panner.coneOuterGain=n);break;case 4131:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);a.maxDistance=n,a.panner&&(a.panner.maxDistance=n);break;case 4132:if(n<0||n>AL.sourceDuration(a))return void(AL.currentCtx.err=40963);AL.sourceSeek(a,n);break;case 4133:if((c=AL.sourceDuration(a))>0){var o;for(var l in a.bufQueue)if(l){o=a.bufQueue[l].frequency;break}n/=o}if(n<0||n>c)return void(AL.currentCtx.err=40963);AL.sourceSeek(a,n);break;case 4134:var c;if((c=AL.sourceDuration(a))>0){var u;for(var l in a.bufQueue)if(l){var d;u=(d=a.bufQueue[l]).frequency*d.bytesPerSample*d.channels;break}n/=u}if(n<0||n>c)return void(AL.currentCtx.err=40963);AL.sourceSeek(a,n);break;case 4628:if(0!==n&&1!==n&&2!==n)return void(AL.currentCtx.err=40963);a.spatialize=n,AL.initSourcePanner(a);break;case 8201:case 8202:case 8203:AL.currentCtx.err=40964;break;case 53248:switch(n){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:a.distanceModel=n,AL.currentCtx.sourceDistanceModel&&AL.updateContextGlobal(AL.currentCtx);break;default:return void(AL.currentCtx.err=40963)}break;default:return void(AL.currentCtx.err=40962)}}},captures:{},sharedCaptureAudioCtx:null,requireValidCaptureDevice:(e,r)=>{if(0===e)return AL.alcErr=40961,null;var t=AL.captures[e];return t?t.mediaStreamError?(AL.alcErr=40961,null):t:(AL.alcErr=40961,null)}};function _alBuffer3f(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(58,0,1,e,r,t,n,a);AL.setBufferParam("alBuffer3f",e,r,null)}function _alBuffer3i(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(59,0,1,e,r,t,n,a);AL.setBufferParam("alBuffer3i",e,r,null)}function _alBufferData(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(60,0,1,e,r,t,n,a);if(t>>>=0,AL.currentCtx){var i=AL.buffers[e];if(!i)return void(AL.currentCtx.err=40963);if(a<=0)return void(AL.currentCtx.err=40963);var _=null;try{switch(r){case 4352:if(n>0)for(var s=(_=AL.currentCtx.audioCtx.createBuffer(1,n,a)).getChannelData(0),o=0;o>>0]-1;i.bytesPerSample=1,i.channels=1,i.length=n;break;case 4353:if(n>0)for(s=(_=AL.currentCtx.audioCtx.createBuffer(1,n>>1,a)).getChannelData(0),t>>=1,o=0;o>1;++o)s[o]=30517578125e-15*GROWABLE_HEAP_I16()[t++>>>0];i.bytesPerSample=2,i.channels=1,i.length=n>>1;break;case 4354:if(n>0){s=(_=AL.currentCtx.audioCtx.createBuffer(2,n>>1,a)).getChannelData(0);var l=_.getChannelData(1);for(o=0;o>1;++o)s[o]=.0078125*GROWABLE_HEAP_U8()[t++>>>0]-1,l[o]=.0078125*GROWABLE_HEAP_U8()[t++>>>0]-1}i.bytesPerSample=1,i.channels=2,i.length=n>>1;break;case 4355:if(n>0)for(s=(_=AL.currentCtx.audioCtx.createBuffer(2,n>>2,a)).getChannelData(0),l=_.getChannelData(1),t>>=1,o=0;o>2;++o)s[o]=30517578125e-15*GROWABLE_HEAP_I16()[t++>>>0],l[o]=30517578125e-15*GROWABLE_HEAP_I16()[t++>>>0];i.bytesPerSample=2,i.channels=2,i.length=n>>2;break;case 65552:if(n>0)for(s=(_=AL.currentCtx.audioCtx.createBuffer(1,n>>2,a)).getChannelData(0),t>>=2,o=0;o>2;++o)s[o]=GROWABLE_HEAP_F32()[t++>>>0];i.bytesPerSample=4,i.channels=1,i.length=n>>2;break;case 65553:if(n>0)for(s=(_=AL.currentCtx.audioCtx.createBuffer(2,n>>3,a)).getChannelData(0),l=_.getChannelData(1),t>>=2,o=0;o>3;++o)s[o]=GROWABLE_HEAP_F32()[t++>>>0],l[o]=GROWABLE_HEAP_F32()[t++>>>0];i.bytesPerSample=4,i.channels=2,i.length=n>>3;break;default:return void(AL.currentCtx.err=40963)}i.frequency=a,i.audioBuf=_}catch(e){return void(AL.currentCtx.err=40963)}}}function _alBufferf(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(61,0,1,e,r,t);AL.setBufferParam("alBufferf",e,r,null)}function _alBufferfv(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(62,0,1,e,r,t);if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);AL.setBufferParam("alBufferfv",e,r,null)}}function _alBufferi(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(63,0,1,e,r,t);AL.setBufferParam("alBufferi",e,r,null)}function _alBufferiv(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(64,0,1,e,r,t);if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);8213===r?(AL.paramArray[0]=GROWABLE_HEAP_I32()[t>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_I32()[t+4>>>2>>>0],AL.setBufferParam("alBufferiv",e,r,AL.paramArray)):AL.setBufferParam("alBufferiv",e,r,null)}}function _alDeleteBuffers(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(65,0,1,e,r);if(r>>>=0,AL.currentCtx){for(var t=0;t>>2>>>0])){if(!AL.buffers[n])return void(AL.currentCtx.err=40961);if(AL.buffers[n].refCount)return void(AL.currentCtx.err=40964)}for(t=0;t>>2>>>0])&&(AL.deviceRefCounts[AL.buffers[n].deviceId]--,delete AL.buffers[n],AL.freeIds.push(n))}}}function _alSourcei(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(67,0,1,e,r,t);switch(r){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:AL.setSourceParam("alSourcei",e,r,t);break;default:AL.setSourceParam("alSourcei",e,r,null)}}function _alDeleteSources(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(66,0,1,e,r);if(r>>>=0,AL.currentCtx){for(var t=0;t>>2>>>0];if(!AL.currentCtx.sources[n])return void(AL.currentCtx.err=40961)}for(t=0;t>>2>>>0],AL.setSourceState(AL.currentCtx.sources[n],4116),_alSourcei(n,4105,0),delete AL.currentCtx.sources[n],AL.freeIds.push(n)}}function _alDisable(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(68,0,1,e);if(AL.currentCtx){if("AL_SOURCE_DISTANCE_MODEL"!==e)return void(AL.currentCtx.err=40962);AL.currentCtx.sourceDistanceModel=!1,AL.updateContextGlobal(AL.currentCtx)}}function _alDistanceModel(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(69,0,1,e);AL.setGlobalParam("alDistanceModel",53248,e)}function _alDopplerFactor(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(70,0,1,e);AL.setGlobalParam("alDopplerFactor",49152,e)}function _alDopplerVelocity(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(71,0,1,e);warnOnce("alDopplerVelocity() is deprecated, and only kept for compatibility with OpenAL 1.0. Use alSpeedOfSound() instead."),AL.currentCtx&&e<=0&&(AL.currentCtx.err=40963)}function _alEnable(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(72,0,1,e);if(AL.currentCtx){if("AL_SOURCE_DISTANCE_MODEL"!==e)return void(AL.currentCtx.err=40962);AL.currentCtx.sourceDistanceModel=!0,AL.updateContextGlobal(AL.currentCtx)}}function _alGenBuffers(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(73,0,1,e,r);if(r>>>=0,AL.currentCtx)for(var t=0;t>>2>>>0]=n.id}}function _alGenSources(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(74,0,1,e,r);if(r>>>=0,AL.currentCtx)for(var t=0;t>>2>>>0]=a.id}}function _alGetBoolean(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(75,0,1,e);var r=AL.getGlobalParam("alGetBoolean",e);if(null===r)return 0;switch(e){case 49152:case 49155:case 53248:return 0!==r?1:0;default:return AL.currentCtx.err=40962,0}}function _alGetBooleanv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(76,0,1,e,r);r>>>=0;var t=AL.getGlobalParam("alGetBooleanv",e);if(null!==t&&r)switch(e){case 49152:case 49155:case 53248:GROWABLE_HEAP_I8()[r>>>0]=t;break;default:return void(AL.currentCtx.err=40962)}}function _alGetBuffer3f(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(77,0,1,e,r,t,n,a);if(t>>>=0,n>>>=0,a>>>=0,null!==AL.getBufferParam("alGetBuffer3f",e,r)){if(!t||!n||!a)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBuffer3i(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(78,0,1,e,r,t,n,a);if(t>>>=0,n>>>=0,a>>>=0,null!==AL.getBufferParam("alGetBuffer3i",e,r)){if(!t||!n||!a)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferf(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(79,0,1,e,r,t);if(t>>>=0,null!==AL.getBufferParam("alGetBufferf",e,r)){if(!t)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferfv(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(80,0,1,e,r,t);if(t>>>=0,null!==AL.getBufferParam("alGetBufferfv",e,r)){if(!t)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferi(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(81,0,1,e,r,t);t>>>=0;var n=AL.getBufferParam("alGetBufferi",e,r);if(null!==n){if(!t)return void(AL.currentCtx.err=40963);switch(r){case 8193:case 8194:case 8195:case 8196:GROWABLE_HEAP_I32()[t>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetBufferiv(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(82,0,1,e,r,t);t>>>=0;var n=AL.getBufferParam("alGetBufferiv",e,r);if(null!==n){if(!t)return void(AL.currentCtx.err=40963);switch(r){case 8193:case 8194:case 8195:case 8196:GROWABLE_HEAP_I32()[t>>>2>>>0]=n;break;case 8213:GROWABLE_HEAP_I32()[t>>>2>>>0]=n[0],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=n[1];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetDouble(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(83,0,1,e);var r=AL.getGlobalParam("alGetDouble",e);if(null===r)return 0;switch(e){case 49152:case 49155:case 53248:return r;default:return AL.currentCtx.err=40962,0}}function _alGetDoublev(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(84,0,1,e,r);r>>>=0;var t=AL.getGlobalParam("alGetDoublev",e);if(null!==t&&r)switch(e){case 49152:case 49155:case 53248:GROWABLE_HEAP_F64()[r>>>3>>>0]=t;break;default:return void(AL.currentCtx.err=40962)}}function _alGetEnumValue(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(85,0,1,e);if(e>>>=0,!AL.currentCtx)return 0;if(!e)return AL.currentCtx.err=40963,0;switch(UTF8ToString(e)){case"AL_BITS":return 8194;case"AL_BUFFER":return 4105;case"AL_BUFFERS_PROCESSED":return 4118;case"AL_BUFFERS_QUEUED":return 4117;case"AL_BYTE_OFFSET":return 4134;case"AL_CHANNELS":return 8195;case"AL_CONE_INNER_ANGLE":return 4097;case"AL_CONE_OUTER_ANGLE":return 4098;case"AL_CONE_OUTER_GAIN":return 4130;case"AL_DIRECTION":return 4101;case"AL_DISTANCE_MODEL":return 53248;case"AL_DOPPLER_FACTOR":return 49152;case"AL_DOPPLER_VELOCITY":return 49153;case"AL_EXPONENT_DISTANCE":return 53253;case"AL_EXPONENT_DISTANCE_CLAMPED":return 53254;case"AL_EXTENSIONS":return 45060;case"AL_FORMAT_MONO16":return 4353;case"AL_FORMAT_MONO8":return 4352;case"AL_FORMAT_STEREO16":return 4355;case"AL_FORMAT_STEREO8":return 4354;case"AL_FREQUENCY":return 8193;case"AL_GAIN":return 4106;case"AL_INITIAL":return 4113;case"AL_INVALID":return-1;case"AL_ILLEGAL_ENUM":case"AL_INVALID_ENUM":return 40962;case"AL_INVALID_NAME":return 40961;case"AL_ILLEGAL_COMMAND":case"AL_INVALID_OPERATION":return 40964;case"AL_INVALID_VALUE":return 40963;case"AL_INVERSE_DISTANCE":return 53249;case"AL_INVERSE_DISTANCE_CLAMPED":return 53250;case"AL_LINEAR_DISTANCE":return 53251;case"AL_LINEAR_DISTANCE_CLAMPED":return 53252;case"AL_LOOPING":return 4103;case"AL_MAX_DISTANCE":return 4131;case"AL_MAX_GAIN":return 4110;case"AL_MIN_GAIN":return 4109;case"AL_NONE":case"AL_NO_ERROR":return 0;case"AL_ORIENTATION":return 4111;case"AL_OUT_OF_MEMORY":return 40965;case"AL_PAUSED":return 4115;case"AL_PENDING":return 8209;case"AL_PITCH":return 4099;case"AL_PLAYING":return 4114;case"AL_POSITION":return 4100;case"AL_PROCESSED":return 8210;case"AL_REFERENCE_DISTANCE":return 4128;case"AL_RENDERER":return 45059;case"AL_ROLLOFF_FACTOR":return 4129;case"AL_SAMPLE_OFFSET":return 4133;case"AL_SEC_OFFSET":return 4132;case"AL_SIZE":return 8196;case"AL_SOURCE_RELATIVE":return 514;case"AL_SOURCE_STATE":return 4112;case"AL_SOURCE_TYPE":return 4135;case"AL_SPEED_OF_SOUND":return 49155;case"AL_STATIC":return 4136;case"AL_STOPPED":return 4116;case"AL_STREAMING":return 4137;case"AL_UNDETERMINED":return 4144;case"AL_UNUSED":return 8208;case"AL_VELOCITY":return 4102;case"AL_VENDOR":return 45057;case"AL_VERSION":return 45058;case"AL_AUTO_SOFT":return 2;case"AL_SOURCE_DISTANCE_MODEL":return 512;case"AL_SOURCE_SPATIALIZE_SOFT":return 4628;case"AL_LOOP_POINTS_SOFT":return 8213;case"AL_BYTE_LENGTH_SOFT":return 8201;case"AL_SAMPLE_LENGTH_SOFT":return 8202;case"AL_SEC_LENGTH_SOFT":return 8203;case"AL_FORMAT_MONO_FLOAT32":return 65552;case"AL_FORMAT_STEREO_FLOAT32":return 65553;default:return AL.currentCtx.err=40963,0}}function _alGetError(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(86,0,1);if(!AL.currentCtx)return 40964;var e=AL.currentCtx.err;return AL.currentCtx.err=0,e}function _alGetFloat(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(87,0,1,e);var r=AL.getGlobalParam("alGetFloat",e);if(null===r)return 0;switch(e){case 49152:case 49155:case 53248:return r;default:return 0}}function _alGetFloatv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(88,0,1,e,r);r>>>=0;var t=AL.getGlobalParam("alGetFloatv",e);if(null!==t&&r)switch(e){case 49152:case 49155:case 53248:GROWABLE_HEAP_F32()[r>>>2>>>0]=t;break;default:return void(AL.currentCtx.err=40962)}}function _alGetInteger(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(89,0,1,e);var r=AL.getGlobalParam("alGetInteger",e);if(null===r)return 0;switch(e){case 49152:case 49155:case 53248:return r;default:return AL.currentCtx.err=40962,0}}function _alGetIntegerv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(90,0,1,e,r);r>>>=0;var t=AL.getGlobalParam("alGetIntegerv",e);if(null!==t&&r)switch(e){case 49152:case 49155:case 53248:GROWABLE_HEAP_I32()[r>>>2>>>0]=t;break;default:return void(AL.currentCtx.err=40962)}}function _alGetListener3f(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(91,0,1,e,r,t,n);r>>>=0,t>>>=0,n>>>=0;var a=AL.getListenerParam("alGetListener3f",e);if(null!==a){if(!r||!t||!n)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:GROWABLE_HEAP_F32()[r>>>2>>>0]=a[0],GROWABLE_HEAP_F32()[t>>>2>>>0]=a[1],GROWABLE_HEAP_F32()[n>>>2>>>0]=a[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListener3i(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(92,0,1,e,r,t,n);r>>>=0,t>>>=0,n>>>=0;var a=AL.getListenerParam("alGetListener3i",e);if(null!==a){if(!r||!t||!n)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:GROWABLE_HEAP_I32()[r>>>2>>>0]=a[0],GROWABLE_HEAP_I32()[t>>>2>>>0]=a[1],GROWABLE_HEAP_I32()[n>>>2>>>0]=a[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListenerf(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(93,0,1,e,r);r>>>=0;var t=AL.getListenerParam("alGetListenerf",e);if(null!==t){if(!r)return void(AL.currentCtx.err=40963);if(4106!==e)return void(AL.currentCtx.err=40962);GROWABLE_HEAP_F32()[r>>>2>>>0]=t}}function _alGetListenerfv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(94,0,1,e,r);r>>>=0;var t=AL.getListenerParam("alGetListenerfv",e);if(null!==t){if(!r)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:GROWABLE_HEAP_F32()[r>>>2>>>0]=t[0],GROWABLE_HEAP_F32()[r+4>>>2>>>0]=t[1],GROWABLE_HEAP_F32()[r+8>>>2>>>0]=t[2];break;case 4111:GROWABLE_HEAP_F32()[r>>>2>>>0]=t[0],GROWABLE_HEAP_F32()[r+4>>>2>>>0]=t[1],GROWABLE_HEAP_F32()[r+8>>>2>>>0]=t[2],GROWABLE_HEAP_F32()[r+12>>>2>>>0]=t[3],GROWABLE_HEAP_F32()[r+16>>>2>>>0]=t[4],GROWABLE_HEAP_F32()[r+20>>>2>>>0]=t[5];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListeneri(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(95,0,1,e,r);if(r>>>=0,null!==AL.getListenerParam("alGetListeneri",e)){if(!r)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetListeneriv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(96,0,1,e,r);r>>>=0;var t=AL.getListenerParam("alGetListeneriv",e);if(null!==t){if(!r)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:GROWABLE_HEAP_I32()[r>>>2>>>0]=t[0],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=t[1],GROWABLE_HEAP_I32()[r+8>>>2>>>0]=t[2];break;case 4111:GROWABLE_HEAP_I32()[r>>>2>>>0]=t[0],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=t[1],GROWABLE_HEAP_I32()[r+8>>>2>>>0]=t[2],GROWABLE_HEAP_I32()[r+12>>>2>>>0]=t[3],GROWABLE_HEAP_I32()[r+16>>>2>>>0]=t[4],GROWABLE_HEAP_I32()[r+20>>>2>>>0]=t[5];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSource3f(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(97,0,1,e,r,t,n,a);t>>>=0,n>>>=0,a>>>=0;var i=AL.getSourceParam("alGetSource3f",e,r);if(null!==i){if(!t||!n||!a)return void(AL.currentCtx.err=40963);switch(r){case 4100:case 4101:case 4102:GROWABLE_HEAP_F32()[t>>>2>>>0]=i[0],GROWABLE_HEAP_F32()[n>>>2>>>0]=i[1],GROWABLE_HEAP_F32()[a>>>2>>>0]=i[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSource3i(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(98,0,1,e,r,t,n,a);t>>>=0,n>>>=0,a>>>=0;var i=AL.getSourceParam("alGetSource3i",e,r);if(null!==i){if(!t||!n||!a)return void(AL.currentCtx.err=40963);switch(r){case 4100:case 4101:case 4102:GROWABLE_HEAP_I32()[t>>>2>>>0]=i[0],GROWABLE_HEAP_I32()[n>>>2>>>0]=i[1],GROWABLE_HEAP_I32()[a>>>2>>>0]=i[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcef(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(99,0,1,e,r,t);t>>>=0;var n=AL.getSourceParam("alGetSourcef",e,r);if(null!==n){if(!t)return void(AL.currentCtx.err=40963);switch(r){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:GROWABLE_HEAP_F32()[t>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcefv(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(100,0,1,e,r,t);t>>>=0;var n=AL.getSourceParam("alGetSourcefv",e,r);if(null!==n){if(!t)return void(AL.currentCtx.err=40963);switch(r){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:GROWABLE_HEAP_F32()[t>>>2>>>0]=n[0];break;case 4100:case 4101:case 4102:GROWABLE_HEAP_F32()[t>>>2>>>0]=n[0],GROWABLE_HEAP_F32()[t+4>>>2>>>0]=n[1],GROWABLE_HEAP_F32()[t+8>>>2>>>0]=n[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcei(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(101,0,1,e,r,t);t>>>=0;var n=AL.getSourceParam("alGetSourcei",e,r);if(null!==n){if(!t)return void(AL.currentCtx.err=40963);switch(r){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:GROWABLE_HEAP_I32()[t>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourceiv(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(102,0,1,e,r,t);t>>>=0;var n=AL.getSourceParam("alGetSourceiv",e,r);if(null!==n){if(!t)return void(AL.currentCtx.err=40963);switch(r){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:GROWABLE_HEAP_I32()[t>>>2>>>0]=n;break;case 4100:case 4101:case 4102:GROWABLE_HEAP_I32()[t>>>2>>>0]=n[0],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=n[1],GROWABLE_HEAP_I32()[t+8>>>2>>>0]=n[2];break;default:return void(AL.currentCtx.err=40962)}}}_alBuffer3f.sig="viifff",_alBuffer3i.sig="viiiii",_alBufferData.sig="viipii",_alBufferf.sig="viif",_alBufferfv.sig="viip",_alBufferi.sig="viii",_alBufferiv.sig="viip",_alDeleteBuffers.sig="vip",_alSourcei.sig="viii",_alDeleteSources.sig="vip",_alDisable.sig="vi",_alDistanceModel.sig="vi",_alDopplerFactor.sig="vf",_alDopplerVelocity.sig="vf",_alEnable.sig="vi",_alGenBuffers.sig="vip",_alGenSources.sig="vip",_alGetBoolean.sig="ii",_alGetBooleanv.sig="vip",_alGetBuffer3f.sig="viippp",_alGetBuffer3i.sig="viippp",_alGetBufferf.sig="viip",_alGetBufferfv.sig="viip",_alGetBufferi.sig="viip",_alGetBufferiv.sig="viip",_alGetDouble.sig="di",_alGetDoublev.sig="vip",_alGetEnumValue.sig="ip",_alGetError.sig="i",_alGetFloat.sig="fi",_alGetFloatv.sig="vip",_alGetInteger.sig="ii",_alGetIntegerv.sig="vip",_alGetListener3f.sig="vippp",_alGetListener3i.sig="vippp",_alGetListenerf.sig="vip",_alGetListenerfv.sig="vip",_alGetListeneri.sig="vip",_alGetListeneriv.sig="vip",_alGetSource3f.sig="viippp",_alGetSource3i.sig="viippp",_alGetSourcef.sig="viip",_alGetSourcefv.sig="viip",_alGetSourcei.sig="viip",_alGetSourceiv.sig="viip";var stringToNewUTF8=e=>{var r=lengthBytesUTF8(e)+1,t=_malloc(r);return t&&stringToUTF8(e,t,r),t};function _alGetString(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(103,0,1,e);if(AL.stringCache[e])return AL.stringCache[e];var r;switch(e){case 0:r="No Error";break;case 40961:r="Invalid Name";break;case 40962:r="Invalid Enum";break;case 40963:r="Invalid Value";break;case 40964:r="Invalid Operation";break;case 40965:r="Out of Memory";break;case 45057:r="Emscripten";break;case 45058:r="1.1";break;case 45059:r="WebAudio";break;case 45060:for(var t in r="",AL.AL_EXTENSIONS)r=(r=r.concat(t)).concat(" ");r=r.trim();break;default:return AL.currentCtx&&(AL.currentCtx.err=40962),0}return r=stringToNewUTF8(r),AL.stringCache[e]=r,r}function _alIsBuffer(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(104,0,1,e):!(!AL.currentCtx||e>AL.buffers.length||!AL.buffers[e])}function _alIsEnabled(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(105,0,1,e):AL.currentCtx?"AL_SOURCE_DISTANCE_MODEL"===e?AL.currentCtx.sourceDistanceModel?0:1:(AL.currentCtx.err=40962,0):0}function _alIsExtensionPresent(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(106,0,1,e);var r=UTF8ToString(e>>>=0);return AL.AL_EXTENSIONS[r]?1:0}function _alIsSource(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(107,0,1,e):!(!AL.currentCtx||!AL.currentCtx.sources[e])}function _alListener3f(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(108,0,1,e,r,t,n);switch(e){case 4100:case 4102:AL.paramArray[0]=r,AL.paramArray[1]=t,AL.paramArray[2]=n,AL.setListenerParam("alListener3f",e,AL.paramArray);break;default:AL.setListenerParam("alListener3f",e,null)}}function _alListener3i(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(109,0,1,e,r,t,n);switch(e){case 4100:case 4102:AL.paramArray[0]=r,AL.paramArray[1]=t,AL.paramArray[2]=n,AL.setListenerParam("alListener3i",e,AL.paramArray);break;default:AL.setListenerParam("alListener3i",e,null)}}function _alListenerf(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(110,0,1,e,r);4106===e?AL.setListenerParam("alListenerf",e,r):AL.setListenerParam("alListenerf",e,null)}function _alListenerfv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(111,0,1,e,r);if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:AL.paramArray[0]=GROWABLE_HEAP_F32()[r>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_F32()[r+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_F32()[r+8>>>2>>>0],AL.setListenerParam("alListenerfv",e,AL.paramArray);break;case 4111:AL.paramArray[0]=GROWABLE_HEAP_F32()[r>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_F32()[r+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_F32()[r+8>>>2>>>0],AL.paramArray[3]=GROWABLE_HEAP_F32()[r+12>>>2>>>0],AL.paramArray[4]=GROWABLE_HEAP_F32()[r+16>>>2>>>0],AL.paramArray[5]=GROWABLE_HEAP_F32()[r+20>>>2>>>0],AL.setListenerParam("alListenerfv",e,AL.paramArray);break;default:AL.setListenerParam("alListenerfv",e,null)}}}function _alListeneri(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(112,0,1,e,r);AL.setListenerParam("alListeneri",e,null)}function _alListeneriv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(113,0,1,e,r);if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:AL.paramArray[0]=GROWABLE_HEAP_I32()[r>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_I32()[r+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_I32()[r+8>>>2>>>0],AL.setListenerParam("alListeneriv",e,AL.paramArray);break;case 4111:AL.paramArray[0]=GROWABLE_HEAP_I32()[r>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_I32()[r+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_I32()[r+8>>>2>>>0],AL.paramArray[3]=GROWABLE_HEAP_I32()[r+12>>>2>>>0],AL.paramArray[4]=GROWABLE_HEAP_I32()[r+16>>>2>>>0],AL.paramArray[5]=GROWABLE_HEAP_I32()[r+20>>>2>>>0],AL.setListenerParam("alListeneriv",e,AL.paramArray);break;default:AL.setListenerParam("alListeneriv",e,null)}}}function _alSource3f(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(114,0,1,e,r,t,n,a);switch(r){case 4100:case 4101:case 4102:AL.paramArray[0]=t,AL.paramArray[1]=n,AL.paramArray[2]=a,AL.setSourceParam("alSource3f",e,r,AL.paramArray);break;default:AL.setSourceParam("alSource3f",e,r,null)}}function _alSource3i(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(115,0,1,e,r,t,n,a);switch(r){case 4100:case 4101:case 4102:AL.paramArray[0]=t,AL.paramArray[1]=n,AL.paramArray[2]=a,AL.setSourceParam("alSource3i",e,r,AL.paramArray);break;default:AL.setSourceParam("alSource3i",e,r,null)}}function _alSourcePause(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(116,0,1,e);if(AL.currentCtx){var r=AL.currentCtx.sources[e];if(!r)return void(AL.currentCtx.err=40961);AL.setSourceState(r,4115)}}function _alSourcePausev(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(117,0,1,e,r);if(r>>>=0,AL.currentCtx){r||(AL.currentCtx.err=40963);for(var t=0;t>>2>>>0]])return void(AL.currentCtx.err=40961);for(t=0;t>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4115)}}}function _alSourcePlay(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(118,0,1,e);if(AL.currentCtx){var r=AL.currentCtx.sources[e];if(!r)return void(AL.currentCtx.err=40961);AL.setSourceState(r,4114)}}function _alSourcePlayv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(119,0,1,e,r);if(r>>>=0,AL.currentCtx){r||(AL.currentCtx.err=40963);for(var t=0;t>>2>>>0]])return void(AL.currentCtx.err=40961);for(t=0;t>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4114)}}}function _alSourceQueueBuffers(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(120,0,1,e,r,t);if(t>>>=0,AL.currentCtx){var n=AL.currentCtx.sources[e];if(!n)return void(AL.currentCtx.err=40961);if(4136===n.type)return void(AL.currentCtx.err=40964);if(0!==r){for(var a=AL.buffers[0],i=0;i>>2>>>0];if(!(s=AL.buffers[_]))return void(AL.currentCtx.err=40961);0!==a.id&&(s.frequency!==a.frequency||s.bytesPerSample!==a.bytesPerSample||s.channels!==a.channels)&&(AL.currentCtx.err=40964)}for(1===n.bufQueue.length&&0===n.bufQueue[0].id&&(n.bufQueue.length=0),n.type=4137,i=0;i>>2>>>0],(s=AL.buffers[_]).refCount++,n.bufQueue.push(s)}n.looping&&AL.cancelPendingSourceAudio(n),AL.initSourcePanner(n),AL.scheduleSourceAudio(n)}}}function _alSourceRewind(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(121,0,1,e);if(AL.currentCtx){var r=AL.currentCtx.sources[e];if(!r)return void(AL.currentCtx.err=40961);AL.setSourceState(r,4116),AL.setSourceState(r,4113)}}function _alSourceRewindv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(122,0,1,e,r);if(r>>>=0,AL.currentCtx){r||(AL.currentCtx.err=40963);for(var t=0;t>>2>>>0]])return void(AL.currentCtx.err=40961);for(t=0;t>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4113)}}}function _alSourceStop(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(123,0,1,e);if(AL.currentCtx){var r=AL.currentCtx.sources[e];if(!r)return void(AL.currentCtx.err=40961);AL.setSourceState(r,4116)}}function _alSourceStopv(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(124,0,1,e,r);if(r>>>=0,AL.currentCtx){r||(AL.currentCtx.err=40963);for(var t=0;t>>2>>>0]])return void(AL.currentCtx.err=40961);for(t=0;t>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4116)}}}function _alSourceUnqueueBuffers(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(125,0,1,e,r,t);if(t>>>=0,AL.currentCtx){var n=AL.currentCtx.sources[e];if(!n)return void(AL.currentCtx.err=40961);if(r>(1===n.bufQueue.length&&0===n.bufQueue[0].id?0:n.bufsProcessed))return void(AL.currentCtx.err=40963);if(0!==r){for(var a=0;a>>2>>>0]=i.id,n.bufsProcessed--}0===n.bufQueue.length&&n.bufQueue.push(AL.buffers[0]),AL.initSourcePanner(n),AL.scheduleSourceAudio(n)}}}function _alSourcef(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(126,0,1,e,r,t);switch(r){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:AL.setSourceParam("alSourcef",e,r,t);break;default:AL.setSourceParam("alSourcef",e,r,null)}}function _alSourcefv(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(127,0,1,e,r,t);if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);switch(r){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:var n=GROWABLE_HEAP_F32()[t>>>2>>>0];AL.setSourceParam("alSourcefv",e,r,n);break;case 4100:case 4101:case 4102:AL.paramArray[0]=GROWABLE_HEAP_F32()[t>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_F32()[t+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_F32()[t+8>>>2>>>0],AL.setSourceParam("alSourcefv",e,r,AL.paramArray);break;default:AL.setSourceParam("alSourcefv",e,r,null)}}}function _alSourceiv(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(128,0,1,e,r,t);if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);switch(r){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:var n=GROWABLE_HEAP_I32()[t>>>2>>>0];AL.setSourceParam("alSourceiv",e,r,n);break;case 4100:case 4101:case 4102:AL.paramArray[0]=GROWABLE_HEAP_I32()[t>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_I32()[t+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_I32()[t+8>>>2>>>0],AL.setSourceParam("alSourceiv",e,r,AL.paramArray);break;default:AL.setSourceParam("alSourceiv",e,r,null)}}}function _alSpeedOfSound(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(129,0,1,e);AL.setGlobalParam("alSpeedOfSound",49155,e)}_alGetString.sig="pi",_alIsBuffer.sig="ii",_alIsEnabled.sig="ii",_alIsExtensionPresent.sig="ip",_alIsSource.sig="ii",_alListener3f.sig="vifff",_alListener3i.sig="viiii",_alListenerf.sig="vif",_alListenerfv.sig="vip",_alListeneri.sig="vii",_alListeneriv.sig="vip",_alSource3f.sig="viifff",_alSource3i.sig="viiiii",_alSourcePause.sig="vi",_alSourcePausev.sig="vip",_alSourcePlay.sig="vi",_alSourcePlayv.sig="vip",_alSourceQueueBuffers.sig="viip",_alSourceRewind.sig="vi",_alSourceRewindv.sig="vip",_alSourceStop.sig="vi",_alSourceStopv.sig="vip",_alSourceUnqueueBuffers.sig="viip",_alSourcef.sig="viif",_alSourcefv.sig="viip",_alSourceiv.sig="viip",_alSpeedOfSound.sig="vf";var _alcCaptureCloseDevice=function(e){var r,t,n,a;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(130,0,1,e);e>>>=0;var i=AL.requireValidCaptureDevice(e,"alcCaptureCloseDevice");return!!i&&(delete AL.captures[e],AL.freeIds.push(e),null==(r=i.mediaStreamSourceNode)||r.disconnect(),null==(t=i.mergerNode)||t.disconnect(),null==(n=i.splitterNode)||n.disconnect(),null==(a=i.scriptProcessorNode)||a.disconnect(),i.mediaStream&&i.mediaStream.getTracks().forEach((e=>e.stop())),delete i.buffers,i.capturedFrameCount=0,i.isCapturing=!1,!0)};_alcCaptureCloseDevice.sig="ip";var listenOnce=(e,r,t)=>{e.addEventListener(r,t,{once:!0})},autoResumeAudioContext=(e,r)=>{r||(r=[document,document.getElementById("canvas")]),["keydown","mousedown","touchstart"].forEach((t=>{r.forEach((r=>{r&&listenOnce(r,t,(()=>{"suspended"===e.state&&e.resume()}))}))}))};function _alcCaptureOpenDevice(e,r,t,n){var a;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(131,0,1,e,r,t,n);e>>>=0;var i=AL.CAPTURE_DEVICE_NAME;if(0!==e&&(i=UTF8ToString(e))!==AL.CAPTURE_DEVICE_NAME)return AL.alcErr=40965,0;if(n<0)return AL.alcErr=40964,0;if(navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,!(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return AL.alcErr=40965,0;var _,s,o,l=window.AudioContext||window.webkitAudioContext;if(!AL.sharedCaptureAudioCtx)try{AL.sharedCaptureAudioCtx=new l}catch(e){return AL.alcErr=40965,0}switch(autoResumeAudioContext(AL.sharedCaptureAudioCtx),t){case 65552:case 4353:case 4352:_=1;break;case 65553:case 4355:case 4354:_=2;break;default:return AL.alcErr=40964,0}switch(t){case 65552:case 65553:s="f32",o=function(e){return new Float32Array(e)};break;case 4353:case 4355:s="i16",o=function(e){return new Int16Array(e)};break;case 4352:case 4354:s="u8",o=function(e){return new Uint8Array(e)}}var c=[];try{for(var u=0;u<_;++u)c[u]=o(n)}catch(e){return AL.alcErr=40965,0}var d={audioCtx:AL.sharedCaptureAudioCtx,deviceName:i,requestedSampleRate:r,requestedSampleType:s,outputChannelCount:_,inputChannelCount:null,mediaStreamError:null,mediaStreamSourceNode:null,mediaStream:null,mergerNode:null,splitterNode:null,scriptProcessorNode:null,isCapturing:!1,buffers:c,get bufferFrameCapacity(){return c[0].length},capturePlayhead:0,captureReadhead:0,capturedFrameCount:0},p=e=>{d.mediaStreamError=e},m=e=>{d.mediaStreamSourceNode=d.audioCtx.createMediaStreamSource(e),d.mediaStream=e;var r=1;switch(d.mediaStreamSourceNode.channelCountMode){case"max":r=_;break;case"clamped-max":r=Math.min(_,d.mediaStreamSourceNode.channelCount);break;case"explicit":r=d.mediaStreamSourceNode.channelCount}d.inputChannelCount=r,d.scriptProcessorNode=d.audioCtx.createScriptProcessor(512,r,_),r>_?(d.mergerNode=d.audioCtx.createChannelMerger(r),d.mediaStreamSourceNode.connect(d.mergerNode),d.mergerNode.connect(d.scriptProcessorNode)):r<_?(d.splitterNode=d.audioCtx.createChannelSplitter(_),d.mediaStreamSourceNode.connect(d.splitterNode),d.splitterNode.connect(d.scriptProcessorNode)):d.mediaStreamSourceNode.connect(d.scriptProcessorNode),d.scriptProcessorNode.connect(d.audioCtx.destination),d.scriptProcessorNode.onaudioprocess=e=>{if(d.isCapturing){var r=d,n=e.inputBuffer;switch(t){case 65552:for(var a=n.getChannelData(0),i=0;i>>=0,r>>>=0;var n=AL.requireValidCaptureDevice(e,"alcCaptureSamples");if(n){var a=n.requestedSampleRate,i=n.audioCtx.sampleRate/a;if(t<0||t>n.capturedFrameCount/i)AL.alcErr=40964;else{var _;switch(n.requestedSampleType){case"f32":_=function(e,t){GROWABLE_HEAP_F32()[r+4*e>>>2>>>0]=t};break;case"i16":_=function(e,t){GROWABLE_HEAP_I16()[r+2*e>>>1>>>0]=t};break;case"u8":_=function(e,t){GROWABLE_HEAP_I8()[r+e>>>0]=t};break;default:return}if(Math.floor(i)==i)for(var s=0,o=0;o>>=0;var r=AL.requireValidCaptureDevice(e,"alcCaptureStart");r&&(r.isCapturing||(r.isCapturing=!0,r.capturedFrameCount=0,r.capturePlayhead=0))}function _alcCaptureStop(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(134,0,1,e);e>>>=0;var r=AL.requireValidCaptureDevice(e,"alcCaptureStop");r&&(r.isCapturing=!1)}function _alcCloseDevice(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(135,0,1,e):!((e>>>=0)in AL.deviceRefCounts)||AL.deviceRefCounts[e]>0?0:(delete AL.deviceRefCounts[e],AL.freeIds.push(e),1)}function _alcCreateContext(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(136,0,1,e,r);if(r>>>=0,!((e>>>=0)in AL.deviceRefCounts))return AL.alcErr=40961,0;var t=null,n=[],a=null;if(r>>=2)for(var i=0,_=0;i=GROWABLE_HEAP_I32()[r++>>>0],n.push(i),0!==i;)switch(_=GROWABLE_HEAP_I32()[r++>>>0],n.push(_),i){case 4103:t||(t={}),t.sampleRate=_;break;case 4112:case 4113:break;case 6546:switch(_){case 0:a=!1;break;case 1:a=!0;break;case 2:break;default:return AL.alcErr=40964,0}break;case 6550:if(0!==_)return AL.alcErr=40964,0;break;default:return AL.alcErr=40964,0}var s=window.AudioContext||window.webkitAudioContext,o=null;try{o=t?new s(t):new s}catch(e){return"NotSupportedError"===e.name?AL.alcErr=40964:AL.alcErr=40961,0}autoResumeAudioContext(o),typeof o.createGain>"u"&&(o.createGain=o.createGainNode);var l=o.createGain();l.connect(o.destination);var c={deviceId:e,id:AL.newId(),attrs:n,audioCtx:o,listener:{position:[0,0,0],velocity:[0,0,0],direction:[0,0,0],up:[0,0,0]},sources:[],interval:setInterval((()=>AL.scheduleContextAudio(c)),AL.QUEUE_INTERVAL),gain:l,distanceModel:53250,speedOfSound:343.3,dopplerFactor:1,sourceDistanceModel:!1,hrtf:a||!1,_err:0,get err(){return this._err},set err(e){(0===this._err||0===e)&&(this._err=e)}};if(AL.deviceRefCounts[e]++,AL.contexts[c.id]=c,null!==a)for(var u in AL.contexts){var d=AL.contexts[u];d.deviceId===e&&(d.hrtf=a,AL.updateContextGlobal(d))}return c.id}function _alcDestroyContext(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(137,0,1,e);e>>>=0;var r=AL.contexts[e];AL.currentCtx!==r?(AL.contexts[e].interval&&clearInterval(AL.contexts[e].interval),AL.deviceRefCounts[r.deviceId]--,delete AL.contexts[e],AL.freeIds.push(e)):AL.alcErr=40962}function _alcGetContextsDevice(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(138,0,1,e):(e>>>=0)in AL.contexts?AL.contexts[e].deviceId:0}function _alcGetCurrentContext(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(139,0,1):null!==AL.currentCtx?AL.currentCtx.id:0}function _alcGetEnumValue(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(140,0,1,e,r);if(r>>>=0,0!=(e>>>=0)&&!(e in AL.deviceRefCounts))return 0;if(!r)return AL.alcErr=40964,0;switch(UTF8ToString(r)){case"ALC_NO_ERROR":case"ALC_HRTF_DISABLED_SOFT":return 0;case"ALC_INVALID_DEVICE":return 40961;case"ALC_INVALID_CONTEXT":return 40962;case"ALC_INVALID_ENUM":return 40963;case"ALC_INVALID_VALUE":return 40964;case"ALC_OUT_OF_MEMORY":return 40965;case"ALC_MAJOR_VERSION":return 4096;case"ALC_MINOR_VERSION":return 4097;case"ALC_ATTRIBUTES_SIZE":return 4098;case"ALC_ALL_ATTRIBUTES":return 4099;case"ALC_DEFAULT_DEVICE_SPECIFIER":return 4100;case"ALC_DEVICE_SPECIFIER":return 4101;case"ALC_EXTENSIONS":return 4102;case"ALC_FREQUENCY":return 4103;case"ALC_REFRESH":return 4104;case"ALC_SYNC":return 4105;case"ALC_MONO_SOURCES":return 4112;case"ALC_STEREO_SOURCES":return 4113;case"ALC_CAPTURE_DEVICE_SPECIFIER":return 784;case"ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER":return 785;case"ALC_CAPTURE_SAMPLES":return 786;case"ALC_HRTF_SOFT":return 6546;case"ALC_HRTF_ID_SOFT":return 6550;case"ALC_DONT_CARE_SOFT":case"ALC_HRTF_DENIED_SOFT":return 2;case"ALC_HRTF_STATUS_SOFT":return 6547;case"ALC_NUM_HRTF_SPECIFIERS_SOFT":return 6548;case"ALC_HRTF_SPECIFIER_SOFT":return 6549;case"ALC_HRTF_ENABLED_SOFT":return 1;case"ALC_HRTF_REQUIRED_SOFT":return 3;case"ALC_HRTF_HEADPHONES_DETECTED_SOFT":return 4;case"ALC_HRTF_UNSUPPORTED_FORMAT_SOFT":return 5;default:return AL.alcErr=40964,0}}function _alcGetError(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(141,0,1,e);e>>>=0;var r=AL.alcErr;return AL.alcErr=0,r}function _alcGetIntegerv(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(142,0,1,e,r,t,n);if(e>>>=0,n>>>=0,0!==t&&n)switch(r){case 4096:case 4097:GROWABLE_HEAP_I32()[n>>>2>>>0]=1;break;case 4098:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);GROWABLE_HEAP_I32()[n>>>2>>>0]=AL.currentCtx.attrs.length;break;case 4099:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);for(var a=0;a>>2>>>0]=AL.currentCtx.attrs[a];break;case 4103:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);GROWABLE_HEAP_I32()[n>>>2>>>0]=AL.currentCtx.audioCtx.sampleRate;break;case 4112:case 4113:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);GROWABLE_HEAP_I32()[n>>>2>>>0]=2147483647;break;case 6546:case 6547:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);var i=0;for(var _ in AL.contexts){var s=AL.contexts[_];s.deviceId===e&&(i=s.hrtf?1:0)}GROWABLE_HEAP_I32()[n>>>2>>>0]=i;break;case 6548:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);GROWABLE_HEAP_I32()[n>>>2>>>0]=1;break;case 131075:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);GROWABLE_HEAP_I32()[n>>>2>>>0]=1;case 786:var o=AL.requireValidCaptureDevice(e,"alcGetIntegerv");if(!o)return;var l=o.capturedFrameCount,c=o.requestedSampleRate,u=o.audioCtx.sampleRate,d=Math.floor(l*(c/u));GROWABLE_HEAP_I32()[n>>>2>>>0]=d;break;default:return void(AL.alcErr=40963)}}function _alcGetString(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(143,0,1,e,r);if(e>>>=0,AL.alcStringCache[r])return AL.alcStringCache[r];var t;switch(r){case 0:t="No Error";break;case 40961:t="Invalid Device";break;case 40962:t="Invalid Context";break;case 40963:t="Invalid Enum";break;case 40964:t="Invalid Value";break;case 40965:t="Out of Memory";break;case 4100:if(!(typeof AudioContext<"u"||typeof webkitAudioContext<"u"))return 0;t=AL.DEVICE_NAME;break;case 4101:t=typeof AudioContext<"u"||typeof webkitAudioContext<"u"?AL.DEVICE_NAME.concat("\0"):"\0";break;case 785:t=AL.CAPTURE_DEVICE_NAME;break;case 784:if(0===e)t=AL.CAPTURE_DEVICE_NAME.concat("\0");else{var n=AL.requireValidCaptureDevice(e,"alcGetString");if(!n)return 0;t=n.deviceName}break;case 4102:if(!e)return AL.alcErr=40961,0;for(var a in t="",AL.ALC_EXTENSIONS)t=(t=t.concat(a)).concat(" ");t=t.trim();break;default:return AL.alcErr=40963,0}return t=stringToNewUTF8(t),AL.alcStringCache[r]=t,t}function _alcIsExtensionPresent(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(144,0,1,e,r);e>>>=0;var t=UTF8ToString(r>>>=0);return AL.ALC_EXTENSIONS[t]?1:0}function _alcMakeContextCurrent(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(145,0,1,e):(e>>>=0,AL.currentCtx=0===e?null:AL.contexts[e],1)}function _alcOpenDevice(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(146,0,1,e);if((e>>>=0)&&UTF8ToString(e)!==AL.DEVICE_NAME)return 0;if(typeof AudioContext<"u"||typeof webkitAudioContext<"u"){var r=AL.newId();return AL.deviceRefCounts[r]=0,r}return 0}function _alcProcessContext(e){}function _alcSuspendContext(e){}function _duckdb_web_fs_directory_create(e,r){return e>>>=0,globalThis.DUCKDB_RUNTIME.createDirectory(Module,e,r)}function _duckdb_web_fs_directory_exists(e,r){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkDirectory(Module,e,r)}function _duckdb_web_fs_directory_list_files(e,r){return e>>>=0,globalThis.DUCKDB_RUNTIME.listDirectoryEntries(Module,e,r)}function _duckdb_web_fs_directory_remove(e,r){return e>>>=0,globalThis.DUCKDB_RUNTIME.removeDirectory(Module,e,r)}function _duckdb_web_fs_file_close(e){return globalThis.DUCKDB_RUNTIME.closeFile(Module,e)}function _duckdb_web_fs_file_exists(e,r){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkFile(Module,e,r)}function _duckdb_web_fs_file_get_last_modified_time(e){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(Module,e)}function _duckdb_web_fs_file_move(e,r,t,n){return e>>>=0,t>>>=0,globalThis.DUCKDB_RUNTIME.moveFile(Module,e,r,t,n)}function _duckdb_web_fs_file_open(e,r){return globalThis.DUCKDB_RUNTIME.openFile(Module,e,r)}function _duckdb_web_fs_file_read(e,r,t,n){return r>>>=0,globalThis.DUCKDB_RUNTIME.readFile(Module,e,r,t,n)}function _duckdb_web_fs_file_truncate(e,r){return globalThis.DUCKDB_RUNTIME.truncateFile(Module,e,r)}function _duckdb_web_fs_file_write(e,r,t,n){return r>>>=0,globalThis.DUCKDB_RUNTIME.writeFile(Module,e,r,t,n)}function _duckdb_web_fs_get_default_data_protocol(e){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(e)}function _duckdb_web_fs_glob(e,r){return e>>>=0,globalThis.DUCKDB_RUNTIME.glob(Module,e,r)}function _duckdb_web_test_platform_feature(e){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(Module,e)}function _duckdb_web_udf_scalar_call(e,r,t,n,a,i){return e>>>=0,t>>>=0,a>>>=0,globalThis.DUCKDB_RUNTIME.callScalarUDF(Module,e,r,t,n,a,i)}function _emscripten_alcDevicePauseSOFT(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(147,0,1,e);if(e in AL.deviceRefCounts){if(!AL.paused)for(var r in AL.paused=!0,AL.contexts){var t=AL.contexts[r];t.deviceId===e&&(t.audioCtx.suspend(),clearInterval(t.interval),t.interval=null)}}else AL.alcErr=40961}function _emscripten_alcDeviceResumeSOFT(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(148,0,1,e);if(e in AL.deviceRefCounts){if(AL.paused)for(var r in AL.paused=!1,AL.contexts){var t=AL.contexts[r];t.deviceId===e&&(t.interval=setInterval((()=>AL.scheduleContextAudio(t)),AL.QUEUE_INTERVAL),t.audioCtx.resume())}}else AL.alcErr=40961}function _emscripten_alcGetStringiSOFT(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(149,0,1,e,r,t):e in AL.deviceRefCounts?AL.alcStringCache[r]?AL.alcStringCache[r]:6549!==r?0!==t?(AL.alcErr=40963,0):_alcGetString(e,r):0!==t?(AL.alcErr=40964,0):(n=stringToNewUTF8(n="Web Audio HRTF"),AL.alcStringCache[r]=n,n):(AL.alcErr=40961,0);var n}function _emscripten_alcResetDeviceSOFT(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(150,0,1,e,r);if(!(e in AL.deviceRefCounts))return AL.alcErr=40961,0;var t=null;if(r>>=2)for(var n=0,a=0;0!==(n=GROWABLE_HEAP_I32()[r++>>>0]);)6546===(a=GROWABLE_HEAP_I32()[r++>>>0],n)&&(1===a?t=!0:0===a&&(t=!1));if(null!==t)for(var i in AL.contexts){var _=AL.contexts[i];_.deviceId===e&&(_.hrtf=t,AL.updateContextGlobal(_))}return 1}_alcCaptureOpenDevice.sig="ppiii",_alcCaptureSamples.sig="vppi",_alcCaptureStart.sig="vp",_alcCaptureStop.sig="vp",_alcCloseDevice.sig="ip",_alcCreateContext.sig="ppp",_alcDestroyContext.sig="vp",_alcGetContextsDevice.sig="pp",_alcGetCurrentContext.sig="p",_alcGetEnumValue.sig="ipp",_alcGetError.sig="ip",_alcGetIntegerv.sig="vpiip",_alcGetString.sig="ppi",_alcIsExtensionPresent.sig="ipp",_alcMakeContextCurrent.sig="ip",_alcOpenDevice.sig="pp",_alcProcessContext.sig="vp",_alcSuspendContext.sig="vp",_duckdb_web_fs_directory_create.sig="vpi",_duckdb_web_fs_directory_exists.sig="ipi",_duckdb_web_fs_directory_list_files.sig="ipi",_duckdb_web_fs_directory_remove.sig="vpi",_duckdb_web_fs_file_close.sig="vi",_duckdb_web_fs_file_exists.sig="ipi",_duckdb_web_fs_file_get_last_modified_time.sig="ii",_duckdb_web_fs_file_move.sig="vpipi",_duckdb_web_fs_file_open.sig="pii",_duckdb_web_fs_file_read.sig="iipid",_duckdb_web_fs_file_truncate.sig="vid",_duckdb_web_fs_file_write.sig="iipid",_duckdb_web_fs_get_default_data_protocol.sig="i",_duckdb_web_fs_glob.sig="vpi",_duckdb_web_test_platform_feature.sig="ii",_duckdb_web_udf_scalar_call.sig="vpipipi",_emscripten_alcDevicePauseSOFT.sig="vi",_emscripten_alcDeviceResumeSOFT.sig="vi",_emscripten_alcGetStringiSOFT.sig="iiii",_emscripten_alcResetDeviceSOFT.sig="iii";var readEmAsmArgsArray=[],readEmAsmArgs=(e,r)=>{readEmAsmArgsArray.length=0;for(var t;t=GROWABLE_HEAP_U8()[e++>>>0];){var n=105!=t;r+=(n&=112!=t)&&r%8?4:0,readEmAsmArgsArray.push(112==t?GROWABLE_HEAP_U32()[r>>>2>>>0]:105==t?GROWABLE_HEAP_I32()[r>>>2>>>0]:GROWABLE_HEAP_F64()[r>>>3>>>0]),r+=n?8:4}return readEmAsmArgsArray},runEmAsmFunction=(e,r,t)=>{var n=readEmAsmArgs(r,t);return ASM_CONSTS[e](...n)};function _emscripten_asm_const_int(e,r,t){return runEmAsmFunction(e>>>=0,r>>>=0,t>>>=0)}function _emscripten_asm_const_ptr(e,r,t){return runEmAsmFunction(e>>>=0,r>>>=0,t>>>=0)}_emscripten_asm_const_int.sig="ippp",_emscripten_asm_const_ptr.sig="pppp";var _emscripten_check_blocking_allowed=()=>{};function _emscripten_console_error(e){e>>>=0,console.error(UTF8ToString(e))}function _emscripten_console_log(e){e>>>=0,console.log(UTF8ToString(e))}function _emscripten_console_warn(e){e>>>=0,console.warn(UTF8ToString(e))}_emscripten_check_blocking_allowed.sig="v",_emscripten_console_error.sig="vp",_emscripten_console_log.sig="vp",_emscripten_console_warn.sig="vp";var _emscripten_date_now=()=>Date.now();function _emscripten_err(e){return err(UTF8ToString(e>>>=0))}_emscripten_date_now.sig="d",_emscripten_err.sig="vp";var _emscripten_exit_with_live_runtime=()=>{throw runtimeKeepalivePush(),"unwind"};_emscripten_exit_with_live_runtime.sig="v";var getHeapMax=()=>4294901760;function _emscripten_get_heap_max(){return getHeapMax()}_emscripten_get_heap_max.sig="p";var _emscripten_get_now_res=()=>ENVIRONMENT_IS_NODE?1:1e3;_emscripten_get_now_res.sig="d";var webgl_enable_ANGLE_instanced_arrays=e=>{var r=e.getExtension("ANGLE_instanced_arrays");if(r)return e.vertexAttribDivisor=(e,t)=>r.vertexAttribDivisorANGLE(e,t),e.drawArraysInstanced=(e,t,n,a)=>r.drawArraysInstancedANGLE(e,t,n,a),e.drawElementsInstanced=(e,t,n,a,i)=>r.drawElementsInstancedANGLE(e,t,n,a,i),1},webgl_enable_OES_vertex_array_object=e=>{var r=e.getExtension("OES_vertex_array_object");if(r)return e.createVertexArray=()=>r.createVertexArrayOES(),e.deleteVertexArray=e=>r.deleteVertexArrayOES(e),e.bindVertexArray=e=>r.bindVertexArrayOES(e),e.isVertexArray=e=>r.isVertexArrayOES(e),1},webgl_enable_WEBGL_draw_buffers=e=>{var r=e.getExtension("WEBGL_draw_buffers");if(r)return e.drawBuffers=(e,t)=>r.drawBuffersWEBGL(e,t),1},webgl_enable_WEBGL_multi_draw=e=>!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw")),getEmscriptenSupportedExtensions=e=>{var r=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_disjoint_timer_query","EXT_frag_depth","EXT_shader_texture_lod","EXT_sRGB","OES_element_index_uint","OES_fbo_render_mipmap","OES_standard_derivatives","OES_texture_float","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_depth_texture","WEBGL_draw_buffers","EXT_color_buffer_half_float","EXT_depth_clamp","EXT_float_blend","EXT_texture_compression_bptc","EXT_texture_compression_rgtc","EXT_texture_filter_anisotropic","KHR_parallel_shader_compile","OES_texture_float_linear","WEBGL_blend_func_extended","WEBGL_compressed_texture_astc","WEBGL_compressed_texture_etc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_debug_renderer_info","WEBGL_debug_shaders","WEBGL_lose_context","WEBGL_multi_draw"];return(e.getSupportedExtensions()||[]).filter((e=>r.includes(e)))},GL={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:{},offscreenCanvases:{},queries:[],stringCache:{},unpackAlignment:4,recordError:e=>{GL.lastError||(GL.lastError=e)},getNewId:e=>{for(var r=GL.counter++,t=e.length;t{for(var a=0;a>>2>>>0]=_}},getSource:(e,r,t,n)=>{for(var a="",i=0;i>>2>>>0]:void 0;a+=UTF8ToString(GROWABLE_HEAP_U32()[t+4*i>>>2>>>0],_)}return a},createContext:(e,r)=>{if(!e.getContextSafariWebGL2Fixed){let r=function(r,t){var n=e.getContextSafariWebGL2Fixed(r,t);return"webgl"==r==n instanceof WebGLRenderingContext?n:null};e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=r}var t=e.getContext("webgl",r);return t?GL.registerContext(t,r):0},registerContext:(e,r)=>{var t=_malloc(8);GROWABLE_HEAP_U32()[t+4>>>2>>>0]=_pthread_self();var n={handle:t,attributes:r,version:r.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),GL.contexts[t]=n,(typeof r.enableExtensionsByDefault>"u"||r.enableExtensionsByDefault)&&GL.initExtensions(n),t},makeContextCurrent:e=>{var r;return GL.currentContext=GL.contexts[e],Module.ctx=GLctx=null==(r=GL.currentContext)?void 0:r.GLctx,!(e&&!GLctx)},getContext:e=>GL.contexts[e],deleteContext:e=>{GL.currentContext===GL.contexts[e]&&(GL.currentContext=null),"object"==typeof JSEvents&&JSEvents.removeAllHandlersOnTarget(GL.contexts[e].GLctx.canvas),GL.contexts[e]&&GL.contexts[e].GLctx.canvas&&(GL.contexts[e].GLctx.canvas.GLctxObject=void 0),_free(GL.contexts[e].handle),GL.contexts[e]=null},initExtensions:e=>{if(e||(e=GL.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var r=e.GLctx;webgl_enable_ANGLE_instanced_arrays(r),webgl_enable_OES_vertex_array_object(r),webgl_enable_WEBGL_draw_buffers(r),r.disjointTimerQueryExt=r.getExtension("EXT_disjoint_timer_query"),webgl_enable_WEBGL_multi_draw(r),getEmscriptenSupportedExtensions(r).forEach((e=>{!e.includes("lose_context")&&!e.includes("debug")&&r.getExtension(e)}))}}},_glActiveTexture=e=>GLctx.activeTexture(e);_glActiveTexture.sig="vi";var _emscripten_glActiveTexture=_glActiveTexture;_emscripten_glActiveTexture.sig="vi";var _glAttachShader=(e,r)=>{GLctx.attachShader(GL.programs[e],GL.shaders[r])};_glAttachShader.sig="vii";var _emscripten_glAttachShader=_glAttachShader;_emscripten_glAttachShader.sig="vii";var _glBeginQueryEXT=(e,r)=>{GLctx.disjointTimerQueryExt.beginQueryEXT(e,GL.queries[r])};_glBeginQueryEXT.sig="vii";var _emscripten_glBeginQueryEXT=_glBeginQueryEXT;function _glBindAttribLocation(e,r,t){t>>>=0,GLctx.bindAttribLocation(GL.programs[e],r,UTF8ToString(t))}_glBindAttribLocation.sig="viip";var _emscripten_glBindAttribLocation=_glBindAttribLocation;_emscripten_glBindAttribLocation.sig="viip";var _glBindBuffer=(e,r)=>{GLctx.bindBuffer(e,GL.buffers[r])};_glBindBuffer.sig="vii";var _emscripten_glBindBuffer=_glBindBuffer;_emscripten_glBindBuffer.sig="vii";var _glBindFramebuffer=(e,r)=>{GLctx.bindFramebuffer(e,GL.framebuffers[r])};_glBindFramebuffer.sig="vii";var _emscripten_glBindFramebuffer=_glBindFramebuffer;_emscripten_glBindFramebuffer.sig="vii";var _glBindRenderbuffer=(e,r)=>{GLctx.bindRenderbuffer(e,GL.renderbuffers[r])};_glBindRenderbuffer.sig="vii";var _emscripten_glBindRenderbuffer=_glBindRenderbuffer;_emscripten_glBindRenderbuffer.sig="vii";var _glBindTexture=(e,r)=>{GLctx.bindTexture(e,GL.textures[r])};_glBindTexture.sig="vii";var _emscripten_glBindTexture=_glBindTexture;_emscripten_glBindTexture.sig="vii";var _glBindVertexArray=e=>{GLctx.bindVertexArray(GL.vaos[e])};_glBindVertexArray.sig="vi";var _glBindVertexArrayOES=_glBindVertexArray;_glBindVertexArrayOES.sig="vi";var _emscripten_glBindVertexArrayOES=_glBindVertexArrayOES;_emscripten_glBindVertexArrayOES.sig="vi";var _glBlendColor=(e,r,t,n)=>GLctx.blendColor(e,r,t,n);_glBlendColor.sig="vffff";var _emscripten_glBlendColor=_glBlendColor;_emscripten_glBlendColor.sig="vffff";var _glBlendEquation=e=>GLctx.blendEquation(e);_glBlendEquation.sig="vi";var _emscripten_glBlendEquation=_glBlendEquation;_emscripten_glBlendEquation.sig="vi";var _glBlendEquationSeparate=(e,r)=>GLctx.blendEquationSeparate(e,r);_glBlendEquationSeparate.sig="vii";var _emscripten_glBlendEquationSeparate=_glBlendEquationSeparate;_emscripten_glBlendEquationSeparate.sig="vii";var _glBlendFunc=(e,r)=>GLctx.blendFunc(e,r);_glBlendFunc.sig="vii";var _emscripten_glBlendFunc=_glBlendFunc;_emscripten_glBlendFunc.sig="vii";var _glBlendFuncSeparate=(e,r,t,n)=>GLctx.blendFuncSeparate(e,r,t,n);_glBlendFuncSeparate.sig="viiii";var _emscripten_glBlendFuncSeparate=_glBlendFuncSeparate;function _glBufferData(e,r,t,n){r>>>=0,t>>>=0,GLctx.bufferData(e,t?GROWABLE_HEAP_U8().subarray(t>>>0,t+r>>>0):r,n)}_emscripten_glBlendFuncSeparate.sig="viiii",_glBufferData.sig="vippi";var _emscripten_glBufferData=_glBufferData;function _glBufferSubData(e,r,t,n){r>>>=0,t>>>=0,n>>>=0,GLctx.bufferSubData(e,r,GROWABLE_HEAP_U8().subarray(n>>>0,n+t>>>0))}_emscripten_glBufferData.sig="vippi",_glBufferSubData.sig="vippp";var _emscripten_glBufferSubData=_glBufferSubData;_emscripten_glBufferSubData.sig="vippp";var _glCheckFramebufferStatus=e=>GLctx.checkFramebufferStatus(e);_glCheckFramebufferStatus.sig="ii";var _emscripten_glCheckFramebufferStatus=_glCheckFramebufferStatus;_emscripten_glCheckFramebufferStatus.sig="ii";var _glClear=e=>GLctx.clear(e);_glClear.sig="vi";var _emscripten_glClear=_glClear;_emscripten_glClear.sig="vi";var _glClearColor=(e,r,t,n)=>GLctx.clearColor(e,r,t,n);_glClearColor.sig="vffff";var _emscripten_glClearColor=_glClearColor;_emscripten_glClearColor.sig="vffff";var _glClearDepthf=e=>GLctx.clearDepth(e);_glClearDepthf.sig="vf";var _emscripten_glClearDepthf=_glClearDepthf;_emscripten_glClearDepthf.sig="vf";var _glClearStencil=e=>GLctx.clearStencil(e);_glClearStencil.sig="vi";var _emscripten_glClearStencil=_glClearStencil;_emscripten_glClearStencil.sig="vi";var _glColorMask=(e,r,t,n)=>{GLctx.colorMask(!!e,!!r,!!t,!!n)};_glColorMask.sig="viiii";var _emscripten_glColorMask=_glColorMask;_emscripten_glColorMask.sig="viiii";var _glCompileShader=e=>{GLctx.compileShader(GL.shaders[e])};_glCompileShader.sig="vi";var _emscripten_glCompileShader=_glCompileShader;function _glCompressedTexImage2D(e,r,t,n,a,i,_,s){s>>>=0,GLctx.compressedTexImage2D(e,r,t,n,a,i,s?GROWABLE_HEAP_U8().subarray(s>>>0,s+_>>>0):null)}_emscripten_glCompileShader.sig="vi",_glCompressedTexImage2D.sig="viiiiiiip";var _emscripten_glCompressedTexImage2D=_glCompressedTexImage2D;function _glCompressedTexSubImage2D(e,r,t,n,a,i,_,s,o){o>>>=0,GLctx.compressedTexSubImage2D(e,r,t,n,a,i,_,o?GROWABLE_HEAP_U8().subarray(o>>>0,o+s>>>0):null)}_emscripten_glCompressedTexImage2D.sig="viiiiiiip",_glCompressedTexSubImage2D.sig="viiiiiiiip";var _emscripten_glCompressedTexSubImage2D=_glCompressedTexSubImage2D;_emscripten_glCompressedTexSubImage2D.sig="viiiiiiiip";var _glCopyTexImage2D=(e,r,t,n,a,i,_,s)=>GLctx.copyTexImage2D(e,r,t,n,a,i,_,s);_glCopyTexImage2D.sig="viiiiiiii";var _emscripten_glCopyTexImage2D=_glCopyTexImage2D;_emscripten_glCopyTexImage2D.sig="viiiiiiii";var _glCopyTexSubImage2D=(e,r,t,n,a,i,_,s)=>GLctx.copyTexSubImage2D(e,r,t,n,a,i,_,s);_glCopyTexSubImage2D.sig="viiiiiiii";var _emscripten_glCopyTexSubImage2D=_glCopyTexSubImage2D;_emscripten_glCopyTexSubImage2D.sig="viiiiiiii";var _glCreateProgram=()=>{var e=GL.getNewId(GL.programs),r=GLctx.createProgram();return r.name=e,r.maxUniformLength=r.maxAttributeLength=r.maxUniformBlockNameLength=0,r.uniformIdCounter=1,GL.programs[e]=r,e};_glCreateProgram.sig="i";var _emscripten_glCreateProgram=_glCreateProgram;_emscripten_glCreateProgram.sig="i";var _glCreateShader=e=>{var r=GL.getNewId(GL.shaders);return GL.shaders[r]=GLctx.createShader(e),r};_glCreateShader.sig="ii";var _emscripten_glCreateShader=_glCreateShader;_emscripten_glCreateShader.sig="ii";var _glCullFace=e=>GLctx.cullFace(e);_glCullFace.sig="vi";var _emscripten_glCullFace=_glCullFace;function _glDeleteBuffers(e,r){r>>>=0;for(var t=0;t>>2>>>0],a=GL.buffers[n];a&&(GLctx.deleteBuffer(a),a.name=0,GL.buffers[n]=null)}}_emscripten_glCullFace.sig="vi",_glDeleteBuffers.sig="vip";var _emscripten_glDeleteBuffers=_glDeleteBuffers;function _glDeleteFramebuffers(e,r){r>>>=0;for(var t=0;t>>2>>>0],a=GL.framebuffers[n];a&&(GLctx.deleteFramebuffer(a),a.name=0,GL.framebuffers[n]=null)}}_emscripten_glDeleteBuffers.sig="vip",_glDeleteFramebuffers.sig="vip";var _emscripten_glDeleteFramebuffers=_glDeleteFramebuffers;_emscripten_glDeleteFramebuffers.sig="vip";var _glDeleteProgram=e=>{if(e){var r=GL.programs[e];if(!r)return void GL.recordError(1281);GLctx.deleteProgram(r),r.name=0,GL.programs[e]=null}};_glDeleteProgram.sig="vi";var _emscripten_glDeleteProgram=_glDeleteProgram;function _glDeleteQueriesEXT(e,r){r>>>=0;for(var t=0;t>>2>>>0],a=GL.queries[n];a&&(GLctx.disjointTimerQueryExt.deleteQueryEXT(a),GL.queries[n]=null)}}_emscripten_glDeleteProgram.sig="vi",_glDeleteQueriesEXT.sig="vip";var _emscripten_glDeleteQueriesEXT=_glDeleteQueriesEXT;function _glDeleteRenderbuffers(e,r){r>>>=0;for(var t=0;t>>2>>>0],a=GL.renderbuffers[n];a&&(GLctx.deleteRenderbuffer(a),a.name=0,GL.renderbuffers[n]=null)}}_glDeleteRenderbuffers.sig="vip";var _emscripten_glDeleteRenderbuffers=_glDeleteRenderbuffers;_emscripten_glDeleteRenderbuffers.sig="vip";var _glDeleteShader=e=>{if(e){var r=GL.shaders[e];if(!r)return void GL.recordError(1281);GLctx.deleteShader(r),GL.shaders[e]=null}};_glDeleteShader.sig="vi";var _emscripten_glDeleteShader=_glDeleteShader;function _glDeleteTextures(e,r){r>>>=0;for(var t=0;t>>2>>>0],a=GL.textures[n];a&&(GLctx.deleteTexture(a),a.name=0,GL.textures[n]=null)}}_emscripten_glDeleteShader.sig="vi",_glDeleteTextures.sig="vip";var _emscripten_glDeleteTextures=_glDeleteTextures;function _glDeleteVertexArrays(e,r){r>>>=0;for(var t=0;t>>2>>>0];GLctx.deleteVertexArray(GL.vaos[n]),GL.vaos[n]=null}}_emscripten_glDeleteTextures.sig="vip",_glDeleteVertexArrays.sig="vip";var _glDeleteVertexArraysOES=_glDeleteVertexArrays;_glDeleteVertexArraysOES.sig="vip";var _emscripten_glDeleteVertexArraysOES=_glDeleteVertexArraysOES;_emscripten_glDeleteVertexArraysOES.sig="vip";var _glDepthFunc=e=>GLctx.depthFunc(e);_glDepthFunc.sig="vi";var _emscripten_glDepthFunc=_glDepthFunc;_emscripten_glDepthFunc.sig="vi";var _glDepthMask=e=>{GLctx.depthMask(!!e)};_glDepthMask.sig="vi";var _emscripten_glDepthMask=_glDepthMask;_emscripten_glDepthMask.sig="vi";var _glDepthRangef=(e,r)=>GLctx.depthRange(e,r);_glDepthRangef.sig="vff";var _emscripten_glDepthRangef=_glDepthRangef;_emscripten_glDepthRangef.sig="vff";var _glDetachShader=(e,r)=>{GLctx.detachShader(GL.programs[e],GL.shaders[r])};_glDetachShader.sig="vii";var _emscripten_glDetachShader=_glDetachShader;_emscripten_glDetachShader.sig="vii";var _glDisable=e=>GLctx.disable(e);_glDisable.sig="vi";var _emscripten_glDisable=_glDisable;_emscripten_glDisable.sig="vi";var _glDisableVertexAttribArray=e=>{GLctx.disableVertexAttribArray(e)};_glDisableVertexAttribArray.sig="vi";var _emscripten_glDisableVertexAttribArray=_glDisableVertexAttribArray;_emscripten_glDisableVertexAttribArray.sig="vi";var _glDrawArrays=(e,r,t)=>{GLctx.drawArrays(e,r,t)};_glDrawArrays.sig="viii";var _emscripten_glDrawArrays=_glDrawArrays;_emscripten_glDrawArrays.sig="viii";var _glDrawArraysInstanced=(e,r,t,n)=>{GLctx.drawArraysInstanced(e,r,t,n)};_glDrawArraysInstanced.sig="viiii";var _glDrawArraysInstancedANGLE=_glDrawArraysInstanced,_emscripten_glDrawArraysInstancedANGLE=_glDrawArraysInstancedANGLE,tempFixedLengthArray=[];function _glDrawBuffers(e,r){r>>>=0;for(var t=tempFixedLengthArray[e],n=0;n>>2>>>0];GLctx.drawBuffers(t)}_glDrawBuffers.sig="vip";var _glDrawBuffersWEBGL=_glDrawBuffers,_emscripten_glDrawBuffersWEBGL=_glDrawBuffersWEBGL;function _glDrawElements(e,r,t,n){n>>>=0,GLctx.drawElements(e,r,t,n)}_glDrawElements.sig="viiip";var _emscripten_glDrawElements=_glDrawElements;function _glDrawElementsInstanced(e,r,t,n,a){n>>>=0,GLctx.drawElementsInstanced(e,r,t,n,a)}_emscripten_glDrawElements.sig="viiip",_glDrawElementsInstanced.sig="viiipi";var _glDrawElementsInstancedANGLE=_glDrawElementsInstanced,_emscripten_glDrawElementsInstancedANGLE=_glDrawElementsInstancedANGLE,_glEnable=e=>GLctx.enable(e);_glEnable.sig="vi";var _emscripten_glEnable=_glEnable;_emscripten_glEnable.sig="vi";var _glEnableVertexAttribArray=e=>{GLctx.enableVertexAttribArray(e)};_glEnableVertexAttribArray.sig="vi";var _emscripten_glEnableVertexAttribArray=_glEnableVertexAttribArray;_emscripten_glEnableVertexAttribArray.sig="vi";var _glEndQueryEXT=e=>{GLctx.disjointTimerQueryExt.endQueryEXT(e)};_glEndQueryEXT.sig="vi";var _emscripten_glEndQueryEXT=_glEndQueryEXT,_glFinish=()=>GLctx.finish();_glFinish.sig="v";var _emscripten_glFinish=_glFinish;_emscripten_glFinish.sig="v";var _glFlush=()=>GLctx.flush();_glFlush.sig="v";var _emscripten_glFlush=_glFlush;_emscripten_glFlush.sig="v";var _glFramebufferRenderbuffer=(e,r,t,n)=>{GLctx.framebufferRenderbuffer(e,r,t,GL.renderbuffers[n])};_glFramebufferRenderbuffer.sig="viiii";var _emscripten_glFramebufferRenderbuffer=_glFramebufferRenderbuffer;_emscripten_glFramebufferRenderbuffer.sig="viiii";var _glFramebufferTexture2D=(e,r,t,n,a)=>{GLctx.framebufferTexture2D(e,r,t,GL.textures[n],a)};_glFramebufferTexture2D.sig="viiiii";var _emscripten_glFramebufferTexture2D=_glFramebufferTexture2D;_emscripten_glFramebufferTexture2D.sig="viiiii";var _glFrontFace=e=>GLctx.frontFace(e);_glFrontFace.sig="vi";var _emscripten_glFrontFace=_glFrontFace;function _glGenBuffers(e,r){r>>>=0,GL.genObject(e,r,"createBuffer",GL.buffers)}_emscripten_glFrontFace.sig="vi",_glGenBuffers.sig="vip";var _emscripten_glGenBuffers=_glGenBuffers;function _glGenFramebuffers(e,r){r>>>=0,GL.genObject(e,r,"createFramebuffer",GL.framebuffers)}_emscripten_glGenBuffers.sig="vip",_glGenFramebuffers.sig="vip";var _emscripten_glGenFramebuffers=_glGenFramebuffers;function _glGenQueriesEXT(e,r){r>>>=0;for(var t=0;t>>2>>>0]=0;return}var a=GL.getNewId(GL.queries);n.name=a,GL.queries[a]=n,GROWABLE_HEAP_I32()[r+4*t>>>2>>>0]=a}}_emscripten_glGenFramebuffers.sig="vip",_glGenQueriesEXT.sig="vip";var _emscripten_glGenQueriesEXT=_glGenQueriesEXT;function _glGenRenderbuffers(e,r){r>>>=0,GL.genObject(e,r,"createRenderbuffer",GL.renderbuffers)}_glGenRenderbuffers.sig="vip";var _emscripten_glGenRenderbuffers=_glGenRenderbuffers;function _glGenTextures(e,r){r>>>=0,GL.genObject(e,r,"createTexture",GL.textures)}_emscripten_glGenRenderbuffers.sig="vip",_glGenTextures.sig="vip";var _emscripten_glGenTextures=_glGenTextures;function _glGenVertexArrays(e,r){r>>>=0,GL.genObject(e,r,"createVertexArray",GL.vaos)}_emscripten_glGenTextures.sig="vip",_glGenVertexArrays.sig="vip";var _glGenVertexArraysOES=_glGenVertexArrays;_glGenVertexArraysOES.sig="vip";var _emscripten_glGenVertexArraysOES=_glGenVertexArraysOES;_emscripten_glGenVertexArraysOES.sig="vip";var _glGenerateMipmap=e=>GLctx.generateMipmap(e);_glGenerateMipmap.sig="vi";var _emscripten_glGenerateMipmap=_glGenerateMipmap;_emscripten_glGenerateMipmap.sig="vi";var __glGetActiveAttribOrUniform=(e,r,t,n,a,i,_,s)=>{r=GL.programs[r];var o=GLctx[e](r,t);if(o){var l=s&&stringToUTF8(o.name,s,n);a&&(GROWABLE_HEAP_I32()[a>>>2>>>0]=l),i&&(GROWABLE_HEAP_I32()[i>>>2>>>0]=o.size),_&&(GROWABLE_HEAP_I32()[_>>>2>>>0]=o.type)}};function _glGetActiveAttrib(e,r,t,n,a,i,_){__glGetActiveAttribOrUniform("getActiveAttrib",e,r,t,n>>>=0,a>>>=0,i>>>=0,_>>>=0)}_glGetActiveAttrib.sig="viiipppp";var _emscripten_glGetActiveAttrib=_glGetActiveAttrib;function _glGetActiveUniform(e,r,t,n,a,i,_){__glGetActiveAttribOrUniform("getActiveUniform",e,r,t,n>>>=0,a>>>=0,i>>>=0,_>>>=0)}_emscripten_glGetActiveAttrib.sig="viiipppp",_glGetActiveUniform.sig="viiipppp";var _emscripten_glGetActiveUniform=_glGetActiveUniform;function _glGetAttachedShaders(e,r,t,n){t>>>=0,n>>>=0;var a=GLctx.getAttachedShaders(GL.programs[e]),i=a.length;i>r&&(i=r),GROWABLE_HEAP_I32()[t>>>2>>>0]=i;for(var _=0;_>>2>>>0]=s}}_emscripten_glGetActiveUniform.sig="viiipppp",_glGetAttachedShaders.sig="viipp";var _emscripten_glGetAttachedShaders=_glGetAttachedShaders;function _glGetAttribLocation(e,r){return r>>>=0,GLctx.getAttribLocation(GL.programs[e],UTF8ToString(r))}_emscripten_glGetAttachedShaders.sig="viipp",_glGetAttribLocation.sig="iip";var _emscripten_glGetAttribLocation=_glGetAttribLocation;_emscripten_glGetAttribLocation.sig="iip";var writeI53ToI64=(e,r)=>{GROWABLE_HEAP_U32()[e>>>2>>>0]=r;var t=GROWABLE_HEAP_U32()[e>>>2>>>0];GROWABLE_HEAP_U32()[e+4>>>2>>>0]=(r-t)/4294967296},emscriptenWebGLGet=(e,r,t)=>{if(r){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=t&&1!=t&&GL.recordError(1280));case 36345:n=0;break;case 34466:var a=GLctx.getParameter(34467);n=a?a.length:0}if(void 0===n){var i=GLctx.getParameter(e);switch(typeof i){case"number":n=i;break;case"boolean":n=i?1:0;break;case"string":return void GL.recordError(1280);case"object":if(null===i)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 34068:n=0;break;default:return void GL.recordError(1280)}else{if(i instanceof Float32Array||i instanceof Uint32Array||i instanceof Int32Array||i instanceof Array){for(var _=0;_>>2>>>0]=i[_];break;case 2:GROWABLE_HEAP_F32()[r+4*_>>>2>>>0]=i[_];break;case 4:GROWABLE_HEAP_I8()[r+_>>>0]=i[_]?1:0}return}try{n=0|i.name}catch(r){return GL.recordError(1280),void err("GL_INVALID_ENUM in glGet".concat(t,"v: Unknown object returned from WebGL getParameter(").concat(e,")! (error: ").concat(r,")"))}}break;default:return GL.recordError(1280),void err("GL_INVALID_ENUM in glGet".concat(t,"v: Native code calling glGet").concat(t,"v(").concat(e,") and it returns ").concat(i," of type ").concat(typeof i,"!"))}}switch(t){case 1:writeI53ToI64(r,n);break;case 0:GROWABLE_HEAP_I32()[r>>>2>>>0]=n;break;case 2:GROWABLE_HEAP_F32()[r>>>2>>>0]=n;break;case 4:GROWABLE_HEAP_I8()[r>>>0]=n?1:0}}else GL.recordError(1281)};function _glGetBooleanv(e,r){return emscriptenWebGLGet(e,r>>>=0,4)}_glGetBooleanv.sig="vip";var _emscripten_glGetBooleanv=_glGetBooleanv;function _glGetBufferParameteriv(e,r,t){(t>>>=0)?GROWABLE_HEAP_I32()[t>>>2>>>0]=GLctx.getBufferParameter(e,r):GL.recordError(1281)}_emscripten_glGetBooleanv.sig="vip",_glGetBufferParameteriv.sig="viip";var _emscripten_glGetBufferParameteriv=_glGetBufferParameteriv;_emscripten_glGetBufferParameteriv.sig="viip";var _glGetError=()=>{var e=GLctx.getError()||GL.lastError;return GL.lastError=0,e};_glGetError.sig="i";var _emscripten_glGetError=_glGetError;function _glGetFloatv(e,r){return emscriptenWebGLGet(e,r>>>=0,2)}_emscripten_glGetError.sig="i",_glGetFloatv.sig="vip";var _emscripten_glGetFloatv=_glGetFloatv;function _glGetFramebufferAttachmentParameteriv(e,r,t,n){n>>>=0;var a=GLctx.getFramebufferAttachmentParameter(e,r,t);(a instanceof WebGLRenderbuffer||a instanceof WebGLTexture)&&(a=0|a.name),GROWABLE_HEAP_I32()[n>>>2>>>0]=a}_emscripten_glGetFloatv.sig="vip",_glGetFramebufferAttachmentParameteriv.sig="viiip";var _emscripten_glGetFramebufferAttachmentParameteriv=_glGetFramebufferAttachmentParameteriv;function _glGetIntegerv(e,r){return emscriptenWebGLGet(e,r>>>=0,0)}_emscripten_glGetFramebufferAttachmentParameteriv.sig="viiip",_glGetIntegerv.sig="vip";var _emscripten_glGetIntegerv=_glGetIntegerv;function _glGetProgramInfoLog(e,r,t,n){t>>>=0,n>>>=0;var a=GLctx.getProgramInfoLog(GL.programs[e]);null===a&&(a="(unknown error)");var i=r>0&&n?stringToUTF8(a,n,r):0;t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=i)}_emscripten_glGetIntegerv.sig="vip",_glGetProgramInfoLog.sig="viipp";var _emscripten_glGetProgramInfoLog=_glGetProgramInfoLog;function _glGetProgramiv(e,r,t){if(t>>>=0)if(e>=GL.counter)GL.recordError(1281);else if(e=GL.programs[e],35716==r){var n=GLctx.getProgramInfoLog(e);null===n&&(n="(unknown error)"),GROWABLE_HEAP_I32()[t>>>2>>>0]=n.length+1}else if(35719==r){if(!e.maxUniformLength)for(var a=0;a>>2>>>0]=e.maxUniformLength}else if(35722==r){if(!e.maxAttributeLength)for(a=0;a>>2>>>0]=e.maxAttributeLength}else if(35381==r){if(!e.maxUniformBlockNameLength)for(a=0;a>>2>>>0]=e.maxUniformBlockNameLength}else GROWABLE_HEAP_I32()[t>>>2>>>0]=GLctx.getProgramParameter(e,r);else GL.recordError(1281)}_emscripten_glGetProgramInfoLog.sig="viipp",_glGetProgramiv.sig="viip";var _emscripten_glGetProgramiv=_glGetProgramiv;function _glGetQueryObjecti64vEXT(e,r,t){if(t>>>=0){var n,a=GL.queries[e];n=GLctx.disjointTimerQueryExt.getQueryObjectEXT(a,r),writeI53ToI64(t,"boolean"==typeof n?n?1:0:n)}else GL.recordError(1281)}_emscripten_glGetProgramiv.sig="viip",_glGetQueryObjecti64vEXT.sig="viip";var _emscripten_glGetQueryObjecti64vEXT=_glGetQueryObjecti64vEXT;function _glGetQueryObjectivEXT(e,r,t){if(t>>>=0){var n,a=GL.queries[e],i=GLctx.disjointTimerQueryExt.getQueryObjectEXT(a,r);n="boolean"==typeof i?i?1:0:i,GROWABLE_HEAP_I32()[t>>>2>>>0]=n}else GL.recordError(1281)}_glGetQueryObjectivEXT.sig="viip";var _emscripten_glGetQueryObjectivEXT=_glGetQueryObjectivEXT,_glGetQueryObjectui64vEXT=_glGetQueryObjecti64vEXT,_emscripten_glGetQueryObjectui64vEXT=_glGetQueryObjectui64vEXT,_glGetQueryObjectuivEXT=_glGetQueryObjectivEXT,_emscripten_glGetQueryObjectuivEXT=_glGetQueryObjectuivEXT;function _glGetQueryivEXT(e,r,t){(t>>>=0)?GROWABLE_HEAP_I32()[t>>>2>>>0]=GLctx.disjointTimerQueryExt.getQueryEXT(e,r):GL.recordError(1281)}_glGetQueryivEXT.sig="viip";var _emscripten_glGetQueryivEXT=_glGetQueryivEXT;function _glGetRenderbufferParameteriv(e,r,t){(t>>>=0)?GROWABLE_HEAP_I32()[t>>>2>>>0]=GLctx.getRenderbufferParameter(e,r):GL.recordError(1281)}_glGetRenderbufferParameteriv.sig="viip";var _emscripten_glGetRenderbufferParameteriv=_glGetRenderbufferParameteriv;function _glGetShaderInfoLog(e,r,t,n){t>>>=0,n>>>=0;var a=GLctx.getShaderInfoLog(GL.shaders[e]);null===a&&(a="(unknown error)");var i=r>0&&n?stringToUTF8(a,n,r):0;t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=i)}_emscripten_glGetRenderbufferParameteriv.sig="viip",_glGetShaderInfoLog.sig="viipp";var _emscripten_glGetShaderInfoLog=_glGetShaderInfoLog;function _glGetShaderPrecisionFormat(e,r,t,n){t>>>=0,n>>>=0;var a=GLctx.getShaderPrecisionFormat(e,r);GROWABLE_HEAP_I32()[t>>>2>>>0]=a.rangeMin,GROWABLE_HEAP_I32()[t+4>>>2>>>0]=a.rangeMax,GROWABLE_HEAP_I32()[n>>>2>>>0]=a.precision}_emscripten_glGetShaderInfoLog.sig="viipp",_glGetShaderPrecisionFormat.sig="viipp";var _emscripten_glGetShaderPrecisionFormat=_glGetShaderPrecisionFormat;function _glGetShaderSource(e,r,t,n){t>>>=0,n>>>=0;var a=GLctx.getShaderSource(GL.shaders[e]);if(a){var i=r>0&&n?stringToUTF8(a,n,r):0;t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=i)}}_emscripten_glGetShaderPrecisionFormat.sig="viipp",_glGetShaderSource.sig="viipp";var _emscripten_glGetShaderSource=_glGetShaderSource;function _glGetShaderiv(e,r,t){if(t>>>=0)if(35716==r){var n=GLctx.getShaderInfoLog(GL.shaders[e]);null===n&&(n="(unknown error)");var a=n?n.length+1:0;GROWABLE_HEAP_I32()[t>>>2>>>0]=a}else if(35720==r){var i=GLctx.getShaderSource(GL.shaders[e]),_=i?i.length+1:0;GROWABLE_HEAP_I32()[t>>>2>>>0]=_}else GROWABLE_HEAP_I32()[t>>>2>>>0]=GLctx.getShaderParameter(GL.shaders[e],r);else GL.recordError(1281)}_emscripten_glGetShaderSource.sig="viipp",_glGetShaderiv.sig="viip";var _emscripten_glGetShaderiv=_glGetShaderiv;_emscripten_glGetShaderiv.sig="viip";var webglGetExtensions=function(){var e=getEmscriptenSupportedExtensions(GLctx);return e.concat(e.map((e=>"GL_"+e)))};function _glGetString(e){var r=GL.stringCache[e];if(!r){switch(e){case 7939:r=stringToNewUTF8(webglGetExtensions().join(" "));break;case 7936:case 7937:case 37445:case 37446:var t=GLctx.getParameter(e);t||GL.recordError(1280),r=t?stringToNewUTF8(t):0;break;case 7938:var n=GLctx.getParameter(7938);n="OpenGL ES 2.0 (".concat(n,")"),r=stringToNewUTF8(n);break;case 35724:var a=GLctx.getParameter(35724),i=a.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==i&&(3==i[1].length&&(i[1]=i[1]+"0"),a="OpenGL ES GLSL ES ".concat(i[1]," (").concat(a,")")),r=stringToNewUTF8(a);break;default:GL.recordError(1280)}GL.stringCache[e]=r}return r}_glGetString.sig="pi";var _emscripten_glGetString=_glGetString;function _glGetTexParameterfv(e,r,t){(t>>>=0)?GROWABLE_HEAP_F32()[t>>>2>>>0]=GLctx.getTexParameter(e,r):GL.recordError(1281)}_emscripten_glGetString.sig="pi",_glGetTexParameterfv.sig="viip";var _emscripten_glGetTexParameterfv=_glGetTexParameterfv;function _glGetTexParameteriv(e,r,t){(t>>>=0)?GROWABLE_HEAP_I32()[t>>>2>>>0]=GLctx.getTexParameter(e,r):GL.recordError(1281)}_emscripten_glGetTexParameterfv.sig="viip",_glGetTexParameteriv.sig="viip";var _emscripten_glGetTexParameteriv=_glGetTexParameteriv;_emscripten_glGetTexParameteriv.sig="viip";var webglGetLeftBracePos=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),webglPrepareUniformLocationsBeforeFirstUse=e=>{var r,t,n=e.uniformLocsById,a=e.uniformSizeAndIdsByName;if(!n)for(e.uniformLocsById=n={},e.uniformArrayNamesById={},r=0;r0?_.slice(0,o):_,c=e.uniformIdCounter;for(e.uniformIdCounter+=s,a[l]=[s,c],t=0;t>>=0),e=GL.programs[e]){webglPrepareUniformLocationsBeforeFirstUse(e);var t=e.uniformLocsById,n=0,a=r,i=webglGetLeftBracePos(r);i>0&&(n=jstoi_q(r.slice(i+1))>>>0,a=r.slice(0,i));var _=e.uniformSizeAndIdsByName[a];if(_&&n<_[0]&&(t[n+=_[1]]=t[n]||GLctx.getUniformLocation(e,r)))return n}else GL.recordError(1281);return-1}_glGetUniformLocation.sig="iip";var _emscripten_glGetUniformLocation=_glGetUniformLocation;_emscripten_glGetUniformLocation.sig="iip";var webglGetUniformLocation=e=>{var r=GLctx.currentProgram;if(r){var t=r.uniformLocsById[e];return"number"==typeof t&&(r.uniformLocsById[e]=t=GLctx.getUniformLocation(r,r.uniformArrayNamesById[e]+(t>0?"[".concat(t,"]"):""))),t}GL.recordError(1282)},emscriptenWebGLGetUniform=(e,r,t,n)=>{if(t){e=GL.programs[e],webglPrepareUniformLocationsBeforeFirstUse(e);var a=GLctx.getUniform(e,webglGetUniformLocation(r));if("number"==typeof a||"boolean"==typeof a)switch(n){case 0:GROWABLE_HEAP_I32()[t>>>2>>>0]=a;break;case 2:GROWABLE_HEAP_F32()[t>>>2>>>0]=a}else for(var i=0;i>>2>>>0]=a[i];break;case 2:GROWABLE_HEAP_F32()[t+4*i>>>2>>>0]=a[i]}}else GL.recordError(1281)};function _glGetUniformfv(e,r,t){emscriptenWebGLGetUniform(e,r,t>>>=0,2)}_glGetUniformfv.sig="viip";var _emscripten_glGetUniformfv=_glGetUniformfv;function _glGetUniformiv(e,r,t){emscriptenWebGLGetUniform(e,r,t>>>=0,0)}_emscripten_glGetUniformfv.sig="viip",_glGetUniformiv.sig="viip";var _emscripten_glGetUniformiv=_glGetUniformiv;function _glGetVertexAttribPointerv(e,r,t){(t>>>=0)?GROWABLE_HEAP_I32()[t>>>2>>>0]=GLctx.getVertexAttribOffset(e,r):GL.recordError(1281)}_emscripten_glGetUniformiv.sig="viip",_glGetVertexAttribPointerv.sig="viip";var _emscripten_glGetVertexAttribPointerv=_glGetVertexAttribPointerv;_emscripten_glGetVertexAttribPointerv.sig="viip";var emscriptenWebGLGetVertexAttrib=(e,r,t,n)=>{if(t){var a=GLctx.getVertexAttrib(e,r);if(34975==r)GROWABLE_HEAP_I32()[t>>>2>>>0]=a&&a.name;else if("number"==typeof a||"boolean"==typeof a)switch(n){case 0:GROWABLE_HEAP_I32()[t>>>2>>>0]=a;break;case 2:GROWABLE_HEAP_F32()[t>>>2>>>0]=a;break;case 5:GROWABLE_HEAP_I32()[t>>>2>>>0]=Math.fround(a)}else for(var i=0;i>>2>>>0]=a[i];break;case 2:GROWABLE_HEAP_F32()[t+4*i>>>2>>>0]=a[i];break;case 5:GROWABLE_HEAP_I32()[t+4*i>>>2>>>0]=Math.fround(a[i])}}else GL.recordError(1281)};function _glGetVertexAttribfv(e,r,t){emscriptenWebGLGetVertexAttrib(e,r,t>>>=0,2)}_glGetVertexAttribfv.sig="viip";var _emscripten_glGetVertexAttribfv=_glGetVertexAttribfv;function _glGetVertexAttribiv(e,r,t){emscriptenWebGLGetVertexAttrib(e,r,t>>>=0,5)}_emscripten_glGetVertexAttribfv.sig="viip",_glGetVertexAttribiv.sig="viip";var _emscripten_glGetVertexAttribiv=_glGetVertexAttribiv;_emscripten_glGetVertexAttribiv.sig="viip";var _glHint=(e,r)=>GLctx.hint(e,r);_glHint.sig="vii";var _emscripten_glHint=_glHint;_emscripten_glHint.sig="vii";var _glIsBuffer=e=>{var r=GL.buffers[e];return r?GLctx.isBuffer(r):0};_glIsBuffer.sig="ii";var _emscripten_glIsBuffer=_glIsBuffer;_emscripten_glIsBuffer.sig="ii";var _glIsEnabled=e=>GLctx.isEnabled(e);_glIsEnabled.sig="ii";var _emscripten_glIsEnabled=_glIsEnabled;_emscripten_glIsEnabled.sig="ii";var _glIsFramebuffer=e=>{var r=GL.framebuffers[e];return r?GLctx.isFramebuffer(r):0};_glIsFramebuffer.sig="ii";var _emscripten_glIsFramebuffer=_glIsFramebuffer;_emscripten_glIsFramebuffer.sig="ii";var _glIsProgram=e=>(e=GL.programs[e])?GLctx.isProgram(e):0;_glIsProgram.sig="ii";var _emscripten_glIsProgram=_glIsProgram;_emscripten_glIsProgram.sig="ii";var _glIsQueryEXT=e=>{var r=GL.queries[e];return r?GLctx.disjointTimerQueryExt.isQueryEXT(r):0};_glIsQueryEXT.sig="ii";var _emscripten_glIsQueryEXT=_glIsQueryEXT,_glIsRenderbuffer=e=>{var r=GL.renderbuffers[e];return r?GLctx.isRenderbuffer(r):0};_glIsRenderbuffer.sig="ii";var _emscripten_glIsRenderbuffer=_glIsRenderbuffer;_emscripten_glIsRenderbuffer.sig="ii";var _glIsShader=e=>{var r=GL.shaders[e];return r?GLctx.isShader(r):0};_glIsShader.sig="ii";var _emscripten_glIsShader=_glIsShader;_emscripten_glIsShader.sig="ii";var _glIsTexture=e=>{var r=GL.textures[e];return r?GLctx.isTexture(r):0};_glIsTexture.sig="ii";var _emscripten_glIsTexture=_glIsTexture;_emscripten_glIsTexture.sig="ii";var _glIsVertexArray=e=>{var r=GL.vaos[e];return r?GLctx.isVertexArray(r):0};_glIsVertexArray.sig="ii";var _glIsVertexArrayOES=_glIsVertexArray;_glIsVertexArrayOES.sig="ii";var _emscripten_glIsVertexArrayOES=_glIsVertexArrayOES;_emscripten_glIsVertexArrayOES.sig="ii";var _glLineWidth=e=>GLctx.lineWidth(e);_glLineWidth.sig="vf";var _emscripten_glLineWidth=_glLineWidth;_emscripten_glLineWidth.sig="vf";var _glLinkProgram=e=>{e=GL.programs[e],GLctx.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}};_glLinkProgram.sig="vi";var _emscripten_glLinkProgram=_glLinkProgram;_emscripten_glLinkProgram.sig="vi";var _glPixelStorei=(e,r)=>{3317==e&&(GL.unpackAlignment=r),GLctx.pixelStorei(e,r)};_glPixelStorei.sig="vii";var _emscripten_glPixelStorei=_glPixelStorei;_emscripten_glPixelStorei.sig="vii";var _glPolygonOffset=(e,r)=>GLctx.polygonOffset(e,r);_glPolygonOffset.sig="vff";var _emscripten_glPolygonOffset=_glPolygonOffset;_emscripten_glPolygonOffset.sig="vff";var _glQueryCounterEXT=(e,r)=>{GLctx.disjointTimerQueryExt.queryCounterEXT(GL.queries[e],r)};_glQueryCounterEXT.sig="vii";var _emscripten_glQueryCounterEXT=_glQueryCounterEXT,computeUnpackAlignedImageSize=(e,r,t,n)=>{var a;return r*(e*t+(a=n)-1&-a)},colorChannelsInGlTextureFormat=e=>({5:3,6:4,8:2,29502:3,29504:4}[e-6402]||1),heapObjectForWebGLType=e=>1==(e-=5120)?GROWABLE_HEAP_U8():4==e?GROWABLE_HEAP_I32():6==e?GROWABLE_HEAP_F32():5==e||28922==e?GROWABLE_HEAP_U32():GROWABLE_HEAP_U16(),toTypedArrayIndex=(e,r)=>e>>>31-Math.clz32(r.BYTES_PER_ELEMENT),emscriptenWebGLGetTexPixelData=(e,r,t,n,a,i)=>{var _=heapObjectForWebGLType(e),s=colorChannelsInGlTextureFormat(r)*_.BYTES_PER_ELEMENT,o=computeUnpackAlignedImageSize(t,n,s,GL.unpackAlignment);return _.subarray(toTypedArrayIndex(a,_)>>>0,toTypedArrayIndex(a+o,_)>>>0)};function _glReadPixels(e,r,t,n,a,i,_){var s=emscriptenWebGLGetTexPixelData(i,a,t,n,_>>>=0,a);s?GLctx.readPixels(e,r,t,n,a,i,s):GL.recordError(1280)}_glReadPixels.sig="viiiiiip";var _emscripten_glReadPixels=_glReadPixels;_emscripten_glReadPixels.sig="viiiiiip";var _glReleaseShaderCompiler=()=>{};_glReleaseShaderCompiler.sig="v";var _emscripten_glReleaseShaderCompiler=_glReleaseShaderCompiler;_emscripten_glReleaseShaderCompiler.sig="v";var _glRenderbufferStorage=(e,r,t,n)=>GLctx.renderbufferStorage(e,r,t,n);_glRenderbufferStorage.sig="viiii";var _emscripten_glRenderbufferStorage=_glRenderbufferStorage;_emscripten_glRenderbufferStorage.sig="viiii";var _glSampleCoverage=(e,r)=>{GLctx.sampleCoverage(e,!!r)};_glSampleCoverage.sig="vfi";var _emscripten_glSampleCoverage=_glSampleCoverage;_emscripten_glSampleCoverage.sig="vfi";var _glScissor=(e,r,t,n)=>GLctx.scissor(e,r,t,n);_glScissor.sig="viiii";var _emscripten_glScissor=_glScissor;function _glShaderBinary(e,r,t,n,a){GL.recordError(1280)}_emscripten_glScissor.sig="viiii",_glShaderBinary.sig="vipipi";var _emscripten_glShaderBinary=_glShaderBinary;function _glShaderSource(e,r,t,n){t>>>=0,n>>>=0;var a=GL.getSource(e,r,t,n);GLctx.shaderSource(GL.shaders[e],a)}_emscripten_glShaderBinary.sig="vipipi",_glShaderSource.sig="viipp";var _emscripten_glShaderSource=_glShaderSource;_emscripten_glShaderSource.sig="viipp";var _glStencilFunc=(e,r,t)=>GLctx.stencilFunc(e,r,t);_glStencilFunc.sig="viii";var _emscripten_glStencilFunc=_glStencilFunc;_emscripten_glStencilFunc.sig="viii";var _glStencilFuncSeparate=(e,r,t,n)=>GLctx.stencilFuncSeparate(e,r,t,n);_glStencilFuncSeparate.sig="viiii";var _emscripten_glStencilFuncSeparate=_glStencilFuncSeparate;_emscripten_glStencilFuncSeparate.sig="viiii";var _glStencilMask=e=>GLctx.stencilMask(e);_glStencilMask.sig="vi";var _emscripten_glStencilMask=_glStencilMask;_emscripten_glStencilMask.sig="vi";var _glStencilMaskSeparate=(e,r)=>GLctx.stencilMaskSeparate(e,r);_glStencilMaskSeparate.sig="vii";var _emscripten_glStencilMaskSeparate=_glStencilMaskSeparate;_emscripten_glStencilMaskSeparate.sig="vii";var _glStencilOp=(e,r,t)=>GLctx.stencilOp(e,r,t);_glStencilOp.sig="viii";var _emscripten_glStencilOp=_glStencilOp;_emscripten_glStencilOp.sig="viii";var _glStencilOpSeparate=(e,r,t,n)=>GLctx.stencilOpSeparate(e,r,t,n);_glStencilOpSeparate.sig="viiii";var _emscripten_glStencilOpSeparate=_glStencilOpSeparate;function _glTexImage2D(e,r,t,n,a,i,_,s,o){var l=(o>>>=0)?emscriptenWebGLGetTexPixelData(s,_,n,a,o,t):null;GLctx.texImage2D(e,r,t,n,a,i,_,s,l)}_emscripten_glStencilOpSeparate.sig="viiii",_glTexImage2D.sig="viiiiiiiip";var _emscripten_glTexImage2D=_glTexImage2D;_emscripten_glTexImage2D.sig="viiiiiiiip";var _glTexParameterf=(e,r,t)=>GLctx.texParameterf(e,r,t);_glTexParameterf.sig="viif";var _emscripten_glTexParameterf=_glTexParameterf;function _glTexParameterfv(e,r,t){t>>>=0;var n=GROWABLE_HEAP_F32()[t>>>2>>>0];GLctx.texParameterf(e,r,n)}_emscripten_glTexParameterf.sig="viif",_glTexParameterfv.sig="viip";var _emscripten_glTexParameterfv=_glTexParameterfv;_emscripten_glTexParameterfv.sig="viip";var _glTexParameteri=(e,r,t)=>GLctx.texParameteri(e,r,t);_glTexParameteri.sig="viii";var _emscripten_glTexParameteri=_glTexParameteri;function _glTexParameteriv(e,r,t){t>>>=0;var n=GROWABLE_HEAP_I32()[t>>>2>>>0];GLctx.texParameteri(e,r,n)}_emscripten_glTexParameteri.sig="viii",_glTexParameteriv.sig="viip";var _emscripten_glTexParameteriv=_glTexParameteriv;function _glTexSubImage2D(e,r,t,n,a,i,_,s,o){var l=(o>>>=0)?emscriptenWebGLGetTexPixelData(s,_,a,i,o,0):null;GLctx.texSubImage2D(e,r,t,n,a,i,_,s,l)}_emscripten_glTexParameteriv.sig="viip",_glTexSubImage2D.sig="viiiiiiiip";var _emscripten_glTexSubImage2D=_glTexSubImage2D;_emscripten_glTexSubImage2D.sig="viiiiiiiip";var _glUniform1f=(e,r)=>{GLctx.uniform1f(webglGetUniformLocation(e),r)};_glUniform1f.sig="vif";var _emscripten_glUniform1f=_glUniform1f;_emscripten_glUniform1f.sig="vif";var miniTempWebGLFloatBuffers=[];function _glUniform1fv(e,r,t){if(t>>>=0,r<=288)for(var n=miniTempWebGLFloatBuffers[r],a=0;a>>2>>>0];else n=GROWABLE_HEAP_F32().subarray(t>>>2>>>0,t+4*r>>>2>>>0);GLctx.uniform1fv(webglGetUniformLocation(e),n)}_glUniform1fv.sig="viip";var _emscripten_glUniform1fv=_glUniform1fv;_emscripten_glUniform1fv.sig="viip";var _glUniform1i=(e,r)=>{GLctx.uniform1i(webglGetUniformLocation(e),r)};_glUniform1i.sig="vii";var _emscripten_glUniform1i=_glUniform1i;_emscripten_glUniform1i.sig="vii";var miniTempWebGLIntBuffers=[];function _glUniform1iv(e,r,t){if(t>>>=0,r<=288)for(var n=miniTempWebGLIntBuffers[r],a=0;a>>2>>>0];else n=GROWABLE_HEAP_I32().subarray(t>>>2>>>0,t+4*r>>>2>>>0);GLctx.uniform1iv(webglGetUniformLocation(e),n)}_glUniform1iv.sig="viip";var _emscripten_glUniform1iv=_glUniform1iv;_emscripten_glUniform1iv.sig="viip";var _glUniform2f=(e,r,t)=>{GLctx.uniform2f(webglGetUniformLocation(e),r,t)};_glUniform2f.sig="viff";var _emscripten_glUniform2f=_glUniform2f;function _glUniform2fv(e,r,t){if(t>>>=0,r<=144)for(var n=miniTempWebGLFloatBuffers[2*r],a=0;a<2*r;a+=2)n[a]=GROWABLE_HEAP_F32()[t+4*a>>>2>>>0],n[a+1]=GROWABLE_HEAP_F32()[t+(4*a+4)>>>2>>>0];else n=GROWABLE_HEAP_F32().subarray(t>>>2>>>0,t+8*r>>>2>>>0);GLctx.uniform2fv(webglGetUniformLocation(e),n)}_emscripten_glUniform2f.sig="viff",_glUniform2fv.sig="viip";var _emscripten_glUniform2fv=_glUniform2fv;_emscripten_glUniform2fv.sig="viip";var _glUniform2i=(e,r,t)=>{GLctx.uniform2i(webglGetUniformLocation(e),r,t)};_glUniform2i.sig="viii";var _emscripten_glUniform2i=_glUniform2i;function _glUniform2iv(e,r,t){if(t>>>=0,r<=144)for(var n=miniTempWebGLIntBuffers[2*r],a=0;a<2*r;a+=2)n[a]=GROWABLE_HEAP_I32()[t+4*a>>>2>>>0],n[a+1]=GROWABLE_HEAP_I32()[t+(4*a+4)>>>2>>>0];else n=GROWABLE_HEAP_I32().subarray(t>>>2>>>0,t+8*r>>>2>>>0);GLctx.uniform2iv(webglGetUniformLocation(e),n)}_emscripten_glUniform2i.sig="viii",_glUniform2iv.sig="viip";var _emscripten_glUniform2iv=_glUniform2iv;_emscripten_glUniform2iv.sig="viip";var _glUniform3f=(e,r,t,n)=>{GLctx.uniform3f(webglGetUniformLocation(e),r,t,n)};_glUniform3f.sig="vifff";var _emscripten_glUniform3f=_glUniform3f;function _glUniform3fv(e,r,t){if(t>>>=0,r<=96)for(var n=miniTempWebGLFloatBuffers[3*r],a=0;a<3*r;a+=3)n[a]=GROWABLE_HEAP_F32()[t+4*a>>>2>>>0],n[a+1]=GROWABLE_HEAP_F32()[t+(4*a+4)>>>2>>>0],n[a+2]=GROWABLE_HEAP_F32()[t+(4*a+8)>>>2>>>0];else n=GROWABLE_HEAP_F32().subarray(t>>>2>>>0,t+12*r>>>2>>>0);GLctx.uniform3fv(webglGetUniformLocation(e),n)}_emscripten_glUniform3f.sig="vifff",_glUniform3fv.sig="viip";var _emscripten_glUniform3fv=_glUniform3fv;_emscripten_glUniform3fv.sig="viip";var _glUniform3i=(e,r,t,n)=>{GLctx.uniform3i(webglGetUniformLocation(e),r,t,n)};_glUniform3i.sig="viiii";var _emscripten_glUniform3i=_glUniform3i;function _glUniform3iv(e,r,t){if(t>>>=0,r<=96)for(var n=miniTempWebGLIntBuffers[3*r],a=0;a<3*r;a+=3)n[a]=GROWABLE_HEAP_I32()[t+4*a>>>2>>>0],n[a+1]=GROWABLE_HEAP_I32()[t+(4*a+4)>>>2>>>0],n[a+2]=GROWABLE_HEAP_I32()[t+(4*a+8)>>>2>>>0];else n=GROWABLE_HEAP_I32().subarray(t>>>2>>>0,t+12*r>>>2>>>0);GLctx.uniform3iv(webglGetUniformLocation(e),n)}_emscripten_glUniform3i.sig="viiii",_glUniform3iv.sig="viip";var _emscripten_glUniform3iv=_glUniform3iv;_emscripten_glUniform3iv.sig="viip";var _glUniform4f=(e,r,t,n,a)=>{GLctx.uniform4f(webglGetUniformLocation(e),r,t,n,a)};_glUniform4f.sig="viffff";var _emscripten_glUniform4f=_glUniform4f;function _glUniform4fv(e,r,t){if(t>>>=0,r<=72){var n=miniTempWebGLFloatBuffers[4*r],a=GROWABLE_HEAP_F32();t>>>=2;for(var i=0;i<4*r;i+=4){var _=t+i;n[i]=a[_>>>0],n[i+1]=a[_+1>>>0],n[i+2]=a[_+2>>>0],n[i+3]=a[_+3>>>0]}}else n=GROWABLE_HEAP_F32().subarray(t>>>2>>>0,t+16*r>>>2>>>0);GLctx.uniform4fv(webglGetUniformLocation(e),n)}_emscripten_glUniform4f.sig="viffff",_glUniform4fv.sig="viip";var _emscripten_glUniform4fv=_glUniform4fv;_emscripten_glUniform4fv.sig="viip";var _glUniform4i=(e,r,t,n,a)=>{GLctx.uniform4i(webglGetUniformLocation(e),r,t,n,a)};_glUniform4i.sig="viiiii";var _emscripten_glUniform4i=_glUniform4i;function _glUniform4iv(e,r,t){if(t>>>=0,r<=72)for(var n=miniTempWebGLIntBuffers[4*r],a=0;a<4*r;a+=4)n[a]=GROWABLE_HEAP_I32()[t+4*a>>>2>>>0],n[a+1]=GROWABLE_HEAP_I32()[t+(4*a+4)>>>2>>>0],n[a+2]=GROWABLE_HEAP_I32()[t+(4*a+8)>>>2>>>0],n[a+3]=GROWABLE_HEAP_I32()[t+(4*a+12)>>>2>>>0];else n=GROWABLE_HEAP_I32().subarray(t>>>2>>>0,t+16*r>>>2>>>0);GLctx.uniform4iv(webglGetUniformLocation(e),n)}_emscripten_glUniform4i.sig="viiiii",_glUniform4iv.sig="viip";var _emscripten_glUniform4iv=_glUniform4iv;function _glUniformMatrix2fv(e,r,t,n){if(n>>>=0,r<=72)for(var a=miniTempWebGLFloatBuffers[4*r],i=0;i<4*r;i+=4)a[i]=GROWABLE_HEAP_F32()[n+4*i>>>2>>>0],a[i+1]=GROWABLE_HEAP_F32()[n+(4*i+4)>>>2>>>0],a[i+2]=GROWABLE_HEAP_F32()[n+(4*i+8)>>>2>>>0],a[i+3]=GROWABLE_HEAP_F32()[n+(4*i+12)>>>2>>>0];else a=GROWABLE_HEAP_F32().subarray(n>>>2>>>0,n+16*r>>>2>>>0);GLctx.uniformMatrix2fv(webglGetUniformLocation(e),!!t,a)}_emscripten_glUniform4iv.sig="viip",_glUniformMatrix2fv.sig="viiip";var _emscripten_glUniformMatrix2fv=_glUniformMatrix2fv;function _glUniformMatrix3fv(e,r,t,n){if(n>>>=0,r<=32)for(var a=miniTempWebGLFloatBuffers[9*r],i=0;i<9*r;i+=9)a[i]=GROWABLE_HEAP_F32()[n+4*i>>>2>>>0],a[i+1]=GROWABLE_HEAP_F32()[n+(4*i+4)>>>2>>>0],a[i+2]=GROWABLE_HEAP_F32()[n+(4*i+8)>>>2>>>0],a[i+3]=GROWABLE_HEAP_F32()[n+(4*i+12)>>>2>>>0],a[i+4]=GROWABLE_HEAP_F32()[n+(4*i+16)>>>2>>>0],a[i+5]=GROWABLE_HEAP_F32()[n+(4*i+20)>>>2>>>0],a[i+6]=GROWABLE_HEAP_F32()[n+(4*i+24)>>>2>>>0],a[i+7]=GROWABLE_HEAP_F32()[n+(4*i+28)>>>2>>>0],a[i+8]=GROWABLE_HEAP_F32()[n+(4*i+32)>>>2>>>0];else a=GROWABLE_HEAP_F32().subarray(n>>>2>>>0,n+36*r>>>2>>>0);GLctx.uniformMatrix3fv(webglGetUniformLocation(e),!!t,a)}_emscripten_glUniformMatrix2fv.sig="viiip",_glUniformMatrix3fv.sig="viiip";var _emscripten_glUniformMatrix3fv=_glUniformMatrix3fv;function _glUniformMatrix4fv(e,r,t,n){if(n>>>=0,r<=18){var a=miniTempWebGLFloatBuffers[16*r],i=GROWABLE_HEAP_F32();n>>>=2;for(var _=0;_<16*r;_+=16){var s=n+_;a[_]=i[s>>>0],a[_+1]=i[s+1>>>0],a[_+2]=i[s+2>>>0],a[_+3]=i[s+3>>>0],a[_+4]=i[s+4>>>0],a[_+5]=i[s+5>>>0],a[_+6]=i[s+6>>>0],a[_+7]=i[s+7>>>0],a[_+8]=i[s+8>>>0],a[_+9]=i[s+9>>>0],a[_+10]=i[s+10>>>0],a[_+11]=i[s+11>>>0],a[_+12]=i[s+12>>>0],a[_+13]=i[s+13>>>0],a[_+14]=i[s+14>>>0],a[_+15]=i[s+15>>>0]}}else a=GROWABLE_HEAP_F32().subarray(n>>>2>>>0,n+64*r>>>2>>>0);GLctx.uniformMatrix4fv(webglGetUniformLocation(e),!!t,a)}_emscripten_glUniformMatrix3fv.sig="viiip",_glUniformMatrix4fv.sig="viiip";var _emscripten_glUniformMatrix4fv=_glUniformMatrix4fv;_emscripten_glUniformMatrix4fv.sig="viiip";var _glUseProgram=e=>{e=GL.programs[e],GLctx.useProgram(e),GLctx.currentProgram=e};_glUseProgram.sig="vi";var _emscripten_glUseProgram=_glUseProgram;_emscripten_glUseProgram.sig="vi";var _glValidateProgram=e=>{GLctx.validateProgram(GL.programs[e])};_glValidateProgram.sig="vi";var _emscripten_glValidateProgram=_glValidateProgram;_emscripten_glValidateProgram.sig="vi";var _glVertexAttrib1f=(e,r)=>GLctx.vertexAttrib1f(e,r);_glVertexAttrib1f.sig="vif";var _emscripten_glVertexAttrib1f=_glVertexAttrib1f;function _glVertexAttrib1fv(e,r){r>>>=0,GLctx.vertexAttrib1f(e,GROWABLE_HEAP_F32()[r>>>2])}_emscripten_glVertexAttrib1f.sig="vif",_glVertexAttrib1fv.sig="vip";var _emscripten_glVertexAttrib1fv=_glVertexAttrib1fv;_emscripten_glVertexAttrib1fv.sig="vip";var _glVertexAttrib2f=(e,r,t)=>GLctx.vertexAttrib2f(e,r,t);_glVertexAttrib2f.sig="viff";var _emscripten_glVertexAttrib2f=_glVertexAttrib2f;function _glVertexAttrib2fv(e,r){r>>>=0,GLctx.vertexAttrib2f(e,GROWABLE_HEAP_F32()[r>>>2],GROWABLE_HEAP_F32()[r+4>>>2])}_emscripten_glVertexAttrib2f.sig="viff",_glVertexAttrib2fv.sig="vip";var _emscripten_glVertexAttrib2fv=_glVertexAttrib2fv;_emscripten_glVertexAttrib2fv.sig="vip";var _glVertexAttrib3f=(e,r,t,n)=>GLctx.vertexAttrib3f(e,r,t,n);_glVertexAttrib3f.sig="vifff";var _emscripten_glVertexAttrib3f=_glVertexAttrib3f;function _glVertexAttrib3fv(e,r){r>>>=0,GLctx.vertexAttrib3f(e,GROWABLE_HEAP_F32()[r>>>2],GROWABLE_HEAP_F32()[r+4>>>2],GROWABLE_HEAP_F32()[r+8>>>2])}_emscripten_glVertexAttrib3f.sig="vifff",_glVertexAttrib3fv.sig="vip";var _emscripten_glVertexAttrib3fv=_glVertexAttrib3fv;_emscripten_glVertexAttrib3fv.sig="vip";var _glVertexAttrib4f=(e,r,t,n,a)=>GLctx.vertexAttrib4f(e,r,t,n,a);_glVertexAttrib4f.sig="viffff";var _emscripten_glVertexAttrib4f=_glVertexAttrib4f;function _glVertexAttrib4fv(e,r){r>>>=0,GLctx.vertexAttrib4f(e,GROWABLE_HEAP_F32()[r>>>2],GROWABLE_HEAP_F32()[r+4>>>2],GROWABLE_HEAP_F32()[r+8>>>2],GROWABLE_HEAP_F32()[r+12>>>2])}_emscripten_glVertexAttrib4f.sig="viffff",_glVertexAttrib4fv.sig="vip";var _emscripten_glVertexAttrib4fv=_glVertexAttrib4fv;_emscripten_glVertexAttrib4fv.sig="vip";var _glVertexAttribDivisor=(e,r)=>{GLctx.vertexAttribDivisor(e,r)};_glVertexAttribDivisor.sig="vii";var _glVertexAttribDivisorANGLE=_glVertexAttribDivisor,_emscripten_glVertexAttribDivisorANGLE=_glVertexAttribDivisorANGLE;function _glVertexAttribPointer(e,r,t,n,a,i){i>>>=0,GLctx.vertexAttribPointer(e,r,t,!!n,a,i)}_glVertexAttribPointer.sig="viiiiip";var _emscripten_glVertexAttribPointer=_glVertexAttribPointer;_emscripten_glVertexAttribPointer.sig="viiiiip";var _glViewport=(e,r,t,n)=>GLctx.viewport(e,r,t,n);_glViewport.sig="viiii";var _emscripten_glViewport=_glViewport;_emscripten_glViewport.sig="viiii";var _emscripten_num_logical_cores=()=>ENVIRONMENT_IS_NODE?ce().cpus().length:navigator.hardwareConcurrency;function _emscripten_out(e){return out(UTF8ToString(e>>>=0))}function _emscripten_promise_destroy(e){e>>>=0,promiseMap.free(e)}function _emscripten_promise_resolve(e,r,t){e>>>=0,t>>>=0;var n=promiseMap.get(e);switch(r){case 0:return void n.resolve(t);case 1:return void n.resolve(getPromise(t));case 2:return n.resolve(getPromise(t)),void _emscripten_promise_destroy(t);case 3:return void n.reject(t)}}_emscripten_num_logical_cores.sig="i",_emscripten_out.sig="vp",_emscripten_promise_destroy.sig="vp",_emscripten_promise_resolve.sig="vpip";var growMemory=e=>{var r=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(r),updateMemoryViews(),1}catch(e){}};function _emscripten_resize_heap(e){e>>>=0;var r=GROWABLE_HEAP_U8().length;if(e<=r)return!1;var t,n=getHeapMax();if(e>n)return!1;for(var a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var _=Math.min(n,(t=Math.max(e,i))+(65536-t%65536)%65536);if(growMemory(_))return!0}return!1}_emscripten_resize_heap.sig="ip";var _emscripten_set_timeout=function(e,r,t){return e>>>=0,t>>>=0,safeSetTimeout((()=>getWasmTableEntry(e)(t)),r)};_emscripten_set_timeout.sig="ipdp";var _emscripten_unwind_to_js_event_loop=()=>{throw"unwind"};function _emscripten_wget_data(e,r,t,n){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_wget_data"}_emscripten_unwind_to_js_event_loop.sig="v",_emscripten_wget_data.sig="vpppp";var getExecutableName=()=>thisProgram||"./this.program",getEnvStrings=()=>{if(!getEnvStrings.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:getExecutableName()};for(var r in ENV)void 0===ENV[r]?delete e[r]:e[r]=ENV[r];var t=[];for(var r in e)t.push("".concat(r,"=").concat(e[r]));getEnvStrings.strings=t}return getEnvStrings.strings},stringToAscii=(e,r)=>{for(var t=0;t>>0]=e.charCodeAt(t);GROWABLE_HEAP_I8()[r>>>0]=0},_environ_get=function(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(151,0,1,e,r);e>>>=0,r>>>=0;var t=0;return getEnvStrings().forEach(((n,a)=>{var i=r+t;GROWABLE_HEAP_U32()[e+4*a>>>2>>>0]=i,stringToAscii(n,i),t+=n.length+1})),0};_environ_get.sig="ipp";var _environ_sizes_get=function(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(152,0,1,e,r);e>>>=0,r>>>=0;var t=getEnvStrings();GROWABLE_HEAP_U32()[e>>>2>>>0]=t.length;var n=0;return t.forEach((e=>n+=e.length+1)),GROWABLE_HEAP_U32()[r>>>2>>>0]=n,0};function _fd_close(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(153,0,1,e);try{var r=SYSCALLS.getStreamFromFD(e);return FS.close(r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_fdstat_get(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(154,0,1,e,r);r>>>=0;try{var t=SYSCALLS.getStreamFromFD(e),n=t.tty?2:FS.isDir(t.mode)?3:FS.isLink(t.mode)?7:4;return GROWABLE_HEAP_I8()[r>>>0]=n,GROWABLE_HEAP_I16()[r+2>>>1>>>0]=0,tempI64=[0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+8>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+12>>>2>>>0]=tempI64[1],tempI64=[0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+16>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+20>>>2>>>0]=tempI64[1],0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_environ_sizes_get.sig="ipp",_fd_close.sig="ii",_fd_fdstat_get.sig="iip";var doReadv=(e,r,t,n)=>{for(var a=0,i=0;i>>2>>>0],s=GROWABLE_HEAP_U32()[r+4>>>2>>>0];r+=8;var o=FS.read(e,GROWABLE_HEAP_I8(),_,s,n);if(o<0)return-1;if(a+=o,o>>=0,t>>>=0;var _=convertI32PairToI53Checked(n,a);i>>>=0;try{if(isNaN(_))return 61;var s=SYSCALLS.getStreamFromFD(e),o=doReadv(s,r,t,_);return GROWABLE_HEAP_U32()[i>>>2>>>0]=o,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_fd_pread.sig="iippiip";var doWritev=(e,r,t,n)=>{for(var a=0,i=0;i>>2>>>0],s=GROWABLE_HEAP_U32()[r+4>>>2>>>0];r+=8;var o=FS.write(e,GROWABLE_HEAP_I8(),_,s,n);if(o<0)return-1;a+=o,typeof n<"u"&&(n+=o)}return a};function _fd_pwrite(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(156,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0;var _=convertI32PairToI53Checked(n,a);i>>>=0;try{if(isNaN(_))return 61;var s=SYSCALLS.getStreamFromFD(e),o=doWritev(s,r,t,_);return GROWABLE_HEAP_U32()[i>>>2>>>0]=o,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_read(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(157,0,1,e,r,t,n);r>>>=0,t>>>=0,n>>>=0;try{var a=SYSCALLS.getStreamFromFD(e),i=doReadv(a,r,t);return GROWABLE_HEAP_U32()[n>>>2>>>0]=i,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_seek(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(158,0,1,e,r,t,n,a);var i=convertI32PairToI53Checked(r,t);a>>>=0;try{if(isNaN(i))return 61;var _=SYSCALLS.getStreamFromFD(e);return FS.llseek(_,i,n),tempI64=[_.position>>>0,(tempDouble=_.position,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[a>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[a+4>>>2>>>0]=tempI64[1],_.getdents&&0===i&&0===n&&(_.getdents=null),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_sync(e){var r;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(159,0,1,e);try{var t=SYSCALLS.getStreamFromFD(e);return null!=(r=t.stream_ops)&&r.fsync?t.stream_ops.fsync(t):0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_write(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(160,0,1,e,r,t,n);r>>>=0,t>>>=0,n>>>=0;try{var a=SYSCALLS.getStreamFromFD(e),i=doWritev(a,r,t);return GROWABLE_HEAP_U32()[n>>>2>>>0]=i,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _getaddrinfo(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(161,0,1,e,r,t,n);e>>>=0,r>>>=0,n>>>=0;var a,i=0,_=0,s=0,o=0,l=0,c=0;function u(e,r,t,n,a,i){var _,s,o;return s=10===e?28:16,a=10===e?inetNtop6(a):inetNtop4(a),_=_malloc(s),assert(!writeSockaddr(_,e,a,i)),o=_malloc(32),GROWABLE_HEAP_I32()[o+4>>>2>>>0]=e,GROWABLE_HEAP_I32()[o+8>>>2>>>0]=r,GROWABLE_HEAP_I32()[o+12>>>2>>>0]=t,GROWABLE_HEAP_U32()[o+24>>>2>>>0]=n,GROWABLE_HEAP_U32()[o+20>>>2>>>0]=_,GROWABLE_HEAP_I32()[o+16>>>2>>>0]=10===e?28:16,GROWABLE_HEAP_I32()[o+28>>>2>>>0]=0,o}if((t>>>=0)&&(s=GROWABLE_HEAP_I32()[t>>>2>>>0],o=GROWABLE_HEAP_I32()[t+4>>>2>>>0],l=GROWABLE_HEAP_I32()[t+8>>>2>>>0],c=GROWABLE_HEAP_I32()[t+12>>>2>>>0]),l&&!c&&(c=2===l?17:6),!l&&c&&(l=17===c?2:1),0===c&&(c=6),0===l&&(l=1),!e&&!r)return-2;if(-1088&s||0!==t&&2&GROWABLE_HEAP_I32()[t>>>2>>>0]&&!e)return-1;if(32&s)return-2;if(0!==l&&1!==l&&2!==l)return-7;if(0!==o&&2!==o&&10!==o)return-6;if(r&&(r=UTF8ToString(r),_=parseInt(r,10),isNaN(_)))return 1024&s?-2:-8;if(!e)return 0===o&&(o=2),1&s||(i=2===o?_htonl(2130706433):[0,0,0,1]),a=u(o,l,c,null,i,_),GROWABLE_HEAP_U32()[n>>>2>>>0]=a,0;if(e=UTF8ToString(e),null!==(i=inetPton4(e)))if(0===o||2===o)o=2;else{if(!(10===o&&8&s))return-2;i=[0,0,_htonl(65535),i],o=10}else if(null!==(i=inetPton6(e))){if(0!==o&&10!==o)return-2;o=10}return null!=i?(a=u(o,l,c,e,i,_),GROWABLE_HEAP_U32()[n>>>2>>>0]=a,0):4&s?-2:(e=DNS.lookup_name(e),i=inetPton4(e),0===o?o=2:10===o&&(i=[0,0,_htonl(65535),i]),a=u(o,l,c,null,i,_),GROWABLE_HEAP_U32()[n>>>2>>>0]=a,0)}function _getentropy(e,r){return e>>>=0,r>>>=0,randomFill(GROWABLE_HEAP_U8().subarray(e>>>0,e+r>>>0)),0}function _getnameinfo(e,r,t,n,a,i,_){t>>>=0,a>>>=0;var s=readSockaddr(e>>>=0,r);if(s.errno)return-6;var o=s.port,l=s.addr,c=!1;if(t&&n){var u;if(1&_||!(u=DNS.lookup_addr(l))){if(8&_)return-2}else l=u;stringToUTF8(l,t,n)+1>=n&&(c=!0)}return a&&i&&stringToUTF8(o=""+o,a,i)+1>=i&&(c=!0),c?-12:0}_fd_pwrite.sig="iippiip",_fd_read.sig="iippp",_fd_seek.sig="iiiiip",_fd_sync.sig="ii",_fd_write.sig="iippp",_getaddrinfo.sig="ipppp",_getentropy.sig="ipp",_getnameinfo.sig="ipipipii";var arraySum=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],addDays=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=isLeapYear(t.getFullYear()),a=t.getMonth(),i=(n?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[a];if(!(r>i-t.getDate()))return t.setDate(t.getDate()+r),t;r-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1))}return t},writeArrayToMemory=(e,r)=>{GROWABLE_HEAP_I8().set(e,r>>>0)};function _strftime(e,r,t,n){e>>>=0,r>>>=0,t>>>=0,n>>>=0;var a=GROWABLE_HEAP_U32()[n+40>>>2>>>0],i={tm_sec:GROWABLE_HEAP_I32()[n>>>2>>>0],tm_min:GROWABLE_HEAP_I32()[n+4>>>2>>>0],tm_hour:GROWABLE_HEAP_I32()[n+8>>>2>>>0],tm_mday:GROWABLE_HEAP_I32()[n+12>>>2>>>0],tm_mon:GROWABLE_HEAP_I32()[n+16>>>2>>>0],tm_year:GROWABLE_HEAP_I32()[n+20>>>2>>>0],tm_wday:GROWABLE_HEAP_I32()[n+24>>>2>>>0],tm_yday:GROWABLE_HEAP_I32()[n+28>>>2>>>0],tm_isdst:GROWABLE_HEAP_I32()[n+32>>>2>>>0],tm_gmtoff:GROWABLE_HEAP_I32()[n+36>>>2>>>0],tm_zone:a?UTF8ToString(a):""},_=UTF8ToString(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var o in s)_=_.replace(new RegExp(o,"g"),s[o]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(e,r,t){for(var n="number"==typeof e?e.toString():e||"";n.length0?1:0}var n;return 0===(n=t(e.getFullYear()-r.getFullYear()))&&0===(n=t(e.getMonth()-r.getMonth()))&&(n=t(e.getDate()-r.getDate())),n}function m(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function f(e){var r=addDays(new Date(e.tm_year+1900,0,1),e.tm_yday),t=new Date(r.getFullYear(),0,4),n=new Date(r.getFullYear()+1,0,4),a=m(t),i=m(n);return p(a,r)<=0?p(i,r)<=0?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var g={"%a":e=>l[e.tm_wday].substring(0,3),"%A":e=>l[e.tm_wday],"%b":e=>c[e.tm_mon].substring(0,3),"%B":e=>c[e.tm_mon],"%C":e=>d((e.tm_year+1900)/100|0,2),"%d":e=>d(e.tm_mday,2),"%e":e=>u(e.tm_mday,2," "),"%g":e=>f(e).toString().substring(2),"%G":f,"%H":e=>d(e.tm_hour,2),"%I":e=>{var r=e.tm_hour;return 0==r?r=12:r>12&&(r-=12),d(r,2)},"%j":e=>d(e.tm_mday+arraySum(isLeapYear(e.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,e.tm_mon-1),3),"%m":e=>d(e.tm_mon+1,2),"%M":e=>d(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>d(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var r=e.tm_yday+7-e.tm_wday;return d(Math.floor(r/7),2)},"%V":e=>{var r=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&r++,r){if(53==r){var t=(e.tm_wday+371-e.tm_yday)%7;4!=t&&(3!=t||!isLeapYear(e.tm_year))&&(r=1)}}else{r=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&isLeapYear(e.tm_year%400-1))&&r++}return d(r,2)},"%w":e=>e.tm_wday,"%W":e=>{var r=e.tm_yday+7-(e.tm_wday+6)%7;return d(Math.floor(r/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var r=e.tm_gmtoff;return(r>=0?"+":"-")+("0000"+(r=(r=Math.abs(r)/60)/60*100+r%60)).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var o in _=_.replace(/%%/g,"\0\0"),g)_.includes(o)&&(_=_.replace(new RegExp(o,"g"),g[o](i)));var E=intArrayFromString(_=_.replace(/\0\0/g,"%"),!1);return E.length>r?0:(writeArrayToMemory(E,e),E.length-1)}function _strftime_l(e,r,t,n,a){return _strftime(e>>>=0,r>>>=0,t>>>=0,n>>>=0)}function _strptime(e,r,t){e>>>=0,t>>>=0;for(var n=UTF8ToString(r>>>=0),a="\\!@#$^&*()+=-[]/{}|:<>?,.",i=0;i<25;++i)n=n.replace(new RegExp("\\"+a[i],"g"),"\\"+a[i]);var _={A:"%a",B:"%b",c:"%a %b %d %H:%M:%S %Y",D:"%m\\/%d\\/%y",e:"%d",F:"%Y-%m-%d",h:"%b",R:"%H\\:%M",r:"%I\\:%M\\:%S\\s%p",T:"%H\\:%M\\:%S",x:"%m\\/%d\\/(?:%y|%Y)",X:"%H\\:%M\\:%S"},s={a:"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)",b:"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)",C:"\\d\\d",d:"0[1-9]|[1-9](?!\\d)|1\\d|2\\d|30|31",H:"\\d(?!\\d)|[0,1]\\d|20|21|22|23",I:"\\d(?!\\d)|0\\d|10|11|12",j:"00[1-9]|0?[1-9](?!\\d)|0?[1-9]\\d(?!\\d)|[1,2]\\d\\d|3[0-6]\\d",m:"0[1-9]|[1-9](?!\\d)|10|11|12",M:"0\\d|\\d(?!\\d)|[1-5]\\d",n:" ",p:"AM|am|PM|pm|A\\.M\\.|a\\.m\\.|P\\.M\\.|p\\.m\\.",S:"0\\d|\\d(?!\\d)|[1-5]\\d|60",U:"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53",W:"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53",w:"[0-6]",y:"\\d\\d",Y:"\\d\\d\\d\\d",t:" ",z:"Z|(?:[\\+\\-]\\d\\d:?(?:\\d\\d)?)"},o=[],l=n.replace(/%(.)/g,((e,r)=>_[r]||e)).replace(/%(.)/g,((e,r)=>{let t=s[r];return t?(o.push(r),"(".concat(t,")")):r})).replace(/\s+/g,"\\s*"),c=new RegExp("^"+l,"i").exec(UTF8ToString(e));if(c){var u,d=function(){function e(e,r,t){return"number"!=typeof e||isNaN(e)?r:e>=r?e<=t?e:t:r}return{year:e(GROWABLE_HEAP_I32()[t+20>>>2>>>0]+1900,1970,9999),month:e(GROWABLE_HEAP_I32()[t+16>>>2>>>0],0,11),day:e(GROWABLE_HEAP_I32()[t+12>>>2>>>0],1,31),hour:e(GROWABLE_HEAP_I32()[t+8>>>2>>>0],0,23),min:e(GROWABLE_HEAP_I32()[t+4>>>2>>>0],0,59),sec:e(GROWABLE_HEAP_I32()[t>>>2>>>0],0,59),gmtoff:0}}(),p=e=>{var r=o.indexOf(e);if(r>=0)return c[r+1]};if((u=p("S"))&&(d.sec=jstoi_q(u)),(u=p("M"))&&(d.min=jstoi_q(u)),u=p("H"))d.hour=jstoi_q(u);else if(u=p("I")){var m=jstoi_q(u);(u=p("p"))&&(m+="P"===u.toUpperCase()[0]?12:0),d.hour=m}if(u=p("Y"))d.year=jstoi_q(u);else if(u=p("y")){var f=jstoi_q(u);(u=p("C"))?f+=100*jstoi_q(u):f+=f<69?2e3:1900,d.year=f}if((u=p("m"))?d.month=jstoi_q(u)-1:(u=p("b"))&&(d.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[u.substring(0,3).toUpperCase()]||0),u=p("d"))d.day=jstoi_q(u);else if(u=p("j"))for(var g=jstoi_q(u),E=isLeapYear(d.year),h=0;h<12;++h){var v=arraySum(E?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,h-1);g<=v+(E?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[h]&&(d.day=g-v)}else if(u=p("a")){var S=u.substring(0,3).toUpperCase();if(u=p("U")){var A={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[S],b=jstoi_q(u);y=0===(L=new Date(d.year,0,1)).getDay()?addDays(L,A+7*(b-1)):addDays(L,7-L.getDay()+A+7*(b-1)),d.day=y.getDate(),d.month=y.getMonth()}else if(u=p("W")){var L,y;A={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[S],b=jstoi_q(u),y=1===(L=new Date(d.year,0,1)).getDay()?addDays(L,A+7*(b-1)):addDays(L,7-L.getDay()+1+A+7*(b-1)),d.day=y.getDate(),d.month=y.getMonth()}}if(u=p("z"))if("z"===u.toLowerCase())d.gmtoff=0;else{var T=u.match(/^((?:\-|\+)\d\d):?(\d\d)?/);d.gmtoff=3600*T[1],T[2]&&(d.gmtoff+=d.gmtoff>0?60*T[2]:60*-T[2])}var w=new Date(d.year,d.month,d.day,d.hour,d.min,d.sec,0);return GROWABLE_HEAP_I32()[t>>>2>>>0]=w.getSeconds(),GROWABLE_HEAP_I32()[t+4>>>2>>>0]=w.getMinutes(),GROWABLE_HEAP_I32()[t+8>>>2>>>0]=w.getHours(),GROWABLE_HEAP_I32()[t+12>>>2>>>0]=w.getDate(),GROWABLE_HEAP_I32()[t+16>>>2>>>0]=w.getMonth(),GROWABLE_HEAP_I32()[t+20>>>2>>>0]=w.getFullYear()-1900,GROWABLE_HEAP_I32()[t+24>>>2>>>0]=w.getDay(),GROWABLE_HEAP_I32()[t+28>>>2>>>0]=arraySum(isLeapYear(w.getFullYear())?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,w.getMonth()-1)+w.getDate()-1,GROWABLE_HEAP_I32()[t+32>>>2>>>0]=0,GROWABLE_HEAP_I32()[t+36>>>2>>>0]=d.gmtoff,e+intArrayFromString(c[0]).length-1}return 0}_strftime.sig="ppppp",_strftime_l.sig="pppppp",_strptime.sig="pppp";var getCFunc=e=>Module["_"+e],ccall=(e,r,t,n,a)=>{var i={string:e=>{var r=0;return null!=e&&0!==e&&(r=stringToUTF8OnStack(e)),r},array:e=>{var r=stackAlloc(e.length);return writeArrayToMemory(e,r),r}},_=getCFunc(e),s=[],o=0;if(n)for(var l=0;l{r>0x8000000000000000?(GROWABLE_HEAP_U32()[e>>>2>>>0]=4294967295,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=2147483647):r<-0x8000000000000000?(GROWABLE_HEAP_U32()[e>>>2>>>0]=0,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=2147483648):writeI53ToI64(e,r)},writeI53ToI64Signaling=(e,r)=>{if(r>0x8000000000000000||r<-0x8000000000000000)throw"RangeError: ".concat(r);writeI53ToI64(e,r)},writeI53ToU64Clamped=(e,r)=>{r>0x10000000000000000?(GROWABLE_HEAP_U32()[e>>>2>>>0]=4294967295,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=4294967295):r<0?(GROWABLE_HEAP_U32()[e>>>2>>>0]=0,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=0):writeI53ToI64(e,r)},writeI53ToU64Signaling=(e,r)=>{if(r<0||r>0x10000000000000000)throw"RangeError: ".concat(r);writeI53ToI64(e,r)},readI53FromU64=e=>GROWABLE_HEAP_U32()[e>>>2>>>0]+4294967296*GROWABLE_HEAP_U32()[e+4>>>2>>>0],convertI32PairToI53=(e,r)=>(e>>>0)+4294967296*r,convertU32PairToI53=(e,r)=>(e>>>0)+4294967296*(r>>>0),getTempRet0=e=>__emscripten_tempret_get(),setTempRet0=e=>__emscripten_tempret_set(e),_stackAlloc=stackAlloc,_stackSave=stackSave,_stackRestore=stackSave,ptrToString=e=>"0x"+e.toString(16).padStart(8,"0");function _emscripten_notify_memory_growth(e){updateMemoryViews()}function ___asctime_r(e,r){e>>>=0,r>>>=0;var t=GROWABLE_HEAP_I32()[e>>>2>>>0],n=GROWABLE_HEAP_I32()[e+4>>>2>>>0],a=GROWABLE_HEAP_I32()[e+8>>>2>>>0],i=GROWABLE_HEAP_I32()[e+12>>>2>>>0],_=GROWABLE_HEAP_I32()[e+16>>>2>>>0],s=GROWABLE_HEAP_I32()[e+20>>>2>>>0],o=GROWABLE_HEAP_I32()[e+24>>>2>>>0];return stringToUTF8(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][o]+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][_]+(i<10?" ":" ")+i+(a<10?" 0":" ")+a+(n<10?":0":":")+n+(t<10?":0":":")+t+" "+(1900+s)+"\n",r,26),r}function _strptime_l(e,r,t,n){return _strptime(e>>>=0,r>>>=0,t>>>=0)}_emscripten_notify_memory_growth.sig="vp",___asctime_r.sig="ppp",_strptime_l.sig="ppppp";var ERRNO_CODES={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},ERRNO_MESSAGES={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},Protocols={list:[],map:{}},_setprotoent=e=>{function r(e,r,t){var n=_malloc(e.length+1);stringToAscii(e,n);for(var a=0,i=t.length,_=_malloc(4*(i+1)),s=0;s>>2>>>0]=l}GROWABLE_HEAP_U32()[_+a>>>2>>>0]=0;var c=_malloc(12);return GROWABLE_HEAP_U32()[c>>>2>>>0]=n,GROWABLE_HEAP_U32()[c+4>>>2>>>0]=_,GROWABLE_HEAP_I32()[c+8>>>2>>>0]=r,c}var t=Protocols.list,n=Protocols.map;if(0===t.length){var a=r("tcp",6,["TCP"]);t.push(a),n.tcp=n[6]=a,a=r("udp",17,["UDP"]),t.push(a),n.udp=n[17]=a}_setprotoent.index=0};_setprotoent.sig="vi";var _endprotoent=()=>{};function _getprotoent(e){return _setprotoent.index===Protocols.list.length?0:Protocols.list[_setprotoent.index++]}function _getprotobyname(e){return e=UTF8ToString(e>>>=0),_setprotoent(!0),Protocols.map[e]}function _getprotobynumber(e){return _setprotoent(!0),Protocols.map[e]}function _emscripten_run_script(ptr){ptr>>>=0,eval(UTF8ToString(ptr))}function _emscripten_run_script_int(ptr){return ptr>>>=0,0|eval(UTF8ToString(ptr))}function _emscripten_run_script_string(ptr){ptr>>>=0;var s=eval(UTF8ToString(ptr));if(null==s)return 0;s+="";var me=_emscripten_run_script_string,len=lengthBytesUTF8(s);return(!me.bufferSize||me.bufferSizeMath.random();function jsStackTrace(){return(new Error).stack.toString()}function getCallstack(e){var r=jsStackTrace(),t=r.lastIndexOf("_emscripten_log"),n=r.lastIndexOf("_emscripten_get_callstack"),a=r.indexOf("\n",Math.max(t,n))+1;r=r.slice(a),8&e&&typeof emscripten_source_map>"u"&&(warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var i=r.split("\n");r="";var _=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),s=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),o=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var l in i){var c=i[l],u="",d="",p=0,m=0,f=o.exec(c);if(f&&5==f.length)u=f[1],d=f[2],p=f[3],m=f[4];else{if((f=_.exec(c))||(f=s.exec(c)),!(f&&f.length>=4)){r+=c+"\n";continue}u=f[1],d=f[2],p=f[3],m=0|f[4]}var g=!1;if(8&e){var E=emscripten_source_map.originalPositionFor({line:p,column:m});(g=null==E?void 0:E.source)&&(64&e&&(E.source=E.source.substring(E.source.replace(/\\/g,"/").lastIndexOf("/")+1)),r+=" at ".concat(u," (").concat(E.source,":").concat(E.line,":").concat(E.column,")\n"))}(16&e||!g)&&(64&e&&(d=d.substring(d.replace(/\\/g,"/").lastIndexOf("/")+1)),r+=(g?" = ".concat(u):" at ".concat(u))+" (".concat(d,":").concat(p,":").concat(m,")\n"))}return r.replace(/\s+$/,"")}_emscripten_random.sig="f";var emscriptenLog=(e,r)=>{24&e&&(r=r.replace(/\s+$/,""),r+=(r.length>0?"\n":"")+getCallstack(e)),1&e?4&e?console.error(r):2&e?console.warn(r):512&e?console.info(r):256&e?console.debug(r):console.log(r):6&e?err(r):out(r)},reallyNegative=e=>e<0||0===e&&1/e==-1/0,reSign=(e,r)=>{if(e<=0)return e;var t=r<=32?Math.abs(1<=t&&(r<=32||e>t)&&(e=-2*t+e),e},unSign=(e,r)=>e>=0?e:r<=32?2*Math.abs(1<{for(var r=e;GROWABLE_HEAP_U8()[r>>>0];)++r;return r-e},formatString=(e,r)=>{var t=e,n=r;function a(e){var r;return n=function(e,r){return("double"===r||"i64"===r)&&7&e&&(e+=4),e}(n,e),"double"===e?(r=GROWABLE_HEAP_F64()[n>>>3>>>0],n+=8):"i64"==e?(r=[GROWABLE_HEAP_I32()[n>>>2>>>0],GROWABLE_HEAP_I32()[n+4>>>2>>>0]],n+=8):(e="i32",r=GROWABLE_HEAP_I32()[n>>>2>>>0],n+=4),r}for(var i,_,s,o=[];;){var l=t;if(0===(i=GROWABLE_HEAP_I8()[t>>>0]))break;if(_=GROWABLE_HEAP_I8()[t+1>>>0],37==i){var c=!1,u=!1,d=!1,p=!1,m=!1;e:for(;;){switch(_){case 43:c=!0;break;case 45:u=!0;break;case 35:d=!0;break;case 48:if(p)break e;p=!0;break;case 32:m=!0;break;default:break e}t++,_=GROWABLE_HEAP_I8()[t+1>>>0]}var f=0;if(42==_)f=a("i32"),t++,_=GROWABLE_HEAP_I8()[t+1>>>0];else for(;_>=48&&_<=57;)f=10*f+(_-48),t++,_=GROWABLE_HEAP_I8()[t+1>>>0];var g,E=!1,h=-1;if(46==_){if(h=0,E=!0,t++,42==(_=GROWABLE_HEAP_I8()[t+1>>>0]))h=a("i32"),t++;else for(;;){var v=GROWABLE_HEAP_I8()[t+1>>>0];if(v<48||v>57)break;h=10*h+(v-48),t++}_=GROWABLE_HEAP_I8()[t+1>>>0]}switch(h<0&&(h=6,E=!1),String.fromCharCode(_)){case"h":104==GROWABLE_HEAP_I8()[t+2>>>0]?(t++,g=1):g=2;break;case"l":108==GROWABLE_HEAP_I8()[t+2>>>0]?(t++,g=8):g=4;break;case"L":case"q":case"j":g=8;break;case"z":case"t":case"I":g=4;break;default:g=null}switch(g&&t++,_=GROWABLE_HEAP_I8()[t+1>>>0],String.fromCharCode(_)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var S=100==_||105==_;if(s=a("i"+8*(g=g||4)),8==g&&(s=117==_?convertU32PairToI53(s[0],s[1]):convertI32PairToI53(s[0],s[1])),g<=4){var A=Math.pow(256,g)-1;s=(S?reSign:unSign)(s&A,8*g)}var b=Math.abs(s),L="";if(100==_||105==_)w=reSign(s,8*g).toString(10);else if(117==_)w=unSign(s,8*g).toString(10),s=Math.abs(s);else if(111==_)w=(d?"0":"")+b.toString(8);else if(120==_||88==_){if(L=d&&0!=s?"0x":"",s<0){s=-s,w=(b-1).toString(16);for(var y=[],T=0;T=0&&(c?L="+"+L:m&&(L=" "+L)),"-"==w.charAt(0)&&(L="-"+L,w=w.substr(1));L.length+w.lengthM&&M>=-4?(_=(103==_?"f":"F").charCodeAt(0),h-=M+1):(_=(103==_?"e":"E").charCodeAt(0),h--),x=Math.min(h,20)}101==_||69==_?(w=s.toExponential(x),/[eE][-+]\d$/.test(w)&&(w=w.slice(0,-1)+"0"+w.slice(-1))):(102==_||70==_)&&(w=s.toFixed(x),0===s&&reallyNegative(s)&&(w="-"+w));var I=w.split("e");if(D&&!d)for(;I[0].length>1&&I[0].includes(".")&&("0"==I[0].slice(-1)||"."==I[0].slice(-1));)I[0]=I[0].slice(0,-1);else for(d&&-1==w.indexOf(".")&&(I[0]+=".");h>x++;)I[0]+="0";w=I[0]+(I.length>1?"e"+I[1]:""),69==_&&(w=w.toUpperCase()),s>=0&&(c?w="+"+w:m&&(w=" "+w))}else w=(s<0?"-":"")+"inf",p=!1;for(;w.length>>0]);else o=o.concat(intArrayFromString("(null)".substr(0,P),!0));if(u)for(;P0;)o.push(32);u||o.push(a("i8"));break;case"n":var G=a("i32*");GROWABLE_HEAP_I32()[G>>>2>>>0]=o.length;break;case"%":o.push(i);break;default:for(T=l;T>>0])}t+=2}else o.push(i),t+=1}return o};function _emscripten_log(e,r,t){var n=formatString(r>>>=0,t>>>=0),a=UTF8ArrayToString(n,0);emscriptenLog(e,a)}function _emscripten_get_compiler_setting(e){throw"You must build with -sRETAIN_COMPILER_SETTINGS for getCompilerSetting or emscripten_get_compiler_setting to work"}_emscripten_log.sig="vipp",_emscripten_get_compiler_setting.sig="pp";var _emscripten_has_asyncify=()=>0;function _emscripten_debugger(){}function _emscripten_print_double(e,r,t){var n=e+"";return(r>>>=0)?stringToUTF8(n,r,t):lengthBytesUTF8(n)}function _emscripten_get_module_name(e,r){return stringToUTF8(wasmBinaryFile,e>>>=0,r>>>=0)}function _emscripten_asm_const_double(e,r,t){return runEmAsmFunction(e>>>=0,r>>>=0,t>>>=0)}_emscripten_has_asyncify.sig="i",_emscripten_debugger.sig="v",_emscripten_print_double.sig="idpi",_emscripten_get_module_name.sig="ppp",_emscripten_asm_const_double.sig="dppp";var runMainThreadEmAsm=(e,r,t,n)=>{var a=readEmAsmArgs(r,t);return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(0,e,n,...a):ASM_CONSTS[e](...a)};function _emscripten_asm_const_int_sync_on_main_thread(e,r,t){return runMainThreadEmAsm(e>>>=0,r>>>=0,t>>>=0,1)}function _emscripten_asm_const_ptr_sync_on_main_thread(e,r,t){return runMainThreadEmAsm(e>>>=0,r>>>=0,t>>>=0,1)}_emscripten_asm_const_int_sync_on_main_thread.sig="ippp",_emscripten_asm_const_ptr_sync_on_main_thread.sig="pppp";var _emscripten_asm_const_double_sync_on_main_thread=_emscripten_asm_const_int_sync_on_main_thread;function _emscripten_asm_const_async_on_main_thread(e,r,t){return runMainThreadEmAsm(e>>>=0,r>>>=0,t>>>=0,0)}_emscripten_asm_const_double_sync_on_main_thread.sig="dppp",_emscripten_asm_const_async_on_main_thread.sig="vppp";var jstoi_s=Number;function __Unwind_Backtrace(e,r){e>>>=0,r>>>=0;for(var t=getCallstack().split("\n"),n=0;n{var r=[];r.push([0,97,115,109,1,0,0,0]);var t=[e[0].replace("j","i"),"i",e.slice(1).replace(/j/g,"ii")].join(""),n=[3];generateFuncType(t,n),generateFuncType(e,n),generateFuncType("vi",n);var a=[1];uleb128Encode(n.length,a),a.push(...n),r.push(a),r.push([2,15,2,1,101,1,116,1,112,0,0,1,101,1,114,0,2]),r.push([3,2,1,0]),r.push([7,5,1,1,102,0,1]);var i=[];function _(e){i.push(32),uleb128Encode(e,i)}"j"===e[0]?i=[1,1,126]:i.push(0);for(var s=1,o=1;o("dynCall_"+(e=e.replace(/p/g,"i"))in Module||(Module["dynCall_"+e]=createDyncallWrapper(e)),(0,Module["dynCall_"+e])(r,...t)),dynCall=(e,r,t=[])=>{if(e.includes("j"))return dynCallLegacy(e,r,t);var n=getWasmTableEntry(r)(...t);return"p"==e[0]?n>>>0:n},getDynCaller=(e,r)=>(...t)=>dynCall(e,r,t);function _emscripten_force_exit(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(162,0,1,e);__emscripten_runtime_keepalive_clear(),_exit(e)}function _emscripten_outn(e,r){return out(UTF8ToString(e>>>=0,r>>>=0))}function _emscripten_errn(e,r){return err(UTF8ToString(e>>>=0,r>>>=0))}_emscripten_force_exit.sig="vi",_emscripten_outn.sig="vpp",_emscripten_errn.sig="vpp";var _emscripten_throw_number=e=>{throw e};function _emscripten_throw_string(e){throw UTF8ToString(e>>>=0)}_emscripten_throw_number.sig="vd",_emscripten_throw_string.sig="vp";var _emscripten_runtime_keepalive_push=runtimeKeepalivePush;_emscripten_runtime_keepalive_push.sig="v";var _emscripten_runtime_keepalive_pop=runtimeKeepalivePop;_emscripten_runtime_keepalive_pop.sig="v";var _emscripten_runtime_keepalive_check=keepRuntimeAlive;_emscripten_runtime_keepalive_check.sig="i";var asmjsMangle=e=>("__main_argc_argv"==e&&(e="main"),e.startsWith("dynCall_")?e:"_"+e),___global_base=1024;function __emscripten_fs_load_embedded_files(e){e>>>=0;do{var r=GROWABLE_HEAP_U32()[e>>>2>>>0];e+=4;var t=GROWABLE_HEAP_U32()[e>>>2>>>0];e+=4;var n=GROWABLE_HEAP_U32()[e>>>2>>>0];e+=4;var a=UTF8ToString(r);FS.createPath("/",PATH.dirname(a),!0,!0),FS.createDataFile(a,null,GROWABLE_HEAP_I8().subarray(n>>>0,n+t>>>0),!0,!0,!0)}while(GROWABLE_HEAP_U32()[e>>>2>>>0])}__emscripten_fs_load_embedded_files.sig="vp";var POINTER_SIZE=4;function getNativeTypeSize(e){switch(e){case"i1":case"i8":case"u8":return 1;case"i16":case"u16":return 2;case"i32":case"u32":case"float":return 4;case"i64":case"u64":case"double":return 8;default:if("*"===e[e.length-1])return POINTER_SIZE;if("i"===e[0]){let r=Number(e.substr(1));return assert(r%8==0,"getNativeTypeSize invalid bits ".concat(r,", ").concat(e," type")),r/8}return 0}}var STACK_SIZE=65536,STACK_ALIGN=16,ASSERTIONS=0,cwrap=(e,r,t,n)=>{var a=!t||t.every((e=>"number"===e||"boolean"===e));return"string"!==r&&a&&!n?getCFunc(e):(...a)=>ccall(e,r,t,a,n)},removeFunction=e=>{functionsInTableMap.delete(getWasmTableEntry(e)),setWasmTableEntry(e,null),freeTableIndexes.push(e)},_emscripten_math_cbrt=Math.cbrt;_emscripten_math_cbrt.sig="dd";var _emscripten_math_pow=Math.pow;_emscripten_math_pow.sig="ddd";var _emscripten_math_random=Math.random;_emscripten_math_random.sig="d";var _emscripten_math_sign=Math.sign;_emscripten_math_sign.sig="dd";var _emscripten_math_sqrt=Math.sqrt;_emscripten_math_sqrt.sig="dd";var _emscripten_math_exp=Math.exp;_emscripten_math_exp.sig="dd";var _emscripten_math_expm1=Math.expm1;_emscripten_math_expm1.sig="dd";var _emscripten_math_fmod=(e,r)=>e%r;_emscripten_math_fmod.sig="ddd";var _emscripten_math_log=Math.log;_emscripten_math_log.sig="dd";var _emscripten_math_log1p=Math.log1p;_emscripten_math_log1p.sig="dd";var _emscripten_math_log10=Math.log10;_emscripten_math_log10.sig="dd";var _emscripten_math_log2=Math.log2;_emscripten_math_log2.sig="dd";var _emscripten_math_round=Math.round;_emscripten_math_round.sig="dd";var _emscripten_math_acos=Math.acos;_emscripten_math_acos.sig="dd";var _emscripten_math_acosh=Math.acosh;_emscripten_math_acosh.sig="dd";var _emscripten_math_asin=Math.asin;_emscripten_math_asin.sig="dd";var _emscripten_math_asinh=Math.asinh;_emscripten_math_asinh.sig="dd";var _emscripten_math_atan=Math.atan;_emscripten_math_atan.sig="dd";var _emscripten_math_atanh=Math.atanh;_emscripten_math_atanh.sig="dd";var _emscripten_math_atan2=Math.atan2;_emscripten_math_atan2.sig="ddd";var _emscripten_math_cos=Math.cos;_emscripten_math_cos.sig="dd";var _emscripten_math_cosh=Math.cosh;function _emscripten_math_hypot(e,r){r>>>=0;for(var t=[],n=0;n>>3>>>0]);return Math.hypot(...t)}_emscripten_math_cosh.sig="dd",_emscripten_math_hypot.sig="dip";var _emscripten_math_sin=Math.sin;_emscripten_math_sin.sig="dd";var _emscripten_math_sinh=Math.sinh;_emscripten_math_sinh.sig="dd";var _emscripten_math_tan=Math.tan;_emscripten_math_tan.sig="dd";var _emscripten_math_tanh=Math.tanh;function intArrayToString(e){for(var r=[],t=0;t255&&(n&=255),r.push(String.fromCharCode(n))}return r.join("")}_emscripten_math_tanh.sig="dd";var AsciiToString=e=>{e>>>=0;for(var r="";;){var t=GROWABLE_HEAP_U8()[e++>>>0];if(!t)return r;r+=String.fromCharCode(t)}},JSEvents={removeAllEventListeners(){for(;JSEvents.eventHandlers.length;)JSEvents._removeHandler(JSEvents.eventHandlers.length-1);JSEvents.deferredCalls=[]},inEventHandler:0,deferredCalls:[],deferCall(e,r,t){function n(e,r){if(e.length!=r.length)return!1;for(var t in e)if(e[t]!=r[t])return!1;return!0}for(var a in JSEvents.deferredCalls){var i=JSEvents.deferredCalls[a];if(i.targetFunction==e&&n(i.argsList,t))return}JSEvents.deferredCalls.push({targetFunction:e,precedence:r,argsList:t}),JSEvents.deferredCalls.sort(((e,r)=>e.precedencenavigator.userActivation?navigator.userActivation.isActive:JSEvents.inEventHandler&&JSEvents.currentEventHandler.allowsDeferredCalls,runDeferredCalls(){if(JSEvents.canPerformEventHandlerRequests())for(var e=0;e{for(var t=0;te?e==window?"#window":e==screen?"#screen":(null==e?void 0:e.nodeName)||"":"",fullscreenEnabled:()=>document.fullscreenEnabled||document.webkitFullscreenEnabled},maybeCStringToJsString=e=>e>2?UTF8ToString(e):e,specialHTMLTargets=[0,typeof document<"u"?document:0,typeof window<"u"?window:0],findEventTarget=e=>(e=maybeCStringToJsString(e),specialHTMLTargets[e]||(typeof document<"u"?document.querySelector(e):void 0)),registerKeyEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.keyEvent||(JSEvents.keyEvent=_malloc(176));var s={target:findEventTarget(e),eventTypeString:i,callbackfunc:n,handlerFunc:e=>{var t=_?_malloc(176):JSEvents.keyEvent;GROWABLE_HEAP_F64()[t>>>3>>>0]=e.timeStamp;var i=t>>>2;GROWABLE_HEAP_I32()[i+2>>>0]=e.location,GROWABLE_HEAP_I32()[i+3>>>0]=e.ctrlKey,GROWABLE_HEAP_I32()[i+4>>>0]=e.shiftKey,GROWABLE_HEAP_I32()[i+5>>>0]=e.altKey,GROWABLE_HEAP_I32()[i+6>>>0]=e.metaKey,GROWABLE_HEAP_I32()[i+7>>>0]=e.repeat,GROWABLE_HEAP_I32()[i+8>>>0]=e.charCode,GROWABLE_HEAP_I32()[i+9>>>0]=e.keyCode,GROWABLE_HEAP_I32()[i+10>>>0]=e.which,stringToUTF8(e.key||"",t+44,32),stringToUTF8(e.code||"",t+76,32),stringToUTF8(e.char||"",t+108,32),stringToUTF8(e.locale||"",t+140,32),_?__emscripten_run_callback_on_thread(_,n,a,t,r):getWasmTableEntry(n)(a,t,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)},findCanvasEventTarget=findEventTarget;function _emscripten_set_keypress_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(163,0,1,e,r,t,n,a):registerKeyEventCallback(e>>>=0,r>>>=0,t,n>>>=0,1,"keypress",a>>>=0)}function _emscripten_set_keydown_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(164,0,1,e,r,t,n,a):registerKeyEventCallback(e>>>=0,r>>>=0,t,n>>>=0,2,"keydown",a>>>=0)}function _emscripten_set_keyup_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(165,0,1,e,r,t,n,a):registerKeyEventCallback(e>>>=0,r>>>=0,t,n>>>=0,3,"keyup",a>>>=0)}_emscripten_set_keypress_callback_on_thread.sig="ippipp",_emscripten_set_keydown_callback_on_thread.sig="ippipp",_emscripten_set_keyup_callback_on_thread.sig="ippipp";var getBoundingClientRect=e=>specialHTMLTargets.indexOf(e)<0?e.getBoundingClientRect():{left:0,top:0},fillMouseEventData=(e,r,t)=>{GROWABLE_HEAP_F64()[e>>>3>>>0]=r.timeStamp;var n=e>>>2;GROWABLE_HEAP_I32()[n+2>>>0]=r.screenX,GROWABLE_HEAP_I32()[n+3>>>0]=r.screenY,GROWABLE_HEAP_I32()[n+4>>>0]=r.clientX,GROWABLE_HEAP_I32()[n+5>>>0]=r.clientY,GROWABLE_HEAP_I32()[n+6>>>0]=r.ctrlKey,GROWABLE_HEAP_I32()[n+7>>>0]=r.shiftKey,GROWABLE_HEAP_I32()[n+8>>>0]=r.altKey,GROWABLE_HEAP_I32()[n+9>>>0]=r.metaKey,GROWABLE_HEAP_I16()[2*n+20>>>0]=r.button,GROWABLE_HEAP_I16()[2*n+21>>>0]=r.buttons,GROWABLE_HEAP_I32()[n+11>>>0]=r.movementX,GROWABLE_HEAP_I32()[n+12>>>0]=r.movementY;var a=getBoundingClientRect(t);GROWABLE_HEAP_I32()[n+13>>>0]=r.clientX-(0|a.left),GROWABLE_HEAP_I32()[n+14>>>0]=r.clientY-(0|a.top)},registerMouseEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.mouseEvent||(JSEvents.mouseEvent=_malloc(72));var s={target:e=findEventTarget(e),allowsDeferredCalls:"mousemove"!=i&&"mouseenter"!=i&&"mouseleave"!=i,eventTypeString:i,callbackfunc:n,handlerFunc:(t=event)=>{if(fillMouseEventData(JSEvents.mouseEvent,t,e),_){var i=_malloc(72);fillMouseEventData(i,t,e),__emscripten_run_callback_on_thread(_,n,a,i,r)}else getWasmTableEntry(n)(a,JSEvents.mouseEvent,r)&&t.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_click_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(166,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,4,"click",a>>>=0)}function _emscripten_set_mousedown_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(167,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,5,"mousedown",a>>>=0)}function _emscripten_set_mouseup_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(168,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,6,"mouseup",a>>>=0)}function _emscripten_set_dblclick_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(169,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,7,"dblclick",a>>>=0)}function _emscripten_set_mousemove_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(170,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,8,"mousemove",a>>>=0)}function _emscripten_set_mouseenter_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(171,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,33,"mouseenter",a>>>=0)}function _emscripten_set_mouseleave_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(172,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,34,"mouseleave",a>>>=0)}function _emscripten_set_mouseover_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(173,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,35,"mouseover",a>>>=0)}function _emscripten_set_mouseout_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(174,0,1,e,r,t,n,a):registerMouseEventCallback(e>>>=0,r>>>=0,t,n>>>=0,36,"mouseout",a>>>=0)}function _emscripten_get_mouse_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(175,0,1,e):(e>>>=0,JSEvents.mouseEvent?(GROWABLE_HEAP_I8().set(GROWABLE_HEAP_I8().subarray(JSEvents.mouseEvent>>>0,JSEvents.mouseEvent+72>>>0),e>>>0),0):-7)}_emscripten_set_click_callback_on_thread.sig="ippipp",_emscripten_set_mousedown_callback_on_thread.sig="ippipp",_emscripten_set_mouseup_callback_on_thread.sig="ippipp",_emscripten_set_dblclick_callback_on_thread.sig="ippipp",_emscripten_set_mousemove_callback_on_thread.sig="ippipp",_emscripten_set_mouseenter_callback_on_thread.sig="ippipp",_emscripten_set_mouseleave_callback_on_thread.sig="ippipp",_emscripten_set_mouseover_callback_on_thread.sig="ippipp",_emscripten_set_mouseout_callback_on_thread.sig="ippipp",_emscripten_get_mouse_status.sig="ip";var registerWheelEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.wheelEvent||(JSEvents.wheelEvent=_malloc(104));var s={target:e,allowsDeferredCalls:!0,eventTypeString:i,callbackfunc:n,handlerFunc:(t=event)=>{var i=_?_malloc(104):JSEvents.wheelEvent;fillMouseEventData(i,t,e),GROWABLE_HEAP_F64()[i+72>>>3>>>0]=t.deltaX,GROWABLE_HEAP_F64()[i+80>>>3>>>0]=t.deltaY,GROWABLE_HEAP_F64()[i+88>>>3>>>0]=t.deltaZ,GROWABLE_HEAP_I32()[i+96>>>2>>>0]=t.deltaMode,_?__emscripten_run_callback_on_thread(_,n,a,i,r):getWasmTableEntry(n)(a,i,r)&&t.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_wheel_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(176,0,1,e,r,t,n,a):(r>>>=0,n>>>=0,a>>>=0,(e=findEventTarget(e>>>=0))?typeof e.onwheel<"u"?registerWheelEventCallback(e,r,t,n,9,"wheel",a):-1:-4)}_emscripten_set_wheel_callback_on_thread.sig="ippipp";var registerUiEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.uiEvent||(JSEvents.uiEvent=_malloc(36));var s={target:e=findEventTarget(e),eventTypeString:i,callbackfunc:n,handlerFunc:(t=event)=>{if(t.target==e){var i=document.body;if(i){var s=_?_malloc(36):JSEvents.uiEvent;GROWABLE_HEAP_I32()[s>>>2>>>0]=0,GROWABLE_HEAP_I32()[s+4>>>2>>>0]=i.clientWidth,GROWABLE_HEAP_I32()[s+8>>>2>>>0]=i.clientHeight,GROWABLE_HEAP_I32()[s+12>>>2>>>0]=innerWidth,GROWABLE_HEAP_I32()[s+16>>>2>>>0]=innerHeight,GROWABLE_HEAP_I32()[s+20>>>2>>>0]=outerWidth,GROWABLE_HEAP_I32()[s+24>>>2>>>0]=outerHeight,GROWABLE_HEAP_I32()[s+28>>>2>>>0]=0|pageXOffset,GROWABLE_HEAP_I32()[s+32>>>2>>>0]=0|pageYOffset,_?__emscripten_run_callback_on_thread(_,n,a,s,r):getWasmTableEntry(n)(a,s,r)&&t.preventDefault()}}},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_resize_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(177,0,1,e,r,t,n,a):registerUiEventCallback(e>>>=0,r>>>=0,t,n>>>=0,10,"resize",a>>>=0)}function _emscripten_set_scroll_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(178,0,1,e,r,t,n,a):registerUiEventCallback(e>>>=0,r>>>=0,t,n>>>=0,11,"scroll",a>>>=0)}_emscripten_set_resize_callback_on_thread.sig="ippipp",_emscripten_set_scroll_callback_on_thread.sig="ippipp";var registerFocusEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.focusEvent||(JSEvents.focusEvent=_malloc(256));var s={target:findEventTarget(e),eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{var t=JSEvents.getNodeNameForTarget(e.target),i=e.target.id?e.target.id:"",s=_?_malloc(256):JSEvents.focusEvent;stringToUTF8(t,s+0,128),stringToUTF8(i,s+128,128),_?__emscripten_run_callback_on_thread(_,n,a,s,r):getWasmTableEntry(n)(a,s,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_blur_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(179,0,1,e,r,t,n,a):registerFocusEventCallback(e>>>=0,r>>>=0,t,n>>>=0,12,"blur",a>>>=0)}function _emscripten_set_focus_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(180,0,1,e,r,t,n,a):registerFocusEventCallback(e>>>=0,r>>>=0,t,n>>>=0,13,"focus",a>>>=0)}function _emscripten_set_focusin_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(181,0,1,e,r,t,n,a):registerFocusEventCallback(e>>>=0,r>>>=0,t,n>>>=0,14,"focusin",a>>>=0)}function _emscripten_set_focusout_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(182,0,1,e,r,t,n,a):registerFocusEventCallback(e>>>=0,r>>>=0,t,n>>>=0,15,"focusout",a>>>=0)}_emscripten_set_blur_callback_on_thread.sig="ippipp",_emscripten_set_focus_callback_on_thread.sig="ippipp",_emscripten_set_focusin_callback_on_thread.sig="ippipp",_emscripten_set_focusout_callback_on_thread.sig="ippipp";var fillDeviceOrientationEventData=(e,r,t)=>{GROWABLE_HEAP_F64()[e>>>3>>>0]=r.alpha,GROWABLE_HEAP_F64()[e+8>>>3>>>0]=r.beta,GROWABLE_HEAP_F64()[e+16>>>3>>>0]=r.gamma,GROWABLE_HEAP_I32()[e+24>>>2>>>0]=r.absolute},registerDeviceOrientationEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.deviceOrientationEvent||(JSEvents.deviceOrientationEvent=_malloc(32));var s={target:findEventTarget(e),eventTypeString:i,callbackfunc:n,handlerFunc:(t=event)=>{if(fillDeviceOrientationEventData(JSEvents.deviceOrientationEvent,t,e),_){var i=_malloc(32);fillDeviceOrientationEventData(i,t,e),__emscripten_run_callback_on_thread(_,n,a,i,r)}else getWasmTableEntry(n)(a,JSEvents.deviceOrientationEvent,r)&&t.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_deviceorientation_callback_on_thread(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(183,0,1,e,r,t,n):registerDeviceOrientationEventCallback(2,e>>>=0,r,t>>>=0,16,"deviceorientation",n>>>=0)}function _emscripten_get_deviceorientation_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(184,0,1,e):(e>>>=0,JSEvents.deviceOrientationEvent?(GROWABLE_HEAP_I32().set(GROWABLE_HEAP_I32().subarray(JSEvents.deviceOrientationEvent>>>0,32),e>>>0),0):-7)}_emscripten_set_deviceorientation_callback_on_thread.sig="ipipp",_emscripten_get_deviceorientation_status.sig="ip";var fillDeviceMotionEventData=(e,r,t)=>{var n=r.acceleration,a=r.accelerationIncludingGravity,i=r.rotationRate;n=n||{},a=a||{},i=i||{},GROWABLE_HEAP_F64()[e>>>3>>>0]=n.x,GROWABLE_HEAP_F64()[e+8>>>3>>>0]=n.y,GROWABLE_HEAP_F64()[e+16>>>3>>>0]=n.z,GROWABLE_HEAP_F64()[e+24>>>3>>>0]=a.x,GROWABLE_HEAP_F64()[e+32>>>3>>>0]=a.y,GROWABLE_HEAP_F64()[e+40>>>3>>>0]=a.z,GROWABLE_HEAP_F64()[e+48>>>3>>>0]=i.alpha,GROWABLE_HEAP_F64()[e+56>>>3>>>0]=i.beta,GROWABLE_HEAP_F64()[e+64>>>3>>>0]=i.gamma},registerDeviceMotionEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.deviceMotionEvent||(JSEvents.deviceMotionEvent=_malloc(80));var s={target:findEventTarget(e),eventTypeString:i,callbackfunc:n,handlerFunc:(t=event)=>{if(fillDeviceMotionEventData(JSEvents.deviceMotionEvent,t,e),_){var i=_malloc(80);fillDeviceMotionEventData(i,t,e),__emscripten_run_callback_on_thread(_,n,a,i,r)}else getWasmTableEntry(n)(a,JSEvents.deviceMotionEvent,r)&&t.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_devicemotion_callback_on_thread(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(185,0,1,e,r,t,n):registerDeviceMotionEventCallback(2,e>>>=0,r,t>>>=0,17,"devicemotion",n>>>=0)}function _emscripten_get_devicemotion_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(186,0,1,e):(e>>>=0,JSEvents.deviceMotionEvent?(GROWABLE_HEAP_I32().set(GROWABLE_HEAP_I32().subarray(JSEvents.deviceMotionEvent>>>0,80),e>>>0),0):-7)}_emscripten_set_devicemotion_callback_on_thread.sig="ipipp",_emscripten_get_devicemotion_status.sig="ip";var screenOrientation=()=>{if(window.screen)return screen.orientation||screen.mozOrientation||screen.webkitOrientation},fillOrientationChangeEventData=e=>{var r=0,t=0,n=screenOrientation();"object"==typeof n?((r=["portrait-primary","portrait-secondary","landscape-primary","landscape-secondary"].indexOf(n.type))<0&&(r=["portrait","portrait","landscape","landscape"].indexOf(n.type)),r>=0&&(r=1<>>2>>>0]=r,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=t},registerOrientationChangeEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.orientationChangeEvent||(JSEvents.orientationChangeEvent=_malloc(8));var s={target:e,eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{var t=_?_malloc(8):JSEvents.orientationChangeEvent;fillOrientationChangeEventData(t),_?__emscripten_run_callback_on_thread(_,n,a,t,r):getWasmTableEntry(n)(a,t,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_orientationchange_callback_on_thread(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(187,0,1,e,r,t,n):(e>>>=0,t>>>=0,n>>>=0,window.screen&&screen.orientation?registerOrientationChangeEventCallback(screen.orientation,e,r,t,18,"change",n):-1)}function _emscripten_get_orientation_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(188,0,1,e):(e>>>=0,!screenOrientation()&&typeof orientation>"u"?-1:(fillOrientationChangeEventData(e),0))}function _emscripten_lock_orientation(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(189,0,1,e);var r,t=[];if(1&e&&t.push("portrait-primary"),2&e&&t.push("portrait-secondary"),4&e&&t.push("landscape-primary"),8&e&&t.push("landscape-secondary"),screen.lockOrientation)r=screen.lockOrientation(t);else if(screen.mozLockOrientation)r=screen.mozLockOrientation(t);else{if(!screen.webkitLockOrientation)return-1;r=screen.webkitLockOrientation(t)}return r?0:-6}function _emscripten_unlock_orientation(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(190,0,1);if(screen.unlockOrientation)screen.unlockOrientation();else if(screen.mozUnlockOrientation)screen.mozUnlockOrientation();else{if(!screen.webkitUnlockOrientation)return-1;screen.webkitUnlockOrientation()}return 0}_emscripten_set_orientationchange_callback_on_thread.sig="ipipp",_emscripten_get_orientation_status.sig="ip",_emscripten_lock_orientation.sig="ii",_emscripten_unlock_orientation.sig="i";var fillFullscreenChangeEventData=e=>{var r=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement,t=!!r;GROWABLE_HEAP_I32()[e>>>2>>>0]=t,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=JSEvents.fullscreenEnabled();var n=t?r:JSEvents.previousFullscreenElement,a=JSEvents.getNodeNameForTarget(n),i=(null==n?void 0:n.id)||"";stringToUTF8(a,e+8,128),stringToUTF8(i,e+136,128),GROWABLE_HEAP_I32()[e+264>>>2>>>0]=n?n.clientWidth:0,GROWABLE_HEAP_I32()[e+268>>>2>>>0]=n?n.clientHeight:0,GROWABLE_HEAP_I32()[e+272>>>2>>>0]=screen.width,GROWABLE_HEAP_I32()[e+276>>>2>>>0]=screen.height,t&&(JSEvents.previousFullscreenElement=r)},registerFullscreenChangeEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.fullscreenChangeEvent||(JSEvents.fullscreenChangeEvent=_malloc(280));var s={target:e,eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{var t=_?_malloc(280):JSEvents.fullscreenChangeEvent;fillFullscreenChangeEventData(t),_?__emscripten_run_callback_on_thread(_,n,a,t,r):getWasmTableEntry(n)(a,t,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_fullscreenchange_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(191,0,1,e,r,t,n,a):(e>>>=0,r>>>=0,n>>>=0,a>>>=0,JSEvents.fullscreenEnabled()?(e=findEventTarget(e))?(registerFullscreenChangeEventCallback(e,r,t,n,19,"webkitfullscreenchange",a),registerFullscreenChangeEventCallback(e,r,t,n,19,"fullscreenchange",a)):-4:-1)}function _emscripten_get_fullscreen_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(192,0,1,e):(e>>>=0,JSEvents.fullscreenEnabled()?(fillFullscreenChangeEventData(e),0):-1)}_emscripten_set_fullscreenchange_callback_on_thread.sig="ippipp",_emscripten_get_fullscreen_status.sig="ip";var getCanvasSizeCallingThread=(e,r,t)=>{var n=findCanvasEventTarget(e);return n?n.controlTransferredOffscreen?-4:(GROWABLE_HEAP_I32()[r>>>2>>>0]=n.width,GROWABLE_HEAP_I32()[t>>>2>>>0]=n.height,0):-4};function getCanvasSizeMainThread(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(193,0,1,e,r,t):getCanvasSizeCallingThread(e,r,t)}function _emscripten_get_canvas_element_size(e,r,t){return r>>>=0,t>>>=0,findCanvasEventTarget(e>>>=0)?getCanvasSizeCallingThread(e,r,t):getCanvasSizeMainThread(e,r,t)}_emscripten_get_canvas_element_size.sig="ippp";var getCanvasElementSize=e=>withStackSave((()=>{var r=stackAlloc(8),t=r+4;return _emscripten_get_canvas_element_size(stringToUTF8OnStack(e.id),r,t),[GROWABLE_HEAP_I32()[r>>>2>>>0],GROWABLE_HEAP_I32()[t>>>2>>>0]]})),setCanvasElementSizeCallingThread=(e,r,t)=>{var n,a=findCanvasEventTarget(e);if(!a||a.controlTransferredOffscreen)return-4;var i=!1;if(null!=(n=a.GLctxObject)&&n.GLctx){var _=a.GLctxObject.GLctx.getParameter(2978);i=0===_[0]&&0===_[1]&&_[2]===a.width&&_[3]===a.height}return a.width=r,a.height=t,i&&a.GLctxObject.GLctx.viewport(0,0,r,t),0};function setCanvasElementSizeMainThread(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(194,0,1,e,r,t):setCanvasElementSizeCallingThread(e,r,t)}function _emscripten_set_canvas_element_size(e,r,t){return findCanvasEventTarget(e>>>=0)?setCanvasElementSizeCallingThread(e,r,t):setCanvasElementSizeMainThread(e,r,t)}_emscripten_set_canvas_element_size.sig="ipii";var setCanvasElementSize=(e,r,t)=>{e.controlTransferredOffscreen?withStackSave((()=>{_emscripten_set_canvas_element_size(stringToUTF8OnStack(e.id),r,t)})):(e.width=r,e.height=t)},registerRestoreOldStyle=e=>{var r=getCanvasElementSize(e),t=r[0],n=r[1],a=e.style.width,i=e.style.height,_=e.style.backgroundColor,s=document.body.style.backgroundColor,o=e.style.paddingLeft,l=e.style.paddingRight,c=e.style.paddingTop,u=e.style.paddingBottom,d=e.style.marginLeft,p=e.style.marginRight,m=e.style.marginTop,f=e.style.marginBottom,g=document.body.style.margin,E=document.documentElement.style.overflow,h=document.body.scroll,v=e.style.imageRendering;function S(){document.fullscreenElement||document.webkitFullscreenElement||(document.removeEventListener("fullscreenchange",S),document.removeEventListener("webkitfullscreenchange",S),setCanvasElementSize(e,t,n),e.style.width=a,e.style.height=i,e.style.backgroundColor=_,s||(document.body.style.backgroundColor="white"),document.body.style.backgroundColor=s,e.style.paddingLeft=o,e.style.paddingRight=l,e.style.paddingTop=c,e.style.paddingBottom=u,e.style.marginLeft=d,e.style.marginRight=p,e.style.marginTop=m,e.style.marginBottom=f,document.body.style.margin=g,document.documentElement.style.overflow=E,document.body.scroll=h,e.style.imageRendering=v,e.GLctxObject&&e.GLctxObject.GLctx.viewport(0,0,t,n),currentFullscreenStrategy.canvasResizedCallback&&(currentFullscreenStrategy.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(currentFullscreenStrategy.canvasResizedCallbackTargetThread,currentFullscreenStrategy.canvasResizedCallback,37,0,currentFullscreenStrategy.canvasResizedCallbackUserData):getWasmTableEntry(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData)))}return document.addEventListener("fullscreenchange",S),document.addEventListener("webkitfullscreenchange",S),S},setLetterbox=(e,r,t)=>{e.style.paddingLeft=e.style.paddingRight=t+"px",e.style.paddingTop=e.style.paddingBottom=r+"px"},JSEvents_resizeCanvasForFullscreen=(e,r)=>{var t=registerRestoreOldStyle(e),n=r.softFullscreen?innerWidth:screen.width,a=r.softFullscreen?innerHeight:screen.height,i=getBoundingClientRect(e),_=i.width,s=i.height,o=getCanvasElementSize(e),l=o[0],c=o[1];if(3==r.scaleMode)setLetterbox(e,(a-s)/2,(n-_)/2),n=_,a=s;else if(2==r.scaleMode)if(n*c{if((0!=r.scaleMode||0!=r.canvasResolutionScaleMode)&&JSEvents_resizeCanvasForFullscreen(e,r),e.requestFullscreen)e.requestFullscreen();else{if(!e.webkitRequestFullscreen)return JSEvents.fullscreenEnabled()?-3:-1;e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}return currentFullscreenStrategy=r,r.canvasResizedCallback&&(r.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(r.canvasResizedCallbackTargetThread,r.canvasResizedCallback,37,0,r.canvasResizedCallbackUserData):getWasmTableEntry(r.canvasResizedCallback)(37,0,r.canvasResizedCallbackUserData)),0},hideEverythingExceptGivenElement=e=>{for(var r=e,t=r.parentNode,n=[];r!=document.body;){for(var a=t.children,i=0;i{for(var r=0;r{var e,r=devicePixelRatio,t=2==currentFullscreenStrategy.canvasResolutionScaleMode,n=2==currentFullscreenStrategy.scaleMode,a=0!=currentFullscreenStrategy.canvasResolutionScaleMode,i=3==currentFullscreenStrategy.scaleMode,_=t?Math.round(innerWidth*r):innerWidth,s=t?Math.round(innerHeight*r):innerHeight,o=_,l=s,c=currentFullscreenStrategy.target,u=getCanvasElementSize(c),d=u[0],p=u[1];if(n&&(o*pd*l&&(o=l*d/p|0),e=(s-l)/2|0),a&&(setCanvasElementSize(c,o,l),c.GLctxObject&&c.GLctxObject.GLctx.viewport(0,0,o,l)),t&&(e/=r,o/=r,l/=r,o=Math.round(1e4*o)/1e4,l=Math.round(1e4*l)/1e4,e=Math.round(1e4*e)/1e4),i){var m=(innerHeight-jstoi_q(c.style.height))/2,f=(innerWidth-jstoi_q(c.style.width))/2;setLetterbox(c,m,f)}else c.style.width=o+"px",c.style.height=l+"px",f=(innerWidth-o)/2,setLetterbox(c,e,f);!i&¤tFullscreenStrategy.canvasResizedCallback&&(currentFullscreenStrategy.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(currentFullscreenStrategy.canvasResizedCallbackTargetThread,currentFullscreenStrategy.canvasResizedCallback,37,0,currentFullscreenStrategy.canvasResizedCallbackUserData):getWasmTableEntry(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData))},doRequestFullscreen=(e,r)=>JSEvents.fullscreenEnabled()?(e=findEventTarget(e))?e.requestFullscreen||e.webkitRequestFullscreen?JSEvents.canPerformEventHandlerRequests()?JSEvents_requestFullscreen(e,r):r.deferUntilInEventHandler?(JSEvents.deferCall(JSEvents_requestFullscreen,1,[e,r]),1):-2:-3:-4:-1;function _emscripten_request_fullscreen(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(195,0,1,e,r):doRequestFullscreen(e>>>=0,{scaleMode:0,canvasResolutionScaleMode:0,filteringMode:0,deferUntilInEventHandler:r,canvasResizedCallbackTargetThread:2})}function _emscripten_request_fullscreen_strategy(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(196,0,1,e,r,t);e>>>=0,t>>>=0;var n={scaleMode:GROWABLE_HEAP_I32()[t>>>2>>>0],canvasResolutionScaleMode:GROWABLE_HEAP_I32()[t+4>>>2>>>0],filteringMode:GROWABLE_HEAP_I32()[t+8>>>2>>>0],deferUntilInEventHandler:r,canvasResizedCallbackTargetThread:GROWABLE_HEAP_I32()[t+20>>>2>>>0],canvasResizedCallback:GROWABLE_HEAP_I32()[t+12>>>2>>>0],canvasResizedCallbackUserData:GROWABLE_HEAP_I32()[t+16>>>2>>>0]};return doRequestFullscreen(e,n)}function _emscripten_enter_soft_fullscreen(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(197,0,1,e,r);if(r>>>=0,!(e=findEventTarget(e>>>=0)))return-4;var t={scaleMode:GROWABLE_HEAP_I32()[r>>>2>>>0],canvasResolutionScaleMode:GROWABLE_HEAP_I32()[r+4>>>2>>>0],filteringMode:GROWABLE_HEAP_I32()[r+8>>>2>>>0],canvasResizedCallback:GROWABLE_HEAP_I32()[r+12>>>2>>>0],canvasResizedCallbackUserData:GROWABLE_HEAP_I32()[r+16>>>2>>>0],canvasResizedCallbackTargetThread:JSEvents.getTargetThreadForEventCallback(),target:e,softFullscreen:!0},n=JSEvents_resizeCanvasForFullscreen(e,t);document.documentElement.style.overflow="hidden",document.body.scroll="no",document.body.style.margin="0px";var a=hideEverythingExceptGivenElement(e);return restoreOldWindowedStyle=function(){n(),restoreHiddenElements(a),removeEventListener("resize",softFullscreenResizeWebGLRenderTarget),t.canvasResizedCallback&&(t.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(t.canvasResizedCallbackTargetThread,t.canvasResizedCallback,37,0,t.canvasResizedCallbackUserData):getWasmTableEntry(t.canvasResizedCallback)(37,0,t.canvasResizedCallbackUserData)),currentFullscreenStrategy=0},currentFullscreenStrategy=t,addEventListener("resize",softFullscreenResizeWebGLRenderTarget),t.canvasResizedCallback&&(t.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(t.canvasResizedCallbackTargetThread,t.canvasResizedCallback,37,0,t.canvasResizedCallbackUserData):getWasmTableEntry(t.canvasResizedCallback)(37,0,t.canvasResizedCallbackUserData)),0}function _emscripten_exit_soft_fullscreen(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(198,0,1):(null==restoreOldWindowedStyle||restoreOldWindowedStyle(),restoreOldWindowedStyle=null,0)}function _emscripten_exit_fullscreen(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(199,0,1);if(!JSEvents.fullscreenEnabled())return-1;JSEvents.removeDeferredCalls(JSEvents_requestFullscreen);var e=specialHTMLTargets[1];if(e.exitFullscreen)e.fullscreenElement&&e.exitFullscreen();else{if(!e.webkitExitFullscreen)return-1;e.webkitFullscreenElement&&e.webkitExitFullscreen()}return 0}_emscripten_request_fullscreen.sig="ipi",_emscripten_request_fullscreen_strategy.sig="ipip",_emscripten_enter_soft_fullscreen.sig="ipp",_emscripten_exit_soft_fullscreen.sig="i",_emscripten_exit_fullscreen.sig="i";var fillPointerlockChangeEventData=e=>{var r=document.pointerLockElement||document.mozPointerLockElement||document.webkitPointerLockElement||document.msPointerLockElement,t=!!r;GROWABLE_HEAP_I32()[e>>>2>>>0]=t;var n=JSEvents.getNodeNameForTarget(r),a=(null==r?void 0:r.id)||"";stringToUTF8(n,e+4,128),stringToUTF8(a,e+132,128)},registerPointerlockChangeEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.pointerlockChangeEvent||(JSEvents.pointerlockChangeEvent=_malloc(260));var s={target:e,eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{var t=_?_malloc(260):JSEvents.pointerlockChangeEvent;fillPointerlockChangeEventData(t),_?__emscripten_run_callback_on_thread(_,n,a,t,r):getWasmTableEntry(n)(a,t,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_pointerlockchange_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(200,0,1,e,r,t,n,a):(e>>>=0,r>>>=0,n>>>=0,a>>>=0,document&&document.body&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?(e=findEventTarget(e))?(registerPointerlockChangeEventCallback(e,r,t,n,20,"mozpointerlockchange",a),registerPointerlockChangeEventCallback(e,r,t,n,20,"webkitpointerlockchange",a),registerPointerlockChangeEventCallback(e,r,t,n,20,"mspointerlockchange",a),registerPointerlockChangeEventCallback(e,r,t,n,20,"pointerlockchange",a)):-4:-1)}_emscripten_set_pointerlockchange_callback_on_thread.sig="ippipp";var registerPointerlockErrorEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_);var s={target:e,eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{_?__emscripten_run_callback_on_thread(_,n,a,0,r):getWasmTableEntry(n)(a,0,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_pointerlockerror_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(201,0,1,e,r,t,n,a):(e>>>=0,r>>>=0,n>>>=0,a>>>=0,document&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?(e=findEventTarget(e))?(registerPointerlockErrorEventCallback(e,r,t,n,38,"mozpointerlockerror",a),registerPointerlockErrorEventCallback(e,r,t,n,38,"webkitpointerlockerror",a),registerPointerlockErrorEventCallback(e,r,t,n,38,"mspointerlockerror",a),registerPointerlockErrorEventCallback(e,r,t,n,38,"pointerlockerror",a)):-4:-1)}function _emscripten_get_pointerlock_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(202,0,1,e):((e>>>=0)&&fillPointerlockChangeEventData(e),document.body&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?0:-1)}_emscripten_set_pointerlockerror_callback_on_thread.sig="ippipp",_emscripten_get_pointerlock_status.sig="ip";var requestPointerLock=e=>e.requestPointerLock?(e.requestPointerLock(),0):document.body.requestPointerLock?-3:-1;function _emscripten_request_pointerlock(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(203,0,1,e,r):(e=findEventTarget(e>>>=0))?e.requestPointerLock?JSEvents.canPerformEventHandlerRequests()?requestPointerLock(e):r?(JSEvents.deferCall(requestPointerLock,2,[e]),1):-2:-1:-4}function _emscripten_exit_pointerlock(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(204,0,1):(JSEvents.removeDeferredCalls(requestPointerLock),document.exitPointerLock?(document.exitPointerLock(),0):-1)}function _emscripten_vibrate(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(205,0,1,e):navigator.vibrate?(navigator.vibrate(e),0):-1}function _emscripten_vibrate_pattern(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(206,0,1,e,r);if(e>>>=0,!navigator.vibrate)return-1;for(var t=[],n=0;n>>2>>>0];t.push(a)}return navigator.vibrate(t),0}_emscripten_request_pointerlock.sig="ipi",_emscripten_exit_pointerlock.sig="i",_emscripten_vibrate.sig="ii",_emscripten_vibrate_pattern.sig="ipi";var fillVisibilityChangeEventData=e=>{var r=["hidden","visible","prerender","unloaded"].indexOf(document.visibilityState);GROWABLE_HEAP_I32()[e>>>2>>>0]=document.hidden,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=r},registerVisibilityChangeEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.visibilityChangeEvent||(JSEvents.visibilityChangeEvent=_malloc(8));var s={target:e,eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{var t=_?_malloc(8):JSEvents.visibilityChangeEvent;fillVisibilityChangeEventData(t),_?__emscripten_run_callback_on_thread(_,n,a,t,r):getWasmTableEntry(n)(a,t,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_visibilitychange_callback_on_thread(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(207,0,1,e,r,t,n):(e>>>=0,t>>>=0,n>>>=0,specialHTMLTargets[1]?registerVisibilityChangeEventCallback(specialHTMLTargets[1],e,r,t,21,"visibilitychange",n):-4)}function _emscripten_get_visibility_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(208,0,1,e):(e>>>=0,typeof document.visibilityState>"u"&&typeof document.hidden>"u"?-1:(fillVisibilityChangeEventData(e),0))}_emscripten_set_visibilitychange_callback_on_thread.sig="ipipp",_emscripten_get_visibility_status.sig="ip";var registerTouchEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.touchEvent||(JSEvents.touchEvent=_malloc(1696));var s={target:e=findEventTarget(e),allowsDeferredCalls:"touchstart"==i||"touchend"==i,eventTypeString:i,callbackfunc:n,handlerFunc:t=>{for(var i,s={},o=t.touches,l=0;l>>3>>>0]=t.timeStamp;var u=c>>>2;GROWABLE_HEAP_I32()[u+3>>>0]=t.ctrlKey,GROWABLE_HEAP_I32()[u+4>>>0]=t.shiftKey,GROWABLE_HEAP_I32()[u+5>>>0]=t.altKey,GROWABLE_HEAP_I32()[u+6>>>0]=t.metaKey,u+=7;var d=getBoundingClientRect(e),p=0;for(var l in s)if(i=s[l],GROWABLE_HEAP_I32()[u+0>>>0]=i.identifier,GROWABLE_HEAP_I32()[u+1>>>0]=i.screenX,GROWABLE_HEAP_I32()[u+2>>>0]=i.screenY,GROWABLE_HEAP_I32()[u+3>>>0]=i.clientX,GROWABLE_HEAP_I32()[u+4>>>0]=i.clientY,GROWABLE_HEAP_I32()[u+5>>>0]=i.pageX,GROWABLE_HEAP_I32()[u+6>>>0]=i.pageY,GROWABLE_HEAP_I32()[u+7>>>0]=i.isChanged,GROWABLE_HEAP_I32()[u+8>>>0]=i.onTarget,GROWABLE_HEAP_I32()[u+9>>>0]=i.clientX-(0|d.left),GROWABLE_HEAP_I32()[u+10>>>0]=i.clientY-(0|d.top),u+=13,++p>31)break;GROWABLE_HEAP_I32()[c+8>>>2>>>0]=p,_?__emscripten_run_callback_on_thread(_,n,a,c,r):getWasmTableEntry(n)(a,c,r)&&t.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_touchstart_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(209,0,1,e,r,t,n,a):registerTouchEventCallback(e>>>=0,r>>>=0,t,n>>>=0,22,"touchstart",a>>>=0)}function _emscripten_set_touchend_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(210,0,1,e,r,t,n,a):registerTouchEventCallback(e>>>=0,r>>>=0,t,n>>>=0,23,"touchend",a>>>=0)}function _emscripten_set_touchmove_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(211,0,1,e,r,t,n,a):registerTouchEventCallback(e>>>=0,r>>>=0,t,n>>>=0,24,"touchmove",a>>>=0)}function _emscripten_set_touchcancel_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(212,0,1,e,r,t,n,a):registerTouchEventCallback(e>>>=0,r>>>=0,t,n>>>=0,25,"touchcancel",a>>>=0)}_emscripten_set_touchstart_callback_on_thread.sig="ippipp",_emscripten_set_touchend_callback_on_thread.sig="ippipp",_emscripten_set_touchmove_callback_on_thread.sig="ippipp",_emscripten_set_touchcancel_callback_on_thread.sig="ippipp";var fillGamepadEventData=(e,r)=>{GROWABLE_HEAP_F64()[e>>>3>>>0]=r.timestamp;for(var t=0;t>>3>>>0]=r.axes[t];for(t=0;t>>3>>>0]=r.buttons[t].value:GROWABLE_HEAP_F64()[e+8*t+528>>>3>>>0]=r.buttons[t];for(t=0;t>>2>>>0]=r.buttons[t].pressed:GROWABLE_HEAP_I32()[e+4*t+1040>>>2>>>0]=1==r.buttons[t];GROWABLE_HEAP_I32()[e+1296>>>2>>>0]=r.connected,GROWABLE_HEAP_I32()[e+1300>>>2>>>0]=r.index,GROWABLE_HEAP_I32()[e+8>>>2>>>0]=r.axes.length,GROWABLE_HEAP_I32()[e+12>>>2>>>0]=r.buttons.length,stringToUTF8(r.id,e+1304,64),stringToUTF8(r.mapping,e+1368,64)},registerGamepadEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.gamepadEvent||(JSEvents.gamepadEvent=_malloc(1432));var s={target:findEventTarget(e),allowsDeferredCalls:!0,eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{var t=_?_malloc(1432):JSEvents.gamepadEvent;fillGamepadEventData(t,e.gamepad),_?__emscripten_run_callback_on_thread(_,n,a,t,r):getWasmTableEntry(n)(a,t,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_sample_gamepad_data(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(214,0,1);try{if(navigator.getGamepads)return(JSEvents.lastGamepadState=navigator.getGamepads())?0:-1}catch(e){navigator.getGamepads=null}return-1}function _emscripten_set_gamepadconnected_callback_on_thread(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(213,0,1,e,r,t,n):(e>>>=0,t>>>=0,n>>>=0,_emscripten_sample_gamepad_data()?-1:registerGamepadEventCallback(2,e,r,t,26,"gamepadconnected",n))}function _emscripten_set_gamepaddisconnected_callback_on_thread(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(215,0,1,e,r,t,n):(e>>>=0,t>>>=0,n>>>=0,_emscripten_sample_gamepad_data()?-1:registerGamepadEventCallback(2,e,r,t,27,"gamepaddisconnected",n))}function _emscripten_get_num_gamepads(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(216,0,1):JSEvents.lastGamepadState.length}function _emscripten_get_gamepad_status(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(217,0,1,e,r):(r>>>=0,e<0||e>=JSEvents.lastGamepadState.length?-5:JSEvents.lastGamepadState[e]?(fillGamepadEventData(r,JSEvents.lastGamepadState[e]),0):-7)}_emscripten_sample_gamepad_data.sig="i",_emscripten_set_gamepadconnected_callback_on_thread.sig="ipipp",_emscripten_set_gamepaddisconnected_callback_on_thread.sig="ipipp",_emscripten_get_num_gamepads.sig="i",_emscripten_get_gamepad_status.sig="iip";var registerBeforeUnloadEventCallback=(e,r,t,n,a,i)=>{var _={target:findEventTarget(e),eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{var t=getWasmTableEntry(n)(a,0,r);if(t&&(t=UTF8ToString(t)),t)return e.preventDefault(),e.returnValue=t,t},useCapture:t};return JSEvents.registerOrRemoveHandler(_)};function _emscripten_set_beforeunload_callback_on_thread(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(218,0,1,e,r,t):(e>>>=0,r>>>=0,t>>>=0,typeof onbeforeunload>"u"?-1:1!==t?-5:registerBeforeUnloadEventCallback(2,e,!0,r,28,"beforeunload"))}_emscripten_set_beforeunload_callback_on_thread.sig="ippp";var fillBatteryEventData=(e,r)=>{GROWABLE_HEAP_F64()[e>>>3>>>0]=r.chargingTime,GROWABLE_HEAP_F64()[e+8>>>3>>>0]=r.dischargingTime,GROWABLE_HEAP_F64()[e+16>>>3>>>0]=r.level,GROWABLE_HEAP_I32()[e+24>>>2>>>0]=r.charging},battery=()=>navigator.battery||navigator.mozBattery||navigator.webkitBattery,registerBatteryEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_),JSEvents.batteryEvent||(JSEvents.batteryEvent=_malloc(32));var s={target:findEventTarget(e),eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{var t=_?_malloc(32):JSEvents.batteryEvent;fillBatteryEventData(t,battery()),_?__emscripten_run_callback_on_thread(_,n,a,t,r):getWasmTableEntry(n)(a,t,r)&&e.preventDefault()},useCapture:t};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_batterychargingchange_callback_on_thread(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(219,0,1,e,r,t):(e>>>=0,r>>>=0,t>>>=0,battery()?registerBatteryEventCallback(battery(),e,!0,r,29,"chargingchange",t):-1)}function _emscripten_set_batterylevelchange_callback_on_thread(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(220,0,1,e,r,t):(e>>>=0,r>>>=0,t>>>=0,battery()?registerBatteryEventCallback(battery(),e,!0,r,30,"levelchange",t):-1)}function _emscripten_get_battery_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(221,0,1,e):(e>>>=0,battery()?(fillBatteryEventData(e,battery()),0):-1)}function _emscripten_set_element_css_size(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(222,0,1,e,r,t):(e=findEventTarget(e>>>=0))?(e.style.width=r+"px",e.style.height=t+"px",0):-4}function _emscripten_get_element_css_size(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(223,0,1,e,r,t);if(r>>>=0,t>>>=0,!(e=findEventTarget(e>>>=0)))return-4;var n=getBoundingClientRect(e);return GROWABLE_HEAP_F64()[r>>>3>>>0]=n.width,GROWABLE_HEAP_F64()[t>>>3>>>0]=n.height,0}_emscripten_set_batterychargingchange_callback_on_thread.sig="ippp",_emscripten_set_batterylevelchange_callback_on_thread.sig="ippp",_emscripten_get_battery_status.sig="ip",_emscripten_set_element_css_size.sig="ipdd",_emscripten_get_element_css_size.sig="ippp";var _emscripten_html5_remove_all_event_listeners=()=>JSEvents.removeAllEventListeners();_emscripten_html5_remove_all_event_listeners.sig="v";var _emscripten_request_animation_frame=function(e,r){return e>>>=0,r>>>=0,requestAnimationFrame((t=>getWasmTableEntry(e)(t,r)))};_emscripten_request_animation_frame.sig="ipp";var _emscripten_cancel_animation_frame=e=>cancelAnimationFrame(e);function _emscripten_request_animation_frame_loop(e,r){return e>>>=0,r>>>=0,requestAnimationFrame((function t(n){getWasmTableEntry(e)(n,r)&&requestAnimationFrame(t)}))}_emscripten_cancel_animation_frame.sig="vi",_emscripten_request_animation_frame_loop.sig="vpp";var _emscripten_performance_now=()=>performance.now();function _emscripten_get_device_pixel_ratio(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(224,0,1):"number"==typeof devicePixelRatio&&devicePixelRatio||1}function _emscripten_get_callstack(e,r,t){r>>>=0;var n=getCallstack(e);return!r||t<=0?lengthBytesUTF8(n)+1:stringToUTF8(n,r,t)+1}_emscripten_performance_now.sig="d",_emscripten_get_device_pixel_ratio.sig="d",_emscripten_get_callstack.sig="iipi";var convertFrameToPC=e=>(abort("Cannot use convertFrameToPC (needed by __builtin_return_address) without -sUSE_OFFSET_CONVERTER"),0);function _emscripten_return_address(e){var r=jsStackTrace().split("\n");"Error"==r[0]&&r.shift();var t=r[e+3];return convertFrameToPC(t)}_emscripten_return_address.sig="pi";var UNWIND_CACHE={},saveInUnwindCache=e=>{e.forEach((e=>{var r=convertFrameToPC(e);r&&(UNWIND_CACHE[r]=e)}))};function _emscripten_stack_snapshot(){var e=jsStackTrace().split("\n");return"Error"==e[0]&&e.shift(),saveInUnwindCache(e),UNWIND_CACHE.last_addr=convertFrameToPC(e[3]),UNWIND_CACHE.last_stack=e,UNWIND_CACHE.last_addr}function _emscripten_stack_unwind_buffer(e,r,t){var n;e>>>=0,r>>>=0,UNWIND_CACHE.last_addr==e?n=UNWIND_CACHE.last_stack:("Error"==(n=jsStackTrace().split("\n"))[0]&&n.shift(),saveInUnwindCache(n));for(var a=3;n[a]&&convertFrameToPC(n[a])!=e;)++a;for(var i=0;i>>2>>>0]=convertFrameToPC(n[i+a]);return i}function _emscripten_pc_get_function(e){return abort("Cannot use emscripten_pc_get_function without -sUSE_OFFSET_CONVERTER"),0}_emscripten_stack_snapshot.sig="p",_emscripten_stack_unwind_buffer.sig="ippi",_emscripten_pc_get_function.sig="pp";var convertPCtoSourceLocation=e=>{if(UNWIND_CACHE.last_get_source_pc==e)return UNWIND_CACHE.last_source;var r,t;if(!t){var n=UNWIND_CACHE[e];if(!n)return null;((r=/\((.*):(\d+):(\d+)\)$/.exec(n))||(r=/@(.*):(\d+):(\d+)/.exec(n)))&&(t={file:r[1],line:r[2],column:r[3]})}return UNWIND_CACHE.last_get_source_pc=e,UNWIND_CACHE.last_source=t,t};function _emscripten_pc_get_file(e){var r=convertPCtoSourceLocation(e>>>=0);return r?(_emscripten_pc_get_file.ret&&_free(_emscripten_pc_get_file.ret),_emscripten_pc_get_file.ret=stringToNewUTF8(r.file),_emscripten_pc_get_file.ret):0}function _emscripten_pc_get_line(e){var r=convertPCtoSourceLocation(e>>>=0);return r?r.line:0}function _emscripten_pc_get_column(e){var r=convertPCtoSourceLocation(e>>>=0);return r&&r.column||0}function _random_get(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(225,0,1,e,r);e>>>=0,r>>>=0;try{return _getentropy(e,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_emscripten_pc_get_file.sig="pp",_emscripten_pc_get_line.sig="ip",_emscripten_pc_get_column.sig="ip",_random_get.sig="ipp";var checkWasiClock=e=>0==e||1==e||2==e||3==e;function _clock_time_get(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(226,0,1,e,r,t,n);var a;if(convertI32PairToI53Checked(r,t),n>>>=0,!checkWasiClock(e))return 28;if(0===e)a=Date.now();else{if(!nowIsMonotonic)return 52;a=_emscripten_get_now()}var i=Math.round(1e3*a*1e3);return GROWABLE_HEAP_I32()[n>>>2>>>0]=i>>>0,GROWABLE_HEAP_I32()[n+4>>>2>>>0]=i/Math.pow(2,32)>>>0,0}function _clock_res_get(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(227,0,1,e,r);if(r>>>=0,!checkWasiClock(e))return 28;var t;if(0===e)t=1e6;else{if(!nowIsMonotonic)return 52;t=_emscripten_get_now_res()}return GROWABLE_HEAP_I32()[r>>>2>>>0]=t>>>0,GROWABLE_HEAP_I32()[r+4>>>2>>>0]=t/Math.pow(2,32)>>>0,0}_clock_time_get.sig="iiiip",_clock_res_get.sig="iip";var wasiRightsToMuslOFlags=e=>{if(2&e&&64&e)return 2;if(2&e)return 0;if(64&e)return 1;throw new FS.ErrnoError(28)},wasiOFlagsToMuslOFlags=e=>{var r=0;return 1&e&&(r|=64),8&e&&(r|=512),2&e&&(r|=65536),4&e&&(r|=128),r},setImmediateWrapped=e=>{setImmediateWrapped.mapping||(setImmediateWrapped.mapping=[]);var r=setImmediateWrapped.mapping.length;return setImmediateWrapped.mapping[r]=setImmediate((()=>{setImmediateWrapped.mapping[r]=void 0,e()})),r},clearImmediateWrapped=e=>{clearImmediate(setImmediateWrapped.mapping[e]),setImmediateWrapped.mapping[e]=void 0},polyfillSetImmediate=()=>{},_emscripten_set_immediate=function(e,r){return e>>>=0,r>>>=0,runtimeKeepalivePush(),emSetImmediate((()=>{runtimeKeepalivePop(),callUserCallback((()=>getWasmTableEntry(e)(r)))}))};_emscripten_set_immediate.sig="ipp";var _emscripten_clear_immediate=e=>{runtimeKeepalivePop(),emClearImmediate(e)};_emscripten_clear_immediate.sig="vi";var _emscripten_set_immediate_loop=function(e,r){e>>>=0,r>>>=0,runtimeKeepalivePush(),emSetImmediate((function t(){callUserCallback((()=>{getWasmTableEntry(e)(r)?emSetImmediate(t):runtimeKeepalivePop()}))}))};_emscripten_set_immediate_loop.sig="vpp";var _emscripten_clear_timeout=clearTimeout;_emscripten_clear_timeout.sig="vi";var _emscripten_set_timeout_loop=function(e,r,t){return e>>>=0,t>>>=0,runtimeKeepalivePush(),setTimeout((function n(){var a=_emscripten_get_now(),i=a+r;runtimeKeepalivePop(),callUserCallback((()=>{getWasmTableEntry(e)(a,t)&&(runtimeKeepalivePush(),setTimeout(n,i-_emscripten_get_now()))}))}),0)};_emscripten_set_timeout_loop.sig="vpdp";var _emscripten_set_interval=function(e,r,t){return e>>>=0,t>>>=0,runtimeKeepalivePush(),setInterval((()=>{callUserCallback((()=>getWasmTableEntry(e)(t)))}),r)};_emscripten_set_interval.sig="ipdp";var _emscripten_clear_interval=e=>{runtimeKeepalivePop(),clearInterval(e)};_emscripten_clear_interval.sig="vi";var idsToPromises=(e,r)=>{for(var t=[],n=0;n>>2>>>0];t[n]=getPromise(a)}return t},makePromiseCallback=(e,r)=>t=>{runtimeKeepalivePop();var n=stackSave(),a=stackAlloc(POINTER_SIZE);GROWABLE_HEAP_U32()[a>>>2>>>0]=0;try{var i=getWasmTableEntry(e)(a,r,t),_=GROWABLE_HEAP_U32()[a>>>2>>>0]}catch(e){throw"number"!=typeof e?0:e}finally{stackRestore(n)}switch(i){case 0:return _;case 1:return getPromise(_);case 2:var s=getPromise(_);return _emscripten_promise_destroy(_),s;case 3:throw _}};function _emscripten_promise_then(e,r,t,n){e>>>=0,r>>>=0,t>>>=0,n>>>=0,runtimeKeepalivePush();var a=getPromise(e);return promiseMap.allocate({promise:a.then(makePromiseCallback(r,n),makePromiseCallback(t,n))})}_emscripten_promise_then.sig="ppppp";var _emscripten_promise_all=function(e,r,t){r>>>=0;var n=idsToPromises(e>>>=0,t>>>=0);return promiseMap.allocate({promise:Promise.all(n).then((e=>{if(r)for(var n=0;n>>2>>>0]=a}return r}))})};_emscripten_promise_all.sig="pppp";var setPromiseResult=(e,r,t)=>{var n=r?0:3;GROWABLE_HEAP_I32()[e>>>2>>>0]=n,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=t},_emscripten_promise_all_settled=function(e,r,t){r>>>=0;var n=idsToPromises(e>>>=0,t>>>=0);return promiseMap.allocate({promise:Promise.allSettled(n).then((e=>{if(r)for(var n=r,a=0;a>>=0;var n=idsToPromises(e>>>=0,t>>>=0);return promiseMap.allocate({promise:Promise.any(n).catch((e=>{if(r)for(var n=0;n>>2>>>0]=e.errors[n];throw r}))})};function _emscripten_promise_race(e,r){var t=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.race(t)})}function _emscripten_promise_await(e,r){abort("emscripten_promise_await is only available with ASYNCIFY")}_emscripten_promise_any.sig="pppp",_emscripten_promise_race.sig="ppp",_emscripten_promise_await.sig="vpp";var getExceptionMessageCommon=e=>withStackSave((()=>{var r=stackAlloc(4),t=stackAlloc(4);___get_exception_message(e,r,t);var n,a=GROWABLE_HEAP_U32()[r>>>2>>>0],i=GROWABLE_HEAP_U32()[t>>>2>>>0],_=UTF8ToString(a);return _free(a),i&&(n=UTF8ToString(i),_free(i)),[_,n]})),getCppExceptionTag=()=>___cpp_exception,getCppExceptionThrownObjectFromWebAssemblyException=e=>{var r=e.getArg(getCppExceptionTag(),0);return ___thrown_object_from_unwind_exception(r)},incrementExceptionRefcount=e=>{var r=getCppExceptionThrownObjectFromWebAssemblyException(e);___cxa_increment_exception_refcount(r)},decrementExceptionRefcount=e=>{var r=getCppExceptionThrownObjectFromWebAssemblyException(e);___cxa_decrement_exception_refcount(r)},getExceptionMessage=e=>{var r=getCppExceptionThrownObjectFromWebAssemblyException(e);return getExceptionMessageCommon(r)},_emscripten_run_preload_plugins=function(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(228,0,1,e,r,t);e>>>=0,r>>>=0,t>>>=0,runtimeKeepalivePush();var n=UTF8ToString(e),a=FS.analyzePath(n);return a.exists?(FS.createPreloadedFile(PATH.dirname(n),PATH.basename(n),new Uint8Array(a.object.contents),!0,!0,(()=>{runtimeKeepalivePop(),r&&getWasmTableEntry(r)(e)}),(()=>{runtimeKeepalivePop(),t&&getWasmTableEntry(t)(e)}),!0),0):-1};_emscripten_run_preload_plugins.sig="ippp";var Browser_asyncPrepareDataCounter=0,_emscripten_run_preload_plugins_data=function(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(229,0,1,e,r,t,n,a,i);e>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,runtimeKeepalivePush();var _=UTF8ToString(t),s="prepare_data_"+Browser_asyncPrepareDataCounter+++"."+_,o=stringToNewUTF8(s);FS.createPreloadedFile("/",s,GROWABLE_HEAP_U8().subarray(e>>>0,e+r>>>0),!0,!0,(()=>{runtimeKeepalivePop(),a&&getWasmTableEntry(a)(n,o)}),(()=>{runtimeKeepalivePop(),i&&getWasmTableEntry(i)(n)}),!0)};_emscripten_run_preload_plugins_data.sig="vpipppp";var _emscripten_async_run_script=function(e,r){e>>>=0,safeSetTimeout((()=>_emscripten_run_script(e)),r)};function _emscripten_async_load_script(url,onload,onerror){if(url>>>=0,onload>>>=0,onerror>>>=0,url=UTF8ToString(url),onload=getWasmTableEntry(onload),onerror=getWasmTableEntry(onerror),ENVIRONMENT_IS_PTHREAD)return err('emscripten_async_load_script("'.concat(url,'") failed, emscripten_async_load_script is currently not available in pthreads!')),onerror?onerror():void 0;runtimeKeepalivePush();var loadDone=()=>{runtimeKeepalivePop(),onload&&(runDependencies>0?dependenciesFulfilled=onload:onload())},loadError=()=>{runtimeKeepalivePop(),null==onerror||onerror()};if(ENVIRONMENT_IS_NODE)readAsync(url,(data=>{eval(data),loadDone()}),loadError,!1);else{var script=document.createElement("script");script.onload=loadDone,script.onerror=loadError,script.src=url,document.body.appendChild(script)}}function _emscripten_get_main_loop_timing(e,r){r>>>=0,(e>>>=0)&&(GROWABLE_HEAP_I32()[e>>>2>>>0]=Browser.mainLoop.timingMode),r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=Browser.mainLoop.timingValue)}function _emscripten_set_main_loop(e,r,t){var n=getWasmTableEntry(e>>>=0);setMainLoop(n,r,t)}_emscripten_async_run_script.sig="vpi",_emscripten_async_load_script.sig="vppp",_emscripten_get_main_loop_timing.sig="vpp",_emscripten_set_main_loop.sig="vpii";var _emscripten_set_main_loop_arg=function(e,r,t,n){e>>>=0,setMainLoop((()=>getWasmTableEntry(e)(r)),t,n,r>>>=0)};_emscripten_set_main_loop_arg.sig="vppii";var _emscripten_cancel_main_loop=()=>{Browser.mainLoop.pause(),Browser.mainLoop.func=null};_emscripten_cancel_main_loop.sig="v";var _emscripten_pause_main_loop=()=>{Browser.mainLoop.pause()};_emscripten_pause_main_loop.sig="v";var _emscripten_resume_main_loop=()=>{Browser.mainLoop.resume()};_emscripten_resume_main_loop.sig="v";var __emscripten_push_main_loop_blocker=function(e,r,t){e>>>=0,r>>>=0,t>>>=0,Browser.mainLoop.queue.push({func:()=>{getWasmTableEntry(e)(r)},name:UTF8ToString(t),counted:!0}),Browser.mainLoop.updateStatus()};__emscripten_push_main_loop_blocker.sig="vppp";var __emscripten_push_uncounted_main_loop_blocker=function(e,r,t){e>>>=0,r>>>=0,t>>>=0,Browser.mainLoop.queue.push({func:()=>{getWasmTableEntry(e)(r)},name:UTF8ToString(t),counted:!1}),Browser.mainLoop.updateStatus()};__emscripten_push_uncounted_main_loop_blocker.sig="vppp";var _emscripten_set_main_loop_expected_blockers=e=>{Browser.mainLoop.expectedBlockers=e,Browser.mainLoop.remainingBlockers=e,Browser.mainLoop.updateStatus()};function _emscripten_async_call(e,r,t){function n(){getWasmTableEntry(e)(r)}e>>>=0,r>>>=0,t>=0||ENVIRONMENT_IS_NODE?safeSetTimeout(n,t):Browser.safeRequestAnimationFrame(n)}function _emscripten_get_window_title(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(230,0,1):(_emscripten_get_window_title.buffer||(_emscripten_get_window_title.buffer=_malloc(256)),stringToUTF8(document.title,_emscripten_get_window_title.buffer,256),_emscripten_get_window_title.buffer)}function _emscripten_set_window_title(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(231,0,1,e):(e>>>=0,document.title=UTF8ToString(e))}function _emscripten_get_screen_size(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(232,0,1,e,r);e>>>=0,r>>>=0,GROWABLE_HEAP_I32()[e>>>2>>>0]=screen.width,GROWABLE_HEAP_I32()[r>>>2>>>0]=screen.height}function _emscripten_hide_mouse(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(233,0,1);for(var e=document.styleSheets[0],r=e.cssRules,t=0;t>>=0,r>>>=0,t>>>=0;var n=Module.canvas;GROWABLE_HEAP_I32()[e>>>2>>>0]=n.width,GROWABLE_HEAP_I32()[r>>>2>>>0]=n.height,GROWABLE_HEAP_I32()[t>>>2>>>0]=Browser.isFullscreen?1:0}function _emscripten_create_worker(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(236,0,1,e);e=UTF8ToString(e>>>=0);var r=Browser.workers.length,t={worker:new Worker(e),callbacks:[],awaited:0,buffer:0,bufferSize:0};return t.worker.onmessage=function(e){if(!ABORT){var t=Browser.workers[r];if(t){var n=e.data.callbackId,a=t.callbacks[n];if(a){e.data.finalResponse&&(t.awaited--,t.callbacks[n]=null,runtimeKeepalivePop());var i=e.data.data;i?(i.byteLength||(i=new Uint8Array(i)),(!t.buffer||t.bufferSize>>0),a.func(t.buffer,i.length,a.arg)):a.func(0,0,a.arg)}}}},Browser.workers.push(t),r}function _emscripten_destroy_worker(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(237,0,1,e);var r=Browser.workers[e];r.worker.terminate(),r.buffer&&_free(r.buffer),Browser.workers[e]=null}function _emscripten_call_worker(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(238,0,1,e,r,t,n,a,i);t>>>=0,a>>>=0,i>>>=0,r=UTF8ToString(r>>>=0);var _=Browser.workers[e],s=-1;a&&(runtimeKeepalivePush(),s=_.callbacks.length,_.callbacks.push({func:getWasmTableEntry(a),arg:i}),_.awaited++);var o={funcName:r,callbackId:s,data:t?new Uint8Array(GROWABLE_HEAP_U8().subarray(t>>>0,t+n>>>0)):0};t?_.worker.postMessage(o,[o.data.buffer]):_.worker.postMessage(o)}function _emscripten_get_worker_queue_size(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(239,0,1,e);var r=Browser.workers[e];return r?r.awaited:-1}_emscripten_set_main_loop_expected_blockers.sig="vi",_emscripten_async_call.sig="vppi",_emscripten_get_window_title.sig="p",_emscripten_set_window_title.sig="vp",_emscripten_get_screen_size.sig="vpp",_emscripten_hide_mouse.sig="v",_emscripten_set_canvas_size.sig="vii",_emscripten_get_canvas_size.sig="vppp",_emscripten_create_worker.sig="ip",_emscripten_destroy_worker.sig="vi",_emscripten_call_worker.sig="vippipp",_emscripten_get_worker_queue_size.sig="ii";var getPreloadedImageData=(e,r,t)=>{e=PATH_FS.resolve(e);var n=preloadedImages[e];if(!n)return 0;var a=n.getContext("2d").getImageData(0,0,n.width,n.height),i=_malloc(n.width*n.height*4);return GROWABLE_HEAP_U8().set(a.data,i>>>0),GROWABLE_HEAP_I32()[r>>>2>>>0]=n.width,GROWABLE_HEAP_I32()[t>>>2>>>0]=n.height,i};function _emscripten_get_preloaded_image_data(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(240,0,1,e,r,t):(r>>>=0,t>>>=0,getPreloadedImageData(UTF8ToString(e>>>=0),r,t))}_emscripten_get_preloaded_image_data.sig="pppp";var getPreloadedImageData__data=["$PATH_FS","malloc"];function _emscripten_get_preloaded_image_data_from_FILE(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(241,0,1,e,r,t);e>>>=0,r>>>=0,t>>>=0;var n=_fileno(e),a=FS.getStream(n);return a?getPreloadedImageData(a.path,r,t):0}_emscripten_get_preloaded_image_data_from_FILE.sig="pppp";var wget={wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle(){var e=wget.nextWgetRequestHandle;return wget.nextWgetRequestHandle++,e}},FS_mkdirTree=(e,r)=>FS.mkdirTree(e,r),FS_unlink=e=>FS.unlink(e),_emscripten_async_wget=function(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(242,0,1,e,r,t,n);e>>>=0,r>>>=0,t>>>=0,n>>>=0,runtimeKeepalivePush();var a=UTF8ToString(e),i=UTF8ToString(r);function _(e){e&&(runtimeKeepalivePop(),callUserCallback((()=>{withStackSave((()=>{getWasmTableEntry(e)(stringToUTF8OnStack(i))}))})))}i=PATH_FS.resolve(i);var s=PATH.dirname(i);FS_createPreloadedFile(s,PATH.basename(i),a,!0,!0,(()=>_(t)),(()=>_(n)),!1,!1,(()=>{try{FS_unlink(i)}catch(e){}FS_mkdirTree(s)}))};_emscripten_async_wget.sig="vpppp";var _emscripten_async_wget_data=function(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(243,0,1,e,r,t,n);e>>>=0,r>>>=0,t>>>=0,n>>>=0,runtimeKeepalivePush(),asyncLoad(UTF8ToString(e),(e=>{runtimeKeepalivePop(),callUserCallback((()=>{var n=_malloc(e.length);GROWABLE_HEAP_U8().set(e,n>>>0),getWasmTableEntry(t)(r,n,e.length),_free(n)}))}),(()=>{n&&(runtimeKeepalivePop(),callUserCallback((()=>{getWasmTableEntry(n)(r)})))}),!0)};_emscripten_async_wget_data.sig="vpppp";var _emscripten_async_wget2=function(e,r,t,n,a,i,_,s){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(244,0,1,e,r,t,n,a,i,_,s);e>>>=0,r>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,_>>>=0,s>>>=0,runtimeKeepalivePush();var o=UTF8ToString(e),l=UTF8ToString(r);l=PATH_FS.resolve(l);var c=UTF8ToString(t),u=UTF8ToString(n),d=l.lastIndexOf("/"),p=new XMLHttpRequest;p.open(c,o,!0),p.responseType="arraybuffer";var m=wget.getNextWgetRequestHandle(),f=PATH.dirname(l);return p.onload=e=>{if(runtimeKeepalivePop(),p.status>=200&&p.status<300){try{FS.unlink(l)}catch(e){}FS.mkdirTree(f),FS.createDataFile(l.substr(0,d),l.substr(d+1),new Uint8Array(p.response),!0,!0,!1),i&&withStackSave((()=>{getWasmTableEntry(i)(m,a,stringToUTF8OnStack(l))}))}else _&&getWasmTableEntry(_)(m,a,p.status);delete wget.wgetRequests[m]},p.onerror=e=>{runtimeKeepalivePop(),_&&getWasmTableEntry(_)(m,a,p.status),delete wget.wgetRequests[m]},p.onprogress=e=>{if(e.lengthComputable||void 0===e.lengthComputable&&0!=e.total){var r=e.loaded/e.total*100;s&&getWasmTableEntry(s)(m,a,r)}},p.onabort=e=>{runtimeKeepalivePop(),delete wget.wgetRequests[m]},"POST"==c?(p.setRequestHeader("Content-type","application/x-www-form-urlencoded"),p.send(u)):p.send(null),wget.wgetRequests[m]=p,m};_emscripten_async_wget2.sig="ipppppppp";var _emscripten_async_wget2_data=function(e,r,t,n,a,i,_,s){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(245,0,1,e,r,t,n,a,i,_,s);r>>>=0,t>>>=0,n>>>=0,i>>>=0,_>>>=0,s>>>=0;var o=UTF8ToString(e>>>=0),l=UTF8ToString(r),c=UTF8ToString(t),u=new XMLHttpRequest;u.open(l,o,!0),u.responseType="arraybuffer";var d=wget.getNextWgetRequestHandle();function p(){_&&withStackSave((()=>{var e=0;u.statusText&&(e=stringToUTF8OnStack(u.statusText)),getWasmTableEntry(_)(d,n,u.status,e)}))}return u.onload=e=>{if(u.status>=200&&u.status<300||0===u.status&&"http"!=o.substr(0,4).toLowerCase()){var r=new Uint8Array(u.response),t=_malloc(r.length);GROWABLE_HEAP_U8().set(r,t>>>0),i&&getWasmTableEntry(i)(d,n,t,r.length),a&&_free(t)}else p();delete wget.wgetRequests[d]},u.onerror=e=>{p(),delete wget.wgetRequests[d]},u.onprogress=e=>{s&&getWasmTableEntry(s)(d,n,e.loaded,e.lengthComputable||void 0===e.lengthComputable?e.total:0)},u.onabort=e=>{delete wget.wgetRequests[d]},"POST"==l?(u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.send(c)):u.send(null),wget.wgetRequests[d]=u,d};function _emscripten_async_wget2_abort(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(246,0,1,e);var r=wget.wgetRequests[e];null==r||r.abort()}_emscripten_async_wget2_data.sig="ippppippp",_emscripten_async_wget2_abort.sig="vi";var _setNetworkCallback=(e,r,t)=>{runtimeKeepalivePush(),Module.websocket.on(e,t?function(n){try{"error"===e?withStackSave((function(){var e=stringToUTF8OnStack(n[2]);getWasmTableEntry(t)(n[0],n[1],e,r)})):getWasmTableEntry(t)(n,r)}catch(e){if(!(e instanceof ExitStatus))throw e&&"object"==typeof e&&e.stack&&err("exception thrown: "+[e,e.stack]),e}}:null)};function _emscripten_set_socket_error_callback(e,r){_setNetworkCallback("error",e>>>=0,r>>>=0)}function _emscripten_set_socket_open_callback(e,r){_setNetworkCallback("open",e>>>=0,r>>>=0)}function _emscripten_set_socket_listen_callback(e,r){_setNetworkCallback("listen",e>>>=0,r>>>=0)}function _emscripten_set_socket_connection_callback(e,r){_setNetworkCallback("connection",e>>>=0,r>>>=0)}function _emscripten_set_socket_message_callback(e,r){_setNetworkCallback("message",e>>>=0,r>>>=0)}function _emscripten_set_socket_close_callback(e,r){_setNetworkCallback("close",e>>>=0,r>>>=0)}function _emscripten_webgl_enable_ANGLE_instanced_arrays(e){return e>>>=0,webgl_enable_ANGLE_instanced_arrays(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_OES_vertex_array_object(e){return e>>>=0,webgl_enable_OES_vertex_array_object(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_draw_buffers(e){return e>>>=0,webgl_enable_WEBGL_draw_buffers(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_multi_draw(e){return e>>>=0,webgl_enable_WEBGL_multi_draw(GL.contexts[e].GLctx)}function _glVertexPointer(e,r,t,n){throw"Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."}_emscripten_set_socket_error_callback.sig="vpp",_emscripten_set_socket_open_callback.sig="vpp",_emscripten_set_socket_listen_callback.sig="vpp",_emscripten_set_socket_connection_callback.sig="vpp",_emscripten_set_socket_message_callback.sig="vpp",_emscripten_set_socket_close_callback.sig="vpp",_emscripten_webgl_enable_ANGLE_instanced_arrays.sig="ip",_emscripten_webgl_enable_OES_vertex_array_object.sig="ip",_emscripten_webgl_enable_WEBGL_draw_buffers.sig="ip",_emscripten_webgl_enable_WEBGL_multi_draw.sig="ip",_glVertexPointer.sig="viiip";var _glMatrixMode=()=>{throw"Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glMatrixMode.sig="vi";var _glBegin=()=>{throw"Legacy GL function (glBegin) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glBegin.sig="vi";var _glLoadIdentity=()=>{throw"Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glLoadIdentity.sig="v";var _glVertexAttribDivisorNV=_glVertexAttribDivisor,_glDrawArraysInstancedNV=_glDrawArraysInstanced,_glDrawElementsInstancedNV=_glDrawElementsInstanced,_glVertexAttribDivisorEXT=_glVertexAttribDivisor,_glDrawArraysInstancedEXT=_glDrawArraysInstanced,_glDrawElementsInstancedEXT=_glDrawElementsInstanced,_glVertexAttribDivisorARB=_glVertexAttribDivisor,_glDrawArraysInstancedARB=_glDrawArraysInstanced,_glDrawElementsInstancedARB=_glDrawElementsInstanced,_glDrawBuffersEXT=_glDrawBuffers;function _glMultiDrawArraysWEBGL(e,r,t,n){r>>>=0,t>>>=0,GLctx.multiDrawWebgl.multiDrawArraysWEBGL(e,GROWABLE_HEAP_I32(),r>>>2,GROWABLE_HEAP_I32(),t>>>2,n)}_glMultiDrawArraysWEBGL.sig="vippi";var _glMultiDrawArrays=_glMultiDrawArraysWEBGL;_glMultiDrawArrays.sig="vippi";var _glMultiDrawArraysANGLE=_glMultiDrawArraysWEBGL;function _glMultiDrawArraysInstancedWEBGL(e,r,t,n,a){r>>>=0,t>>>=0,n>>>=0,GLctx.multiDrawWebgl.multiDrawArraysInstancedWEBGL(e,GROWABLE_HEAP_I32(),r>>>2,GROWABLE_HEAP_I32(),t>>>2,GROWABLE_HEAP_I32(),n>>>2,a)}_glMultiDrawArraysInstancedWEBGL.sig="vipppi";var _glMultiDrawArraysInstancedANGLE=_glMultiDrawArraysInstancedWEBGL;function _glMultiDrawElementsWEBGL(e,r,t,n,a){r>>>=0,n>>>=0,GLctx.multiDrawWebgl.multiDrawElementsWEBGL(e,GROWABLE_HEAP_I32(),r>>>2,t,GROWABLE_HEAP_I32(),n>>>2,a)}_glMultiDrawElementsWEBGL.sig="vipipi";var _glMultiDrawElements=_glMultiDrawElementsWEBGL;_glMultiDrawElements.sig="vipipi";var _glMultiDrawElementsANGLE=_glMultiDrawElementsWEBGL;function _glMultiDrawElementsInstancedWEBGL(e,r,t,n,a,i){r>>>=0,n>>>=0,a>>>=0,GLctx.multiDrawWebgl.multiDrawElementsInstancedWEBGL(e,GROWABLE_HEAP_I32(),r>>>2,t,GROWABLE_HEAP_I32(),n>>>2,GROWABLE_HEAP_I32(),a>>>2,i)}_glMultiDrawElementsInstancedWEBGL.sig="vipippi";var _glMultiDrawElementsInstancedANGLE=_glMultiDrawElementsInstancedWEBGL,_glClearDepth=e=>GLctx.clearDepth(e);_glClearDepth.sig="vd";var _glDepthRange=(e,r)=>GLctx.depthRange(e,r);_glDepthRange.sig="vdd";var _emscripten_glGenVertexArrays=_glGenVertexArrays;_emscripten_glGenVertexArrays.sig="vip";var _emscripten_glDeleteVertexArrays=_glDeleteVertexArrays;_emscripten_glDeleteVertexArrays.sig="vip";var _emscripten_glBindVertexArray=_glBindVertexArray;_emscripten_glBindVertexArray.sig="vi";var _emscripten_glIsVertexArray=_glIsVertexArray;_emscripten_glIsVertexArray.sig="ii";var _emscripten_glVertexPointer=_glVertexPointer;_emscripten_glVertexPointer.sig="viiip";var _emscripten_glMatrixMode=_glMatrixMode;_emscripten_glMatrixMode.sig="vi";var _emscripten_glBegin=_glBegin;_emscripten_glBegin.sig="vi";var _emscripten_glLoadIdentity=_glLoadIdentity;_emscripten_glLoadIdentity.sig="v";var _emscripten_glVertexAttribDivisor=_glVertexAttribDivisor;_emscripten_glVertexAttribDivisor.sig="vii";var _emscripten_glDrawArraysInstanced=_glDrawArraysInstanced;_emscripten_glDrawArraysInstanced.sig="viiii";var _emscripten_glDrawElementsInstanced=_glDrawElementsInstanced;_emscripten_glDrawElementsInstanced.sig="viiipi";var _emscripten_glVertexAttribDivisorNV=_glVertexAttribDivisorNV,_emscripten_glDrawArraysInstancedNV=_glDrawArraysInstancedNV,_emscripten_glDrawElementsInstancedNV=_glDrawElementsInstancedNV,_emscripten_glVertexAttribDivisorEXT=_glVertexAttribDivisorEXT,_emscripten_glDrawArraysInstancedEXT=_glDrawArraysInstancedEXT,_emscripten_glDrawElementsInstancedEXT=_glDrawElementsInstancedEXT,_emscripten_glVertexAttribDivisorARB=_glVertexAttribDivisorARB,_emscripten_glDrawArraysInstancedARB=_glDrawArraysInstancedARB,_emscripten_glDrawElementsInstancedARB=_glDrawElementsInstancedARB,_emscripten_glDrawBuffers=_glDrawBuffers;_emscripten_glDrawBuffers.sig="vip";var _emscripten_glDrawBuffersEXT=_glDrawBuffersEXT,_emscripten_glMultiDrawArrays=_glMultiDrawArrays;_emscripten_glMultiDrawArrays.sig="vippi";var _emscripten_glMultiDrawArraysANGLE=_glMultiDrawArraysANGLE,_emscripten_glMultiDrawArraysWEBGL=_glMultiDrawArraysWEBGL,_emscripten_glMultiDrawArraysInstancedANGLE=_glMultiDrawArraysInstancedANGLE,_emscripten_glMultiDrawArraysInstancedWEBGL=_glMultiDrawArraysInstancedWEBGL,_emscripten_glMultiDrawElements=_glMultiDrawElements;_emscripten_glMultiDrawElements.sig="vipipi";var _emscripten_glMultiDrawElementsANGLE=_glMultiDrawElementsANGLE,_emscripten_glMultiDrawElementsWEBGL=_glMultiDrawElementsWEBGL,_emscripten_glMultiDrawElementsInstancedANGLE=_glMultiDrawElementsInstancedANGLE,_emscripten_glMultiDrawElementsInstancedWEBGL=_glMultiDrawElementsInstancedWEBGL,_emscripten_glClearDepth=_glClearDepth;_emscripten_glClearDepth.sig="vd";var _emscripten_glDepthRange=_glDepthRange;_emscripten_glDepthRange.sig="vdd";var writeGLArray=(e,r,t,n)=>{var a=e.length,i=t>>=2;for(var s=0;s>>0]=e[s];return a},webglPowerPreferences=["default","low-power","high-performance"];function _emscripten_webgl_do_create_context(e,r){e>>>=0;var t=(r>>>=0)>>>2,n=GROWABLE_HEAP_I32()[t+6>>>0],a={alpha:!!GROWABLE_HEAP_I32()[t+0>>>0],depth:!!GROWABLE_HEAP_I32()[t+1>>>0],stencil:!!GROWABLE_HEAP_I32()[t+2>>>0],antialias:!!GROWABLE_HEAP_I32()[t+3>>>0],premultipliedAlpha:!!GROWABLE_HEAP_I32()[t+4>>>0],preserveDrawingBuffer:!!GROWABLE_HEAP_I32()[t+5>>>0],powerPreference:webglPowerPreferences[n],failIfMajorPerformanceCaveat:!!GROWABLE_HEAP_I32()[t+7>>>0],majorVersion:GROWABLE_HEAP_I32()[t+8>>>0],minorVersion:GROWABLE_HEAP_I32()[t+9>>>0],enableExtensionsByDefault:GROWABLE_HEAP_I32()[t+10>>>0],explicitSwapControl:GROWABLE_HEAP_I32()[t+11>>>0],proxyContextToMainThread:GROWABLE_HEAP_I32()[t+12>>>0],renderViaOffscreenBackBuffer:GROWABLE_HEAP_I32()[t+13>>>0]},i=findCanvasEventTarget(e);return!i||a.explicitSwapControl?0:GL.createContext(i,a)}_emscripten_webgl_do_create_context.sig="ppp";var _emscripten_webgl_create_context=_emscripten_webgl_do_create_context;function _emscripten_webgl_do_get_current_context(){return GL.currentContext?GL.currentContext.handle:0}_emscripten_webgl_create_context.sig="ppp",_emscripten_webgl_do_get_current_context.sig="p";var _emscripten_webgl_get_current_context=_emscripten_webgl_do_get_current_context;_emscripten_webgl_get_current_context.sig="p";var _emscripten_webgl_do_commit_frame=()=>GL.currentContext&&GL.currentContext.GLctx&&GL.currentContext.attributes.explicitSwapControl?0:-3;_emscripten_webgl_do_commit_frame.sig="i";var _emscripten_webgl_commit_frame=_emscripten_webgl_do_commit_frame;function _emscripten_webgl_make_context_current(e){return e>>>=0,GL.makeContextCurrent(e)?0:-5}function _emscripten_webgl_get_drawing_buffer_size(e,r,t){e>>>=0,r>>>=0,t>>>=0;var n=GL.getContext(e);return n&&n.GLctx&&r&&t?(GROWABLE_HEAP_I32()[r>>>2>>>0]=n.GLctx.drawingBufferWidth,GROWABLE_HEAP_I32()[t>>>2>>>0]=n.GLctx.drawingBufferHeight,0):-5}function _emscripten_webgl_get_context_attributes(e,r){if(e>>>=0,!(r>>>=0))return-5;if(!(e=GL.contexts[e]))return-3;var t=e.GLctx;if(!t)return-3;t=t.getContextAttributes(),GROWABLE_HEAP_I32()[r>>>2>>>0]=t.alpha,GROWABLE_HEAP_I32()[r+4>>>2>>>0]=t.depth,GROWABLE_HEAP_I32()[r+8>>>2>>>0]=t.stencil,GROWABLE_HEAP_I32()[r+12>>>2>>>0]=t.antialias,GROWABLE_HEAP_I32()[r+16>>>2>>>0]=t.premultipliedAlpha,GROWABLE_HEAP_I32()[r+20>>>2>>>0]=t.preserveDrawingBuffer;var n=t.powerPreference&&webglPowerPreferences.indexOf(t.powerPreference);return GROWABLE_HEAP_I32()[r+24>>>2>>>0]=n,GROWABLE_HEAP_I32()[r+28>>>2>>>0]=t.failIfMajorPerformanceCaveat,GROWABLE_HEAP_I32()[r+32>>>2>>>0]=e.version,GROWABLE_HEAP_I32()[r+36>>>2>>>0]=0,GROWABLE_HEAP_I32()[r+40>>>2>>>0]=e.attributes.enableExtensionsByDefault,0}function _emscripten_webgl_destroy_context(e){e>>>=0,GL.currentContext==e&&(GL.currentContext=0),GL.deleteContext(e)}_emscripten_webgl_commit_frame.sig="i",_emscripten_webgl_make_context_current.sig="ip",_emscripten_webgl_get_drawing_buffer_size.sig="ippp",_emscripten_webgl_get_context_attributes.sig="ipp",_emscripten_webgl_destroy_context.sig="ip";var emscripten_webgl_destroy_context_before_on_calling_thread=e=>{_emscripten_webgl_get_current_context()==e&&_emscripten_webgl_make_context_current(0)};function _emscripten_webgl_enable_extension(e,r){e>>>=0,r>>>=0;var t=GL.getContext(e),n=UTF8ToString(r);return n.startsWith("GL_")&&(n=n.substr(3)),"ANGLE_instanced_arrays"==n&&webgl_enable_ANGLE_instanced_arrays(GLctx),"OES_vertex_array_object"==n&&webgl_enable_OES_vertex_array_object(GLctx),"WEBGL_draw_buffers"==n&&webgl_enable_WEBGL_draw_buffers(GLctx),"WEBGL_multi_draw"==n&&webgl_enable_WEBGL_multi_draw(GLctx),!!t.GLctx.getExtension(n)}_emscripten_webgl_enable_extension.sig="ipp";var _emscripten_supports_offscreencanvas=()=>0;_emscripten_supports_offscreencanvas.sig="i";var registerWebGlEventCallback=(e,r,t,n,a,i,_)=>{_=JSEvents.getTargetThreadForEventCallback(_);var s={target:findEventTarget(e),eventTypeString:i,callbackfunc:n,handlerFunc:(e=event)=>{_?__emscripten_run_callback_on_thread(_,n,a,0,r):getWasmTableEntry(n)(a,0,r)&&e.preventDefault()},useCapture:t};JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_webglcontextlost_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(247,0,1,e,r,t,n,a):(registerWebGlEventCallback(e>>>=0,r>>>=0,t,n>>>=0,31,"webglcontextlost",a>>>=0),0)}function _emscripten_set_webglcontextrestored_callback_on_thread(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(248,0,1,e,r,t,n,a):(registerWebGlEventCallback(e>>>=0,r>>>=0,t,n>>>=0,32,"webglcontextrestored",a>>>=0),0)}function _emscripten_is_webgl_context_lost(e){return e>>>=0,!GL.contexts[e]||GL.contexts[e].GLctx.isContextLost()}function _emscripten_webgl_get_supported_extensions(){return stringToNewUTF8(GLctx.getSupportedExtensions().join(" "))}_emscripten_set_webglcontextlost_callback_on_thread.sig="ippipp",_emscripten_set_webglcontextrestored_callback_on_thread.sig="ippipp",_emscripten_is_webgl_context_lost.sig="ip",_emscripten_webgl_get_supported_extensions.sig="p";var _emscripten_webgl_get_program_parameter_d=(e,r)=>GLctx.getProgramParameter(GL.programs[e],r);function _emscripten_webgl_get_program_info_log_utf8(e){return stringToNewUTF8(GLctx.getProgramInfoLog(GL.programs[e]))}_emscripten_webgl_get_program_parameter_d.sig="dii",_emscripten_webgl_get_program_info_log_utf8.sig="pi";var _emscripten_webgl_get_shader_parameter_d=(e,r)=>GLctx.getShaderParameter(GL.shaders[e],r);function _emscripten_webgl_get_shader_info_log_utf8(e){return stringToNewUTF8(GLctx.getShaderInfoLog(GL.shaders[e]))}function _emscripten_webgl_get_shader_source_utf8(e){return stringToNewUTF8(GLctx.getShaderSource(GL.shaders[e]))}_emscripten_webgl_get_shader_parameter_d.sig="dii",_emscripten_webgl_get_shader_info_log_utf8.sig="pi",_emscripten_webgl_get_shader_source_utf8.sig="pi";var _emscripten_webgl_get_vertex_attrib_d=(e,r)=>GLctx.getVertexAttrib(e,r);_emscripten_webgl_get_vertex_attrib_d.sig="dii";var _emscripten_webgl_get_vertex_attrib_o=(e,r)=>{var t=GLctx.getVertexAttrib(e,r);return null==t?void 0:t.name};function _emscripten_webgl_get_vertex_attrib_v(e,r,t,n,a){return t>>>=0,writeGLArray(GLctx.getVertexAttrib(e,r),t,n,a)}_emscripten_webgl_get_vertex_attrib_o.sig="iii",_emscripten_webgl_get_vertex_attrib_v.sig="iiipii";var _emscripten_webgl_get_uniform_d=(e,r)=>GLctx.getUniform(GL.programs[e],webglGetUniformLocation(r));function _emscripten_webgl_get_uniform_v(e,r,t,n,a){return t>>>=0,writeGLArray(GLctx.getUniform(GL.programs[e],webglGetUniformLocation(r)),t,n,a)}function _emscripten_webgl_get_parameter_v(e,r,t,n){return r>>>=0,writeGLArray(GLctx.getParameter(e),r,t,n)}_emscripten_webgl_get_uniform_d.sig="dii",_emscripten_webgl_get_uniform_v.sig="iiipii",_emscripten_webgl_get_parameter_v.sig="iipii";var _emscripten_webgl_get_parameter_d=e=>GLctx.getParameter(e);_emscripten_webgl_get_parameter_d.sig="di";var _emscripten_webgl_get_parameter_o=e=>{var r=GLctx.getParameter(e);return null==r?void 0:r.name};function _emscripten_webgl_get_parameter_utf8(e){return stringToNewUTF8(GLctx.getParameter(e))}function _emscripten_webgl_get_parameter_i64v(e,r){return writeI53ToI64(r>>>=0,GLctx.getParameter(e))}function _glutPostRedisplay(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(249,0,1);GLUT.displayFunc&&!GLUT.requestedAnimationFrame&&(GLUT.requestedAnimationFrame=!0,Browser.requestAnimationFrame((function(){GLUT.requestedAnimationFrame=!1,Browser.mainLoop.runIter((function(){getWasmTableEntry(GLUT.displayFunc)()}))})))}_emscripten_webgl_get_parameter_o.sig="ii",_emscripten_webgl_get_parameter_utf8.sig="pi",_emscripten_webgl_get_parameter_i64v.sig="vip",_glutPostRedisplay.sig="v";var GLUT={initTime:null,idleFunc:null,displayFunc:null,keyboardFunc:null,keyboardUpFunc:null,specialFunc:null,specialUpFunc:null,reshapeFunc:null,motionFunc:null,passiveMotionFunc:null,mouseFunc:null,buttons:0,modifiers:0,initWindowWidth:256,initWindowHeight:256,initDisplayMode:18,windowX:0,windowY:0,windowWidth:0,windowHeight:0,requestedAnimationFrame:!1,saveModifiers:e=>{GLUT.modifiers=0,e.shiftKey&&(GLUT.modifiers+=1),e.ctrlKey&&(GLUT.modifiers+=2),e.altKey&&(GLUT.modifiers+=4)},onMousemove:e=>{var r=Browser.mouseX,t=Browser.mouseY;Browser.calculateMouseEvent(e);var n=Browser.mouseX,a=Browser.mouseY;n==r&&a==t||(0==GLUT.buttons&&e.target==Module.canvas&&GLUT.passiveMotionFunc?(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.passiveMotionFunc)(r,t)):0!=GLUT.buttons&&GLUT.motionFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.motionFunc)(r,t)))},getSpecialKey:e=>{var r=null;switch(e){case 8:r=120;break;case 46:r=111;break;case 112:r=1;break;case 113:r=2;break;case 114:r=3;break;case 115:r=4;break;case 116:r=5;break;case 117:r=6;break;case 118:r=7;break;case 119:r=8;break;case 120:r=9;break;case 121:r=10;break;case 122:r=11;break;case 123:r=12;break;case 37:r=100;break;case 38:r=101;break;case 39:r=102;break;case 40:r=103;break;case 33:r=104;break;case 34:r=105;break;case 36:r=106;break;case 35:r=107;break;case 45:r=108;break;case 16:case 5:r=112;break;case 6:r=113;break;case 17:case 3:r=114;break;case 4:r=115;break;case 18:case 2:r=116;break;case 1:r=117}return r},getASCIIKey:e=>{if(e.ctrlKey||e.altKey||e.metaKey)return null;var r=e.keyCode;if(48<=r&&r<=57)return r;if(65<=r&&r<=90)return e.shiftKey?r:r+32;if(96<=r&&r<=105)return r-48;if(106<=r&&r<=111)return r-106+42;switch(r){case 9:case 13:case 27:case 32:case 61:return r}var t=e.shiftKey;switch(r){case 186:return t?58:59;case 187:return t?43:61;case 188:return t?60:44;case 189:return t?95:45;case 190:return t?62:46;case 191:return t?63:47;case 219:return t?123:91;case 220:return t?124:47;case 221:return t?125:93;case 222:return t?34:39}return null},onKeydown:e=>{if(GLUT.specialFunc||GLUT.keyboardFunc){var r=GLUT.getSpecialKey(e.keyCode);null!==r?GLUT.specialFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.specialFunc)(r,Browser.mouseX,Browser.mouseY)):null!==(r=GLUT.getASCIIKey(e))&&GLUT.keyboardFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.keyboardFunc)(r,Browser.mouseX,Browser.mouseY))}},onKeyup:e=>{if(GLUT.specialUpFunc||GLUT.keyboardUpFunc){var r=GLUT.getSpecialKey(e.keyCode);null!==r?GLUT.specialUpFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.specialUpFunc)(r,Browser.mouseX,Browser.mouseY)):null!==(r=GLUT.getASCIIKey(e))&&GLUT.keyboardUpFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.keyboardUpFunc)(r,Browser.mouseX,Browser.mouseY))}},touchHandler:e=>{if(e.target==Module.canvas){var r=e.changedTouches[0],t="";switch(e.type){case"touchstart":t="mousedown";break;case"touchmove":t="mousemove";break;case"touchend":t="mouseup";break;default:return}var n=document.createEvent("MouseEvent");n.initMouseEvent(t,!0,!0,window,1,r.screenX,r.screenY,r.clientX,r.clientY,!1,!1,!1,!1,0,null),r.target.dispatchEvent(n),e.preventDefault()}},onMouseButtonDown:e=>{if(Browser.calculateMouseEvent(e),GLUT.buttons|=1<{Browser.calculateMouseEvent(e),GLUT.buttons&=~(1<{Browser.calculateMouseEvent(e),window.event;var r=-Browser.getMouseWheelDelta(e),t=3;(r=0==r?0:r>0?Math.max(r,1):Math.min(r,-1))<0&&(t=4),GLUT.mouseFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.mouseFunc)(t,0,Browser.mouseX,Browser.mouseY))},onFullscreenEventChange:e=>{var r,t;document.fullscreen||document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen?(r=screen.width,t=screen.height):(r=GLUT.windowWidth,t=GLUT.windowHeight,document.removeEventListener("fullscreenchange",GLUT.onFullscreenEventChange,!0),document.removeEventListener("mozfullscreenchange",GLUT.onFullscreenEventChange,!0),document.removeEventListener("webkitfullscreenchange",GLUT.onFullscreenEventChange,!0)),Browser.setCanvasSize(r,t,!0),GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(r,t),_glutPostRedisplay()}};function _glutGetModifiers(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(250,0,1):GLUT.modifiers}function _glutInit(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(251,0,1,e,r);e>>>=0,r>>>=0,GLUT.initTime=Date.now();var t="ontouchstart"in document.documentElement;t&&(window.addEventListener("touchmove",GLUT.touchHandler,!0),window.addEventListener("touchstart",GLUT.touchHandler,!0),window.addEventListener("touchend",GLUT.touchHandler,!0)),window.addEventListener("keydown",GLUT.onKeydown,!0),window.addEventListener("keyup",GLUT.onKeyup,!0),window.addEventListener("mousemove",GLUT.onMousemove,!0),window.addEventListener("mousedown",GLUT.onMouseButtonDown,!0),window.addEventListener("mouseup",GLUT.onMouseButtonUp,!0),window.addEventListener("mousewheel",GLUT.onMouseWheel,!0),window.addEventListener("DOMMouseScroll",GLUT.onMouseWheel,!0),Browser.resizeListeners.push((function(e,r){GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(e,r)})),__ATEXIT__.push((function(){t&&(window.removeEventListener("touchmove",GLUT.touchHandler,!0),window.removeEventListener("touchstart",GLUT.touchHandler,!0),window.removeEventListener("touchend",GLUT.touchHandler,!0)),window.removeEventListener("keydown",GLUT.onKeydown,!0),window.removeEventListener("keyup",GLUT.onKeyup,!0),window.removeEventListener("mousemove",GLUT.onMousemove,!0),window.removeEventListener("mousedown",GLUT.onMouseButtonDown,!0),window.removeEventListener("mouseup",GLUT.onMouseButtonUp,!0),window.removeEventListener("mousewheel",GLUT.onMouseWheel,!0),window.removeEventListener("DOMMouseScroll",GLUT.onMouseWheel,!0),Module.canvas.width=Module.canvas.height=1}))}function _glutInitWindowSize(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(252,0,1,e,r);Browser.setCanvasSize(GLUT.initWindowWidth=e,GLUT.initWindowHeight=r)}function _glutInitWindowPosition(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(253,0,1,e,r)}_glutGetModifiers.sig="i",_glutInit.sig="vpp",_glutInitWindowSize.sig="vii",_glutInitWindowPosition.sig="vii";var _glutGet=e=>{switch(e){case 100:case 101:case 500:case 501:return 0;case 102:case 200:return Module.canvas.width;case 103:case 201:return Module.canvas.height;case 502:return GLUT.initWindowWidth;case 503:return GLUT.initWindowHeight;case 700:return Date.now()-GLUT.initTime;case 105:return Module.ctx.getContextAttributes().stencil?8:0;case 106:return Module.ctx.getContextAttributes().depth?8:0;case 110:return Module.ctx.getContextAttributes().alpha?8:0;case 120:return Module.ctx.getContextAttributes().antialias?1:0;default:throw"glutGet("+e+") not implemented yet"}};function _glutIdleFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(254,0,1,e);e>>>=0,GLUT.idleFunc||safeSetTimeout((function e(){GLUT.idleFunc&&(getWasmTableEntry(GLUT.idleFunc)(),safeSetTimeout(e,4))}),0),GLUT.idleFunc=e}_glutGet.sig="ii",_glutIdleFunc.sig="vp";var _glutTimerFunc=function(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(255,0,1,e,r,t):(r>>>=0,safeSetTimeout((()=>getWasmTableEntry(r)(t)),e))};function _glutDisplayFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(256,0,1,e);e>>>=0,GLUT.displayFunc=e}function _glutKeyboardFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(257,0,1,e);e>>>=0,GLUT.keyboardFunc=e}function _glutKeyboardUpFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(258,0,1,e);e>>>=0,GLUT.keyboardUpFunc=e}function _glutSpecialFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(259,0,1,e);e>>>=0,GLUT.specialFunc=e}function _glutSpecialUpFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(260,0,1,e);e>>>=0,GLUT.specialUpFunc=e}function _glutReshapeFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(261,0,1,e);e>>>=0,GLUT.reshapeFunc=e}function _glutMotionFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(262,0,1,e);e>>>=0,GLUT.motionFunc=e}function _glutPassiveMotionFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(263,0,1,e);e>>>=0,GLUT.passiveMotionFunc=e}function _glutMouseFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(264,0,1,e);e>>>=0,GLUT.mouseFunc=e}function _glutSetCursor(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(265,0,1,e);var r="auto";switch(e){case 0:case 1:case 3:case 5:case 6:case 100:break;case 2:r="pointer";break;case 4:r="help";break;case 7:r="wait";break;case 8:r="text";break;case 9:case 102:r="crosshair";break;case 10:r="ns-resize";break;case 11:r="ew-resize";break;case 12:r="n-resize";break;case 13:r="s-resize";break;case 14:r="w-resize";break;case 15:r="e-resize";break;case 16:r="nw-resize";break;case 17:r="ne-resize";break;case 18:r="se-resize";break;case 19:r="sw-resize";break;case 101:r="none";break;default:throw"glutSetCursor: Unknown cursor type: "+e}Module.canvas.style.cursor=r}function _glutCreateWindow(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(266,0,1,e);e>>>=0;var r={antialias:0!=(128&GLUT.initDisplayMode),depth:0!=(16&GLUT.initDisplayMode),stencil:0!=(32&GLUT.initDisplayMode),alpha:0!=(8&GLUT.initDisplayMode)};return Module.ctx=Browser.createContext(Module.canvas,!0,!0,r),Module.ctx?1:0}function _glutDestroyWindow(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(267,0,1,e):(Module.ctx=Browser.destroyContext(Module.canvas,!0,!0),1)}function _glutReshapeWindow(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(268,0,1,e,r);Browser.exitFullscreen(),Browser.setCanvasSize(e,r,!0),GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(e,r),_glutPostRedisplay()}function _glutPositionWindow(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(269,0,1,e,r);Browser.exitFullscreen(),_glutPostRedisplay()}function _glutFullScreen(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(270,0,1);GLUT.windowX=0,GLUT.windowY=0,GLUT.windowWidth=Module.canvas.width,GLUT.windowHeight=Module.canvas.height,document.addEventListener("fullscreenchange",GLUT.onFullscreenEventChange,!0),document.addEventListener("mozfullscreenchange",GLUT.onFullscreenEventChange,!0),document.addEventListener("webkitfullscreenchange",GLUT.onFullscreenEventChange,!0),Browser.requestFullscreen(!1,!1)}function _glutInitDisplayMode(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(271,0,1,e):GLUT.initDisplayMode=e}function _glutSwapBuffers(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(272,0,1)}function _glutMainLoop(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(273,0,1);throw _glutReshapeWindow(Module.canvas.width,Module.canvas.height),_glutPostRedisplay(),"unwind"}function _XOpenDisplay(e){return 1}function _XCreateWindow(e,r,t,n,a,i,_,s,o,l,c,u){return Browser.setCanvasSize(a,i),2}function _XChangeWindowAttributes(e,r,t,n){}function _XSetWMHints(e,r,t){}function _XMapWindow(e,r){}function _XStoreName(e,r,t){}function _XInternAtom(e,r,t){return 0}function _XSendEvent(e,r,t,n,a){}function _XPending(e){return 0}_glutTimerFunc.sig="vipi",_glutDisplayFunc.sig="vp",_glutKeyboardFunc.sig="vp",_glutKeyboardUpFunc.sig="vp",_glutSpecialFunc.sig="vp",_glutSpecialUpFunc.sig="vp",_glutReshapeFunc.sig="vp",_glutMotionFunc.sig="vp",_glutPassiveMotionFunc.sig="vp",_glutMouseFunc.sig="vp",_glutSetCursor.sig="vi",_glutCreateWindow.sig="ip",_glutDestroyWindow.sig="vi",_glutReshapeWindow.sig="vii",_glutPositionWindow.sig="vii",_glutFullScreen.sig="v",_glutInitDisplayMode.sig="vi",_glutSwapBuffers.sig="v",_glutMainLoop.sig="v",_XOpenDisplay.sig="pp",_XCreateWindow.sig="pppiiiiiiippp",_XChangeWindowAttributes.sig="ipppp",_XSetWMHints.sig="ippp",_XMapWindow.sig="ipp",_XStoreName.sig="ippp",_XInternAtom.sig="pppi",_XSendEvent.sig="ippipp",_XPending.sig="ip";var EGL={errorCode:12288,defaultDisplayInitialized:!1,currentContext:0,currentReadSurface:0,currentDrawSurface:0,contextAttributes:{alpha:!1,depth:!1,stencil:!1,antialias:!1},stringCache:{},setErrorCode(e){EGL.errorCode=e},chooseConfig(e,r,t,n,a){if(62e3!=e)return EGL.setErrorCode(12296),0;if(r)for(;;){var i=GROWABLE_HEAP_I32()[r>>>2>>>0];if(12321==i){var _=GROWABLE_HEAP_I32()[r+4>>>2>>>0];EGL.contextAttributes.alpha=_>0}else if(12325==i){var s=GROWABLE_HEAP_I32()[r+4>>>2>>>0];EGL.contextAttributes.depth=s>0}else if(12326==i){var o=GROWABLE_HEAP_I32()[r+4>>>2>>>0];EGL.contextAttributes.stencil=o>0}else if(12337==i){var l=GROWABLE_HEAP_I32()[r+4>>>2>>>0];EGL.contextAttributes.antialias=l>0}else if(12338==i)l=GROWABLE_HEAP_I32()[r+4>>>2>>>0],EGL.contextAttributes.antialias=1==l;else if(12544==i){var c=GROWABLE_HEAP_I32()[r+4>>>2>>>0];EGL.contextAttributes.lowLatency=12547!=c}else if(12344==i)break;r+=8}return t&&n||a?(a&&(GROWABLE_HEAP_I32()[a>>>2>>>0]=1),t&&n>0&&(GROWABLE_HEAP_U32()[t>>>2>>>0]=62002),EGL.setErrorCode(12288),1):(EGL.setErrorCode(12300),0)}};function _eglGetDisplay(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(274,0,1,e):(e>>>=0,EGL.setErrorCode(12288),0!=e&&1!=e?0:62e3)}function _eglInitialize(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(275,0,1,e,r,t):(r>>>=0,t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=1),t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=4),EGL.defaultDisplayInitialized=!0,EGL.setErrorCode(12288),1))}function _eglTerminate(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(276,0,1,e):62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(EGL.currentContext=0,EGL.currentReadSurface=0,EGL.currentDrawSurface=0,EGL.defaultDisplayInitialized=!1,EGL.setErrorCode(12288),1)}function _eglGetConfigs(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(277,0,1,e,r,t,n):(e>>>=0,r>>>=0,n>>>=0,EGL.chooseConfig(e,0,r,t,n))}function _eglChooseConfig(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(278,0,1,e,r,t,n,a):(e>>>=0,r>>>=0,t>>>=0,a>>>=0,EGL.chooseConfig(e,r,t,n,a))}function _eglGetConfigAttrib(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(279,0,1,e,r,t,n);if(r>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62002!=r)return EGL.setErrorCode(12293),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),t){case 12320:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.alpha?32:24,1;case 12321:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.alpha?8:0,1;case 12322:case 12323:case 12324:return GROWABLE_HEAP_I32()[n>>>2>>>0]=8,1;case 12325:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.depth?24:0,1;case 12326:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.stencil?8:0,1;case 12327:case 12335:case 12340:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12344,1;case 12328:return GROWABLE_HEAP_I32()[n>>>2>>>0]=62002,1;case 12329:case 12333:case 12334:case 12345:case 12346:case 12347:case 12349:case 12350:case 12354:return GROWABLE_HEAP_I32()[n>>>2>>>0]=0,1;case 12330:case 12332:return GROWABLE_HEAP_I32()[n>>>2>>>0]=4096,1;case 12331:return GROWABLE_HEAP_I32()[n>>>2>>>0]=16777216,1;case 12337:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.antialias?4:0,1;case 12338:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.antialias?1:0,1;case 12339:case 12352:return GROWABLE_HEAP_I32()[n>>>2>>>0]=4,1;case 12341:case 12342:case 12343:return GROWABLE_HEAP_I32()[n>>>2>>>0]=-1,1;case 12348:return GROWABLE_HEAP_I32()[n>>>2>>>0]=1,1;case 12351:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12430,1;default:return EGL.setErrorCode(12292),0}}function _eglCreateWindowSurface(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(280,0,1,e,r,t,n):(r>>>=0,n>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62002!=r?(EGL.setErrorCode(12293),0):(EGL.setErrorCode(12288),62006))}function _eglDestroySurface(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(281,0,1,e,r):(r>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62006!=r?(EGL.setErrorCode(12301),1):(EGL.currentReadSurface==r&&(EGL.currentReadSurface=0),EGL.currentDrawSurface==r&&(EGL.currentDrawSurface=0),EGL.setErrorCode(12288),1))}function _eglCreateContext(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(282,0,1,e,r,t,n);if(r>>>=0,t>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;for(var a=1;;){var i=GROWABLE_HEAP_I32()[n>>>2>>>0];if(12440!=i){if(12344==i)break;return EGL.setErrorCode(12292),0}a=GROWABLE_HEAP_I32()[n+4>>>2>>>0],n+=8}return 2!=a?(EGL.setErrorCode(12293),0):(EGL.contextAttributes.majorVersion=a-1,EGL.contextAttributes.minorVersion=0,EGL.context=GL.createContext(Module.canvas,EGL.contextAttributes),0!=EGL.context?(EGL.setErrorCode(12288),GL.makeContextCurrent(EGL.context),Module.useWebGL=!0,Browser.moduleContextCreatedCallbacks.forEach((function(e){e()})),GL.makeContextCurrent(null),62004):(EGL.setErrorCode(12297),0))}function _eglDestroyContext(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(283,0,1,e,r):(r>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62004!=r?(EGL.setErrorCode(12294),0):(GL.deleteContext(EGL.context),EGL.setErrorCode(12288),EGL.currentContext==r&&(EGL.currentContext=0),1))}function _eglQuerySurface(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(284,0,1,e,r,t,n);if(r>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62006!=r)return EGL.setErrorCode(12301),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),t){case 12328:return GROWABLE_HEAP_I32()[n>>>2>>>0]=62002,1;case 12376:case 12416:case 12417:case 12418:case 12419:return 1;case 12375:return GROWABLE_HEAP_I32()[n>>>2>>>0]=Module.canvas.width,1;case 12374:return GROWABLE_HEAP_I32()[n>>>2>>>0]=Module.canvas.height,1;case 12432:case 12433:case 12434:return GROWABLE_HEAP_I32()[n>>>2>>>0]=-1,1;case 12422:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12420,1;case 12441:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12442,1;case 12435:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12437,1;default:return EGL.setErrorCode(12292),0}}function _eglQueryContext(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(285,0,1,e,r,t,n);if(r>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62004!=r)return EGL.setErrorCode(12294),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),t){case 12328:return GROWABLE_HEAP_I32()[n>>>2>>>0]=62002,1;case 12439:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12448,1;case 12440:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.majorVersion+1,1;case 12422:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12420,1;default:return EGL.setErrorCode(12292),0}}function _eglGetError(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(286,0,1):EGL.errorCode}function _eglQueryString(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(287,0,1,e,r);if(62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(EGL.setErrorCode(12288),EGL.stringCache[r])return EGL.stringCache[r];var t;switch(r){case 12371:t=stringToNewUTF8("Emscripten");break;case 12372:t=stringToNewUTF8("1.4 Emscripten EGL");break;case 12373:t=stringToNewUTF8("");break;case 12429:t=stringToNewUTF8("OpenGL_ES");break;default:return EGL.setErrorCode(12300),0}return EGL.stringCache[r]=t,t}function _eglBindAPI(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(288,0,1,e):12448==e?(EGL.setErrorCode(12288),1):(EGL.setErrorCode(12300),0)}function _eglQueryAPI(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(289,0,1):(EGL.setErrorCode(12288),12448)}function _eglWaitClient(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(290,0,1):(EGL.setErrorCode(12288),1)}function _eglWaitNative(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(291,0,1,e):(EGL.setErrorCode(12288),1)}_eglGetDisplay.sig="pp",_eglInitialize.sig="ippp",_eglTerminate.sig="ip",_eglGetConfigs.sig="ippip",_eglChooseConfig.sig="ipppip",_eglGetConfigAttrib.sig="ippip",_eglCreateWindowSurface.sig="pppip",_eglDestroySurface.sig="ipp",_eglCreateContext.sig="ppppp",_eglDestroyContext.sig="ipp",_eglQuerySurface.sig="ippip",_eglQueryContext.sig="ippip",_eglGetError.sig="i",_eglQueryString.sig="ppi",_eglBindAPI.sig="ii",_eglQueryAPI.sig="i",_eglWaitClient.sig="i",_eglWaitNative.sig="ii";var _eglWaitGL=_eglWaitClient;function _eglSwapInterval(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(292,0,1,e,r):62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(0==r?_emscripten_set_main_loop_timing(0,0):_emscripten_set_main_loop_timing(1,r),EGL.setErrorCode(12288),1)}function _eglMakeCurrent(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(293,0,1,e,r,t,n):(r>>>=0,t>>>=0,n>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):0!=n&&62004!=n?(EGL.setErrorCode(12294),0):0!=t&&62006!=t||0!=r&&62006!=r?(EGL.setErrorCode(12301),0):(GL.makeContextCurrent(n?EGL.context:null),EGL.currentContext=n,EGL.currentDrawSurface=r,EGL.currentReadSurface=t,EGL.setErrorCode(12288),1))}function _eglGetCurrentContext(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(294,0,1):EGL.currentContext}function _eglGetCurrentSurface(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(295,0,1,e):12378==e?EGL.currentReadSurface:12377==e?EGL.currentDrawSurface:(EGL.setErrorCode(12300),0)}function _eglGetCurrentDisplay(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(296,0,1):EGL.currentContext?62e3:0}function _eglSwapBuffers(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(297,0,1,e,r);if(e>>>=0,r>>>=0,EGL.defaultDisplayInitialized)if(Module.ctx){if(!Module.ctx.isContextLost())return EGL.setErrorCode(12288),1;EGL.setErrorCode(12302)}else EGL.setErrorCode(12290);else EGL.setErrorCode(12289);return 0}function _eglReleaseThread(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(298,0,1):(EGL.currentContext=0,EGL.currentReadSurface=0,EGL.currentDrawSurface=0,EGL.setErrorCode(12288),1)}function _uuid_clear(e){return zeroMemory(e>>>=0,16)}function _uuid_compare(e,r){return _memcmp(e>>>=0,r>>>=0,16)}function _uuid_copy(e,r){return _memcpy(e>>>=0,r>>>=0,16)}function _uuid_generate(e){e>>>=0;var r=null;if(ENVIRONMENT_IS_NODE)try{r=(0,K("crypto").randomBytes)(16)}catch(e){}else ENVIRONMENT_IS_WEB&&typeof window.crypto<"u"&&typeof window.crypto.getRandomValues<"u"&&(r=new Uint8Array(16),window.crypto.getRandomValues(r));if(!r){r=new Array(16);for(var t=(new Date).getTime(),n=0;n<16;n++){var a=(t+256*Math.random())%256|0;t=t/256|0,r[n]=a}}r[6]=15&r[6]|64,r[8]=63&r[8]|128,writeArrayToMemory(r,e)}function _uuid_is_null(e){e>>>=0;for(var r=0;r<4;r++,e=e+4|0)if(GROWABLE_HEAP_I32()[e>>>2>>>0])return 0;return 1}function _uuid_parse(e,r){if(r>>>=0,36===(e=UTF8ToString(e>>>=0)).length){var t=0,n=new Array(16);return e.toLowerCase().replace(/[0-9a-f]{2}/g,(function(e){t<16&&(n[t++]=parseInt(e,16))})),t<16?-1:(writeArrayToMemory(n,r),0)}return-1}function _uuid_unparse(e,r,t){e>>>=0,r>>>=0;var n=0,a="xxxx-xx-xx-xx-xxxxxx".replace(/[x]/g,(function(r){var a=t?GROWABLE_HEAP_U8()[e+n>>>0].toString(16).toUpperCase():GROWABLE_HEAP_U8()[e+n>>>0].toString(16);return a=1===a.length?"0"+a:a,n++,a}));stringToUTF8(a,r,37)}function _uuid_unparse_lower(e,r){_uuid_unparse(e>>>=0,r>>>=0)}function _uuid_unparse_upper(e,r){_uuid_unparse(e>>>=0,r>>>=0,!0)}function _uuid_type(e){return 4}function _uuid_variant(e){return 1}_eglWaitGL.sig="i",_eglSwapInterval.sig="ipi",_eglMakeCurrent.sig="ipppp",_eglGetCurrentContext.sig="p",_eglGetCurrentSurface.sig="pi",_eglGetCurrentDisplay.sig="p",_eglSwapBuffers.sig="ipp",_eglReleaseThread.sig="i",_uuid_clear.sig="vp",_uuid_compare.sig="ipp",_uuid_copy.sig="vpp",_uuid_generate.sig="vp",_uuid_is_null.sig="ip",_uuid_parse.sig="ipp",_uuid_unparse.sig="vpp",_uuid_unparse_lower.sig="vpp",_uuid_unparse_upper.sig="vpp",_uuid_type.sig="ip",_uuid_variant.sig="ip";var GLEW={isLinaroFork:1,extensions:null,error:{0:null,1:null,2:null,3:null,4:null,5:null,6:null,7:null,8:null},version:{1:null,2:null,3:null,4:null},errorStringConstantFromCode(e){if(GLEW.isLinaroFork)switch(e){case 4:return"OpenGL ES lib expected, found OpenGL lib";case 5:return"OpenGL lib expected, found OpenGL ES lib";case 6:return"Missing EGL version";case 7:return"EGL 1.1 and up are supported"}switch(e){case 0:return"No error";case 1:return"Missing GL version";case 2:return"GL 1.1 and up are supported";case 3:return"GLX 1.2 and up are supported";default:return null}},errorString(e){if(!GLEW.error[e]){var r=GLEW.errorStringConstantFromCode(e);r||(r="Unknown error",e=8),GLEW.error[e]=stringToNewUTF8(r)}return GLEW.error[e]},versionStringConstantFromCode(e){switch(e){case 1:return"1.10.0";case 2:return"1";case 3:return"10";case 4:return"0";default:return null}},versionString(e){if(!GLEW.version[e]){var r=GLEW.versionStringConstantFromCode(e);if(!r)return 0;GLEW.version[e]=stringToNewUTF8(r)}return GLEW.version[e]},extensionIsSupported:e=>(GLEW.extensions||(GLEW.extensions=webglGetExtensions()),GLEW.extensions.includes(e)?1:GLEW.extensions.includes("GL_"+e))},_glewInit=()=>0;function _glewIsSupported(e){for(var r=UTF8ToString(e>>>=0).split(" "),t=0;t>>=0,GLEW.extensionIsSupported(UTF8ToString(e))}function _glewGetErrorString(e){return GLEW.errorString(e)}function _glewGetString(e){return GLEW.versionString(e)}_glewInit.sig="i",_glewIsSupported.sig="ip",_glewGetExtension.sig="ip",_glewGetErrorString.sig="pi",_glewGetString.sig="pi";var IDBStore={indexedDB(){if(typeof indexedDB<"u")return indexedDB;var e=null;return"object"==typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),assert(e,"IDBStore used, but indexedDB not supported"),e},DB_VERSION:22,DB_STORE_NAME:"FILE_DATA",dbs:{},blobs:[0],getDB(e,r){var t,n=IDBStore.dbs[e];if(n)return r(null,n);try{t=IDBStore.indexedDB().open(e,IDBStore.DB_VERSION)}catch(e){return r(e)}t.onupgradeneeded=e=>{var r=e.target.result,t=e.target.transaction;r.objectStoreNames.contains(IDBStore.DB_STORE_NAME)?t.objectStore(IDBStore.DB_STORE_NAME):r.createObjectStore(IDBStore.DB_STORE_NAME)},t.onsuccess=()=>{n=t.result,IDBStore.dbs[e]=n,r(null,n)},t.onerror=function(e){r(e.target.error||"unknown error"),e.preventDefault()}},getStore(e,r,t){IDBStore.getDB(e,((e,n)=>{if(e)return t(e);var a=n.transaction([IDBStore.DB_STORE_NAME],r);a.onerror=e=>{t(e.target.error||"unknown error"),e.preventDefault()};var i=a.objectStore(IDBStore.DB_STORE_NAME);t(null,i)}))},getFile(e,r,t){IDBStore.getStore(e,"readonly",((e,n)=>{if(e)return t(e);var a=n.get(r);a.onsuccess=e=>{var n=e.target.result;return n?t(null,n):t("file ".concat(r," not found"))},a.onerror=t}))},setFile(e,r,t,n){IDBStore.getStore(e,"readwrite",((e,a)=>{if(e)return n(e);var i=a.put(t,r);i.onsuccess=e=>n(),i.onerror=n}))},deleteFile(e,r,t){IDBStore.getStore(e,"readwrite",((e,n)=>{if(e)return t(e);var a=n.delete(r);a.onsuccess=e=>t(),a.onerror=t}))},existsFile(e,r,t){IDBStore.getStore(e,"readonly",((e,n)=>{if(e)return t(e);var a=n.count(r);a.onsuccess=e=>t(null,e.target.result>0),a.onerror=t}))},clearStore(e,r){IDBStore.getStore(e,"readwrite",((e,t)=>{if(e)return r(e);var n=t.clear();n.onsuccess=e=>r(),n.onerror=r}))}},_emscripten_idb_async_load=function(e,r,t,n,a){e>>>=0,r>>>=0,t>>>=0,n>>>=0,a>>>=0,runtimeKeepalivePush(),IDBStore.getFile(UTF8ToString(e),UTF8ToString(r),((e,r)=>{runtimeKeepalivePop(),callUserCallback((()=>{if(e)a&&getWasmTableEntry(a)(t);else{var i=_malloc(r.length);GROWABLE_HEAP_U8().set(r,i>>>0),getWasmTableEntry(n)(t,i,r.length),_free(i)}}))}))};_emscripten_idb_async_load.sig="vppppp";var _emscripten_idb_async_store=function(e,r,t,n,a,i,_){e>>>=0,r>>>=0,t>>>=0,a>>>=0,i>>>=0,_>>>=0,runtimeKeepalivePush(),IDBStore.setFile(UTF8ToString(e),UTF8ToString(r),new Uint8Array(GROWABLE_HEAP_U8().subarray(t>>>0,t+n>>>0)),(e=>{runtimeKeepalivePop(),callUserCallback((()=>{e?_&&getWasmTableEntry(_)(a):i&&getWasmTableEntry(i)(a)}))}))};_emscripten_idb_async_store.sig="vpppippp";var _emscripten_idb_async_delete=function(e,r,t,n,a){e>>>=0,r>>>=0,t>>>=0,n>>>=0,a>>>=0,runtimeKeepalivePush(),IDBStore.deleteFile(UTF8ToString(e),UTF8ToString(r),(e=>{runtimeKeepalivePop(),callUserCallback((()=>{e?a&&getWasmTableEntry(a)(t):n&&getWasmTableEntry(n)(t)}))}))};_emscripten_idb_async_delete.sig="vppppp";var _emscripten_idb_async_exists=function(e,r,t,n,a){e>>>=0,r>>>=0,t>>>=0,n>>>=0,a>>>=0,runtimeKeepalivePush(),IDBStore.existsFile(UTF8ToString(e),UTF8ToString(r),((e,r)=>{runtimeKeepalivePop(),callUserCallback((()=>{e?a&&getWasmTableEntry(a)(t):n&&getWasmTableEntry(n)(t,r)}))}))};_emscripten_idb_async_exists.sig="vppppp";var _emscripten_idb_async_clear=function(e,r,t,n){e>>>=0,r>>>=0,t>>>=0,n>>>=0,runtimeKeepalivePush(),IDBStore.clearStore(UTF8ToString(e),(e=>{runtimeKeepalivePop(),callUserCallback((()=>{e?n&&getWasmTableEntry(n)(r):t&&getWasmTableEntry(t)(r)}))}))};function _emscripten_idb_load(e,r,t,n,a){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_load, etc."}function _emscripten_idb_store(e,r,t,n,a){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_store, etc."}function _emscripten_idb_delete(e,r,t){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_delete, etc."}function _emscripten_idb_exists(e,r,t,n){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_exists, etc."}function _emscripten_idb_clear(e,r){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_clear, etc."}_emscripten_idb_async_clear.sig="vpppp",_emscripten_idb_load.sig="vppppp",_emscripten_idb_store.sig="vpppip",_emscripten_idb_delete.sig="vppp",_emscripten_idb_exists.sig="vpppp",_emscripten_idb_clear.sig="vpp";var runAndAbortIfError=e=>{try{return e()}catch(e){abort(e)}},_emscripten_sleep=()=>{throw"Please compile your program with async support in order to use asynchronous operations like emscripten_sleep"};function _emscripten_scan_registers(e){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_scan_registers"}function _emscripten_fiber_swap(e,r){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_fiber_swap"}function _SDL_GetTicks(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(299,0,1):Date.now()-SDL.startTime|0}function _SDL_LockSurface(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(300,0,1,e);e>>>=0;var r=SDL.surfaces[e];if(r.locked++,r.locked>1||(r.buffer||(r.buffer=_malloc(r.width*r.height*4),GROWABLE_HEAP_U32()[e+20>>>2>>>0]=r.buffer),GROWABLE_HEAP_U32()[e+20>>>2>>>0]=r.buffer,e==SDL.screen&&Module.screenIsReadOnly&&r.image))return 0;if(SDL.defaults.discardOnLock){if(r.image||(r.image=r.ctx.createImageData(r.width,r.height)),!SDL.defaults.opaqueFrontBuffer)return}else r.image=r.ctx.getImageData(0,0,r.width,r.height);if(e==SDL.screen&&SDL.defaults.opaqueFrontBuffer)for(var t=r.image.data,n=t.length,a=0;a>>0)}return 0}_emscripten_sleep.sig="vi",_emscripten_scan_registers.sig="vp",_emscripten_fiber_swap.sig="vpp",_SDL_GetTicks.sig="i",_SDL_LockSurface.sig="ip";var SDL={defaults:{width:320,height:200,copyOnLock:!0,discardOnLock:!1,opaqueFrontBuffer:!0},version:null,surfaces:{},canvasPool:[],events:[],fonts:[null],audios:[null],rwops:[null],music:{audio:null,volume:1},mixerFrequency:22050,mixerFormat:32784,mixerNumChannels:2,mixerChunkSize:1024,channelMinimumNumber:0,GL:!1,glAttributes:{0:3,1:3,2:2,3:0,4:0,5:1,6:16,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:1,16:0,17:0,18:0},keyboardState:null,keyboardMap:{},canRequestFullscreen:!1,isRequestingFullscreen:!1,textInput:!1,unicode:!1,ttfContext:null,audio:null,startTime:null,initFlags:0,buttonState:0,modState:0,DOMButtons:[0,0,0],DOMEventToSDLEvent:{},TOUCH_DEFAULT_ID:0,eventHandler:null,eventHandlerContext:null,eventHandlerTemp:0,keyCodes:{16:1249,17:1248,18:1250,20:1081,33:1099,34:1102,35:1101,36:1098,37:1104,38:1106,39:1103,40:1105,44:316,45:1097,46:127,91:1251,93:1125,96:1122,97:1113,98:1114,99:1115,100:1116,101:1117,102:1118,103:1119,104:1120,105:1121,106:1109,107:1111,109:1110,110:1123,111:1108,112:1082,113:1083,114:1084,115:1085,116:1086,117:1087,118:1088,119:1089,120:1090,121:1091,122:1092,123:1093,124:1128,125:1129,126:1130,127:1131,128:1132,129:1133,130:1134,131:1135,132:1136,133:1137,134:1138,135:1139,144:1107,160:94,161:33,162:34,163:35,164:36,165:37,166:38,167:95,168:40,169:41,170:42,171:43,172:124,173:45,174:123,175:125,176:126,181:127,182:129,183:128,188:44,190:46,191:47,192:96,219:91,220:92,221:93,222:39,224:1251},scanCodes:{8:42,9:43,13:40,27:41,32:44,35:204,39:53,44:54,46:55,47:56,48:39,49:30,50:31,51:32,52:33,53:34,54:35,55:36,56:37,57:38,58:203,59:51,61:46,91:47,92:49,93:48,96:52,97:4,98:5,99:6,100:7,101:8,102:9,103:10,104:11,105:12,106:13,107:14,108:15,109:16,110:17,111:18,112:19,113:20,114:21,115:22,116:23,117:24,118:25,119:26,120:27,121:28,122:29,127:76,305:224,308:226,316:70},loadRect:e=>({x:GROWABLE_HEAP_I32()[e+0>>>2>>>0],y:GROWABLE_HEAP_I32()[e+4>>>2>>>0],w:GROWABLE_HEAP_I32()[e+8>>>2>>>0],h:GROWABLE_HEAP_I32()[e+12>>>2>>>0]}),updateRect(e,r){GROWABLE_HEAP_I32()[e>>>2>>>0]=r.x,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=r.y,GROWABLE_HEAP_I32()[e+8>>>2>>>0]=r.w,GROWABLE_HEAP_I32()[e+12>>>2>>>0]=r.h},intersectionOfRects(e,r){var t=Math.max(e.x,r.x),n=Math.max(e.y,r.y),a=Math.min(e.x+e.w,r.x+r.w),i=Math.min(e.y+e.h,r.y+r.h);return{x:t,y:n,w:Math.max(t,a)-t,h:Math.max(n,i)-n}},checkPixelFormat(e){},loadColorToCSSRGB(e){var r=GROWABLE_HEAP_I32()[e>>>2>>>0];return"rgb("+(255&r)+","+(r>>8&255)+","+(r>>16&255)+")"},loadColorToCSSRGBA(e){var r=GROWABLE_HEAP_I32()[e>>>2>>>0];return"rgba("+(255&r)+","+(r>>8&255)+","+(r>>16&255)+","+(r>>24&255)/255+")"},translateColorToCSSRGBA:e=>"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>>24)/255+")",translateRGBAToCSSRGBA:(e,r,t,n)=>"rgba("+(255&e)+","+(255&r)+","+(255&t)+","+(255&n)/255+")",translateRGBAToColor:(e,r,t,n)=>e|r<<8|t<<16|n<<24,makeSurface(e,r,t,n,a,i,_,s,o){var l,c=1&t,u=2097152&t,d=67108864&t,p=_malloc(60),m=_malloc(44),f=u?1:4,g=0;!c&&!d&&(g=_malloc(e*r*4)),GROWABLE_HEAP_I32()[p>>>2>>>0]=t,GROWABLE_HEAP_U32()[p+4>>>2>>>0]=m,GROWABLE_HEAP_I32()[p+8>>>2>>>0]=e,GROWABLE_HEAP_I32()[p+12>>>2>>>0]=r,GROWABLE_HEAP_I32()[p+16>>>2>>>0]=e*f,GROWABLE_HEAP_U32()[p+20>>>2>>>0]=g,GROWABLE_HEAP_I32()[p+36>>>2>>>0]=0,GROWABLE_HEAP_I32()[p+40>>>2>>>0]=0,GROWABLE_HEAP_I32()[p+44>>>2>>>0]=Module.canvas.width,GROWABLE_HEAP_I32()[p+48>>>2>>>0]=Module.canvas.height,GROWABLE_HEAP_I32()[p+56>>>2>>>0]=1,GROWABLE_HEAP_I32()[m>>>2>>>0]=-2042224636,GROWABLE_HEAP_I32()[m+4>>>2>>>0]=0,GROWABLE_HEAP_I8()[m+8>>>0]=8*f,GROWABLE_HEAP_I8()[m+9>>>0]=f,GROWABLE_HEAP_I32()[m+12>>>2>>>0]=i||255,GROWABLE_HEAP_I32()[m+16>>>2>>>0]=_||65280,GROWABLE_HEAP_I32()[m+20>>>2>>>0]=s||16711680,GROWABLE_HEAP_I32()[m+24>>>2>>>0]=o||4278190080,SDL.GL=SDL.GL||d,n?l=Module.canvas:((l=SDL.canvasPool.length>0?SDL.canvasPool.pop():document.createElement("canvas")).width=e,l.height=r);var E={antialias:0!=SDL.glAttributes[13]&&SDL.glAttributes[14]>1,depth:SDL.glAttributes[6]>0,stencil:SDL.glAttributes[7]>0,alpha:SDL.glAttributes[3]>0},h=Browser.createContext(l,d,n,E);return SDL.surfaces[p]={width:e,height:r,canvas:l,ctx:h,surf:p,buffer:g,pixelFormat:m,alpha:255,flags:t,locked:0,usePageCanvas:n,source:a,isFlagSet:e=>t&e},p},copyIndexedColorData(e,r,t,n,a){if(e.colors){var i=Module.canvas.width,_=Module.canvas.height,s=r||0,o=t||0,l=(n||i-s)+s,c=(a||_-o)+o,u=e.buffer;e.image.data32||(e.image.data32=new Uint32Array(e.image.data.buffer));for(var d=e.image.data32,p=e.colors32,m=o;m>>0]]}},freeSurface(e){var r=e+56,t=GROWABLE_HEAP_I32()[r>>>2>>>0];if(t>1)GROWABLE_HEAP_I32()[r>>>2>>>0]=t-1;else{var n=SDL.surfaces[e];!n.usePageCanvas&&n.canvas&&SDL.canvasPool.push(n.canvas),n.buffer&&_free(n.buffer),_free(n.pixelFormat),_free(e),SDL.surfaces[e]=null,e===SDL.screen&&(SDL.screen=null)}},blitSurface(e,r,t,n,a){var i,_,s,o,l=SDL.surfaces[e],c=SDL.surfaces[t];if(i=r?SDL.loadRect(r):{x:0,y:0,w:l.width,h:l.height},_=n?SDL.loadRect(n):{x:0,y:0,w:l.width,h:l.height},c.clipRect){var u=a&&0!==i.w?i.w/_.w:1,d=a&&0!==i.h?i.h/_.h:1;_=SDL.intersectionOfRects(c.clipRect,_),i.w=_.w*u,i.h=_.h*d,n&&SDL.updateRect(n,_)}if(a?(s=_.w,o=_.h):(s=i.w,o=i.h),0===i.w||0===i.h||0===s||0===o)return 0;var p=c.ctx.globalAlpha;return c.ctx.globalAlpha=l.alpha/255,c.ctx.drawImage(l.canvas,i.x,i.y,i.w,i.h,_.x,_.y,s,o),c.ctx.globalAlpha=p,t!=SDL.screen&&(warnOnce("WARNING: copying canvas data to memory for compatibility"),_SDL_LockSurface(t),c.locked--),0},downFingers:{},savedKeydown:null,receiveEvent(e){function r(){for(var e in SDL.keyboardMap)SDL.events.push({type:"keyup",keyCode:SDL.keyboardMap[e]})}switch(e.type){case"touchstart":case"touchmove":e.preventDefault();var t=[];if("touchstart"===e.type)for(var n=0;n0?Math.max(o,1):Math.min(o,-1))>0?3:4;SDL.events.push({type:"mousedown",button:l,pageX:e.pageX,pageY:e.pageY}),SDL.events.push({type:"mouseup",button:l,pageX:e.pageX,pageY:e.pageY}),SDL.events.push({type:"wheel",deltaX:0,deltaY:o}),e.preventDefault();break;case"mousemove":if(1===SDL.DOMButtons[0]&&SDL.events.push({type:"touchmove",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}}),Browser.pointerLock&&("mozMovementX"in e&&(e.movementX=e.mozMovementX,e.movementY=e.mozMovementY),0==e.movementX&&0==e.movementY))return void e.preventDefault();case"keydown":case"keyup":case"keypress":case"mousedown":case"mouseup":if(("keydown"!==e.type||!SDL.unicode&&!SDL.textInput||8===e.keyCode||9===e.keyCode)&&e.preventDefault(),"mousedown"==e.type)SDL.DOMButtons[e.button]=1,SDL.events.push({type:"touchstart",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}});else if("mouseup"==e.type){if(!SDL.DOMButtons[e.button])return;SDL.events.push({type:"touchend",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}}),SDL.DOMButtons[e.button]=0}"keydown"===e.type||"mousedown"===e.type?SDL.canRequestFullscreen=!0:("keyup"===e.type||"mouseup"===e.type)&&(SDL.isRequestingFullscreen&&(Module.requestFullscreen(!0,!0),SDL.isRequestingFullscreen=!1),SDL.canRequestFullscreen=!1),"keypress"===e.type&&SDL.savedKeydown?(SDL.savedKeydown.keypressCharCode=e.charCode,SDL.savedKeydown=null):"keydown"===e.type&&(SDL.savedKeydown=e),("keypress"!==e.type||SDL.textInput)&&SDL.events.push(e);break;case"mouseout":for(n=0;n<3;n++)SDL.DOMButtons[n]&&(SDL.events.push({type:"mouseup",button:n,pageX:e.pageX,pageY:e.pageY}),SDL.DOMButtons[n]=0);e.preventDefault();break;case"focus":SDL.events.push(e),e.preventDefault();break;case"blur":SDL.events.push(e),r(),e.preventDefault();break;case"visibilitychange":SDL.events.push({type:"visibilitychange",visible:!document.hidden}),r(),e.preventDefault();break;case"unload":return void(Browser.mainLoop.runner&&(SDL.events.push(e),Browser.mainLoop.runner()));case"resize":SDL.events.push(e),e.preventDefault&&e.preventDefault()}SDL.events.length>=1e4&&(err("SDL event queue full, dropping events"),SDL.events=SDL.events.slice(0,1e4)),SDL.flushEventsToHandler()},lookupKeyCodeForEvent(e){var r=e.keyCode;return r>=65&&r<=90?r+=32:(r=SDL.keyCodes[e.keyCode]||e.keyCode,2===e.location&&r>=1248&&r<=1251&&(r+=4)),r},handleEvent(e){if(!e.handled)switch(e.handled=!0,e.type){case"touchstart":case"touchend":case"touchmove":Browser.calculateMouseEvent(e);break;case"keydown":case"keyup":var r="keydown"===e.type,t=SDL.lookupKeyCodeForEvent(e);GROWABLE_HEAP_I8()[SDL.keyboardState+t>>>0]=r,SDL.modState=(GROWABLE_HEAP_I8()[SDL.keyboardState+1248>>>0]?64:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1249>>>0]?1:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1250>>>0]?256:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1252>>>0]?128:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1253>>>0]?2:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1254>>>0]?512:0),r?SDL.keyboardMap[t]=e.keyCode:delete SDL.keyboardMap[t];break;case"mousedown":case"mouseup":"mousedown"==e.type?SDL.buttonState|=1<0;)if(!1!==SDL.makeCEvent(SDL.events.shift(),e))return 1;return 0}return SDL.events.length>0},makeCEvent(e,r){if("number"==typeof e)return _memcpy(r,e,28),void _free(e);switch(SDL.handleEvent(e),e.type){case"keydown":case"keyup":var t,n="keydown"===e.type,a=SDL.lookupKeyCodeForEvent(e);t=a>=1024?a-1024:SDL.scanCodes[a]||a,GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I8()[r+8>>>0]=n?1:0,GROWABLE_HEAP_I8()[r+9>>>0]=0,GROWABLE_HEAP_I32()[r+12>>>2>>>0]=t,GROWABLE_HEAP_I32()[r+16>>>2>>>0]=a,GROWABLE_HEAP_I16()[r+20>>>1>>>0]=SDL.modState,GROWABLE_HEAP_I32()[r+24>>>2>>>0]=e.keypressCharCode||a;break;case"keypress":GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type];for(var i=intArrayFromString(String.fromCharCode(e.charCode)),_=0;_>>0]=i[_];break;case"mousedown":case"mouseup":case"mousemove":"mousemove"!=e.type?(n="mousedown"===e.type,GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=0,GROWABLE_HEAP_I32()[r+8>>>2>>>0]=0,GROWABLE_HEAP_I32()[r+12>>>2>>>0]=0,GROWABLE_HEAP_I8()[r+16>>>0]=e.button+1,GROWABLE_HEAP_I8()[r+17>>>0]=n?1:0,GROWABLE_HEAP_I32()[r+20>>>2>>>0]=Browser.mouseX,GROWABLE_HEAP_I32()[r+24>>>2>>>0]=Browser.mouseY):(GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=0,GROWABLE_HEAP_I32()[r+8>>>2>>>0]=0,GROWABLE_HEAP_I32()[r+12>>>2>>>0]=0,GROWABLE_HEAP_I32()[r+16>>>2>>>0]=SDL.buttonState,GROWABLE_HEAP_I32()[r+20>>>2>>>0]=Browser.mouseX,GROWABLE_HEAP_I32()[r+24>>>2>>>0]=Browser.mouseY,GROWABLE_HEAP_I32()[r+28>>>2>>>0]=Browser.mouseMovementX,GROWABLE_HEAP_I32()[r+32>>>2>>>0]=Browser.mouseMovementY);break;case"wheel":GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[r+16>>>2>>>0]=e.deltaX,GROWABLE_HEAP_I32()[r+20>>>2>>>0]=e.deltaY;break;case"touchstart":case"touchend":case"touchmove":var s=e.touch;if(!Browser.touches[s.identifier])break;var o=Module.canvas.width,l=Module.canvas.height,c=Browser.touches[s.identifier].x/o,u=Browser.touches[s.identifier].y/l,d=c-Browser.lastTouches[s.identifier].x/o,p=u-Browser.lastTouches[s.identifier].y/l;if(void 0===s.deviceID&&(s.deviceID=SDL.TOUCH_DEFAULT_ID),0===d&&0===p&&"touchmove"===e.type)return!1;GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=_SDL_GetTicks(),tempI64=[s.deviceID>>>0,(tempDouble=s.deviceID,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+8>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+12>>>2>>>0]=tempI64[1],tempI64=[s.identifier>>>0,(tempDouble=s.identifier,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+16>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+20>>>2>>>0]=tempI64[1],GROWABLE_HEAP_F32()[r+24>>>2>>>0]=c,GROWABLE_HEAP_F32()[r+28>>>2>>>0]=u,GROWABLE_HEAP_F32()[r+32>>>2>>>0]=d,GROWABLE_HEAP_F32()[r+36>>>2>>>0]=p,void 0!==s.force?GROWABLE_HEAP_F32()[r+40>>>2>>>0]=s.force:GROWABLE_HEAP_F32()[r+40>>>2>>>0]="touchend"==e.type?0:1;break;case"unload":GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type];break;case"resize":GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=e.w,GROWABLE_HEAP_I32()[r+8>>>2>>>0]=e.h;break;case"joystick_button_up":case"joystick_button_down":var m="joystick_button_up"===e.type?0:1;GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I8()[r+4>>>0]=e.index,GROWABLE_HEAP_I8()[r+5>>>0]=e.button,GROWABLE_HEAP_I8()[r+6>>>0]=m;break;case"joystick_axis_motion":GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I8()[r+4>>>0]=e.index,GROWABLE_HEAP_I8()[r+5>>>0]=e.axis,GROWABLE_HEAP_I32()[r+8>>>2>>>0]=SDL.joystickAxisValueConversion(e.value);break;case"focus":GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=0,GROWABLE_HEAP_I8()[r+8>>>0]=12;break;case"blur":GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=0,GROWABLE_HEAP_I8()[r+8>>>0]=13;break;case"visibilitychange":var f=e.visible?1:2;GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=0,GROWABLE_HEAP_I8()[r+8>>>0]=f;break;default:throw"Unhandled SDL event: "+e.type}},makeFontString:(e,r)=>("'"!=r.charAt(0)&&'"'!=r.charAt(0)&&(r='"'+r+'"'),e+"px "+r+", serif"),estimateTextWidth(e,r){var t=e.size,n=SDL.makeFontString(t,e.name),a=SDL.ttfContext;return a.font=n,0|a.measureText(r).width},allocateChannels(e){if(!(SDL.numChannels&&SDL.numChannels>=e&&0!=e)){SDL.numChannels=e,SDL.channels=[];for(var r=0;r{e.paused||SDL.playWebAudio(e)}));e.webAudioNode=SDL.audioContext.createBufferSource(),e.webAudioNode.buffer=r.decodedBuffer,e.webAudioNode.loop=e.loop,e.webAudioNode.onended=e.onended,e.webAudioPannerNode=SDL.audioContext.createPanner(),e.webAudioPannerNode.setPosition(0,0,-.5),e.webAudioPannerNode.panningModel="equalpower",e.webAudioGainNode=SDL.audioContext.createGain(),e.webAudioGainNode.gain.value=e.volume,e.webAudioNode.connect(e.webAudioPannerNode),e.webAudioPannerNode.connect(e.webAudioGainNode),e.webAudioGainNode.connect(SDL.audioContext.destination),e.webAudioNode.start(0,e.currentPosition),e.startTime=SDL.audioContext.currentTime-e.currentPosition}catch(e){err("playWebAudio failed: ".concat(e))}},pauseWebAudio(e){if(e){if(e.webAudioNode)try{e.currentPosition=(SDL.audioContext.currentTime-e.startTime)%e.resource.webAudio.decodedBuffer.duration,e.webAudioNode.onended=void 0,e.webAudioNode.stop(0),e.webAudioNode=void 0}catch(e){err("pauseWebAudio failed: ".concat(e))}e.paused=!0}},openAudioContext(){SDL.audioContext||(typeof AudioContext<"u"?SDL.audioContext=new AudioContext:typeof webkitAudioContext<"u"&&(SDL.audioContext=new webkitAudioContext))},webAudioAvailable:()=>!!SDL.audioContext,fillWebAudioBufferFromHeap(e,r,t){for(var n=SDL.audio,a=n.channels,i=0;i>>1>>>0]/32768;else if(8==n.format)for(s=0;s>>0];_[s]=(o>=0?o-128:o+128)/128}else{if(33056!=n.format)throw"Invalid SDL audio format "+n.format+"!";for(s=0;s>>2>>>0]}}},joystickEventState:1,lastJoystickState:{},joystickNamePool:{},recordJoystickState(e,r){for(var t=new Array(r.buttons.length),n=0;n"object"==typeof e?e.pressed:e>0,queryJoysticks(){for(var e in SDL.lastJoystickState){var r=SDL.getGamepad(e-1),t=SDL.lastJoystickState[e];if(typeof r>"u"||null===r)return;if("number"!=typeof r.timestamp||r.timestamp!=t.timestamp||!r.timestamp){var n;for(n=0;n(e=Math.min(1,Math.max(e,-1)),Math.ceil(32767.5*(e+1)-32768)),getGamepads(){var e=navigator.getGamepads||navigator.webkitGamepads||navigator.mozGamepads||navigator.gamepads||navigator.webkitGetGamepads;return void 0!==e?e.apply(navigator):[]},getGamepad(e){var r=SDL.getGamepads();return r.length>e&&e>=0?r[e]:null}};function _SDL_Linked_Version(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(301,0,1):(null===SDL.version&&(SDL.version=_malloc(3),GROWABLE_HEAP_I8()[SDL.version+0>>>0]=1,GROWABLE_HEAP_I8()[SDL.version+1>>>0]=3,GROWABLE_HEAP_I8()[SDL.version+2>>>0]=0),SDL.version)}function _SDL_Init(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(302,0,1,e);if(SDL.startTime=Date.now(),SDL.initFlags=e,!Module.doNotCaptureKeyboard){var r=Module.keyboardListeningElement||document;r.addEventListener("keydown",SDL.receiveEvent),r.addEventListener("keyup",SDL.receiveEvent),r.addEventListener("keypress",SDL.receiveEvent),window.addEventListener("focus",SDL.receiveEvent),window.addEventListener("blur",SDL.receiveEvent),document.addEventListener("visibilitychange",SDL.receiveEvent)}return window.addEventListener("unload",SDL.receiveEvent),SDL.keyboardState=_malloc(65536),zeroMemory(SDL.keyboardState,65536),SDL.DOMEventToSDLEvent.keydown=768,SDL.DOMEventToSDLEvent.keyup=769,SDL.DOMEventToSDLEvent.keypress=771,SDL.DOMEventToSDLEvent.mousedown=1025,SDL.DOMEventToSDLEvent.mouseup=1026,SDL.DOMEventToSDLEvent.mousemove=1024,SDL.DOMEventToSDLEvent.wheel=1027,SDL.DOMEventToSDLEvent.touchstart=1792,SDL.DOMEventToSDLEvent.touchend=1793,SDL.DOMEventToSDLEvent.touchmove=1794,SDL.DOMEventToSDLEvent.unload=256,SDL.DOMEventToSDLEvent.resize=28673,SDL.DOMEventToSDLEvent.visibilitychange=512,SDL.DOMEventToSDLEvent.focus=512,SDL.DOMEventToSDLEvent.blur=512,SDL.DOMEventToSDLEvent.joystick_axis_motion=1536,SDL.DOMEventToSDLEvent.joystick_button_down=1539,SDL.DOMEventToSDLEvent.joystick_button_up=1540,0}function _SDL_WasInit(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(303,0,1,e):(null===SDL.startTime&&_SDL_Init(0),1)}function _SDL_GetVideoInfo(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(304,0,1);var e=_malloc(20);return zeroMemory(e,3),GROWABLE_HEAP_I32()[e+12>>>2>>>0]=Module.canvas.width,GROWABLE_HEAP_I32()[e+16>>>2>>>0]=Module.canvas.height,e}function _SDL_ListModes(e,r){return-1}_SDL_Linked_Version.sig="p",_SDL_Init.sig="ii",_SDL_WasInit.sig="ii",_SDL_GetVideoInfo.sig="p",_SDL_ListModes.sig="ppi";var _SDL_VideoModeOK=(e,r,t,n)=>t;function _SDL_VideoDriverName(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(305,0,1,e,r);if(e>>>=0,null===SDL.startTime)return 0;var t=[101,109,115,99,114,105,112,116,101,110,95,115,100,108,95,100,114,105,118,101,114],n=0,a=t.length;for(r<=a&&(a=r-1);n>>0]=i,n++}return GROWABLE_HEAP_I8()[e+n>>>0]=0,e}_SDL_VideoModeOK.sig="iiiii",_SDL_VideoDriverName.sig="ppi";var _SDL_AudioDriverName=_SDL_VideoDriverName;_SDL_AudioDriverName.sig="ppi";var _SDL_SetVideoMode=function(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(306,0,1,e,r,t,n);["touchstart","touchend","touchmove","mousedown","mouseup","mousemove","mousewheel","wheel","mouseout","DOMMouseScroll"].forEach((e=>Module.canvas.addEventListener(e,SDL.receiveEvent,!0)));var a=Module.canvas;return 0==e&&0==r&&(e=a.width,r=a.height),SDL.addedResizeListener||(SDL.addedResizeListener=!0,Browser.resizeListeners.push(((e,r)=>{SDL.settingVideoMode||SDL.receiveEvent({type:"resize",w:e,h:r})}))),SDL.settingVideoMode=!0,Browser.setCanvasSize(e,r),SDL.settingVideoMode=!1,SDL.screen&&(SDL.freeSurface(SDL.screen),assert(!SDL.screen)),SDL.GL&&(n|=67108864),SDL.screen=SDL.makeSurface(e,r,n,!0,"screen"),SDL.screen};function _SDL_GetVideoSurface(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(307,0,1):SDL.screen}function _SDL_AudioQuit(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(308,0,1);for(var e=0;eout("SDL_VideoQuit called (and ignored)");_SDL_VideoQuit.sig="v";var _SDL_QuitSubSystem=e=>out("SDL_QuitSubSystem called (and ignored)");_SDL_QuitSubSystem.sig="vi";var _SDL_Quit=()=>{_SDL_AudioQuit(),out("SDL_Quit called (and ignored)")};function _SDL_UnlockSurface(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(309,0,1,e);e>>>=0,assert(!SDL.GL);var r=SDL.surfaces[e];if(r.locked&&!(--r.locked>0)){if(r.isFlagSet(2097152))SDL.copyIndexedColorData(r);else if(r.colors)for(var t=Module.canvas.width,n=Module.canvas.height,a=r.buffer,i=r.image.data,_=r.colors,s=0;s>>0],u=o+4*l;i[u]=_[c],i[u+1]=_[c+1],i[u+2]=_[c+2]}a+=3*t}else{i=r.image.data;var d=r.buffer;assert(d%4==0,"Invalid buffer offset: "+d);var p,m=d>>>2,f=0,g=e==SDL.screen;if(typeof CanvasPixelArray<"u"&&i instanceof CanvasPixelArray)for(p=i.length;f>>0],i[f]=255&c,i[f+1]=c>>8&255,i[f+2]=c>>16&255,i[f+3]=g?255:c>>24&255,m++,f+=4;else{var E=new Uint32Array(i.buffer);if(g&&SDL.defaults.opaqueFrontBuffer){p=E.length,E.set(GROWABLE_HEAP_I32().subarray(m>>>0,m+p>>>0));var h=new Uint8Array(i.buffer),v=3,S=v+4*p;if(p%8==0)for(;v>>0,m+E.length>>>0))}}r.ctx.putImageData(r.image,0,0)}}function _SDL_Flip(e){}function _SDL_UpdateRect(e,r,t,n,a){}function _SDL_UpdateRects(e,r,t){}_SDL_Quit.sig="v",_SDL_UnlockSurface.sig="vp",_SDL_Flip.sig="ip",_SDL_UpdateRect.sig="vpiiii",_SDL_UpdateRects.sig="vpip";var _SDL_Delay=e=>{ENVIRONMENT_IS_WORKER||abort("SDL_Delay called on the main thread! Potential infinite loop, quitting. (consider building with async support like ASYNCIFY)");for(var r=Date.now();Date.now()-r>>=0,(e>>>=0)&&_emscripten_set_window_title(e),r&&(r=UTF8ToString(r))}_SDL_Delay.sig="vi",_SDL_WM_SetCaption.sig="vpp";var _SDL_EnableKeyRepeat=(e,r)=>{};function _SDL_GetKeyboardState(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(311,0,1,e):((e>>>=0)&&(GROWABLE_HEAP_I32()[e>>>2>>>0]=65536),SDL.keyboardState)}_SDL_EnableKeyRepeat.sig="iii",_SDL_GetKeyboardState.sig="pp";var _SDL_GetKeyState=()=>_SDL_GetKeyboardState(0);function _SDL_GetKeyName(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(312,0,1,e):(SDL.keyName||(SDL.keyName=stringToNewUTF8("unknown key")),SDL.keyName)}function _SDL_GetModState(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(313,0,1):SDL.modState}function _SDL_GetMouseState(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(314,0,1,e,r):(r>>>=0,(e>>>=0)&&(GROWABLE_HEAP_I32()[e>>>2>>>0]=Browser.mouseX),r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=Browser.mouseY),SDL.buttonState)}function _SDL_WarpMouse(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(315,0,1,e,r)}function _SDL_ShowCursor(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(316,0,1,e);switch(e){case 0:return Browser.isFullscreen?(Module.canvas.requestPointerLock(),0):1;case 1:return Module.canvas.exitPointerLock(),1;case-1:return!Browser.pointerLock;default:err("SDL_ShowCursor called with unknown toggle parameter value: ".concat(e))}}function _SDL_GetError(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(317,0,1):(SDL.errorMessage||(SDL.errorMessage=stringToNewUTF8("unknown SDL-emscripten error")),SDL.errorMessage)}function _SDL_SetError(e,r){}function _SDL_CreateRGBSurface(e,r,t,n,a,i,_,s){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(318,0,1,e,r,t,n,a,i,_,s):SDL.makeSurface(r,t,e,!1,"CreateRGBSurface",a,i,_,s)}function _SDL_CreateRGBSurfaceFrom(e,r,t,n,a,i,_,s,o){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(319,0,1,e,r,t,n,a,i,_,s,o);e>>>=0;var l=SDL.makeSurface(r,t,0,!1,"CreateRGBSurfaceFrom",i,_,s,o);if(32!==n)return err("TODO: Partially unimplemented SDL_CreateRGBSurfaceFrom called!"),l;for(var c=SDL.surfaces[l],u=c.ctx.createImageData(r,t),d=4*r,p=0;p>>0];return c.ctx.putImageData(u,0,0),l}function _SDL_ConvertSurface(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(320,0,1,e,r,t);e>>>=0,(r>>>=0)&&SDL.checkPixelFormat(r);var n=SDL.surfaces[e],a=SDL.makeSurface(n.width,n.height,n.flags,!1,"copy:"+n.source),i=SDL.surfaces[a];return i.ctx.globalCompositeOperation="copy",i.ctx.drawImage(n.canvas,0,0),i.ctx.globalCompositeOperation=n.ctx.globalCompositeOperation,a}function _SDL_DisplayFormatAlpha(e){return _SDL_ConvertSurface(e>>>=0,0,0)}function _SDL_FreeSurface(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(321,0,1,e);(e>>>=0)&&SDL.freeSurface(e)}function _SDL_UpperBlit(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(322,0,1,e,r,t,n):(e>>>=0,r>>>=0,t>>>=0,n>>>=0,SDL.blitSurface(e,r,t,n,!1))}function _SDL_UpperBlitScaled(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(323,0,1,e,r,t,n):(e>>>=0,r>>>=0,t>>>=0,n>>>=0,SDL.blitSurface(e,r,t,n,!0))}_SDL_GetKeyName.sig="pi",_SDL_GetModState.sig="i",_SDL_GetMouseState.sig="ipp",_SDL_WarpMouse.sig="vii",_SDL_ShowCursor.sig="ii",_SDL_GetError.sig="p",_SDL_SetError.sig="vpp",_SDL_CreateRGBSurface.sig="piiiiiiii",_SDL_CreateRGBSurfaceFrom.sig="ppiiiiiiii",_SDL_ConvertSurface.sig="pppi",_SDL_DisplayFormatAlpha.sig="pp",_SDL_FreeSurface.sig="vp",_SDL_UpperBlit.sig="ipppp",_SDL_UpperBlitScaled.sig="ipppp";var _SDL_LowerBlit=_SDL_UpperBlit;_SDL_LowerBlit.sig="ipppp";var _SDL_LowerBlitScaled=_SDL_UpperBlitScaled;function _SDL_GetClipRect(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(324,0,1,e,r);e>>>=0,assert(r>>>=0);var t=SDL.surfaces[e],n=t.clipRect||{x:0,y:0,w:t.width,h:t.height};SDL.updateRect(r,n)}function _SDL_SetClipRect(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(325,0,1,e,r);e>>>=0,r>>>=0;var t=SDL.surfaces[e];r?t.clipRect=SDL.intersectionOfRects({x:0,y:0,w:t.width,h:t.height},SDL.loadRect(r)):delete t.clipRect}function _SDL_FillRect(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(326,0,1,e,r,t);e>>>=0,r>>>=0;var n=SDL.surfaces[e];assert(!n.locked),n.isFlagSet(2097152)&&(t=n.colors32[t]);var a=r?SDL.loadRect(r):{x:0,y:0,w:n.width,h:n.height};return n.clipRect&&(a=SDL.intersectionOfRects(n.clipRect,a),r&&SDL.updateRect(r,a)),n.ctx.save(),n.ctx.fillStyle=SDL.translateColorToCSSRGBA(t),n.ctx.fillRect(a.x,a.y,a.w,a.h),n.ctx.restore(),0}function _zoomSurface(e,r,t,n){e>>>=0;var a=SDL.surfaces[e],i=a.width*r,_=a.height*t,s=SDL.makeSurface(Math.abs(i),Math.abs(_),a.flags,!1,"zoomSurface"),o=SDL.surfaces[s];return r>=0&&t>=0?o.ctx.drawImage(a.canvas,0,0,i,_):(o.ctx.save(),o.ctx.scale(r<0?-1:1,t<0?-1:1),o.ctx.drawImage(a.canvas,i<0?i:0,_<0?_:0,Math.abs(i),Math.abs(_)),o.ctx.restore()),s}function _rotozoomSurface(e,r,t,n){if(e>>>=0,r%360==0)return _zoomSurface(e,t,t,n);var a=SDL.surfaces[e],i=a.width*t,_=a.height*t,s=Math.ceil(Math.sqrt(Math.pow(i,2)+Math.pow(_,2))),o=SDL.makeSurface(s,s,a.flags,!1,"rotozoomSurface"),l=SDL.surfaces[o];return l.ctx.translate(s/2,s/2),l.ctx.rotate(-r*Math.PI/180),l.ctx.drawImage(a.canvas,-i/2,-_/2,i,_),o}function _SDL_SetAlpha(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(327,0,1,e,r,t);e>>>=0;var n=SDL.surfaces[e];n.alpha=t,65536&r||(n.alpha=255)}function _SDL_SetColorKey(e,r,t){return warnOnce("SDL_SetColorKey is a no-op for performance reasons"),0}function _SDL_PollEvent(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(328,0,1,e):(e>>>=0,SDL.pollEvent(e))}function _SDL_PushEvent(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(329,0,1,e);e>>>=0;var r=_malloc(28);return _memcpy(r,e,28),SDL.events.push(r),0}function _SDL_PeepEvents(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(330,0,1,e,r,t,n,a);if(2===(e>>>=0,t)){assert(1==r);for(var i=0,_=0;i>>=0,r>>>=0,SDL.eventHandler=e,SDL.eventHandlerContext=r,SDL.eventHandlerTemp||(SDL.eventHandlerTemp=_malloc(28))}function _SDL_SetColors(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(333,0,1,e,r,t,n);e>>>=0,r>>>=0;var a=SDL.surfaces[e];if(!a.colors){var i=new ArrayBuffer(1024);a.colors=new Uint8Array(i),a.colors32=new Uint32Array(i)}for(var _=0;_>>0],a.colors[s+1]=GROWABLE_HEAP_U8()[r+(4*_+1)>>>0],a.colors[s+2]=GROWABLE_HEAP_U8()[r+(4*_+2)>>>0],a.colors[s+3]=255}return 1}function _SDL_SetPalette(e,r,t,n,a){return _SDL_SetColors(e>>>=0,t>>>=0,n,a)}function _SDL_MapRGB(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(334,0,1,e,r,t,n):(e>>>=0,SDL.checkPixelFormat(e),255&r|(255&t)<<8|(255&n)<<16|4278190080)}function _SDL_MapRGBA(e,r,t,n,a){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(335,0,1,e,r,t,n,a):(e>>>=0,SDL.checkPixelFormat(e),255&r|(255&t)<<8|(255&n)<<16|(255&a)<<24)}function _SDL_GetRGB(e,r,t,n,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(336,0,1,e,r,t,n,a);r>>>=0,t>>>=0,n>>>=0,a>>>=0,SDL.checkPixelFormat(r),t&&(GROWABLE_HEAP_I8()[t>>>0]=255&e),n&&(GROWABLE_HEAP_I8()[n>>>0]=e>>8&255),a&&(GROWABLE_HEAP_I8()[a>>>0]=e>>16&255)}function _SDL_GetRGBA(e,r,t,n,a,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(337,0,1,e,r,t,n,a,i);r>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,SDL.checkPixelFormat(r),t&&(GROWABLE_HEAP_I8()[t>>>0]=255&e),n&&(GROWABLE_HEAP_I8()[n>>>0]=e>>8&255),a&&(GROWABLE_HEAP_I8()[a>>>0]=e>>16&255),i&&(GROWABLE_HEAP_I8()[i>>>0]=e>>24&255)}function _SDL_GetAppState(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(338,0,1);var e=0;return Browser.pointerLock&&(e|=1),document.hasFocus()&&(e|=2),4|e}_SDL_LowerBlitScaled.sig="ipppp",_SDL_GetClipRect.sig="vpp",_SDL_SetClipRect.sig="ipp",_SDL_FillRect.sig="ippi",_zoomSurface.sig="ppddi",_rotozoomSurface.sig="ppddi",_SDL_SetAlpha.sig="ipii",_SDL_SetColorKey.sig="ipii",_SDL_PollEvent.sig="ip",_SDL_PushEvent.sig="ip",_SDL_PeepEvents.sig="ipiiii",_SDL_PumpEvents.sig="v",_emscripten_SDL_SetEventHandler.sig="vpp",_SDL_SetColors.sig="ippii",_SDL_SetPalette.sig="ipipii",_SDL_MapRGB.sig="ipiii",_SDL_MapRGBA.sig="ipiiii",_SDL_GetRGB.sig="vipppp",_SDL_GetRGBA.sig="vippppp",_SDL_GetAppState.sig="i";var _SDL_WM_GrabInput=()=>{};function _SDL_WM_ToggleFullScreen(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(339,0,1,e):(e>>>=0,Browser.exitFullscreen()?1:SDL.canRequestFullscreen?(SDL.isRequestingFullscreen=!0,1):0)}_SDL_WM_GrabInput.sig="ii",_SDL_WM_ToggleFullScreen.sig="ip";var _IMG_Init=e=>e;function _SDL_FreeRW(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(341,0,1,e);for(e>>>=0,SDL.rwops[e]=null;SDL.rwops.length>0&&null===SDL.rwops[SDL.rwops.length-1];)SDL.rwops.pop()}_IMG_Init.sig="ii",_SDL_FreeRW.sig="vp";var _IMG_Load_RW=function(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(340,0,1,e,r);e>>>=0;try{var t=()=>{n&&r&&_SDL_FreeRW(e)},n=SDL.rwops[e];if(void 0===n)return 0;var a,i=n.filename;if(void 0===i)return warnOnce("Only file names that have been preloaded are supported for IMG_Load_RW. Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins"),0;if(!a){if(i=PATH_FS.resolve(i),!(a=preloadedImages[i]))return null===a&&err("Trying to reuse preloaded image, but freePreloadedMediaOnUse is set!"),warnOnce("Cannot find preloaded image "+i),warnOnce("Cannot find preloaded image "+i+". Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins"),0;Module.freePreloadedMediaOnUse&&(preloadedImages[i]=null)}var _=SDL.makeSurface(a.width,a.height,0,!1,"load:"+i),s=SDL.surfaces[_];if(s.ctx.globalCompositeOperation="copy",a.rawData){var o=s.ctx.getImageData(0,0,s.width,s.height);if(4==a.bpp)o.data.set(GROWABLE_HEAP_U8().subarray(a.data>>>0,a.data+a.size>>>0));else if(3==a.bpp)for(var l=a.size/3,c=o.data,u=a.data,d=0,p=0;p>>0],c[d++]=GROWABLE_HEAP_U8()[u++>>>0],c[d++]=GROWABLE_HEAP_U8()[u++>>>0],c[d++]=255;else if(2==a.bpp)for(l=a.size,c=o.data,u=a.data,d=0,p=0;p>>0],f=GROWABLE_HEAP_U8()[u++>>>0];c[d++]=m,c[d++]=m,c[d++]=m,c[d++]=f}else{if(1!=a.bpp)return err("cannot handle bpp ".concat(a.bpp)),0;for(l=a.size,c=o.data,u=a.data,d=0,p=0;p>>0];c[d++]=g,c[d++]=g,c[d++]=g,c[d++]=255}}s.ctx.putImageData(o,0,0)}else s.ctx.drawImage(a,0,0,a.width,a.height,0,0,a.width,a.height);return s.ctx.globalCompositeOperation="source-over",_SDL_LockSurface(_),s.locked--,SDL.GL&&(s.canvas=s.ctx=null),_}finally{t()}};_IMG_Load_RW.sig="ppi";var _SDL_LoadBMP_RW=_IMG_Load_RW;function _SDL_RWFromFile(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(343,0,1,e,r);e>>>=0,r>>>=0;var t=SDL.rwops.length,n=UTF8ToString(e);return SDL.rwops.push({filename:n,mimetype:Browser.getMimetype(n)}),t}function _IMG_Load(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(342,0,1,e);var r=_SDL_RWFromFile(e>>>=0,0);return _IMG_Load_RW(r,1)}_SDL_LoadBMP_RW.sig="ppi",_SDL_RWFromFile.sig="ppp",_IMG_Load.sig="pp";var _IMG_Quit=()=>out("IMG_Quit called (and ignored)");function _SDL_OpenAudio(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(344,0,1,e,r);e>>>=0,r>>>=0;try{if(SDL.audio={freq:GROWABLE_HEAP_U32()[e>>>2>>>0],format:GROWABLE_HEAP_U16()[e+4>>>1>>>0],channels:GROWABLE_HEAP_U8()[e+6>>>0],samples:GROWABLE_HEAP_U16()[e+8>>>1>>>0],callback:GROWABLE_HEAP_U32()[e+16>>>2>>>0],userdata:GROWABLE_HEAP_U32()[e+20>>>2>>>0],paused:!0,timer:null},8==SDL.audio.format)SDL.audio.silence=128;else if(32784==SDL.audio.format)SDL.audio.silence=0;else{if(33056!=SDL.audio.format)throw"Invalid SDL audio format "+SDL.audio.format+"!";SDL.audio.silence=0}if(SDL.audio.freq<=0)throw"Unsupported sound frequency "+SDL.audio.freq+"!";if(SDL.audio.freq<=22050)SDL.audio.freq=22050;else if(SDL.audio.freq<=32e3)SDL.audio.freq=32e3;else if(SDL.audio.freq<=44100)SDL.audio.freq=44100;else if(SDL.audio.freq<=48e3)SDL.audio.freq=48e3;else{if(!(SDL.audio.freq<=96e3))throw"Unsupported sound frequency ".concat(SDL.audio.freq,"!");SDL.audio.freq=96e3}if(0==SDL.audio.channels)SDL.audio.channels=1;else{if(SDL.audio.channels<0||SDL.audio.channels>32)throw"Unsupported number of audio channels for SDL audio: ".concat(SDL.audio.channels,"!");1!=SDL.audio.channels&&2!=SDL.audio.channels&&out("Warning: Using untested number of audio channels ".concat(SDL.audio.channels))}if(SDL.audio.samples<128||SDL.audio.samples>524288)throw"Unsupported audio callback buffer size ".concat(SDL.audio.samples,"!");if(SDL.audio.samples&SDL.audio.samples-1)throw"Audio callback buffer size ".concat(SDL.audio.samples," must be a power-of-two!");var t=SDL.audio.samples*SDL.audio.channels;if(8==SDL.audio.format)SDL.audio.bytesPerSample=1;else if(32784==SDL.audio.format)SDL.audio.bytesPerSample=2;else{if(33056!=SDL.audio.format)throw"Invalid SDL audio format ".concat(SDL.audio.format,"!");SDL.audio.bytesPerSample=4}if(SDL.audio.bufferSize=t*SDL.audio.bytesPerSample,SDL.audio.bufferDurationSecs=SDL.audio.bufferSize/SDL.audio.bytesPerSample/SDL.audio.channels/SDL.audio.freq,SDL.audio.bufferingDelay=.05,SDL.audio.buffer=_malloc(SDL.audio.bufferSize),SDL.audio.numSimultaneouslyQueuedBuffers=Module.SDL_numSimultaneouslyQueuedBuffers||5,SDL.audio.queueNewAudioData=()=>{if(SDL.audio)for(var e=0;e=SDL.audio.bufferingDelay+SDL.audio.bufferDurationSecs*SDL.audio.numSimultaneouslyQueuedBuffers)return;getWasmTableEntry(SDL.audio.callback)(SDL.audio.userdata,SDL.audio.buffer,SDL.audio.bufferSize),SDL.audio.pushAudio(SDL.audio.buffer,SDL.audio.bufferSize)}},SDL.audio.caller=()=>{if(SDL.audio){--SDL.audio.numAudioTimersPending,SDL.audio.queueNewAudioData();var e=SDL.audio.nextPlayTime-SDL.audioContext.currentTime,r=SDL.audio.bufferDurationSecs/2;SDL.audio.numAudioTimersPending{try{if(SDL.audio.paused)return;var t=r/SDL.audio.bytesPerSample/SDL.audio.channels;if(t!=SDL.audio.samples)throw"Received mismatching audio buffer size!";var n=SDL.audioContext.createBufferSource(),a=SDL.audioContext.createBuffer(SDL.audio.channels,t,SDL.audio.freq);n.connect(SDL.audioContext.destination),SDL.fillWebAudioBufferFromHeap(e,t,a),n.buffer=a;var i=SDL.audioContext.currentTime,_=Math.max(i+SDL.audio.bufferingDelay,SDL.audio.nextPlayTime);typeof n.start<"u"?n.start(_):typeof n.noteOn<"u"&&n.noteOn(_),SDL.audio.nextPlayTime=_+SDL.audio.bufferDurationSecs}catch(e){err("Web Audio API error playing back audio: ".concat(e.toString()))}},r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.audio.freq,GROWABLE_HEAP_I16()[r+4>>>1>>>0]=SDL.audio.format,GROWABLE_HEAP_I8()[r+6>>>0]=SDL.audio.channels,GROWABLE_HEAP_I8()[r+7>>>0]=SDL.audio.silence,GROWABLE_HEAP_I16()[r+8>>>1>>>0]=SDL.audio.samples,GROWABLE_HEAP_U32()[r+16>>>2>>>0]=SDL.audio.callback,GROWABLE_HEAP_U32()[r+20>>>2>>>0]=SDL.audio.userdata),SDL.allocateChannels(32)}catch(e){err('Initializing SDL audio threw an exception: "'.concat(e.toString(),'"! Continuing without audio')),SDL.audio=null,SDL.allocateChannels(0),r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=0,GROWABLE_HEAP_I16()[r+4>>>1>>>0]=0,GROWABLE_HEAP_I8()[r+6>>>0]=0,GROWABLE_HEAP_I8()[r+7>>>0]=0,GROWABLE_HEAP_I16()[r+8>>>1>>>0]=0,GROWABLE_HEAP_U32()[r+16>>>2>>>0]=0,GROWABLE_HEAP_U32()[r+20>>>2>>>0]=0)}return SDL.audio?0:-1}function _SDL_PauseAudio(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(345,0,1,e);SDL.audio&&(e?void 0!==SDL.audio.timer&&(clearTimeout(SDL.audio.timer),SDL.audio.numAudioTimersPending=0,SDL.audio.timer=void 0):SDL.audio.timer||(SDL.audio.numAudioTimersPending=1,SDL.audio.timer=safeSetTimeout(SDL.audio.caller,1)),SDL.audio.paused=e)}function _SDL_CloseAudio(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(346,0,1);SDL.audio&&(SDL.audio.callbackRemover&&(SDL.audio.callbackRemover(),SDL.audio.callbackRemover=null),_SDL_PauseAudio(1),_free(SDL.audio.buffer),SDL.audio=null,SDL.allocateChannels(0))}_IMG_Quit.sig="v",_SDL_OpenAudio.sig="ipp",_SDL_PauseAudio.sig="vi",_SDL_CloseAudio.sig="v";var _SDL_LockAudio=()=>{};_SDL_LockAudio.sig="v";var _SDL_UnlockAudio=()=>{};function _SDL_CreateMutex(){return 0}function _SDL_mutexP(e){return 0}function _SDL_mutexV(e){return 0}function _SDL_DestroyMutex(e){}function _SDL_CreateCond(){return 0}function _SDL_CondSignal(e){}function _SDL_CondWait(e,r){}function _SDL_DestroyCond(e){}function _SDL_StartTextInput(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(347,0,1);SDL.textInput=!0}function _SDL_StopTextInput(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(348,0,1);SDL.textInput=!1}_SDL_UnlockAudio.sig="v",_SDL_CreateMutex.sig="p",_SDL_mutexP.sig="ip",_SDL_mutexV.sig="ip",_SDL_DestroyMutex.sig="vp",_SDL_CreateCond.sig="p",_SDL_CondSignal.sig="ip",_SDL_CondWait.sig="ipp",_SDL_DestroyCond.sig="vp",_SDL_StartTextInput.sig="v",_SDL_StopTextInput.sig="v";var _Mix_Init=e=>e?8:0;_Mix_Init.sig="ii";var _Mix_Quit=()=>{};function _Mix_OpenAudio(e,r,t,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(349,0,1,e,r,t,n):(SDL.openAudioContext(),autoResumeAudioContext(SDL.audioContext),SDL.allocateChannels(32),SDL.mixerFrequency=e,SDL.mixerFormat=r,SDL.mixerNumChannels=t,SDL.mixerChunkSize=n,0)}_Mix_Quit.sig="v",_Mix_OpenAudio.sig="iiiii";var _Mix_CloseAudio=_SDL_CloseAudio;function _Mix_AllocateChannels(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(350,0,1,e):(SDL.allocateChannels(e),e)}function _Mix_ChannelFinished(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(351,0,1,e);e>>>=0,SDL.channelFinished=e}function _Mix_Volume(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(352,0,1,e,r);if(-1==e){for(var t=0;t>>=0;var t=SDL.rwops[e];if(void 0===t)return 0;var n,a,i,_="";if(void 0!==t.filename){_=PATH_FS.resolve(t.filename);var s=preloadedAudios[_];if(!s){null===s&&err("Trying to reuse preloaded audio, but freePreloadedMediaOnUse is set!"),Module.noAudioDecoding||warnOnce("Cannot find preloaded audio "+_);try{i=FS.readFile(_)}catch(e){return err("Couldn't find file for: ".concat(_)),0}}Module.freePreloadedMediaOnUse&&(preloadedAudios[_]=null),n=s}else{if(void 0===t.bytes)return 0;i=SDL.webAudioAvailable()?GROWABLE_HEAP_U8().buffer.slice(t.bytes,t.bytes+t.count):GROWABLE_HEAP_U8().subarray(t.bytes>>>0,t.bytes+t.count>>>0)}var o=i&&(i.buffer||i),l=void 0===Module.SDL_canPlayWithWebAudio||Module.SDL_canPlayWithWebAudio(_,o);if(void 0!==i&&SDL.webAudioAvailable()&&l)n=void 0,(a={}).onDecodeComplete=[],SDL.audioContext.decodeAudioData(o,(e=>{a.decodedBuffer=e,a.onDecodeComplete.forEach((e=>e())),a.onDecodeComplete=void 0}));else if(void 0===n&&i){var c=new Blob([i],{type:t.mimetype}),u=URL.createObjectURL(c);(n=new Audio).src=u,n.mozAudioChannelType="content"}var d=SDL.audios.length;return SDL.audios.push({source:_,audio:n,webAudio:a}),d}function _Mix_LoadWAV(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(355,0,1,e);var r=_SDL_RWFromFile(e>>>=0,0),t=_Mix_LoadWAV_RW(r,0);return _SDL_FreeRW(r),t}function _Mix_QuickLoad_RAW(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(356,0,1,e,r);e>>>=0;for(var t,n,a=r>>1,i=new Float32Array(a),_=0;_>>1>>>0]/32768;SDL.webAudioAvailable()?(n={}).decodedBuffer=i:((t=new Audio).mozAudioChannelType="content",t.numChannels=SDL.mixerNumChannels,t.frequency=SDL.mixerFrequency);var s=SDL.audios.length;return SDL.audios.push({source:"",audio:t,webAudio:n,buffer:i}),s}function _Mix_FreeChunk(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(357,0,1,e);e>>>=0,SDL.audios[e]=null}function _Mix_ReserveChannels(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(358,0,1,e);SDL.channelMinimumNumber=e}function _Mix_PlayChannelTimed(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(359,0,1,e,r,t,n);r>>>=0,assert(-1==n);var a=SDL.audios[r];if(!a||!a.audio&&!a.webAudio)return-1;if(-1==e){for(var i=SDL.channelMinimumNumber;i0;function _Mix_HaltChannel(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(360,0,1,e);function r(e){var r=SDL.channels[e];r.audio&&(r.audio.pause(),r.audio=null),SDL.channelFinished&&getWasmTableEntry(SDL.channelFinished)(e)}if(-1!=e)r(e);else for(var t=0;t>>=0,SDL.hookMusicFinished=e,SDL.music.audio&&(SDL.music.audio.onended=_Mix_HaltMusic)}function _Mix_VolumeMusic(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(363,0,1,e):SDL.setGetVolume(SDL.music,e)}_Mix_FadingChannel.sig="ii",_Mix_HaltChannel.sig="ii",_Mix_HaltMusic.sig="i",_Mix_HookMusicFinished.sig="vp",_Mix_VolumeMusic.sig="ii";var _Mix_LoadMUS_RW=_Mix_LoadWAV_RW;function _Mix_LoadMUS(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(364,0,1,e);var r=_SDL_RWFromFile(e>>>=0,0),t=_Mix_LoadMUS_RW(r,0);return _SDL_FreeRW(r),t}_Mix_LoadMUS_RW.sig="pp",_Mix_LoadMUS.sig="pp";var _Mix_FreeMusic=_Mix_FreeChunk;function _Mix_PlayMusic(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(365,0,1,e,r);e>>>=0,SDL.music.audio&&(SDL.music.audio.paused||err("Music is already playing. ".concat(SDL.music.source)),SDL.music.audio.pause());var t,n=SDL.audios[e];return n.webAudio?((t={}).resource=n,t.paused=!1,t.currentPosition=0,t.play=function(){SDL.playWebAudio(this)},t.pause=function(){SDL.pauseWebAudio(this)}):n.audio&&(t=n.audio),t.onended=function(){SDL.music.audio==this&&_Mix_HaltMusic()},t.loop=0!=r&&1!=r,t.volume=SDL.music.volume,SDL.music.audio=t,t.play(),0}function _Mix_PauseMusic(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(366,0,1);var e=SDL.music.audio;null==e||e.pause()}function _Mix_ResumeMusic(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(367,0,1);var e=SDL.music.audio;null==e||e.play()}_Mix_FreeMusic.sig="vp",_Mix_PlayMusic.sig="ipi",_Mix_PauseMusic.sig="v",_Mix_ResumeMusic.sig="v";var _Mix_FadeInMusicPos=_Mix_PlayMusic;_Mix_FadeInMusicPos.sig="ipiid";var _Mix_FadeOutMusic=_Mix_HaltMusic;function _Mix_PlayingMusic(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(368,0,1):SDL.music.audio&&!SDL.music.audio.paused?1:0}function _Mix_Playing(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(369,0,1,e);if(-1===e){for(var r=0,t=0;t>>=0,e=PATH.normalize(UTF8ToString(e));var t=SDL.fonts.length;return SDL.fonts.push({name:e,size:r}),t}function _TTF_CloseFont(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(376,0,1,e);e>>>=0,SDL.fonts[e]=null}function _TTF_RenderText_Solid(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(377,0,1,e,r,t);e>>>=0,t>>>=0,r=UTF8ToString(r>>>=0)||" ";var n=SDL.fonts[e],a=SDL.estimateTextWidth(n,r),i=n.size;t=SDL.loadColorToCSSRGB(t);var _=SDL.makeFontString(i,n.name),s=SDL.makeSurface(a,i,0,!1,"text:"+r),o=SDL.surfaces[s];return o.ctx.save(),o.ctx.fillStyle=t,o.ctx.font=_,o.ctx.textBaseline="bottom",o.ctx.fillText(r,0,0|i),o.ctx.restore(),s}_Mix_FadeOutMusic.sig="ii",_Mix_PlayingMusic.sig="i",_Mix_Playing.sig="ii",_Mix_Pause.sig="vi",_Mix_Paused.sig="ii",_Mix_PausedMusic.sig="i",_Mix_Resume.sig="vi",_TTF_Init.sig="i",_TTF_OpenFont.sig="ppi",_TTF_CloseFont.sig="vp",_TTF_RenderText_Solid.sig="pppp";var _TTF_RenderText_Blended=_TTF_RenderText_Solid;_TTF_RenderText_Blended.sig="pppp";var _TTF_RenderText_Shaded=_TTF_RenderText_Solid;_TTF_RenderText_Shaded.sig="ppppp";var _TTF_RenderUTF8_Solid=_TTF_RenderText_Solid;function _TTF_SizeText(e,r,t,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(378,0,1,e,r,t,n);e>>>=0,r>>>=0,t>>>=0,n>>>=0;var a=SDL.fonts[e];return t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.estimateTextWidth(a,UTF8ToString(r))),n&&(GROWABLE_HEAP_I32()[n>>>2>>>0]=a.size),0}_TTF_RenderUTF8_Solid.sig="pppp",_TTF_SizeText.sig="ipppp";var _TTF_SizeUTF8=_TTF_SizeText;function _TTF_GlyphMetrics(e,r,t,n,a,i,_){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(379,0,1,e,r,t,n,a,i,_);e>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,_>>>=0;var s=SDL.fonts[e],o=SDL.estimateTextWidth(s,String.fromCharCode(r));_&&(GROWABLE_HEAP_I32()[_>>>2>>>0]=o),t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=0),n&&(GROWABLE_HEAP_I32()[n>>>2>>>0]=o),a&&(GROWABLE_HEAP_I32()[a>>>2>>>0]=0),i&&(GROWABLE_HEAP_I32()[i>>>2>>>0]=s.size)}function _TTF_FontAscent(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(380,0,1,e):(e>>>=0,.98*SDL.fonts[e].size|0)}function _TTF_FontDescent(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(381,0,1,e):(e>>>=0,.02*SDL.fonts[e].size|0)}function _TTF_FontHeight(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(382,0,1,e):(e>>>=0,SDL.fonts[e].size)}_TTF_SizeUTF8.sig="ipppp",_TTF_GlyphMetrics.sig="ipippppp",_TTF_FontAscent.sig="ip",_TTF_FontDescent.sig="ip",_TTF_FontHeight.sig="ip";var _TTF_FontLineSkip=_TTF_FontHeight;_TTF_FontLineSkip.sig="ip";var _TTF_Quit=()=>out("TTF_Quit called (and ignored)");_TTF_Quit.sig="v";var SDL_gfx={drawRectangle:(e,r,t,n,a,i,_)=>{r=r<<16>>16,t=t<<16>>16,n=n<<16>>16,a=a<<16>>16;var s=SDL.surfaces[e];assert(!s.locked);var o=r{r=r<<16>>16,t=t<<16>>16,n=n<<16>>16,a=a<<16>>16;var _=SDL.surfaces[e];assert(!_.locked),_.ctx.save(),_.ctx.strokeStyle=i,_.ctx.beginPath(),_.ctx.moveTo(r,t),_.ctx.lineTo(n,a),_.ctx.stroke(),_.ctx.restore()},drawEllipse:(e,r,t,n,a,i,_)=>{r=r<<16>>16,t=t<<16>>16,n=n<<16>>16,a=a<<16>>16;var s=SDL.surfaces[e];assert(!s.locked),s.ctx.save(),s.ctx.beginPath(),s.ctx.translate(r,t),s.ctx.scale(n,a),s.ctx.arc(0,0,1,0,2*Math.PI),s.ctx.restore(),s.ctx.save(),s.ctx[i+"Style"]=_,s.ctx[i](),s.ctx.restore()},translateColorToCSSRGBA:e=>"rgba(".concat(e>>>24,",").concat(e>>16&255,",").concat(e>>8&255,",").concat(255&e,")")};function _boxColor(e,r,t,n,a,i){return e>>>=0,SDL_gfx.drawRectangle(e,r,t,n,a,"fill",SDL_gfx.translateColorToCSSRGBA(i))}function _boxRGBA(e,r,t,n,a,i,_,s,o){return e>>>=0,SDL_gfx.drawRectangle(e,r,t,n,a,"fill",SDL.translateRGBAToCSSRGBA(i,_,s,o))}function _rectangleColor(e,r,t,n,a,i){return e>>>=0,SDL_gfx.drawRectangle(e,r,t,n,a,"stroke",SDL_gfx.translateColorToCSSRGBA(i))}function _rectangleRGBA(e,r,t,n,a,i,_,s,o){return e>>>=0,SDL_gfx.drawRectangle(e,r,t,n,a,"stroke",SDL.translateRGBAToCSSRGBA(i,_,s,o))}function _ellipseColor(e,r,t,n,a,i){return e>>>=0,SDL_gfx.drawEllipse(e,r,t,n,a,"stroke",SDL_gfx.translateColorToCSSRGBA(i))}function _ellipseRGBA(e,r,t,n,a,i,_,s,o){return e>>>=0,SDL_gfx.drawEllipse(e,r,t,n,a,"stroke",SDL.translateRGBAToCSSRGBA(i,_,s,o))}function _filledEllipseColor(e,r,t,n,a,i){return e>>>=0,SDL_gfx.drawEllipse(e,r,t,n,a,"fill",SDL_gfx.translateColorToCSSRGBA(i))}function _filledEllipseRGBA(e,r,t,n,a,i,_,s,o){return e>>>=0,SDL_gfx.drawEllipse(e,r,t,n,a,"fill",SDL.translateRGBAToCSSRGBA(i,_,s,o))}function _lineColor(e,r,t,n,a,i){return e>>>=0,SDL_gfx.drawLine(e,r,t,n,a,SDL_gfx.translateColorToCSSRGBA(i))}function _lineRGBA(e,r,t,n,a,i,_,s,o){return e>>>=0,SDL_gfx.drawLine(e,r,t,n,a,SDL.translateRGBAToCSSRGBA(i,_,s,o))}function _pixelRGBA(e,r,t,n,a,i,_){return _boxRGBA(e>>>=0,r,t,r,t,n,a,i,_)}function _SDL_GL_SetAttribute(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(383,0,1,e,r);e in SDL.glAttributes||abort("Unknown SDL GL attribute ("+e+"). Please check if your SDL version is supported."),SDL.glAttributes[e]=r}function _SDL_GL_GetAttribute(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(384,0,1,e,r):(r>>>=0,e in SDL.glAttributes||abort("Unknown SDL GL attribute ("+e+"). Please check if your SDL version is supported."),r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.glAttributes[e]),0)}function _SDL_GL_SwapBuffers(){var e;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(385,0,1);null==(e=Browser.doSwapBuffers)||e.call(Browser)}function _SDL_GL_ExtensionSupported(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(386,0,1,e):(e>>>=0,0|Module.ctx.getExtension(e))}function _SDL_DestroyWindow(e){}function _SDL_DestroyRenderer(e){}function _SDL_GetWindowFlags(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(387,0,1,e):(e>>>=0,Browser.isFullscreen?1:0)}function _SDL_GL_SwapWindow(e){}function _SDL_GL_MakeCurrent(e,r){}function _SDL_GL_DeleteContext(e){}function _SDL_GL_GetSwapInterval(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(388,0,1):1==Browser.mainLoop.timingMode?Browser.mainLoop.timingValue:0}_boxColor.sig="ipiiiii",_boxRGBA.sig="ipiiiiiiii",_rectangleColor.sig="ipiiiii",_rectangleRGBA.sig="ipiiiiiiii",_ellipseColor.sig="ipiiiii",_ellipseRGBA.sig="ipiiiiiiii",_filledEllipseColor.sig="ipiiiii",_filledEllipseRGBA.sig="ipiiiiiiii",_lineColor.sig="ipiiiii",_lineRGBA.sig="ipiiiiiiii",_pixelRGBA.sig="ipiiiiii",_SDL_GL_SetAttribute.sig="iii",_SDL_GL_GetAttribute.sig="iip",_SDL_GL_SwapBuffers.sig="v",_SDL_GL_ExtensionSupported.sig="ip",_SDL_DestroyWindow.sig="vp",_SDL_DestroyRenderer.sig="vp",_SDL_GetWindowFlags.sig="ip",_SDL_GL_SwapWindow.sig="vp",_SDL_GL_MakeCurrent.sig="ipp",_SDL_GL_DeleteContext.sig="vp",_SDL_GL_GetSwapInterval.sig="i";var _SDL_GL_SetSwapInterval=e=>{_emscripten_set_main_loop_timing(1,e)};function _SDL_SetWindowTitle(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(389,0,1,e,r);e>>>=0,(r>>>=0)&&(document.title=UTF8ToString(r))}function _SDL_GetWindowSize(e,r,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(390,0,1,e,r,t);e>>>=0,r>>>=0,t>>>=0;var n=Module.canvas.width,a=Module.canvas.height;r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=n),t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=a)}function _SDL_LogSetOutputFunction(e,r){}function _SDL_SetWindowFullscreen(e,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(391,0,1,e,r):(e>>>=0,Browser.isFullscreen?(Module.canvas.exitFullscreen(),1):0)}_SDL_GL_SetSwapInterval.sig="ii",_SDL_SetWindowTitle.sig="vpp",_SDL_GetWindowSize.sig="vppp",_SDL_LogSetOutputFunction.sig="vpp",_SDL_SetWindowFullscreen.sig="ipi";var _SDL_ClearError=()=>{};_SDL_ClearError.sig="v";var _SDL_SetGamma=(e,r,t)=>-1;function _SDL_SetGammaRamp(e,r,t){return-1}function _SDL_NumJoysticks(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(392,0,1);for(var e=0,r=SDL.getGamepads(),t=0;t>>=0)-1}function _SDL_JoystickNumAxes(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(396,0,1,e);e>>>=0;var r=SDL.getGamepad(e-1);return r?r.axes.length:0}function _SDL_JoystickNumBalls(e){return 0}function _SDL_JoystickNumHats(e){return 0}function _SDL_JoystickNumButtons(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(397,0,1,e);e>>>=0;var r=SDL.getGamepad(e-1);return r?r.buttons.length:0}function _SDL_JoystickUpdate(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(398,0,1):SDL.queryJoysticks()}function _SDL_JoystickEventState(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(399,0,1,e):e<0?SDL.joystickEventState:SDL.joystickEventState=e}function _SDL_JoystickGetAxis(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(400,0,1,e,r);e>>>=0;var t=SDL.getGamepad(e-1);return t&&t.axes.length>r?SDL.joystickAxisValueConversion(t.axes[r]):0}function _SDL_JoystickGetHat(e,r){return 0}function _SDL_JoystickGetBall(e,r,t,n){return-1}function _SDL_JoystickGetButton(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(401,0,1,e,r);e>>>=0;var t=SDL.getGamepad(e-1);return t&&t.buttons.length>r&&SDL.getJoystickButtonState(t.buttons[r])?1:0}function _SDL_JoystickClose(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(402,0,1,e);e>>>=0,delete SDL.lastJoystickState[e]}_SDL_SetGamma.sig="ifff",_SDL_SetGammaRamp.sig="ippp",_SDL_NumJoysticks.sig="i",_SDL_JoystickName.sig="pi",_SDL_JoystickOpen.sig="pi",_SDL_JoystickOpened.sig="ii",_SDL_JoystickIndex.sig="ip",_SDL_JoystickNumAxes.sig="ip",_SDL_JoystickNumBalls.sig="ip",_SDL_JoystickNumHats.sig="ip",_SDL_JoystickNumButtons.sig="ip",_SDL_JoystickUpdate.sig="v",_SDL_JoystickEventState.sig="ii",_SDL_JoystickGetAxis.sig="ipi",_SDL_JoystickGetHat.sig="ipi",_SDL_JoystickGetBall.sig="ipipp",_SDL_JoystickGetButton.sig="ipi",_SDL_JoystickClose.sig="vp";var _SDL_InitSubSystem=e=>0;function _SDL_RWFromConstMem(e,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(403,0,1,e,r);e>>>=0;var t=SDL.rwops.length;return SDL.rwops.push({bytes:e,count:r}),t}_SDL_InitSubSystem.sig="ii",_SDL_RWFromConstMem.sig="ppi";var _SDL_RWFromMem=_SDL_RWFromConstMem;_SDL_RWFromMem.sig="ppi";var _SDL_GetNumAudioDrivers=()=>1;function _SDL_GetCurrentAudioDriver(){return stringToNewUTF8("Emscripten Audio")}_SDL_GetNumAudioDrivers.sig="i",_SDL_GetCurrentAudioDriver.sig="p";var _SDL_GetScancodeFromKey=e=>SDL.scanCodes[e];function _SDL_GetAudioDriver(e){return _SDL_GetCurrentAudioDriver()}function _SDL_EnableUNICODE(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(404,0,1,e);var r=SDL.unicode||0;return SDL.unicode=e,r}_SDL_GetScancodeFromKey.sig="ii",_SDL_GetAudioDriver.sig="pi",_SDL_EnableUNICODE.sig="ii";var _SDL_AddTimer=function(e,r,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(405,0,1,e,r,t):(r>>>=0,t>>>=0,safeSetTimeout((()=>getWasmTableEntry(r)(e,t)),e))};function _SDL_RemoveTimer(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(406,0,1,e):(clearTimeout(e),!0)}function _SDL_CreateThread(e,r,t,n){throw"SDL threads cannot be supported in the web platform because they assume shared state. See emscripten_create_worker etc. for a message-passing concurrency model that does let you run code in another thread."}function _SDL_WaitThread(e,r){throw"SDL_WaitThread"}function _SDL_GetThreadID(e){throw"SDL_GetThreadID"}function _SDL_ThreadID(){return 0}function _SDL_AllocRW(){throw"SDL_AllocRW: TODO"}function _SDL_CondBroadcast(e){throw"SDL_CondBroadcast: TODO"}function _SDL_CondWaitTimeout(e,r,t){throw"SDL_CondWaitTimeout: TODO"}_SDL_AddTimer.sig="iipp",_SDL_RemoveTimer.sig="ii",_SDL_CreateThread.sig="ppp",_SDL_WaitThread.sig="vpp",_SDL_GetThreadID.sig="pp",_SDL_ThreadID.sig="p",_SDL_AllocRW.sig="p",_SDL_CondBroadcast.sig="ip",_SDL_CondWaitTimeout.sig="ippi";var _SDL_WM_IconifyWindow=()=>{throw"SDL_WM_IconifyWindow TODO"};function _Mix_SetPostMix(e,r){return warnOnce("Mix_SetPostMix: TODO")}function _Mix_VolumeChunk(e,r){throw"Mix_VolumeChunk: TODO"}_SDL_WM_IconifyWindow.sig="i",_Mix_SetPostMix.sig="vpp",_Mix_VolumeChunk.sig="ipi";var _Mix_SetPosition=(e,r,t)=>{throw"Mix_SetPosition: TODO"};function _Mix_QuerySpec(e,r,t){throw"Mix_QuerySpec: TODO"}function _Mix_FadeInChannelTimed(e,r,t,n,a){throw"Mix_FadeInChannelTimed"}_Mix_SetPosition.sig="iiii",_Mix_QuerySpec.sig="ippp",_Mix_FadeInChannelTimed.sig="iipiii";var _Mix_FadeOutChannel=()=>{throw"Mix_FadeOutChannel"};function _Mix_Linked_Version(){throw"Mix_Linked_Version: TODO"}function _SDL_SaveBMP_RW(e,r,t){throw"SDL_SaveBMP_RW: TODO"}function _SDL_WM_SetIcon(e,r){}_Mix_FadeOutChannel.sig="iii",_Mix_Linked_Version.sig="p",_SDL_SaveBMP_RW.sig="ippi",_SDL_WM_SetIcon.sig="vpp";var _SDL_HasRDTSC=()=>0;_SDL_HasRDTSC.sig="i";var _SDL_HasMMX=()=>0;_SDL_HasMMX.sig="i";var _SDL_HasMMXExt=()=>0;_SDL_HasMMXExt.sig="i";var _SDL_Has3DNow=()=>0;_SDL_Has3DNow.sig="i";var _SDL_Has3DNowExt=()=>0;_SDL_Has3DNowExt.sig="i";var _SDL_HasSSE=()=>0;_SDL_HasSSE.sig="i";var _SDL_HasSSE2=()=>0;_SDL_HasSSE2.sig="i";var _SDL_HasAltiVec=()=>0;_SDL_HasAltiVec.sig="i";var polyfillWaitAsync=()=>{},atomicWaitStates=["ok","not-equal","timed-out"],liveAtomicWaitAsyncs={},liveAtomicWaitAsyncCounter=0,_emscripten_atomic_wait_async=function(e,r,t,n,a){e>>>=0,t>>>=0,n>>>=0;let i=Atomics.waitAsync(GROWABLE_HEAP_I32(),e>>>2,r,a);if(!i.async)return atomicWaitStates.indexOf(i.value);let _=liveAtomicWaitAsyncCounter;return liveAtomicWaitAsyncCounter=Math.max(0,liveAtomicWaitAsyncCounter+1|0),liveAtomicWaitAsyncs[_]=e,runtimeKeepalivePush(),i.value.then((a=>{liveAtomicWaitAsyncs[_]&&(runtimeKeepalivePop(),delete liveAtomicWaitAsyncs[_],callUserCallback((()=>getWasmTableEntry(t)(e,r,atomicWaitStates.indexOf(a),n))))})),-_};_emscripten_atomic_wait_async.sig="ipippd";var _emscripten_atomic_cancel_wait_async=e=>{var r=liveAtomicWaitAsyncs[e];return r?(Atomics.notify(GROWABLE_HEAP_I32(),r>>>2),delete liveAtomicWaitAsyncs[e],runtimeKeepalivePop(),0):-5};_emscripten_atomic_cancel_wait_async.sig="ii";var _emscripten_atomic_cancel_all_wait_asyncs=()=>{let e=Object.values(liveAtomicWaitAsyncs);return e.forEach((e=>{Atomics.notify(GROWABLE_HEAP_I32(),e>>>2)})),liveAtomicWaitAsyncs={},e.length};_emscripten_atomic_cancel_all_wait_asyncs.sig="i";var _emscripten_atomic_cancel_all_wait_asyncs_at_address=function(e){e>>>=0;let r=0;return Object.keys(liveAtomicWaitAsyncs).forEach((t=>{liveAtomicWaitAsyncs[t]==e&&(Atomics.notify(GROWABLE_HEAP_I32(),e>>>2),delete liveAtomicWaitAsyncs[t],r++)})),r};_emscripten_atomic_cancel_all_wait_asyncs_at_address.sig="ip";var ALLOC_NORMAL=0,ALLOC_STACK=1,allocate=(e,r)=>{var t;return t=r==ALLOC_STACK?stackAlloc(e.length):_malloc(e.length),!e.subarray&&!e.slice&&(e=new Uint8Array(e)),GROWABLE_HEAP_U8().set(e,t>>>0),t},writeStringToMemory=(e,r,t)=>{var n,a;warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!"),t&&(a=r+lengthBytesUTF8(e),n=GROWABLE_HEAP_I8()[a>>>0]),stringToUTF8(e,r,1/0),t&&(GROWABLE_HEAP_I8()[a>>>0]=n)},writeAsciiToMemory=(e,r,t)=>{for(var n=0;n>>0]=e.charCodeAt(n);t||(GROWABLE_HEAP_I8()[r>>>0]=0)},allocateUTF8=stringToNewUTF8,allocateUTF8OnStack=stringToUTF8OnStack,setErrNo=e=>(GROWABLE_HEAP_I32()[___errno_location()>>>2>>>0]=e,e),demangle=e=>(demangle.recursionGuard=1+(0|demangle.recursionGuard),demangle.recursionGuard>1?e:withStackSave((()=>{try{var r=e;r.startsWith("__Z")&&(r=r.substr(1));var t=stringToUTF8OnStack(r),n=stackAlloc(4),a=___cxa_demangle(t,0,0,n);if(0===GROWABLE_HEAP_I32()[n>>>2>>>0]&&a)return UTF8ToString(a)}catch(e){}finally{_free(a),demangle.recursionGuard<2&&--demangle.recursionGuard}return e})));function stackTrace(){var e=jsStackTrace();return Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace()),e}var _emscripten_has_threading_support=()=>typeof SharedArrayBuffer<"u";_emscripten_has_threading_support.sig="i";var tupleRegistrations={},structRegistrations={},getTypeName=e=>{var r=___getTypeName(e),t=readLatin1String(r);return _free(r),t},getFunctionName=e=>{let r=(e=e.trim()).indexOf("(");return-1!==r?e.substr(0,r):e},getFunctionArgsName=e=>{let r=(e=e.trim()).indexOf("(")+1;return 0!==r?e.substr(r,e.length-r-1).replaceAll(" ","").split(",").filter((e=>e.length)):[]},heap32VectorToArray=(e,r)=>{for(var t=[],n=0;n>>2>>>0]);return t},requireRegisteredType=(e,r)=>{var t=registeredTypes[e];return void 0===t&&throwBindingError("".concat(r," has unknown type ").concat(getTypeName(e))),t};function usesDestructorStack(e){for(var r=1;r0?", ":"")+s),l+=(t||n?"var rv = ":"")+"invoker(fn"+(s.length>0?", ":"")+s+");\n",a)l+="runDestructors(destructors);\n";else for(o=r?1:2;oObject.defineProperty(r,"name",{value:e}),extendError=(e,r)=>{var t=createNamedFunction(r,(function(e){this.name=r,this.message=e;var t=new Error(e).stack;void 0!==t&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))}));return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},t},UnboundTypeError,PureVirtualError,registeredInstances={},getInheritedInstanceCount=()=>Object.keys(registeredInstances).length,getLiveInheritedInstances=()=>{var e=[];for(var r in registeredInstances)registeredInstances.hasOwnProperty(r)&&e.push(registeredInstances[r]);return e},deletionQueue=[],flushPendingDeletes=()=>{for(;deletionQueue.length;){var e=deletionQueue.pop();e.$$.deleteScheduled=!1,e.delete()}},delayFunction,setDelayFunction=e=>{delayFunction=e,deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes)},init_embind=()=>{Module.getInheritedInstanceCount=getInheritedInstanceCount,Module.getLiveInheritedInstances=getLiveInheritedInstances,Module.flushPendingDeletes=flushPendingDeletes,Module.setDelayFunction=setDelayFunction},throwUnboundTypeError=(e,r)=>{var t=[],n={};throw r.forEach((function e(r){if(!n[r]&&!registeredTypes[r]){if(typeDependencies[r])return void typeDependencies[r].forEach(e);t.push(r),n[r]=!0}})),new UnboundTypeError("".concat(e,": ")+t.map(getTypeName).join([", "]))},ensureOverloadTable=(e,r,t)=>{if(void 0===e[r].overloadTable){var n=e[r];e[r]=function(...n){return e[r].overloadTable.hasOwnProperty(n.length)||throwBindingError("Function '".concat(t,"' called with an invalid number of arguments (").concat(n.length,") - expects one of (").concat(e[r].overloadTable,")!")),e[r].overloadTable[n.length].apply(this,n)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},exposePublicSymbol=(e,r,t)=>{Module.hasOwnProperty(e)?((void 0===t||void 0!==Module[e].overloadTable&&void 0!==Module[e].overloadTable[t])&&throwBindingError("Cannot register public name '".concat(e,"' twice")),ensureOverloadTable(Module,e,e),Module.hasOwnProperty(t)&&throwBindingError("Cannot register multiple overloads of a function with the same number of arguments (".concat(t,")!")),Module[e].overloadTable[t]=r):(Module[e]=r,void 0!==t&&(Module[e].numArguments=t))},replacePublicSymbol=(e,r,t)=>{Module.hasOwnProperty(e)||throwInternalError("Replacing nonexistent public symbol"),void 0!==Module[e].overloadTable&&void 0!==t?Module[e].overloadTable[t]=r:(Module[e]=r,Module[e].argCount=t)},getBasestPointer=(e,r)=>{for(void 0===r&&throwBindingError("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},registerInheritedInstance=(e,r,t)=>{r=getBasestPointer(e,r),registeredInstances.hasOwnProperty(r)?throwBindingError("Tried to register registered instance: ".concat(r)):registeredInstances[r]=t},unregisterInheritedInstance=(e,r)=>{r=getBasestPointer(e,r),registeredInstances.hasOwnProperty(r)?delete registeredInstances[r]:throwBindingError("Tried to unregister unregistered instance: ".concat(r))},getInheritedInstance=(e,r)=>(r=getBasestPointer(e,r),registeredInstances[r]),registeredPointers={},enumReadValueFromPointer=(e,r,t)=>{switch(r){case 1:return t?function(e){return this.fromWireType(GROWABLE_HEAP_I8()[e>>>0])}:function(e){return this.fromWireType(GROWABLE_HEAP_U8()[e>>>0])};case 2:return t?function(e){return this.fromWireType(GROWABLE_HEAP_I16()[e>>>1>>>0])}:function(e){return this.fromWireType(GROWABLE_HEAP_U16()[e>>>1>>>0])};case 4:return t?function(e){return this.fromWireType(GROWABLE_HEAP_I32()[e>>>2>>>0])}:function(e){return this.fromWireType(GROWABLE_HEAP_U32()[e>>>2>>>0])};default:throw new TypeError("invalid integer width (".concat(r,"): ").concat(e))}};function __embind_register_user_type(e,r){__embind_register_emval(e>>>=0)}function __embind_register_optional(e,r){__embind_register_emval(e>>>=0)}__embind_register_user_type.sig="vpp",__embind_register_optional.sig="vpp";var runDestructors=e=>{for(;e.length;){var r=e.pop();e.pop()(r)}};function newFunc(e,r){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type ".concat(typeof e," which is not a function"));var t=createNamedFunction(e.name||"unknownFunctionName",(function(){}));t.prototype=e.prototype;var n=new t,a=e.apply(n,r);return a instanceof Object?a:n}function craftInvokerFunction(e,r,t,n,a,i){var _=r.length;_<2&&throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var s=null!==r[1]&&null!==t,o=usesDestructorStack(r),l="void"!==r[0].name,c=[e,throwBindingError,n,a,runDestructors,r[0],r[1]],u=0;u<_-2;++u)c.push(r[u+2]);if(!o)for(u=s?1:2;u{var t=(e=readLatin1String(e)).includes("j")||e.includes("p")?getDynCaller(e,r):getWasmTableEntry(r);return"function"!=typeof t&&throwBindingError("unknown function pointer with signature ".concat(e,": ").concat(r)),t};function __embind_register_function(e,r,t,n,a,i,_){e>>>=0,n>>>=0,a>>>=0,i>>>=0;var s=heap32VectorToArray(r,t>>>=0);e=readLatin1String(e),e=getFunctionName(e),a=embind__requireFunction(n,a),exposePublicSymbol(e,(function(){throwUnboundTypeError("Cannot call ".concat(e," due to unbound types"),s)}),r-1),whenDependentTypesAreResolved([],s,(t=>{var n=[t[0],null].concat(t.slice(1));return replacePublicSymbol(e,craftInvokerFunction(e,n,null,a,i,_),r-1),[]}))}function __embind_register_value_array(e,r,t,n,a,i){r>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,tupleRegistrations[e>>>=0]={name:readLatin1String(r),rawConstructor:embind__requireFunction(t,n),rawDestructor:embind__requireFunction(a,i),elements:[]}}function __embind_register_value_array_element(e,r,t,n,a,i,_,s,o){r>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,_>>>=0,s>>>=0,o>>>=0,tupleRegistrations[e>>>=0].elements.push({getterReturnType:r,getter:embind__requireFunction(t,n),getterContext:a,setterArgumentType:i,setter:embind__requireFunction(_,s),setterContext:o})}__embind_register_function.sig="vpippppi",__embind_register_value_array.sig="vpppppp",__embind_register_value_array_element.sig="vppppppppp";var __embind_finalize_value_array=function(e){var r=tupleRegistrations[e>>>=0];delete tupleRegistrations[e];var t=r.elements,n=t.length,a=t.map((e=>e.getterReturnType)).concat(t.map((e=>e.setterArgumentType))),i=r.rawConstructor,_=r.rawDestructor;whenDependentTypesAreResolved([e],a,(e=>(t.forEach(((r,t)=>{var a=e[t],i=r.getter,_=r.getterContext,s=e[t+n],o=r.setter,l=r.setterContext;r.read=e=>a.fromWireType(i(_,e)),r.write=(e,r)=>{var t=[];o(l,e,s.toWireType(t,r)),runDestructors(t)}})),[{name:r.name,fromWireType:e=>{for(var r=new Array(n),a=0;a{if(n!==a.length)throw new TypeError("Incorrect number of tuple elements for ".concat(r.name,": expected=").concat(n,", actual=").concat(a.length));for(var s=i(),o=0;o>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,structRegistrations[e>>>=0]={name:readLatin1String(r),rawConstructor:embind__requireFunction(t,n),rawDestructor:embind__requireFunction(a,i),fields:[]}}function __embind_register_value_object_field(e,r,t,n,a,i,_,s,o,l){r>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,_>>>=0,s>>>=0,o>>>=0,l>>>=0,structRegistrations[e>>>=0].fields.push({fieldName:readLatin1String(r),getterReturnType:t,getter:embind__requireFunction(n,a),getterContext:i,setterArgumentType:_,setter:embind__requireFunction(s,o),setterContext:l})}__embind_finalize_value_array.sig="vp",__embind_register_value_object.sig="vpppppp",__embind_register_value_object_field.sig="vpppppppppp";var __embind_finalize_value_object=function(e){var r=structRegistrations[e>>>=0];delete structRegistrations[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map((e=>e.getterReturnType)).concat(a.map((e=>e.setterArgumentType)));whenDependentTypesAreResolved([e],i,(e=>{var i={};return a.forEach(((r,t)=>{var n=r.fieldName,_=e[t],s=r.getter,o=r.getterContext,l=e[t+a.length],c=r.setter,u=r.setterContext;i[n]={read:e=>_.fromWireType(s(o,e)),write:(e,r)=>{var t=[];c(u,e,l.toWireType(t,r)),runDestructors(t)}}})),[{name:r.name,fromWireType:e=>{var r={};for(var t in i)r[t]=i[t].read(e);return n(e),r},toWireType:(e,r)=>{for(var a in i)if(!(a in r))throw new TypeError('Missing field: "'.concat(a,'"'));var _=t();for(a in i)i[a].write(_,r[a]);return null!==e&&e.push(n,_),_},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:n}]}))};__embind_finalize_value_object.sig="vp";var upcastPointer=(e,r,t)=>{for(;r!==t;)r.upcast||throwBindingError("Expected null or instance of ".concat(t.name,", got an instance of ").concat(r.name)),e=r.upcast(e),r=r.baseClass;return e};function genericPointerToWireType(e,r){var t;if(null===r)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),this.isSmartPointer?(t=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&throwBindingError('Cannot pass "'.concat(embindRepr(r),'" as a ').concat(this.name)),r.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&r.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type ".concat(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name," to parameter type ").concat(this.name));var n=r.$$.ptrType.registeredClass;if(t=upcastPointer(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===r.$$.smartPtr&&throwBindingError("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:throwBindingError("Cannot convert argument of type ".concat(r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,Emval.toHandle((()=>a.delete()))),null!==e&&e.push(this.rawDestructor,t)}break;default:throwBindingError("Unsupporting sharing policy")}return t}function constNoSmartPtrRawPointerToWireType(e,r){if(null===r)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),0;r.$$||throwBindingError('Cannot pass "'.concat(embindRepr(r),'" as a ').concat(this.name)),r.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name));var t=r.$$.ptrType.registeredClass;return upcastPointer(r.$$.ptr,t,this.registeredClass)}function nonConstNoSmartPtrRawPointerToWireType(e,r){if(null===r)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),0;r.$$||throwBindingError('Cannot pass "'.concat(embindRepr(r),'" as a ').concat(this.name)),r.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name)),r.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type ".concat(r.$$.ptrType.name," to parameter type ").concat(this.name));var t=r.$$.ptrType.registeredClass;return upcastPointer(r.$$.ptr,t,this.registeredClass)}function RegisteredPointer(e,r,t,n,a,i,_,s,o,l,c){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=_,this.rawGetPointee=s,this.rawConstructor=o,this.rawShare=l,this.rawDestructor=c,a||void 0!==r.baseClass?this.toWireType=genericPointerToWireType:n?(this.toWireType=constNoSmartPtrRawPointerToWireType,this.destructorFunction=null):(this.toWireType=nonConstNoSmartPtrRawPointerToWireType,this.destructorFunction=null)}var downcastPointer=(e,r,t)=>{if(r===t)return e;if(void 0===t.baseClass)return null;var n=downcastPointer(e,r,t.baseClass);return null===n?null:t.downcast(n)},finalizationRegistry=!1,detachFinalizer=e=>{},runDestructor=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},releaseClassHandle=e=>{e.count.value-=1,0===e.count.value&&runDestructor(e)},attachFinalizer=e=>typeof FinalizationRegistry>"u"?(attachFinalizer=e=>e,e):(finalizationRegistry=new FinalizationRegistry((e=>{releaseClassHandle(e.$$)})),detachFinalizer=e=>finalizationRegistry.unregister(e),(attachFinalizer=e=>{var r=e.$$;if(r.smartPtr){var t={$$:r};finalizationRegistry.register(e,t,e)}return e})(e)),makeClassHandle=(e,r)=>((!r.ptrType||!r.ptr)&&throwInternalError("makeClassHandle requires ptr and ptrType"),!!r.smartPtrType!=!!r.smartPtr&&throwInternalError("Both smartPtrType and smartPtr must be specified"),r.count={value:1},attachFinalizer(Object.create(e,{$$:{value:r,writable:!0}})));function RegisteredPointer_fromWireType(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=getInheritedInstance(this.registeredClass,r);if(void 0!==t){if(0===t.$$.count.value)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,_=this.registeredClass.getActualType(r),s=registeredPointers[_];if(!s)return a.call(this);i=this.isConst?s.constPointerType:s.pointerType;var o=downcastPointer(r,this.registeredClass,i.registeredClass);return null===o?a.call(this):this.isSmartPointer?makeClassHandle(i.registeredClass.instancePrototype,{ptrType:i,ptr:o,smartPtrType:this,smartPtr:e}):makeClassHandle(i.registeredClass.instancePrototype,{ptrType:i,ptr:o})}var init_RegisteredPointer=()=>{Object.assign(RegisteredPointer.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;null==(r=this.rawDestructor)||r.call(this,e)},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,fromWireType:RegisteredPointer_fromWireType})},detachFinalizer_deps=["$finalizationRegistry"];function ClassHandle(){}var shallowCopyInternalPointer=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),throwInstanceAlreadyDeleted=e=>{throwBindingError(e.$$.ptrType.registeredClass.name+" instance already deleted")},init_ClassHandle=()=>{Object.assign(ClassHandle.prototype,{isAliasOf(e){if(!(this instanceof ClassHandle&&e instanceof ClassHandle))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),detachFinalizer(this),releaseClassHandle(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),deletionQueue.push(this),1===deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes),this.$$.deleteScheduled=!0,this}})};function RegisteredClass(e,r,t,n,a,i,_,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=_,this.downcast=s,this.pureVirtualFunctions=[]}var char_0=48,char_9=57,makeLegalFunctionName=e=>{if(void 0===e)return"_unknown";var r=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return r>=char_0&&r<=char_9?"_".concat(e):e};function __embind_register_class(e,r,t,n,a,i,_,s,o,l,c,u,d){e>>>=0,r>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,_>>>=0,s>>>=0,o>>>=0,l>>>=0,u>>>=0,d>>>=0,c=readLatin1String(c>>>=0),i=embind__requireFunction(a,i),s&&(s=embind__requireFunction(_,s)),l&&(l=embind__requireFunction(o,l)),d=embind__requireFunction(u,d);var p=makeLegalFunctionName(c);exposePublicSymbol(p,(function(){throwUnboundTypeError("Cannot construct ".concat(c," due to unbound types"),[n])})),whenDependentTypesAreResolved([e,r,t],n?[n]:[],(r=>{var t,a,_;r=r[0],_=n?(a=r.registeredClass).instancePrototype:ClassHandle.prototype;var o=createNamedFunction(c,(function(...e){if(Object.getPrototypeOf(this)!==u)throw new BindingError("Use 'new' to construct "+c);if(void 0===m.constructor_body)throw new BindingError(c+" has no accessible constructor");var r=m.constructor_body[e.length];if(void 0===r)throw new BindingError("Tried to invoke ctor of ".concat(c," with invalid number of parameters (").concat(e.length,") - expected (").concat(Object.keys(m.constructor_body).toString(),") parameters instead!"));return r.apply(this,e)})),u=Object.create(_,{constructor:{value:o}});o.prototype=u;var m=new RegisteredClass(c,o,u,d,a,i,s,l);m.baseClass&&(null!=(t=m.baseClass).__derivedClasses||(t.__derivedClasses=[]),m.baseClass.__derivedClasses.push(m));var f=new RegisteredPointer(c,m,!0,!1,!1),g=new RegisteredPointer(c+"*",m,!1,!1,!1),E=new RegisteredPointer(c+" const*",m,!1,!0,!1);return registeredPointers[e]={pointerType:g,constPointerType:E},replacePublicSymbol(p,o),[f,g,E]}))}__embind_register_class.sig="vppppppppppppp";var __embind_register_class_constructor=function(e,r,t,n,a,i){e>>>=0,n>>>=0,a>>>=0,i>>>=0;var _=heap32VectorToArray(r,t>>>=0);a=embind__requireFunction(n,a),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var t="constructor ".concat(e.name);if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[r-1])throw new BindingError("Cannot register multiple constructors with identical number of parameters (".concat(r-1,") for class '").concat(e.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return e.registeredClass.constructor_body[r-1]=()=>{throwUnboundTypeError("Cannot construct ".concat(e.name," due to unbound types"),_)},whenDependentTypesAreResolved([],_,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[r-1]=craftInvokerFunction(t,n,null,a,i),[]))),[]}))};__embind_register_class_constructor.sig="vpipppp";var validateThis=(e,r,t)=>(e instanceof Object||throwBindingError("".concat(t,' with invalid "this": ').concat(e)),e instanceof r.registeredClass.constructor||throwBindingError("".concat(t,' incompatible with "this" of type ').concat(e.constructor.name)),e.$$.ptr||throwBindingError("cannot call emscripten binding method ".concat(t," on deleted object")),upcastPointer(e.$$.ptr,e.$$.ptrType.registeredClass,r.registeredClass)),__embind_register_class_function=function(e,r,t,n,a,i,_,s,o){e>>>=0,r>>>=0,a>>>=0,i>>>=0,_>>>=0;var l=heap32VectorToArray(t,n>>>=0);r=readLatin1String(r),r=getFunctionName(r),i=embind__requireFunction(a,i),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(r);function a(){throwUnboundTypeError("Cannot call ".concat(n," due to unbound types"),l)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(r);var c=e.registeredClass.instancePrototype,u=c[r];return void 0===u||void 0===u.overloadTable&&u.className!==e.name&&u.argCount===t-2?(a.argCount=t-2,a.className=e.name,c[r]=a):(ensureOverloadTable(c,r,n),c[r].overloadTable[t-2]=a),whenDependentTypesAreResolved([],l,(a=>{var s=craftInvokerFunction(n,a,e,i,_,o);return void 0===c[r].overloadTable?(s.argCount=t-2,c[r]=s):c[r].overloadTable[t-2]=s,[]})),[]}))};__embind_register_class_function.sig="vppippppii";var __embind_register_class_property=function(e,r,t,n,a,i,_,s,o,l){e>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,_>>>=0,s>>>=0,o>>>=0,l>>>=0,r=readLatin1String(r>>>=0),a=embind__requireFunction(n,a),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(r),c={get(){throwUnboundTypeError("Cannot access ".concat(n," due to unbound types"),[t,_])},enumerable:!0,configurable:!0};return c.set=o?()=>throwUnboundTypeError("Cannot access ".concat(n," due to unbound types"),[t,_]):e=>throwBindingError(n+" is a read-only property"),Object.defineProperty(e.registeredClass.instancePrototype,r,c),whenDependentTypesAreResolved([],o?[t,_]:[t],(t=>{var _=t[0],c={get(){var r=validateThis(this,e,n+" getter");return _.fromWireType(a(i,r))},enumerable:!0};if(o){o=embind__requireFunction(s,o);var u=t[1];c.set=function(r){var t=validateThis(this,e,n+" setter"),a=[];o(l,t,u.toWireType(a,r)),runDestructors(a)}}return Object.defineProperty(e.registeredClass.instancePrototype,r,c),[]})),[]}))};__embind_register_class_property.sig="vpppppppppp";var __embind_register_class_class_function=function(e,r,t,n,a,i,_,s){e>>>=0,r>>>=0,a>>>=0,i>>>=0,_>>>=0;var o=heap32VectorToArray(t,n>>>=0);r=readLatin1String(r),r=getFunctionName(r),i=embind__requireFunction(a,i),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(r);function a(){throwUnboundTypeError("Cannot call ".concat(n," due to unbound types"),o)}r.startsWith("@@")&&(r=Symbol[r.substring(2)]);var l=e.registeredClass.constructor;return void 0===l[r]?(a.argCount=t-1,l[r]=a):(ensureOverloadTable(l,r,n),l[r].overloadTable[t-1]=a),whenDependentTypesAreResolved([],o,(a=>{var o=[a[0],null].concat(a.slice(1)),c=craftInvokerFunction(n,o,null,i,_,s);if(void 0===l[r].overloadTable?(c.argCount=t-1,l[r]=c):l[r].overloadTable[t-1]=c,e.registeredClass.__derivedClasses)for(let t of e.registeredClass.__derivedClasses)t.constructor.hasOwnProperty(r)||(t.constructor[r]=c);return[]})),[]}))};__embind_register_class_class_function.sig="vppippppi";var __embind_register_class_class_property=function(e,r,t,n,a,i,_,s){e>>>=0,t>>>=0,n>>>=0,a>>>=0,i>>>=0,_>>>=0,s>>>=0,r=readLatin1String(r>>>=0),i=embind__requireFunction(a,i),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var a="".concat(e.name,".").concat(r),o={get(){throwUnboundTypeError("Cannot access ".concat(a," due to unbound types"),[t])},enumerable:!0,configurable:!0};return o.set=s?()=>{throwUnboundTypeError("Cannot access ".concat(a," due to unbound types"),[t])}:e=>{throwBindingError("".concat(a," is a read-only property"))},Object.defineProperty(e.registeredClass.constructor,r,o),whenDependentTypesAreResolved([],[t],(t=>{t=t[0];var a={get:()=>t.fromWireType(i(n)),enumerable:!0};return s&&(s=embind__requireFunction(_,s),a.set=e=>{var r=[];s(n,t.toWireType(r,e)),runDestructors(r)}),Object.defineProperty(e.registeredClass.constructor,r,a),[]})),[]}))};function __embind_create_inheriting_constructor(e,r,t){r>>>=0,t>>>=0,e=readLatin1String(e>>>=0),r=requireRegisteredType(r,"wrapper"),t=Emval.toValue(t);var n=r.registeredClass,a=n.instancePrototype,i=n.baseClass.instancePrototype,_=n.baseClass.constructor,s=createNamedFunction(e,(function(...e){n.baseClass.pureVirtualFunctions.forEach(function(e){if(this[e]===i[e])throw new PureVirtualError("Pure virtual function ".concat(e," must be implemented in JavaScript"))}.bind(this)),Object.defineProperty(this,"__parent",{value:a}),this.__construct(...e)}));return a.__construct=function(...e){this===a&&throwBindingError("Pass correct 'this' to __construct");var r=_.implement(this,...e);detachFinalizer(r);var t=r.$$;r.notifyOnDestruction(),t.preservePointerOnDelete=!0,Object.defineProperties(this,{$$:{value:t}}),attachFinalizer(this),registerInheritedInstance(n,t.ptr,this)},a.__destruct=function(){this===a&&throwBindingError("Pass correct 'this' to __destruct"),detachFinalizer(this),unregisterInheritedInstance(n,this.$$.ptr)},s.prototype=Object.create(a),Object.assign(s.prototype,t),Emval.toHandle(s)}__embind_register_class_class_property.sig="vpppppppp",__embind_create_inheriting_constructor.sig="pppp";var __embind_register_smart_ptr=function(e,r,t,n,a,i,_,s,o,l,c,u){e>>>=0,r>>>=0,a>>>=0,i>>>=0,_>>>=0,s>>>=0,o>>>=0,l>>>=0,c>>>=0,u>>>=0,t=readLatin1String(t>>>=0),i=embind__requireFunction(a,i),s=embind__requireFunction(_,s),l=embind__requireFunction(o,l),u=embind__requireFunction(c,u),whenDependentTypesAreResolved([e],[r],(e=>(e=e[0],[new RegisteredPointer(t,e.registeredClass,!1,!1,!0,e,n,i,s,l,u)])))};function __embind_register_enum(e,r,t,n){function a(){}e>>>=0,t>>>=0,r=readLatin1String(r>>>=0),a.values={},registerType(e,{name:r,constructor:a,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,r)=>r.value,argPackAdvance:GenericWireTypeSize,readValueFromPointer:enumReadValueFromPointer(r,t,n),destructorFunction:null}),exposePublicSymbol(r,a)}function __embind_register_enum_value(e,r,t){r>>>=0;var n=requireRegisteredType(e>>>=0,"enum");r=readLatin1String(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:createNamedFunction("".concat(n.name,"_").concat(r),(function(){}))}});a.values[t]=i,a[r]=i}__embind_register_smart_ptr.sig="vpppipppppppp",__embind_register_enum.sig="vpppi",__embind_register_enum_value.sig="vppi";var __embind_register_constant=function(e,r,t){r>>>=0,e=readLatin1String(e>>>=0),whenDependentTypesAreResolved([],[r],(r=>(r=r[0],Module[e]=r.fromWireType(t),[])))};__embind_register_constant.sig="vppd";var emval_symbols={};function __emval_register_symbol(e){emval_symbols[e>>>=0]=readLatin1String(e)}__emval_register_symbol.sig="vp";var getStringOrSymbol=e=>{var r=emval_symbols[e];return void 0===r?readLatin1String(e):r};function __emval_incref(e){(e>>>=0)>9&&(emval_handles[e+1]+=1)}function __emval_run_destructors(e){e>>>=0;var r=Emval.toValue(e);runDestructors(r),__emval_decref(e)}function __emval_new_array(){return Emval.toHandle([])}function __emval_new_array_from_memory_view(e){e>>>=0,e=Emval.toValue(e);for(var r=new Array(e.length),t=0;t>>=0,Emval.toHandle(getStringOrSymbol(e))}function __emval_new_u8string(e){return e>>>=0,Emval.toHandle(UTF8ToString(e))}function __emval_new_u16string(e){return e>>>=0,Emval.toHandle(UTF16ToString(e))}function __emval_take_value(e,r){r>>>=0;var t=(e=requireRegisteredType(e>>>=0,"_emval_take_value")).readValueFromPointer(r);return Emval.toHandle(t)}__emval_incref.sig="vp",__emval_run_destructors.sig="vp",__emval_new_array.sig="p",__emval_new_array_from_memory_view.sig="pp",__emval_new_object.sig="p",__emval_new_cstring.sig="pp",__emval_new_u8string.sig="pp",__emval_new_u16string.sig="pp",__emval_take_value.sig="ppp";var emval_get_global=()=>"object"==typeof globalThis?globalThis:Function("return this")();function __emval_get_global(e){return 0==(e>>>=0)?Emval.toHandle(emval_get_global()):(e=getStringOrSymbol(e),Emval.toHandle(emval_get_global()[e]))}function __emval_get_module_property(e){return e=getStringOrSymbol(e>>>=0),Emval.toHandle(Module[e])}function __emval_get_property(e,r){return e>>>=0,r>>>=0,e=Emval.toValue(e),r=Emval.toValue(r),Emval.toHandle(e[r])}function __emval_set_property(e,r,t){e>>>=0,r>>>=0,t>>>=0,e=Emval.toValue(e),r=Emval.toValue(r),t=Emval.toValue(t),e[r]=t}__emval_get_global.sig="pp",__emval_get_module_property.sig="pp",__emval_get_property.sig="ppp",__emval_set_property.sig="vppp";var emval_returnValue=(e,r,t)=>{var n=[],a=e.toWireType(n,t);return n.length&&(GROWABLE_HEAP_U32()[r>>>2>>>0]=Emval.toHandle(n)),a};function __emval_as(e,r,t){return e>>>=0,r>>>=0,t>>>=0,e=Emval.toValue(e),r=requireRegisteredType(r,"emval::as"),emval_returnValue(r,t,e)}function __emval_as_int64(e,r){return e>>>=0,r>>>=0,e=Emval.toValue(e),(r=requireRegisteredType(r,"emval::as")).toWireType(null,e)}function __emval_as_uint64(e,r){return e>>>=0,r>>>=0,e=Emval.toValue(e),(r=requireRegisteredType(r,"emval::as")).toWireType(null,e)}function __emval_equals(e,r){return e>>>=0,r>>>=0,(e=Emval.toValue(e))==Emval.toValue(r)}function __emval_strictly_equals(e,r){return e>>>=0,r>>>=0,(e=Emval.toValue(e))===Emval.toValue(r)}function __emval_greater_than(e,r){return e>>>=0,r>>>=0,(e=Emval.toValue(e))>Emval.toValue(r)}function __emval_less_than(e,r){return e>>>=0,r>>>=0,(e=Emval.toValue(e))>>=0,!(e=Emval.toValue(e))}__emval_as.sig="dppp",__emval_as_int64.sig="ipp",__emval_as_uint64.sig="ipp",__emval_equals.sig="ipp",__emval_strictly_equals.sig="ipp",__emval_greater_than.sig="ipp",__emval_less_than.sig="ipp",__emval_not.sig="ip";var emval_methodCallers=[];function __emval_call(e,r,t,n){return r>>>=0,t>>>=0,n>>>=0,(e=emval_methodCallers[e>>>=0])(null,r=Emval.toValue(r),t,n)}__emval_call.sig="dpppp";var emval_lookupTypes=(e,r)=>{for(var t=new Array(e),n=0;n>>2>>>0],"parameter "+n);return t},emval_addMethodCaller=e=>{var r=emval_methodCallers.length;return emval_methodCallers.push(e),r},reflectConstruct=Reflect.construct;function __emval_get_method_caller(e,r,t){var n=emval_lookupTypes(e,r>>>=0),a=n.shift();e--;var i="return function (obj, func, destructorsRef, args) {\n",_=0,s=[];0===t&&s.push("obj");for(var o=["retType"],l=[a],c=0;ce.name)).join(", "),") => ").concat(a.name,">");return emval_addMethodCaller(createNamedFunction(d,u))}function __emval_call_method(e,r,t,n,a){return r>>>=0,t>>>=0,n>>>=0,a>>>=0,(e=emval_methodCallers[e>>>=0])(r=Emval.toValue(r),r[t=getStringOrSymbol(t)],n,a)}function __emval_typeof(e){return e>>>=0,e=Emval.toValue(e),Emval.toHandle(typeof e)}function __emval_instanceof(e,r){return e>>>=0,r>>>=0,(e=Emval.toValue(e))instanceof Emval.toValue(r)}function __emval_is_number(e){return e>>>=0,"number"==typeof(e=Emval.toValue(e))}function __emval_is_string(e){return e>>>=0,"string"==typeof(e=Emval.toValue(e))}function __emval_in(e,r){return e>>>=0,r>>>=0,(e=Emval.toValue(e))in Emval.toValue(r)}function __emval_delete(e,r){return e>>>=0,r>>>=0,delete(e=Emval.toValue(e))[r=Emval.toValue(r)]}function __emval_throw(e){throw e>>>=0,Emval.toValue(e)}function __emval_iter_begin(e){return e>>>=0,e=Emval.toValue(e),Emval.toHandle(e[Symbol.iterator]())}function __emval_iter_next(e){e>>>=0;var r=(e=Emval.toValue(e)).next();return r.done?0:Emval.toHandle(r.value)}__emval_get_method_caller.sig="pipi",__emval_call_method.sig="dppppp",__emval_typeof.sig="pp",__emval_instanceof.sig="ipp",__emval_is_number.sig="ip",__emval_is_string.sig="ip",__emval_in.sig="ipp",__emval_delete.sig="ipp",__emval_throw.sig="ip",__emval_iter_begin.sig="pp",__emval_iter_next.sig="pp";var __emval_coro_suspend=function(e,r){e>>>=0,r>>>=0,Emval.toValue(e).then((e=>{__emval_coro_resume(r,Emval.toHandle(e))}))};__emval_coro_suspend.sig="vpp";var __emval_coro_make_promise=function(e,r){return e>>>=0,r>>>=0,Emval.toHandle(new Promise(((t,n)=>{GROWABLE_HEAP_U32()[e>>>2>>>0]=Emval.toHandle(t),GROWABLE_HEAP_U32()[r>>>2>>>0]=Emval.toHandle((()=>{try{___cxa_rethrow()}catch(e){n(e)}}))})))},emSetImmediate,emClearImmediate;function _duckdb_web_fs_file_sync(e){return globalThis.DUCKDB_RUNTIME.syncFile(Module,e)}function _duckdb_web_fs_file_remove(e,r){return globalThis.DUCKDB_RUNTIME.removeFile(Module,e,r)}__emval_coro_make_promise.sig="ppp",_duckdb_web_fs_file_sync.sig="vi",PThread.init(),registerWasmPlugin(),FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit(),embind_init_charCodes(),BindingError=Module.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},InternalError=Module.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},init_emval(),Module.requestFullscreen=Browser.requestFullscreen,Module.requestAnimationFrame=Browser.requestAnimationFrame,Module.setCanvasSize=Browser.setCanvasSize,Module.pauseMainLoop=Browser.mainLoop.pause,Module.resumeMainLoop=Browser.mainLoop.resume,Module.getUserMedia=Browser.getUserMedia,Module.createContext=Browser.createContext;for(var preloadedImages={},preloadedAudios={},GLctx,i=0;i<32;++i)tempFixedLengthArray.push(new Array(i));for(var miniTempWebGLFloatBuffersStorage=new Float32Array(288),i=0;i<288;++i)miniTempWebGLFloatBuffers[i]=miniTempWebGLFloatBuffersStorage.subarray(0,i);for(var miniTempWebGLIntBuffersStorage=new Int32Array(288),i=0;i<288;++i)miniTempWebGLIntBuffers[i]=miniTempWebGLIntBuffersStorage.subarray(0,i);if(typeof setImmediate<"u")emSetImmediate=setImmediateWrapped,emClearImmediate=clearImmediateWrapped;else if("function"==typeof addEventListener){var __setImmediate_id_counter=0,__setImmediate_queue=[],__setImmediate_message_id="_si",__setImmediate_cb=e=>{e.data===__setImmediate_message_id&&(e.stopPropagation(),__setImmediate_queue.shift()(),++__setImmediate_id_counter)};addEventListener("message",__setImmediate_cb,!0),emSetImmediate=e=>(postMessage(__setImmediate_message_id,"*"),__setImmediate_id_counter+__setImmediate_queue.push(e)-1),emClearImmediate=e=>{var r=e-__setImmediate_id_counter;r>=0&&r<__setImmediate_queue.length&&(__setImmediate_queue[r]=()=>{})}}if(!Atomics.waitAsync||typeof navigator<"u"&&navigator.userAgent&&jstoi_q((navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)||[])[2])<91){let e=function(){let t=performance.now(),n=r.length;for(let e=0;ea[3],_=Atomics.load(a[0],a[1])!=a[2];(i||_)&&(r[e--]=r[--n],r.length=n,a[4](_?"ok":"timed-out"))}n&&setTimeout(e,10)};var __Atomics_pollWaitAsyncAddresses=e;let r=[];Atomics.waitAsync=(t,n,a,i)=>{if(Atomics.load(t,n)!=a)return{async:!1,value:"not-equal"};if(i<=0)return{async:!1,value:"timed-out"};i=performance.now()+(i||1/0);let _,s=new Promise((e=>{_=e}));return r[0]||setTimeout(e,10),r.push([t,n,a,i,_]),{async:!0,value:s}}}UnboundTypeError=Module.UnboundTypeError=extendError(Error,"UnboundTypeError"),PureVirtualError=Module.PureVirtualError=extendError(Error,"PureVirtualError"),init_embind(),init_RegisteredPointer(),init_ClassHandle();var proxiedFunctionTable=[_proc_exit,exitOnMainThread,pthreadCreateProxied,___syscall__newselect,___syscall_accept4,___syscall_bind,___syscall_chdir,___syscall_chmod,___syscall_connect,___syscall_dup,___syscall_dup3,___syscall_faccessat,___syscall_fadvise64,___syscall_fallocate,___syscall_fchdir,___syscall_fchmod,___syscall_fchmodat2,___syscall_fchown32,___syscall_fchownat,___syscall_fcntl64,___syscall_fdatasync,___syscall_fstat64,___syscall_fstatfs64,___syscall_statfs64,___syscall_ftruncate64,___syscall_getcwd,___syscall_getdents64,___syscall_getpeername,___syscall_getsockname,___syscall_getsockopt,___syscall_ioctl,___syscall_listen,___syscall_lstat64,___syscall_mkdirat,___syscall_mknodat,___syscall_newfstatat,___syscall_openat,___syscall_pipe,___syscall_poll,___syscall_readlinkat,___syscall_recvfrom,___syscall_recvmsg,___syscall_renameat,___syscall_rmdir,___syscall_sendmsg,___syscall_sendto,___syscall_socket,___syscall_stat64,___syscall_symlink,___syscall_symlinkat,___syscall_truncate64,___syscall_unlinkat,___syscall_utimensat,__emscripten_runtime_keepalive_clear,__mmap_js,__msync_js,__munmap_js,__setitimer_js,_alBuffer3f,_alBuffer3i,_alBufferData,_alBufferf,_alBufferfv,_alBufferi,_alBufferiv,_alDeleteBuffers,_alDeleteSources,_alSourcei,_alDisable,_alDistanceModel,_alDopplerFactor,_alDopplerVelocity,_alEnable,_alGenBuffers,_alGenSources,_alGetBoolean,_alGetBooleanv,_alGetBuffer3f,_alGetBuffer3i,_alGetBufferf,_alGetBufferfv,_alGetBufferi,_alGetBufferiv,_alGetDouble,_alGetDoublev,_alGetEnumValue,_alGetError,_alGetFloat,_alGetFloatv,_alGetInteger,_alGetIntegerv,_alGetListener3f,_alGetListener3i,_alGetListenerf,_alGetListenerfv,_alGetListeneri,_alGetListeneriv,_alGetSource3f,_alGetSource3i,_alGetSourcef,_alGetSourcefv,_alGetSourcei,_alGetSourceiv,_alGetString,_alIsBuffer,_alIsEnabled,_alIsExtensionPresent,_alIsSource,_alListener3f,_alListener3i,_alListenerf,_alListenerfv,_alListeneri,_alListeneriv,_alSource3f,_alSource3i,_alSourcePause,_alSourcePausev,_alSourcePlay,_alSourcePlayv,_alSourceQueueBuffers,_alSourceRewind,_alSourceRewindv,_alSourceStop,_alSourceStopv,_alSourceUnqueueBuffers,_alSourcef,_alSourcefv,_alSourceiv,_alSpeedOfSound,_alcCaptureCloseDevice,_alcCaptureOpenDevice,_alcCaptureSamples,_alcCaptureStart,_alcCaptureStop,_alcCloseDevice,_alcCreateContext,_alcDestroyContext,_alcGetContextsDevice,_alcGetCurrentContext,_alcGetEnumValue,_alcGetError,_alcGetIntegerv,_alcGetString,_alcIsExtensionPresent,_alcMakeContextCurrent,_alcOpenDevice,_emscripten_alcDevicePauseSOFT,_emscripten_alcDeviceResumeSOFT,_emscripten_alcGetStringiSOFT,_emscripten_alcResetDeviceSOFT,_environ_get,_environ_sizes_get,_fd_close,_fd_fdstat_get,_fd_pread,_fd_pwrite,_fd_read,_fd_seek,_fd_sync,_fd_write,_getaddrinfo,_emscripten_force_exit,_emscripten_set_keypress_callback_on_thread,_emscripten_set_keydown_callback_on_thread,_emscripten_set_keyup_callback_on_thread,_emscripten_set_click_callback_on_thread,_emscripten_set_mousedown_callback_on_thread,_emscripten_set_mouseup_callback_on_thread,_emscripten_set_dblclick_callback_on_thread,_emscripten_set_mousemove_callback_on_thread,_emscripten_set_mouseenter_callback_on_thread,_emscripten_set_mouseleave_callback_on_thread,_emscripten_set_mouseover_callback_on_thread,_emscripten_set_mouseout_callback_on_thread,_emscripten_get_mouse_status,_emscripten_set_wheel_callback_on_thread,_emscripten_set_resize_callback_on_thread,_emscripten_set_scroll_callback_on_thread,_emscripten_set_blur_callback_on_thread,_emscripten_set_focus_callback_on_thread,_emscripten_set_focusin_callback_on_thread,_emscripten_set_focusout_callback_on_thread,_emscripten_set_deviceorientation_callback_on_thread,_emscripten_get_deviceorientation_status,_emscripten_set_devicemotion_callback_on_thread,_emscripten_get_devicemotion_status,_emscripten_set_orientationchange_callback_on_thread,_emscripten_get_orientation_status,_emscripten_lock_orientation,_emscripten_unlock_orientation,_emscripten_set_fullscreenchange_callback_on_thread,_emscripten_get_fullscreen_status,getCanvasSizeMainThread,setCanvasElementSizeMainThread,_emscripten_request_fullscreen,_emscripten_request_fullscreen_strategy,_emscripten_enter_soft_fullscreen,_emscripten_exit_soft_fullscreen,_emscripten_exit_fullscreen,_emscripten_set_pointerlockchange_callback_on_thread,_emscripten_set_pointerlockerror_callback_on_thread,_emscripten_get_pointerlock_status,_emscripten_request_pointerlock,_emscripten_exit_pointerlock,_emscripten_vibrate,_emscripten_vibrate_pattern,_emscripten_set_visibilitychange_callback_on_thread,_emscripten_get_visibility_status,_emscripten_set_touchstart_callback_on_thread,_emscripten_set_touchend_callback_on_thread,_emscripten_set_touchmove_callback_on_thread,_emscripten_set_touchcancel_callback_on_thread,_emscripten_set_gamepadconnected_callback_on_thread,_emscripten_sample_gamepad_data,_emscripten_set_gamepaddisconnected_callback_on_thread,_emscripten_get_num_gamepads,_emscripten_get_gamepad_status,_emscripten_set_beforeunload_callback_on_thread,_emscripten_set_batterychargingchange_callback_on_thread,_emscripten_set_batterylevelchange_callback_on_thread,_emscripten_get_battery_status,_emscripten_set_element_css_size,_emscripten_get_element_css_size,_emscripten_get_device_pixel_ratio,_random_get,_clock_time_get,_clock_res_get,_emscripten_run_preload_plugins,_emscripten_run_preload_plugins_data,_emscripten_get_window_title,_emscripten_set_window_title,_emscripten_get_screen_size,_emscripten_hide_mouse,_emscripten_set_canvas_size,_emscripten_get_canvas_size,_emscripten_create_worker,_emscripten_destroy_worker,_emscripten_call_worker,_emscripten_get_worker_queue_size,_emscripten_get_preloaded_image_data,_emscripten_get_preloaded_image_data_from_FILE,_emscripten_async_wget,_emscripten_async_wget_data,_emscripten_async_wget2,_emscripten_async_wget2_data,_emscripten_async_wget2_abort,_emscripten_set_webglcontextlost_callback_on_thread,_emscripten_set_webglcontextrestored_callback_on_thread,_glutPostRedisplay,_glutGetModifiers,_glutInit,_glutInitWindowSize,_glutInitWindowPosition,_glutIdleFunc,_glutTimerFunc,_glutDisplayFunc,_glutKeyboardFunc,_glutKeyboardUpFunc,_glutSpecialFunc,_glutSpecialUpFunc,_glutReshapeFunc,_glutMotionFunc,_glutPassiveMotionFunc,_glutMouseFunc,_glutSetCursor,_glutCreateWindow,_glutDestroyWindow,_glutReshapeWindow,_glutPositionWindow,_glutFullScreen,_glutInitDisplayMode,_glutSwapBuffers,_glutMainLoop,_eglGetDisplay,_eglInitialize,_eglTerminate,_eglGetConfigs,_eglChooseConfig,_eglGetConfigAttrib,_eglCreateWindowSurface,_eglDestroySurface,_eglCreateContext,_eglDestroyContext,_eglQuerySurface,_eglQueryContext,_eglGetError,_eglQueryString,_eglBindAPI,_eglQueryAPI,_eglWaitClient,_eglWaitNative,_eglSwapInterval,_eglMakeCurrent,_eglGetCurrentContext,_eglGetCurrentSurface,_eglGetCurrentDisplay,_eglSwapBuffers,_eglReleaseThread,_SDL_GetTicks,_SDL_LockSurface,_SDL_Linked_Version,_SDL_Init,_SDL_WasInit,_SDL_GetVideoInfo,_SDL_VideoDriverName,_SDL_SetVideoMode,_SDL_GetVideoSurface,_SDL_AudioQuit,_SDL_UnlockSurface,_SDL_WM_SetCaption,_SDL_GetKeyboardState,_SDL_GetKeyName,_SDL_GetModState,_SDL_GetMouseState,_SDL_WarpMouse,_SDL_ShowCursor,_SDL_GetError,_SDL_CreateRGBSurface,_SDL_CreateRGBSurfaceFrom,_SDL_ConvertSurface,_SDL_FreeSurface,_SDL_UpperBlit,_SDL_UpperBlitScaled,_SDL_GetClipRect,_SDL_SetClipRect,_SDL_FillRect,_SDL_SetAlpha,_SDL_PollEvent,_SDL_PushEvent,_SDL_PeepEvents,_SDL_PumpEvents,_emscripten_SDL_SetEventHandler,_SDL_SetColors,_SDL_MapRGB,_SDL_MapRGBA,_SDL_GetRGB,_SDL_GetRGBA,_SDL_GetAppState,_SDL_WM_ToggleFullScreen,_IMG_Load_RW,_SDL_FreeRW,_IMG_Load,_SDL_RWFromFile,_SDL_OpenAudio,_SDL_PauseAudio,_SDL_CloseAudio,_SDL_StartTextInput,_SDL_StopTextInput,_Mix_OpenAudio,_Mix_AllocateChannels,_Mix_ChannelFinished,_Mix_Volume,_Mix_SetPanning,_Mix_LoadWAV_RW,_Mix_LoadWAV,_Mix_QuickLoad_RAW,_Mix_FreeChunk,_Mix_ReserveChannels,_Mix_PlayChannelTimed,_Mix_HaltChannel,_Mix_HookMusicFinished,_Mix_HaltMusic,_Mix_VolumeMusic,_Mix_LoadMUS,_Mix_PlayMusic,_Mix_PauseMusic,_Mix_ResumeMusic,_Mix_PlayingMusic,_Mix_Playing,_Mix_Pause,_Mix_Paused,_Mix_PausedMusic,_Mix_Resume,_TTF_Init,_TTF_OpenFont,_TTF_CloseFont,_TTF_RenderText_Solid,_TTF_SizeText,_TTF_GlyphMetrics,_TTF_FontAscent,_TTF_FontDescent,_TTF_FontHeight,_SDL_GL_SetAttribute,_SDL_GL_GetAttribute,_SDL_GL_SwapBuffers,_SDL_GL_ExtensionSupported,_SDL_GetWindowFlags,_SDL_GL_GetSwapInterval,_SDL_SetWindowTitle,_SDL_GetWindowSize,_SDL_SetWindowFullscreen,_SDL_NumJoysticks,_SDL_JoystickName,_SDL_JoystickOpen,_SDL_JoystickOpened,_SDL_JoystickNumAxes,_SDL_JoystickNumButtons,_SDL_JoystickUpdate,_SDL_JoystickEventState,_SDL_JoystickGetAxis,_SDL_JoystickGetButton,_SDL_JoystickClose,_SDL_RWFromConstMem,_SDL_EnableUNICODE,_SDL_AddTimer,_SDL_RemoveTimer],wasmImports={IMG_Init:_IMG_Init,IMG_Load:_IMG_Load,IMG_Load_RW:_IMG_Load_RW,IMG_Quit:_IMG_Quit,Mix_AllocateChannels:_Mix_AllocateChannels,Mix_ChannelFinished:_Mix_ChannelFinished,Mix_CloseAudio:_Mix_CloseAudio,Mix_FadeInChannelTimed:_Mix_FadeInChannelTimed,Mix_FadeInMusicPos:_Mix_FadeInMusicPos,Mix_FadeOutChannel:_Mix_FadeOutChannel,Mix_FadeOutMusic:_Mix_FadeOutMusic,Mix_FadingChannel:_Mix_FadingChannel,Mix_FreeChunk:_Mix_FreeChunk,Mix_FreeMusic:_Mix_FreeMusic,Mix_HaltChannel:_Mix_HaltChannel,Mix_HaltMusic:_Mix_HaltMusic,Mix_HookMusicFinished:_Mix_HookMusicFinished,Mix_Init:_Mix_Init,Mix_Linked_Version:_Mix_Linked_Version,Mix_LoadMUS:_Mix_LoadMUS,Mix_LoadMUS_RW:_Mix_LoadMUS_RW,Mix_LoadWAV:_Mix_LoadWAV,Mix_LoadWAV_RW:_Mix_LoadWAV_RW,Mix_OpenAudio:_Mix_OpenAudio,Mix_Pause:_Mix_Pause,Mix_PauseMusic:_Mix_PauseMusic,Mix_Paused:_Mix_Paused,Mix_PausedMusic:_Mix_PausedMusic,Mix_PlayChannelTimed:_Mix_PlayChannelTimed,Mix_PlayMusic:_Mix_PlayMusic,Mix_Playing:_Mix_Playing,Mix_PlayingMusic:_Mix_PlayingMusic,Mix_QuerySpec:_Mix_QuerySpec,Mix_QuickLoad_RAW:_Mix_QuickLoad_RAW,Mix_Quit:_Mix_Quit,Mix_ReserveChannels:_Mix_ReserveChannels,Mix_Resume:_Mix_Resume,Mix_ResumeMusic:_Mix_ResumeMusic,Mix_SetPanning:_Mix_SetPanning,Mix_SetPosition:_Mix_SetPosition,Mix_SetPostMix:_Mix_SetPostMix,Mix_Volume:_Mix_Volume,Mix_VolumeChunk:_Mix_VolumeChunk,Mix_VolumeMusic:_Mix_VolumeMusic,SDL_AddTimer:_SDL_AddTimer,SDL_AllocRW:_SDL_AllocRW,SDL_AudioDriverName:_SDL_AudioDriverName,SDL_AudioQuit:_SDL_AudioQuit,SDL_ClearError:_SDL_ClearError,SDL_CloseAudio:_SDL_CloseAudio,SDL_CondBroadcast:_SDL_CondBroadcast,SDL_CondSignal:_SDL_CondSignal,SDL_CondWait:_SDL_CondWait,SDL_CondWaitTimeout:_SDL_CondWaitTimeout,SDL_ConvertSurface:_SDL_ConvertSurface,SDL_CreateCond:_SDL_CreateCond,SDL_CreateMutex:_SDL_CreateMutex,SDL_CreateRGBSurface:_SDL_CreateRGBSurface,SDL_CreateRGBSurfaceFrom:_SDL_CreateRGBSurfaceFrom,SDL_CreateThread:_SDL_CreateThread,SDL_Delay:_SDL_Delay,SDL_DestroyCond:_SDL_DestroyCond,SDL_DestroyMutex:_SDL_DestroyMutex,SDL_DestroyRenderer:_SDL_DestroyRenderer,SDL_DestroyWindow:_SDL_DestroyWindow,SDL_DisplayFormatAlpha:_SDL_DisplayFormatAlpha,SDL_EnableKeyRepeat:_SDL_EnableKeyRepeat,SDL_EnableUNICODE:_SDL_EnableUNICODE,SDL_FillRect:_SDL_FillRect,SDL_Flip:_SDL_Flip,SDL_FreeRW:_SDL_FreeRW,SDL_FreeSurface:_SDL_FreeSurface,SDL_GL_DeleteContext:_SDL_GL_DeleteContext,SDL_GL_ExtensionSupported:_SDL_GL_ExtensionSupported,SDL_GL_GetAttribute:_SDL_GL_GetAttribute,SDL_GL_GetSwapInterval:_SDL_GL_GetSwapInterval,SDL_GL_MakeCurrent:_SDL_GL_MakeCurrent,SDL_GL_SetAttribute:_SDL_GL_SetAttribute,SDL_GL_SetSwapInterval:_SDL_GL_SetSwapInterval,SDL_GL_SwapBuffers:_SDL_GL_SwapBuffers,SDL_GL_SwapWindow:_SDL_GL_SwapWindow,SDL_GetAppState:_SDL_GetAppState,SDL_GetAudioDriver:_SDL_GetAudioDriver,SDL_GetClipRect:_SDL_GetClipRect,SDL_GetCurrentAudioDriver:_SDL_GetCurrentAudioDriver,SDL_GetError:_SDL_GetError,SDL_GetKeyName:_SDL_GetKeyName,SDL_GetKeyState:_SDL_GetKeyState,SDL_GetKeyboardState:_SDL_GetKeyboardState,SDL_GetModState:_SDL_GetModState,SDL_GetMouseState:_SDL_GetMouseState,SDL_GetNumAudioDrivers:_SDL_GetNumAudioDrivers,SDL_GetRGB:_SDL_GetRGB,SDL_GetRGBA:_SDL_GetRGBA,SDL_GetScancodeFromKey:_SDL_GetScancodeFromKey,SDL_GetThreadID:_SDL_GetThreadID,SDL_GetTicks:_SDL_GetTicks,SDL_GetVideoInfo:_SDL_GetVideoInfo,SDL_GetVideoSurface:_SDL_GetVideoSurface,SDL_GetWindowFlags:_SDL_GetWindowFlags,SDL_GetWindowSize:_SDL_GetWindowSize,SDL_Has3DNow:_SDL_Has3DNow,SDL_Has3DNowExt:_SDL_Has3DNowExt,SDL_HasAltiVec:_SDL_HasAltiVec,SDL_HasMMX:_SDL_HasMMX,SDL_HasMMXExt:_SDL_HasMMXExt,SDL_HasRDTSC:_SDL_HasRDTSC,SDL_HasSSE:_SDL_HasSSE,SDL_HasSSE2:_SDL_HasSSE2,SDL_Init:_SDL_Init,SDL_InitSubSystem:_SDL_InitSubSystem,SDL_JoystickClose:_SDL_JoystickClose,SDL_JoystickEventState:_SDL_JoystickEventState,SDL_JoystickGetAxis:_SDL_JoystickGetAxis,SDL_JoystickGetBall:_SDL_JoystickGetBall,SDL_JoystickGetButton:_SDL_JoystickGetButton,SDL_JoystickGetHat:_SDL_JoystickGetHat,SDL_JoystickIndex:_SDL_JoystickIndex,SDL_JoystickName:_SDL_JoystickName,SDL_JoystickNumAxes:_SDL_JoystickNumAxes,SDL_JoystickNumBalls:_SDL_JoystickNumBalls,SDL_JoystickNumButtons:_SDL_JoystickNumButtons,SDL_JoystickNumHats:_SDL_JoystickNumHats,SDL_JoystickOpen:_SDL_JoystickOpen,SDL_JoystickOpened:_SDL_JoystickOpened,SDL_JoystickUpdate:_SDL_JoystickUpdate,SDL_Linked_Version:_SDL_Linked_Version,SDL_ListModes:_SDL_ListModes,SDL_LoadBMP_RW:_SDL_LoadBMP_RW,SDL_LockAudio:_SDL_LockAudio,SDL_LockSurface:_SDL_LockSurface,SDL_LogSetOutputFunction:_SDL_LogSetOutputFunction,SDL_LowerBlit:_SDL_LowerBlit,SDL_LowerBlitScaled:_SDL_LowerBlitScaled,SDL_MapRGB:_SDL_MapRGB,SDL_MapRGBA:_SDL_MapRGBA,SDL_NumJoysticks:_SDL_NumJoysticks,SDL_OpenAudio:_SDL_OpenAudio,SDL_PauseAudio:_SDL_PauseAudio,SDL_PeepEvents:_SDL_PeepEvents,SDL_PollEvent:_SDL_PollEvent,SDL_PumpEvents:_SDL_PumpEvents,SDL_PushEvent:_SDL_PushEvent,SDL_Quit:_SDL_Quit,SDL_QuitSubSystem:_SDL_QuitSubSystem,SDL_RWFromConstMem:_SDL_RWFromConstMem,SDL_RWFromFile:_SDL_RWFromFile,SDL_RWFromMem:_SDL_RWFromMem,SDL_RemoveTimer:_SDL_RemoveTimer,SDL_SaveBMP_RW:_SDL_SaveBMP_RW,SDL_SetAlpha:_SDL_SetAlpha,SDL_SetClipRect:_SDL_SetClipRect,SDL_SetColorKey:_SDL_SetColorKey,SDL_SetColors:_SDL_SetColors,SDL_SetError:_SDL_SetError,SDL_SetGamma:_SDL_SetGamma,SDL_SetGammaRamp:_SDL_SetGammaRamp,SDL_SetPalette:_SDL_SetPalette,SDL_SetVideoMode:_SDL_SetVideoMode,SDL_SetWindowFullscreen:_SDL_SetWindowFullscreen,SDL_SetWindowTitle:_SDL_SetWindowTitle,SDL_ShowCursor:_SDL_ShowCursor,SDL_StartTextInput:_SDL_StartTextInput,SDL_StopTextInput:_SDL_StopTextInput,SDL_ThreadID:_SDL_ThreadID,SDL_UnlockAudio:_SDL_UnlockAudio,SDL_UnlockSurface:_SDL_UnlockSurface,SDL_UpdateRect:_SDL_UpdateRect,SDL_UpdateRects:_SDL_UpdateRects,SDL_UpperBlit:_SDL_UpperBlit,SDL_UpperBlitScaled:_SDL_UpperBlitScaled,SDL_VideoDriverName:_SDL_VideoDriverName,SDL_VideoModeOK:_SDL_VideoModeOK,SDL_VideoQuit:_SDL_VideoQuit,SDL_WM_GrabInput:_SDL_WM_GrabInput,SDL_WM_IconifyWindow:_SDL_WM_IconifyWindow,SDL_WM_SetCaption:_SDL_WM_SetCaption,SDL_WM_SetIcon:_SDL_WM_SetIcon,SDL_WM_ToggleFullScreen:_SDL_WM_ToggleFullScreen,SDL_WaitThread:_SDL_WaitThread,SDL_WarpMouse:_SDL_WarpMouse,SDL_WasInit:_SDL_WasInit,SDL_mutexP:_SDL_mutexP,SDL_mutexV:_SDL_mutexV,TTF_CloseFont:_TTF_CloseFont,TTF_FontAscent:_TTF_FontAscent,TTF_FontDescent:_TTF_FontDescent,TTF_FontHeight:_TTF_FontHeight,TTF_FontLineSkip:_TTF_FontLineSkip,TTF_GlyphMetrics:_TTF_GlyphMetrics,TTF_Init:_TTF_Init,TTF_OpenFont:_TTF_OpenFont,TTF_Quit:_TTF_Quit,TTF_RenderText_Blended:_TTF_RenderText_Blended,TTF_RenderText_Shaded:_TTF_RenderText_Shaded,TTF_RenderText_Solid:_TTF_RenderText_Solid,TTF_RenderUTF8_Solid:_TTF_RenderUTF8_Solid,TTF_SizeText:_TTF_SizeText,TTF_SizeUTF8:_TTF_SizeUTF8,XChangeWindowAttributes:_XChangeWindowAttributes,XCreateWindow:_XCreateWindow,XInternAtom:_XInternAtom,XMapWindow:_XMapWindow,XOpenDisplay:_XOpenDisplay,XPending:_XPending,XSendEvent:_XSendEvent,XSetWMHints:_XSetWMHints,XStoreName:_XStoreName,_Unwind_Backtrace:__Unwind_Backtrace,_Unwind_FindEnclosingFunction:__Unwind_FindEnclosingFunction,_Unwind_GetIPInfo:__Unwind_GetIPInfo,_ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm:__ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm,__asctime_r:___asctime_r,__assert_fail:___assert_fail,__c_longjmp:___c_longjmp,__call_sighandler:___call_sighandler,__cpp_exception:___cpp_exception,__emscripten_init_main_thread_js:___emscripten_init_main_thread_js,__emscripten_thread_cleanup:___emscripten_thread_cleanup,__global_base:___global_base,__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__pthread_create_js:___pthread_create_js,__pthread_kill_js:___pthread_kill_js,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__syscall__newselect:___syscall__newselect,__syscall_accept4:___syscall_accept4,__syscall_bind:___syscall_bind,__syscall_chdir:___syscall_chdir,__syscall_chmod:___syscall_chmod,__syscall_connect:___syscall_connect,__syscall_dup:___syscall_dup,__syscall_dup3:___syscall_dup3,__syscall_faccessat:___syscall_faccessat,__syscall_fadvise64:___syscall_fadvise64,__syscall_fallocate:___syscall_fallocate,__syscall_fchdir:___syscall_fchdir,__syscall_fchmod:___syscall_fchmod,__syscall_fchmodat2:___syscall_fchmodat2,__syscall_fchown32:___syscall_fchown32,__syscall_fchownat:___syscall_fchownat,__syscall_fcntl64:___syscall_fcntl64,__syscall_fdatasync:___syscall_fdatasync,__syscall_fstat64:___syscall_fstat64,__syscall_fstatfs64:___syscall_fstatfs64,__syscall_ftruncate64:___syscall_ftruncate64,__syscall_getcwd:___syscall_getcwd,__syscall_getdents64:___syscall_getdents64,__syscall_getpeername:___syscall_getpeername,__syscall_getsockname:___syscall_getsockname,__syscall_getsockopt:___syscall_getsockopt,__syscall_ioctl:___syscall_ioctl,__syscall_listen:___syscall_listen,__syscall_lstat64:___syscall_lstat64,__syscall_mkdirat:___syscall_mkdirat,__syscall_mknodat:___syscall_mknodat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_pipe:___syscall_pipe,__syscall_poll:___syscall_poll,__syscall_readlinkat:___syscall_readlinkat,__syscall_recvfrom:___syscall_recvfrom,__syscall_recvmsg:___syscall_recvmsg,__syscall_renameat:___syscall_renameat,__syscall_rmdir:___syscall_rmdir,__syscall_sendmsg:___syscall_sendmsg,__syscall_sendto:___syscall_sendto,__syscall_socket:___syscall_socket,__syscall_stat64:___syscall_stat64,__syscall_statfs64:___syscall_statfs64,__syscall_symlink:___syscall_symlink,__syscall_symlinkat:___syscall_symlinkat,__syscall_truncate64:___syscall_truncate64,__syscall_unlinkat:___syscall_unlinkat,__syscall_utimensat:___syscall_utimensat,__table_base:___table_base,_dlopen_js:__dlopen_js,_dlsym_catchup_js:__dlsym_catchup_js,_dlsym_js:__dlsym_js,_embind_create_inheriting_constructor:__embind_create_inheriting_constructor,_embind_finalize_value_array:__embind_finalize_value_array,_embind_finalize_value_object:__embind_finalize_value_object,_embind_register_bigint:__embind_register_bigint,_embind_register_bool:__embind_register_bool,_embind_register_class:__embind_register_class,_embind_register_class_class_function:__embind_register_class_class_function,_embind_register_class_class_property:__embind_register_class_class_property,_embind_register_class_constructor:__embind_register_class_constructor,_embind_register_class_function:__embind_register_class_function,_embind_register_class_property:__embind_register_class_property,_embind_register_constant:__embind_register_constant,_embind_register_emval:__embind_register_emval,_embind_register_enum:__embind_register_enum,_embind_register_enum_value:__embind_register_enum_value,_embind_register_float:__embind_register_float,_embind_register_function:__embind_register_function,_embind_register_integer:__embind_register_integer,_embind_register_memory_view:__embind_register_memory_view,_embind_register_optional:__embind_register_optional,_embind_register_smart_ptr:__embind_register_smart_ptr,_embind_register_std_string:__embind_register_std_string,_embind_register_std_wstring:__embind_register_std_wstring,_embind_register_user_type:__embind_register_user_type,_embind_register_value_array:__embind_register_value_array,_embind_register_value_array_element:__embind_register_value_array_element,_embind_register_value_object:__embind_register_value_object,_embind_register_value_object_field:__embind_register_value_object_field,_embind_register_void:__embind_register_void,_emscripten_dlopen_js:__emscripten_dlopen_js,_emscripten_dlsync_threads:__emscripten_dlsync_threads,_emscripten_dlsync_threads_async:__emscripten_dlsync_threads_async,_emscripten_fs_load_embedded_files:__emscripten_fs_load_embedded_files,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_get_progname:__emscripten_get_progname,_emscripten_lookup_name:__emscripten_lookup_name,_emscripten_notify_mailbox_postmessage:__emscripten_notify_mailbox_postmessage,_emscripten_push_main_loop_blocker:__emscripten_push_main_loop_blocker,_emscripten_push_uncounted_main_loop_blocker:__emscripten_push_uncounted_main_loop_blocker,_emscripten_receive_on_main_thread_js:__emscripten_receive_on_main_thread_js,_emscripten_runtime_keepalive_clear:__emscripten_runtime_keepalive_clear,_emscripten_set_offscreencanvas_size:__emscripten_set_offscreencanvas_size,_emscripten_system:__emscripten_system,_emscripten_thread_exit_joinable:__emscripten_thread_exit_joinable,_emscripten_thread_mailbox_await:__emscripten_thread_mailbox_await,_emscripten_thread_set_strongref:__emscripten_thread_set_strongref,_emval_as:__emval_as,_emval_as_int64:__emval_as_int64,_emval_as_uint64:__emval_as_uint64,_emval_call:__emval_call,_emval_call_method:__emval_call_method,_emval_coro_make_promise:__emval_coro_make_promise,_emval_coro_suspend:__emval_coro_suspend,_emval_decref:__emval_decref,_emval_delete:__emval_delete,_emval_equals:__emval_equals,_emval_get_global:__emval_get_global,_emval_get_method_caller:__emval_get_method_caller,_emval_get_module_property:__emval_get_module_property,_emval_get_property:__emval_get_property,_emval_greater_than:__emval_greater_than,_emval_in:__emval_in,_emval_incref:__emval_incref,_emval_instanceof:__emval_instanceof,_emval_is_number:__emval_is_number,_emval_is_string:__emval_is_string,_emval_iter_begin:__emval_iter_begin,_emval_iter_next:__emval_iter_next,_emval_less_than:__emval_less_than,_emval_new_array:__emval_new_array,_emval_new_array_from_memory_view:__emval_new_array_from_memory_view,_emval_new_cstring:__emval_new_cstring,_emval_new_object:__emval_new_object,_emval_new_u16string:__emval_new_u16string,_emval_new_u8string:__emval_new_u8string,_emval_not:__emval_not,_emval_register_symbol:__emval_register_symbol,_emval_run_destructors:__emval_run_destructors,_emval_set_property:__emval_set_property,_emval_strictly_equals:__emval_strictly_equals,_emval_take_value:__emval_take_value,_emval_throw:__emval_throw,_emval_typeof:__emval_typeof,_glGetActiveAttribOrUniform:__glGetActiveAttribOrUniform,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_mktime_js:__mktime_js,_mmap_js:__mmap_js,_msync_js:__msync_js,_munmap_js:__munmap_js,_setitimer_js:__setitimer_js,_timegm_js:__timegm_js,_tzset_js:__tzset_js,abort:_abort,alBuffer3f:_alBuffer3f,alBuffer3i:_alBuffer3i,alBufferData:_alBufferData,alBufferf:_alBufferf,alBufferfv:_alBufferfv,alBufferi:_alBufferi,alBufferiv:_alBufferiv,alDeleteBuffers:_alDeleteBuffers,alDeleteSources:_alDeleteSources,alDisable:_alDisable,alDistanceModel:_alDistanceModel,alDopplerFactor:_alDopplerFactor,alDopplerVelocity:_alDopplerVelocity,alEnable:_alEnable,alGenBuffers:_alGenBuffers,alGenSources:_alGenSources,alGetBoolean:_alGetBoolean,alGetBooleanv:_alGetBooleanv,alGetBuffer3f:_alGetBuffer3f,alGetBuffer3i:_alGetBuffer3i,alGetBufferf:_alGetBufferf,alGetBufferfv:_alGetBufferfv,alGetBufferi:_alGetBufferi,alGetBufferiv:_alGetBufferiv,alGetDouble:_alGetDouble,alGetDoublev:_alGetDoublev,alGetEnumValue:_alGetEnumValue,alGetError:_alGetError,alGetFloat:_alGetFloat,alGetFloatv:_alGetFloatv,alGetInteger:_alGetInteger,alGetIntegerv:_alGetIntegerv,alGetListener3f:_alGetListener3f,alGetListener3i:_alGetListener3i,alGetListenerf:_alGetListenerf,alGetListenerfv:_alGetListenerfv,alGetListeneri:_alGetListeneri,alGetListeneriv:_alGetListeneriv,alGetSource3f:_alGetSource3f,alGetSource3i:_alGetSource3i,alGetSourcef:_alGetSourcef,alGetSourcefv:_alGetSourcefv,alGetSourcei:_alGetSourcei,alGetSourceiv:_alGetSourceiv,alGetString:_alGetString,alIsBuffer:_alIsBuffer,alIsEnabled:_alIsEnabled,alIsExtensionPresent:_alIsExtensionPresent,alIsSource:_alIsSource,alListener3f:_alListener3f,alListener3i:_alListener3i,alListenerf:_alListenerf,alListenerfv:_alListenerfv,alListeneri:_alListeneri,alListeneriv:_alListeneriv,alSource3f:_alSource3f,alSource3i:_alSource3i,alSourcePause:_alSourcePause,alSourcePausev:_alSourcePausev,alSourcePlay:_alSourcePlay,alSourcePlayv:_alSourcePlayv,alSourceQueueBuffers:_alSourceQueueBuffers,alSourceRewind:_alSourceRewind,alSourceRewindv:_alSourceRewindv,alSourceStop:_alSourceStop,alSourceStopv:_alSourceStopv,alSourceUnqueueBuffers:_alSourceUnqueueBuffers,alSourcef:_alSourcef,alSourcefv:_alSourcefv,alSourcei:_alSourcei,alSourceiv:_alSourceiv,alSpeedOfSound:_alSpeedOfSound,alcCaptureCloseDevice:_alcCaptureCloseDevice,alcCaptureOpenDevice:_alcCaptureOpenDevice,alcCaptureSamples:_alcCaptureSamples,alcCaptureStart:_alcCaptureStart,alcCaptureStop:_alcCaptureStop,alcCloseDevice:_alcCloseDevice,alcCreateContext:_alcCreateContext,alcDestroyContext:_alcDestroyContext,alcGetContextsDevice:_alcGetContextsDevice,alcGetCurrentContext:_alcGetCurrentContext,alcGetEnumValue:_alcGetEnumValue,alcGetError:_alcGetError,alcGetIntegerv:_alcGetIntegerv,alcGetString:_alcGetString,alcIsExtensionPresent:_alcIsExtensionPresent,alcMakeContextCurrent:_alcMakeContextCurrent,alcOpenDevice:_alcOpenDevice,alcProcessContext:_alcProcessContext,alcSuspendContext:_alcSuspendContext,boxColor:_boxColor,boxRGBA:_boxRGBA,clock_res_get:_clock_res_get,clock_time_get:_clock_time_get,duckdb_web_fs_directory_create:_duckdb_web_fs_directory_create,duckdb_web_fs_directory_exists:_duckdb_web_fs_directory_exists,duckdb_web_fs_directory_list_files:_duckdb_web_fs_directory_list_files,duckdb_web_fs_directory_remove:_duckdb_web_fs_directory_remove,duckdb_web_fs_file_close:_duckdb_web_fs_file_close,duckdb_web_fs_file_exists:_duckdb_web_fs_file_exists,duckdb_web_fs_file_get_last_modified_time:_duckdb_web_fs_file_get_last_modified_time,duckdb_web_fs_file_move:_duckdb_web_fs_file_move,duckdb_web_fs_file_open:_duckdb_web_fs_file_open,duckdb_web_fs_file_read:_duckdb_web_fs_file_read,duckdb_web_fs_file_remove:_duckdb_web_fs_file_remove,duckdb_web_fs_file_sync:_duckdb_web_fs_file_sync,duckdb_web_fs_file_truncate:_duckdb_web_fs_file_truncate,duckdb_web_fs_file_write:_duckdb_web_fs_file_write,duckdb_web_fs_get_default_data_protocol:_duckdb_web_fs_get_default_data_protocol,duckdb_web_fs_glob:_duckdb_web_fs_glob,duckdb_web_test_platform_feature:_duckdb_web_test_platform_feature,duckdb_web_udf_scalar_call:_duckdb_web_udf_scalar_call,eglBindAPI:_eglBindAPI,eglChooseConfig:_eglChooseConfig,eglCreateContext:_eglCreateContext,eglCreateWindowSurface:_eglCreateWindowSurface,eglDestroyContext:_eglDestroyContext,eglDestroySurface:_eglDestroySurface,eglGetConfigAttrib:_eglGetConfigAttrib,eglGetConfigs:_eglGetConfigs,eglGetCurrentContext:_eglGetCurrentContext,eglGetCurrentDisplay:_eglGetCurrentDisplay,eglGetCurrentSurface:_eglGetCurrentSurface,eglGetDisplay:_eglGetDisplay,eglGetError:_eglGetError,eglInitialize:_eglInitialize,eglMakeCurrent:_eglMakeCurrent,eglQueryAPI:_eglQueryAPI,eglQueryContext:_eglQueryContext,eglQueryString:_eglQueryString,eglQuerySurface:_eglQuerySurface,eglReleaseThread:_eglReleaseThread,eglSwapBuffers:_eglSwapBuffers,eglSwapInterval:_eglSwapInterval,eglTerminate:_eglTerminate,eglWaitClient:_eglWaitClient,eglWaitGL:_eglWaitGL,eglWaitNative:_eglWaitNative,ellipseColor:_ellipseColor,ellipseRGBA:_ellipseRGBA,emscripten_SDL_SetEventHandler:_emscripten_SDL_SetEventHandler,emscripten_alcDevicePauseSOFT:_emscripten_alcDevicePauseSOFT,emscripten_alcDeviceResumeSOFT:_emscripten_alcDeviceResumeSOFT,emscripten_alcGetStringiSOFT:_emscripten_alcGetStringiSOFT,emscripten_alcResetDeviceSOFT:_emscripten_alcResetDeviceSOFT,emscripten_asm_const_async_on_main_thread:_emscripten_asm_const_async_on_main_thread,emscripten_asm_const_double:_emscripten_asm_const_double,emscripten_asm_const_double_sync_on_main_thread:_emscripten_asm_const_double_sync_on_main_thread,emscripten_asm_const_int:_emscripten_asm_const_int,emscripten_asm_const_int_sync_on_main_thread:_emscripten_asm_const_int_sync_on_main_thread,emscripten_asm_const_ptr:_emscripten_asm_const_ptr,emscripten_asm_const_ptr_sync_on_main_thread:_emscripten_asm_const_ptr_sync_on_main_thread,emscripten_async_call:_emscripten_async_call,emscripten_async_load_script:_emscripten_async_load_script,emscripten_async_run_script:_emscripten_async_run_script,emscripten_async_wget:_emscripten_async_wget,emscripten_async_wget2:_emscripten_async_wget2,emscripten_async_wget2_abort:_emscripten_async_wget2_abort,emscripten_async_wget2_data:_emscripten_async_wget2_data,emscripten_async_wget_data:_emscripten_async_wget_data,emscripten_atomic_cancel_all_wait_asyncs:_emscripten_atomic_cancel_all_wait_asyncs,emscripten_atomic_cancel_all_wait_asyncs_at_address:_emscripten_atomic_cancel_all_wait_asyncs_at_address,emscripten_atomic_cancel_wait_async:_emscripten_atomic_cancel_wait_async,emscripten_atomic_wait_async:_emscripten_atomic_wait_async,emscripten_call_worker:_emscripten_call_worker,emscripten_cancel_animation_frame:_emscripten_cancel_animation_frame,emscripten_cancel_main_loop:_emscripten_cancel_main_loop,emscripten_check_blocking_allowed:_emscripten_check_blocking_allowed,emscripten_clear_immediate:_emscripten_clear_immediate,emscripten_clear_interval:_emscripten_clear_interval,emscripten_clear_timeout:_emscripten_clear_timeout,emscripten_console_error:_emscripten_console_error,emscripten_console_log:_emscripten_console_log,emscripten_console_warn:_emscripten_console_warn,emscripten_create_worker:_emscripten_create_worker,emscripten_date_now:_emscripten_date_now,emscripten_debugger:_emscripten_debugger,emscripten_destroy_worker:_emscripten_destroy_worker,emscripten_enter_soft_fullscreen:_emscripten_enter_soft_fullscreen,emscripten_err:_emscripten_err,emscripten_errn:_emscripten_errn,emscripten_exit_fullscreen:_emscripten_exit_fullscreen,emscripten_exit_pointerlock:_emscripten_exit_pointerlock,emscripten_exit_soft_fullscreen:_emscripten_exit_soft_fullscreen,emscripten_exit_with_live_runtime:_emscripten_exit_with_live_runtime,emscripten_fiber_swap:_emscripten_fiber_swap,emscripten_force_exit:_emscripten_force_exit,emscripten_get_battery_status:_emscripten_get_battery_status,emscripten_get_callstack:_emscripten_get_callstack,emscripten_get_canvas_element_size:_emscripten_get_canvas_element_size,emscripten_get_canvas_size:_emscripten_get_canvas_size,emscripten_get_compiler_setting:_emscripten_get_compiler_setting,emscripten_get_device_pixel_ratio:_emscripten_get_device_pixel_ratio,emscripten_get_devicemotion_status:_emscripten_get_devicemotion_status,emscripten_get_deviceorientation_status:_emscripten_get_deviceorientation_status,emscripten_get_element_css_size:_emscripten_get_element_css_size,emscripten_get_fullscreen_status:_emscripten_get_fullscreen_status,emscripten_get_gamepad_status:_emscripten_get_gamepad_status,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_main_loop_timing:_emscripten_get_main_loop_timing,emscripten_get_module_name:_emscripten_get_module_name,emscripten_get_mouse_status:_emscripten_get_mouse_status,emscripten_get_now:_emscripten_get_now,emscripten_get_now_res:_emscripten_get_now_res,emscripten_get_num_gamepads:_emscripten_get_num_gamepads,emscripten_get_orientation_status:_emscripten_get_orientation_status,emscripten_get_pointerlock_status:_emscripten_get_pointerlock_status,emscripten_get_preloaded_image_data:_emscripten_get_preloaded_image_data,emscripten_get_preloaded_image_data_from_FILE:_emscripten_get_preloaded_image_data_from_FILE,emscripten_get_screen_size:_emscripten_get_screen_size,emscripten_get_visibility_status:_emscripten_get_visibility_status,emscripten_get_window_title:_emscripten_get_window_title,emscripten_get_worker_queue_size:_emscripten_get_worker_queue_size,emscripten_glActiveTexture:_emscripten_glActiveTexture,emscripten_glAttachShader:_emscripten_glAttachShader,emscripten_glBegin:_emscripten_glBegin,emscripten_glBeginQueryEXT:_emscripten_glBeginQueryEXT,emscripten_glBindAttribLocation:_emscripten_glBindAttribLocation,emscripten_glBindBuffer:_emscripten_glBindBuffer,emscripten_glBindFramebuffer:_emscripten_glBindFramebuffer,emscripten_glBindRenderbuffer:_emscripten_glBindRenderbuffer,emscripten_glBindTexture:_emscripten_glBindTexture,emscripten_glBindVertexArray:_emscripten_glBindVertexArray,emscripten_glBindVertexArrayOES:_emscripten_glBindVertexArrayOES,emscripten_glBlendColor:_emscripten_glBlendColor,emscripten_glBlendEquation:_emscripten_glBlendEquation,emscripten_glBlendEquationSeparate:_emscripten_glBlendEquationSeparate,emscripten_glBlendFunc:_emscripten_glBlendFunc,emscripten_glBlendFuncSeparate:_emscripten_glBlendFuncSeparate,emscripten_glBufferData:_emscripten_glBufferData,emscripten_glBufferSubData:_emscripten_glBufferSubData,emscripten_glCheckFramebufferStatus:_emscripten_glCheckFramebufferStatus,emscripten_glClear:_emscripten_glClear,emscripten_glClearColor:_emscripten_glClearColor,emscripten_glClearDepth:_emscripten_glClearDepth,emscripten_glClearDepthf:_emscripten_glClearDepthf,emscripten_glClearStencil:_emscripten_glClearStencil,emscripten_glColorMask:_emscripten_glColorMask,emscripten_glCompileShader:_emscripten_glCompileShader,emscripten_glCompressedTexImage2D:_emscripten_glCompressedTexImage2D,emscripten_glCompressedTexSubImage2D:_emscripten_glCompressedTexSubImage2D,emscripten_glCopyTexImage2D:_emscripten_glCopyTexImage2D,emscripten_glCopyTexSubImage2D:_emscripten_glCopyTexSubImage2D,emscripten_glCreateProgram:_emscripten_glCreateProgram,emscripten_glCreateShader:_emscripten_glCreateShader,emscripten_glCullFace:_emscripten_glCullFace,emscripten_glDeleteBuffers:_emscripten_glDeleteBuffers,emscripten_glDeleteFramebuffers:_emscripten_glDeleteFramebuffers,emscripten_glDeleteProgram:_emscripten_glDeleteProgram,emscripten_glDeleteQueriesEXT:_emscripten_glDeleteQueriesEXT,emscripten_glDeleteRenderbuffers:_emscripten_glDeleteRenderbuffers,emscripten_glDeleteShader:_emscripten_glDeleteShader,emscripten_glDeleteTextures:_emscripten_glDeleteTextures,emscripten_glDeleteVertexArrays:_emscripten_glDeleteVertexArrays,emscripten_glDeleteVertexArraysOES:_emscripten_glDeleteVertexArraysOES,emscripten_glDepthFunc:_emscripten_glDepthFunc,emscripten_glDepthMask:_emscripten_glDepthMask,emscripten_glDepthRange:_emscripten_glDepthRange,emscripten_glDepthRangef:_emscripten_glDepthRangef,emscripten_glDetachShader:_emscripten_glDetachShader,emscripten_glDisable:_emscripten_glDisable,emscripten_glDisableVertexAttribArray:_emscripten_glDisableVertexAttribArray,emscripten_glDrawArrays:_emscripten_glDrawArrays,emscripten_glDrawArraysInstanced:_emscripten_glDrawArraysInstanced,emscripten_glDrawArraysInstancedANGLE:_emscripten_glDrawArraysInstancedANGLE,emscripten_glDrawArraysInstancedARB:_emscripten_glDrawArraysInstancedARB,emscripten_glDrawArraysInstancedEXT:_emscripten_glDrawArraysInstancedEXT,emscripten_glDrawArraysInstancedNV:_emscripten_glDrawArraysInstancedNV,emscripten_glDrawBuffers:_emscripten_glDrawBuffers,emscripten_glDrawBuffersEXT:_emscripten_glDrawBuffersEXT,emscripten_glDrawBuffersWEBGL:_emscripten_glDrawBuffersWEBGL,emscripten_glDrawElements:_emscripten_glDrawElements,emscripten_glDrawElementsInstanced:_emscripten_glDrawElementsInstanced,emscripten_glDrawElementsInstancedANGLE:_emscripten_glDrawElementsInstancedANGLE,emscripten_glDrawElementsInstancedARB:_emscripten_glDrawElementsInstancedARB,emscripten_glDrawElementsInstancedEXT:_emscripten_glDrawElementsInstancedEXT,emscripten_glDrawElementsInstancedNV:_emscripten_glDrawElementsInstancedNV,emscripten_glEnable:_emscripten_glEnable,emscripten_glEnableVertexAttribArray:_emscripten_glEnableVertexAttribArray,emscripten_glEndQueryEXT:_emscripten_glEndQueryEXT,emscripten_glFinish:_emscripten_glFinish,emscripten_glFlush:_emscripten_glFlush,emscripten_glFramebufferRenderbuffer:_emscripten_glFramebufferRenderbuffer,emscripten_glFramebufferTexture2D:_emscripten_glFramebufferTexture2D,emscripten_glFrontFace:_emscripten_glFrontFace,emscripten_glGenBuffers:_emscripten_glGenBuffers,emscripten_glGenFramebuffers:_emscripten_glGenFramebuffers,emscripten_glGenQueriesEXT:_emscripten_glGenQueriesEXT,emscripten_glGenRenderbuffers:_emscripten_glGenRenderbuffers,emscripten_glGenTextures:_emscripten_glGenTextures,emscripten_glGenVertexArrays:_emscripten_glGenVertexArrays,emscripten_glGenVertexArraysOES:_emscripten_glGenVertexArraysOES,emscripten_glGenerateMipmap:_emscripten_glGenerateMipmap,emscripten_glGetActiveAttrib:_emscripten_glGetActiveAttrib,emscripten_glGetActiveUniform:_emscripten_glGetActiveUniform,emscripten_glGetAttachedShaders:_emscripten_glGetAttachedShaders,emscripten_glGetAttribLocation:_emscripten_glGetAttribLocation,emscripten_glGetBooleanv:_emscripten_glGetBooleanv,emscripten_glGetBufferParameteriv:_emscripten_glGetBufferParameteriv,emscripten_glGetError:_emscripten_glGetError,emscripten_glGetFloatv:_emscripten_glGetFloatv,emscripten_glGetFramebufferAttachmentParameteriv:_emscripten_glGetFramebufferAttachmentParameteriv,emscripten_glGetIntegerv:_emscripten_glGetIntegerv,emscripten_glGetProgramInfoLog:_emscripten_glGetProgramInfoLog,emscripten_glGetProgramiv:_emscripten_glGetProgramiv,emscripten_glGetQueryObjecti64vEXT:_emscripten_glGetQueryObjecti64vEXT,emscripten_glGetQueryObjectivEXT:_emscripten_glGetQueryObjectivEXT,emscripten_glGetQueryObjectui64vEXT:_emscripten_glGetQueryObjectui64vEXT,emscripten_glGetQueryObjectuivEXT:_emscripten_glGetQueryObjectuivEXT,emscripten_glGetQueryivEXT:_emscripten_glGetQueryivEXT,emscripten_glGetRenderbufferParameteriv:_emscripten_glGetRenderbufferParameteriv,emscripten_glGetShaderInfoLog:_emscripten_glGetShaderInfoLog,emscripten_glGetShaderPrecisionFormat:_emscripten_glGetShaderPrecisionFormat,emscripten_glGetShaderSource:_emscripten_glGetShaderSource,emscripten_glGetShaderiv:_emscripten_glGetShaderiv,emscripten_glGetString:_emscripten_glGetString,emscripten_glGetTexParameterfv:_emscripten_glGetTexParameterfv,emscripten_glGetTexParameteriv:_emscripten_glGetTexParameteriv,emscripten_glGetUniformLocation:_emscripten_glGetUniformLocation,emscripten_glGetUniformfv:_emscripten_glGetUniformfv,emscripten_glGetUniformiv:_emscripten_glGetUniformiv,emscripten_glGetVertexAttribPointerv:_emscripten_glGetVertexAttribPointerv,emscripten_glGetVertexAttribfv:_emscripten_glGetVertexAttribfv,emscripten_glGetVertexAttribiv:_emscripten_glGetVertexAttribiv,emscripten_glHint:_emscripten_glHint,emscripten_glIsBuffer:_emscripten_glIsBuffer,emscripten_glIsEnabled:_emscripten_glIsEnabled,emscripten_glIsFramebuffer:_emscripten_glIsFramebuffer,emscripten_glIsProgram:_emscripten_glIsProgram,emscripten_glIsQueryEXT:_emscripten_glIsQueryEXT,emscripten_glIsRenderbuffer:_emscripten_glIsRenderbuffer,emscripten_glIsShader:_emscripten_glIsShader,emscripten_glIsTexture:_emscripten_glIsTexture,emscripten_glIsVertexArray:_emscripten_glIsVertexArray,emscripten_glIsVertexArrayOES:_emscripten_glIsVertexArrayOES,emscripten_glLineWidth:_emscripten_glLineWidth,emscripten_glLinkProgram:_emscripten_glLinkProgram,emscripten_glLoadIdentity:_emscripten_glLoadIdentity,emscripten_glMatrixMode:_emscripten_glMatrixMode,emscripten_glMultiDrawArrays:_emscripten_glMultiDrawArrays,emscripten_glMultiDrawArraysANGLE:_emscripten_glMultiDrawArraysANGLE,emscripten_glMultiDrawArraysInstancedANGLE:_emscripten_glMultiDrawArraysInstancedANGLE,emscripten_glMultiDrawArraysInstancedWEBGL:_emscripten_glMultiDrawArraysInstancedWEBGL,emscripten_glMultiDrawArraysWEBGL:_emscripten_glMultiDrawArraysWEBGL,emscripten_glMultiDrawElements:_emscripten_glMultiDrawElements,emscripten_glMultiDrawElementsANGLE:_emscripten_glMultiDrawElementsANGLE,emscripten_glMultiDrawElementsInstancedANGLE:_emscripten_glMultiDrawElementsInstancedANGLE,emscripten_glMultiDrawElementsInstancedWEBGL:_emscripten_glMultiDrawElementsInstancedWEBGL,emscripten_glMultiDrawElementsWEBGL:_emscripten_glMultiDrawElementsWEBGL,emscripten_glPixelStorei:_emscripten_glPixelStorei,emscripten_glPolygonOffset:_emscripten_glPolygonOffset,emscripten_glQueryCounterEXT:_emscripten_glQueryCounterEXT,emscripten_glReadPixels:_emscripten_glReadPixels,emscripten_glReleaseShaderCompiler:_emscripten_glReleaseShaderCompiler,emscripten_glRenderbufferStorage:_emscripten_glRenderbufferStorage,emscripten_glSampleCoverage:_emscripten_glSampleCoverage,emscripten_glScissor:_emscripten_glScissor,emscripten_glShaderBinary:_emscripten_glShaderBinary,emscripten_glShaderSource:_emscripten_glShaderSource,emscripten_glStencilFunc:_emscripten_glStencilFunc,emscripten_glStencilFuncSeparate:_emscripten_glStencilFuncSeparate,emscripten_glStencilMask:_emscripten_glStencilMask,emscripten_glStencilMaskSeparate:_emscripten_glStencilMaskSeparate,emscripten_glStencilOp:_emscripten_glStencilOp,emscripten_glStencilOpSeparate:_emscripten_glStencilOpSeparate,emscripten_glTexImage2D:_emscripten_glTexImage2D,emscripten_glTexParameterf:_emscripten_glTexParameterf,emscripten_glTexParameterfv:_emscripten_glTexParameterfv,emscripten_glTexParameteri:_emscripten_glTexParameteri,emscripten_glTexParameteriv:_emscripten_glTexParameteriv,emscripten_glTexSubImage2D:_emscripten_glTexSubImage2D,emscripten_glUniform1f:_emscripten_glUniform1f,emscripten_glUniform1fv:_emscripten_glUniform1fv,emscripten_glUniform1i:_emscripten_glUniform1i,emscripten_glUniform1iv:_emscripten_glUniform1iv,emscripten_glUniform2f:_emscripten_glUniform2f,emscripten_glUniform2fv:_emscripten_glUniform2fv,emscripten_glUniform2i:_emscripten_glUniform2i,emscripten_glUniform2iv:_emscripten_glUniform2iv,emscripten_glUniform3f:_emscripten_glUniform3f,emscripten_glUniform3fv:_emscripten_glUniform3fv,emscripten_glUniform3i:_emscripten_glUniform3i,emscripten_glUniform3iv:_emscripten_glUniform3iv,emscripten_glUniform4f:_emscripten_glUniform4f,emscripten_glUniform4fv:_emscripten_glUniform4fv,emscripten_glUniform4i:_emscripten_glUniform4i,emscripten_glUniform4iv:_emscripten_glUniform4iv,emscripten_glUniformMatrix2fv:_emscripten_glUniformMatrix2fv,emscripten_glUniformMatrix3fv:_emscripten_glUniformMatrix3fv,emscripten_glUniformMatrix4fv:_emscripten_glUniformMatrix4fv,emscripten_glUseProgram:_emscripten_glUseProgram,emscripten_glValidateProgram:_emscripten_glValidateProgram,emscripten_glVertexAttrib1f:_emscripten_glVertexAttrib1f,emscripten_glVertexAttrib1fv:_emscripten_glVertexAttrib1fv,emscripten_glVertexAttrib2f:_emscripten_glVertexAttrib2f,emscripten_glVertexAttrib2fv:_emscripten_glVertexAttrib2fv,emscripten_glVertexAttrib3f:_emscripten_glVertexAttrib3f,emscripten_glVertexAttrib3fv:_emscripten_glVertexAttrib3fv,emscripten_glVertexAttrib4f:_emscripten_glVertexAttrib4f,emscripten_glVertexAttrib4fv:_emscripten_glVertexAttrib4fv,emscripten_glVertexAttribDivisor:_emscripten_glVertexAttribDivisor,emscripten_glVertexAttribDivisorANGLE:_emscripten_glVertexAttribDivisorANGLE,emscripten_glVertexAttribDivisorARB:_emscripten_glVertexAttribDivisorARB,emscripten_glVertexAttribDivisorEXT:_emscripten_glVertexAttribDivisorEXT,emscripten_glVertexAttribDivisorNV:_emscripten_glVertexAttribDivisorNV,emscripten_glVertexAttribPointer:_emscripten_glVertexAttribPointer,emscripten_glVertexPointer:_emscripten_glVertexPointer,emscripten_glViewport:_emscripten_glViewport,emscripten_has_asyncify:_emscripten_has_asyncify,emscripten_has_threading_support:_emscripten_has_threading_support,emscripten_hide_mouse:_emscripten_hide_mouse,emscripten_html5_remove_all_event_listeners:_emscripten_html5_remove_all_event_listeners,emscripten_idb_async_clear:_emscripten_idb_async_clear,emscripten_idb_async_delete:_emscripten_idb_async_delete,emscripten_idb_async_exists:_emscripten_idb_async_exists,emscripten_idb_async_load:_emscripten_idb_async_load,emscripten_idb_async_store:_emscripten_idb_async_store,emscripten_idb_clear:_emscripten_idb_clear,emscripten_idb_delete:_emscripten_idb_delete,emscripten_idb_exists:_emscripten_idb_exists,emscripten_idb_load:_emscripten_idb_load,emscripten_idb_store:_emscripten_idb_store,emscripten_is_webgl_context_lost:_emscripten_is_webgl_context_lost,emscripten_lock_orientation:_emscripten_lock_orientation,emscripten_log:_emscripten_log,emscripten_math_acos:_emscripten_math_acos,emscripten_math_acosh:_emscripten_math_acosh,emscripten_math_asin:_emscripten_math_asin,emscripten_math_asinh:_emscripten_math_asinh,emscripten_math_atan:_emscripten_math_atan,emscripten_math_atan2:_emscripten_math_atan2,emscripten_math_atanh:_emscripten_math_atanh,emscripten_math_cbrt:_emscripten_math_cbrt,emscripten_math_cos:_emscripten_math_cos,emscripten_math_cosh:_emscripten_math_cosh,emscripten_math_exp:_emscripten_math_exp,emscripten_math_expm1:_emscripten_math_expm1,emscripten_math_fmod:_emscripten_math_fmod,emscripten_math_hypot:_emscripten_math_hypot,emscripten_math_log:_emscripten_math_log,emscripten_math_log10:_emscripten_math_log10,emscripten_math_log1p:_emscripten_math_log1p,emscripten_math_log2:_emscripten_math_log2,emscripten_math_pow:_emscripten_math_pow,emscripten_math_random:_emscripten_math_random,emscripten_math_round:_emscripten_math_round,emscripten_math_sign:_emscripten_math_sign,emscripten_math_sin:_emscripten_math_sin,emscripten_math_sinh:_emscripten_math_sinh,emscripten_math_sqrt:_emscripten_math_sqrt,emscripten_math_tan:_emscripten_math_tan,emscripten_math_tanh:_emscripten_math_tanh,emscripten_notify_memory_growth:_emscripten_notify_memory_growth,emscripten_num_logical_cores:_emscripten_num_logical_cores,emscripten_out:_emscripten_out,emscripten_outn:_emscripten_outn,emscripten_pause_main_loop:_emscripten_pause_main_loop,emscripten_pc_get_column:_emscripten_pc_get_column,emscripten_pc_get_file:_emscripten_pc_get_file,emscripten_pc_get_function:_emscripten_pc_get_function,emscripten_pc_get_line:_emscripten_pc_get_line,emscripten_performance_now:_emscripten_performance_now,emscripten_print_double:_emscripten_print_double,emscripten_promise_all:_emscripten_promise_all,emscripten_promise_all_settled:_emscripten_promise_all_settled,emscripten_promise_any:_emscripten_promise_any,emscripten_promise_await:_emscripten_promise_await,emscripten_promise_create:_emscripten_promise_create,emscripten_promise_destroy:_emscripten_promise_destroy,emscripten_promise_race:_emscripten_promise_race,emscripten_promise_resolve:_emscripten_promise_resolve,emscripten_promise_then:_emscripten_promise_then,emscripten_random:_emscripten_random,emscripten_request_animation_frame:_emscripten_request_animation_frame,emscripten_request_animation_frame_loop:_emscripten_request_animation_frame_loop,emscripten_request_fullscreen:_emscripten_request_fullscreen,emscripten_request_fullscreen_strategy:_emscripten_request_fullscreen_strategy,emscripten_request_pointerlock:_emscripten_request_pointerlock,emscripten_resize_heap:_emscripten_resize_heap,emscripten_resume_main_loop:_emscripten_resume_main_loop,emscripten_return_address:_emscripten_return_address,emscripten_run_preload_plugins:_emscripten_run_preload_plugins,emscripten_run_preload_plugins_data:_emscripten_run_preload_plugins_data,emscripten_run_script:_emscripten_run_script,emscripten_run_script_int:_emscripten_run_script_int,emscripten_run_script_string:_emscripten_run_script_string,emscripten_runtime_keepalive_check:_emscripten_runtime_keepalive_check,emscripten_runtime_keepalive_pop:_emscripten_runtime_keepalive_pop,emscripten_runtime_keepalive_push:_emscripten_runtime_keepalive_push,emscripten_sample_gamepad_data:_emscripten_sample_gamepad_data,emscripten_scan_registers:_emscripten_scan_registers,emscripten_set_batterychargingchange_callback_on_thread:_emscripten_set_batterychargingchange_callback_on_thread,emscripten_set_batterylevelchange_callback_on_thread:_emscripten_set_batterylevelchange_callback_on_thread,emscripten_set_beforeunload_callback_on_thread:_emscripten_set_beforeunload_callback_on_thread,emscripten_set_blur_callback_on_thread:_emscripten_set_blur_callback_on_thread,emscripten_set_canvas_element_size:_emscripten_set_canvas_element_size,emscripten_set_canvas_size:_emscripten_set_canvas_size,emscripten_set_click_callback_on_thread:_emscripten_set_click_callback_on_thread,emscripten_set_dblclick_callback_on_thread:_emscripten_set_dblclick_callback_on_thread,emscripten_set_devicemotion_callback_on_thread:_emscripten_set_devicemotion_callback_on_thread,emscripten_set_deviceorientation_callback_on_thread:_emscripten_set_deviceorientation_callback_on_thread,emscripten_set_element_css_size:_emscripten_set_element_css_size,emscripten_set_focus_callback_on_thread:_emscripten_set_focus_callback_on_thread,emscripten_set_focusin_callback_on_thread:_emscripten_set_focusin_callback_on_thread,emscripten_set_focusout_callback_on_thread:_emscripten_set_focusout_callback_on_thread,emscripten_set_fullscreenchange_callback_on_thread:_emscripten_set_fullscreenchange_callback_on_thread,emscripten_set_gamepadconnected_callback_on_thread:_emscripten_set_gamepadconnected_callback_on_thread,emscripten_set_gamepaddisconnected_callback_on_thread:_emscripten_set_gamepaddisconnected_callback_on_thread,emscripten_set_immediate:_emscripten_set_immediate,emscripten_set_immediate_loop:_emscripten_set_immediate_loop,emscripten_set_interval:_emscripten_set_interval,emscripten_set_keydown_callback_on_thread:_emscripten_set_keydown_callback_on_thread,emscripten_set_keypress_callback_on_thread:_emscripten_set_keypress_callback_on_thread,emscripten_set_keyup_callback_on_thread:_emscripten_set_keyup_callback_on_thread,emscripten_set_main_loop:_emscripten_set_main_loop,emscripten_set_main_loop_arg:_emscripten_set_main_loop_arg,emscripten_set_main_loop_expected_blockers:_emscripten_set_main_loop_expected_blockers,emscripten_set_main_loop_timing:_emscripten_set_main_loop_timing,emscripten_set_mousedown_callback_on_thread:_emscripten_set_mousedown_callback_on_thread,emscripten_set_mouseenter_callback_on_thread:_emscripten_set_mouseenter_callback_on_thread,emscripten_set_mouseleave_callback_on_thread:_emscripten_set_mouseleave_callback_on_thread,emscripten_set_mousemove_callback_on_thread:_emscripten_set_mousemove_callback_on_thread,emscripten_set_mouseout_callback_on_thread:_emscripten_set_mouseout_callback_on_thread,emscripten_set_mouseover_callback_on_thread:_emscripten_set_mouseover_callback_on_thread,emscripten_set_mouseup_callback_on_thread:_emscripten_set_mouseup_callback_on_thread,emscripten_set_orientationchange_callback_on_thread:_emscripten_set_orientationchange_callback_on_thread,emscripten_set_pointerlockchange_callback_on_thread:_emscripten_set_pointerlockchange_callback_on_thread,emscripten_set_pointerlockerror_callback_on_thread:_emscripten_set_pointerlockerror_callback_on_thread,emscripten_set_resize_callback_on_thread:_emscripten_set_resize_callback_on_thread,emscripten_set_scroll_callback_on_thread:_emscripten_set_scroll_callback_on_thread,emscripten_set_socket_close_callback:_emscripten_set_socket_close_callback,emscripten_set_socket_connection_callback:_emscripten_set_socket_connection_callback,emscripten_set_socket_error_callback:_emscripten_set_socket_error_callback,emscripten_set_socket_listen_callback:_emscripten_set_socket_listen_callback,emscripten_set_socket_message_callback:_emscripten_set_socket_message_callback,emscripten_set_socket_open_callback:_emscripten_set_socket_open_callback,emscripten_set_timeout:_emscripten_set_timeout,emscripten_set_timeout_loop:_emscripten_set_timeout_loop,emscripten_set_touchcancel_callback_on_thread:_emscripten_set_touchcancel_callback_on_thread,emscripten_set_touchend_callback_on_thread:_emscripten_set_touchend_callback_on_thread,emscripten_set_touchmove_callback_on_thread:_emscripten_set_touchmove_callback_on_thread,emscripten_set_touchstart_callback_on_thread:_emscripten_set_touchstart_callback_on_thread,emscripten_set_visibilitychange_callback_on_thread:_emscripten_set_visibilitychange_callback_on_thread,emscripten_set_webglcontextlost_callback_on_thread:_emscripten_set_webglcontextlost_callback_on_thread,emscripten_set_webglcontextrestored_callback_on_thread:_emscripten_set_webglcontextrestored_callback_on_thread,emscripten_set_wheel_callback_on_thread:_emscripten_set_wheel_callback_on_thread,emscripten_set_window_title:_emscripten_set_window_title,emscripten_sleep:_emscripten_sleep,emscripten_stack_snapshot:_emscripten_stack_snapshot,emscripten_stack_unwind_buffer:_emscripten_stack_unwind_buffer,emscripten_supports_offscreencanvas:_emscripten_supports_offscreencanvas,emscripten_throw_number:_emscripten_throw_number,emscripten_throw_string:_emscripten_throw_string,emscripten_unlock_orientation:_emscripten_unlock_orientation,emscripten_unwind_to_js_event_loop:_emscripten_unwind_to_js_event_loop,emscripten_vibrate:_emscripten_vibrate,emscripten_vibrate_pattern:_emscripten_vibrate_pattern,emscripten_webgl_commit_frame:_emscripten_webgl_commit_frame,emscripten_webgl_create_context:_emscripten_webgl_create_context,emscripten_webgl_destroy_context:_emscripten_webgl_destroy_context,emscripten_webgl_do_commit_frame:_emscripten_webgl_do_commit_frame,emscripten_webgl_do_create_context:_emscripten_webgl_do_create_context,emscripten_webgl_do_get_current_context:_emscripten_webgl_do_get_current_context,emscripten_webgl_enable_ANGLE_instanced_arrays:_emscripten_webgl_enable_ANGLE_instanced_arrays,emscripten_webgl_enable_OES_vertex_array_object:_emscripten_webgl_enable_OES_vertex_array_object,emscripten_webgl_enable_WEBGL_draw_buffers:_emscripten_webgl_enable_WEBGL_draw_buffers,emscripten_webgl_enable_WEBGL_multi_draw:_emscripten_webgl_enable_WEBGL_multi_draw,emscripten_webgl_enable_extension:_emscripten_webgl_enable_extension,emscripten_webgl_get_context_attributes:_emscripten_webgl_get_context_attributes,emscripten_webgl_get_current_context:_emscripten_webgl_get_current_context,emscripten_webgl_get_drawing_buffer_size:_emscripten_webgl_get_drawing_buffer_size,emscripten_webgl_get_parameter_d:_emscripten_webgl_get_parameter_d,emscripten_webgl_get_parameter_i64v:_emscripten_webgl_get_parameter_i64v,emscripten_webgl_get_parameter_o:_emscripten_webgl_get_parameter_o,emscripten_webgl_get_parameter_utf8:_emscripten_webgl_get_parameter_utf8,emscripten_webgl_get_parameter_v:_emscripten_webgl_get_parameter_v,emscripten_webgl_get_program_info_log_utf8:_emscripten_webgl_get_program_info_log_utf8,emscripten_webgl_get_program_parameter_d:_emscripten_webgl_get_program_parameter_d,emscripten_webgl_get_shader_info_log_utf8:_emscripten_webgl_get_shader_info_log_utf8,emscripten_webgl_get_shader_parameter_d:_emscripten_webgl_get_shader_parameter_d,emscripten_webgl_get_shader_source_utf8:_emscripten_webgl_get_shader_source_utf8,emscripten_webgl_get_supported_extensions:_emscripten_webgl_get_supported_extensions,emscripten_webgl_get_uniform_d:_emscripten_webgl_get_uniform_d,emscripten_webgl_get_uniform_v:_emscripten_webgl_get_uniform_v,emscripten_webgl_get_vertex_attrib_d:_emscripten_webgl_get_vertex_attrib_d,emscripten_webgl_get_vertex_attrib_o:_emscripten_webgl_get_vertex_attrib_o,emscripten_webgl_get_vertex_attrib_v:_emscripten_webgl_get_vertex_attrib_v,emscripten_webgl_make_context_current:_emscripten_webgl_make_context_current,emscripten_wget_data:_emscripten_wget_data,endprotoent:_endprotoent,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,exit:_exit,fd_close:_fd_close,fd_fdstat_get:_fd_fdstat_get,fd_pread:_fd_pread,fd_pwrite:_fd_pwrite,fd_read:_fd_read,fd_seek:_fd_seek,fd_sync:_fd_sync,fd_write:_fd_write,filledEllipseColor:_filledEllipseColor,filledEllipseRGBA:_filledEllipseRGBA,getaddrinfo:_getaddrinfo,getentropy:_getentropy,getnameinfo:_getnameinfo,getprotobyname:_getprotobyname,getprotobynumber:_getprotobynumber,getprotoent:_getprotoent,glActiveTexture:_glActiveTexture,glAttachShader:_glAttachShader,glBegin:_glBegin,glBeginQueryEXT:_glBeginQueryEXT,glBindAttribLocation:_glBindAttribLocation,glBindBuffer:_glBindBuffer,glBindFramebuffer:_glBindFramebuffer,glBindRenderbuffer:_glBindRenderbuffer,glBindTexture:_glBindTexture,glBindVertexArray:_glBindVertexArray,glBindVertexArrayOES:_glBindVertexArrayOES,glBlendColor:_glBlendColor,glBlendEquation:_glBlendEquation,glBlendEquationSeparate:_glBlendEquationSeparate,glBlendFunc:_glBlendFunc,glBlendFuncSeparate:_glBlendFuncSeparate,glBufferData:_glBufferData,glBufferSubData:_glBufferSubData,glCheckFramebufferStatus:_glCheckFramebufferStatus,glClear:_glClear,glClearColor:_glClearColor,glClearDepth:_glClearDepth,glClearDepthf:_glClearDepthf,glClearStencil:_glClearStencil,glColorMask:_glColorMask,glCompileShader:_glCompileShader,glCompressedTexImage2D:_glCompressedTexImage2D,glCompressedTexSubImage2D:_glCompressedTexSubImage2D,glCopyTexImage2D:_glCopyTexImage2D,glCopyTexSubImage2D:_glCopyTexSubImage2D,glCreateProgram:_glCreateProgram,glCreateShader:_glCreateShader,glCullFace:_glCullFace,glDeleteBuffers:_glDeleteBuffers,glDeleteFramebuffers:_glDeleteFramebuffers,glDeleteProgram:_glDeleteProgram,glDeleteQueriesEXT:_glDeleteQueriesEXT,glDeleteRenderbuffers:_glDeleteRenderbuffers,glDeleteShader:_glDeleteShader,glDeleteTextures:_glDeleteTextures,glDeleteVertexArrays:_glDeleteVertexArrays,glDeleteVertexArraysOES:_glDeleteVertexArraysOES,glDepthFunc:_glDepthFunc,glDepthMask:_glDepthMask,glDepthRange:_glDepthRange,glDepthRangef:_glDepthRangef,glDetachShader:_glDetachShader,glDisable:_glDisable,glDisableVertexAttribArray:_glDisableVertexAttribArray,glDrawArrays:_glDrawArrays,glDrawArraysInstanced:_glDrawArraysInstanced,glDrawArraysInstancedANGLE:_glDrawArraysInstancedANGLE,glDrawArraysInstancedARB:_glDrawArraysInstancedARB,glDrawArraysInstancedEXT:_glDrawArraysInstancedEXT,glDrawArraysInstancedNV:_glDrawArraysInstancedNV,glDrawBuffers:_glDrawBuffers,glDrawBuffersEXT:_glDrawBuffersEXT,glDrawBuffersWEBGL:_glDrawBuffersWEBGL,glDrawElements:_glDrawElements,glDrawElementsInstanced:_glDrawElementsInstanced,glDrawElementsInstancedANGLE:_glDrawElementsInstancedANGLE,glDrawElementsInstancedARB:_glDrawElementsInstancedARB,glDrawElementsInstancedEXT:_glDrawElementsInstancedEXT,glDrawElementsInstancedNV:_glDrawElementsInstancedNV,glEnable:_glEnable,glEnableVertexAttribArray:_glEnableVertexAttribArray,glEndQueryEXT:_glEndQueryEXT,glFinish:_glFinish,glFlush:_glFlush,glFramebufferRenderbuffer:_glFramebufferRenderbuffer,glFramebufferTexture2D:_glFramebufferTexture2D,glFrontFace:_glFrontFace,glGenBuffers:_glGenBuffers,glGenFramebuffers:_glGenFramebuffers,glGenQueriesEXT:_glGenQueriesEXT,glGenRenderbuffers:_glGenRenderbuffers,glGenTextures:_glGenTextures,glGenVertexArrays:_glGenVertexArrays,glGenVertexArraysOES:_glGenVertexArraysOES,glGenerateMipmap:_glGenerateMipmap,glGetActiveAttrib:_glGetActiveAttrib,glGetActiveUniform:_glGetActiveUniform,glGetAttachedShaders:_glGetAttachedShaders,glGetAttribLocation:_glGetAttribLocation,glGetBooleanv:_glGetBooleanv,glGetBufferParameteriv:_glGetBufferParameteriv,glGetError:_glGetError,glGetFloatv:_glGetFloatv,glGetFramebufferAttachmentParameteriv:_glGetFramebufferAttachmentParameteriv,glGetIntegerv:_glGetIntegerv,glGetProgramInfoLog:_glGetProgramInfoLog,glGetProgramiv:_glGetProgramiv,glGetQueryObjecti64vEXT:_glGetQueryObjecti64vEXT,glGetQueryObjectivEXT:_glGetQueryObjectivEXT,glGetQueryObjectui64vEXT:_glGetQueryObjectui64vEXT,glGetQueryObjectuivEXT:_glGetQueryObjectuivEXT,glGetQueryivEXT:_glGetQueryivEXT,glGetRenderbufferParameteriv:_glGetRenderbufferParameteriv,glGetShaderInfoLog:_glGetShaderInfoLog,glGetShaderPrecisionFormat:_glGetShaderPrecisionFormat,glGetShaderSource:_glGetShaderSource,glGetShaderiv:_glGetShaderiv,glGetString:_glGetString,glGetTexParameterfv:_glGetTexParameterfv,glGetTexParameteriv:_glGetTexParameteriv,glGetUniformLocation:_glGetUniformLocation,glGetUniformfv:_glGetUniformfv,glGetUniformiv:_glGetUniformiv,glGetVertexAttribPointerv:_glGetVertexAttribPointerv,glGetVertexAttribfv:_glGetVertexAttribfv,glGetVertexAttribiv:_glGetVertexAttribiv,glHint:_glHint,glIsBuffer:_glIsBuffer,glIsEnabled:_glIsEnabled,glIsFramebuffer:_glIsFramebuffer,glIsProgram:_glIsProgram,glIsQueryEXT:_glIsQueryEXT,glIsRenderbuffer:_glIsRenderbuffer,glIsShader:_glIsShader,glIsTexture:_glIsTexture,glIsVertexArray:_glIsVertexArray,glIsVertexArrayOES:_glIsVertexArrayOES,glLineWidth:_glLineWidth,glLinkProgram:_glLinkProgram,glLoadIdentity:_glLoadIdentity,glMatrixMode:_glMatrixMode,glMultiDrawArrays:_glMultiDrawArrays,glMultiDrawArraysANGLE:_glMultiDrawArraysANGLE,glMultiDrawArraysInstancedANGLE:_glMultiDrawArraysInstancedANGLE,glMultiDrawArraysInstancedWEBGL:_glMultiDrawArraysInstancedWEBGL,glMultiDrawArraysWEBGL:_glMultiDrawArraysWEBGL,glMultiDrawElements:_glMultiDrawElements,glMultiDrawElementsANGLE:_glMultiDrawElementsANGLE,glMultiDrawElementsInstancedANGLE:_glMultiDrawElementsInstancedANGLE,glMultiDrawElementsInstancedWEBGL:_glMultiDrawElementsInstancedWEBGL,glMultiDrawElementsWEBGL:_glMultiDrawElementsWEBGL,glPixelStorei:_glPixelStorei,glPolygonOffset:_glPolygonOffset,glQueryCounterEXT:_glQueryCounterEXT,glReadPixels:_glReadPixels,glReleaseShaderCompiler:_glReleaseShaderCompiler,glRenderbufferStorage:_glRenderbufferStorage,glSampleCoverage:_glSampleCoverage,glScissor:_glScissor,glShaderBinary:_glShaderBinary,glShaderSource:_glShaderSource,glStencilFunc:_glStencilFunc,glStencilFuncSeparate:_glStencilFuncSeparate,glStencilMask:_glStencilMask,glStencilMaskSeparate:_glStencilMaskSeparate,glStencilOp:_glStencilOp,glStencilOpSeparate:_glStencilOpSeparate,glTexImage2D:_glTexImage2D,glTexParameterf:_glTexParameterf,glTexParameterfv:_glTexParameterfv,glTexParameteri:_glTexParameteri,glTexParameteriv:_glTexParameteriv,glTexSubImage2D:_glTexSubImage2D,glUniform1f:_glUniform1f,glUniform1fv:_glUniform1fv,glUniform1i:_glUniform1i,glUniform1iv:_glUniform1iv,glUniform2f:_glUniform2f,glUniform2fv:_glUniform2fv,glUniform2i:_glUniform2i,glUniform2iv:_glUniform2iv,glUniform3f:_glUniform3f,glUniform3fv:_glUniform3fv,glUniform3i:_glUniform3i,glUniform3iv:_glUniform3iv,glUniform4f:_glUniform4f,glUniform4fv:_glUniform4fv,glUniform4i:_glUniform4i,glUniform4iv:_glUniform4iv,glUniformMatrix2fv:_glUniformMatrix2fv,glUniformMatrix3fv:_glUniformMatrix3fv,glUniformMatrix4fv:_glUniformMatrix4fv,glUseProgram:_glUseProgram,glValidateProgram:_glValidateProgram,glVertexAttrib1f:_glVertexAttrib1f,glVertexAttrib1fv:_glVertexAttrib1fv,glVertexAttrib2f:_glVertexAttrib2f,glVertexAttrib2fv:_glVertexAttrib2fv,glVertexAttrib3f:_glVertexAttrib3f,glVertexAttrib3fv:_glVertexAttrib3fv,glVertexAttrib4f:_glVertexAttrib4f,glVertexAttrib4fv:_glVertexAttrib4fv,glVertexAttribDivisor:_glVertexAttribDivisor,glVertexAttribDivisorANGLE:_glVertexAttribDivisorANGLE,glVertexAttribDivisorARB:_glVertexAttribDivisorARB,glVertexAttribDivisorEXT:_glVertexAttribDivisorEXT,glVertexAttribDivisorNV:_glVertexAttribDivisorNV,glVertexAttribPointer:_glVertexAttribPointer,glVertexPointer:_glVertexPointer,glViewport:_glViewport,glewGetErrorString:_glewGetErrorString,glewGetExtension:_glewGetExtension,glewGetString:_glewGetString,glewInit:_glewInit,glewIsSupported:_glewIsSupported,glutCreateWindow:_glutCreateWindow,glutDestroyWindow:_glutDestroyWindow,glutDisplayFunc:_glutDisplayFunc,glutFullScreen:_glutFullScreen,glutGet:_glutGet,glutGetModifiers:_glutGetModifiers,glutIdleFunc:_glutIdleFunc,glutInit:_glutInit,glutInitDisplayMode:_glutInitDisplayMode,glutInitWindowPosition:_glutInitWindowPosition,glutInitWindowSize:_glutInitWindowSize,glutKeyboardFunc:_glutKeyboardFunc,glutKeyboardUpFunc:_glutKeyboardUpFunc,glutMainLoop:_glutMainLoop,glutMotionFunc:_glutMotionFunc,glutMouseFunc:_glutMouseFunc,glutPassiveMotionFunc:_glutPassiveMotionFunc,glutPositionWindow:_glutPositionWindow,glutPostRedisplay:_glutPostRedisplay,glutReshapeFunc:_glutReshapeFunc,glutReshapeWindow:_glutReshapeWindow,glutSetCursor:_glutSetCursor,glutSpecialFunc:_glutSpecialFunc,glutSpecialUpFunc:_glutSpecialUpFunc,glutSwapBuffers:_glutSwapBuffers,glutTimerFunc:_glutTimerFunc,lineColor:_lineColor,lineRGBA:_lineRGBA,memory:wasmMemory||Module.wasmMemory,pixelRGBA:_pixelRGBA,proc_exit:_proc_exit,random_get:_random_get,rectangleColor:_rectangleColor,rectangleRGBA:_rectangleRGBA,rotozoomSurface:_rotozoomSurface,setNetworkCallback:_setNetworkCallback,setprotoent:_setprotoent,stackAlloc:_stackAlloc,stackRestore:_stackRestore,stackSave:_stackSave,strftime:_strftime,strftime_l:_strftime_l,strptime:_strptime,strptime_l:_strptime_l,uuid_clear:_uuid_clear,uuid_compare:_uuid_compare,uuid_copy:_uuid_copy,uuid_generate:_uuid_generate,uuid_is_null:_uuid_is_null,uuid_parse:_uuid_parse,uuid_type:_uuid_type,uuid_unparse:_uuid_unparse,uuid_unparse_lower:_uuid_unparse_lower,uuid_unparse_upper:_uuid_unparse_upper,uuid_variant:_uuid_variant,zoomSurface:_zoomSurface},wasmExports=createWasm(),__embind_initialize_bindings=Module.__embind_initialize_bindings=()=>(__embind_initialize_bindings=Module.__embind_initialize_bindings=wasmExports._embind_initialize_bindings)(),__embind_register_bindings=Module.__embind_register_bindings=e=>(__embind_register_bindings=Module.__embind_register_bindings=wasmExports._embind_register_bindings)(e),__emval_coro_resume=(e,r)=>(__emval_coro_resume=wasmExports._emval_coro_resume)(e,r),_pthread_self=Module._pthread_self=()=>(_pthread_self=Module._pthread_self=wasmExports.pthread_self)(),_main=Module._main=(e,r)=>(_main=Module._main=wasmExports.main)(e,r),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_duckdb_web_fs_glob_add_path=Module._duckdb_web_fs_glob_add_path=e=>(_duckdb_web_fs_glob_add_path=Module._duckdb_web_fs_glob_add_path=wasmExports.duckdb_web_fs_glob_add_path)(e),_duckdb_web_clear_response=Module._duckdb_web_clear_response=()=>(_duckdb_web_clear_response=Module._duckdb_web_clear_response=wasmExports.duckdb_web_clear_response)(),_duckdb_web_fail_with=Module._duckdb_web_fail_with=e=>(_duckdb_web_fail_with=Module._duckdb_web_fail_with=wasmExports.duckdb_web_fail_with)(e),_duckdb_web_reset=Module._duckdb_web_reset=e=>(_duckdb_web_reset=Module._duckdb_web_reset=wasmExports.duckdb_web_reset)(e),_duckdb_web_connect=Module._duckdb_web_connect=()=>(_duckdb_web_connect=Module._duckdb_web_connect=wasmExports.duckdb_web_connect)(),_duckdb_web_disconnect=Module._duckdb_web_disconnect=e=>(_duckdb_web_disconnect=Module._duckdb_web_disconnect=wasmExports.duckdb_web_disconnect)(e),_duckdb_web_access_buffer=Module._duckdb_web_access_buffer=(e,r)=>(_duckdb_web_access_buffer=Module._duckdb_web_access_buffer=wasmExports.duckdb_web_access_buffer)(e,r),_duckdb_web_flush_files=Module._duckdb_web_flush_files=()=>(_duckdb_web_flush_files=Module._duckdb_web_flush_files=wasmExports.duckdb_web_flush_files)(),_duckdb_web_flush_file=Module._duckdb_web_flush_file=e=>(_duckdb_web_flush_file=Module._duckdb_web_flush_file=wasmExports.duckdb_web_flush_file)(e),_duckdb_web_open=Module._duckdb_web_open=(e,r)=>(_duckdb_web_open=Module._duckdb_web_open=wasmExports.duckdb_web_open)(e,r),_duckdb_web_get_global_file_info=Module._duckdb_web_get_global_file_info=(e,r)=>(_duckdb_web_get_global_file_info=Module._duckdb_web_get_global_file_info=wasmExports.duckdb_web_get_global_file_info)(e,r),_duckdb_web_collect_file_stats=Module._duckdb_web_collect_file_stats=(e,r,t)=>(_duckdb_web_collect_file_stats=Module._duckdb_web_collect_file_stats=wasmExports.duckdb_web_collect_file_stats)(e,r,t),_duckdb_web_export_file_stats=Module._duckdb_web_export_file_stats=(e,r)=>(_duckdb_web_export_file_stats=Module._duckdb_web_export_file_stats=wasmExports.duckdb_web_export_file_stats)(e,r),_duckdb_web_fs_drop_file=Module._duckdb_web_fs_drop_file=(e,r)=>(_duckdb_web_fs_drop_file=Module._duckdb_web_fs_drop_file=wasmExports.duckdb_web_fs_drop_file)(e,r),_duckdb_web_fs_drop_files=Module._duckdb_web_fs_drop_files=e=>(_duckdb_web_fs_drop_files=Module._duckdb_web_fs_drop_files=wasmExports.duckdb_web_fs_drop_files)(e),_duckdb_web_fs_glob_file_infos=Module._duckdb_web_fs_glob_file_infos=(e,r)=>(_duckdb_web_fs_glob_file_infos=Module._duckdb_web_fs_glob_file_infos=wasmExports.duckdb_web_fs_glob_file_infos)(e,r),_duckdb_web_fs_get_file_info_by_id=Module._duckdb_web_fs_get_file_info_by_id=(e,r,t)=>(_duckdb_web_fs_get_file_info_by_id=Module._duckdb_web_fs_get_file_info_by_id=wasmExports.duckdb_web_fs_get_file_info_by_id)(e,r,t),_duckdb_web_fs_get_file_info_by_name=Module._duckdb_web_fs_get_file_info_by_name=(e,r,t)=>(_duckdb_web_fs_get_file_info_by_name=Module._duckdb_web_fs_get_file_info_by_name=wasmExports.duckdb_web_fs_get_file_info_by_name)(e,r,t),_duckdb_web_fs_register_file_url=Module._duckdb_web_fs_register_file_url=(e,r,t,n,a)=>(_duckdb_web_fs_register_file_url=Module._duckdb_web_fs_register_file_url=wasmExports.duckdb_web_fs_register_file_url)(e,r,t,n,a),_duckdb_web_fs_register_file_buffer=Module._duckdb_web_fs_register_file_buffer=(e,r,t,n)=>(_duckdb_web_fs_register_file_buffer=Module._duckdb_web_fs_register_file_buffer=wasmExports.duckdb_web_fs_register_file_buffer)(e,r,t,n),_duckdb_web_copy_file_to_buffer=Module._duckdb_web_copy_file_to_buffer=(e,r)=>(_duckdb_web_copy_file_to_buffer=Module._duckdb_web_copy_file_to_buffer=wasmExports.duckdb_web_copy_file_to_buffer)(e,r),_duckdb_web_copy_file_to_path=Module._duckdb_web_copy_file_to_path=(e,r,t)=>(_duckdb_web_copy_file_to_path=Module._duckdb_web_copy_file_to_path=wasmExports.duckdb_web_copy_file_to_path)(e,r,t),_duckdb_web_get_version=Module._duckdb_web_get_version=e=>(_duckdb_web_get_version=Module._duckdb_web_get_version=wasmExports.duckdb_web_get_version)(e),_duckdb_web_get_feature_flags=Module._duckdb_web_get_feature_flags=()=>(_duckdb_web_get_feature_flags=Module._duckdb_web_get_feature_flags=wasmExports.duckdb_web_get_feature_flags)(),_duckdb_web_tokenize=Module._duckdb_web_tokenize=(e,r)=>(_duckdb_web_tokenize=Module._duckdb_web_tokenize=wasmExports.duckdb_web_tokenize)(e,r),_duckdb_web_tokenize_buffer=Module._duckdb_web_tokenize_buffer=(e,r,t)=>(_duckdb_web_tokenize_buffer=Module._duckdb_web_tokenize_buffer=wasmExports.duckdb_web_tokenize_buffer)(e,r,t),_duckdb_web_udf_scalar_create=Module._duckdb_web_udf_scalar_create=(e,r,t)=>(_duckdb_web_udf_scalar_create=Module._duckdb_web_udf_scalar_create=wasmExports.duckdb_web_udf_scalar_create)(e,r,t),_duckdb_web_prepared_create=Module._duckdb_web_prepared_create=(e,r,t)=>(_duckdb_web_prepared_create=Module._duckdb_web_prepared_create=wasmExports.duckdb_web_prepared_create)(e,r,t),_duckdb_web_prepared_create_buffer=Module._duckdb_web_prepared_create_buffer=(e,r,t,n)=>(_duckdb_web_prepared_create_buffer=Module._duckdb_web_prepared_create_buffer=wasmExports.duckdb_web_prepared_create_buffer)(e,r,t,n),_duckdb_web_prepared_close=Module._duckdb_web_prepared_close=(e,r,t)=>(_duckdb_web_prepared_close=Module._duckdb_web_prepared_close=wasmExports.duckdb_web_prepared_close)(e,r,t),_duckdb_web_prepared_run=Module._duckdb_web_prepared_run=(e,r,t,n)=>(_duckdb_web_prepared_run=Module._duckdb_web_prepared_run=wasmExports.duckdb_web_prepared_run)(e,r,t,n),_duckdb_web_prepared_send=Module._duckdb_web_prepared_send=(e,r,t,n)=>(_duckdb_web_prepared_send=Module._duckdb_web_prepared_send=wasmExports.duckdb_web_prepared_send)(e,r,t,n),_duckdb_web_query_run=Module._duckdb_web_query_run=(e,r,t)=>(_duckdb_web_query_run=Module._duckdb_web_query_run=wasmExports.duckdb_web_query_run)(e,r,t),_duckdb_web_query_run_buffer=Module._duckdb_web_query_run_buffer=(e,r,t,n)=>(_duckdb_web_query_run_buffer=Module._duckdb_web_query_run_buffer=wasmExports.duckdb_web_query_run_buffer)(e,r,t,n),_duckdb_web_pending_query_start=Module._duckdb_web_pending_query_start=(e,r,t,n)=>(_duckdb_web_pending_query_start=Module._duckdb_web_pending_query_start=wasmExports.duckdb_web_pending_query_start)(e,r,t,n),_duckdb_web_pending_query_start_buffer=Module._duckdb_web_pending_query_start_buffer=(e,r,t,n,a)=>(_duckdb_web_pending_query_start_buffer=Module._duckdb_web_pending_query_start_buffer=wasmExports.duckdb_web_pending_query_start_buffer)(e,r,t,n,a),_duckdb_web_pending_query_poll=Module._duckdb_web_pending_query_poll=(e,r,t)=>(_duckdb_web_pending_query_poll=Module._duckdb_web_pending_query_poll=wasmExports.duckdb_web_pending_query_poll)(e,r,t),_duckdb_web_pending_query_cancel=Module._duckdb_web_pending_query_cancel=(e,r)=>(_duckdb_web_pending_query_cancel=Module._duckdb_web_pending_query_cancel=wasmExports.duckdb_web_pending_query_cancel)(e,r),_duckdb_web_query_fetch_results=Module._duckdb_web_query_fetch_results=(e,r)=>(_duckdb_web_query_fetch_results=Module._duckdb_web_query_fetch_results=wasmExports.duckdb_web_query_fetch_results)(e,r),_duckdb_web_get_tablenames=Module._duckdb_web_get_tablenames=(e,r,t)=>(_duckdb_web_get_tablenames=Module._duckdb_web_get_tablenames=wasmExports.duckdb_web_get_tablenames)(e,r,t),_duckdb_web_get_tablenames_buffer=Module._duckdb_web_get_tablenames_buffer=(e,r,t,n)=>(_duckdb_web_get_tablenames_buffer=Module._duckdb_web_get_tablenames_buffer=wasmExports.duckdb_web_get_tablenames_buffer)(e,r,t,n),_duckdb_web_insert_arrow_from_ipc_stream=Module._duckdb_web_insert_arrow_from_ipc_stream=(e,r,t,n,a)=>(_duckdb_web_insert_arrow_from_ipc_stream=Module._duckdb_web_insert_arrow_from_ipc_stream=wasmExports.duckdb_web_insert_arrow_from_ipc_stream)(e,r,t,n,a),_duckdb_web_insert_csv_from_path=Module._duckdb_web_insert_csv_from_path=(e,r,t,n)=>(_duckdb_web_insert_csv_from_path=Module._duckdb_web_insert_csv_from_path=wasmExports.duckdb_web_insert_csv_from_path)(e,r,t,n),_duckdb_web_insert_json_from_path=Module._duckdb_web_insert_json_from_path=(e,r,t,n)=>(_duckdb_web_insert_json_from_path=Module._duckdb_web_insert_json_from_path=wasmExports.duckdb_web_insert_json_from_path)(e,r,t,n),_calloc=Module._calloc=(e,r)=>(_calloc=Module._calloc=wasmExports.calloc)(e,r),_freeaddrinfo=Module._freeaddrinfo=e=>(_freeaddrinfo=Module._freeaddrinfo=wasmExports.freeaddrinfo)(e),_freeifaddrs=Module._freeifaddrs=e=>(_freeifaddrs=Module._freeifaddrs=wasmExports.freeifaddrs)(e),_pthread_create=Module._pthread_create=(e,r,t,n)=>(_pthread_create=Module._pthread_create=wasmExports.pthread_create)(e,r,t,n),_pthread_setspecific=Module._pthread_setspecific=(e,r)=>(_pthread_setspecific=Module._pthread_setspecific=wasmExports.pthread_setspecific)(e,r),_pthread_rwlock_init=Module._pthread_rwlock_init=(e,r)=>(_pthread_rwlock_init=Module._pthread_rwlock_init=wasmExports.pthread_rwlock_init)(e,r),_pthread_rwlock_destroy=Module._pthread_rwlock_destroy=e=>(_pthread_rwlock_destroy=Module._pthread_rwlock_destroy=wasmExports.pthread_rwlock_destroy)(e),_pthread_rwlock_wrlock=Module._pthread_rwlock_wrlock=e=>(_pthread_rwlock_wrlock=Module._pthread_rwlock_wrlock=wasmExports.pthread_rwlock_wrlock)(e),_pthread_rwlock_unlock=Module._pthread_rwlock_unlock=e=>(_pthread_rwlock_unlock=Module._pthread_rwlock_unlock=wasmExports.pthread_rwlock_unlock)(e),_pthread_rwlock_rdlock=Module._pthread_rwlock_rdlock=e=>(_pthread_rwlock_rdlock=Module._pthread_rwlock_rdlock=wasmExports.pthread_rwlock_rdlock)(e),_pthread_atfork=Module._pthread_atfork=(e,r,t)=>(_pthread_atfork=Module._pthread_atfork=wasmExports.pthread_atfork)(e,r,t),_pthread_kill=Module._pthread_kill=(e,r)=>(_pthread_kill=Module._pthread_kill=wasmExports.pthread_kill)(e,r),_emscripten_builtin_free=Module._emscripten_builtin_free=e=>(_emscripten_builtin_free=Module._emscripten_builtin_free=wasmExports.emscripten_builtin_free)(e),__emscripten_tls_init=Module.__emscripten_tls_init=()=>(__emscripten_tls_init=Module.__emscripten_tls_init=wasmExports._emscripten_tls_init)(),_emscripten_builtin_memalign=(e,r)=>(_emscripten_builtin_memalign=wasmExports.emscripten_builtin_memalign)(e,r),_emscripten_GetProcAddress=Module._emscripten_GetProcAddress=e=>(_emscripten_GetProcAddress=Module._emscripten_GetProcAddress=wasmExports.emscripten_GetProcAddress)(e),_emscripten_webgl1_get_proc_address=Module._emscripten_webgl1_get_proc_address=e=>(_emscripten_webgl1_get_proc_address=Module._emscripten_webgl1_get_proc_address=wasmExports.emscripten_webgl1_get_proc_address)(e),_emscripten_webgl_get_proc_address=Module._emscripten_webgl_get_proc_address=e=>(_emscripten_webgl_get_proc_address=Module._emscripten_webgl_get_proc_address=wasmExports.emscripten_webgl_get_proc_address)(e),_emscripten_webgl_init_context_attributes=Module._emscripten_webgl_init_context_attributes=e=>(_emscripten_webgl_init_context_attributes=Module._emscripten_webgl_init_context_attributes=wasmExports.emscripten_webgl_init_context_attributes)(e),_emscripten_is_main_runtime_thread=Module._emscripten_is_main_runtime_thread=()=>(_emscripten_is_main_runtime_thread=Module._emscripten_is_main_runtime_thread=wasmExports.emscripten_is_main_runtime_thread)(),_emscripten_errf=Module._emscripten_errf=(e,r)=>(_emscripten_errf=Module._emscripten_errf=wasmExports.emscripten_errf)(e,r),__emscripten_run_callback_on_thread=(e,r,t,n,a)=>(__emscripten_run_callback_on_thread=wasmExports._emscripten_run_callback_on_thread)(e,r,t,n,a),_emscripten_proxy_get_system_queue=Module._emscripten_proxy_get_system_queue=()=>(_emscripten_proxy_get_system_queue=Module._emscripten_proxy_get_system_queue=wasmExports.emscripten_proxy_get_system_queue)(),_emscripten_proxy_sync=Module._emscripten_proxy_sync=(e,r,t,n)=>(_emscripten_proxy_sync=Module._emscripten_proxy_sync=wasmExports.emscripten_proxy_sync)(e,r,t,n),_emscripten_compute_dom_pk_code=Module._emscripten_compute_dom_pk_code=e=>(_emscripten_compute_dom_pk_code=Module._emscripten_compute_dom_pk_code=wasmExports.emscripten_compute_dom_pk_code)(e),_emscripten_dom_pk_code_to_string=Module._emscripten_dom_pk_code_to_string=e=>(_emscripten_dom_pk_code_to_string=Module._emscripten_dom_pk_code_to_string=wasmExports.emscripten_dom_pk_code_to_string)(e),_emscripten_wget=Module._emscripten_wget=(e,r)=>(_emscripten_wget=Module._emscripten_wget=wasmExports.emscripten_wget)(e,r),_emscripten_dom_vk_to_string=Module._emscripten_dom_vk_to_string=e=>(_emscripten_dom_vk_to_string=Module._emscripten_dom_vk_to_string=wasmExports.emscripten_dom_vk_to_string)(e),__emscripten_set_offscreencanvas_size_on_thread=Module.__emscripten_set_offscreencanvas_size_on_thread=(e,r,t,n)=>(__emscripten_set_offscreencanvas_size_on_thread=Module.__emscripten_set_offscreencanvas_size_on_thread=wasmExports._emscripten_set_offscreencanvas_size_on_thread)(e,r,t,n),_emscripten_proxy_async=Module._emscripten_proxy_async=(e,r,t,n)=>(_emscripten_proxy_async=Module._emscripten_proxy_async=wasmExports.emscripten_proxy_async)(e,r,t,n),__emscripten_memcpy_bulkmem=Module.__emscripten_memcpy_bulkmem=(e,r,t)=>(__emscripten_memcpy_bulkmem=Module.__emscripten_memcpy_bulkmem=wasmExports._emscripten_memcpy_bulkmem)(e,r,t),_emscripten_builtin_memcpy=Module._emscripten_builtin_memcpy=(e,r,t)=>(_emscripten_builtin_memcpy=Module._emscripten_builtin_memcpy=wasmExports.emscripten_builtin_memcpy)(e,r,t),__emscripten_memset_bulkmem=Module.__emscripten_memset_bulkmem=(e,r,t)=>(__emscripten_memset_bulkmem=Module.__emscripten_memset_bulkmem=wasmExports._emscripten_memset_bulkmem)(e,r,t),_emscripten_builtin_memset=Module._emscripten_builtin_memset=(e,r,t)=>(_emscripten_builtin_memset=Module._emscripten_builtin_memset=wasmExports.emscripten_builtin_memset)(e,r,t),_emscripten_futex_wake=Module._emscripten_futex_wake=(e,r)=>(_emscripten_futex_wake=Module._emscripten_futex_wake=wasmExports.emscripten_futex_wake)(e,r),_emscripten_builtin_malloc=Module._emscripten_builtin_malloc=e=>(_emscripten_builtin_malloc=Module._emscripten_builtin_malloc=wasmExports.emscripten_builtin_malloc)(e),_emscripten_futex_wait=Module._emscripten_futex_wait=(e,r,t)=>(_emscripten_futex_wait=Module._emscripten_futex_wait=wasmExports.emscripten_futex_wait)(e,r,t),_emscripten_thread_sleep=Module._emscripten_thread_sleep=e=>(_emscripten_thread_sleep=Module._emscripten_thread_sleep=wasmExports.emscripten_thread_sleep)(e),___dl_seterr=(e,r)=>(___dl_seterr=wasmExports.__dl_seterr)(e,r),__emscripten_dlsync_self_async=e=>(__emscripten_dlsync_self_async=wasmExports._emscripten_dlsync_self_async)(e),__emscripten_dlsync_self=()=>(__emscripten_dlsync_self=wasmExports._emscripten_dlsync_self)(),__emscripten_process_dlopen_queue=Module.__emscripten_process_dlopen_queue=()=>(__emscripten_process_dlopen_queue=Module.__emscripten_process_dlopen_queue=wasmExports._emscripten_process_dlopen_queue)(),_emscripten_proxy_execute_queue=Module._emscripten_proxy_execute_queue=e=>(_emscripten_proxy_execute_queue=Module._emscripten_proxy_execute_queue=wasmExports.emscripten_proxy_execute_queue)(e),__emscripten_proxy_dlsync_async=(e,r)=>(__emscripten_proxy_dlsync_async=wasmExports._emscripten_proxy_dlsync_async)(e,r),_em_proxying_queue_create=Module._em_proxying_queue_create=()=>(_em_proxying_queue_create=Module._em_proxying_queue_create=wasmExports.em_proxying_queue_create)(),_emscripten_proxy_callback=Module._emscripten_proxy_callback=(e,r,t,n,a,i)=>(_emscripten_proxy_callback=Module._emscripten_proxy_callback=wasmExports.emscripten_proxy_callback)(e,r,t,n,a,i),__emscripten_proxy_dlsync=e=>(__emscripten_proxy_dlsync=wasmExports._emscripten_proxy_dlsync)(e),_pthread_setcancelstate=Module._pthread_setcancelstate=(e,r)=>(_pthread_setcancelstate=Module._pthread_setcancelstate=wasmExports.pthread_setcancelstate)(e,r),_emscripten_dlopen=Module._emscripten_dlopen=(e,r,t,n,a)=>(_emscripten_dlopen=Module._emscripten_dlopen=wasmExports.emscripten_dlopen)(e,r,t,n,a),_emscripten_dlopen_promise=Module._emscripten_dlopen_promise=(e,r)=>(_emscripten_dlopen_promise=Module._emscripten_dlopen_promise=wasmExports.emscripten_dlopen_promise)(e,r),_pthread_mutex_lock=Module._pthread_mutex_lock=e=>(_pthread_mutex_lock=Module._pthread_mutex_lock=wasmExports.pthread_mutex_lock)(e),_pthread_mutex_unlock=Module._pthread_mutex_unlock=e=>(_pthread_mutex_unlock=Module._pthread_mutex_unlock=wasmExports.pthread_mutex_unlock)(e),_emscripten_main_runtime_thread_id=()=>(_emscripten_main_runtime_thread_id=wasmExports.emscripten_main_runtime_thread_id)(),_emscripten_proxy_sync_with_ctx=Module._emscripten_proxy_sync_with_ctx=(e,r,t,n)=>(_emscripten_proxy_sync_with_ctx=Module._emscripten_proxy_sync_with_ctx=wasmExports.emscripten_proxy_sync_with_ctx)(e,r,t,n),_emscripten_proxy_finish=Module._emscripten_proxy_finish=e=>(_emscripten_proxy_finish=Module._emscripten_proxy_finish=wasmExports.emscripten_proxy_finish)(e),_em_task_queue_create=Module._em_task_queue_create=e=>(_em_task_queue_create=Module._em_task_queue_create=wasmExports.em_task_queue_create)(e),_em_task_queue_destroy=Module._em_task_queue_destroy=e=>(_em_task_queue_destroy=Module._em_task_queue_destroy=wasmExports.em_task_queue_destroy)(e),_pthread_mutex_destroy=Module._pthread_mutex_destroy=e=>(_pthread_mutex_destroy=Module._pthread_mutex_destroy=wasmExports.pthread_mutex_destroy)(e),_em_task_queue_execute=Module._em_task_queue_execute=e=>(_em_task_queue_execute=Module._em_task_queue_execute=wasmExports.em_task_queue_execute)(e),_em_task_queue_dequeue=Module._em_task_queue_dequeue=(e,r)=>(_em_task_queue_dequeue=Module._em_task_queue_dequeue=wasmExports.em_task_queue_dequeue)(e,r),_em_task_queue_cancel=Module._em_task_queue_cancel=e=>(_em_task_queue_cancel=Module._em_task_queue_cancel=wasmExports.em_task_queue_cancel)(e),_em_task_queue_enqueue=Module._em_task_queue_enqueue=(e,r)=>(_em_task_queue_enqueue=Module._em_task_queue_enqueue=wasmExports.em_task_queue_enqueue)(e,r),_em_task_queue_send=Module._em_task_queue_send=(e,r)=>(_em_task_queue_send=Module._em_task_queue_send=wasmExports.em_task_queue_send)(e,r),_emscripten_thread_mailbox_ref=Module._emscripten_thread_mailbox_ref=e=>(_emscripten_thread_mailbox_ref=Module._emscripten_thread_mailbox_ref=wasmExports.emscripten_thread_mailbox_ref)(e),_emscripten_thread_mailbox_send=Module._emscripten_thread_mailbox_send=(e,r)=>(_emscripten_thread_mailbox_send=Module._emscripten_thread_mailbox_send=wasmExports.emscripten_thread_mailbox_send)(e,r),_emscripten_thread_mailbox_unref=Module._emscripten_thread_mailbox_unref=e=>(_emscripten_thread_mailbox_unref=Module._emscripten_thread_mailbox_unref=wasmExports.emscripten_thread_mailbox_unref)(e),_pthread_mutex_trylock=Module._pthread_mutex_trylock=e=>(_pthread_mutex_trylock=Module._pthread_mutex_trylock=wasmExports.pthread_mutex_trylock)(e),_emscripten_console_logf=Module._emscripten_console_logf=(e,r)=>(_emscripten_console_logf=Module._emscripten_console_logf=wasmExports.emscripten_console_logf)(e,r),_emscripten_console_errorf=Module._emscripten_console_errorf=(e,r)=>(_emscripten_console_errorf=Module._emscripten_console_errorf=wasmExports.emscripten_console_errorf)(e,r),_emscripten_console_warnf=Module._emscripten_console_warnf=(e,r)=>(_emscripten_console_warnf=Module._emscripten_console_warnf=wasmExports.emscripten_console_warnf)(e,r),_emscripten_outf=Module._emscripten_outf=(e,r)=>(_emscripten_outf=Module._emscripten_outf=wasmExports.emscripten_outf)(e,r),_emscripten_fiber_init=Module._emscripten_fiber_init=(e,r,t,n,a,i,_)=>(_emscripten_fiber_init=Module._emscripten_fiber_init=wasmExports.emscripten_fiber_init)(e,r,t,n,a,i,_),_emscripten_fiber_init_from_current_context=Module._emscripten_fiber_init_from_current_context=(e,r,t)=>(_emscripten_fiber_init_from_current_context=Module._emscripten_fiber_init_from_current_context=wasmExports.emscripten_fiber_init_from_current_context)(e,r,t),_emscripten_stack_get_base=Module._emscripten_stack_get_base=()=>(_emscripten_stack_get_base=Module._emscripten_stack_get_base=wasmExports.emscripten_stack_get_base)(),_emscripten_stack_get_end=Module._emscripten_stack_get_end=()=>(_emscripten_stack_get_end=Module._emscripten_stack_get_end=wasmExports.emscripten_stack_get_end)(),__emscripten_yield=Module.__emscripten_yield=e=>(__emscripten_yield=Module.__emscripten_yield=wasmExports._emscripten_yield)(e),__emscripten_thread_supports_atomics_wait=Module.__emscripten_thread_supports_atomics_wait=()=>(__emscripten_thread_supports_atomics_wait=Module.__emscripten_thread_supports_atomics_wait=wasmExports._emscripten_thread_supports_atomics_wait)(),_emscripten_get_heap_size=Module._emscripten_get_heap_size=()=>(_emscripten_get_heap_size=Module._emscripten_get_heap_size=wasmExports.emscripten_get_heap_size)(),_emscripten_scan_stack=Module._emscripten_scan_stack=e=>(_emscripten_scan_stack=Module._emscripten_scan_stack=wasmExports.emscripten_scan_stack)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),__emscripten_thread_init=Module.__emscripten_thread_init=(e,r,t,n,a,i)=>(__emscripten_thread_init=Module.__emscripten_thread_init=wasmExports._emscripten_thread_init)(e,r,t,n,a,i),_emscripten_is_main_browser_thread=Module._emscripten_is_main_browser_thread=()=>(_emscripten_is_main_browser_thread=Module._emscripten_is_main_browser_thread=wasmExports.emscripten_is_main_browser_thread)(),__emscripten_thread_crashed=Module.__emscripten_thread_crashed=()=>(__emscripten_thread_crashed=Module.__emscripten_thread_crashed=wasmExports._emscripten_thread_crashed)(),__emscripten_check_timers=Module.__emscripten_check_timers=e=>(__emscripten_check_timers=Module.__emscripten_check_timers=wasmExports._emscripten_check_timers)(e),_emscripten_main_thread_process_queued_calls=()=>(_emscripten_main_thread_process_queued_calls=wasmExports.emscripten_main_thread_process_queued_calls)(),_pthread_sigmask=Module._pthread_sigmask=(e,r,t)=>(_pthread_sigmask=Module._pthread_sigmask=wasmExports.pthread_sigmask)(e,r,t),_freelocale=Module._freelocale=e=>(_freelocale=Module._freelocale=wasmExports.freelocale)(e),_emscripten_pthread_attr_gettransferredcanvases=Module._emscripten_pthread_attr_gettransferredcanvases=(e,r)=>(_emscripten_pthread_attr_gettransferredcanvases=Module._emscripten_pthread_attr_gettransferredcanvases=wasmExports.emscripten_pthread_attr_gettransferredcanvases)(e,r),_emscripten_pthread_attr_settransferredcanvases=Module._emscripten_pthread_attr_settransferredcanvases=(e,r)=>(_emscripten_pthread_attr_settransferredcanvases=Module._emscripten_pthread_attr_settransferredcanvases=wasmExports.emscripten_pthread_attr_settransferredcanvases)(e,r),_pthread_mutexattr_getprioceiling=Module._pthread_mutexattr_getprioceiling=(e,r)=>(_pthread_mutexattr_getprioceiling=Module._pthread_mutexattr_getprioceiling=wasmExports.pthread_mutexattr_getprioceiling)(e,r),_pthread_mutexattr_setprioceiling=Module._pthread_mutexattr_setprioceiling=(e,r)=>(_pthread_mutexattr_setprioceiling=Module._pthread_mutexattr_setprioceiling=wasmExports.pthread_mutexattr_setprioceiling)(e,r),_emscripten_current_thread_process_queued_calls=Module._emscripten_current_thread_process_queued_calls=()=>(_emscripten_current_thread_process_queued_calls=Module._emscripten_current_thread_process_queued_calls=wasmExports.emscripten_current_thread_process_queued_calls)(),__emscripten_thread_is_valid=Module.__emscripten_thread_is_valid=e=>(__emscripten_thread_is_valid=Module.__emscripten_thread_is_valid=wasmExports._emscripten_thread_is_valid)(e),__emscripten_thread_mailbox_init=Module.__emscripten_thread_mailbox_init=e=>(__emscripten_thread_mailbox_init=Module.__emscripten_thread_mailbox_init=wasmExports._emscripten_thread_mailbox_init)(e),_emscripten_builtin_mmap=Module._emscripten_builtin_mmap=(e,r,t,n,a,i,_)=>(_emscripten_builtin_mmap=Module._emscripten_builtin_mmap=wasmExports.emscripten_builtin_mmap)(e,r,t,n,a,i,_),_emscripten_builtin_munmap=Module._emscripten_builtin_munmap=(e,r)=>(_emscripten_builtin_munmap=Module._emscripten_builtin_munmap=wasmExports.emscripten_builtin_munmap)(e,r),_em_proxying_queue_destroy=Module._em_proxying_queue_destroy=e=>(_em_proxying_queue_destroy=Module._em_proxying_queue_destroy=wasmExports.em_proxying_queue_destroy)(e),_pthread_cond_signal=Module._pthread_cond_signal=e=>(_pthread_cond_signal=Module._pthread_cond_signal=wasmExports.pthread_cond_signal)(e),_pthread_getspecific=Module._pthread_getspecific=e=>(_pthread_getspecific=Module._pthread_getspecific=wasmExports.pthread_getspecific)(e),_pthread_cond_wait=Module._pthread_cond_wait=(e,r)=>(_pthread_cond_wait=Module._pthread_cond_wait=wasmExports.pthread_cond_wait)(e,r),_pthread_once=Module._pthread_once=(e,r)=>(_pthread_once=Module._pthread_once=wasmExports.pthread_once)(e,r),_pthread_cond_destroy=Module._pthread_cond_destroy=e=>(_pthread_cond_destroy=Module._pthread_cond_destroy=wasmExports.pthread_cond_destroy)(e),_emscripten_proxy_callback_with_ctx=Module._emscripten_proxy_callback_with_ctx=(e,r,t,n,a,i)=>(_emscripten_proxy_callback_with_ctx=Module._emscripten_proxy_callback_with_ctx=wasmExports.emscripten_proxy_callback_with_ctx)(e,r,t,n,a,i),_emscripten_proxy_promise_with_ctx=Module._emscripten_proxy_promise_with_ctx=(e,r,t,n)=>(_emscripten_proxy_promise_with_ctx=Module._emscripten_proxy_promise_with_ctx=wasmExports.emscripten_proxy_promise_with_ctx)(e,r,t,n),_emscripten_proxy_promise=Module._emscripten_proxy_promise=(e,r,t,n)=>(_emscripten_proxy_promise=Module._emscripten_proxy_promise=wasmExports.emscripten_proxy_promise)(e,r,t,n),__emscripten_run_on_main_thread_js=(e,r,t,n,a)=>(__emscripten_run_on_main_thread_js=wasmExports._emscripten_run_on_main_thread_js)(e,r,t,n,a),_pthread_key_create=Module._pthread_key_create=(e,r)=>(_pthread_key_create=Module._pthread_key_create=wasmExports.pthread_key_create)(e,r),_emscripten_async_waitable_close=Module._emscripten_async_waitable_close=e=>(_emscripten_async_waitable_close=Module._emscripten_async_waitable_close=wasmExports.emscripten_async_waitable_close)(e),_emscripten_dispatch_to_thread_args=Module._emscripten_dispatch_to_thread_args=(e,r,t,n,a)=>(_emscripten_dispatch_to_thread_args=Module._emscripten_dispatch_to_thread_args=wasmExports.emscripten_dispatch_to_thread_args)(e,r,t,n,a),_emscripten_async_run_in_main_thread=Module._emscripten_async_run_in_main_thread=e=>(_emscripten_async_run_in_main_thread=Module._emscripten_async_run_in_main_thread=wasmExports.emscripten_async_run_in_main_thread)(e),_emscripten_dispatch_to_thread_=Module._emscripten_dispatch_to_thread_=(e,r,t,n,a)=>(_emscripten_dispatch_to_thread_=Module._emscripten_dispatch_to_thread_=wasmExports.emscripten_dispatch_to_thread_)(e,r,t,n,a),_emscripten_dispatch_to_thread_async_args=Module._emscripten_dispatch_to_thread_async_args=(e,r,t,n,a)=>(_emscripten_dispatch_to_thread_async_args=Module._emscripten_dispatch_to_thread_async_args=wasmExports.emscripten_dispatch_to_thread_async_args)(e,r,t,n,a),_emscripten_dispatch_to_thread_async_=Module._emscripten_dispatch_to_thread_async_=(e,r,t,n,a)=>(_emscripten_dispatch_to_thread_async_=Module._emscripten_dispatch_to_thread_async_=wasmExports.emscripten_dispatch_to_thread_async_)(e,r,t,n,a),_emscripten_sync_run_in_main_runtime_thread_=Module._emscripten_sync_run_in_main_runtime_thread_=(e,r,t)=>(_emscripten_sync_run_in_main_runtime_thread_=Module._emscripten_sync_run_in_main_runtime_thread_=wasmExports.emscripten_sync_run_in_main_runtime_thread_)(e,r,t),_emscripten_wait_for_call_v=Module._emscripten_wait_for_call_v=(e,r)=>(_emscripten_wait_for_call_v=Module._emscripten_wait_for_call_v=wasmExports.emscripten_wait_for_call_v)(e,r),_emscripten_async_run_in_main_runtime_thread_=Module._emscripten_async_run_in_main_runtime_thread_=(e,r,t)=>(_emscripten_async_run_in_main_runtime_thread_=Module._emscripten_async_run_in_main_runtime_thread_=wasmExports.emscripten_async_run_in_main_runtime_thread_)(e,r,t),_emscripten_async_waitable_run_in_main_runtime_thread_=Module._emscripten_async_waitable_run_in_main_runtime_thread_=(e,r,t)=>(_emscripten_async_waitable_run_in_main_runtime_thread_=Module._emscripten_async_waitable_run_in_main_runtime_thread_=wasmExports.emscripten_async_waitable_run_in_main_runtime_thread_)(e,r,t),_emscripten_wait_for_call_i=Module._emscripten_wait_for_call_i=(e,r,t)=>(_emscripten_wait_for_call_i=Module._emscripten_wait_for_call_i=wasmExports.emscripten_wait_for_call_i)(e,r,t),_pthread_attr_destroy=Module._pthread_attr_destroy=e=>(_pthread_attr_destroy=Module._pthread_attr_destroy=wasmExports.pthread_attr_destroy)(e),_pthread_attr_getdetachstate=Module._pthread_attr_getdetachstate=(e,r)=>(_pthread_attr_getdetachstate=Module._pthread_attr_getdetachstate=wasmExports.pthread_attr_getdetachstate)(e,r),_pthread_attr_getguardsize=Module._pthread_attr_getguardsize=(e,r)=>(_pthread_attr_getguardsize=Module._pthread_attr_getguardsize=wasmExports.pthread_attr_getguardsize)(e,r),_pthread_attr_getinheritsched=Module._pthread_attr_getinheritsched=(e,r)=>(_pthread_attr_getinheritsched=Module._pthread_attr_getinheritsched=wasmExports.pthread_attr_getinheritsched)(e,r),_pthread_attr_getschedparam=Module._pthread_attr_getschedparam=(e,r)=>(_pthread_attr_getschedparam=Module._pthread_attr_getschedparam=wasmExports.pthread_attr_getschedparam)(e,r),_pthread_attr_getschedpolicy=Module._pthread_attr_getschedpolicy=(e,r)=>(_pthread_attr_getschedpolicy=Module._pthread_attr_getschedpolicy=wasmExports.pthread_attr_getschedpolicy)(e,r),_pthread_attr_getscope=Module._pthread_attr_getscope=(e,r)=>(_pthread_attr_getscope=Module._pthread_attr_getscope=wasmExports.pthread_attr_getscope)(e,r),_pthread_attr_getstack=Module._pthread_attr_getstack=(e,r,t)=>(_pthread_attr_getstack=Module._pthread_attr_getstack=wasmExports.pthread_attr_getstack)(e,r,t),_pthread_attr_getstacksize=Module._pthread_attr_getstacksize=(e,r)=>(_pthread_attr_getstacksize=Module._pthread_attr_getstacksize=wasmExports.pthread_attr_getstacksize)(e,r),_pthread_barrierattr_getpshared=Module._pthread_barrierattr_getpshared=(e,r)=>(_pthread_barrierattr_getpshared=Module._pthread_barrierattr_getpshared=wasmExports.pthread_barrierattr_getpshared)(e,r),_pthread_condattr_getclock=Module._pthread_condattr_getclock=(e,r)=>(_pthread_condattr_getclock=Module._pthread_condattr_getclock=wasmExports.pthread_condattr_getclock)(e,r),_pthread_condattr_getpshared=Module._pthread_condattr_getpshared=(e,r)=>(_pthread_condattr_getpshared=Module._pthread_condattr_getpshared=wasmExports.pthread_condattr_getpshared)(e,r),_pthread_mutexattr_getprotocol=Module._pthread_mutexattr_getprotocol=(e,r)=>(_pthread_mutexattr_getprotocol=Module._pthread_mutexattr_getprotocol=wasmExports.pthread_mutexattr_getprotocol)(e,r),_pthread_mutexattr_getpshared=Module._pthread_mutexattr_getpshared=(e,r)=>(_pthread_mutexattr_getpshared=Module._pthread_mutexattr_getpshared=wasmExports.pthread_mutexattr_getpshared)(e,r),_pthread_mutexattr_getrobust=Module._pthread_mutexattr_getrobust=(e,r)=>(_pthread_mutexattr_getrobust=Module._pthread_mutexattr_getrobust=wasmExports.pthread_mutexattr_getrobust)(e,r),_pthread_mutexattr_gettype=Module._pthread_mutexattr_gettype=(e,r)=>(_pthread_mutexattr_gettype=Module._pthread_mutexattr_gettype=wasmExports.pthread_mutexattr_gettype)(e,r),_pthread_rwlockattr_getpshared=Module._pthread_rwlockattr_getpshared=(e,r)=>(_pthread_rwlockattr_getpshared=Module._pthread_rwlockattr_getpshared=wasmExports.pthread_rwlockattr_getpshared)(e,r),_pthread_attr_init=Module._pthread_attr_init=e=>(_pthread_attr_init=Module._pthread_attr_init=wasmExports.pthread_attr_init)(e),_pthread_attr_setdetachstate=Module._pthread_attr_setdetachstate=(e,r)=>(_pthread_attr_setdetachstate=Module._pthread_attr_setdetachstate=wasmExports.pthread_attr_setdetachstate)(e,r),_pthread_attr_setguardsize=Module._pthread_attr_setguardsize=(e,r)=>(_pthread_attr_setguardsize=Module._pthread_attr_setguardsize=wasmExports.pthread_attr_setguardsize)(e,r),_pthread_attr_setinheritsched=Module._pthread_attr_setinheritsched=(e,r)=>(_pthread_attr_setinheritsched=Module._pthread_attr_setinheritsched=wasmExports.pthread_attr_setinheritsched)(e,r),_pthread_attr_setschedparam=Module._pthread_attr_setschedparam=(e,r)=>(_pthread_attr_setschedparam=Module._pthread_attr_setschedparam=wasmExports.pthread_attr_setschedparam)(e,r),_pthread_attr_setschedpolicy=Module._pthread_attr_setschedpolicy=(e,r)=>(_pthread_attr_setschedpolicy=Module._pthread_attr_setschedpolicy=wasmExports.pthread_attr_setschedpolicy)(e,r),_pthread_attr_setscope=Module._pthread_attr_setscope=(e,r)=>(_pthread_attr_setscope=Module._pthread_attr_setscope=wasmExports.pthread_attr_setscope)(e,r),_pthread_attr_setstack=Module._pthread_attr_setstack=(e,r,t)=>(_pthread_attr_setstack=Module._pthread_attr_setstack=wasmExports.pthread_attr_setstack)(e,r,t),_pthread_attr_setstacksize=Module._pthread_attr_setstacksize=(e,r)=>(_pthread_attr_setstacksize=Module._pthread_attr_setstacksize=wasmExports.pthread_attr_setstacksize)(e,r),_pthread_barrier_destroy=Module._pthread_barrier_destroy=e=>(_pthread_barrier_destroy=Module._pthread_barrier_destroy=wasmExports.pthread_barrier_destroy)(e),_pthread_barrier_init=Module._pthread_barrier_init=(e,r,t)=>(_pthread_barrier_init=Module._pthread_barrier_init=wasmExports.pthread_barrier_init)(e,r,t),_pthread_barrier_wait=Module._pthread_barrier_wait=e=>(_pthread_barrier_wait=Module._pthread_barrier_wait=wasmExports.pthread_barrier_wait)(e),_pthread_barrierattr_destroy=Module._pthread_barrierattr_destroy=e=>(_pthread_barrierattr_destroy=Module._pthread_barrierattr_destroy=wasmExports.pthread_barrierattr_destroy)(e),_pthread_barrierattr_init=Module._pthread_barrierattr_init=e=>(_pthread_barrierattr_init=Module._pthread_barrierattr_init=wasmExports.pthread_barrierattr_init)(e),_pthread_barrierattr_setpshared=Module._pthread_barrierattr_setpshared=(e,r)=>(_pthread_barrierattr_setpshared=Module._pthread_barrierattr_setpshared=wasmExports.pthread_barrierattr_setpshared)(e,r),_pthread_exit=Module._pthread_exit=e=>(_pthread_exit=Module._pthread_exit=wasmExports.pthread_exit)(e),_pthread_cancel=Module._pthread_cancel=e=>(_pthread_cancel=Module._pthread_cancel=wasmExports.pthread_cancel)(e),_pthread_cond_broadcast=Module._pthread_cond_broadcast=e=>(_pthread_cond_broadcast=Module._pthread_cond_broadcast=wasmExports.pthread_cond_broadcast)(e),_pthread_cond_init=Module._pthread_cond_init=(e,r)=>(_pthread_cond_init=Module._pthread_cond_init=wasmExports.pthread_cond_init)(e,r),_pthread_cond_timedwait=Module._pthread_cond_timedwait=(e,r,t)=>(_pthread_cond_timedwait=Module._pthread_cond_timedwait=wasmExports.pthread_cond_timedwait)(e,r,t),_pthread_condattr_destroy=Module._pthread_condattr_destroy=e=>(_pthread_condattr_destroy=Module._pthread_condattr_destroy=wasmExports.pthread_condattr_destroy)(e),_pthread_condattr_init=Module._pthread_condattr_init=e=>(_pthread_condattr_init=Module._pthread_condattr_init=wasmExports.pthread_condattr_init)(e),_pthread_condattr_setclock=Module._pthread_condattr_setclock=(e,r)=>(_pthread_condattr_setclock=Module._pthread_condattr_setclock=wasmExports.pthread_condattr_setclock)(e,r),_pthread_condattr_setpshared=Module._pthread_condattr_setpshared=(e,r)=>(_pthread_condattr_setpshared=Module._pthread_condattr_setpshared=wasmExports.pthread_condattr_setpshared)(e,r),__emscripten_thread_free_data=e=>(__emscripten_thread_free_data=wasmExports._emscripten_thread_free_data)(e),__emscripten_thread_exit=Module.__emscripten_thread_exit=e=>(__emscripten_thread_exit=Module.__emscripten_thread_exit=wasmExports._emscripten_thread_exit)(e),__emscripten_thread_mailbox_shutdown=Module.__emscripten_thread_mailbox_shutdown=e=>(__emscripten_thread_mailbox_shutdown=Module.__emscripten_thread_mailbox_shutdown=wasmExports._emscripten_thread_mailbox_shutdown)(e),_emscripten_builtin_pthread_create=Module._emscripten_builtin_pthread_create=(e,r,t,n)=>(_emscripten_builtin_pthread_create=Module._emscripten_builtin_pthread_create=wasmExports.emscripten_builtin_pthread_create)(e,r,t,n),_emscripten_builtin_pthread_exit=Module._emscripten_builtin_pthread_exit=e=>(_emscripten_builtin_pthread_exit=Module._emscripten_builtin_pthread_exit=wasmExports.emscripten_builtin_pthread_exit)(e),_pthread_detach=Module._pthread_detach=e=>(_pthread_detach=Module._pthread_detach=wasmExports.pthread_detach)(e),_emscripten_builtin_pthread_detach=Module._emscripten_builtin_pthread_detach=e=>(_emscripten_builtin_pthread_detach=Module._emscripten_builtin_pthread_detach=wasmExports.emscripten_builtin_pthread_detach)(e),_pthread_equal=Module._pthread_equal=(e,r)=>(_pthread_equal=Module._pthread_equal=wasmExports.pthread_equal)(e,r),_pthread_getattr_np=Module._pthread_getattr_np=(e,r)=>(_pthread_getattr_np=Module._pthread_getattr_np=wasmExports.pthread_getattr_np)(e,r),_pthread_getconcurrency=Module._pthread_getconcurrency=()=>(_pthread_getconcurrency=Module._pthread_getconcurrency=wasmExports.pthread_getconcurrency)(),_pthread_getcpuclockid=Module._pthread_getcpuclockid=(e,r)=>(_pthread_getcpuclockid=Module._pthread_getcpuclockid=wasmExports.pthread_getcpuclockid)(e,r),_pthread_getschedparam=Module._pthread_getschedparam=(e,r,t)=>(_pthread_getschedparam=Module._pthread_getschedparam=wasmExports.pthread_getschedparam)(e,r,t),_pthread_tryjoin_np=Module._pthread_tryjoin_np=(e,r)=>(_pthread_tryjoin_np=Module._pthread_tryjoin_np=wasmExports.pthread_tryjoin_np)(e,r),_pthread_timedjoin_np=Module._pthread_timedjoin_np=(e,r,t)=>(_pthread_timedjoin_np=Module._pthread_timedjoin_np=wasmExports.pthread_timedjoin_np)(e,r,t),_pthread_join=Module._pthread_join=(e,r)=>(_pthread_join=Module._pthread_join=wasmExports.pthread_join)(e,r),_emscripten_builtin_pthread_join=Module._emscripten_builtin_pthread_join=(e,r)=>(_emscripten_builtin_pthread_join=Module._emscripten_builtin_pthread_join=wasmExports.emscripten_builtin_pthread_join)(e,r),_pthread_key_delete=Module._pthread_key_delete=e=>(_pthread_key_delete=Module._pthread_key_delete=wasmExports.pthread_key_delete)(e),_pthread_mutex_consistent=Module._pthread_mutex_consistent=e=>(_pthread_mutex_consistent=Module._pthread_mutex_consistent=wasmExports.pthread_mutex_consistent)(e),_pthread_mutex_getprioceiling=Module._pthread_mutex_getprioceiling=(e,r)=>(_pthread_mutex_getprioceiling=Module._pthread_mutex_getprioceiling=wasmExports.pthread_mutex_getprioceiling)(e,r),_pthread_mutex_init=Module._pthread_mutex_init=(e,r)=>(_pthread_mutex_init=Module._pthread_mutex_init=wasmExports.pthread_mutex_init)(e,r),_pthread_mutex_setprioceiling=Module._pthread_mutex_setprioceiling=(e,r,t)=>(_pthread_mutex_setprioceiling=Module._pthread_mutex_setprioceiling=wasmExports.pthread_mutex_setprioceiling)(e,r,t),_pthread_mutex_timedlock=Module._pthread_mutex_timedlock=(e,r)=>(_pthread_mutex_timedlock=Module._pthread_mutex_timedlock=wasmExports.pthread_mutex_timedlock)(e,r),_pthread_mutexattr_destroy=Module._pthread_mutexattr_destroy=e=>(_pthread_mutexattr_destroy=Module._pthread_mutexattr_destroy=wasmExports.pthread_mutexattr_destroy)(e),_pthread_mutexattr_init=Module._pthread_mutexattr_init=e=>(_pthread_mutexattr_init=Module._pthread_mutexattr_init=wasmExports.pthread_mutexattr_init)(e),_pthread_mutexattr_setprotocol=Module._pthread_mutexattr_setprotocol=(e,r)=>(_pthread_mutexattr_setprotocol=Module._pthread_mutexattr_setprotocol=wasmExports.pthread_mutexattr_setprotocol)(e,r),_pthread_mutexattr_setpshared=Module._pthread_mutexattr_setpshared=(e,r)=>(_pthread_mutexattr_setpshared=Module._pthread_mutexattr_setpshared=wasmExports.pthread_mutexattr_setpshared)(e,r),_pthread_mutexattr_setrobust=Module._pthread_mutexattr_setrobust=(e,r)=>(_pthread_mutexattr_setrobust=Module._pthread_mutexattr_setrobust=wasmExports.pthread_mutexattr_setrobust)(e,r),_pthread_mutexattr_settype=Module._pthread_mutexattr_settype=(e,r)=>(_pthread_mutexattr_settype=Module._pthread_mutexattr_settype=wasmExports.pthread_mutexattr_settype)(e,r),_pthread_rwlock_tryrdlock=Module._pthread_rwlock_tryrdlock=e=>(_pthread_rwlock_tryrdlock=Module._pthread_rwlock_tryrdlock=wasmExports.pthread_rwlock_tryrdlock)(e),_pthread_rwlock_timedrdlock=Module._pthread_rwlock_timedrdlock=(e,r)=>(_pthread_rwlock_timedrdlock=Module._pthread_rwlock_timedrdlock=wasmExports.pthread_rwlock_timedrdlock)(e,r),_pthread_rwlock_trywrlock=Module._pthread_rwlock_trywrlock=e=>(_pthread_rwlock_trywrlock=Module._pthread_rwlock_trywrlock=wasmExports.pthread_rwlock_trywrlock)(e),_pthread_rwlock_timedwrlock=Module._pthread_rwlock_timedwrlock=(e,r)=>(_pthread_rwlock_timedwrlock=Module._pthread_rwlock_timedwrlock=wasmExports.pthread_rwlock_timedwrlock)(e,r),_pthread_rwlockattr_destroy=Module._pthread_rwlockattr_destroy=e=>(_pthread_rwlockattr_destroy=Module._pthread_rwlockattr_destroy=wasmExports.pthread_rwlockattr_destroy)(e),_pthread_rwlockattr_init=Module._pthread_rwlockattr_init=e=>(_pthread_rwlockattr_init=Module._pthread_rwlockattr_init=wasmExports.pthread_rwlockattr_init)(e),_pthread_rwlockattr_setpshared=Module._pthread_rwlockattr_setpshared=(e,r)=>(_pthread_rwlockattr_setpshared=Module._pthread_rwlockattr_setpshared=wasmExports.pthread_rwlockattr_setpshared)(e,r),_pthread_setattr_default_np=Module._pthread_setattr_default_np=e=>(_pthread_setattr_default_np=Module._pthread_setattr_default_np=wasmExports.pthread_setattr_default_np)(e),_pthread_getattr_default_np=Module._pthread_getattr_default_np=e=>(_pthread_getattr_default_np=Module._pthread_getattr_default_np=wasmExports.pthread_getattr_default_np)(e),_pthread_setcanceltype=Module._pthread_setcanceltype=(e,r)=>(_pthread_setcanceltype=Module._pthread_setcanceltype=wasmExports.pthread_setcanceltype)(e,r),_pthread_testcancel=Module._pthread_testcancel=()=>(_pthread_testcancel=Module._pthread_testcancel=wasmExports.pthread_testcancel)(),_pthread_setconcurrency=Module._pthread_setconcurrency=e=>(_pthread_setconcurrency=Module._pthread_setconcurrency=wasmExports.pthread_setconcurrency)(e),_pthread_setschedparam=Module._pthread_setschedparam=(e,r,t)=>(_pthread_setschedparam=Module._pthread_setschedparam=wasmExports.pthread_setschedparam)(e,r,t),_pthread_setschedprio=Module._pthread_setschedprio=(e,r)=>(_pthread_setschedprio=Module._pthread_setschedprio=wasmExports.pthread_setschedprio)(e,r),_pthread_spin_destroy=Module._pthread_spin_destroy=e=>(_pthread_spin_destroy=Module._pthread_spin_destroy=wasmExports.pthread_spin_destroy)(e),_pthread_spin_init=Module._pthread_spin_init=(e,r)=>(_pthread_spin_init=Module._pthread_spin_init=wasmExports.pthread_spin_init)(e,r),_pthread_spin_lock=Module._pthread_spin_lock=e=>(_pthread_spin_lock=Module._pthread_spin_lock=wasmExports.pthread_spin_lock)(e),_pthread_spin_trylock=Module._pthread_spin_trylock=e=>(_pthread_spin_trylock=Module._pthread_spin_trylock=wasmExports.pthread_spin_trylock)(e),_pthread_spin_unlock=Module._pthread_spin_unlock=e=>(_pthread_spin_unlock=Module._pthread_spin_unlock=wasmExports.pthread_spin_unlock)(e),_emscripten_get_sbrk_ptr=Module._emscripten_get_sbrk_ptr=()=>(_emscripten_get_sbrk_ptr=Module._emscripten_get_sbrk_ptr=wasmExports.emscripten_get_sbrk_ptr)(),__emscripten_timeout=(e,r)=>(__emscripten_timeout=wasmExports._emscripten_timeout)(e,r),__emscripten_check_mailbox=()=>(__emscripten_check_mailbox=wasmExports._emscripten_check_mailbox)(),_emscripten_set_thread_name=Module._emscripten_set_thread_name=(e,r)=>(_emscripten_set_thread_name=Module._emscripten_set_thread_name=wasmExports.emscripten_set_thread_name)(e,r),_malloc_trim=Module._malloc_trim=e=>(_malloc_trim=Module._malloc_trim=wasmExports.malloc_trim)(e),_malloc_usable_size=Module._malloc_usable_size=e=>(_malloc_usable_size=Module._malloc_usable_size=wasmExports.malloc_usable_size)(e),_malloc_footprint=Module._malloc_footprint=()=>(_malloc_footprint=Module._malloc_footprint=wasmExports.malloc_footprint)(),_malloc_max_footprint=Module._malloc_max_footprint=()=>(_malloc_max_footprint=Module._malloc_max_footprint=wasmExports.malloc_max_footprint)(),_malloc_footprint_limit=Module._malloc_footprint_limit=()=>(_malloc_footprint_limit=Module._malloc_footprint_limit=wasmExports.malloc_footprint_limit)(),_malloc_set_footprint_limit=Module._malloc_set_footprint_limit=e=>(_malloc_set_footprint_limit=Module._malloc_set_footprint_limit=wasmExports.malloc_set_footprint_limit)(e),__emscripten_tempret_set=e=>(__emscripten_tempret_set=wasmExports._emscripten_tempret_set)(e),__emscripten_tempret_get=()=>(__emscripten_tempret_get=wasmExports._emscripten_tempret_get)(),_emscripten_stack_init=Module._emscripten_stack_init=()=>(_emscripten_stack_init=Module._emscripten_stack_init=wasmExports.emscripten_stack_init)(),_emscripten_stack_set_limits=(e,r)=>(_emscripten_stack_set_limits=wasmExports.emscripten_stack_set_limits)(e,r),_emscripten_stack_get_free=Module._emscripten_stack_get_free=()=>(_emscripten_stack_get_free=Module._emscripten_stack_get_free=wasmExports.emscripten_stack_get_free)(),_emscripten_wasm_worker_initialize=Module._emscripten_wasm_worker_initialize=(e,r)=>(_emscripten_wasm_worker_initialize=Module._emscripten_wasm_worker_initialize=wasmExports.emscripten_wasm_worker_initialize)(e,r),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),__ZTVN5arrow12NumericArrayINS_10Date64TypeEEE=Module.__ZTVN5arrow12NumericArrayINS_10Date64TypeEEE=1929e3,__ZTVNSt3__220__shared_ptr_pointerIPN5arrow17DictionaryBuilderINS1_14Decimal256TypeEEENS_14default_deleteIS4_EENS_9allocatorIS4_EEEE=Module.__ZTVNSt3__220__shared_ptr_pointerIPN5arrow17DictionaryBuilderINS1_14Decimal256TypeEEENS_14default_deleteIS4_EENS_9allocatorIS4_EEEE=1935e3,__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb3web21TableFunctionRelationENS_9allocatorIS3_EEEE=Module.__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb3web21TableFunctionRelationENS_9allocatorIS3_EEEE=1947e3,__ZTIN6duckdb13QualifyBinderE=Module.__ZTIN6duckdb13QualifyBinderE=1959e3,__ZTTNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE=Module.__ZTTNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE=2168e3,__ZTIN6duckdb17LocalWriteCSVDataE=Module.__ZTIN6duckdb17LocalWriteCSVDataE=1993e3,__ZTSN6duckdb18ScalarFunctionInfoE=Module.__ZTSN6duckdb18ScalarFunctionInfoE=523e3,__ZTVN6duckdb24ArrowCollectorLocalStateE=Module.__ZTVN6duckdb24ArrowCollectorLocalStateE=2015e3,__ZTIN6duckdb23PhysicalBlockwiseNLJoinE=Module.__ZTIN6duckdb23PhysicalBlockwiseNLJoinE=2038e3,__ZTVN6duckdb24RadixHTGlobalSourceStateE=Module.__ZTVN6duckdb24RadixHTGlobalSourceStateE=2049e3,__ZTSN6duckdb14CTableBindDataE=Module.__ZTSN6duckdb14CTableBindDataE=645e3,__ZGVZNK14duckdb_httplib10ClientImpl18read_response_lineERNS_6StreamERKNS_7RequestERNS_8ResponseEE2re=Module.__ZGVZNK14duckdb_httplib10ClientImpl18read_response_lineERNS_6StreamERKNS_7RequestERNS_8ResponseEE2re=2206e3,__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb14DeleteRelationENS_9allocatorIS2_EEEE=Module.__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb14DeleteRelationENS_9allocatorIS2_EEEE=2056e3,__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb18ProjectionRelationENS_9allocatorIS2_EEEE=Module.__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb18ProjectionRelationENS_9allocatorIS2_EEEE=2063e3,__ZTIN6duckdb13PipelineEventE=Module.__ZTIN6duckdb13PipelineEventE=2064e3,__ZN6duckdb26LeadingZeroBufferConstants6SHIFTSE=Module.__ZN6duckdb26LeadingZeroBufferConstants6SHIFTSE=676e3,__ZTVN5arrow8internal21DictionaryBuilderBaseINS_18AdaptiveIntBuilderENS_10UInt32TypeEEE=Module.__ZTVN5arrow8internal21DictionaryBuilderBaseINS_18AdaptiveIntBuilderENS_10UInt32TypeEEE=2091e3,__ZTVN5arrow8internal21DictionaryBuilderBaseINS_18AdaptiveIntBuilderENS_10DoubleTypeEEE=Module.__ZTVN5arrow8internal21DictionaryBuilderBaseINS_18AdaptiveIntBuilderENS_10DoubleTypeEEE=2092e3,__ZTINSt3__223enable_shared_from_thisIN5arrow6ScalarEEE=Module.__ZTINSt3__223enable_shared_from_thisIN5arrow6ScalarEEE=2099e3,__ZTVNSt3__220__shared_ptr_emplaceIN5arrow25ExtensionTypeRegistryImplENS_9allocatorIS2_EEEE=Module.__ZTVNSt3__220__shared_ptr_emplaceIN5arrow25ExtensionTypeRegistryImplENS_9allocatorIS2_EEEE=2101e3,__ZTVN5arrow12Date64ScalarE=Module.__ZTVN5arrow12Date64ScalarE=2103e3,__ZTIN5arrow4util18EqualityComparableINS_7compute15FunctionOptionsEEE=Module.__ZTIN5arrow4util18EqualityComparableINS_7compute15FunctionOptionsEEE=2105e3,__ZTIZN5arrow17MakeFormatterImpl5VisitINS_10Date32TypeEEENSt3__29enable_ifIXsr12is_date_typeIT_EE5valueENS_6StatusEE4typeERKS5_EUlRKNS_5ArrayExPNS3_13basic_ostreamIcNS3_11char_traitsIcEEEEE_=Module.__ZTIZN5arrow17MakeFormatterImpl5VisitINS_10Date32TypeEEENSt3__29enable_ifIXsr12is_date_typeIT_EE5valueENS_6StatusEE4typeERKS5_EUlRKNS_5ArrayExPNS3_13basic_ostreamIcNS3_11char_traitsIcEEEEE_=212e4,__ZTINSt3__220__shared_ptr_emplaceIN5arrow12NumericArrayINS1_10Time32TypeEEENS_9allocatorIS4_EEEE=Module.__ZTINSt3__220__shared_ptr_emplaceIN5arrow12NumericArrayINS1_10Time32TypeEEENS_9allocatorIS4_EEEE=2122e3,__ZN5arrow7compute16SetLookupOptions9kTypeNameE=Module.__ZN5arrow7compute16SetLookupOptions9kTypeNameE=1472e3,__ZTSN5arrow7compute15StrftimeOptionsE=Module.__ZTSN5arrow7compute15StrftimeOptionsE=1473e3,__ZTIZN5arrow7compute8internal22GetFunctionOptionsTypeINS0_10PadOptionsEJNS_8internal18DataMemberPropertyIS3_xEENS5_IS3_NSt3__212basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEEENS5_IS3_bEEEEEPKNS0_19FunctionOptionsTypeEDpRKT0_E11OptionsType=Module.__ZTIZN5arrow7compute8internal22GetFunctionOptionsTypeINS0_10PadOptionsEJNS_8internal18DataMemberPropertyIS3_xEENS5_IS3_NSt3__212basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEEENS5_IS3_bEEEEEPKNS0_19FunctionOptionsTypeEDpRKT0_E11OptionsType=2125e3,__ZTIN5arrow7compute16ArraySortOptionsE=Module.__ZTIN5arrow7compute16ArraySortOptionsE=2127e3,__ZTCN5arrow2io12StdoutStreamE0_NS0_12OutputStreamE=Module.__ZTCN5arrow2io12StdoutStreamE0_NS0_12OutputStreamE=215e4,__ZN5arrow19GenericBasicDecimalINS_15BasicDecimal256ELi256ELi4EE9kBitWidthE=Module.__ZN5arrow19GenericBasicDecimalINS_15BasicDecimal256ELi256ELi4EE9kBitWidthE=1539e3,__emscripten_main_thread_futex=Module.__emscripten_main_thread_futex=2213024,__ZNSt3__25wcerrE=Module.__ZNSt3__25wcerrE=2253e3,__ZNSt3__27codecvtIDsDu11__mbstate_tE2idE=Module.__ZNSt3__27codecvtIDsDu11__mbstate_tE2idE=2254e3,__ZTINSt3__215numpunct_bynameIwEE=Module.__ZTINSt3__215numpunct_bynameIwEE=2171e3,__ZTINSt3__29money_getIcNS_19istreambuf_iteratorIcNS_11char_traitsIcEEEEEE=Module.__ZTINSt3__29money_getIcNS_19istreambuf_iteratorIcNS_11char_traitsIcEEEEEE=2173e3,__ZTSPKo=Module.__ZTSPKo=1928e3,calledRun;function applySignatureConversions(e){var r,t=e=>r=>e(r)>>>0,n=e=>()=>e()>>>0,a=e=>(r,t)=>e(r,t)>>>0;return(e=Object.assign({},e)).__getTypeName=t(e.__getTypeName),e.pthread_self=n(e.pthread_self),e.malloc=t(e.malloc),e.__errno_location=n(e.__errno_location),e.memcpy=(r=e.memcpy,(e,t,n)=>r(e,t,n)>>>0),e.emscripten_builtin_memalign=a(e.emscripten_builtin_memalign),e.emscripten_builtin_malloc=t(e.emscripten_builtin_malloc),e.emscripten_main_runtime_thread_id=n(e.emscripten_main_runtime_thread_id),e.emscripten_stack_get_base=n(e.emscripten_stack_get_base),e.emscripten_stack_get_end=n(e.emscripten_stack_get_end),e.emscripten_stack_get_current=n(e.emscripten_stack_get_current),e.sbrk=(e=>r=>e(r)>>>0)(e.sbrk),e.memalign=a(e.memalign),e._emscripten_stack_alloc=t(e._emscripten_stack_alloc),e}function callMain(e=[]){var r=resolveGlobalSymbol("main").sym;if(r){e.unshift(thisProgram);var t=e.length,n=stackAlloc(4*(t+1)),a=n;e.forEach((e=>{GROWABLE_HEAP_U32()[a>>>2>>>0]=stringToUTF8OnStack(e),a+=4})),GROWABLE_HEAP_U32()[a>>>2>>>0]=0;try{var i=r(t,n);return exitJS(i,!0),i}catch(e){return handleException(e)}}}Module.wasmMemory=wasmMemory,Module.stackSave=stackSave,Module.stackRestore=stackRestore,Module.stackAlloc=stackAlloc,Module.keepRuntimeAlive=keepRuntimeAlive,Module.ccall=ccall,Module.ExitStatus=ExitStatus,Module.PThread=PThread,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)};var sharedModules=Module.sharedModules||[];function run(e=arguments_){if(!(runDependencies>0)){if(ENVIRONMENT_IS_PTHREAD)return readyPromiseResolve(Module),initRuntime(),void startWorker(Module);preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),r()}),1)):r())}function r(){calledRun||(calledRun=!0,Module.calledRun=!0,!ABORT&&(initRuntime(),preMain(),readyPromiseResolve(Module),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),shouldRunNow&&callMain(e),postRun()))}}if(Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;return Module.noInitialRun&&(shouldRunNow=!1),run(),readyPromise}})();"object"==typeof exports&&"object"==typeof module?module.exports=DuckDB:"function"==typeof define&&define.amd&&define([],(()=>DuckDB))})),Pe=$((()=>{})),Ge=$((()=>{})),Fe=$(((e,r)=>{!function(){var e="input is invalid type",t="object"==typeof window,n=t?window:{};n.JS_SHA256_NO_WINDOW&&(t=!1);var a=!t&&"object"==typeof self,i=!n.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;i?n=global:a&&(n=self);var _=!n.JS_SHA256_NO_COMMON_JS&&"object"==typeof r&&r.exports,s="function"==typeof define&&define.amd,o=!n.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),c=[-2147483648,8388608,32768,128],u=[24,16,8,0],d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=["hex","array","digest","arrayBuffer"],m=[];(n.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),o&&(n.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var f=function(e,r){return function(t){return new S(r,!0).update(t)[e]()}},g=function(e){var r=f("hex",e);i&&(r=E(r,e)),r.create=function(){return new S(e)},r.update=function(e){return r.create().update(e)};for(var t=0;t>>6,s[c++]=128|63&_):_<55296||_>=57344?(s[c++]=224|_>>>12,s[c++]=128|_>>>6&63,s[c++]=128|63&_):(_=65536+((1023&_)<<10|1023&r.charCodeAt(++a)),s[c++]=240|_>>>18,s[c++]=128|_>>>12&63,s[c++]=128|_>>>6&63,s[c++]=128|63&_);r=s}else{if("object"!==i)throw new Error(e);if(null===r)throw new Error(e);if(o&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!(Array.isArray(r)||o&&ArrayBuffer.isView(r)))throw new Error(e)}r.length>64&&(r=new S(t,!0).update(r).array());var u=[],d=[];for(a=0;a<64;++a){var p=r[a]||0;u[a]=92^p,d[a]=54^p}S.call(this,t,n),this.update(d),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}S.prototype.update=function(r){if(!this.finalized){var t,n=typeof r;if("string"!==n){if("object"!==n)throw new Error(e);if(null===r)throw new Error(e);if(o&&r.constructor===ArrayBuffer)r=new Uint8Array(r);else if(!(Array.isArray(r)||o&&ArrayBuffer.isView(r)))throw new Error(e);t=!0}for(var a,i,_=0,s=r.length,l=this.blocks;_>>2]|=r[_]<>>2]|=a<>>2]|=(192|a>>>6)<>>2]|=(128|63&a)<=57344?(l[i>>>2]|=(224|a>>>12)<>>2]|=(128|a>>>6&63)<>>2]|=(128|63&a)<>>2]|=(240|a>>>18)<>>2]|=(128|a>>>12&63)<>>2]|=(128|a>>>6&63)<>>2]|=(128|63&a)<=64?(this.block=l[16],this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},S.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,r=this.lastByteIndex;e[16]=this.block,e[r>>>2]|=c[3&r],this.block=e[16],r>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},S.prototype.hash=function(){var e,r,t,n,a,i,_,s,o,l=this.h0,c=this.h1,u=this.h2,p=this.h3,m=this.h4,f=this.h5,g=this.h6,E=this.h7,h=this.blocks;for(e=16;e<64;++e)r=((a=h[e-15])>>>7|a<<25)^(a>>>18|a<<14)^a>>>3,t=((a=h[e-2])>>>17|a<<15)^(a>>>19|a<<13)^a>>>10,h[e]=h[e-16]+r+h[e-7]+t<<0;for(o=c&u,e=0;e<64;e+=4)this.first?(this.is224?(i=300032,E=(a=h[0]-1413257819)-150054599<<0,p=a+24177077<<0):(i=704751109,E=(a=h[0]-210244248)-1521486534<<0,p=a+143694565<<0),this.first=!1):(r=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),n=(i=l&c)^l&u^o,E=p+(a=E+(t=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&f^~m&g)+d[e]+h[e])<<0,p=a+(r+n)<<0),r=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(_=p&l)^p&c^i,g=u+(a=g+(t=(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&m^~E&f)+d[e+1]+h[e+1])<<0,r=((u=a+(r+n)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),n=(s=u&p)^u&l^_,f=c+(a=f+(t=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&E^~g&m)+d[e+2]+h[e+2])<<0,r=((c=a+(r+n)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),n=(o=c&u)^c&p^s,m=l+(a=m+(t=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&g^~f&E)+d[e+3]+h[e+3])<<0,l=a+(r+n)<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+l<<0,this.h1=this.h1+c<<0,this.h2=this.h2+u<<0,this.h3=this.h3+p<<0,this.h4=this.h4+m<<0,this.h5=this.h5+f<<0,this.h6=this.h6+g<<0,this.h7=this.h7+E<<0},S.prototype.hex=function(){this.finalize();var e=this.h0,r=this.h1,t=this.h2,n=this.h3,a=this.h4,i=this.h5,_=this.h6,s=this.h7,o=l[e>>>28&15]+l[e>>>24&15]+l[e>>>20&15]+l[e>>>16&15]+l[e>>>12&15]+l[e>>>8&15]+l[e>>>4&15]+l[15&e]+l[r>>>28&15]+l[r>>>24&15]+l[r>>>20&15]+l[r>>>16&15]+l[r>>>12&15]+l[r>>>8&15]+l[r>>>4&15]+l[15&r]+l[t>>>28&15]+l[t>>>24&15]+l[t>>>20&15]+l[t>>>16&15]+l[t>>>12&15]+l[t>>>8&15]+l[t>>>4&15]+l[15&t]+l[n>>>28&15]+l[n>>>24&15]+l[n>>>20&15]+l[n>>>16&15]+l[n>>>12&15]+l[n>>>8&15]+l[n>>>4&15]+l[15&n]+l[a>>>28&15]+l[a>>>24&15]+l[a>>>20&15]+l[a>>>16&15]+l[a>>>12&15]+l[a>>>8&15]+l[a>>>4&15]+l[15&a]+l[i>>>28&15]+l[i>>>24&15]+l[i>>>20&15]+l[i>>>16&15]+l[i>>>12&15]+l[i>>>8&15]+l[i>>>4&15]+l[15&i]+l[_>>>28&15]+l[_>>>24&15]+l[_>>>20&15]+l[_>>>16&15]+l[_>>>12&15]+l[_>>>8&15]+l[_>>>4&15]+l[15&_];return this.is224||(o+=l[s>>>28&15]+l[s>>>24&15]+l[s>>>20&15]+l[s>>>16&15]+l[s>>>12&15]+l[s>>>8&15]+l[s>>>4&15]+l[15&s]),o},S.prototype.toString=S.prototype.hex,S.prototype.digest=function(){this.finalize();var e=this.h0,r=this.h1,t=this.h2,n=this.h3,a=this.h4,i=this.h5,_=this.h6,s=this.h7,o=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,r>>>24&255,r>>>16&255,r>>>8&255,255&r,t>>>24&255,t>>>16&255,t>>>8&255,255&t,n>>>24&255,n>>>16&255,n>>>8&255,255&n,a>>>24&255,a>>>16&255,a>>>8&255,255&a,i>>>24&255,i>>>16&255,i>>>8&255,255&i,_>>>24&255,_>>>16&255,_>>>8&255,255&_];return this.is224||o.push(s>>>24&255,s>>>16&255,s>>>8&255,255&s),o},S.prototype.array=S.prototype.digest,S.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),r=new DataView(e);return r.setUint32(0,this.h0),r.setUint32(4,this.h1),r.setUint32(8,this.h2),r.setUint32(12,this.h3),r.setUint32(16,this.h4),r.setUint32(20,this.h5),r.setUint32(24,this.h6),this.is224||r.setUint32(28,this.h7),e},A.prototype=new S,A.prototype.finalize=function(){if(S.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();S.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),S.prototype.finalize.call(this)}};var b=g();b.sha256=b,b.sha224=g(!0),b.sha256.hmac=v(),b.sha224.hmac=v(!0),_?r.exports=b:(n.sha256=b.sha256,n.sha224=b.sha224,s&&define((function(){return b})))}()})),C={},we="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node;we&&(ne=te(),ie=ne.parentPort,ie.on("message",(e=>oe({data:e}))),ae=Z(),ye=["vm"].map(K),Object.assign(global,{self:global,require:K,Module:C,location:{href:__filename},Worker:ne.Worker,importScripts:e=>ye.runInThisContext(ae.readFileSync(e,"utf8"),{filename:e}),postMessage:e=>ie.postMessage(e),performance:global.performance||{now:Date.now}}));var ne,ie,ae,ye,_e=!1;function Ke(...e){var r=e.join(" ");we?ae.writeSync(2,r+"\n"):console.error(r)}function Je(...e){var r=e.join(" ");postMessage({cmd:"alert",text:r,threadId:C._pthread_self()})}var Te=Ke;function se(e){var r;try{if("load"===e.data.cmd){let r=[];self.onmessage=e=>r.push(e),self.startWorker=e=>{C=e,postMessage({cmd:"loaded"});for(let e of r)se(e);self.onmessage=se},C.wasmModule=e.data.wasmModule,C.sharedModules=e.data.sharedModules;for(let r of e.data.handlers)C[r]=(...e)=>{postMessage({cmd:"callHandler",handler:r,args:e})};if(C.wasmMemory=e.data.wasmMemory,C.buffer=C.wasmMemory.buffer,C.ENVIRONMENT_IS_PTHREAD=!0,"string"==typeof e.data.urlOrBlob)importScripts(e.data.urlOrBlob);else{var t=URL.createObjectURL(e.data.urlOrBlob);importScripts(t),URL.revokeObjectURL(t)}DuckDB(C)}else if("run"===e.data.cmd){C.__emscripten_thread_init(e.data.pthread_ptr,0,0,1),C.__emscripten_thread_mailbox_await(e.data.pthread_ptr),C.establishStackSpace(),C.PThread.receiveObjectTransfer(e.data),C.PThread.threadInitTLS(),_e||(C.__embind_initialize_bindings(),_e=!0);try{C.invokeEntryPoint(e.data.start_routine,e.data.arg)}catch(e){if("unwind"!=e)throw e}}else"cancel"===e.data.cmd?C._pthread_self()&&C.__emscripten_thread_exit(-1):"setimmediate"===e.data.target||("checkMailbox"===e.data.cmd?_e&&C.checkMailbox():e.data.cmd&&(Te("worker.js received unknown command ".concat(e.data.cmd)),Te(e.data)))}catch(e){throw null==(r=C.__emscripten_thread_crashed)||r.call(C),e}}self.alert=Je,C.instantiateWasm=(e,r)=>{var t=C.wasmModule;return C.wasmModule=null,r(new WebAssembly.Instance(t,e),t)},self.onunhandledrejection=e=>{throw e.reason||e},self.onmessage=se;var oe=self.onmessage;function De(){return C}function xe(e){C=e}var Ue=be(Ie()),J=be(Fe()),ke=function(e,r,t){var n;if(null!=(n=null==e?void 0:e.endpoint)&&n.startsWith("http")){let r="".concat(null==e?void 0:e.endpoint),t=r.indexOf("://")+3;return r.substring(t)}return null!=e&&e.endpoint?"".concat(t,".").concat(null==e?void 0:e.endpoint):"".concat(t,".s3.amazonaws.com")};function Ye(e,r,t){var n,a,i,_;let s=Oe(r),o=s.path;return Be(e)&&(o="/".concat(s.bucket).concat(o)),{url:o,query:"",host:ke(e,r,s.bucket),region:null!=(n=null==e?void 0:e.region)?n:"",service:"s3",method:t,accessKeyId:null!=(a=null==e?void 0:e.accessKeyId)?a:"",secretAccessKey:null!=(i=null==e?void 0:e.secretAccessKey)?i:"",sessionToken:null!=(_=null==e?void 0:e.sessionToken)?_:"",dateNow:(new Date).toISOString().replace(/-/g,"").split("T")[0],datetimeNow:(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function Ze(e,r=!1){let t="0123456789ABCDEF",n="";for(let a=0;a="A"&&i<="Z"||i>="a"&&i<="z"||i>="0"&&i<="9"||"_"==i||"-"==i||"~"==i||"."==i?n+=i:"/"==i?n+=r?"%2F":i:(n+="%",n+=t[i.charCodeAt(0)>>4],n+=t[15&i.charCodeAt(0)])}return n}function er(e,r=null){var t;let n=null!=(t=null==r?void 0:r.contentHash)?t:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",a=new Map;a.set("x-amz-date",e.datetimeNow),a.set("x-amz-content-sha256",n),e.sessionToken&&a.set("x-amz-security-token",e.sessionToken);let i="";null!=r&&r.contentType&&(i+="content-type;"),i+="host;x-amz-content-sha256;x-amz-date",e.sessionToken&&(i+=";x-amz-security-token");let _=e.method+"\n"+Ze(e.url)+"\n"+e.query;null!=r&&r.contentType&&(_+="\ncontent-type:"+(null==r?void 0:r.contentType)),_+="\nhost:"+e.host+"\nx-amz-content-sha256:"+n+"\nx-amz-date:"+e.datetimeNow,e.sessionToken&&e.sessionToken.length>0&&(_+="\nx-amz-security-token:"+e.sessionToken),_+="\n\n"+i+"\n"+n;let s=(0,J.sha256)(_),o="AWS4-HMAC-SHA256\n"+e.datetimeNow+"\n"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request\n"+s,l="AWS4"+e.secretAccessKey,c=J.sha256.hmac.arrayBuffer(l,e.dateNow),u=J.sha256.hmac.arrayBuffer(c,e.region),d=J.sha256.hmac.arrayBuffer(u,e.service),p=J.sha256.hmac.arrayBuffer(d,"aws4_request"),m=J.sha256.hmac(p,o);return a.set("Authorization","AWS4-HMAC-SHA256 Credential="+e.accessKeyId+"/"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request, SignedHeaders="+i+", Signature="+m),a}var rr=function(e,r,t,n=null,a=null){return er(Ye(e,r,t),{contentType:n,contentHash:a?J.sha256.hex(a):null})};function q(e,r,t,n,a=null,i=null){(null!=r&&r.accessKeyId||null!=r&&r.sessionToken)&&(rr(r,t,n,a,i).forEach(((r,t)=>{e.setRequestHeader(t,r)})),a&&e.setRequestHeader("content-type",a))}function Oe(e){if(0!=e.indexOf("s3://"))throw new Error("URL needs to start with s3://");let r=e.indexOf("/",5);if(-1==r)throw new Error("URL needs to contain a '/' after the host");let t=e.substring(5,r);if(!t)throw new Error("URL needs to contain a bucket name");let n=e.substring(r);if(!n)throw new Error("URL needs to contain key");return{bucket:t,path:n}}function Be(e){var r;return!(null==(r=null==e?void 0:e.endpoint)||!r.startsWith("http"))}function z(e,r){let t=Oe(r);return Be(e)?"".concat(null==e?void 0:e.endpoint,"/").concat(t.bucket)+t.path:"https://"+ke(e,r,t.bucket)+t.path}var He=new TextEncoder,Ne=new TextDecoder("utf-8");function de(e,r,t){let n=He.encode(t),a=e._malloc(n.byteLength),i=e.HEAPU8.subarray(a,a+n.byteLength);i.set(n),e.HEAPF64[0+(r>>3)]=1,e.HEAPF64[1+(r>>3)]=a,e.HEAPF64[2+(r>>3)]=i.byteLength}function fe(e){switch(e){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function pe(e,r,t,n){let a=e.HEAPU8.subarray(r,r+n*fe(t));switch(t){case"UINT8":return new Uint8Array(a.buffer,a.byteOffset,n);case"INT8":return new Int8Array(a.buffer,a.byteOffset,n);case"INT32":return new Int32Array(a.buffer,a.byteOffset,n);case"FLOAT":return new Float32Array(a.buffer,a.byteOffset,n);case"DOUBLE":case"VARCHAR":return new Float64Array(a.buffer,a.byteOffset,n);default:return new Array(0)}}function Ce(e,r,t){let n=e.HEAPU8.subarray(r,r+t);return new Uint8Array(n.buffer,n.byteOffset,t)}function re(e,r,t){let n=e.HEAPU8.subarray(r,r+8*t);return new Float64Array(n.buffer,n.byteOffset,t)}function We(e,r,t,n,a,i,_,s){try{let o=e._udfFunctions.get(n);if(!o)return void de(r,t,"Unknown UDF with id: "+n);let l=Ne.decode(r.HEAPU8.subarray(a,a+i)),c=JSON.parse(l),u=re(r,_,s/8),d=e=>{var t;let n=null;switch(void 0!==e.validityBuffer&&(n=Ce(r,u[e.validityBuffer],c.rows)),e.physicalType){case"VARCHAR":{if(null===e.dataBuffer||void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(null===e.lengthBuffer||void 0===e.lengthBuffer)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let t=pe(r,u[e.dataBuffer],e.physicalType,c.rows),a=[],i=re(r,u[e.lengthBuffer],c.rows);for(let e=0;ea[e]}case"STRUCT":{let r={},a=[];for(let n=0;n<((null==(t=e.children)?void 0:t.length)||0);++n){let t=e.children[n],i=d(t);a.push((e=>{r[t.name]=i(e)}))}return null!=n?e=>{if(!n[e])return null;for(let r of a)r(e);return r}:e=>{for(let r of a)r(e);return r}}default:{if(void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for argument of type: "+e.physicalType);let t=pe(r,u[e.dataBuffer],e.physicalType,c.rows);return null!=n?e=>n[e]?t[e]:null:e=>t[e]}}},p=[];for(let e=0;e>3)]=0,r.HEAPF64[1+(t>>3)]=L,r.HEAPF64[2+(t>>3)]=0}catch(e){de(r,t,e.toString())}}function nr(){let e=new TextDecoder;return r=>(typeof SharedArrayBuffer<"u"&&r.buffer instanceof SharedArrayBuffer&&(r=new Uint8Array(r)),e.decode(r))}var ir=nr();function V(e,r){console.error("FAIL WITH: ".concat(r)),e.ccall("duckdb_web_fail_with",null,["string"],[r])}function j(e,r,t){return ir(e.HEAPU8.subarray(r,r+t))}function ge(e,r,t,n){let a=e.stackSave(),i=e.stackAlloc(24);t.unshift("number"),n.unshift(i),e.ccall(r,null,t,n);let _=e.HEAPF64[0+(i>>3)],s=e.HEAPF64[1+(i>>3)],o=e.HEAPF64[2+(i>>3)];return e.stackRestore(a),[_,s,o]}function Ee(e){e.ccall("duckdb_web_clear_response",null,[],[])}var B={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(e,r){try{let t=B._fileInfoCache.get(r),[n,a,i]=ge(e,"duckdb_web_fs_get_file_info_by_id",["number","number"],[r,(null==t?void 0:t.cacheEpoch)||0]);if(0!==n)return null;if(0===i)return t;let _=j(e,a,i);Ee(e);try{let e=JSON.parse(_);if(null==e)return null;let t={...e,blob:null};return B._fileInfoCache.set(r,t),t}catch(e){return console.warn(e),null}}catch(e){return console.log(e),null}},getGlobalFileInfo(e){var r;try{let[t,n,a]=ge(e,"duckdb_web_get_global_file_info",["number"],[(null==(r=B._globalFileInfo)?void 0:r.cacheEpoch)||0]);if(0!==t)return null;if(0===a)return B._globalFileInfo;let i=j(e,n,a);Ee(e);let _=JSON.parse(i);return null==_?null:(B._globalFileInfo={..._,blob:null},B._globalFileInfo)}catch(e){return console.log(e),null}},testPlatformFeature:(e,r)=>1===r?typeof BigInt64Array<"u":(console.warn("test for unknown feature: ".concat(r)),!1),getDefaultDataProtocol:e=>2,openFile:(e,r,t)=>{var n,a;try{B._fileInfoCache.delete(r);let i=B.getFileInfo(e,r);switch(null==i?void 0:i.dataProtocol){case 4:case 5:{if(1&t&&2&t)throw new Error("Opening file ".concat(i.fileName," failed: cannot open file with both read and write flags set"));if(32&t)throw new Error("Opening file ".concat(i.fileName," failed: appending to HTTP/S3 files is not supported"));if(2&t){let r=new XMLHttpRequest;if(5==i.dataProtocol?(r.open("HEAD",z(i.s3Config,i.dataUrl),!1),q(r,i.s3Config,i.dataUrl,"HEAD")):r.open("HEAD",i.dataUrl,!1),r.send(null),200!=r.status&&404!=r.status)throw new Error("Opening file ".concat(i.fileName," failed: Unexpected return status from server (").concat(r.status,")"));if(404==r.status&&!(8&t||16&t))throw new Error("Opening file ".concat(i.fileName," failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag."));let n=e._malloc(1),a=new Uint8Array;e.HEAPU8.set(a,n);let _=e._malloc(16);return e.HEAPF64[0+(_>>3)]=1,e.HEAPF64[1+(_>>3)]=n,_}if(!(1&t))throw new Error("Opening file ".concat(i.fileName," failed: unsupported file flags: ").concat(t));let r=null,a=null;if(i.reliableHeadRequests||!i.allowFullHttpReads)try{let t=new XMLHttpRequest;if(5==i.dataProtocol?(t.open("HEAD",z(i.s3Config,i.dataUrl),!1),q(t,i.s3Config,i.dataUrl,"HEAD")):t.open("HEAD",i.dataUrl,!1),t.setRequestHeader("Range","bytes=0-"),t.send(null),r=t.getResponseHeader("Content-Length"),null!==r&&206==t.status){let t=e._malloc(16);return e.HEAPF64[0+(t>>3)]=+r,e.HEAPF64[1+(t>>3)]=0,t}}catch(e){a=e,console.warn("HEAD request with range header failed: ".concat(e))}if(i.allowFullHttpReads){{let t=new XMLHttpRequest;5==i.dataProtocol?(t.open("GET",z(i.s3Config,i.dataUrl),!1),q(t,i.s3Config,i.dataUrl,"GET")):t.open("GET",i.dataUrl,!1),t.responseType="arraybuffer",t.setRequestHeader("Range","bytes=0-0"),t.send(null);let a=null==(n=t.getResponseHeader("Content-Range"))?void 0:n.split("/")[1],_=t.getResponseHeader("Content-Length"),s=null;if(void 0!==a)s=a;else if(!i.reliableHeadRequests){let e=new XMLHttpRequest;5==i.dataProtocol?(e.open("HEAD",z(i.s3Config,i.dataUrl),!1),q(e,i.s3Config,i.dataUrl,"HEAD")):e.open("HEAD",i.dataUrl,!1),e.setRequestHeader("Range","bytes=0-"),e.send(null),r=e.getResponseHeader("Content-Length"),null!==r&&+r>1&&(s=r)}if(206==t.status&&null!==_&&1==+_&&null!==s){let r=e._malloc(16);return e.HEAPF64[0+(r>>3)]=+s,e.HEAPF64[1+(r>>3)]=0,r}if(200==t.status&&null!==_&&null!==r&&+_==+r){console.warn("fall back to full HTTP read for: ".concat(i.dataUrl));let r=e._malloc(t.response.byteLength),n=new Uint8Array(t.response,0,t.response.byteLength);e.HEAPU8.set(n,r);let a=e._malloc(16);return e.HEAPF64[0+(a>>3)]=t.response.byteLength,e.HEAPF64[1+(a>>3)]=r,a}}console.warn("falling back to full HTTP read for: ".concat(i.dataUrl));let t=new XMLHttpRequest;if(5==i.dataProtocol?(t.open("GET",z(i.s3Config,i.dataUrl),!1),q(t,i.s3Config,i.dataUrl,"GET")):t.open("GET",i.dataUrl,!1),t.responseType="arraybuffer",t.send(null),200==t.status){let r=e._malloc(t.response.byteLength),n=new Uint8Array(t.response,0,t.response.byteLength);e.HEAPU8.set(n,r);let a=e._malloc(16);return e.HEAPF64[0+(a>>3)]=t.response.byteLength,e.HEAPF64[1+(a>>3)]=r,a}}if(null!=a)throw new Error("Reading file ".concat(i.fileName," failed with error: ").concat(a));return 0}case 2:{let r=null==(a=B._files)?void 0:a.get(i.fileName);if(r){let t=e._malloc(16);return e.HEAPF64[0+(t>>3)]=r.size,e.HEAPF64[1+(t>>3)]=0,t}console.warn("Buffering missing file: ".concat(i.fileName));let t=e._malloc(16),n=e._malloc(1);return e.HEAPF64[0+(t>>3)]=1,e.HEAPF64[1+(t>>3)]=n,t}}}catch(r){console.error(r.toString()),V(e,r.toString())}return 0},glob:(e,r,t)=>{var n;try{let a=j(e,r,t);if(a.startsWith("http")||a.startsWith("s3://")){let r=new XMLHttpRequest;if(a.startsWith("s3://")){let t=B.getGlobalFileInfo(e);r.open("HEAD",z(null==t?void 0:t.s3Config,a),!1),q(r,null==t?void 0:t.s3Config,a,"HEAD")}else r.open("HEAD",a,!1);if(r.send(null),200!=r.status&&206!==r.status){if(null==(n=B.getGlobalFileInfo(e))||!n.allowFullHttpReads)return V(e,"HEAD request failed: ".concat(a,", with full http reads are disabled")),0;let r=new XMLHttpRequest;if(a.startsWith("s3://")){let t=B.getGlobalFileInfo(e);r.open("GET",z(null==t?void 0:t.s3Config,a),!1),q(r,null==t?void 0:t.s3Config,a,"HEAD")}else r.open("GET",a,!1);if(r.setRequestHeader("Range","bytes=0-0"),r.send(null),200!=r.status&&206!==r.status)return V(e,"HEAD and GET requests failed: ".concat(a)),0;let t=r.getResponseHeader("Content-Length");t&&+t>1&&console.warn("Range request for ".concat(a," did not return a partial response: ").concat(r.status,' "').concat(r.statusText,'"'))}e.ccall("duckdb_web_fs_glob_add_path",null,["string"],[a])}}catch(r){return console.log(r),V(e,r.toString()),0}},checkFile:(e,r,t)=>{try{let n=j(e,r,t);if(n.startsWith("http")||n.startsWith("s3://")){let r=new XMLHttpRequest;if(n.startsWith("s3://")){let t=B.getGlobalFileInfo(e);r.open("HEAD",z(null==t?void 0:t.s3Config,n),!1),q(r,null==t?void 0:t.s3Config,n,"HEAD")}else r.open("HEAD",n,!1);return r.send(null),206==r.status||200==r.status}}catch(e){return console.log(e),!1}return!1},syncFile:(e,r)=>{},closeFile:(e,r)=>{var t;let n=B.getFileInfo(e,r);switch(B._fileInfoCache.delete(r),null==n?void 0:n.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let e=null==(t=B._files)?void 0:t.get(n.fileName);if(!e)throw new Error("No OPFS access handle registered with name: ".concat(n.fileName));return e.flush()}}},truncateFile:(e,r,t)=>{var n;let a=B.getFileInfo(e,r);switch(null==a?void 0:a.dataProtocol){case 4:return void V(e,"Cannot truncate a http file");case 5:return void V(e,"Cannot truncate an s3 file");case 0:case 1:case 2:return void V(e,"truncateFile not implemented");case 3:{let e=null==(n=B._files)?void 0:n.get(a.fileName);if(!e)throw new Error("No OPFS access handle registered with name: ".concat(a.fileName));return e.truncate(t)}}return 0},readFile(e,r,t,n,a){var i,_;if(0==n)return 0;try{let s=B.getFileInfo(e,r);switch(null==s?void 0:s.dataProtocol){case 4:case 5:if(!s.dataUrl)throw new Error("Missing data URL for file ".concat(r));try{let r=new XMLHttpRequest;if(5==s.dataProtocol?(r.open("GET",z(null==s?void 0:s.s3Config,s.dataUrl),!1),q(r,null==s?void 0:s.s3Config,s.dataUrl,"GET")):r.open("GET",s.dataUrl,!1),r.responseType="arraybuffer",r.setRequestHeader("Range","bytes=".concat(a,"-").concat(a+n-1)),r.send(null),206==r.status||200==r.status&&n==r.response.byteLength&&0==a){let a=new Uint8Array(r.response,0,Math.min(r.response.byteLength,n));return e.HEAPU8.set(a,t),a.byteLength}if(200==r.status){console.warn("Range request for ".concat(s.dataUrl," did not return a partial response: ").concat(r.status,' "').concat(r.statusText,'"'));let i=new Uint8Array(r.response,a,Math.min(r.response.byteLength-a,n));return e.HEAPU8.set(i,t),i.byteLength}throw new Error("Range request for ".concat(s.dataUrl," did returned non-success status: ").concat(r.status,' "').concat(r.statusText,'"'))}catch(e){throw console.log(e),new Error("Range request for ".concat(s.dataUrl," failed with error: ").concat(e,'"'))}case 2:{let r=null==(i=B._files)?void 0:i.get(s.fileName);if(!r)throw new Error("No HTML5 file registered with name: ".concat(s.fileName));let _=r.slice(a,a+n),o=new Uint8Array((new FileReaderSync).readAsArrayBuffer(_));return e.HEAPU8.set(o,t),o.byteLength}case 3:{let r=null==(_=B._files)?void 0:_.get(s.fileName);if(!r)throw new Error("No OPFS access handle registered with name: ".concat(s.fileName));let i=e.HEAPU8.subarray(t,t+n);return r.read(i,{at:a})}}return 0}catch(r){return console.log(r),V(e,r.toString()),0}},writeFile:(e,r,t,n,a)=>{var i;let _=B.getFileInfo(e,r);switch(null==_?void 0:_.dataProtocol){case 4:return V(e,"Cannot write to HTTP file"),0;case 5:{let r=e.HEAPU8.subarray(t,t+n),a=new XMLHttpRequest;return a.open("PUT",z(null==_?void 0:_.s3Config,_.dataUrl),!1),q(a,null==_?void 0:_.s3Config,_.dataUrl,"PUT","",r),a.send(r),200!==a.status?(V(e,"Failed writing file: HTTP "+a.status),0):n}case 2:return V(e,"cannot write using the html5 file reader api"),0;case 3:{let r=null==(i=B._files)?void 0:i.get(_.fileName);if(!r)throw new Error("No OPFS access handle registered with name: ".concat(_.fileName));let s=e.HEAPU8.subarray(t,t+n);return r.write(s,{at:a})}}return 0},getLastFileModificationTime:(e,r)=>{var t;let n=B.getFileInfo(e,r);switch(null==n?void 0:n.dataProtocol){case 2:if(!(null==(t=B._files)?void 0:t.get(n.fileName)))throw Error("No handle available for file: ".concat(n.fileName));return 0;case 4:case 5:return(new Date).getTime()}return 0},checkDirectory:(e,r,t)=>{let n=j(e,r,t);return console.log("checkDirectory: ".concat(n)),!1},createDirectory:(e,r,t)=>{let n=j(e,r,t);console.log("createDirectory: ".concat(n))},removeDirectory:(e,r,t)=>{let n=j(e,r,t);console.log("removeDirectory: ".concat(n))},listDirectoryEntries:(e,r,t)=>{let n=j(e,r,t);return console.log("listDirectoryEntries: ".concat(n)),!1},moveFile:(e,r,t,n,a)=>{var i,_;let s=j(e,r,t),o=j(e,n,a),l=null==(i=B._files)?void 0:i.get(s);void 0!==l&&(B._files.delete(l),B._files.set(o,l));for(let[e,r]of(null==(_=B._fileInfoCache)?void 0:_.entries())||[])if(r.dataUrl==s){B._fileInfoCache.delete(e);break}return!0},removeFile:(e,r,t)=>{},callScalarUDF:(e,r,t,n,a,i,_)=>{We(B,e,r,t,n,a,i,_)}};globalThis.DUCKDB_RUNTIME={};for(let e of Object.getOwnPropertyNames(B))"constructor"!=e&&(globalThis.DUCKDB_RUNTIME[e]=Object.getOwnPropertyDescriptor(B,e).value);globalThis.onmessage=e=>{if("load"===e.data.cmd){let r=De();globalThis.startWorker=e=>{r=e,postMessage({cmd:"loaded"})},r.wasmModule=e.data.wasmModule,r.wasmMemory=e.data.wasmMemory,r.buffer=r.wasmMemory.buffer,r.ENVIRONMENT_IS_PTHREAD=!0,(0,Ue.default)(r).then((e=>{xe(e)}))}else if("registerFileHandle"===e.data.cmd)globalThis.DUCKDB_RUNTIME._files=globalThis.DUCKDB_RUNTIME._files||new Map,globalThis.DUCKDB_RUNTIME._files.set(e.data.fileName,e.data.fileHandle);else if("dropFileHandle"===e.data.cmd)globalThis.DUCKDB_RUNTIME._files=globalThis.DUCKDB_RUNTIME._files||new Map,globalThis.DUCKDB_RUNTIME._files.delete(e.data.fileName);else if("registerUDFFunction"===e.data.cmd)globalThis.DUCKDB_RUNTIME._udfFunctions=globalThis.DUCKDB_RUNTIME._files||new Map,globalThis.DUCKDB_RUNTIME._udfFunctions.set(e.data.udf.name,e.data.udf);else if("dropUDFFunctions"===e.data.cmd){globalThis.DUCKDB_RUNTIME._udfFunctions=globalThis.DUCKDB_RUNTIME._files||new Map;for(let r of globalThis.DUCKDB_RUNTIME._udfFunctions.keys())globalThis.DUCKDB_RUNTIME._udfFunctions.get(r).connection_id==e.data.connectionId&&globalThis.DUCKDB_RUNTIME._udfFunctions.delete(r)}else oe(e)}})(); \ No newline at end of file diff --git a/static/assets/duckdb-browser-coi.pthread.worker.dc11897ab653fccb082a.js.LICENSE.txt b/static/assets/duckdb-browser-coi.pthread.worker.dc11897ab653fccb082a.js.LICENSE.txt new file mode 100644 index 000000000..286bd31ff --- /dev/null +++ b/static/assets/duckdb-browser-coi.pthread.worker.dc11897ab653fccb082a.js.LICENSE.txt @@ -0,0 +1,12 @@ +/*! Bundled license information: + +js-sha256/src/sha256.js: + (** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.11.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2024 + * @license MIT + *) +*/ diff --git a/static/assets/duckdb-browser-coi.worker.242b14ae945f783fcf12.js b/static/assets/duckdb-browser-coi.worker.242b14ae945f783fcf12.js new file mode 100644 index 000000000..9b2e2b336 --- /dev/null +++ b/static/assets/duckdb-browser-coi.worker.242b14ae945f783fcf12.js @@ -0,0 +1,2 @@ +/*! For license information please see duckdb-browser-coi.worker.242b14ae945f783fcf12.js.LICENSE.txt */ +"use strict";var duckdb=(()=>{var jl=Object.create,xi=Object.defineProperty,ql=Object.getOwnPropertyDescriptor,$l=Object.getOwnPropertyNames,Jl=Object.getPrototypeOf,Xl=Object.prototype.hasOwnProperty,va=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),xn=(o=function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):o),o,xt=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pr=(e,t)=>{for(var r in t)xi(e,r,{get:t[r],enumerable:!0})},Po=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of $l(t))!Xl.call(e,i)&&i!==r&&xi(e,i,{get:()=>t[i],enumerable:!(n=ql(t,i))||n.enumerable});return e},Oo=(e,t,r)=>(r=null!=e?jl(Jl(e)):{},Po(!t&&e&&e.__esModule?r:xi(r,"default",{value:e,enumerable:!0}),e)),Kl=e=>Po(xi({},"__esModule",{value:!0}),e),Yl=function(e,t){this[0]=e,this[1]=t},Fr=e=>{var t,r=e[va("asyncIterator")],n=!1,i={};return null==r?(r=e[va("iterator")](),t=e=>i[e]=t=>r[e](t)):(r=r.call(e),t=e=>i[e]=t=>{if(n){if(n=!1,"throw"===e)throw t;return t}return n=!0,{done:!1,value:new Yl(new Promise((n=>{var i=r[e](t);if(!(i instanceof Object))throw TypeError("Object expected");n(i)})),1)}}),i[va("iterator")]=()=>i,t("next"),"throw"in r?t("throw"):i.throw=e=>{throw e},"return"in r&&t("return"),i},bo=xt((()=>{})),So=xt((()=>{})),xl=xt((()=>{})),Ml=xt((()=>{})),Ao=xt((()=>{})),Lo=xt(((e,t)=>{t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}})),Fl=xt(((exports,module)=>{var DuckDB=(()=>{var o,_scriptDir=typeof document<"u"?null==(o=document.currentScript)?void 0:o.src:void 0;return typeof __filename<"u"&&(_scriptDir||(_scriptDir=__filename)),function(moduleArg={}){function GROWABLE_HEAP_I8(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP8}function GROWABLE_HEAP_U8(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU8}function GROWABLE_HEAP_I16(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP16}function GROWABLE_HEAP_U16(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU16}function GROWABLE_HEAP_I32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAP32}function GROWABLE_HEAP_U32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPU32}function GROWABLE_HEAP_F32(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPF32}function GROWABLE_HEAP_F64(){return wasmMemory.buffer!=HEAP8.buffer&&updateMemoryViews(),HEAPF64}var Module=moduleArg,readyPromiseResolve,readyPromiseReject,readyPromise=new Promise(((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t})),moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER,ENVIRONMENT_IS_PTHREAD=Module.ENVIRONMENT_IS_PTHREAD||!1,scriptDirectory="",read_,readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=bo(),nodePath=So();scriptDirectory=ENVIRONMENT_IS_WORKER?nodePath.dirname(scriptDirectory)+"/":__dirname+"/",read_=(e,t)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e,t?void 0:"utf8")),readBinary=e=>{var t=read_(e,!0);return t.buffer||(t=new Uint8Array(t)),t},readAsync=(e,t,r,n=!0)=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFile(e,n?void 0:"utf8",((e,i)=>{e?r(e):t(n?i.buffer:i)}))},!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=(e,t)=>{throw process.exitCode=e,t},global.Worker=xl().Worker}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:typeof document<"u"&&document.currentScript&&(scriptDirectory=document.currentScript.src),_scriptDir&&(scriptDirectory=_scriptDir),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_NODE||(read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}));ENVIRONMENT_IS_NODE&&typeof performance>"u"&&(global.performance=Ml().performance);var defaultPrint=console.log.bind(console),defaultPrintErr=console.error.bind(console);ENVIRONMENT_IS_NODE&&(defaultPrint=(...e)=>fs.writeSync(1,e.join(" ")+"\n"),defaultPrintErr=(...e)=>fs.writeSync(2,e.join(" ")+"\n"));var out=Module.print||defaultPrint,err=Module.printErr||defaultPrintErr;Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var wasmMemory,wasmModule,ABORT=!1,EXITSTATUS,HEAP,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function assert(e,t){e||abort(t)}function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||16777216;if(ENVIRONMENT_IS_PTHREAD)wasmMemory=Module.wasmMemory;else if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else if(wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:65536,shared:!0}),!(wasmMemory.buffer instanceof SharedArrayBuffer))throw err("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),ENVIRONMENT_IS_NODE&&err("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and/or recent version)"),Error("bad memory");updateMemoryViews(),INITIAL_MEMORY=wasmMemory.buffer.byteLength;var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,!ENVIRONMENT_IS_PTHREAD&&(callRuntimeCallbacks(__RELOC_FUNCS__),!Module.noFSInit&&!FS.init.initialized&&FS.init(),FS.ignorePermissions=!1,TTY.init(),SOCKFS.root=FS.mount(SOCKFS,{},null),PIPEFS.root=FS.mount(PIPEFS,{},null),callRuntimeCallbacks(__ATINIT__))}function preMain(){ENVIRONMENT_IS_PTHREAD||callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(!ENVIRONMENT_IS_PTHREAD){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPreMain(e){__ATMAIN__.unshift(e)}function addOnExit(e){}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){var t;runDependencies++,null==(t=Module.monitorRunDependencies)||t.call(Module,runDependencies)}function removeRunDependency(e){var t;if(runDependencies--,null==(t=Module.monitorRunDependencies)||t.call(Module,runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var r=dependenciesFulfilled;dependenciesFulfilled=null,r()}}function abort(e){var t;null==(t=Module.onAbort)||t.call(Module,e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",runtimeInitialized&&___trap();var r=new WebAssembly.RuntimeError(e);throw readyPromiseReject(r),r}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary||!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER||"function"!=typeof fetch?Promise.resolve().then((()=>getBinarySync(e))):fetch(e,{credentials:"same-origin"}).then((t=>{if(!t.ok)throw"failed to load wasm binary file at '".concat(e,"'");return t.arrayBuffer()})).catch((()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err("failed to asynchronously prepare wasm: ".concat(e)),abort(e)}))}function instantiateAsync(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return err("wasm streaming compile failed: ".concat(e)),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,n)}))))}function createWasm(){var e={env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)};function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),wasmExports=applySignatureConversions(wasmExports),registerTLSInit(wasmExports._emscripten_tls_init,e.exports,r),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),wasmModule=t,removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){err("Module.instantiateWasm callback failed with error: ".concat(e)),readyPromiseReject(e)}return instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})).catch(readyPromiseReject),{}}wasmBinaryFile="./duckdb-coi.wasm",isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile));var tempDouble,tempI64,ASM_CONSTS={2184008:(e,t)=>{var r="object"==typeof runtime&&runtime&&"function"==typeof runtime.whereToLoad&&runtime.whereToLoad?runtime.whereToLoad(UTF8ToString(e)):UTF8ToString(t),n=lengthBytesUTF8(r)+1,i=_malloc(n);return stringToUTF8(r,i,n),i},2184374:(e,t)=>{var r=UTF8ToString(e);if(typeof XMLHttpRequest>"u"){let e=Ao(),t=So(),l=bo();var n=r.split("/"),i=n.length,a=t.join(e.homedir(),".duckdb/extensions/"+n[i-4]+"/"+n[i-3]+"/"+n[i-2]+"/"),s=t.join(a,n[i-1]);try{if(l.existsSync(a)||l.mkdirSync(a,{recursive:!0}),l.existsSync(s))o=l.readFileSync(s);else{let e=new Int32Array(new SharedArrayBuffer(8));var o,_=new(0,xn("node:worker_threads").Worker)("const {Worker,isMainThread,parentPort,workerData,} = require('node:worker_threads');var times = 0;var SAB = 23;var Z = 0; async function ZZZ(e) {var x = await fetch(e);var res = await x.arrayBuffer();Atomics.store(SAB, 1, res.byteLength);Atomics.store(SAB, 0, 1);Atomics.notify(SAB, 1);Atomics.notify(SAB, 0);Z = res;};parentPort.on('message', function(event) {if (times == 0) {times++;SAB = event;} else if (times == 1) {times++; ZZZ(event);} else {const a = new Uint8Array(Z);const b = new Uint8Array(event.buffer);var K = Z.byteLength;for (var i = 0; i < K; i++) {b[i] = a[i];}Atomics.notify(event, 0);Atomics.store(SAB, 0, 2);Atomics.notify(SAB, 0);}});",{eval:!0});e[0]=0,e[2]=4,_.postMessage(e),_.postMessage(r),Atomics.wait(e,0,0);let t=new Int32Array(new SharedArrayBuffer(e[1]+3-(e[1]+3)%4));_.postMessage(t),Atomics.wait(e,0,1),o=new Uint8Array(t.buffer,0,e[1]),_.terminate(),l.writeFileSync(s,o)}}catch(e){return console.log("Error fetching module",e),0}}else{let e=new XMLHttpRequest;if(e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),200!=e.status)return 0;o=e.response}WebAssembly.validate(o);for(var l=o.byteLength,c=_malloc(l+4),u=new Uint8Array(o),d=0;d{if(!e)return AL.alcErr=40964,1},2187063:e=>AL.currentCtx?e?void 0:(AL.currentCtx.err=40963,1):(err("alGetProcAddress() called without a valid context"),1)};function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit(".concat(e,")"),this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},terminateWorker=e=>{e.terminate(),e.onmessage=e=>{}},killThread=e=>{var t=PThread.pthreads[e];delete PThread.pthreads[e],terminateWorker(t),__emscripten_thread_free_data(e),PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(t),1),t.pthread_ptr=0},cancelThread=e=>{PThread.pthreads[e].postMessage({cmd:"cancel"})},cleanupThread=e=>{var t=PThread.pthreads[e];PThread.finishedThreads.delete(e),e in PThread.outstandingPromises&&PThread.outstandingPromises[e].resolve(),PThread.returnWorkerToPool(t)},zeroMemory=(e,t)=>(GROWABLE_HEAP_U8().fill(0,e,e+t),e),markAsFinished=e=>{PThread.finishedThreads.add(e),e in PThread.outstandingPromises&&PThread.outstandingPromises[e].resolve()},spawnThread=e=>{var t=PThread.getNewWorker();if(!t)return 6;PThread.runningWorkers.push(t),PThread.pthreads[e.pthread_ptr]=t,t.pthread_ptr=e.pthread_ptr;var r={cmd:"run",start_routine:e.startRoutine,arg:e.arg,pthread_ptr:e.pthread_ptr};return ENVIRONMENT_IS_NODE&&t.unref(),t.postMessage(r,e.transferList),0},runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),withStackSave=e=>{var t=stackSave(),r=e();return stackRestore(t),r},stackAlloc=e=>__emscripten_stack_alloc(e),convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN,proxyToMainThread=(e,t,r,...n)=>withStackSave((()=>{for(var i=n.length,a=stackAlloc(8*i),s=a>>>3,o=0;o>>0]=_}return __emscripten_run_on_main_thread_js(e,t,i,a,r)}));function _proc_exit(e){var t;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(0,0,1,e);EXITSTATUS=e,keepRuntimeAlive()||(PThread.terminateAllThreads(),null==(t=Module.onExit)||t.call(Module,e),ABORT=!0),quit_(e,new ExitStatus(e))}_proc_exit.sig="vi";var exitJS=(e,t)=>{if(EXITSTATUS=e,ENVIRONMENT_IS_PTHREAD)throw exitOnMainThread(e),"unwind";_proc_exit(e)},_exit=exitJS;_exit.sig="vi";var handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},PThread={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init(){ENVIRONMENT_IS_PTHREAD?PThread.initWorker():PThread.initMainThread()},initMainThread(){for(var e=4;e--;)PThread.allocateUnusedWorker();addOnPreRun((()=>{addRunDependency("loading-workers"),PThread.loadWasmModuleToAllWorkers((()=>removeRunDependency("loading-workers")))})),PThread.outstandingPromises={},PThread.finishedThreads=new Set},initWorker(){noExitRuntime=!1},setExitStatus:e=>EXITSTATUS=e,terminateAllThreads__deps:["$terminateWorker"],terminateAllThreads:()=>{for(var e of PThread.runningWorkers)terminateWorker(e);for(var e of PThread.unusedWorkers)terminateWorker(e);PThread.unusedWorkers=[],PThread.runningWorkers=[],PThread.pthreads=[]},returnWorkerToPool:e=>{var t=e.pthread_ptr;delete PThread.pthreads[t],PThread.unusedWorkers.push(e),PThread.runningWorkers.splice(PThread.runningWorkers.indexOf(e),1),e.pthread_ptr=0,__emscripten_thread_free_data(t)},receiveObjectTransfer(e){},threadInitTLS(){PThread.tlsInitFunctions.forEach((e=>e()))},loadWasmModuleToWorker:e=>new Promise((t=>{e.onmessage=r=>{var n=r.data,i=n.cmd;if(n.targetThread&&n.targetThread!=_pthread_self()){var a=PThread.pthreads[n.targetThread];a?a.postMessage(n,n.transferList):err('Internal error! Worker sent a message "'.concat(i,'" to target pthread ').concat(n.targetThread,", but that thread no longer exists!"))}else"checkMailbox"===i?checkMailbox():"spawnThread"===i?spawnThread(n):"cleanupThread"===i?cleanupThread(n.thread):"markAsFinished"===i?markAsFinished(n.thread):"killThread"===i?killThread(n.thread):"cancelThread"===i?cancelThread(n.thread):"loaded"===i?(e.loaded=!0,ENVIRONMENT_IS_NODE&&!e.pthread_ptr&&e.unref(),t(e)):"alert"===i?alert("Thread ".concat(n.threadId,": ").concat(n.text)):"setimmediate"===n.target?e.postMessage(n):"callHandler"===i?Module[n.handler](...n.args):i&&err("worker sent an unknown command ".concat(i))},e.onerror=e=>{throw err("".concat("worker sent an error!"," ").concat(e.filename,":").concat(e.lineno,": ").concat(e.message)),e},ENVIRONMENT_IS_NODE&&(e.on("message",(t=>e.onmessage({data:t}))),e.on("error",(t=>e.onerror(t))));var r=[];for(var n of["onExit","onAbort","print","printErr"])Module.hasOwnProperty(n)&&r.push(n);e.postMessage({cmd:"load",handlers:r,urlOrBlob:Module.mainScriptUrlOrBlob||_scriptDir,wasmMemory,wasmModule,sharedModules})})),loadWasmModuleToAllWorkers(e){if(ENVIRONMENT_IS_PTHREAD)return e();Promise.all(PThread.unusedWorkers.map(PThread.loadWasmModuleToWorker)).then(e)},allocateUnusedWorker(){var e,t=locateFile("duckdb_wasm.worker.js");e=new Worker(t),PThread.unusedWorkers.push(e)},getNewWorker:()=>(0==PThread.unusedWorkers.length&&(PThread.allocateUnusedWorker(),PThread.loadWasmModuleToWorker(PThread.unusedWorkers[0])),PThread.unusedWorkers.pop())};Module.PThread=PThread;var callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},establishStackSpace=()=>{var e=_pthread_self(),t=GROWABLE_HEAP_U32()[e+52>>>2>>>0],r=GROWABLE_HEAP_U32()[e+56>>>2>>>0];_emscripten_stack_set_limits(t,t-r),stackRestore(t)};function exitOnMainThread(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(1,0,0,e);_exit(e)}Module.establishStackSpace=establishStackSpace;var UTF8Decoder=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=(t>>>=0)+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.slice(t,i));for(var a="";t>10,56320|1023&l)}}else a+=String.fromCharCode((31&s)<<6|o)}else a+=String.fromCharCode(s)}return a},getDylinkMetadata=e=>{var t=0,r=0;function n(){for(var r=0,n=1;;){var i=e[t++];if(r+=(127&i)*n,n*=128,!(128&i))break}return r}function i(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function a(e,t){if(e)throw new Error(t)}var s="dylink.0";if(e instanceof WebAssembly.Module){var o=WebAssembly.Module.customSections(e,s);0===o.length&&(s="dylink",o=WebAssembly.Module.customSections(e,s)),a(0===o.length,"need dylink section"),r=(e=new Uint8Array(o[0])).length}else{a(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),a(0!==e[8],"need the dylink section to be first"),t=9;var _=n();r=t+_,s=i()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==s){l.memorySize=n(),l.memoryAlign=n(),l.tableSize=n(),l.tableAlign=n();for(var c=n(),u=0;u>>0];case"i16":return GROWABLE_HEAP_I16()[e>>>1>>>0];case"i32":return GROWABLE_HEAP_I32()[e>>>2>>>0];case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return GROWABLE_HEAP_F32()[e>>>2>>>0];case"double":return GROWABLE_HEAP_F64()[e>>>3>>>0];case"*":return GROWABLE_HEAP_U32()[e>>>2>>>0];default:abort("invalid type for getValue: ".concat(t))}}var wasmTable=new WebAssembly.Table({initial:24658,element:"anyfunc"}),getWasmTableEntry=e=>wasmTable.get(e),invokeEntryPoint=(e,t)=>{var r;runtimeKeepaliveCounter=0,__emscripten_dlsync_self(),r=getWasmTableEntry(e)(t),keepRuntimeAlive()?PThread.setExitStatus(r):__emscripten_thread_exit(r)};Module.invokeEntryPoint=invokeEntryPoint;var newDSO=(e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,null!=t&&(LDSO.loadedLibsByHandle[t]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=2325024,alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n{var r=e.slice(0,1),n=e.slice(1),i={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var a=0;a{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push(...r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var i=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(i,{e:{f:e}}).exports.f},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){throw e instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":e}return wasmTable.length-1},setWasmTableEntry=(e,t)=>wasmTable.set(e,t),addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,i)}return functionsInTableMap.set(e,n),n},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||(GOT[r]=new WebAssembly.Global({value:"i32",mutable:!0})),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err("unhandled export type for '".concat(r,"': ").concat(typeof n)))}},relocateExports=(e,t,r)=>{var n={};for(var i in e){var a=e[i];"object"==typeof a&&(a=a.value),"number"==typeof a&&(a+=t),n[i]=a}return updateGOT(n,r),n},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)&&(r=wasmImports[e]),{sym:r,name:e}},UTF8ToString=(e,t)=>(e>>>=0)?UTF8ArrayToString(GROWABLE_HEAP_U8(),e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!GROWABLE_HEAP_I8()[handle+8>>>0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(GROWABLE_HEAP_I8()[handle+8>>>0]=1,GROWABLE_HEAP_U32()[handle+12>>>2>>>0]=memoryBase,GROWABLE_HEAP_I32()[handle+16>>>2>>>0]=metadata.memorySize,GROWABLE_HEAP_U32()[handle+20>>>2>>>0]=tableBase,GROWABLE_HEAP_I32()[handle+24>>>2>>>0]=metadata.tableSize)}else memoryBase=GROWABLE_HEAP_U32()[handle+12>>>2>>>0],tableBase=GROWABLE_HEAP_U32()[handle+20>>>2>>>0];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){if(t.startsWith("invoke_"))return createDyncallWrapper(t.substring(7));switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return t in wasmImports&&!wasmImports[t].stub?wasmImports[t]:(t in e||(e[t]=(...e)=>(r||(r=resolveSymbol(t)),r(...e))),e[t]);var r}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func="(".concat(args,") => { ").concat(body," };");ASM_CONSTS[start]=eval(func)}if(!ENVIRONMENT_IS_PTHREAD&&libName&&(sharedModules[libName]=module),updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start ").concat(body,";");moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}if(registerTLSInit(moduleExports._emscripten_tls_init,instance.exports,metadata),firstLoad){var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;init&&(runtimeInitialized?init():__ATINIT__.push(init))}return moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,n]of Object.entries(e))isSymbolDefined(i=r)||(wasmImports[i]=n),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=n);var i},asyncLoad=(e,t,r,n)=>{var i=n?"":"al ".concat(e);readAsync(e,(e=>{t(new Uint8Array(e)),i&&removeRunDependency(i)}),(t=>{if(!r)throw'Loading data file "'.concat(e,'" failed.');r()})),i&&addRunDependency(i)},preloadPlugins=Module.preloadPlugins||[],registerWasmPlugin=()=>{var e={promiseChainEnd:Promise.resolve(),canHandle:e=>!Module.noWasmDecoding&&e.endsWith(".so"),handle:(t,r,n,i)=>{e.promiseChainEnd=e.promiseChainEnd.then((()=>loadWebAssemblyModule(t,{loadAsync:!0,nodelete:!0},r))).then((e=>{preloadedWasm[r]=e,n(t)}),(e=>{err("failed to instantiate wasm: ".concat(r,": ").concat(e)),i()}))}};preloadPlugins.push(e)},preloadedWasm={};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var i=LDSO.loadedLibsByName[e];if(i)return t.global?i.global||(i.global=!0,mergeLibSymbols(i.exports,e)):r&&Object.assign(r,i.exports),t.nodelete&&i.refcount!==1/0&&(i.refcount=1/0),i.refcount++,n&&(LDSO.loadedLibsByHandle[n]=i),!t.loadAsync||Promise.resolve(!0);function a(){var r=sharedModules[e];if(r)return t.loadAsync?Promise.resolve(r):r;if(n){var i=GROWABLE_HEAP_U32()[n+28>>>2>>>0],a=GROWABLE_HEAP_U32()[n+32>>>2>>>0];if(i&&a){var s=GROWABLE_HEAP_I8().slice(i,i+a);return t.loadAsync?Promise.resolve(s):s}}var o=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(o,e,t)}));if(!readBinary)throw new Error("".concat(o,": file not found, and synchronous loading of external files is not available"));return readBinary(o)}function s(){var i=preloadedWasm[e];return i?t.loadAsync?Promise.resolve(i):i:t.loadAsync?a().then((i=>loadWebAssemblyModule(i,t,e,r,n))):loadWebAssemblyModule(a(),t,e,r,n)}function o(t){i.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),i.exports=t}return(i=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,i.global=t.global,t.loadAsync?s().then((e=>(o(e),!0))):(o(s()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error("bad export type for '".concat(e,"': ").concat(typeof r));t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0,registerTLSInit=(e,t,r)=>{function n(){var n=e();if(n){var i={};r.tlsExports.forEach((e=>i[e]=t[e])),relocateExports(i,n,!0)}}PThread.tlsInitFunctions.push(n),runtimeInitialized&&n()};function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":GROWABLE_HEAP_I8()[e>>>0]=t;break;case"i16":GROWABLE_HEAP_I16()[e>>>1>>>0]=t;break;case"i32":GROWABLE_HEAP_I32()[e>>>2>>>0]=t;break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":GROWABLE_HEAP_F32()[e>>>2>>>0]=t;break;case"double":GROWABLE_HEAP_F64()[e>>>3>>>0]=t;break;case"*":GROWABLE_HEAP_U32()[e>>>2>>>0]=t;break;default:abort("invalid type for setValue: ".concat(r))}}function __ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm(...e){return wasmImports._ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm(...e)}function ___assert_fail(e,t,r,n){t>>>=0,n>>>=0,abort("Assertion failed: ".concat(UTF8ToString(e>>>=0),", at: ")+[t?UTF8ToString(t):"unknown filename",r,n?UTF8ToString(n):"unknown function"])}__ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm.stub=!0,___assert_fail.sig="vppip";var ___c_longjmp=new WebAssembly.Tag({parameters:["i32"]});function ___call_sighandler(e,t){return getWasmTableEntry(e>>>=0)(t)}___call_sighandler.sig="vpi";var ___cpp_exception=new WebAssembly.Tag({parameters:["i32"]});function ___emscripten_init_main_thread_js(e){__emscripten_thread_init(e>>>=0,!ENVIRONMENT_IS_WORKER,1,!ENVIRONMENT_IS_WEB,65536,!1),PThread.threadInitTLS()}function ___emscripten_thread_cleanup(e){e>>>=0,ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"cleanupThread",thread:e}):cleanupThread(e)}___emscripten_init_main_thread_js.sig="vp",___emscripten_thread_cleanup.sig="vp";var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024);function pthreadCreateProxied(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(2,0,1,e,t,r,n):___pthread_create_js(e,t,r,n)}function ___pthread_create_js(e,t,r,n){if(e>>>=0,t>>>=0,r>>>=0,n>>>=0,typeof SharedArrayBuffer>"u")return err("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var i=[];if(ENVIRONMENT_IS_PTHREAD&&0===i.length)return pthreadCreateProxied(e,t,r,n);var a={startRoutine:r,pthread_ptr:e,arg:n,transferList:i};return ENVIRONMENT_IS_PTHREAD?(a.cmd="spawnThread",postMessage(a,i),0):spawnThread(a)}function ___pthread_kill_js(e,t){return e>>>=0,33===t?ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"cancelThread",thread:e}):cancelThread(e):ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"killThread",thread:e}):killThread(e),0}___pthread_create_js.sig="ipppp",___pthread_kill_js.sig="ipi";var ___stack_high=2325024,___stack_low=2259488,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},2325024),PATH={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),r="/"===e.substr(-1);return!(e=PATH.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=PATH.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:(...e)=>PATH.normalize(e.join("/")),join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>(e.set(crypto.getRandomValues(new Uint8Array(e.byteLength))),e);if(ENVIRONMENT_IS_NODE)try{var e=xn("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:(...e)=>{for(var t="",r=!1,n=e.length-1;n>=-1&&!r;n--){var i=n>=0?e[n]:FS.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";t=i+"/"+t,r=PATH.isAbs(i)}return(r?"/":"")+(t=PATH.normalizeArray(t.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),a=Math.min(n.length,i.length),s=a,o=0;o{for(var t=0,r=0;r=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var i=r>>>=0,a=r+n-1,s=0;s=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++s)),o<=127){if(r>=a)break;t[r++>>>0]=o}else if(o<=2047){if(r+1>=a)break;t[r++>>>0]=192|o>>6,t[r++>>>0]=128|63&o}else if(o<=65535){if(r+2>=a)break;t[r++>>>0]=224|o>>12,t[r++>>>0]=128|o>>6&63,t[r++>>>0]=128|63&o}else{if(r+3>=a)break;t[r++>>>0]=240|o>>18,t[r++>>>0]=128|o>>12&63,t[r++>>>0]=128|o>>6&63,t[r++>>>0]=128|63&o}}return t[r>>>0]=0,r-i};function intArrayFromString(e,t,r){var n=r>0?r:lengthBytesUTF8(e)+1,i=new Array(n),a=stringToUTF8Array(e,i,0,i.length);return t&&(i.length=a),i}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if(ENVIRONMENT_IS_NODE){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=fs.readSync(n,t)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}e=r>0?t.slice(0,r).toString("utf-8"):null}else typeof window<"u"&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n");if(!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,t){TTY.ttys[e]={input:[],output:[],ops:t},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var t=TTY.ttys[e.node.rdev];if(!t)throw new FS.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,i){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var a=0,s=0;sFS_stdin_getChar(),put_char(e,t){null===t||10===t?(out(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(e.output,0)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(err(UTF8ArrayToString(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output,0)),e.output=[])}}},mmapAlloc=e=>{e=alignMemory(e,65536);var t=_emscripten_builtin_memalign(65536,e);return t?zeroMemory(t,e):0},MEMFS={ops_table:null,mount:e=>MEMFS.createNode(null,"/",16895,0),createNode(e,t,r,n){if(FS.isBlkdev(r)||FS.isFIFO(r))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var i=FS.createNode(e,t,r,n);return FS.isDir(i.mode)?(i.node_ops=MEMFS.ops_table.dir.node,i.stream_ops=MEMFS.ops_table.dir.stream,i.contents={}):FS.isFile(i.mode)?(i.node_ops=MEMFS.ops_table.file.node,i.stream_ops=MEMFS.ops_table.file.stream,i.usedBytes=0,i.contents=null):FS.isLink(i.mode)?(i.node_ops=MEMFS.ops_table.link.node,i.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(i.mode)&&(i.node_ops=MEMFS.ops_table.chrdev.node,i.stream_ops=MEMFS.ops_table.chrdev.stream),i.timestamp=Date.now(),e&&(e.contents[t]=i,e.timestamp=i.timestamp),i},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=FS.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,FS.isDir(e.mode)?t.size=4096:FS.isFile(e.mode)?t.size=e.usedBytes:FS.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&MEMFS.resizeFileStorage(e,t.size)},lookup(e,t){throw FS.genericErrors[44]},mknod:(e,t,r,n)=>MEMFS.createNode(e,t,r,n),rename(e,t,r){if(FS.isDir(e.mode)){var n;try{n=FS.lookupNode(t,r)}catch(e){}if(n)for(var i in n.contents)throw new FS.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=FS.lookupNode(e,t);for(var n in r.contents)throw new FS.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r of Object.keys(e.contents))t.push(r);return t},symlink(e,t,r){var n=MEMFS.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,i){var a=e.node.contents;if(i>=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-i,n);if(s>8&&a.subarray)t.set(a.subarray(i,i+s),r);else for(var o=0;o0||r+t>>0)}else s=!1,a=o.byteOffset;return{ptr:a,allocated:s}},msync:(e,t,r,n,i)=>(MEMFS.stream_ops.write(e,t,0,n,r,!1),0)}},FS_createDataFile=(e,t,r,n,i,a)=>{FS.createDataFile(e,t,r,n,i,a)},FS_handledByPreloadPlugin=(e,t,r,n)=>{typeof Browser<"u"&&Browser.init();var i=!1;return preloadPlugins.forEach((a=>{i||a.canHandle(t)&&(a.handle(e,t,r,n),i=!0)})),i},FS_createPreloadedFile=(e,t,r,n,i,a,s,o,_,l)=>{var c=t?PATH_FS.resolve(PATH.join2(e,t)):e,u="cp ".concat(c);function d(r){function d(r){null==l||l(),o||FS_createDataFile(e,t,r,n,i,_),null==a||a(),removeRunDependency(u)}FS_handledByPreloadPlugin(r,c,d,(()=>{null==s||s(),removeRunDependency(u)}))||d(r)}addRunDependency(u),"string"==typeof r?asyncLoad(r,d,s):d(r)},FS_modeStringToFlags=e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(typeof t>"u")throw new Error("Unknown file open mode: ".concat(e));return t},FS_getMode=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(e){this.name="ErrnoError",this.errno=e}},genericErrors:{},filesystems:null,syncFSRequests:0,FSStream:class{constructor(){this.shared={}}get object(){return this.node}set object(e){this.node=e}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return 0!=(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{constructor(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=FS.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n,this.readMode=365,this.writeMode=146}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return FS.isDir(this.mode)}get isDevice(){return FS.isChrdev(this.mode)}},lookupPath(e,t={}){if(!(e=PATH_FS.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new FS.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),n=FS.root,i="/",a=0;a40)throw new FS.ErrnoError(32)}}return{path:i,node:n}},getPath(e){for(var t;;){if(FS.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?"".concat(r,"/").concat(t):r+t:r}t=t?"".concat(e.name,"/").concat(t):e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n>>0)%FS.nameTable.length},hashAddNode(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var r=FS.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=FS.mayLookup(e);if(r)throw new FS.ErrnoError(r);for(var n=FS.hashName(e.id,t),i=FS.nameTable[n];i;i=i.name_next){var a=i.name;if(i.parent.id===e.id&&a===t)return i}return FS.lookup(e,t)},createNode(e,t,r,n){var i=new FS.FSNode(e,t,r,n);return FS.hashAddNode(i),i},destroyNode(e){FS.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>FS.ignorePermissions?0:t.includes("r")&&!(292&e.mode)||t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0,mayLookup:e=>FS.isDir(e.mode)?FS.nodePermissions(e,"x")||(e.node_ops.lookup?0:2):54,mayCreate(e,t){try{return FS.lookupNode(e,t),20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=FS.lookupNode(e,t)}catch(e){return e.errno}var i=FS.nodePermissions(e,"wx");if(i)return i;if(r){if(!FS.isDir(n.mode))return 54;if(FS.isRoot(n)||FS.getPath(n)===FS.cwd())return 10}else if(FS.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(t)||512&t)?31:FS.nodePermissions(e,FS.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},getStream:e=>FS.streams[e],createStream:(e,t=-1)=>(e=Object.assign(new FS.FSStream,e),-1==t&&(t=FS.nextfd()),e.fd=t,FS.streams[t]=e,e),closeStream(e){FS.streams[e]=null},dupStream(e,t=-1){var r,n,i=FS.createStream(e,t);return null==(n=null==(r=i.stream_ops)?void 0:r.dup)||n.call(r,i),i},chrdev_stream_ops:{open(e){var t,r,n=FS.getDevice(e.node.rdev);e.stream_ops=n.stream_ops,null==(r=(t=e.stream_ops).open)||r.call(t,e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){FS.devices[e]={stream_ops:t}},getDevice:e=>FS.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push(...n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),FS.syncFSRequests++,FS.syncFSRequests>1&&err("warning: ".concat(FS.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var r=FS.getMounts(FS.root.mount),n=0;function i(e){return FS.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,i(e));++n>=r.length&&i(null)}r.forEach((t=>{if(!t.type.syncfs)return a(null);t.type.syncfs(t,e,a)}))},mount(e,t,r){var n,i="/"===r,a=!r;if(i&&FS.root)throw new FS.ErrnoError(10);if(!i&&!a){var s=FS.lookupPath(r,{follow_mount:!1});if(r=s.path,n=s.node,FS.isMountpoint(n))throw new FS.ErrnoError(10);if(!FS.isDir(n.mode))throw new FS.ErrnoError(54)}var o={type:e,opts:t,mountpoint:r,mounts:[]},_=e.mount(o);return _.mount=o,o.root=_,i?FS.root=_:n&&(n.mounted=o,n.mount&&n.mount.mounts.push(o)),_},unmount(e){var t=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(t.node))throw new FS.ErrnoError(28);var r=t.node,n=r.mounted,i=FS.getMounts(n);Object.keys(FS.nameTable).forEach((e=>{for(var t=FS.nameTable[e];t;){var r=t.name_next;i.includes(t.mount)&&FS.destroyNode(t),t=r}})),r.mounted=null;var a=r.mount.mounts.indexOf(n);r.mount.mounts.splice(a,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=FS.lookupPath(e,{parent:!0}).node,i=PATH.basename(e);if(!i||"."===i||".."===i)throw new FS.ErrnoError(28);var a=FS.mayCreate(n,i);if(a)throw new FS.ErrnoError(a);if(!n.node_ops.mknod)throw new FS.ErrnoError(63);return n.node_ops.mknod(n,i,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,FS.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,FS.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",i=0;i(typeof r>"u"&&(r=t,t=438),t|=8192,FS.mknod(e,t,r)),symlink(e,t){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var r=FS.lookupPath(t,{parent:!0}).node;if(!r)throw new FS.ErrnoError(44);var n=PATH.basename(t),i=FS.mayCreate(r,n);if(i)throw new FS.ErrnoError(i);if(!r.node_ops.symlink)throw new FS.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,i=PATH.dirname(e),a=PATH.dirname(t),s=PATH.basename(e),o=PATH.basename(t);if(r=FS.lookupPath(e,{parent:!0}).node,n=FS.lookupPath(t,{parent:!0}).node,!r||!n)throw new FS.ErrnoError(44);if(r.mount!==n.mount)throw new FS.ErrnoError(75);var _,l=FS.lookupNode(r,s),c=PATH_FS.relative(e,a);if("."!==c.charAt(0))throw new FS.ErrnoError(28);if("."!==(c=PATH_FS.relative(t,i)).charAt(0))throw new FS.ErrnoError(55);try{_=FS.lookupNode(n,o)}catch(e){}if(l!==_){var u=FS.isDir(l.mode),d=FS.mayDelete(r,s,u);if(d)throw new FS.ErrnoError(d);if(d=_?FS.mayDelete(n,o,u):FS.mayCreate(n,o))throw new FS.ErrnoError(d);if(!r.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(l)||_&&FS.isMountpoint(_))throw new FS.ErrnoError(10);if(n!==r&&(d=FS.nodePermissions(r,"w")))throw new FS.ErrnoError(d);FS.hashRemoveNode(l);try{r.node_ops.rename(l,n,o)}catch(e){throw e}finally{FS.hashAddNode(l)}}},rmdir(e){var t=FS.lookupPath(e,{parent:!0}).node,r=PATH.basename(e),n=FS.lookupNode(t,r),i=FS.mayDelete(t,r,!0);if(i)throw new FS.ErrnoError(i);if(!t.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.rmdir(t,r),FS.destroyNode(n)},readdir(e){var t=FS.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new FS.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=FS.lookupPath(e,{parent:!0}).node;if(!t)throw new FS.ErrnoError(44);var r=PATH.basename(e),n=FS.lookupNode(t,r),i=FS.mayDelete(t,r,!1);if(i)throw new FS.ErrnoError(i);if(!t.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.unlink(t,r),FS.destroyNode(n)},readlink(e){var t=FS.lookupPath(e).node;if(!t)throw new FS.ErrnoError(44);if(!t.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=FS.lookupPath(e,{follow:!t}).node;if(!r)throw new FS.ErrnoError(44);if(!r.node_ops.getattr)throw new FS.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>FS.stat(e,!0),chmod(e,t,r){var n;if(!(n="string"==typeof e?FS.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){FS.chmod(e,t,!0)},fchmod(e,t){var r=FS.getStreamChecked(e);FS.chmod(r.node,t)},chown(e,t,r,n){var i;if(!(i="string"==typeof e?FS.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);i.node_ops.setattr(i,{timestamp:Date.now()})},lchown(e,t,r){FS.chown(e,t,r,!0)},fchown(e,t,r){var n=FS.getStreamChecked(e);FS.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new FS.ErrnoError(28);var r;if(!(r="string"==typeof e?FS.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(r.mode))throw new FS.ErrnoError(31);if(!FS.isFile(r.mode))throw new FS.ErrnoError(28);var n=FS.nodePermissions(r,"w");if(n)throw new FS.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=FS.getStreamChecked(e);if(!(2097155&r.flags))throw new FS.ErrnoError(28);FS.truncate(r.node,t)},utime(e,t,r){var n=FS.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new FS.ErrnoError(44);var n;if(r=typeof r>"u"?438:r,r=64&(t="string"==typeof t?FS_modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)n=e;else{e=PATH.normalize(e);try{n=FS.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var i=!1;if(64&t)if(n){if(128&t)throw new FS.ErrnoError(20)}else n=FS.mknod(e,r,0),i=!0;if(!n)throw new FS.ErrnoError(44);if(FS.isChrdev(n.mode)&&(t&=-513),65536&t&&!FS.isDir(n.mode))throw new FS.ErrnoError(54);if(!i){var a=FS.mayOpen(n,t);if(a)throw new FS.ErrnoError(a)}512&t&&!i&&FS.truncate(n,0),t&=-131713;var s=FS.createStream({node:n,path:FS.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),Module.logReadFiles&&!(1&t)&&(FS.readFiles||(FS.readFiles={}),e in FS.readFiles||(FS.readFiles[e]=1)),s},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{FS.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,i){if(n<0||i<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(1==(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var a=typeof i<"u";if(a){if(!e.seekable)throw new FS.ErrnoError(70)}else i=e.position;var s=e.stream_ops.read(e,t,r,n,i);return a||(e.position+=s),s},write(e,t,r,n,i,a){if(n<0||i<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var s=typeof i<"u";if(s){if(!e.seekable)throw new FS.ErrnoError(70)}else i=e.position;var o=e.stream_ops.write(e,t,r,n,i,a);return s||(e.position+=o),o},allocate(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(t<0||r<=0)throw new FS.ErrnoError(28);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,i){if(2&n&&!(2&i)&&2!=(2097155&e.flags))throw new FS.ErrnoError(2);if(1==(2097155&e.flags))throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,i)},msync:(e,t,r,n,i)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,i):0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'.concat(t.encoding,'"'));var r,n=FS.open(e,t.flags),i=FS.stat(e).size,a=new Uint8Array(i);return FS.read(n,a,0,i,0),"utf8"===t.encoding?r=UTF8ArrayToString(a,0):"binary"===t.encoding&&(r=a),FS.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=FS.open(e,r.flags,r.mode);if("string"==typeof t){var i=new Uint8Array(lengthBytesUTF8(t)+1),a=stringToUTF8Array(t,i,0,i.length);FS.write(n,i,0,a,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");FS.write(n,t,0,t.byteLength,void 0,r.canOwn)}FS.close(n)},cwd:()=>FS.currentPath,chdir(e){var t=FS.lookupPath(e,{follow:!0});if(null===t.node)throw new FS.ErrnoError(44);if(!FS.isDir(t.node.mode))throw new FS.ErrnoError(54);var r=FS.nodePermissions(t.node,"x");if(r)throw new FS.ErrnoError(r);FS.currentPath=t.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,t,r,n,i)=>n}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=randomFill(e).byteLength),e[--t]);FS.createDevice("/dev","random",r),FS.createDevice("/dev","urandom",r),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var t=FS.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=FS.getStreamChecked(r),i={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return i.parent=i,i}},t}},{},"/proc/self/fd")},createStandardStreams(){Module.stdin?FS.createDevice("/dev","stdin",Module.stdin):FS.symlink("/dev/tty","/dev/stdin"),Module.stdout?FS.createDevice("/dev","stdout",null,Module.stdout):FS.symlink("/dev/tty","/dev/stdout"),Module.stderr?FS.createDevice("/dev","stderr",null,Module.stderr):FS.symlink("/dev/tty1","/dev/stderr"),FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},staticInit(){[44].forEach((e=>{FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack=""})),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS}},init(e,t,r){FS.init.initialized=!0,Module.stdin=e||Module.stdin,Module.stdout=t||Module.stdout,Module.stderr=r||Module.stderr,FS.createStandardStreams()},quit(){FS.init.initialized=!1,_fflush(0);for(var e=0;ethis.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}}setDataGetter(e){this.getter=e}cacheLength(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),i=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,a=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,s=1048576;i||(s=n);var o=this;o.setDataGetter((e=>{var t=e*s,i=(e+1)*s-1;if(i=Math.min(i,n-1),typeof o.chunks[e]>"u"&&(o.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",r,!1),n!==s&&i.setRequestHeader("Range","bytes="+e+"-"+t),i.responseType="arraybuffer",i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+r+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):intArrayFromString(i.responseText||"",!0)})(t,i)),typeof o.chunks[e]>"u")throw new Error("doXHR failed!");return o.chunks[e]})),(a||!n)&&(s=n=1,n=this.getter(0).length,s=n,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=s,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s={isDevice:!1,contents:new a}}else s={isDevice:!1,url:r};var o=FS.createFile(e,t,s,n,i);s.contents?o.contents=s.contents:s.url&&(o.contents=null,o.url=s.url),Object.defineProperties(o,{usedBytes:{get:function(){return this.contents.length}}});var _={};function l(e,t,r,n,i){var a=e.node.contents;if(i>=a.length)return 0;var s=Math.min(a.length-i,n);if(a.slice)for(var o=0;o{var t=o.stream_ops[e];_[e]=(...e)=>(FS.forceLoadFile(o),t(...e))})),_.read=(e,t,r,n,i)=>(FS.forceLoadFile(o),l(e,t,r,n,i)),_.mmap=(e,t,r,n,i)=>{FS.forceLoadFile(o);var a=mmapAlloc(t);if(!a)throw new FS.ErrnoError(48);return l(e,GROWABLE_HEAP_I8(),a,t,r),{ptr:a,allocated:!0}},o.stream_ops=_,o}},SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(PATH.isAbs(t))return t;var n;if(n=-100===e?FS.cwd():SYSCALLS.getStreamFromFD(e).path,0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat(e,t,r){var n=e(t);GROWABLE_HEAP_I32()[r>>>2>>>0]=n.dev,GROWABLE_HEAP_I32()[r+4>>>2>>>0]=n.mode,GROWABLE_HEAP_U32()[r+8>>>2>>>0]=n.nlink,GROWABLE_HEAP_I32()[r+12>>>2>>>0]=n.uid,GROWABLE_HEAP_I32()[r+16>>>2>>>0]=n.gid,GROWABLE_HEAP_I32()[r+20>>>2>>>0]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+24>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+28>>>2>>>0]=tempI64[1],GROWABLE_HEAP_I32()[r+32>>>2>>>0]=4096,GROWABLE_HEAP_I32()[r+36>>>2>>>0]=n.blocks;var i=n.atime.getTime(),a=n.mtime.getTime(),s=n.ctime.getTime();return tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+40>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+44>>>2>>>0]=tempI64[1],GROWABLE_HEAP_U32()[r+48>>>2>>>0]=i%1e3*1e3,tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+56>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+60>>>2>>>0]=tempI64[1],GROWABLE_HEAP_U32()[r+64>>>2>>>0]=a%1e3*1e3,tempI64=[Math.floor(s/1e3)>>>0,(tempDouble=Math.floor(s/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+72>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+76>>>2>>>0]=tempI64[1],GROWABLE_HEAP_U32()[r+80>>>2>>>0]=s%1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[r+88>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[r+92>>>2>>>0]=tempI64[1],0},doMsync(e,t,r,n,i){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var a=GROWABLE_HEAP_U8().slice(e,e+r);FS.msync(t,a,i,r,n)},getStreamFromFD:e=>FS.getStreamChecked(e),varargs:void 0,getStr:e=>UTF8ToString(e)};function ___syscall__newselect(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(3,0,1,e,t,r,n,i);t>>>=0,r>>>=0,n>>>=0,i>>>=0;try{for(var a=0,s=t?GROWABLE_HEAP_I32()[t>>>2>>>0]:0,o=t?GROWABLE_HEAP_I32()[t+4>>>2>>>0]:0,_=r?GROWABLE_HEAP_I32()[r>>>2>>>0]:0,l=r?GROWABLE_HEAP_I32()[r+4>>>2>>>0]:0,c=n?GROWABLE_HEAP_I32()[n>>>2>>>0]:0,u=n?GROWABLE_HEAP_I32()[n+4>>>2>>>0]:0,d=0,p=0,m=0,f=0,h=0,g=0,v=(t?GROWABLE_HEAP_I32()[t>>>2>>>0]:0)|(r?GROWABLE_HEAP_I32()[r>>>2>>>0]:0)|(n?GROWABLE_HEAP_I32()[n>>>2>>>0]:0),E=(t?GROWABLE_HEAP_I32()[t+4>>>2>>>0]:0)|(r?GROWABLE_HEAP_I32()[r+4>>>2>>>0]:0)|(n?GROWABLE_HEAP_I32()[n+4>>>2>>>0]:0),y=function(e,t,r,n){return e<32?t&n:r&n},b=0;b>>2>>>0]:0)+(t?GROWABLE_HEAP_I32()[i+4>>>2>>>0]:0)/1e6)),L=A.stream_ops.poll(A,w)}1&L&&y(b,s,o,S)&&(b<32?d|=S:p|=S,a++),4&L&&y(b,_,l,S)&&(b<32?m|=S:f|=S,a++),2&L&&y(b,c,u,S)&&(b<32?h|=S:g|=S,a++)}}return t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=d,GROWABLE_HEAP_I32()[t+4>>>2>>>0]=p),r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=m,GROWABLE_HEAP_I32()[r+4>>>2>>>0]=f),n&&(GROWABLE_HEAP_I32()[n>>>2>>>0]=h,GROWABLE_HEAP_I32()[n+4>>>2>>>0]=g),a}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall__newselect.sig="iipppp";var SOCKFS={mount:e=>(Module.websocket=Module.websocket&&"object"==typeof Module.websocket?Module.websocket:{},Module.websocket._callbacks={},Module.websocket.on=function(e,t){return"function"==typeof t&&(this._callbacks[e]=t),this},Module.websocket.emit=function(e,t){"function"==typeof this._callbacks[e]&&this._callbacks[e].call(this,t)},FS.createNode(null,"/",16895,0)),createSocket(e,t,r){if(1==(t&=-526337)&&r&&6!=r)throw new FS.ErrnoError(66);var n={family:e,type:t,protocol:r,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops},i=SOCKFS.nextname(),a=FS.createNode(SOCKFS.root,i,49152,0);a.sock=n;var s=FS.createStream({path:i,node:a,flags:2,seekable:!1,stream_ops:SOCKFS.stream_ops});return n.stream=s,n},getSocket(e){var t=FS.getStream(e);return t&&FS.isSocket(t.node.mode)?t.node.sock:null},stream_ops:{poll(e){var t=e.node.sock;return t.sock_ops.poll(t)},ioctl(e,t,r){var n=e.node.sock;return n.sock_ops.ioctl(n,t,r)},read(e,t,r,n,i){var a=e.node.sock,s=a.sock_ops.recvmsg(a,n);return s?(t.set(s.buffer,r),s.buffer.length):0},write(e,t,r,n,i){var a=e.node.sock;return a.sock_ops.sendmsg(a,t,r,n)},close(e){var t=e.node.sock;t.sock_ops.close(t)}},nextname:()=>(SOCKFS.nextname.current||(SOCKFS.nextname.current=0),"socket["+SOCKFS.nextname.current+++"]"),websocket_sock_ops:{createPeer(e,t,r){var n;if("object"==typeof t&&(n=t,t=null,r=null),n)if(n._socket)t=n._socket.remoteAddress,r=n._socket.remotePort;else{var i=/ws[s]?:\/\/([^:]+):(\d+)/.exec(n.url);if(!i)throw new Error("WebSocket URL must be in the format ws(s)://address:port");t=i[1],r=parseInt(i[2],10)}else try{var a=Module.websocket&&"object"==typeof Module.websocket,s="ws:#".replace("#","//");if(a&&"string"==typeof Module.websocket.url&&(s=Module.websocket.url),"ws://"===s||"wss://"===s){var o=t.split("/");s=s+o[0]+":"+r+"/"+o.slice(1).join("/")}var _="binary";a&&"string"==typeof Module.websocket.subprotocol&&(_=Module.websocket.subprotocol);var l=void 0;"null"!==_&&(l=_=_.replace(/^ +| +$/g,"").split(/ *, */)),a&&null===Module.websocket.subprotocol&&(_="null",l=void 0),(n=new(ENVIRONMENT_IS_NODE?Lo():WebSocket)(s,l)).binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(23)}var c={addr:t,port:r,socket:n,dgram_send_queue:[]};return SOCKFS.websocket_sock_ops.addPeer(e,c),SOCKFS.websocket_sock_ops.handlePeerEvents(e,c),2===e.type&&typeof e.sport<"u"&&c.dgram_send_queue.push(new Uint8Array([255,255,255,255,112,111,114,116,(65280&e.sport)>>8,255&e.sport])),c},getPeer:(e,t,r)=>e.peers[t+":"+r],addPeer(e,t){e.peers[t.addr+":"+t.port]=t},removePeer(e,t){delete e.peers[t.addr+":"+t.port]},handlePeerEvents(e,t){var r=!0,n=function(){Module.websocket.emit("open",e.stream.fd);try{for(var r=t.dgram_send_queue.shift();r;)t.socket.send(r),r=t.dgram_send_queue.shift()}catch(e){t.socket.close()}};function i(n){if("string"==typeof n)n=(new TextEncoder).encode(n);else{if(assert(void 0!==n.byteLength),0==n.byteLength)return;n=new Uint8Array(n)}var i=r;if(r=!1,i&&10===n.length&&255===n[0]&&255===n[1]&&255===n[2]&&255===n[3]&&112===n[4]&&111===n[5]&&114===n[6]&&116===n[7]){var a=n[8]<<8|n[9];return SOCKFS.websocket_sock_ops.removePeer(e,t),t.port=a,void SOCKFS.websocket_sock_ops.addPeer(e,t)}e.recv_queue.push({addr:t.addr,port:t.port,data:n}),Module.websocket.emit("message",e.stream.fd)}ENVIRONMENT_IS_NODE?(t.socket.on("open",n),t.socket.on("message",(function(e,t){t&&i(new Uint8Array(e).buffer)})),t.socket.on("close",(function(){Module.websocket.emit("close",e.stream.fd)})),t.socket.on("error",(function(t){e.error=14,Module.websocket.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])}))):(t.socket.onopen=n,t.socket.onclose=function(){Module.websocket.emit("close",e.stream.fd)},t.socket.onmessage=function(e){i(e.data)},t.socket.onerror=function(t){e.error=14,Module.websocket.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})},poll(e){if(1===e.type&&e.server)return e.pending.length?65:0;var t=0,r=1===e.type?SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport):null;return(e.recv_queue.length||!r||r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(t|=65),(!r||r&&r.socket.readyState===r.socket.OPEN)&&(t|=4),(r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(t|=16),t},ioctl(e,t,r){if(21531===t){var n=0;return e.recv_queue.length&&(n=e.recv_queue[0].data.length),GROWABLE_HEAP_I32()[r>>>2>>>0]=n,0}return 28},close(e){if(e.server){try{e.server.close()}catch(e){}e.server=null}for(var t=Object.keys(e.peers),r=0;r{var t=SOCKFS.getSocket(e);if(!t)throw new FS.ErrnoError(8);return t},Sockets={BUFFER_SIZE:10240,MAX_BUFFER_SIZE:10485760,nextFd:1,fds:{},nextport:1,maxport:65535,peer:null,connections:{},portmap:{},localAddr:4261412874,addrPool:[33554442,50331658,67108874,83886090,100663306,117440522,134217738,150994954,167772170,184549386,201326602,218103818,234881034]},inetPton4=e=>{for(var t=e.split("."),r=0;r<4;r++){var n=Number(t[r]);if(isNaN(n))return null;t[r]=n}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0},jstoi_q=e=>parseInt(e),inetPton6=e=>{var t,r,n,i,a=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(e))return null;if("::"===e)return[0,0,0,0,0,0,0,0];for((e=e.startsWith("::")?e.replace("::","Z:"):e.replace("::",":Z:")).indexOf(".")>0?((t=(e=e.replace(new RegExp("[.]","g"),":")).split(":"))[t.length-4]=jstoi_q(t[t.length-4])+256*jstoi_q(t[t.length-3]),t[t.length-3]=jstoi_q(t[t.length-2])+256*jstoi_q(t[t.length-1]),t=t.slice(0,t.length-2)):t=e.split(":"),n=0,i=0,r=0;r{switch(t){case 2:r=inetPton4(r),zeroMemory(e,16),i&&(GROWABLE_HEAP_I32()[i>>>2>>>0]=16),GROWABLE_HEAP_I16()[e>>>1>>>0]=t,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=r,GROWABLE_HEAP_I16()[e+2>>>1>>>0]=_htons(n);break;case 10:r=inetPton6(r),zeroMemory(e,28),i&&(GROWABLE_HEAP_I32()[i>>>2>>>0]=28),GROWABLE_HEAP_I32()[e>>>2>>>0]=t,GROWABLE_HEAP_I32()[e+8>>>2>>>0]=r[0],GROWABLE_HEAP_I32()[e+12>>>2>>>0]=r[1],GROWABLE_HEAP_I32()[e+16>>>2>>>0]=r[2],GROWABLE_HEAP_I32()[e+20>>>2>>>0]=r[3],GROWABLE_HEAP_I16()[e+2>>>1>>>0]=_htons(n);break;default:return 5}return 0},DNS={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var t,r=inetPton4(e);if(null!==r||null!==(r=inetPton6(e)))return e;if(DNS.address_map.addrs[e])t=DNS.address_map.addrs[e];else{var n=DNS.address_map.id++;assert(n<65535,"exceeded max address mappings of 65535"),t="172.29."+(255&n)+"."+(65280&n),DNS.address_map.names[t]=e,DNS.address_map.addrs[e]=t}return t},lookup_addr:e=>DNS.address_map.names[e]?DNS.address_map.names[e]:null};function ___syscall_accept4(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(4,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0;try{var s=getSocketFromFD(e),o=s.sock_ops.accept(s);return t&&writeSockaddr(t,o.family,DNS.lookup_name(o.daddr),o.dport,r),o.stream.fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_accept4.sig="iippiii";var inetNtop4=e=>(255&e)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),inetNtop6=e=>{var t="",r=0,n=0,i=0,a=0,s=0,o=0,_=[65535&e[0],e[0]>>16,65535&e[1],e[1]>>16,65535&e[2],e[2]>>16,65535&e[3],e[3]>>16],l=!0,c="";for(o=0;o<5;o++)if(0!==_[o]){l=!1;break}if(l){if(c=inetNtop4(_[6]|_[7]<<16),-1===_[5])return(t="::ffff:")+c;if(0===_[5])return"0.0.0.0"===c&&(c=""),"0.0.0.1"===c&&(c="1"),(t="::")+c}for(r=0;r<8;r++)0===_[r]&&(r-i>1&&(s=0),i=r,s++),s>n&&(a=r-(n=s)+1);for(r=0;r<8;r++)n>1&&0===_[r]&&r>=a&&r{var r,n=GROWABLE_HEAP_I16()[e>>>1>>>0],i=_ntohs(GROWABLE_HEAP_U16()[e+2>>>1>>>0]);switch(n){case 2:if(16!==t)return{errno:28};r=GROWABLE_HEAP_I32()[e+4>>>2>>>0],r=inetNtop4(r);break;case 10:if(28!==t)return{errno:28};r=[GROWABLE_HEAP_I32()[e+8>>>2>>>0],GROWABLE_HEAP_I32()[e+12>>>2>>>0],GROWABLE_HEAP_I32()[e+16>>>2>>>0],GROWABLE_HEAP_I32()[e+20>>>2>>>0]],r=inetNtop6(r);break;default:return{errno:5}}return{family:n,addr:r,port:i}},getSocketAddress=(e,t,r)=>{if(r&&0===e)return null;var n=readSockaddr(e,t);if(n.errno)throw new FS.ErrnoError(n.errno);return n.addr=DNS.lookup_addr(n.addr)||n.addr,n};function ___syscall_bind(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(5,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0;try{var s=getSocketFromFD(e),o=getSocketAddress(t,r);return s.sock_ops.bind(s,o.addr,o.port),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_chdir(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(6,0,1,e);e>>>=0;try{return e=SYSCALLS.getStr(e),FS.chdir(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_chmod(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(7,0,1,e,t);e>>>=0;try{return e=SYSCALLS.getStr(e),FS.chmod(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_connect(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(8,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0;try{var s=getSocketFromFD(e),o=getSocketAddress(t,r);return s.sock_ops.connect(s,o.addr,o.port),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_dup(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(9,0,1,e);try{var t=SYSCALLS.getStreamFromFD(e);return FS.dupStream(t).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_dup3(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(10,0,1,e,t,r);try{var n=SYSCALLS.getStreamFromFD(e);if(n.fd===t)return-28;var i=FS.getStream(t);return i&&FS.close(i),FS.dupStream(n,t).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_faccessat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(11,0,1,e,t,r,n);t>>>=0;try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),-8&r)return-28;var i=FS.lookupPath(t,{follow:!0}).node;if(!i)return-44;var a="";return 4&r&&(a+="r"),2&r&&(a+="w"),1&r&&(a+="x"),a&&FS.nodePermissions(i,a)?-2:0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fadvise64(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(12,0,0,e,t,r,n):0}function ___syscall_fallocate(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(13,0,1,e,t,r,n,i,a);var s=convertI32PairToI53Checked(r,n),o=convertI32PairToI53Checked(i,a);try{if(isNaN(s))return 61;var _=SYSCALLS.getStreamFromFD(e);return FS.allocate(_,s,o),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchdir(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(14,0,1,e);try{var t=SYSCALLS.getStreamFromFD(e);return FS.chdir(t.path),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchmod(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(15,0,1,e,t);try{return FS.fchmod(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchmodat2(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(16,0,1,e,t,r,n);t>>>=0;try{var i=256&n;return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),FS.chmod(t,r,i),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchown32(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(17,0,1,e,t,r);try{return FS.fchown(e,t,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchownat(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(18,0,1,e,t,r,n,i);t>>>=0;try{t=SYSCALLS.getStr(t);var a=256&i;return i&=-257,t=SYSCALLS.calculateAt(e,t),(a?FS.lchown:FS.chown)(t,r,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function syscallGetVarargI(){var e=GROWABLE_HEAP_I32()[+SYSCALLS.varargs>>>2>>>0];return SYSCALLS.varargs+=4,e}___syscall_bind.sig="iippiii",___syscall_chdir.sig="ip",___syscall_chmod.sig="ipi",___syscall_connect.sig="iippiii",___syscall_dup.sig="ii",___syscall_dup3.sig="iiii",___syscall_faccessat.sig="iipii",___syscall_fadvise64.sig="iiiiiii",___syscall_fallocate.sig="iiiiiii",___syscall_fchdir.sig="ii",___syscall_fchmod.sig="iii",___syscall_fchmodat2.sig="iipii",___syscall_fchown32.sig="iiii",___syscall_fchownat.sig="iipiii";var syscallGetVarargP=syscallGetVarargI;function ___syscall_fcntl64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(19,0,1,e,t,r);r>>>=0,SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 0:if((i=syscallGetVarargI())<0)return-28;for(;FS.streams[i];)i++;return FS.dupStream(n,i).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var i=syscallGetVarargI();return n.flags|=i,0;case 12:return i=syscallGetVarargP(),GROWABLE_HEAP_I16()[i+0>>>1>>>0]=2,0}return-28}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fdatasync(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(20,0,1,e);try{return SYSCALLS.getStreamFromFD(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(21,0,1,e,t);t>>>=0;try{var r=SYSCALLS.getStreamFromFD(e);return SYSCALLS.doStat(FS.stat,r.path,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_statfs64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(23,0,1,e,t,r);e>>>=0,t>>>=0,r>>>=0;try{return e=SYSCALLS.getStr(e),GROWABLE_HEAP_I32()[r+4>>>2>>>0]=4096,GROWABLE_HEAP_I32()[r+40>>>2>>>0]=4096,GROWABLE_HEAP_I32()[r+8>>>2>>>0]=1e6,GROWABLE_HEAP_I32()[r+12>>>2>>>0]=5e5,GROWABLE_HEAP_I32()[r+16>>>2>>>0]=5e5,GROWABLE_HEAP_I32()[r+20>>>2>>>0]=FS.nextInode,GROWABLE_HEAP_I32()[r+24>>>2>>>0]=1e6,GROWABLE_HEAP_I32()[r+28>>>2>>>0]=42,GROWABLE_HEAP_I32()[r+44>>>2>>>0]=2,GROWABLE_HEAP_I32()[r+36>>>2>>>0]=255,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstatfs64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(22,0,1,e,t,r);t>>>=0,r>>>=0;try{return SYSCALLS.getStreamFromFD(e),___syscall_statfs64(0,t,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ftruncate64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(24,0,1,e,t,r);var n=convertI32PairToI53Checked(t,r);try{return isNaN(n)?61:(FS.ftruncate(e,n),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_fcntl64.sig="iiip",___syscall_fdatasync.sig="ii",___syscall_fstat64.sig="iip",___syscall_statfs64.sig="ippp",___syscall_fstatfs64.sig="iipp",___syscall_ftruncate64.sig="iiii";var stringToUTF8=(e,t,r)=>stringToUTF8Array(e,GROWABLE_HEAP_U8(),t,r);function ___syscall_getcwd(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(25,0,1,e,t);e>>>=0,t>>>=0;try{if(0===t)return-28;var r=FS.cwd(),n=lengthBytesUTF8(r)+1;return t"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getdents64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(26,0,1,e,t,r);t>>>=0,r>>>=0;try{var n=SYSCALLS.getStreamFromFD(e);n.getdents||(n.getdents=FS.readdir(n.path));for(var i=280,a=0,s=FS.llseek(n,0,1),o=Math.floor(s/i);o>>0,(tempDouble=_,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+a>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+a+4>>>2>>>0]=tempI64[1],tempI64=[(o+1)*i>>>0,(tempDouble=(o+1)*i,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+a+8>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+a+12>>>2>>>0]=tempI64[1],GROWABLE_HEAP_I16()[t+a+16>>>1>>>0]=280,GROWABLE_HEAP_I8()[t+a+18>>>0]=l,stringToUTF8(c,t+a+19,256),a+=i,o+=1}return FS.llseek(n,o*i,0),a}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getpeername(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(27,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0;try{var s=getSocketFromFD(e);return s.daddr?(writeSockaddr(t,s.family,DNS.lookup_name(s.daddr),s.dport,r),0):-53}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getsockname(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(28,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0;try{var s=getSocketFromFD(e);return writeSockaddr(t,s.family,DNS.lookup_name(s.saddr||"0.0.0.0"),s.sport,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getsockopt(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(29,0,1,e,t,r,n,i,a);n>>>=0,i>>>=0;try{var s=getSocketFromFD(e);return 1===t&&4===r?(GROWABLE_HEAP_I32()[n>>>2>>>0]=s.error,GROWABLE_HEAP_I32()[i>>>2>>>0]=4,s.error=null,0):-50}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ioctl(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(30,0,1,e,t,r);r>>>=0,SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var i=n.tty.ops.ioctl_tcgets(n),a=syscallGetVarargP();GROWABLE_HEAP_I32()[a>>>2>>>0]=i.c_iflag||0,GROWABLE_HEAP_I32()[a+4>>>2>>>0]=i.c_oflag||0,GROWABLE_HEAP_I32()[a+8>>>2>>>0]=i.c_cflag||0,GROWABLE_HEAP_I32()[a+12>>>2>>>0]=i.c_lflag||0;for(var s=0;s<32;s++)GROWABLE_HEAP_I8()[a+s+17>>>0]=i.c_cc[s]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){a=syscallGetVarargP();var o=GROWABLE_HEAP_I32()[a>>>2>>>0],_=GROWABLE_HEAP_I32()[a+4>>>2>>>0],l=GROWABLE_HEAP_I32()[a+8>>>2>>>0],c=GROWABLE_HEAP_I32()[a+12>>>2>>>0],u=[];for(s=0;s<32;s++)u.push(GROWABLE_HEAP_I8()[a+s+17>>>0]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:o,c_oflag:_,c_cflag:l,c_lflag:c,c_cc:u})}return 0;case 21519:return n.tty?(a=syscallGetVarargP(),GROWABLE_HEAP_I32()[a>>>2>>>0]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return a=syscallGetVarargP(),FS.ioctl(n,t,a);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var d=n.tty.ops.ioctl_tiocgwinsz(n.tty);a=syscallGetVarargP(),GROWABLE_HEAP_I16()[a>>>1>>>0]=d[0],GROWABLE_HEAP_I16()[a+2>>>1>>>0]=d[1]}return 0;default:return-28}}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_listen(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(31,0,1,e,t);try{var r=getSocketFromFD(e);return r.sock_ops.listen(r,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_lstat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(32,0,1,e,t);e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.lstat,e,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mkdirat(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(33,0,1,e,t,r);t>>>=0;try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),"/"===(t=PATH.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),FS.mkdir(t,r,0),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mknodat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(34,0,1,e,t,r,n);t>>>=0;try{switch(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),61440&r){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return FS.mknod(t,r,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_newfstatat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(35,0,1,e,t,r,n);t>>>=0,r>>>=0;try{t=SYSCALLS.getStr(t);var i=256&n,a=4096&n;return n&=-6401,t=SYSCALLS.calculateAt(e,t,a),SYSCALLS.doStat(i?FS.lstat:FS.stat,t,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_openat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(36,0,1,e,t,r,n);t>>>=0,n>>>=0,SYSCALLS.varargs=n;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t);var i=n?syscallGetVarargI():0;return FS.open(t,r,i).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_getcwd.sig="ipp",___syscall_getdents64.sig="iipp",___syscall_getpeername.sig="iippiii",___syscall_getsockname.sig="iippiii",___syscall_getsockopt.sig="iiiippi",___syscall_ioctl.sig="iiip",___syscall_listen.sig="iiiiiii",___syscall_lstat64.sig="ipp",___syscall_mkdirat.sig="iipi",___syscall_mknodat.sig="iipii",___syscall_newfstatat.sig="iippi",___syscall_openat.sig="iipip";var PIPEFS={BUCKET_BUFFER_SIZE:8192,mount:e=>FS.createNode(null,"/",16895,0),createPipe(){var e={buckets:[],refcnt:2};e.buckets.push({buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var t=PIPEFS.nextname(),r=PIPEFS.nextname(),n=FS.createNode(PIPEFS.root,t,4096,0),i=FS.createNode(PIPEFS.root,r,4096,0);n.pipe=e,i.pipe=e;var a=FS.createStream({path:t,node:n,flags:0,seekable:!1,stream_ops:PIPEFS.stream_ops});n.stream=a;var s=FS.createStream({path:r,node:i,flags:1,seekable:!1,stream_ops:PIPEFS.stream_ops});return i.stream=s,{readable_fd:a.fd,writable_fd:s.fd}},stream_ops:{poll(e){var t=e.node.pipe;if(1==(2097155&e.flags))return 260;if(t.buckets.length>0)for(var r=0;r0)return 65}return 0},ioctl:(e,t,r)=>28,fsync:e=>28,read(e,t,r,n,i){for(var a=e.node.pipe,s=0,o=0;o=o)return _.buffer.set(s,_.offset),_.offset+=o,o;l>0&&(_.buffer.set(s.subarray(0,l),_.offset),_.offset+=l,s=s.subarray(l,s.byteLength));for(var c=s.byteLength/PIPEFS.BUCKET_BUFFER_SIZE|0,u=s.byteLength%PIPEFS.BUCKET_BUFFER_SIZE,d=0;d0&&(p={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:s.byteLength,roffset:0},a.buckets.push(p),p.buffer.set(s)),o},close(e){var t=e.node.pipe;t.refcnt--,0===t.refcnt&&(t.buckets=null)}},nextname:()=>(PIPEFS.nextname.current||(PIPEFS.nextname.current=0),"pipe["+PIPEFS.nextname.current+++"]")};function ___syscall_pipe(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(37,0,1,e);e>>>=0;try{if(0==e)throw new FS.ErrnoError(21);var t=PIPEFS.createPipe();return GROWABLE_HEAP_I32()[e>>>2>>>0]=t.readable_fd,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=t.writable_fd,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_poll(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(38,0,1,e,t,r);e>>>=0;try{for(var n=0,i=0;i>>2>>>0],o=GROWABLE_HEAP_I16()[a+4>>>1>>>0],_=32,l=FS.getStream(s);l&&(_=SYSCALLS.DEFAULT_POLLMASK,l.stream_ops.poll&&(_=l.stream_ops.poll(l,-1))),(_&=24|o)&&n++,GROWABLE_HEAP_I16()[a+6>>>1>>>0]=_}return n}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_readlinkat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(39,0,1,e,t,r,n);t>>>=0,r>>>=0,n>>>=0;try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),n<=0)return-28;var i=FS.readlink(t),a=Math.min(n,lengthBytesUTF8(i)),s=GROWABLE_HEAP_I8()[r+a>>>0];return stringToUTF8(i,r,n+1),GROWABLE_HEAP_I8()[r+a>>>0]=s,a}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_recvfrom(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(40,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0,i>>>=0,a>>>=0;try{var s=getSocketFromFD(e),o=s.sock_ops.recvmsg(s,r);return o?(i&&writeSockaddr(i,s.family,DNS.lookup_name(o.addr),o.port,a),GROWABLE_HEAP_U8().set(o.buffer,t>>>0),o.buffer.byteLength):0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_recvmsg(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(41,0,1,e,t,r,n,i,a);t>>>=0;try{for(var s=getSocketFromFD(e),o=GROWABLE_HEAP_U32()[t+8>>>2>>>0],_=GROWABLE_HEAP_I32()[t+12>>>2>>>0],l=0,c=0;c<_;c++)l+=GROWABLE_HEAP_I32()[o+(8*c+4)>>>2>>>0];var u=s.sock_ops.recvmsg(s,l);if(!u)return 0;var d=GROWABLE_HEAP_U32()[t>>>2>>>0];d&&writeSockaddr(d,s.family,DNS.lookup_name(u.addr),u.port);var p=0,m=u.buffer.byteLength;for(c=0;m>0&&c<_;c++){var f=GROWABLE_HEAP_U32()[o+(8*c+0)>>>2>>>0],h=GROWABLE_HEAP_I32()[o+(8*c+4)>>>2>>>0];if(h){var g=Math.min(h,m),v=u.buffer.subarray(p,p+g);GROWABLE_HEAP_U8().set(v,f+p>>>0),p+=g,m-=g}}return p}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_renameat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(42,0,1,e,t,r,n);t>>>=0,n>>>=0;try{return t=SYSCALLS.getStr(t),n=SYSCALLS.getStr(n),t=SYSCALLS.calculateAt(e,t),n=SYSCALLS.calculateAt(r,n),FS.rename(t,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_rmdir(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(43,0,1,e);e>>>=0;try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_sendmsg(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(44,0,1,e,t,r,n,i,a);t>>>=0,n>>>=0,i>>>=0;try{var s,o,_=getSocketFromFD(e),l=GROWABLE_HEAP_U32()[t+8>>>2>>>0],c=GROWABLE_HEAP_I32()[t+12>>>2>>>0],u=GROWABLE_HEAP_U32()[t>>>2>>>0],d=GROWABLE_HEAP_I32()[t+4>>>2>>>0];if(u){var p=readSockaddr(u,d);if(p.errno)return-p.errno;o=p.port,s=DNS.lookup_addr(p.addr)||p.addr}for(var m=0,f=0;f>>2>>>0];var h=new Uint8Array(m),g=0;for(f=0;f>>2>>>0],E=GROWABLE_HEAP_I32()[l+(8*f+4)>>>2>>>0],y=0;y>>0];return _.sock_ops.sendmsg(_,h,0,m,s,o)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_sendto(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(45,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0,i>>>=0,a>>>=0;try{var s=getSocketFromFD(e),o=getSocketAddress(i,a,!0);return o?s.sock_ops.sendmsg(s,GROWABLE_HEAP_I8(),t,r,o.addr,o.port):FS.write(s.stream,GROWABLE_HEAP_I8(),t,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_socket(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(46,0,1,e,t,r);try{return SOCKFS.createSocket(e,t,r).stream.fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_stat64(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(47,0,1,e,t);e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.stat,e,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_symlink(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(48,0,1,e,t);e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),t=SYSCALLS.getStr(t),FS.symlink(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_symlinkat(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(49,0,1,e,t,r);e>>>=0,r>>>=0;try{return r=SYSCALLS.calculateAt(t,r),FS.symlink(e,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_truncate64(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(50,0,1,e,t,r);e>>>=0;var n=convertI32PairToI53Checked(t,r);try{return isNaN(n)?61:(e=SYSCALLS.getStr(e),FS.truncate(e,n),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_unlinkat(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(51,0,1,e,t,r);t>>>=0;try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),0===r?FS.unlink(t):512===r?FS.rmdir(t):abort("Invalid flags passed to unlinkat"),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_pipe.sig="ip",___syscall_poll.sig="ipii",___syscall_readlinkat.sig="iippp",___syscall_recvfrom.sig="iippipp",___syscall_recvmsg.sig="iipiiii",___syscall_renameat.sig="iipip",___syscall_rmdir.sig="ip",___syscall_sendmsg.sig="iipippi",___syscall_sendto.sig="iippipp",___syscall_socket.sig="iiiiiii",___syscall_stat64.sig="ipp",___syscall_symlink.sig="ipp",___syscall_symlinkat.sig="ipip",___syscall_truncate64.sig="ipii",___syscall_unlinkat.sig="iipi";var readI53FromI64=e=>GROWABLE_HEAP_U32()[e>>>2>>>0]+4294967296*GROWABLE_HEAP_I32()[e+4>>>2>>>0];function ___syscall_utimensat(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(52,0,1,e,t,r,n);t>>>=0,r>>>=0;try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t,!0),r){var i=readI53FromI64(r),a=GROWABLE_HEAP_I32()[r+8>>>2>>>0];s=1e3*i+a/1e6,o=1e3*(i=readI53FromI64(r+=16))+(a=GROWABLE_HEAP_I32()[r+8>>>2>>>0])/1e6}else var s=Date.now(),o=s;return FS.utime(t,s,o),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_utimensat.sig="iippi";var ___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),ENV={},stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},dlSetError=e=>{withStackSave((()=>{var t=stringToUTF8OnStack(e);___dl_seterr(t,0)}))},dlopenInternal=(e,t)=>{var r=UTF8ToString(e+36),n=GROWABLE_HEAP_I32()[e+4>>>2>>>0];r=PATH.normalize(r);var i=!!(256&n),a=i?null:{},s={global:i,nodelete:!!(4096&n),loadAsync:t.loadAsync};if(t.loadAsync)return loadDynamicLibrary(r,s,a,e);try{return loadDynamicLibrary(r,s,a,e)}catch(e){return dlSetError("Could not load dynamic lib: ".concat(r,"\n").concat(e)),0}};function __dlopen_js(e){return dlopenInternal(e>>>=0,{loadAsync:!1})}function __dlsym_catchup_js(e,t){e>>>=0;var r=LDSO.loadedLibsByHandle[e].exports,n=r[Object.keys(r)[t]];return addFunction(n,n.sig)}function __dlsym_js(e,t,r){e>>>=0,r>>>=0,t=UTF8ToString(t>>>=0);var n,i,a=LDSO.loadedLibsByHandle[e];if(!a.exports.hasOwnProperty(t)||a.exports[t].stub)return dlSetError('Tried to lookup unknown symbol "'.concat(t,'" in dynamic lib: ').concat(a.name)),0;i=Object.keys(a.exports).indexOf(t);var s="orig$"+t;if((n=a.exports[s])?i=Object.keys(a.exports).indexOf(s):n=a.exports[t],"function"==typeof n){var o=getFunctionAddress(n);o?n=o:(n=addFunction(n,n.sig),GROWABLE_HEAP_U32()[r>>>2>>>0]=i)}return n}function __embind_register_bigint(e,t,r,n,i){}__dlopen_js.sig="pp",__dlsym_catchup_js.sig="ppi",__dlsym_js.sig="pppp",__embind_register_bigint.sig="vpppiiii";var embind_init_charCodes=()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);embind_charCodes=e},embind_charCodes,readLatin1String=e=>{for(var t="",r=e;GROWABLE_HEAP_U8()[r>>>0];)t+=embind_charCodes[GROWABLE_HEAP_U8()[r++>>>0]];return t},awaitingDependencies={},registeredTypes={},typeDependencies={},BindingError,throwBindingError=e=>{throw new BindingError(e)},InternalError,throwInternalError=e=>{throw new InternalError(e)},whenDependentTypesAreResolved=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&throwInternalError("Mismatched type converter count");for(var i=0;i{registeredTypes.hasOwnProperty(e)?i[t]=registeredTypes[e]:(a.push(e),awaitingDependencies.hasOwnProperty(e)||(awaitingDependencies[e]=[]),awaitingDependencies[e].push((()=>{i[t]=registeredTypes[e],++s===a.length&&n(i)})))})),0===a.length&&n(i)};function sharedRegisterType(e,t,r={}){var n=t.name;if(e||throwBindingError('type "'.concat(n,'" must have a positive integer typeid pointer')),registeredTypes.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;throwBindingError("Cannot register type '".concat(n,"' twice"))}if(registeredTypes[e]=t,delete typeDependencies[e],awaitingDependencies.hasOwnProperty(e)){var i=awaitingDependencies[e];delete awaitingDependencies[e],i.forEach((e=>e()))}}function registerType(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return sharedRegisterType(e,t,r)}var GenericWireTypeSize=8;function __embind_register_bool(e,t,r,n){registerType(e>>>=0,{name:t=readLatin1String(t>>>=0),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},argPackAdvance:GenericWireTypeSize,readValueFromPointer:function(e){return this.fromWireType(GROWABLE_HEAP_U8()[e>>>0])},destructorFunction:null})}__embind_register_bool.sig="vppii";var emval_freelist=[],emval_handles=[];function __emval_decref(e){(e>>>=0)>9&&0==--emval_handles[e+1]&&(emval_handles[e]=void 0,emval_freelist.push(e))}__emval_decref.sig="vp";var count_emval_handles=()=>emval_handles.length/2-5-emval_freelist.length,init_emval=()=>{emval_handles.push(0,1,void 0,1,null,1,!0,1,!1,1),Module.count_emval_handles=count_emval_handles},Emval={toValue:e=>(e||throwBindingError("Cannot use deleted val. handle = "+e),emval_handles[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let t=emval_freelist.pop()||emval_handles.length;return emval_handles[t]=e,emval_handles[t+1]=1,t}}}};function readPointer(e){return this.fromWireType(GROWABLE_HEAP_U32()[e>>>2>>>0])}var EmValType={name:"emscripten::val",fromWireType:e=>{var t=Emval.toValue(e);return __emval_decref(e),t},toWireType:(e,t)=>Emval.toHandle(t),argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:null};function __embind_register_emval(e){return registerType(e>>>=0,EmValType)}__embind_register_emval.sig="vp";var embindRepr=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},floatReadValueFromPointer=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(GROWABLE_HEAP_F32()[e>>>2>>>0])};case 8:return function(e){return this.fromWireType(GROWABLE_HEAP_F64()[e>>>3>>>0])};default:throw new TypeError("invalid float width (".concat(t,"): ").concat(e))}},__embind_register_float=function(e,t,r){r>>>=0,registerType(e>>>=0,{name:t=readLatin1String(t>>>=0),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:GenericWireTypeSize,readValueFromPointer:floatReadValueFromPointer(t,r),destructorFunction:null})};__embind_register_float.sig="vppp";var integerReadValueFromPointer=(e,t,r)=>{switch(t){case 1:return r?e=>GROWABLE_HEAP_I8()[e>>>0]:e=>GROWABLE_HEAP_U8()[e>>>0];case 2:return r?e=>GROWABLE_HEAP_I16()[e>>>1>>>0]:e=>GROWABLE_HEAP_U16()[e>>>1>>>0];case 4:return r?e=>GROWABLE_HEAP_I32()[e>>>2>>>0]:e=>GROWABLE_HEAP_U32()[e>>>2>>>0];default:throw new TypeError("invalid integer width (".concat(t,"): ").concat(e))}};function __embind_register_integer(e,t,r,n,i){e>>>=0,r>>>=0,t=readLatin1String(t>>>=0),-1===i&&(i=4294967295);var a=e=>e;if(0===n){var s=32-8*r;a=e=>e<>>s}var o=t.includes("unsigned");registerType(e,{name:t,fromWireType:a,toWireType:o?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:GenericWireTypeSize,readValueFromPointer:integerReadValueFromPointer(t,r,0!==n),destructorFunction:null})}function __embind_register_memory_view(e,t,r){r>>>=0;var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=GROWABLE_HEAP_U32()[e>>>2>>>0],r=GROWABLE_HEAP_U32()[e+4>>>2>>>0];return new n(GROWABLE_HEAP_I8().buffer,r,t)}registerType(e>>>=0,{name:r=readLatin1String(r),fromWireType:i,argPackAdvance:GenericWireTypeSize,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})}function __embind_register_std_string(e,t){e>>>=0;var r="std::string"===(t=readLatin1String(t>>>=0));registerType(e,{name:t,fromWireType(e){var t,n=GROWABLE_HEAP_U32()[e>>>2>>>0],i=e+4;if(r)for(var a=i,s=0;s<=n;++s){var o=i+s;if(s==n||0==GROWABLE_HEAP_U8()[o>>>0]){var _=UTF8ToString(a,o-a);void 0===t?t=_:(t+="\0",t+=_),a=o+1}}else{var l=new Array(n);for(s=0;s>>0]);t=l.join("")}return _free(e),t},toWireType(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n,i="string"==typeof t;i||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||throwBindingError("Cannot pass non-string to std::string"),n=r&&i?lengthBytesUTF8(t):t.length;var a=_malloc(4+n+1),s=a+4;if(GROWABLE_HEAP_U32()[a>>>2>>>0]=n,r&&i)stringToUTF8(t,s,n+1);else if(i)for(var o=0;o255&&(_free(s),throwBindingError("String has UTF-16 code units that do not fit in 8 bits")),GROWABLE_HEAP_U8()[s+o>>>0]=_}else for(o=0;o>>0]=t[o];return null!==e&&e.push(_free,a),a},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(e){_free(e)}})}__embind_register_integer.sig="vpppii",__embind_register_memory_view.sig="vpip",__embind_register_std_string.sig="vpp";var UTF16Decoder=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,UTF16ToString=(e,t)=>{for(var r=e,n=r>>1,i=n+t/2;!(n>=i)&&GROWABLE_HEAP_U16()[n>>>0];)++n;if((r=n<<1)-e>32&&UTF16Decoder)return UTF16Decoder.decode(GROWABLE_HEAP_U8().slice(e,r));for(var a="",s=0;!(s>=t/2);++s){var o=GROWABLE_HEAP_I16()[e+2*s>>>1>>>0];if(0==o)break;a+=String.fromCharCode(o)}return a},stringToUTF16=(e,t,r)=>{if(null!=r||(r=2147483647),r<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,a=0;a>>1>>>0]=s,t+=2}return GROWABLE_HEAP_I16()[t>>>1>>>0]=0,t-n},lengthBytesUTF16=e=>2*e.length,UTF32ToString=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var i=GROWABLE_HEAP_I32()[e+4*r>>>2>>>0];if(0==i)break;if(++r,i>=65536){var a=i-65536;n+=String.fromCharCode(55296|a>>10,56320|1023&a)}else n+=String.fromCharCode(i)}return n},stringToUTF32=(e,t,r)=>{if(null!=r||(r=2147483647),r<4)return 0;for(var n=t>>>=0,i=n+r-4,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),GROWABLE_HEAP_I32()[t>>>2>>>0]=s,(t+=4)+4>i)break}return GROWABLE_HEAP_I32()[t>>>2>>>0]=0,t-n},lengthBytesUTF32=e=>{for(var t=0,r=0;r=55296&&n<=57343&&++r,t+=4}return t},__embind_register_std_wstring=function(e,t,r){var n,i,a,s;e>>>=0,t>>>=0,r=readLatin1String(r>>>=0),2===t?(n=UTF16ToString,i=stringToUTF16,s=lengthBytesUTF16,a=e=>GROWABLE_HEAP_U16()[e>>>1>>>0]):4===t&&(n=UTF32ToString,i=stringToUTF32,s=lengthBytesUTF32,a=e=>GROWABLE_HEAP_U32()[e>>>2>>>0]),registerType(e,{name:r,fromWireType:e=>{for(var r,i=GROWABLE_HEAP_U32()[e>>>2>>>0],s=e+4,o=0;o<=i;++o){var _=e+4+o*t;if(o==i||0==a(_)){var l=n(s,_-s);void 0===r?r=l:(r+="\0",r+=l),s=_+t}}return _free(e),r},toWireType:(e,n)=>{"string"!=typeof n&&throwBindingError("Cannot pass non-string to C++ string type ".concat(r));var a=s(n),o=_malloc(4+a+t);return GROWABLE_HEAP_U32()[o>>>2>>>0]=a/t,i(n,o+4,a+t),null!==e&&e.push(_free,o),o},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(e){_free(e)}})};__embind_register_std_wstring.sig="vppp";var __embind_register_void=function(e,t){registerType(e>>>=0,{isVoid:!0,name:t=readLatin1String(t>>>=0),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})};__embind_register_void.sig="vpp";var maybeExit=()=>{if(!keepRuntimeAlive())try{ENVIRONMENT_IS_PTHREAD?__emscripten_thread_exit(EXITSTATUS):_exit(EXITSTATUS)}catch(e){handleException(e)}},callUserCallback=e=>{if(!ABORT)try{e(),maybeExit()}catch(e){handleException(e)}},runtimeKeepalivePush=()=>{runtimeKeepaliveCounter+=1};runtimeKeepalivePush.sig="v";var runtimeKeepalivePop=()=>{runtimeKeepaliveCounter-=1};function __emscripten_dlopen_js(e,t,r,n){function i(t){var i=UTF8ToString(e+36);dlSetError("'Could not load dynamic lib: ".concat(i,"\n").concat(t)),runtimeKeepalivePop(),callUserCallback((()=>getWasmTableEntry(r)(e,n)))}e>>>=0,t>>>=0,r>>>=0,n>>>=0,runtimeKeepalivePush();var a=dlopenInternal(e,{loadAsync:!0});a?a.then((function(){runtimeKeepalivePop(),callUserCallback((()=>getWasmTableEntry(t)(e,n)))}),i):i()}runtimeKeepalivePop.sig="v",__emscripten_dlopen_js.sig="vpppp";var __emscripten_dlsync_threads=()=>{for(let e of Object.keys(PThread.pthreads)){let t=Number(e);PThread.finishedThreads.has(t)||__emscripten_proxy_dlsync(t)}};__emscripten_dlsync_threads.sig="v";class HandleAllocator{constructor(){this.allocated=[void 0],this.freelist=[]}get(e){return this.allocated[e]}has(e){return void 0!==this.allocated[e]}allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t}free(e){this.allocated[e]=void 0,this.freelist.push(e)}}var promiseMap=new HandleAllocator,makePromise=()=>{var e={};return e.promise=new Promise(((t,r)=>{e.reject=r,e.resolve=t})),e.id=promiseMap.allocate(e),e};function _emscripten_promise_create(){return makePromise().id}_emscripten_promise_create.sig="p";var getPromise=e=>promiseMap.get(e).promise;function __emscripten_dlsync_threads_async(e,t,r){e>>>=0,t>>>=0,r>>>=0;let n=[];assert(0===Object.keys(PThread.outstandingPromises).length);var i=makePromise();n.push(i.promise),__emscripten_dlsync_self_async(i.id);for(let t of Object.keys(PThread.pthreads)){let r=Number(t);r!==e&&!PThread.finishedThreads.has(r)&&(i=makePromise(),__emscripten_proxy_dlsync_async(r,i.id),PThread.outstandingPromises[r]=i,n.push(i.promise))}Promise.all(n).then((()=>{PThread.outstandingPromises={},getWasmTableEntry(t)(r)}))}__emscripten_dlsync_threads_async.sig="vppp";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;function __emscripten_get_progname(e,t){stringToUTF8(thisProgram,e>>>=0,t)}function __emscripten_lookup_name(e){var t=UTF8ToString(e>>>=0);return inetPton4(DNS.lookup_name(t))}function __emscripten_thread_mailbox_await(e){if(e>>>=0,"function"==typeof Atomics.waitAsync){Atomics.waitAsync(GROWABLE_HEAP_I32(),e>>>2,e).value.then(checkMailbox);var t=e+128;Atomics.store(GROWABLE_HEAP_I32(),t>>>2,1)}}__emscripten_get_now_is_monotonic.sig="i",__emscripten_get_progname.sig="vpi",__emscripten_lookup_name.sig="ip",Module.__emscripten_thread_mailbox_await=__emscripten_thread_mailbox_await,__emscripten_thread_mailbox_await.sig="vp";var checkMailbox=()=>{var e=_pthread_self();e&&(__emscripten_thread_mailbox_await(e),callUserCallback(__emscripten_check_mailbox))};function __emscripten_notify_mailbox_postmessage(e,t,r){if((e>>>=0)==(t>>>=0))setTimeout(checkMailbox);else if(ENVIRONMENT_IS_PTHREAD)postMessage({targetThread:e,cmd:"checkMailbox"});else{var n=PThread.pthreads[e];if(!n)return;n.postMessage({cmd:"checkMailbox"})}}Module.checkMailbox=checkMailbox,__emscripten_notify_mailbox_postmessage.sig="vppp";var proxiedJSCallArgs=[];function __emscripten_receive_on_main_thread_js(e,t,r,n,i){t>>>=0,r>>>=0,i>>>=0,proxiedJSCallArgs.length=n;for(var a=i>>>3,s=0;s>>0];var o=t?ASM_CONSTS[t]:proxiedFunctionTable[e];PThread.currentProxiedOperationCallerThread=r;var _=o(...proxiedJSCallArgs);return PThread.currentProxiedOperationCallerThread=0,_}function __emscripten_runtime_keepalive_clear(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(53,0,1);noExitRuntime=!1,runtimeKeepaliveCounter=0}function __emscripten_set_offscreencanvas_size(e,t,r){return-1}function __emscripten_system(e){if(e>>>=0,ENVIRONMENT_IS_NODE){if(!e)return 1;var t=UTF8ToString(e);if(!t.length)return 0;var r=["child_process"].map(xn).spawnSync(t,[],{shell:!0,stdio:"inherit"}),n=(e,t)=>e<<8|t;return null===r.status?n(0,(e=>{switch(e){case"SIGHUP":return 1;case"SIGINT":return 2;case"SIGQUIT":return 3;case"SIGFPE":return 8;case"SIGKILL":return 9;case"SIGALRM":return 14;case"SIGTERM":return 15}return 2})(r.signal)):n(r.status,0)}return e?-52:0}function __emscripten_thread_exit_joinable(e){e>>>=0,ENVIRONMENT_IS_PTHREAD?postMessage({cmd:"markAsFinished",thread:e}):markAsFinished(e)}function __emscripten_thread_set_strongref(e){e>>>=0,ENVIRONMENT_IS_NODE&&PThread.pthreads[e].ref()}function __gmtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t);r>>>=0;var i=new Date(1e3*n);GROWABLE_HEAP_I32()[r>>>2>>>0]=i.getUTCSeconds(),GROWABLE_HEAP_I32()[r+4>>>2>>>0]=i.getUTCMinutes(),GROWABLE_HEAP_I32()[r+8>>>2>>>0]=i.getUTCHours(),GROWABLE_HEAP_I32()[r+12>>>2>>>0]=i.getUTCDate(),GROWABLE_HEAP_I32()[r+16>>>2>>>0]=i.getUTCMonth(),GROWABLE_HEAP_I32()[r+20>>>2>>>0]=i.getUTCFullYear()-1900,GROWABLE_HEAP_I32()[r+24>>>2>>>0]=i.getUTCDay();var a=Date.UTC(i.getUTCFullYear(),0,1,0,0,0,0),s=(i.getTime()-a)/864e5|0;GROWABLE_HEAP_I32()[r+28>>>2>>>0]=s}__emscripten_receive_on_main_thread_js.sig="dippip",__emscripten_runtime_keepalive_clear.sig="v",__emscripten_set_offscreencanvas_size.sig="ipii",__emscripten_system.sig="ip",__emscripten_thread_exit_joinable.sig="vp",__emscripten_thread_set_strongref.sig="vp",__gmtime_js.sig="viip";var isLeapYear=e=>e%4==0&&(e%100!=0||e%400==0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>(isLeapYear(e.getFullYear())?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE)[e.getMonth()]+e.getDate()-1;function __localtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t);r>>>=0;var i=new Date(1e3*n);GROWABLE_HEAP_I32()[r>>>2>>>0]=i.getSeconds(),GROWABLE_HEAP_I32()[r+4>>>2>>>0]=i.getMinutes(),GROWABLE_HEAP_I32()[r+8>>>2>>>0]=i.getHours(),GROWABLE_HEAP_I32()[r+12>>>2>>>0]=i.getDate(),GROWABLE_HEAP_I32()[r+16>>>2>>>0]=i.getMonth(),GROWABLE_HEAP_I32()[r+20>>>2>>>0]=i.getFullYear()-1900,GROWABLE_HEAP_I32()[r+24>>>2>>>0]=i.getDay();var a=0|ydayFromDate(i);GROWABLE_HEAP_I32()[r+28>>>2>>>0]=a,GROWABLE_HEAP_I32()[r+36>>>2>>>0]=-60*i.getTimezoneOffset();var s=new Date(i.getFullYear(),0,1),o=new Date(i.getFullYear(),6,1).getTimezoneOffset(),_=s.getTimezoneOffset(),l=0|(o!=_&&i.getTimezoneOffset()==Math.min(_,o));GROWABLE_HEAP_I32()[r+32>>>2>>>0]=l}__localtime_js.sig="viip";var __mktime_js=function(e){e>>>=0;var t=(()=>{var t=new Date(GROWABLE_HEAP_I32()[e+20>>>2>>>0]+1900,GROWABLE_HEAP_I32()[e+16>>>2>>>0],GROWABLE_HEAP_I32()[e+12>>>2>>>0],GROWABLE_HEAP_I32()[e+8>>>2>>>0],GROWABLE_HEAP_I32()[e+4>>>2>>>0],GROWABLE_HEAP_I32()[e>>>2>>>0],0),r=GROWABLE_HEAP_I32()[e+32>>>2>>>0],n=t.getTimezoneOffset(),i=new Date(t.getFullYear(),0,1),a=new Date(t.getFullYear(),6,1).getTimezoneOffset(),s=i.getTimezoneOffset(),o=Math.min(s,a);if(r<0)GROWABLE_HEAP_I32()[e+32>>>2>>>0]=+(a!=s&&o==n);else if(r>0!=(o==n)){var _=Math.max(s,a),l=r>0?o:_;t.setTime(t.getTime()+6e4*(l-n))}GROWABLE_HEAP_I32()[e+24>>>2>>>0]=t.getDay();var c=0|ydayFromDate(t);GROWABLE_HEAP_I32()[e+28>>>2>>>0]=c,GROWABLE_HEAP_I32()[e>>>2>>>0]=t.getSeconds(),GROWABLE_HEAP_I32()[e+4>>>2>>>0]=t.getMinutes(),GROWABLE_HEAP_I32()[e+8>>>2>>>0]=t.getHours(),GROWABLE_HEAP_I32()[e+12>>>2>>>0]=t.getDate(),GROWABLE_HEAP_I32()[e+16>>>2>>>0]=t.getMonth(),GROWABLE_HEAP_I32()[e+20>>>2>>>0]=t.getYear();var u=t.getTime();return isNaN(u)?-1:u/1e3})();return setTempRet0((tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),t>>>0};function __mmap_js(e,t,r,n,i,a,s,o){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(54,0,1,e,t,r,n,i,a,s,o);e>>>=0;var _=convertI32PairToI53Checked(i,a);s>>>=0,o>>>=0;try{if(isNaN(_))return 61;var l=SYSCALLS.getStreamFromFD(n),c=FS.mmap(l,e,_,t,r),u=c.ptr;return GROWABLE_HEAP_I32()[s>>>2>>>0]=c.allocated,GROWABLE_HEAP_U32()[o>>>2>>>0]=u,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __msync_js(e,t,r,n,i,a,s){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(55,0,1,e,t,r,n,i,a,s);e>>>=0,t>>>=0;var o=convertI32PairToI53Checked(a,s);try{return isNaN(o)?61:(SYSCALLS.doMsync(e,SYSCALLS.getStreamFromFD(i),t,n,o),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __munmap_js(e,t,r,n,i,a,s){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(56,0,1,e,t,r,n,i,a,s);e>>>=0,t>>>=0;var o=convertI32PairToI53Checked(a,s);try{var _=SYSCALLS.getStreamFromFD(i);2&r&&SYSCALLS.doMsync(e,_,t,n,o)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}__mktime_js.sig="ip",__mmap_js.sig="ipiiiiipp",__msync_js.sig="ippiiiii",__munmap_js.sig="ippiiiii";var timers={},_emscripten_get_now;function __setitimer_js(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(57,0,1,e,t);if(timers[e]&&(clearTimeout(timers[e].id),delete timers[e]),!t)return 0;var r=setTimeout((()=>{delete timers[e],callUserCallback((()=>__emscripten_timeout(e,_emscripten_get_now())))}),t);return timers[e]={id:r,timeout_ms:t},0}_emscripten_get_now=()=>performance.timeOrigin+performance.now(),_emscripten_get_now.sig="d",__setitimer_js.sig="iid";var __timegm_js=function(e){e>>>=0;var t=(()=>{var t=Date.UTC(GROWABLE_HEAP_I32()[e+20>>>2>>>0]+1900,GROWABLE_HEAP_I32()[e+16>>>2>>>0],GROWABLE_HEAP_I32()[e+12>>>2>>>0],GROWABLE_HEAP_I32()[e+8>>>2>>>0],GROWABLE_HEAP_I32()[e+4>>>2>>>0],GROWABLE_HEAP_I32()[e>>>2>>>0],0),r=new Date(t);GROWABLE_HEAP_I32()[e+24>>>2>>>0]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),i=(r.getTime()-n)/864e5|0;return GROWABLE_HEAP_I32()[e+28>>>2>>>0]=i,r.getTime()/1e3})();return setTempRet0((tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),t>>>0};__timegm_js.sig="ip";var __tzset_js=function(e,t,r,n){e>>>=0,t>>>=0,r>>>=0,n>>>=0;var i=(new Date).getFullYear(),a=new Date(i,0,1),s=new Date(i,6,1),o=a.getTimezoneOffset(),_=s.getTimezoneOffset(),l=Math.max(o,_);GROWABLE_HEAP_U32()[e>>>2>>>0]=60*l,GROWABLE_HEAP_I32()[t>>>2>>>0]=+(o!=_);var c=e=>e.toLocaleTimeString(void 0,{hour12:!1,timeZoneName:"short"}).split(" ")[1],u=c(a),d=c(s);_{abort("")};_abort.sig="v";var _emscripten_set_main_loop_timing=(e,t)=>{if(Browser.mainLoop.timingMode=e,Browser.mainLoop.timingValue=t,!Browser.mainLoop.func)return 1;if(Browser.mainLoop.running||(runtimeKeepalivePush(),Browser.mainLoop.running=!0),0==e)Browser.mainLoop.scheduler=function(){var e=0|Math.max(0,Browser.mainLoop.tickStartTime+t-_emscripten_get_now());setTimeout(Browser.mainLoop.runner,e)},Browser.mainLoop.method="timeout";else if(1==e)Browser.mainLoop.scheduler=function(){Browser.requestAnimationFrame(Browser.mainLoop.runner)},Browser.mainLoop.method="rAF";else if(2==e){if(typeof Browser.setImmediate>"u")if(typeof setImmediate>"u"){var r=[],n="setimmediate";addEventListener("message",(e=>{(e.data===n||e.data.target===n)&&(e.stopPropagation(),r.shift()())}),!0),Browser.setImmediate=function(e){r.push(e),ENVIRONMENT_IS_WORKER?(void 0===Module.setImmediates&&(Module.setImmediates=[]),Module.setImmediates.push(e),postMessage({target:n})):postMessage(n,"*")}}else Browser.setImmediate=setImmediate;Browser.mainLoop.scheduler=function(){Browser.setImmediate(Browser.mainLoop.runner)},Browser.mainLoop.method="immediate"}return 0};_emscripten_set_main_loop_timing.sig="iii";var setMainLoop=(e,t,r,n,i)=>{Browser.mainLoop.func=e,Browser.mainLoop.arg=n;var a=Browser.mainLoop.currentlyRunningMainloop;function s(){return!(a0){Date.now();var n=Browser.mainLoop.queue.shift();if(n.func(n.arg),Browser.mainLoop.remainingBlockers){var i=Browser.mainLoop.remainingBlockers,a=i%1==0?i-1:Math.floor(i);n.counted?Browser.mainLoop.remainingBlockers=a:(a+=.5,Browser.mainLoop.remainingBlockers=(8*i+a)/9)}if(Browser.mainLoop.updateStatus(),!s())return;return void setTimeout(Browser.mainLoop.runner,0)}if(s()){if(Browser.mainLoop.currentFrameNumber=Browser.mainLoop.currentFrameNumber+1|0,1==Browser.mainLoop.timingMode&&Browser.mainLoop.timingValue>1&&Browser.mainLoop.currentFrameNumber%Browser.mainLoop.timingValue!=0)return void Browser.mainLoop.scheduler();0==Browser.mainLoop.timingMode&&(Browser.mainLoop.tickStartTime=_emscripten_get_now()),Browser.mainLoop.runIter(e),s()&&("object"==typeof SDL&&(null==(r=null==(t=SDL.audio)?void 0:t.queueNewAudioData)||r.call(t)),Browser.mainLoop.scheduler())}}},i||(t&&t>0?_emscripten_set_main_loop_timing(0,1e3/t):_emscripten_set_main_loop_timing(1,1),Browser.mainLoop.scheduler()),r)throw"unwind"},safeSetTimeout=(e,t)=>(runtimeKeepalivePush(),setTimeout((()=>{runtimeKeepalivePop(),callUserCallback(e)}),t)),warnOnce=e=>{warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,ENVIRONMENT_IS_NODE&&(e="warning: "+e),err(e))},Browser={mainLoop:{running:!1,scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause(){Browser.mainLoop.scheduler=null,Browser.mainLoop.currentlyRunningMainloop++},resume(){Browser.mainLoop.currentlyRunningMainloop++;var e=Browser.mainLoop.timingMode,t=Browser.mainLoop.timingValue,r=Browser.mainLoop.func;Browser.mainLoop.func=null,setMainLoop(r,0,!1,Browser.mainLoop.arg,!0),_emscripten_set_main_loop_timing(e,t),Browser.mainLoop.scheduler()},updateStatus(){if(Module.setStatus){var e=Module.statusMessage||"Please wait...",t=Browser.mainLoop.remainingBlockers,r=Browser.mainLoop.expectedBlockers;t?t{var n=document.createElement("canvas");n.width=s.width,n.height=s.height,n.getContext("2d").drawImage(s,0,0),preloadedImages[t]=n,URL.revokeObjectURL(a),null==r||r(e)},s.onerror=e=>{err("Image ".concat(a," could not be decoded")),null==n||n()},s.src=a}};preloadPlugins.push(e);var t={canHandle:function(e){return!Module.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,r,n){var i=!1;function a(n){i||(i=!0,preloadedAudios[t]=n,null==r||r(e))}var s=new Blob([e],{type:Browser.getMimetype(t)}),o=URL.createObjectURL(s),_=new Audio;_.addEventListener("canplaythrough",(()=>a(_)),!1),_.onerror=function(r){i||(err("warning: browser could not fully decode audio ".concat(t,", trying slower base64 approach")),_.src="data:audio/x-"+t.substr(-3)+";base64,"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",n=0,i=0,a=0;a=6;){var s=n>>i-6&63;i-=6,r+=t[s]}return 2==i?(r+=t[(3&n)<<4],r+="=="):4==i&&(r+=t[(15&n)<<2],r+="="),r}(e),a(_))},_.src=o,safeSetTimeout((()=>{a(_)}),1e4)}};preloadPlugins.push(t);var r=Module.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||(()=>{}),r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),r.exitPointerLock=r.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),document.addEventListener("mspointerlockchange",n,!1),Module.elementPointerLock&&r.addEventListener("click",(e=>{!Browser.pointerLock&&Module.canvas.requestPointerLock&&(Module.canvas.requestPointerLock(),e.preventDefault())}),!1))}function n(){Browser.pointerLock=document.pointerLockElement===Module.canvas||document.mozPointerLockElement===Module.canvas||document.webkitPointerLockElement===Module.canvas||document.msPointerLockElement===Module.canvas}},createContext(e,t,r,n){if(t&&Module.ctx&&e==Module.canvas)return Module.ctx;var i,a;if(t){var s={antialias:!1,alpha:!1,majorVersion:1};if(n)for(var o in n)s[o]=n[o];typeof GL<"u"&&(a=GL.createContext(e,s))&&(i=GL.getContext(a).GLctx)}else i=e.getContext("2d");return i?(r&&(Module.ctx=i,t&&GL.makeContextCurrent(a),Module.useWebGL=t,Browser.moduleContextCreatedCallbacks.forEach((e=>e())),Browser.init()),i):null},destroyContext(e,t,r){},fullscreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullscreen(e,t){Browser.lockPointer=e,Browser.resizeCanvas=t,typeof Browser.lockPointer>"u"&&(Browser.lockPointer=!0),typeof Browser.resizeCanvas>"u"&&(Browser.resizeCanvas=!1);var r=Module.canvas;function n(){var e,t;Browser.isFullscreen=!1;var n=r.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===n?(r.exitFullscreen=Browser.exitFullscreen,Browser.lockPointer&&r.requestPointerLock(),Browser.isFullscreen=!0,Browser.resizeCanvas?Browser.setFullscreenCanvasSize():Browser.updateCanvasDimensions(r)):(n.parentNode.insertBefore(r,n),n.parentNode.removeChild(n),Browser.resizeCanvas?Browser.setWindowedCanvasSize():Browser.updateCanvasDimensions(r)),null==(e=Module.onFullScreen)||e.call(Module,Browser.isFullscreen),null==(t=Module.onFullscreen)||t.call(Module,Browser.isFullscreen)}Browser.fullscreenHandlersInstalled||(Browser.fullscreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1));var i=document.createElement("div");r.parentNode.insertBefore(i,r),i.appendChild(r),i.requestFullscreen=i.requestFullscreen||i.mozRequestFullScreen||i.msRequestFullscreen||(i.webkitRequestFullscreen?()=>i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(i.webkitRequestFullScreen?()=>i.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),i.requestFullscreen()},exitFullscreen:()=>!!Browser.isFullscreen&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0),nextRAF:0,fakeRequestAnimationFrame(e){var t=Date.now();if(0===Browser.nextRAF)Browser.nextRAF=t+1e3/60;else for(;t+2>=Browser.nextRAF;)Browser.nextRAF+=1e3/60;var r=Math.max(Browser.nextRAF-t,0);setTimeout(e,r)},requestAnimationFrame(e){"function"!=typeof requestAnimationFrame?(0,Browser.fakeRequestAnimationFrame)(e):requestAnimationFrame(e)},safeSetTimeout:(e,t)=>safeSetTimeout(e,t),safeRequestAnimationFrame:e=>(runtimeKeepalivePush(),Browser.requestAnimationFrame((()=>{runtimeKeepalivePop(),callUserCallback(e)}))),getMimetype:e=>({jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]),getUserMedia(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:e=>e.movementX||e.mozMovementX||e.webkitMovementX||0,getMovementY:e=>e.movementY||e.mozMovementY||e.webkitMovementY||0,getMouseWheelDelta(e){var t=0;switch(e.type){case"DOMMouseScroll":t=e.detail/3;break;case"mousewheel":t=e.wheelDelta/120;break;case"wheel":switch(t=e.deltaY,e.deltaMode){case 0:t/=100;break;case 1:t/=3;break;case 2:t*=80;break;default:throw"unrecognized mouse wheel delta mode: "+e.deltaMode}break;default:throw"unrecognized mouse wheel event: "+e.type}return t},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseCoords(e,t){var r=Module.canvas.getBoundingClientRect(),n=Module.canvas.width,i=Module.canvas.height,a=typeof window.scrollX<"u"?window.scrollX:window.pageXOffset,s=typeof window.scrollY<"u"?window.scrollY:window.pageYOffset,o=e-(a+r.left),_=t-(s+r.top);return{x:o*=n/r.width,y:_*=i/r.height}},setMouseCoords(e,t){let{x:r,y:n}=Browser.calculateMouseCoords(e,t);Browser.mouseMovementX=r-Browser.mouseX,Browser.mouseMovementY=n-Browser.mouseY,Browser.mouseX=r,Browser.mouseY=n},calculateMouseEvent(e){if(Browser.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?Browser.mouseMovementX=Browser.mouseMovementY=0:(Browser.mouseMovementX=Browser.getMovementX(e),Browser.mouseMovementY=Browser.getMovementY(e)),Browser.mouseX+=Browser.mouseMovementX,Browser.mouseY+=Browser.mouseMovementY;else{if("touchstart"===e.type||"touchend"===e.type||"touchmove"===e.type){var t=e.touch;if(void 0===t)return;var r=Browser.calculateMouseCoords(t.pageX,t.pageY);if("touchstart"===e.type)Browser.lastTouches[t.identifier]=r,Browser.touches[t.identifier]=r;else if("touchend"===e.type||"touchmove"===e.type){var n=Browser.touches[t.identifier];n||(n=r),Browser.lastTouches[t.identifier]=n,Browser.touches[t.identifier]=r}return}Browser.setMouseCoords(e.pageX,e.pageY)}},resizeListeners:[],updateResizeListeners(){var e=Module.canvas;Browser.resizeListeners.forEach((t=>t(e.width,e.height)))},setCanvasSize(e,t,r){var n=Module.canvas;Browser.updateCanvasDimensions(n,e,t),r||Browser.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize(){if(typeof SDL<"u"){var e=GROWABLE_HEAP_U32()[SDL.screen>>>2>>>0];e|=8388608,GROWABLE_HEAP_I32()[SDL.screen>>>2>>>0]=e}Browser.updateCanvasDimensions(Module.canvas),Browser.updateResizeListeners()},setWindowedCanvasSize(){if(typeof SDL<"u"){var e=GROWABLE_HEAP_U32()[SDL.screen>>>2>>>0];e&=-8388609,GROWABLE_HEAP_I32()[SDL.screen>>>2>>>0]=e}Browser.updateCanvasDimensions(Module.canvas),Browser.updateResizeListeners()},updateCanvasDimensions(e,t,r){t&&r?(e.widthNative=t,e.heightNative=r):(t=e.widthNative,r=e.heightNative);var n=t,i=r;if(Module.forcedAspectRatio&&Module.forcedAspectRatio>0&&(n/iAL.freeIds.length>0?AL.freeIds.pop():AL._nextId++,freeIds:[],scheduleContextAudio:e=>{if(1!==Browser.mainLoop.timingMode||"visible"==document.visibilityState)for(var t in e.sources)AL.scheduleSourceAudio(e.sources[t])},scheduleSourceAudio:(e,t)=>{if((1!==Browser.mainLoop.timingMode||"visible"==document.visibilityState)&&4114===e.state){for(var r=AL.updateSourceTime(e),n=e.bufStartTime,i=e.bufOffset,a=e.bufsProcessed,s=0;s=e.bufQueue.length){if(!e.looping)break;a%=e.bufQueue.length}var l=e.bufQueue[a%e.bufQueue.length];if(0===l.length){if(++_===e.bufQueue.length)break}else{var c;(c=e.context.audioCtx.createBufferSource()).buffer=l.audioBuf,c.playbackRate.value=e.playbackRate,(l.audioBuf._loopStart||l.audioBuf._loopEnd)&&(c.loopStart=l.audioBuf._loopStart,c.loopEnd=l.audioBuf._loopEnd);var u=0;4136===e.type&&e.looping?(u=Number.POSITIVE_INFINITY,c.loop=!0,l.audioBuf._loopStart&&(c.loopStart=l.audioBuf._loopStart),l.audioBuf._loopEnd&&(c.loopEnd=l.audioBuf._loopEnd)):u=(l.audioBuf.duration-i)/e.playbackRate,c._startOffset=i,c._duration=u,c._skipCount=_,_=0,c.connect(e.gain),typeof c.start<"u"?(n=Math.max(n,e.context.audioCtx.currentTime),c.start(n,i)):typeof c.noteOn<"u"&&(n=Math.max(n,e.context.audioCtx.currentTime),c.noteOn(n)),c._startTime=n,e.audioQueue.push(c),n+=u}i=0,a++}}},updateSourceTime:e=>{var t=e.context.audioCtx.currentTime;if(4114!==e.state)return t;isFinite(e.bufStartTime)||(e.bufStartTime=t-e.bufOffset/e.playbackRate,e.bufOffset=0);for(var r=0;e.audioQueue.length;){var n=e.audioQueue[0];if(e.bufsProcessed+=n._skipCount,t<(r=n._startTime+n._duration))break;e.audioQueue.shift(),e.bufStartTime=r,e.bufOffset=0,e.bufsProcessed++}if(e.bufsProcessed>=e.bufQueue.length&&!e.looping)AL.setSourceState(e,4116);else if(4136===e.type&&e.looping)if(0===(l=e.bufQueue[0]).length)e.bufOffset=0;else{var i=(t-e.bufStartTime)*e.playbackRate,a=l.audioBuf._loopStart||0,s=l.audioBuf._loopEnd||l.audioBuf.duration;s<=a&&(s=l.audioBuf.duration),e.bufOffset=i0&&(e.bufStartTime+=Math.floor((t-e.bufStartTime)/o)*o)}for(var _=0;_=e.bufQueue.length){if(!e.looping){AL.setSourceState(e,4116);break}e.bufsProcessed%=e.bufQueue.length}var l;if((l=e.bufQueue[e.bufsProcessed]).length>0){if(t<(r=e.bufStartTime+l.audioBuf.duration/e.playbackRate)){e.bufOffset=(t-e.bufStartTime)*e.playbackRate;break}e.bufStartTime=r}e.bufOffset=0,e.bufsProcessed++}}return t},cancelPendingSourceAudio:e=>{AL.updateSourceTime(e);for(var t=1;t1&&(e.audioQueue.length=1)},stopSourceAudio:e=>{for(var t=0;t{4114===t?((4114===e.state||4116==e.state)&&(e.bufsProcessed=0,e.bufOffset=0),AL.stopSourceAudio(e),e.state=4114,e.bufStartTime=Number.NEGATIVE_INFINITY,AL.scheduleSourceAudio(e)):4115===t?4114===e.state&&(AL.updateSourceTime(e),AL.stopSourceAudio(e),e.state=4115):4116===t?4113!==e.state&&(e.state=4116,e.bufsProcessed=e.bufQueue.length,e.bufStartTime=Number.NEGATIVE_INFINITY,e.bufOffset=0,AL.stopSourceAudio(e)):4113===t&&4113!==e.state&&(e.state=4113,e.bufsProcessed=0,e.bufStartTime=Number.NEGATIVE_INFINITY,e.bufOffset=0,AL.stopSourceAudio(e))},initSourcePanner:e=>{if(4144!==e.type){for(var t=AL.buffers[0],r=0;r{for(var t in e.sources)AL.updateSourceGlobal(e.sources[t])},updateSourceGlobal:e=>{var t=e.panner;if(t)switch(t.refDistance=e.refDistance,t.maxDistance=e.maxDistance,t.rolloffFactor=e.rolloffFactor,t.panningModel=e.context.hrtf?"HRTF":"equalpower",e.context.sourceDistanceModel?e.distanceModel:e.context.distanceModel){case 0:t.distanceModel="inverse",t.refDistance=340282e33;break;case 53249:case 53250:t.distanceModel="inverse";break;case 53251:case 53252:t.distanceModel="linear";break;case 53253:case 53254:t.distanceModel="exponential"}},updateListenerSpace:e=>{var t=e.audioCtx.listener;for(var r in t.positionX?(t.positionX.value=e.listener.position[0],t.positionY.value=e.listener.position[1],t.positionZ.value=e.listener.position[2]):t.setPosition(e.listener.position[0],e.listener.position[1],e.listener.position[2]),t.forwardX?(t.forwardX.value=e.listener.direction[0],t.forwardY.value=e.listener.direction[1],t.forwardZ.value=e.listener.direction[2],t.upX.value=e.listener.up[0],t.upY.value=e.listener.up[1],t.upZ.value=e.listener.up[2]):t.setOrientation(e.listener.direction[0],e.listener.direction[1],e.listener.direction[2],e.listener.up[0],e.listener.up[1],e.listener.up[2]),e.sources)AL.updateSourceSpace(e.sources[r])},updateSourceSpace:e=>{if(e.panner){var t=e.panner,r=e.position[0],n=e.position[1],i=e.position[2],a=e.direction[0],s=e.direction[1],o=e.direction[2],_=e.context.listener,l=_.position[0],c=_.position[1],u=_.position[2];if(e.relative){var d=-_.direction[0],p=-_.direction[1],m=-_.direction[2],f=_.up[0],h=_.up[1],g=_.up[2],v=(e,t,r)=>{var n=Math.sqrt(e*e+t*t+r*r);return n{if(4114===e.state){AL.cancelPendingSourceAudio(e);var t,r=e.audioQueue[0];if(!r)return;t=4136===e.type&&e.looping?Number.POSITIVE_INFINITY:(r.buffer.duration-r._startOffset)/e.playbackRate,r._duration=t,r.playbackRate.value=e.playbackRate,AL.scheduleSourceAudio(e)}},sourceDuration:e=>{for(var t=0,r=0;r{AL.updateSourceTime(e);for(var t=0,r=0;r{var r=4114==e.state;if(r&&AL.setSourceState(e,4113),null!==e.bufQueue[e.bufsProcessed].audioBuf){for(e.bufsProcessed=0;t>e.bufQueue[e.bufsProcessed].audioBuf.duration;)t-=e.bufQueue[e.bufsProcessed].audiobuf.duration,e.bufsProcessed++;e.bufOffset=t}r&&AL.setSourceState(e,4114)},getGlobalParam:(e,t)=>{if(!AL.currentCtx)return null;switch(t){case 49152:return AL.currentCtx.dopplerFactor;case 49155:return AL.currentCtx.speedOfSound;case 53248:return AL.currentCtx.distanceModel;default:return AL.currentCtx.err=40962,null}},setGlobalParam:(e,t,r)=>{if(AL.currentCtx)switch(t){case 49152:if(!Number.isFinite(r)||r<0)return void(AL.currentCtx.err=40963);AL.currentCtx.dopplerFactor=r,AL.updateListenerSpace(AL.currentCtx);break;case 49155:if(!Number.isFinite(r)||r<=0)return void(AL.currentCtx.err=40963);AL.currentCtx.speedOfSound=r,AL.updateListenerSpace(AL.currentCtx);break;case 53248:switch(r){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:AL.currentCtx.distanceModel=r,AL.updateContextGlobal(AL.currentCtx);break;default:return void(AL.currentCtx.err=40963)}break;default:return void(AL.currentCtx.err=40962)}},getListenerParam:(e,t)=>{if(!AL.currentCtx)return null;switch(t){case 4100:return AL.currentCtx.listener.position;case 4102:return AL.currentCtx.listener.velocity;case 4111:return AL.currentCtx.listener.direction.concat(AL.currentCtx.listener.up);case 4106:return AL.currentCtx.gain.gain.value;default:return AL.currentCtx.err=40962,null}},setListenerParam:(e,t,r)=>{if(AL.currentCtx){if(null===r)return void(AL.currentCtx.err=40962);var n=AL.currentCtx.listener;switch(t){case 4100:if(!Number.isFinite(r[0])||!Number.isFinite(r[1])||!Number.isFinite(r[2]))return void(AL.currentCtx.err=40963);n.position[0]=r[0],n.position[1]=r[1],n.position[2]=r[2],AL.updateListenerSpace(AL.currentCtx);break;case 4102:if(!Number.isFinite(r[0])||!Number.isFinite(r[1])||!Number.isFinite(r[2]))return void(AL.currentCtx.err=40963);n.velocity[0]=r[0],n.velocity[1]=r[1],n.velocity[2]=r[2],AL.updateListenerSpace(AL.currentCtx);break;case 4106:if(!Number.isFinite(r)||r<0)return void(AL.currentCtx.err=40963);AL.currentCtx.gain.gain.value=r;break;case 4111:if(!(Number.isFinite(r[0])&&Number.isFinite(r[1])&&Number.isFinite(r[2])&&Number.isFinite(r[3])&&Number.isFinite(r[4])&&Number.isFinite(r[5])))return void(AL.currentCtx.err=40963);n.direction[0]=r[0],n.direction[1]=r[1],n.direction[2]=r[2],n.up[0]=r[3],n.up[1]=r[4],n.up[2]=r[5],AL.updateListenerSpace(AL.currentCtx);break;default:return void(AL.currentCtx.err=40962)}}},getBufferParam:(e,t,r)=>{if(AL.currentCtx){var n=AL.buffers[t];if(!n||0===t)return void(AL.currentCtx.err=40961);switch(r){case 8193:return n.frequency;case 8194:return 8*n.bytesPerSample;case 8195:return n.channels;case 8196:return n.length*n.bytesPerSample*n.channels;case 8213:return 0===n.length?[0,0]:[(n.audioBuf._loopStart||0)*n.frequency,(n.audioBuf._loopEnd||n.length)*n.frequency];default:return AL.currentCtx.err=40962,null}}},setBufferParam:(e,t,r,n)=>{if(AL.currentCtx){var i=AL.buffers[t];if(!i||0===t)return void(AL.currentCtx.err=40961);if(null===n)return void(AL.currentCtx.err=40962);switch(r){case 8196:if(0!==n)return void(AL.currentCtx.err=40963);break;case 8213:if(n[0]<0||n[0]>i.length||n[1]<0||n[1]>i.Length||n[0]>=n[1])return void(AL.currentCtx.err=40963);if(i.refCount>0)return void(AL.currentCtx.err=40964);i.audioBuf&&(i.audioBuf._loopStart=n[0]/i.frequency,i.audioBuf._loopEnd=n[1]/i.frequency);break;default:return void(AL.currentCtx.err=40962)}}},getSourceParam:(e,t,r)=>{if(!AL.currentCtx)return null;var n=AL.currentCtx.sources[t];if(!n)return AL.currentCtx.err=40961,null;switch(r){case 514:return n.relative;case 4097:return n.coneInnerAngle;case 4098:return n.coneOuterAngle;case 4099:return n.pitch;case 4100:return n.position;case 4101:return n.direction;case 4102:return n.velocity;case 4103:return n.looping;case 4105:return 4136===n.type?n.bufQueue[0].id:0;case 4106:return n.gain.gain.value;case 4109:return n.minGain;case 4110:return n.maxGain;case 4112:return n.state;case 4117:return 1===n.bufQueue.length&&0===n.bufQueue[0].id?0:n.bufQueue.length;case 4118:return 1===n.bufQueue.length&&0===n.bufQueue[0].id||n.looping?0:n.bufsProcessed;case 4128:return n.refDistance;case 4129:return n.rolloffFactor;case 4130:return n.coneOuterGain;case 4131:return n.maxDistance;case 4132:return AL.sourceTell(n);case 4133:return(i=AL.sourceTell(n))>0&&(i*=n.bufQueue[0].frequency),i;case 4134:var i;return(i=AL.sourceTell(n))>0&&(i*=n.bufQueue[0].frequency*n.bufQueue[0].bytesPerSample),i;case 4135:return n.type;case 4628:return n.spatialize;case 8201:for(var a=0,s=0,o=0;o{if(AL.currentCtx){var i=AL.currentCtx.sources[t];if(!i)return void(AL.currentCtx.err=40961);if(null===n)return void(AL.currentCtx.err=40962);switch(r){case 514:if(1===n)i.relative=!0,AL.updateSourceSpace(i);else{if(0!==n)return void(AL.currentCtx.err=40963);i.relative=!1,AL.updateSourceSpace(i)}break;case 4097:if(!Number.isFinite(n))return void(AL.currentCtx.err=40963);i.coneInnerAngle=n,i.panner&&(i.panner.coneInnerAngle=n%360);break;case 4098:if(!Number.isFinite(n))return void(AL.currentCtx.err=40963);i.coneOuterAngle=n,i.panner&&(i.panner.coneOuterAngle=n%360);break;case 4099:if(!Number.isFinite(n)||n<=0)return void(AL.currentCtx.err=40963);if(i.pitch===n)break;i.pitch=n,AL.updateSourceRate(i);break;case 4100:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);i.position[0]=n[0],i.position[1]=n[1],i.position[2]=n[2],AL.updateSourceSpace(i);break;case 4101:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);i.direction[0]=n[0],i.direction[1]=n[1],i.direction[2]=n[2],AL.updateSourceSpace(i);break;case 4102:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);i.velocity[0]=n[0],i.velocity[1]=n[1],i.velocity[2]=n[2],AL.updateSourceSpace(i);break;case 4103:if(1===n)i.looping=!0,AL.updateSourceTime(i),4136===i.type&&i.audioQueue.length>0&&((a=i.audioQueue[0]).loop=!0,a._duration=Number.POSITIVE_INFINITY);else{if(0!==n)return void(AL.currentCtx.err=40963);i.looping=!1;var a,s=AL.updateSourceTime(i);4136===i.type&&i.audioQueue.length>0&&((a=i.audioQueue[0]).loop=!1,a._duration=i.bufQueue[0].audioBuf.duration/i.playbackRate,a._startTime=s-i.bufOffset/i.playbackRate)}break;case 4105:if(4114===i.state||4115===i.state)return void(AL.currentCtx.err=40964);if(0===n){for(var o in i.bufQueue)i.bufQueue[o].refCount--;i.bufQueue.length=1,i.bufQueue[0]=AL.buffers[0],i.bufsProcessed=0,i.type=4144}else{if(!(d=AL.buffers[n]))return void(AL.currentCtx.err=40963);for(var o in i.bufQueue)i.bufQueue[o].refCount--;i.bufQueue.length=0,d.refCount++,i.bufQueue=[d],i.bufsProcessed=0,i.type=4136}AL.initSourcePanner(i),AL.scheduleSourceAudio(i);break;case 4106:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);i.gain.gain.value=n;break;case 4109:if(!Number.isFinite(n)||n<0||n>Math.min(i.maxGain,1))return void(AL.currentCtx.err=40963);i.minGain=n;break;case 4110:if(!Number.isFinite(n)||n1)return void(AL.currentCtx.err=40963);i.maxGain=n;break;case 4128:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);i.refDistance=n,i.panner&&(i.panner.refDistance=n);break;case 4129:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);i.rolloffFactor=n,i.panner&&(i.panner.rolloffFactor=n);break;case 4130:if(!Number.isFinite(n)||n<0||n>1)return void(AL.currentCtx.err=40963);i.coneOuterGain=n,i.panner&&(i.panner.coneOuterGain=n);break;case 4131:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);i.maxDistance=n,i.panner&&(i.panner.maxDistance=n);break;case 4132:if(n<0||n>AL.sourceDuration(i))return void(AL.currentCtx.err=40963);AL.sourceSeek(i,n);break;case 4133:if((c=AL.sourceDuration(i))>0){var _;for(var l in i.bufQueue)if(l){_=i.bufQueue[l].frequency;break}n/=_}if(n<0||n>c)return void(AL.currentCtx.err=40963);AL.sourceSeek(i,n);break;case 4134:var c;if((c=AL.sourceDuration(i))>0){var u;for(var l in i.bufQueue)if(l){var d;u=(d=i.bufQueue[l]).frequency*d.bytesPerSample*d.channels;break}n/=u}if(n<0||n>c)return void(AL.currentCtx.err=40963);AL.sourceSeek(i,n);break;case 4628:if(0!==n&&1!==n&&2!==n)return void(AL.currentCtx.err=40963);i.spatialize=n,AL.initSourcePanner(i);break;case 8201:case 8202:case 8203:AL.currentCtx.err=40964;break;case 53248:switch(n){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:i.distanceModel=n,AL.currentCtx.sourceDistanceModel&&AL.updateContextGlobal(AL.currentCtx);break;default:return void(AL.currentCtx.err=40963)}break;default:return void(AL.currentCtx.err=40962)}}},captures:{},sharedCaptureAudioCtx:null,requireValidCaptureDevice:(e,t)=>{if(0===e)return AL.alcErr=40961,null;var r=AL.captures[e];return r?r.mediaStreamError?(AL.alcErr=40961,null):r:(AL.alcErr=40961,null)}};function _alBuffer3f(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(58,0,1,e,t,r,n,i);AL.setBufferParam("alBuffer3f",e,t,null)}function _alBuffer3i(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(59,0,1,e,t,r,n,i);AL.setBufferParam("alBuffer3i",e,t,null)}function _alBufferData(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(60,0,1,e,t,r,n,i);if(r>>>=0,AL.currentCtx){var a=AL.buffers[e];if(!a)return void(AL.currentCtx.err=40963);if(i<=0)return void(AL.currentCtx.err=40963);var s=null;try{switch(t){case 4352:if(n>0)for(var o=(s=AL.currentCtx.audioCtx.createBuffer(1,n,i)).getChannelData(0),_=0;_>>0]-1;a.bytesPerSample=1,a.channels=1,a.length=n;break;case 4353:if(n>0)for(o=(s=AL.currentCtx.audioCtx.createBuffer(1,n>>1,i)).getChannelData(0),r>>=1,_=0;_>1;++_)o[_]=30517578125e-15*GROWABLE_HEAP_I16()[r++>>>0];a.bytesPerSample=2,a.channels=1,a.length=n>>1;break;case 4354:if(n>0){o=(s=AL.currentCtx.audioCtx.createBuffer(2,n>>1,i)).getChannelData(0);var l=s.getChannelData(1);for(_=0;_>1;++_)o[_]=.0078125*GROWABLE_HEAP_U8()[r++>>>0]-1,l[_]=.0078125*GROWABLE_HEAP_U8()[r++>>>0]-1}a.bytesPerSample=1,a.channels=2,a.length=n>>1;break;case 4355:if(n>0)for(o=(s=AL.currentCtx.audioCtx.createBuffer(2,n>>2,i)).getChannelData(0),l=s.getChannelData(1),r>>=1,_=0;_>2;++_)o[_]=30517578125e-15*GROWABLE_HEAP_I16()[r++>>>0],l[_]=30517578125e-15*GROWABLE_HEAP_I16()[r++>>>0];a.bytesPerSample=2,a.channels=2,a.length=n>>2;break;case 65552:if(n>0)for(o=(s=AL.currentCtx.audioCtx.createBuffer(1,n>>2,i)).getChannelData(0),r>>=2,_=0;_>2;++_)o[_]=GROWABLE_HEAP_F32()[r++>>>0];a.bytesPerSample=4,a.channels=1,a.length=n>>2;break;case 65553:if(n>0)for(o=(s=AL.currentCtx.audioCtx.createBuffer(2,n>>3,i)).getChannelData(0),l=s.getChannelData(1),r>>=2,_=0;_>3;++_)o[_]=GROWABLE_HEAP_F32()[r++>>>0],l[_]=GROWABLE_HEAP_F32()[r++>>>0];a.bytesPerSample=4,a.channels=2,a.length=n>>3;break;default:return void(AL.currentCtx.err=40963)}a.frequency=i,a.audioBuf=s}catch(e){return void(AL.currentCtx.err=40963)}}}function _alBufferf(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(61,0,1,e,t,r);AL.setBufferParam("alBufferf",e,t,null)}function _alBufferfv(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(62,0,1,e,t,r);if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);AL.setBufferParam("alBufferfv",e,t,null)}}function _alBufferi(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(63,0,1,e,t,r);AL.setBufferParam("alBufferi",e,t,null)}function _alBufferiv(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(64,0,1,e,t,r);if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);8213===t?(AL.paramArray[0]=GROWABLE_HEAP_I32()[r>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_I32()[r+4>>>2>>>0],AL.setBufferParam("alBufferiv",e,t,AL.paramArray)):AL.setBufferParam("alBufferiv",e,t,null)}}function _alDeleteBuffers(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(65,0,1,e,t);if(t>>>=0,AL.currentCtx){for(var r=0;r>>2>>>0])){if(!AL.buffers[n])return void(AL.currentCtx.err=40961);if(AL.buffers[n].refCount)return void(AL.currentCtx.err=40964)}for(r=0;r>>2>>>0])&&(AL.deviceRefCounts[AL.buffers[n].deviceId]--,delete AL.buffers[n],AL.freeIds.push(n))}}}function _alSourcei(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(67,0,1,e,t,r);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:AL.setSourceParam("alSourcei",e,t,r);break;default:AL.setSourceParam("alSourcei",e,t,null)}}function _alDeleteSources(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(66,0,1,e,t);if(t>>>=0,AL.currentCtx){for(var r=0;r>>2>>>0];if(!AL.currentCtx.sources[n])return void(AL.currentCtx.err=40961)}for(r=0;r>>2>>>0],AL.setSourceState(AL.currentCtx.sources[n],4116),_alSourcei(n,4105,0),delete AL.currentCtx.sources[n],AL.freeIds.push(n)}}function _alDisable(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(68,0,1,e);if(AL.currentCtx){if("AL_SOURCE_DISTANCE_MODEL"!==e)return void(AL.currentCtx.err=40962);AL.currentCtx.sourceDistanceModel=!1,AL.updateContextGlobal(AL.currentCtx)}}function _alDistanceModel(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(69,0,1,e);AL.setGlobalParam("alDistanceModel",53248,e)}function _alDopplerFactor(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(70,0,1,e);AL.setGlobalParam("alDopplerFactor",49152,e)}function _alDopplerVelocity(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(71,0,1,e);warnOnce("alDopplerVelocity() is deprecated, and only kept for compatibility with OpenAL 1.0. Use alSpeedOfSound() instead."),AL.currentCtx&&e<=0&&(AL.currentCtx.err=40963)}function _alEnable(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(72,0,1,e);if(AL.currentCtx){if("AL_SOURCE_DISTANCE_MODEL"!==e)return void(AL.currentCtx.err=40962);AL.currentCtx.sourceDistanceModel=!0,AL.updateContextGlobal(AL.currentCtx)}}function _alGenBuffers(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(73,0,1,e,t);if(t>>>=0,AL.currentCtx)for(var r=0;r>>2>>>0]=n.id}}function _alGenSources(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(74,0,1,e,t);if(t>>>=0,AL.currentCtx)for(var r=0;r>>2>>>0]=i.id}}function _alGetBoolean(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(75,0,1,e);var t=AL.getGlobalParam("alGetBoolean",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return 0!==t?1:0;default:return AL.currentCtx.err=40962,0}}function _alGetBooleanv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(76,0,1,e,t);t>>>=0;var r=AL.getGlobalParam("alGetBooleanv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:GROWABLE_HEAP_I8()[t>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetBuffer3f(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(77,0,1,e,t,r,n,i);if(r>>>=0,n>>>=0,i>>>=0,null!==AL.getBufferParam("alGetBuffer3f",e,t)){if(!r||!n||!i)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBuffer3i(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(78,0,1,e,t,r,n,i);if(r>>>=0,n>>>=0,i>>>=0,null!==AL.getBufferParam("alGetBuffer3i",e,t)){if(!r||!n||!i)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferf(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(79,0,1,e,t,r);if(r>>>=0,null!==AL.getBufferParam("alGetBufferf",e,t)){if(!r)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferfv(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(80,0,1,e,t,r);if(r>>>=0,null!==AL.getBufferParam("alGetBufferfv",e,t)){if(!r)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferi(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(81,0,1,e,t,r);r>>>=0;var n=AL.getBufferParam("alGetBufferi",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 8193:case 8194:case 8195:case 8196:GROWABLE_HEAP_I32()[r>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetBufferiv(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(82,0,1,e,t,r);r>>>=0;var n=AL.getBufferParam("alGetBufferiv",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 8193:case 8194:case 8195:case 8196:GROWABLE_HEAP_I32()[r>>>2>>>0]=n;break;case 8213:GROWABLE_HEAP_I32()[r>>>2>>>0]=n[0],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=n[1];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetDouble(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(83,0,1,e);var t=AL.getGlobalParam("alGetDouble",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return AL.currentCtx.err=40962,0}}function _alGetDoublev(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(84,0,1,e,t);t>>>=0;var r=AL.getGlobalParam("alGetDoublev",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:GROWABLE_HEAP_F64()[t>>>3>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetEnumValue(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(85,0,1,e);if(e>>>=0,!AL.currentCtx)return 0;if(!e)return AL.currentCtx.err=40963,0;switch(UTF8ToString(e)){case"AL_BITS":return 8194;case"AL_BUFFER":return 4105;case"AL_BUFFERS_PROCESSED":return 4118;case"AL_BUFFERS_QUEUED":return 4117;case"AL_BYTE_OFFSET":return 4134;case"AL_CHANNELS":return 8195;case"AL_CONE_INNER_ANGLE":return 4097;case"AL_CONE_OUTER_ANGLE":return 4098;case"AL_CONE_OUTER_GAIN":return 4130;case"AL_DIRECTION":return 4101;case"AL_DISTANCE_MODEL":return 53248;case"AL_DOPPLER_FACTOR":return 49152;case"AL_DOPPLER_VELOCITY":return 49153;case"AL_EXPONENT_DISTANCE":return 53253;case"AL_EXPONENT_DISTANCE_CLAMPED":return 53254;case"AL_EXTENSIONS":return 45060;case"AL_FORMAT_MONO16":return 4353;case"AL_FORMAT_MONO8":return 4352;case"AL_FORMAT_STEREO16":return 4355;case"AL_FORMAT_STEREO8":return 4354;case"AL_FREQUENCY":return 8193;case"AL_GAIN":return 4106;case"AL_INITIAL":return 4113;case"AL_INVALID":return-1;case"AL_ILLEGAL_ENUM":case"AL_INVALID_ENUM":return 40962;case"AL_INVALID_NAME":return 40961;case"AL_ILLEGAL_COMMAND":case"AL_INVALID_OPERATION":return 40964;case"AL_INVALID_VALUE":return 40963;case"AL_INVERSE_DISTANCE":return 53249;case"AL_INVERSE_DISTANCE_CLAMPED":return 53250;case"AL_LINEAR_DISTANCE":return 53251;case"AL_LINEAR_DISTANCE_CLAMPED":return 53252;case"AL_LOOPING":return 4103;case"AL_MAX_DISTANCE":return 4131;case"AL_MAX_GAIN":return 4110;case"AL_MIN_GAIN":return 4109;case"AL_NONE":case"AL_NO_ERROR":return 0;case"AL_ORIENTATION":return 4111;case"AL_OUT_OF_MEMORY":return 40965;case"AL_PAUSED":return 4115;case"AL_PENDING":return 8209;case"AL_PITCH":return 4099;case"AL_PLAYING":return 4114;case"AL_POSITION":return 4100;case"AL_PROCESSED":return 8210;case"AL_REFERENCE_DISTANCE":return 4128;case"AL_RENDERER":return 45059;case"AL_ROLLOFF_FACTOR":return 4129;case"AL_SAMPLE_OFFSET":return 4133;case"AL_SEC_OFFSET":return 4132;case"AL_SIZE":return 8196;case"AL_SOURCE_RELATIVE":return 514;case"AL_SOURCE_STATE":return 4112;case"AL_SOURCE_TYPE":return 4135;case"AL_SPEED_OF_SOUND":return 49155;case"AL_STATIC":return 4136;case"AL_STOPPED":return 4116;case"AL_STREAMING":return 4137;case"AL_UNDETERMINED":return 4144;case"AL_UNUSED":return 8208;case"AL_VELOCITY":return 4102;case"AL_VENDOR":return 45057;case"AL_VERSION":return 45058;case"AL_AUTO_SOFT":return 2;case"AL_SOURCE_DISTANCE_MODEL":return 512;case"AL_SOURCE_SPATIALIZE_SOFT":return 4628;case"AL_LOOP_POINTS_SOFT":return 8213;case"AL_BYTE_LENGTH_SOFT":return 8201;case"AL_SAMPLE_LENGTH_SOFT":return 8202;case"AL_SEC_LENGTH_SOFT":return 8203;case"AL_FORMAT_MONO_FLOAT32":return 65552;case"AL_FORMAT_STEREO_FLOAT32":return 65553;default:return AL.currentCtx.err=40963,0}}function _alGetError(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(86,0,1);if(!AL.currentCtx)return 40964;var e=AL.currentCtx.err;return AL.currentCtx.err=0,e}function _alGetFloat(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(87,0,1,e);var t=AL.getGlobalParam("alGetFloat",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return 0}}function _alGetFloatv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(88,0,1,e,t);t>>>=0;var r=AL.getGlobalParam("alGetFloatv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:GROWABLE_HEAP_F32()[t>>>2>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetInteger(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(89,0,1,e);var t=AL.getGlobalParam("alGetInteger",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return AL.currentCtx.err=40962,0}}function _alGetIntegerv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(90,0,1,e,t);t>>>=0;var r=AL.getGlobalParam("alGetIntegerv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:GROWABLE_HEAP_I32()[t>>>2>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetListener3f(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(91,0,1,e,t,r,n);t>>>=0,r>>>=0,n>>>=0;var i=AL.getListenerParam("alGetListener3f",e);if(null!==i){if(!t||!r||!n)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:GROWABLE_HEAP_F32()[t>>>2>>>0]=i[0],GROWABLE_HEAP_F32()[r>>>2>>>0]=i[1],GROWABLE_HEAP_F32()[n>>>2>>>0]=i[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListener3i(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(92,0,1,e,t,r,n);t>>>=0,r>>>=0,n>>>=0;var i=AL.getListenerParam("alGetListener3i",e);if(null!==i){if(!t||!r||!n)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:GROWABLE_HEAP_I32()[t>>>2>>>0]=i[0],GROWABLE_HEAP_I32()[r>>>2>>>0]=i[1],GROWABLE_HEAP_I32()[n>>>2>>>0]=i[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListenerf(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(93,0,1,e,t);t>>>=0;var r=AL.getListenerParam("alGetListenerf",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);if(4106!==e)return void(AL.currentCtx.err=40962);GROWABLE_HEAP_F32()[t>>>2>>>0]=r}}function _alGetListenerfv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(94,0,1,e,t);t>>>=0;var r=AL.getListenerParam("alGetListenerfv",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:GROWABLE_HEAP_F32()[t>>>2>>>0]=r[0],GROWABLE_HEAP_F32()[t+4>>>2>>>0]=r[1],GROWABLE_HEAP_F32()[t+8>>>2>>>0]=r[2];break;case 4111:GROWABLE_HEAP_F32()[t>>>2>>>0]=r[0],GROWABLE_HEAP_F32()[t+4>>>2>>>0]=r[1],GROWABLE_HEAP_F32()[t+8>>>2>>>0]=r[2],GROWABLE_HEAP_F32()[t+12>>>2>>>0]=r[3],GROWABLE_HEAP_F32()[t+16>>>2>>>0]=r[4],GROWABLE_HEAP_F32()[t+20>>>2>>>0]=r[5];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListeneri(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(95,0,1,e,t);if(t>>>=0,null!==AL.getListenerParam("alGetListeneri",e)){if(!t)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetListeneriv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(96,0,1,e,t);t>>>=0;var r=AL.getListenerParam("alGetListeneriv",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:GROWABLE_HEAP_I32()[t>>>2>>>0]=r[0],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=r[1],GROWABLE_HEAP_I32()[t+8>>>2>>>0]=r[2];break;case 4111:GROWABLE_HEAP_I32()[t>>>2>>>0]=r[0],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=r[1],GROWABLE_HEAP_I32()[t+8>>>2>>>0]=r[2],GROWABLE_HEAP_I32()[t+12>>>2>>>0]=r[3],GROWABLE_HEAP_I32()[t+16>>>2>>>0]=r[4],GROWABLE_HEAP_I32()[t+20>>>2>>>0]=r[5];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSource3f(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(97,0,1,e,t,r,n,i);r>>>=0,n>>>=0,i>>>=0;var a=AL.getSourceParam("alGetSource3f",e,t);if(null!==a){if(!r||!n||!i)return void(AL.currentCtx.err=40963);switch(t){case 4100:case 4101:case 4102:GROWABLE_HEAP_F32()[r>>>2>>>0]=a[0],GROWABLE_HEAP_F32()[n>>>2>>>0]=a[1],GROWABLE_HEAP_F32()[i>>>2>>>0]=a[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSource3i(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(98,0,1,e,t,r,n,i);r>>>=0,n>>>=0,i>>>=0;var a=AL.getSourceParam("alGetSource3i",e,t);if(null!==a){if(!r||!n||!i)return void(AL.currentCtx.err=40963);switch(t){case 4100:case 4101:case 4102:GROWABLE_HEAP_I32()[r>>>2>>>0]=a[0],GROWABLE_HEAP_I32()[n>>>2>>>0]=a[1],GROWABLE_HEAP_I32()[i>>>2>>>0]=a[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcef(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(99,0,1,e,t,r);r>>>=0;var n=AL.getSourceParam("alGetSourcef",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:GROWABLE_HEAP_F32()[r>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcefv(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(100,0,1,e,t,r);r>>>=0;var n=AL.getSourceParam("alGetSourcefv",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:GROWABLE_HEAP_F32()[r>>>2>>>0]=n[0];break;case 4100:case 4101:case 4102:GROWABLE_HEAP_F32()[r>>>2>>>0]=n[0],GROWABLE_HEAP_F32()[r+4>>>2>>>0]=n[1],GROWABLE_HEAP_F32()[r+8>>>2>>>0]=n[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcei(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(101,0,1,e,t,r);r>>>=0;var n=AL.getSourceParam("alGetSourcei",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:GROWABLE_HEAP_I32()[r>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourceiv(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(102,0,1,e,t,r);r>>>=0;var n=AL.getSourceParam("alGetSourceiv",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:GROWABLE_HEAP_I32()[r>>>2>>>0]=n;break;case 4100:case 4101:case 4102:GROWABLE_HEAP_I32()[r>>>2>>>0]=n[0],GROWABLE_HEAP_I32()[r+4>>>2>>>0]=n[1],GROWABLE_HEAP_I32()[r+8>>>2>>>0]=n[2];break;default:return void(AL.currentCtx.err=40962)}}}_alBuffer3f.sig="viifff",_alBuffer3i.sig="viiiii",_alBufferData.sig="viipii",_alBufferf.sig="viif",_alBufferfv.sig="viip",_alBufferi.sig="viii",_alBufferiv.sig="viip",_alDeleteBuffers.sig="vip",_alSourcei.sig="viii",_alDeleteSources.sig="vip",_alDisable.sig="vi",_alDistanceModel.sig="vi",_alDopplerFactor.sig="vf",_alDopplerVelocity.sig="vf",_alEnable.sig="vi",_alGenBuffers.sig="vip",_alGenSources.sig="vip",_alGetBoolean.sig="ii",_alGetBooleanv.sig="vip",_alGetBuffer3f.sig="viippp",_alGetBuffer3i.sig="viippp",_alGetBufferf.sig="viip",_alGetBufferfv.sig="viip",_alGetBufferi.sig="viip",_alGetBufferiv.sig="viip",_alGetDouble.sig="di",_alGetDoublev.sig="vip",_alGetEnumValue.sig="ip",_alGetError.sig="i",_alGetFloat.sig="fi",_alGetFloatv.sig="vip",_alGetInteger.sig="ii",_alGetIntegerv.sig="vip",_alGetListener3f.sig="vippp",_alGetListener3i.sig="vippp",_alGetListenerf.sig="vip",_alGetListenerfv.sig="vip",_alGetListeneri.sig="vip",_alGetListeneriv.sig="vip",_alGetSource3f.sig="viippp",_alGetSource3i.sig="viippp",_alGetSourcef.sig="viip",_alGetSourcefv.sig="viip",_alGetSourcei.sig="viip",_alGetSourceiv.sig="viip";var stringToNewUTF8=e=>{var t=lengthBytesUTF8(e)+1,r=_malloc(t);return r&&stringToUTF8(e,r,t),r};function _alGetString(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(103,0,1,e);if(AL.stringCache[e])return AL.stringCache[e];var t;switch(e){case 0:t="No Error";break;case 40961:t="Invalid Name";break;case 40962:t="Invalid Enum";break;case 40963:t="Invalid Value";break;case 40964:t="Invalid Operation";break;case 40965:t="Out of Memory";break;case 45057:t="Emscripten";break;case 45058:t="1.1";break;case 45059:t="WebAudio";break;case 45060:for(var r in t="",AL.AL_EXTENSIONS)t=(t=t.concat(r)).concat(" ");t=t.trim();break;default:return AL.currentCtx&&(AL.currentCtx.err=40962),0}return t=stringToNewUTF8(t),AL.stringCache[e]=t,t}function _alIsBuffer(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(104,0,1,e):!(!AL.currentCtx||e>AL.buffers.length||!AL.buffers[e])}function _alIsEnabled(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(105,0,1,e):AL.currentCtx?"AL_SOURCE_DISTANCE_MODEL"===e?AL.currentCtx.sourceDistanceModel?0:1:(AL.currentCtx.err=40962,0):0}function _alIsExtensionPresent(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(106,0,1,e);var t=UTF8ToString(e>>>=0);return AL.AL_EXTENSIONS[t]?1:0}function _alIsSource(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(107,0,1,e):!(!AL.currentCtx||!AL.currentCtx.sources[e])}function _alListener3f(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(108,0,1,e,t,r,n);switch(e){case 4100:case 4102:AL.paramArray[0]=t,AL.paramArray[1]=r,AL.paramArray[2]=n,AL.setListenerParam("alListener3f",e,AL.paramArray);break;default:AL.setListenerParam("alListener3f",e,null)}}function _alListener3i(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(109,0,1,e,t,r,n);switch(e){case 4100:case 4102:AL.paramArray[0]=t,AL.paramArray[1]=r,AL.paramArray[2]=n,AL.setListenerParam("alListener3i",e,AL.paramArray);break;default:AL.setListenerParam("alListener3i",e,null)}}function _alListenerf(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(110,0,1,e,t);4106===e?AL.setListenerParam("alListenerf",e,t):AL.setListenerParam("alListenerf",e,null)}function _alListenerfv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(111,0,1,e,t);if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:AL.paramArray[0]=GROWABLE_HEAP_F32()[t>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_F32()[t+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_F32()[t+8>>>2>>>0],AL.setListenerParam("alListenerfv",e,AL.paramArray);break;case 4111:AL.paramArray[0]=GROWABLE_HEAP_F32()[t>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_F32()[t+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_F32()[t+8>>>2>>>0],AL.paramArray[3]=GROWABLE_HEAP_F32()[t+12>>>2>>>0],AL.paramArray[4]=GROWABLE_HEAP_F32()[t+16>>>2>>>0],AL.paramArray[5]=GROWABLE_HEAP_F32()[t+20>>>2>>>0],AL.setListenerParam("alListenerfv",e,AL.paramArray);break;default:AL.setListenerParam("alListenerfv",e,null)}}}function _alListeneri(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(112,0,1,e,t);AL.setListenerParam("alListeneri",e,null)}function _alListeneriv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(113,0,1,e,t);if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:AL.paramArray[0]=GROWABLE_HEAP_I32()[t>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_I32()[t+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_I32()[t+8>>>2>>>0],AL.setListenerParam("alListeneriv",e,AL.paramArray);break;case 4111:AL.paramArray[0]=GROWABLE_HEAP_I32()[t>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_I32()[t+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_I32()[t+8>>>2>>>0],AL.paramArray[3]=GROWABLE_HEAP_I32()[t+12>>>2>>>0],AL.paramArray[4]=GROWABLE_HEAP_I32()[t+16>>>2>>>0],AL.paramArray[5]=GROWABLE_HEAP_I32()[t+20>>>2>>>0],AL.setListenerParam("alListeneriv",e,AL.paramArray);break;default:AL.setListenerParam("alListeneriv",e,null)}}}function _alSource3f(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(114,0,1,e,t,r,n,i);switch(t){case 4100:case 4101:case 4102:AL.paramArray[0]=r,AL.paramArray[1]=n,AL.paramArray[2]=i,AL.setSourceParam("alSource3f",e,t,AL.paramArray);break;default:AL.setSourceParam("alSource3f",e,t,null)}}function _alSource3i(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(115,0,1,e,t,r,n,i);switch(t){case 4100:case 4101:case 4102:AL.paramArray[0]=r,AL.paramArray[1]=n,AL.paramArray[2]=i,AL.setSourceParam("alSource3i",e,t,AL.paramArray);break;default:AL.setSourceParam("alSource3i",e,t,null)}}function _alSourcePause(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(116,0,1,e);if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4115)}}function _alSourcePausev(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(117,0,1,e,t);if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4115)}}}function _alSourcePlay(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(118,0,1,e);if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4114)}}function _alSourcePlayv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(119,0,1,e,t);if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4114)}}}function _alSourceQueueBuffers(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(120,0,1,e,t,r);if(r>>>=0,AL.currentCtx){var n=AL.currentCtx.sources[e];if(!n)return void(AL.currentCtx.err=40961);if(4136===n.type)return void(AL.currentCtx.err=40964);if(0!==t){for(var i=AL.buffers[0],a=0;a>>2>>>0];if(!(o=AL.buffers[s]))return void(AL.currentCtx.err=40961);0!==i.id&&(o.frequency!==i.frequency||o.bytesPerSample!==i.bytesPerSample||o.channels!==i.channels)&&(AL.currentCtx.err=40964)}for(1===n.bufQueue.length&&0===n.bufQueue[0].id&&(n.bufQueue.length=0),n.type=4137,a=0;a>>2>>>0],(o=AL.buffers[s]).refCount++,n.bufQueue.push(o)}n.looping&&AL.cancelPendingSourceAudio(n),AL.initSourcePanner(n),AL.scheduleSourceAudio(n)}}}function _alSourceRewind(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(121,0,1,e);if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4116),AL.setSourceState(t,4113)}}function _alSourceRewindv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(122,0,1,e,t);if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4113)}}}function _alSourceStop(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(123,0,1,e);if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4116)}}function _alSourceStopv(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(124,0,1,e,t);if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4116)}}}function _alSourceUnqueueBuffers(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(125,0,1,e,t,r);if(r>>>=0,AL.currentCtx){var n=AL.currentCtx.sources[e];if(!n)return void(AL.currentCtx.err=40961);if(t>(1===n.bufQueue.length&&0===n.bufQueue[0].id?0:n.bufsProcessed))return void(AL.currentCtx.err=40963);if(0!==t){for(var i=0;i>>2>>>0]=a.id,n.bufsProcessed--}0===n.bufQueue.length&&n.bufQueue.push(AL.buffers[0]),AL.initSourcePanner(n),AL.scheduleSourceAudio(n)}}}function _alSourcef(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(126,0,1,e,t,r);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:AL.setSourceParam("alSourcef",e,t,r);break;default:AL.setSourceParam("alSourcef",e,t,null)}}function _alSourcefv(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(127,0,1,e,t,r);if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:var n=GROWABLE_HEAP_F32()[r>>>2>>>0];AL.setSourceParam("alSourcefv",e,t,n);break;case 4100:case 4101:case 4102:AL.paramArray[0]=GROWABLE_HEAP_F32()[r>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_F32()[r+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_F32()[r+8>>>2>>>0],AL.setSourceParam("alSourcefv",e,t,AL.paramArray);break;default:AL.setSourceParam("alSourcefv",e,t,null)}}}function _alSourceiv(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(128,0,1,e,t,r);if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:var n=GROWABLE_HEAP_I32()[r>>>2>>>0];AL.setSourceParam("alSourceiv",e,t,n);break;case 4100:case 4101:case 4102:AL.paramArray[0]=GROWABLE_HEAP_I32()[r>>>2>>>0],AL.paramArray[1]=GROWABLE_HEAP_I32()[r+4>>>2>>>0],AL.paramArray[2]=GROWABLE_HEAP_I32()[r+8>>>2>>>0],AL.setSourceParam("alSourceiv",e,t,AL.paramArray);break;default:AL.setSourceParam("alSourceiv",e,t,null)}}}function _alSpeedOfSound(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(129,0,1,e);AL.setGlobalParam("alSpeedOfSound",49155,e)}_alGetString.sig="pi",_alIsBuffer.sig="ii",_alIsEnabled.sig="ii",_alIsExtensionPresent.sig="ip",_alIsSource.sig="ii",_alListener3f.sig="vifff",_alListener3i.sig="viiii",_alListenerf.sig="vif",_alListenerfv.sig="vip",_alListeneri.sig="vii",_alListeneriv.sig="vip",_alSource3f.sig="viifff",_alSource3i.sig="viiiii",_alSourcePause.sig="vi",_alSourcePausev.sig="vip",_alSourcePlay.sig="vi",_alSourcePlayv.sig="vip",_alSourceQueueBuffers.sig="viip",_alSourceRewind.sig="vi",_alSourceRewindv.sig="vip",_alSourceStop.sig="vi",_alSourceStopv.sig="vip",_alSourceUnqueueBuffers.sig="viip",_alSourcef.sig="viif",_alSourcefv.sig="viip",_alSourceiv.sig="viip",_alSpeedOfSound.sig="vf";var _alcCaptureCloseDevice=function(e){var t,r,n,i;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(130,0,1,e);e>>>=0;var a=AL.requireValidCaptureDevice(e,"alcCaptureCloseDevice");return!!a&&(delete AL.captures[e],AL.freeIds.push(e),null==(t=a.mediaStreamSourceNode)||t.disconnect(),null==(r=a.mergerNode)||r.disconnect(),null==(n=a.splitterNode)||n.disconnect(),null==(i=a.scriptProcessorNode)||i.disconnect(),a.mediaStream&&a.mediaStream.getTracks().forEach((e=>e.stop())),delete a.buffers,a.capturedFrameCount=0,a.isCapturing=!1,!0)};_alcCaptureCloseDevice.sig="ip";var listenOnce=(e,t,r)=>{e.addEventListener(t,r,{once:!0})},autoResumeAudioContext=(e,t)=>{t||(t=[document,document.getElementById("canvas")]),["keydown","mousedown","touchstart"].forEach((r=>{t.forEach((t=>{t&&listenOnce(t,r,(()=>{"suspended"===e.state&&e.resume()}))}))}))};function _alcCaptureOpenDevice(e,t,r,n){var i;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(131,0,1,e,t,r,n);e>>>=0;var a=AL.CAPTURE_DEVICE_NAME;if(0!==e&&(a=UTF8ToString(e))!==AL.CAPTURE_DEVICE_NAME)return AL.alcErr=40965,0;if(n<0)return AL.alcErr=40964,0;if(navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,!(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return AL.alcErr=40965,0;var s,o,_,l=window.AudioContext||window.webkitAudioContext;if(!AL.sharedCaptureAudioCtx)try{AL.sharedCaptureAudioCtx=new l}catch(e){return AL.alcErr=40965,0}switch(autoResumeAudioContext(AL.sharedCaptureAudioCtx),r){case 65552:case 4353:case 4352:s=1;break;case 65553:case 4355:case 4354:s=2;break;default:return AL.alcErr=40964,0}switch(r){case 65552:case 65553:o="f32",_=function(e){return new Float32Array(e)};break;case 4353:case 4355:o="i16",_=function(e){return new Int16Array(e)};break;case 4352:case 4354:o="u8",_=function(e){return new Uint8Array(e)}}var c=[];try{for(var u=0;u{d.mediaStreamError=e},m=e=>{d.mediaStreamSourceNode=d.audioCtx.createMediaStreamSource(e),d.mediaStream=e;var t=1;switch(d.mediaStreamSourceNode.channelCountMode){case"max":t=s;break;case"clamped-max":t=Math.min(s,d.mediaStreamSourceNode.channelCount);break;case"explicit":t=d.mediaStreamSourceNode.channelCount}d.inputChannelCount=t,d.scriptProcessorNode=d.audioCtx.createScriptProcessor(512,t,s),t>s?(d.mergerNode=d.audioCtx.createChannelMerger(t),d.mediaStreamSourceNode.connect(d.mergerNode),d.mergerNode.connect(d.scriptProcessorNode)):t{if(d.isCapturing){var t=d,n=e.inputBuffer;switch(r){case 65552:for(var i=n.getChannelData(0),a=0;a>>=0,t>>>=0;var n=AL.requireValidCaptureDevice(e,"alcCaptureSamples");if(n){var i=n.requestedSampleRate,a=n.audioCtx.sampleRate/i;if(r<0||r>n.capturedFrameCount/a)AL.alcErr=40964;else{var s;switch(n.requestedSampleType){case"f32":s=function(e,r){GROWABLE_HEAP_F32()[t+4*e>>>2>>>0]=r};break;case"i16":s=function(e,r){GROWABLE_HEAP_I16()[t+2*e>>>1>>>0]=r};break;case"u8":s=function(e,r){GROWABLE_HEAP_I8()[t+e>>>0]=r};break;default:return}if(Math.floor(a)==a)for(var o=0,_=0;_>>=0;var t=AL.requireValidCaptureDevice(e,"alcCaptureStart");t&&(t.isCapturing||(t.isCapturing=!0,t.capturedFrameCount=0,t.capturePlayhead=0))}function _alcCaptureStop(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(134,0,1,e);e>>>=0;var t=AL.requireValidCaptureDevice(e,"alcCaptureStop");t&&(t.isCapturing=!1)}function _alcCloseDevice(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(135,0,1,e):!((e>>>=0)in AL.deviceRefCounts)||AL.deviceRefCounts[e]>0?0:(delete AL.deviceRefCounts[e],AL.freeIds.push(e),1)}function _alcCreateContext(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(136,0,1,e,t);if(t>>>=0,!((e>>>=0)in AL.deviceRefCounts))return AL.alcErr=40961,0;var r=null,n=[],i=null;if(t>>=2)for(var a=0,s=0;a=GROWABLE_HEAP_I32()[t++>>>0],n.push(a),0!==a;)switch(s=GROWABLE_HEAP_I32()[t++>>>0],n.push(s),a){case 4103:r||(r={}),r.sampleRate=s;break;case 4112:case 4113:break;case 6546:switch(s){case 0:i=!1;break;case 1:i=!0;break;case 2:break;default:return AL.alcErr=40964,0}break;case 6550:if(0!==s)return AL.alcErr=40964,0;break;default:return AL.alcErr=40964,0}var o=window.AudioContext||window.webkitAudioContext,_=null;try{_=r?new o(r):new o}catch(e){return"NotSupportedError"===e.name?AL.alcErr=40964:AL.alcErr=40961,0}autoResumeAudioContext(_),typeof _.createGain>"u"&&(_.createGain=_.createGainNode);var l=_.createGain();l.connect(_.destination);var c={deviceId:e,id:AL.newId(),attrs:n,audioCtx:_,listener:{position:[0,0,0],velocity:[0,0,0],direction:[0,0,0],up:[0,0,0]},sources:[],interval:setInterval((()=>AL.scheduleContextAudio(c)),AL.QUEUE_INTERVAL),gain:l,distanceModel:53250,speedOfSound:343.3,dopplerFactor:1,sourceDistanceModel:!1,hrtf:i||!1,_err:0,get err(){return this._err},set err(e){(0===this._err||0===e)&&(this._err=e)}};if(AL.deviceRefCounts[e]++,AL.contexts[c.id]=c,null!==i)for(var u in AL.contexts){var d=AL.contexts[u];d.deviceId===e&&(d.hrtf=i,AL.updateContextGlobal(d))}return c.id}function _alcDestroyContext(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(137,0,1,e);e>>>=0;var t=AL.contexts[e];AL.currentCtx!==t?(AL.contexts[e].interval&&clearInterval(AL.contexts[e].interval),AL.deviceRefCounts[t.deviceId]--,delete AL.contexts[e],AL.freeIds.push(e)):AL.alcErr=40962}function _alcGetContextsDevice(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(138,0,1,e):(e>>>=0)in AL.contexts?AL.contexts[e].deviceId:0}function _alcGetCurrentContext(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(139,0,1):null!==AL.currentCtx?AL.currentCtx.id:0}function _alcGetEnumValue(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(140,0,1,e,t);if(t>>>=0,0!=(e>>>=0)&&!(e in AL.deviceRefCounts))return 0;if(!t)return AL.alcErr=40964,0;switch(UTF8ToString(t)){case"ALC_NO_ERROR":case"ALC_HRTF_DISABLED_SOFT":return 0;case"ALC_INVALID_DEVICE":return 40961;case"ALC_INVALID_CONTEXT":return 40962;case"ALC_INVALID_ENUM":return 40963;case"ALC_INVALID_VALUE":return 40964;case"ALC_OUT_OF_MEMORY":return 40965;case"ALC_MAJOR_VERSION":return 4096;case"ALC_MINOR_VERSION":return 4097;case"ALC_ATTRIBUTES_SIZE":return 4098;case"ALC_ALL_ATTRIBUTES":return 4099;case"ALC_DEFAULT_DEVICE_SPECIFIER":return 4100;case"ALC_DEVICE_SPECIFIER":return 4101;case"ALC_EXTENSIONS":return 4102;case"ALC_FREQUENCY":return 4103;case"ALC_REFRESH":return 4104;case"ALC_SYNC":return 4105;case"ALC_MONO_SOURCES":return 4112;case"ALC_STEREO_SOURCES":return 4113;case"ALC_CAPTURE_DEVICE_SPECIFIER":return 784;case"ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER":return 785;case"ALC_CAPTURE_SAMPLES":return 786;case"ALC_HRTF_SOFT":return 6546;case"ALC_HRTF_ID_SOFT":return 6550;case"ALC_DONT_CARE_SOFT":case"ALC_HRTF_DENIED_SOFT":return 2;case"ALC_HRTF_STATUS_SOFT":return 6547;case"ALC_NUM_HRTF_SPECIFIERS_SOFT":return 6548;case"ALC_HRTF_SPECIFIER_SOFT":return 6549;case"ALC_HRTF_ENABLED_SOFT":return 1;case"ALC_HRTF_REQUIRED_SOFT":return 3;case"ALC_HRTF_HEADPHONES_DETECTED_SOFT":return 4;case"ALC_HRTF_UNSUPPORTED_FORMAT_SOFT":return 5;default:return AL.alcErr=40964,0}}function _alcGetError(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(141,0,1,e);e>>>=0;var t=AL.alcErr;return AL.alcErr=0,t}function _alcGetIntegerv(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(142,0,1,e,t,r,n);if(e>>>=0,n>>>=0,0!==r&&n)switch(t){case 4096:case 4097:GROWABLE_HEAP_I32()[n>>>2>>>0]=1;break;case 4098:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);GROWABLE_HEAP_I32()[n>>>2>>>0]=AL.currentCtx.attrs.length;break;case 4099:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);for(var i=0;i>>2>>>0]=AL.currentCtx.attrs[i];break;case 4103:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);GROWABLE_HEAP_I32()[n>>>2>>>0]=AL.currentCtx.audioCtx.sampleRate;break;case 4112:case 4113:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);GROWABLE_HEAP_I32()[n>>>2>>>0]=2147483647;break;case 6546:case 6547:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);var a=0;for(var s in AL.contexts){var o=AL.contexts[s];o.deviceId===e&&(a=o.hrtf?1:0)}GROWABLE_HEAP_I32()[n>>>2>>>0]=a;break;case 6548:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);GROWABLE_HEAP_I32()[n>>>2>>>0]=1;break;case 131075:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);GROWABLE_HEAP_I32()[n>>>2>>>0]=1;case 786:var _=AL.requireValidCaptureDevice(e,"alcGetIntegerv");if(!_)return;var l=_.capturedFrameCount,c=_.requestedSampleRate,u=_.audioCtx.sampleRate,d=Math.floor(l*(c/u));GROWABLE_HEAP_I32()[n>>>2>>>0]=d;break;default:return void(AL.alcErr=40963)}}function _alcGetString(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(143,0,1,e,t);if(e>>>=0,AL.alcStringCache[t])return AL.alcStringCache[t];var r;switch(t){case 0:r="No Error";break;case 40961:r="Invalid Device";break;case 40962:r="Invalid Context";break;case 40963:r="Invalid Enum";break;case 40964:r="Invalid Value";break;case 40965:r="Out of Memory";break;case 4100:if(!(typeof AudioContext<"u"||typeof webkitAudioContext<"u"))return 0;r=AL.DEVICE_NAME;break;case 4101:r=typeof AudioContext<"u"||typeof webkitAudioContext<"u"?AL.DEVICE_NAME.concat("\0"):"\0";break;case 785:r=AL.CAPTURE_DEVICE_NAME;break;case 784:if(0===e)r=AL.CAPTURE_DEVICE_NAME.concat("\0");else{var n=AL.requireValidCaptureDevice(e,"alcGetString");if(!n)return 0;r=n.deviceName}break;case 4102:if(!e)return AL.alcErr=40961,0;for(var i in r="",AL.ALC_EXTENSIONS)r=(r=r.concat(i)).concat(" ");r=r.trim();break;default:return AL.alcErr=40963,0}return r=stringToNewUTF8(r),AL.alcStringCache[t]=r,r}function _alcIsExtensionPresent(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(144,0,1,e,t);e>>>=0;var r=UTF8ToString(t>>>=0);return AL.ALC_EXTENSIONS[r]?1:0}function _alcMakeContextCurrent(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(145,0,1,e):(e>>>=0,AL.currentCtx=0===e?null:AL.contexts[e],1)}function _alcOpenDevice(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(146,0,1,e);if((e>>>=0)&&UTF8ToString(e)!==AL.DEVICE_NAME)return 0;if(typeof AudioContext<"u"||typeof webkitAudioContext<"u"){var t=AL.newId();return AL.deviceRefCounts[t]=0,t}return 0}function _alcProcessContext(e){}function _alcSuspendContext(e){}function _duckdb_web_fs_directory_create(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.createDirectory(Module,e,t)}function _duckdb_web_fs_directory_exists(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkDirectory(Module,e,t)}function _duckdb_web_fs_directory_list_files(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.listDirectoryEntries(Module,e,t)}function _duckdb_web_fs_directory_remove(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.removeDirectory(Module,e,t)}function _duckdb_web_fs_file_close(e){return globalThis.DUCKDB_RUNTIME.closeFile(Module,e)}function _duckdb_web_fs_file_exists(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkFile(Module,e,t)}function _duckdb_web_fs_file_get_last_modified_time(e){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(Module,e)}function _duckdb_web_fs_file_move(e,t,r,n){return e>>>=0,r>>>=0,globalThis.DUCKDB_RUNTIME.moveFile(Module,e,t,r,n)}function _duckdb_web_fs_file_open(e,t){return globalThis.DUCKDB_RUNTIME.openFile(Module,e,t)}function _duckdb_web_fs_file_read(e,t,r,n){return t>>>=0,globalThis.DUCKDB_RUNTIME.readFile(Module,e,t,r,n)}function _duckdb_web_fs_file_truncate(e,t){return globalThis.DUCKDB_RUNTIME.truncateFile(Module,e,t)}function _duckdb_web_fs_file_write(e,t,r,n){return t>>>=0,globalThis.DUCKDB_RUNTIME.writeFile(Module,e,t,r,n)}function _duckdb_web_fs_get_default_data_protocol(e){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(e)}function _duckdb_web_fs_glob(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.glob(Module,e,t)}function _duckdb_web_test_platform_feature(e){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(Module,e)}function _duckdb_web_udf_scalar_call(e,t,r,n,i,a){return e>>>=0,r>>>=0,i>>>=0,globalThis.DUCKDB_RUNTIME.callScalarUDF(Module,e,t,r,n,i,a)}function _emscripten_alcDevicePauseSOFT(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(147,0,1,e);if(e in AL.deviceRefCounts){if(!AL.paused)for(var t in AL.paused=!0,AL.contexts){var r=AL.contexts[t];r.deviceId===e&&(r.audioCtx.suspend(),clearInterval(r.interval),r.interval=null)}}else AL.alcErr=40961}function _emscripten_alcDeviceResumeSOFT(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(148,0,1,e);if(e in AL.deviceRefCounts){if(AL.paused)for(var t in AL.paused=!1,AL.contexts){var r=AL.contexts[t];r.deviceId===e&&(r.interval=setInterval((()=>AL.scheduleContextAudio(r)),AL.QUEUE_INTERVAL),r.audioCtx.resume())}}else AL.alcErr=40961}function _emscripten_alcGetStringiSOFT(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(149,0,1,e,t,r):e in AL.deviceRefCounts?AL.alcStringCache[t]?AL.alcStringCache[t]:6549!==t?0!==r?(AL.alcErr=40963,0):_alcGetString(e,t):0!==r?(AL.alcErr=40964,0):(n=stringToNewUTF8(n="Web Audio HRTF"),AL.alcStringCache[t]=n,n):(AL.alcErr=40961,0);var n}function _emscripten_alcResetDeviceSOFT(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(150,0,1,e,t);if(!(e in AL.deviceRefCounts))return AL.alcErr=40961,0;var r=null;if(t>>=2)for(var n=0,i=0;0!==(n=GROWABLE_HEAP_I32()[t++>>>0]);)6546===(i=GROWABLE_HEAP_I32()[t++>>>0],n)&&(1===i?r=!0:0===i&&(r=!1));if(null!==r)for(var a in AL.contexts){var s=AL.contexts[a];s.deviceId===e&&(s.hrtf=r,AL.updateContextGlobal(s))}return 1}_alcCaptureOpenDevice.sig="ppiii",_alcCaptureSamples.sig="vppi",_alcCaptureStart.sig="vp",_alcCaptureStop.sig="vp",_alcCloseDevice.sig="ip",_alcCreateContext.sig="ppp",_alcDestroyContext.sig="vp",_alcGetContextsDevice.sig="pp",_alcGetCurrentContext.sig="p",_alcGetEnumValue.sig="ipp",_alcGetError.sig="ip",_alcGetIntegerv.sig="vpiip",_alcGetString.sig="ppi",_alcIsExtensionPresent.sig="ipp",_alcMakeContextCurrent.sig="ip",_alcOpenDevice.sig="pp",_alcProcessContext.sig="vp",_alcSuspendContext.sig="vp",_duckdb_web_fs_directory_create.sig="vpi",_duckdb_web_fs_directory_exists.sig="ipi",_duckdb_web_fs_directory_list_files.sig="ipi",_duckdb_web_fs_directory_remove.sig="vpi",_duckdb_web_fs_file_close.sig="vi",_duckdb_web_fs_file_exists.sig="ipi",_duckdb_web_fs_file_get_last_modified_time.sig="ii",_duckdb_web_fs_file_move.sig="vpipi",_duckdb_web_fs_file_open.sig="pii",_duckdb_web_fs_file_read.sig="iipid",_duckdb_web_fs_file_truncate.sig="vid",_duckdb_web_fs_file_write.sig="iipid",_duckdb_web_fs_get_default_data_protocol.sig="i",_duckdb_web_fs_glob.sig="vpi",_duckdb_web_test_platform_feature.sig="ii",_duckdb_web_udf_scalar_call.sig="vpipipi",_emscripten_alcDevicePauseSOFT.sig="vi",_emscripten_alcDeviceResumeSOFT.sig="vi",_emscripten_alcGetStringiSOFT.sig="iiii",_emscripten_alcResetDeviceSOFT.sig="iii";var readEmAsmArgsArray=[],readEmAsmArgs=(e,t)=>{readEmAsmArgsArray.length=0;for(var r;r=GROWABLE_HEAP_U8()[e++>>>0];){var n=105!=r;t+=(n&=112!=r)&&t%8?4:0,readEmAsmArgsArray.push(112==r?GROWABLE_HEAP_U32()[t>>>2>>>0]:105==r?GROWABLE_HEAP_I32()[t>>>2>>>0]:GROWABLE_HEAP_F64()[t>>>3>>>0]),t+=n?8:4}return readEmAsmArgsArray},runEmAsmFunction=(e,t,r)=>{var n=readEmAsmArgs(t,r);return ASM_CONSTS[e](...n)};function _emscripten_asm_const_int(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}function _emscripten_asm_const_ptr(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}_emscripten_asm_const_int.sig="ippp",_emscripten_asm_const_ptr.sig="pppp";var _emscripten_check_blocking_allowed=()=>{};function _emscripten_console_error(e){e>>>=0,console.error(UTF8ToString(e))}function _emscripten_console_log(e){e>>>=0,console.log(UTF8ToString(e))}function _emscripten_console_warn(e){e>>>=0,console.warn(UTF8ToString(e))}_emscripten_check_blocking_allowed.sig="v",_emscripten_console_error.sig="vp",_emscripten_console_log.sig="vp",_emscripten_console_warn.sig="vp";var _emscripten_date_now=()=>Date.now();function _emscripten_err(e){return err(UTF8ToString(e>>>=0))}_emscripten_date_now.sig="d",_emscripten_err.sig="vp";var _emscripten_exit_with_live_runtime=()=>{throw runtimeKeepalivePush(),"unwind"};_emscripten_exit_with_live_runtime.sig="v";var getHeapMax=()=>4294901760;function _emscripten_get_heap_max(){return getHeapMax()}_emscripten_get_heap_max.sig="p";var _emscripten_get_now_res=()=>ENVIRONMENT_IS_NODE?1:1e3;_emscripten_get_now_res.sig="d";var webgl_enable_ANGLE_instanced_arrays=e=>{var t=e.getExtension("ANGLE_instanced_arrays");if(t)return e.vertexAttribDivisor=(e,r)=>t.vertexAttribDivisorANGLE(e,r),e.drawArraysInstanced=(e,r,n,i)=>t.drawArraysInstancedANGLE(e,r,n,i),e.drawElementsInstanced=(e,r,n,i,a)=>t.drawElementsInstancedANGLE(e,r,n,i,a),1},webgl_enable_OES_vertex_array_object=e=>{var t=e.getExtension("OES_vertex_array_object");if(t)return e.createVertexArray=()=>t.createVertexArrayOES(),e.deleteVertexArray=e=>t.deleteVertexArrayOES(e),e.bindVertexArray=e=>t.bindVertexArrayOES(e),e.isVertexArray=e=>t.isVertexArrayOES(e),1},webgl_enable_WEBGL_draw_buffers=e=>{var t=e.getExtension("WEBGL_draw_buffers");if(t)return e.drawBuffers=(e,r)=>t.drawBuffersWEBGL(e,r),1},webgl_enable_WEBGL_multi_draw=e=>!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw")),getEmscriptenSupportedExtensions=e=>{var t=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_disjoint_timer_query","EXT_frag_depth","EXT_shader_texture_lod","EXT_sRGB","OES_element_index_uint","OES_fbo_render_mipmap","OES_standard_derivatives","OES_texture_float","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_depth_texture","WEBGL_draw_buffers","EXT_color_buffer_half_float","EXT_depth_clamp","EXT_float_blend","EXT_texture_compression_bptc","EXT_texture_compression_rgtc","EXT_texture_filter_anisotropic","KHR_parallel_shader_compile","OES_texture_float_linear","WEBGL_blend_func_extended","WEBGL_compressed_texture_astc","WEBGL_compressed_texture_etc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_debug_renderer_info","WEBGL_debug_shaders","WEBGL_lose_context","WEBGL_multi_draw"];return(e.getSupportedExtensions()||[]).filter((e=>t.includes(e)))},GL={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:{},offscreenCanvases:{},queries:[],stringCache:{},unpackAlignment:4,recordError:e=>{GL.lastError||(GL.lastError=e)},getNewId:e=>{for(var t=GL.counter++,r=e.length;r{for(var i=0;i>>2>>>0]=s}},getSource:(e,t,r,n)=>{for(var i="",a=0;a>>2>>>0]:void 0;i+=UTF8ToString(GROWABLE_HEAP_U32()[r+4*a>>>2>>>0],s)}return i},createContext:(e,t)=>{if(!e.getContextSafariWebGL2Fixed){let t=function(t,r){var n=e.getContextSafariWebGL2Fixed(t,r);return"webgl"==t==n instanceof WebGLRenderingContext?n:null};e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=t}var r=e.getContext("webgl",t);return r?GL.registerContext(r,t):0},registerContext:(e,t)=>{var r=_malloc(8);GROWABLE_HEAP_U32()[r+4>>>2>>>0]=_pthread_self();var n={handle:r,attributes:t,version:t.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),GL.contexts[r]=n,(typeof t.enableExtensionsByDefault>"u"||t.enableExtensionsByDefault)&&GL.initExtensions(n),r},makeContextCurrent:e=>{var t;return GL.currentContext=GL.contexts[e],Module.ctx=GLctx=null==(t=GL.currentContext)?void 0:t.GLctx,!(e&&!GLctx)},getContext:e=>GL.contexts[e],deleteContext:e=>{GL.currentContext===GL.contexts[e]&&(GL.currentContext=null),"object"==typeof JSEvents&&JSEvents.removeAllHandlersOnTarget(GL.contexts[e].GLctx.canvas),GL.contexts[e]&&GL.contexts[e].GLctx.canvas&&(GL.contexts[e].GLctx.canvas.GLctxObject=void 0),_free(GL.contexts[e].handle),GL.contexts[e]=null},initExtensions:e=>{if(e||(e=GL.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var t=e.GLctx;webgl_enable_ANGLE_instanced_arrays(t),webgl_enable_OES_vertex_array_object(t),webgl_enable_WEBGL_draw_buffers(t),t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query"),webgl_enable_WEBGL_multi_draw(t),getEmscriptenSupportedExtensions(t).forEach((e=>{!e.includes("lose_context")&&!e.includes("debug")&&t.getExtension(e)}))}}},_glActiveTexture=e=>GLctx.activeTexture(e);_glActiveTexture.sig="vi";var _emscripten_glActiveTexture=_glActiveTexture;_emscripten_glActiveTexture.sig="vi";var _glAttachShader=(e,t)=>{GLctx.attachShader(GL.programs[e],GL.shaders[t])};_glAttachShader.sig="vii";var _emscripten_glAttachShader=_glAttachShader;_emscripten_glAttachShader.sig="vii";var _glBeginQueryEXT=(e,t)=>{GLctx.disjointTimerQueryExt.beginQueryEXT(e,GL.queries[t])};_glBeginQueryEXT.sig="vii";var _emscripten_glBeginQueryEXT=_glBeginQueryEXT;function _glBindAttribLocation(e,t,r){r>>>=0,GLctx.bindAttribLocation(GL.programs[e],t,UTF8ToString(r))}_glBindAttribLocation.sig="viip";var _emscripten_glBindAttribLocation=_glBindAttribLocation;_emscripten_glBindAttribLocation.sig="viip";var _glBindBuffer=(e,t)=>{GLctx.bindBuffer(e,GL.buffers[t])};_glBindBuffer.sig="vii";var _emscripten_glBindBuffer=_glBindBuffer;_emscripten_glBindBuffer.sig="vii";var _glBindFramebuffer=(e,t)=>{GLctx.bindFramebuffer(e,GL.framebuffers[t])};_glBindFramebuffer.sig="vii";var _emscripten_glBindFramebuffer=_glBindFramebuffer;_emscripten_glBindFramebuffer.sig="vii";var _glBindRenderbuffer=(e,t)=>{GLctx.bindRenderbuffer(e,GL.renderbuffers[t])};_glBindRenderbuffer.sig="vii";var _emscripten_glBindRenderbuffer=_glBindRenderbuffer;_emscripten_glBindRenderbuffer.sig="vii";var _glBindTexture=(e,t)=>{GLctx.bindTexture(e,GL.textures[t])};_glBindTexture.sig="vii";var _emscripten_glBindTexture=_glBindTexture;_emscripten_glBindTexture.sig="vii";var _glBindVertexArray=e=>{GLctx.bindVertexArray(GL.vaos[e])};_glBindVertexArray.sig="vi";var _glBindVertexArrayOES=_glBindVertexArray;_glBindVertexArrayOES.sig="vi";var _emscripten_glBindVertexArrayOES=_glBindVertexArrayOES;_emscripten_glBindVertexArrayOES.sig="vi";var _glBlendColor=(e,t,r,n)=>GLctx.blendColor(e,t,r,n);_glBlendColor.sig="vffff";var _emscripten_glBlendColor=_glBlendColor;_emscripten_glBlendColor.sig="vffff";var _glBlendEquation=e=>GLctx.blendEquation(e);_glBlendEquation.sig="vi";var _emscripten_glBlendEquation=_glBlendEquation;_emscripten_glBlendEquation.sig="vi";var _glBlendEquationSeparate=(e,t)=>GLctx.blendEquationSeparate(e,t);_glBlendEquationSeparate.sig="vii";var _emscripten_glBlendEquationSeparate=_glBlendEquationSeparate;_emscripten_glBlendEquationSeparate.sig="vii";var _glBlendFunc=(e,t)=>GLctx.blendFunc(e,t);_glBlendFunc.sig="vii";var _emscripten_glBlendFunc=_glBlendFunc;_emscripten_glBlendFunc.sig="vii";var _glBlendFuncSeparate=(e,t,r,n)=>GLctx.blendFuncSeparate(e,t,r,n);_glBlendFuncSeparate.sig="viiii";var _emscripten_glBlendFuncSeparate=_glBlendFuncSeparate;function _glBufferData(e,t,r,n){t>>>=0,r>>>=0,GLctx.bufferData(e,r?GROWABLE_HEAP_U8().subarray(r>>>0,r+t>>>0):t,n)}_emscripten_glBlendFuncSeparate.sig="viiii",_glBufferData.sig="vippi";var _emscripten_glBufferData=_glBufferData;function _glBufferSubData(e,t,r,n){t>>>=0,r>>>=0,n>>>=0,GLctx.bufferSubData(e,t,GROWABLE_HEAP_U8().subarray(n>>>0,n+r>>>0))}_emscripten_glBufferData.sig="vippi",_glBufferSubData.sig="vippp";var _emscripten_glBufferSubData=_glBufferSubData;_emscripten_glBufferSubData.sig="vippp";var _glCheckFramebufferStatus=e=>GLctx.checkFramebufferStatus(e);_glCheckFramebufferStatus.sig="ii";var _emscripten_glCheckFramebufferStatus=_glCheckFramebufferStatus;_emscripten_glCheckFramebufferStatus.sig="ii";var _glClear=e=>GLctx.clear(e);_glClear.sig="vi";var _emscripten_glClear=_glClear;_emscripten_glClear.sig="vi";var _glClearColor=(e,t,r,n)=>GLctx.clearColor(e,t,r,n);_glClearColor.sig="vffff";var _emscripten_glClearColor=_glClearColor;_emscripten_glClearColor.sig="vffff";var _glClearDepthf=e=>GLctx.clearDepth(e);_glClearDepthf.sig="vf";var _emscripten_glClearDepthf=_glClearDepthf;_emscripten_glClearDepthf.sig="vf";var _glClearStencil=e=>GLctx.clearStencil(e);_glClearStencil.sig="vi";var _emscripten_glClearStencil=_glClearStencil;_emscripten_glClearStencil.sig="vi";var _glColorMask=(e,t,r,n)=>{GLctx.colorMask(!!e,!!t,!!r,!!n)};_glColorMask.sig="viiii";var _emscripten_glColorMask=_glColorMask;_emscripten_glColorMask.sig="viiii";var _glCompileShader=e=>{GLctx.compileShader(GL.shaders[e])};_glCompileShader.sig="vi";var _emscripten_glCompileShader=_glCompileShader;function _glCompressedTexImage2D(e,t,r,n,i,a,s,o){o>>>=0,GLctx.compressedTexImage2D(e,t,r,n,i,a,o?GROWABLE_HEAP_U8().subarray(o>>>0,o+s>>>0):null)}_emscripten_glCompileShader.sig="vi",_glCompressedTexImage2D.sig="viiiiiiip";var _emscripten_glCompressedTexImage2D=_glCompressedTexImage2D;function _glCompressedTexSubImage2D(e,t,r,n,i,a,s,o,_){_>>>=0,GLctx.compressedTexSubImage2D(e,t,r,n,i,a,s,_?GROWABLE_HEAP_U8().subarray(_>>>0,_+o>>>0):null)}_emscripten_glCompressedTexImage2D.sig="viiiiiiip",_glCompressedTexSubImage2D.sig="viiiiiiiip";var _emscripten_glCompressedTexSubImage2D=_glCompressedTexSubImage2D;_emscripten_glCompressedTexSubImage2D.sig="viiiiiiiip";var _glCopyTexImage2D=(e,t,r,n,i,a,s,o)=>GLctx.copyTexImage2D(e,t,r,n,i,a,s,o);_glCopyTexImage2D.sig="viiiiiiii";var _emscripten_glCopyTexImage2D=_glCopyTexImage2D;_emscripten_glCopyTexImage2D.sig="viiiiiiii";var _glCopyTexSubImage2D=(e,t,r,n,i,a,s,o)=>GLctx.copyTexSubImage2D(e,t,r,n,i,a,s,o);_glCopyTexSubImage2D.sig="viiiiiiii";var _emscripten_glCopyTexSubImage2D=_glCopyTexSubImage2D;_emscripten_glCopyTexSubImage2D.sig="viiiiiiii";var _glCreateProgram=()=>{var e=GL.getNewId(GL.programs),t=GLctx.createProgram();return t.name=e,t.maxUniformLength=t.maxAttributeLength=t.maxUniformBlockNameLength=0,t.uniformIdCounter=1,GL.programs[e]=t,e};_glCreateProgram.sig="i";var _emscripten_glCreateProgram=_glCreateProgram;_emscripten_glCreateProgram.sig="i";var _glCreateShader=e=>{var t=GL.getNewId(GL.shaders);return GL.shaders[t]=GLctx.createShader(e),t};_glCreateShader.sig="ii";var _emscripten_glCreateShader=_glCreateShader;_emscripten_glCreateShader.sig="ii";var _glCullFace=e=>GLctx.cullFace(e);_glCullFace.sig="vi";var _emscripten_glCullFace=_glCullFace;function _glDeleteBuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.buffers[n];i&&(GLctx.deleteBuffer(i),i.name=0,GL.buffers[n]=null)}}_emscripten_glCullFace.sig="vi",_glDeleteBuffers.sig="vip";var _emscripten_glDeleteBuffers=_glDeleteBuffers;function _glDeleteFramebuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.framebuffers[n];i&&(GLctx.deleteFramebuffer(i),i.name=0,GL.framebuffers[n]=null)}}_emscripten_glDeleteBuffers.sig="vip",_glDeleteFramebuffers.sig="vip";var _emscripten_glDeleteFramebuffers=_glDeleteFramebuffers;_emscripten_glDeleteFramebuffers.sig="vip";var _glDeleteProgram=e=>{if(e){var t=GL.programs[e];if(!t)return void GL.recordError(1281);GLctx.deleteProgram(t),t.name=0,GL.programs[e]=null}};_glDeleteProgram.sig="vi";var _emscripten_glDeleteProgram=_glDeleteProgram;function _glDeleteQueriesEXT(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.queries[n];i&&(GLctx.disjointTimerQueryExt.deleteQueryEXT(i),GL.queries[n]=null)}}_emscripten_glDeleteProgram.sig="vi",_glDeleteQueriesEXT.sig="vip";var _emscripten_glDeleteQueriesEXT=_glDeleteQueriesEXT;function _glDeleteRenderbuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.renderbuffers[n];i&&(GLctx.deleteRenderbuffer(i),i.name=0,GL.renderbuffers[n]=null)}}_glDeleteRenderbuffers.sig="vip";var _emscripten_glDeleteRenderbuffers=_glDeleteRenderbuffers;_emscripten_glDeleteRenderbuffers.sig="vip";var _glDeleteShader=e=>{if(e){var t=GL.shaders[e];if(!t)return void GL.recordError(1281);GLctx.deleteShader(t),GL.shaders[e]=null}};_glDeleteShader.sig="vi";var _emscripten_glDeleteShader=_glDeleteShader;function _glDeleteTextures(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.textures[n];i&&(GLctx.deleteTexture(i),i.name=0,GL.textures[n]=null)}}_emscripten_glDeleteShader.sig="vi",_glDeleteTextures.sig="vip";var _emscripten_glDeleteTextures=_glDeleteTextures;function _glDeleteVertexArrays(e,t){t>>>=0;for(var r=0;r>>2>>>0];GLctx.deleteVertexArray(GL.vaos[n]),GL.vaos[n]=null}}_emscripten_glDeleteTextures.sig="vip",_glDeleteVertexArrays.sig="vip";var _glDeleteVertexArraysOES=_glDeleteVertexArrays;_glDeleteVertexArraysOES.sig="vip";var _emscripten_glDeleteVertexArraysOES=_glDeleteVertexArraysOES;_emscripten_glDeleteVertexArraysOES.sig="vip";var _glDepthFunc=e=>GLctx.depthFunc(e);_glDepthFunc.sig="vi";var _emscripten_glDepthFunc=_glDepthFunc;_emscripten_glDepthFunc.sig="vi";var _glDepthMask=e=>{GLctx.depthMask(!!e)};_glDepthMask.sig="vi";var _emscripten_glDepthMask=_glDepthMask;_emscripten_glDepthMask.sig="vi";var _glDepthRangef=(e,t)=>GLctx.depthRange(e,t);_glDepthRangef.sig="vff";var _emscripten_glDepthRangef=_glDepthRangef;_emscripten_glDepthRangef.sig="vff";var _glDetachShader=(e,t)=>{GLctx.detachShader(GL.programs[e],GL.shaders[t])};_glDetachShader.sig="vii";var _emscripten_glDetachShader=_glDetachShader;_emscripten_glDetachShader.sig="vii";var _glDisable=e=>GLctx.disable(e);_glDisable.sig="vi";var _emscripten_glDisable=_glDisable;_emscripten_glDisable.sig="vi";var _glDisableVertexAttribArray=e=>{GLctx.disableVertexAttribArray(e)};_glDisableVertexAttribArray.sig="vi";var _emscripten_glDisableVertexAttribArray=_glDisableVertexAttribArray;_emscripten_glDisableVertexAttribArray.sig="vi";var _glDrawArrays=(e,t,r)=>{GLctx.drawArrays(e,t,r)};_glDrawArrays.sig="viii";var _emscripten_glDrawArrays=_glDrawArrays;_emscripten_glDrawArrays.sig="viii";var _glDrawArraysInstanced=(e,t,r,n)=>{GLctx.drawArraysInstanced(e,t,r,n)};_glDrawArraysInstanced.sig="viiii";var _glDrawArraysInstancedANGLE=_glDrawArraysInstanced,_emscripten_glDrawArraysInstancedANGLE=_glDrawArraysInstancedANGLE,tempFixedLengthArray=[];function _glDrawBuffers(e,t){t>>>=0;for(var r=tempFixedLengthArray[e],n=0;n>>2>>>0];GLctx.drawBuffers(r)}_glDrawBuffers.sig="vip";var _glDrawBuffersWEBGL=_glDrawBuffers,_emscripten_glDrawBuffersWEBGL=_glDrawBuffersWEBGL;function _glDrawElements(e,t,r,n){n>>>=0,GLctx.drawElements(e,t,r,n)}_glDrawElements.sig="viiip";var _emscripten_glDrawElements=_glDrawElements;function _glDrawElementsInstanced(e,t,r,n,i){n>>>=0,GLctx.drawElementsInstanced(e,t,r,n,i)}_emscripten_glDrawElements.sig="viiip",_glDrawElementsInstanced.sig="viiipi";var _glDrawElementsInstancedANGLE=_glDrawElementsInstanced,_emscripten_glDrawElementsInstancedANGLE=_glDrawElementsInstancedANGLE,_glEnable=e=>GLctx.enable(e);_glEnable.sig="vi";var _emscripten_glEnable=_glEnable;_emscripten_glEnable.sig="vi";var _glEnableVertexAttribArray=e=>{GLctx.enableVertexAttribArray(e)};_glEnableVertexAttribArray.sig="vi";var _emscripten_glEnableVertexAttribArray=_glEnableVertexAttribArray;_emscripten_glEnableVertexAttribArray.sig="vi";var _glEndQueryEXT=e=>{GLctx.disjointTimerQueryExt.endQueryEXT(e)};_glEndQueryEXT.sig="vi";var _emscripten_glEndQueryEXT=_glEndQueryEXT,_glFinish=()=>GLctx.finish();_glFinish.sig="v";var _emscripten_glFinish=_glFinish;_emscripten_glFinish.sig="v";var _glFlush=()=>GLctx.flush();_glFlush.sig="v";var _emscripten_glFlush=_glFlush;_emscripten_glFlush.sig="v";var _glFramebufferRenderbuffer=(e,t,r,n)=>{GLctx.framebufferRenderbuffer(e,t,r,GL.renderbuffers[n])};_glFramebufferRenderbuffer.sig="viiii";var _emscripten_glFramebufferRenderbuffer=_glFramebufferRenderbuffer;_emscripten_glFramebufferRenderbuffer.sig="viiii";var _glFramebufferTexture2D=(e,t,r,n,i)=>{GLctx.framebufferTexture2D(e,t,r,GL.textures[n],i)};_glFramebufferTexture2D.sig="viiiii";var _emscripten_glFramebufferTexture2D=_glFramebufferTexture2D;_emscripten_glFramebufferTexture2D.sig="viiiii";var _glFrontFace=e=>GLctx.frontFace(e);_glFrontFace.sig="vi";var _emscripten_glFrontFace=_glFrontFace;function _glGenBuffers(e,t){t>>>=0,GL.genObject(e,t,"createBuffer",GL.buffers)}_emscripten_glFrontFace.sig="vi",_glGenBuffers.sig="vip";var _emscripten_glGenBuffers=_glGenBuffers;function _glGenFramebuffers(e,t){t>>>=0,GL.genObject(e,t,"createFramebuffer",GL.framebuffers)}_emscripten_glGenBuffers.sig="vip",_glGenFramebuffers.sig="vip";var _emscripten_glGenFramebuffers=_glGenFramebuffers;function _glGenQueriesEXT(e,t){t>>>=0;for(var r=0;r>>2>>>0]=0;return}var i=GL.getNewId(GL.queries);n.name=i,GL.queries[i]=n,GROWABLE_HEAP_I32()[t+4*r>>>2>>>0]=i}}_emscripten_glGenFramebuffers.sig="vip",_glGenQueriesEXT.sig="vip";var _emscripten_glGenQueriesEXT=_glGenQueriesEXT;function _glGenRenderbuffers(e,t){t>>>=0,GL.genObject(e,t,"createRenderbuffer",GL.renderbuffers)}_glGenRenderbuffers.sig="vip";var _emscripten_glGenRenderbuffers=_glGenRenderbuffers;function _glGenTextures(e,t){t>>>=0,GL.genObject(e,t,"createTexture",GL.textures)}_emscripten_glGenRenderbuffers.sig="vip",_glGenTextures.sig="vip";var _emscripten_glGenTextures=_glGenTextures;function _glGenVertexArrays(e,t){t>>>=0,GL.genObject(e,t,"createVertexArray",GL.vaos)}_emscripten_glGenTextures.sig="vip",_glGenVertexArrays.sig="vip";var _glGenVertexArraysOES=_glGenVertexArrays;_glGenVertexArraysOES.sig="vip";var _emscripten_glGenVertexArraysOES=_glGenVertexArraysOES;_emscripten_glGenVertexArraysOES.sig="vip";var _glGenerateMipmap=e=>GLctx.generateMipmap(e);_glGenerateMipmap.sig="vi";var _emscripten_glGenerateMipmap=_glGenerateMipmap;_emscripten_glGenerateMipmap.sig="vi";var __glGetActiveAttribOrUniform=(e,t,r,n,i,a,s,o)=>{t=GL.programs[t];var _=GLctx[e](t,r);if(_){var l=o&&stringToUTF8(_.name,o,n);i&&(GROWABLE_HEAP_I32()[i>>>2>>>0]=l),a&&(GROWABLE_HEAP_I32()[a>>>2>>>0]=_.size),s&&(GROWABLE_HEAP_I32()[s>>>2>>>0]=_.type)}};function _glGetActiveAttrib(e,t,r,n,i,a,s){__glGetActiveAttribOrUniform("getActiveAttrib",e,t,r,n>>>=0,i>>>=0,a>>>=0,s>>>=0)}_glGetActiveAttrib.sig="viiipppp";var _emscripten_glGetActiveAttrib=_glGetActiveAttrib;function _glGetActiveUniform(e,t,r,n,i,a,s){__glGetActiveAttribOrUniform("getActiveUniform",e,t,r,n>>>=0,i>>>=0,a>>>=0,s>>>=0)}_emscripten_glGetActiveAttrib.sig="viiipppp",_glGetActiveUniform.sig="viiipppp";var _emscripten_glGetActiveUniform=_glGetActiveUniform;function _glGetAttachedShaders(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getAttachedShaders(GL.programs[e]),a=i.length;a>t&&(a=t),GROWABLE_HEAP_I32()[r>>>2>>>0]=a;for(var s=0;s>>2>>>0]=o}}_emscripten_glGetActiveUniform.sig="viiipppp",_glGetAttachedShaders.sig="viipp";var _emscripten_glGetAttachedShaders=_glGetAttachedShaders;function _glGetAttribLocation(e,t){return t>>>=0,GLctx.getAttribLocation(GL.programs[e],UTF8ToString(t))}_emscripten_glGetAttachedShaders.sig="viipp",_glGetAttribLocation.sig="iip";var _emscripten_glGetAttribLocation=_glGetAttribLocation;_emscripten_glGetAttribLocation.sig="iip";var writeI53ToI64=(e,t)=>{GROWABLE_HEAP_U32()[e>>>2>>>0]=t;var r=GROWABLE_HEAP_U32()[e>>>2>>>0];GROWABLE_HEAP_U32()[e+4>>>2>>>0]=(t-r)/4294967296},emscriptenWebGLGet=(e,t,r)=>{if(t){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=r&&1!=r&&GL.recordError(1280));case 36345:n=0;break;case 34466:var i=GLctx.getParameter(34467);n=i?i.length:0}if(void 0===n){var a=GLctx.getParameter(e);switch(typeof a){case"number":n=a;break;case"boolean":n=a?1:0;break;case"string":return void GL.recordError(1280);case"object":if(null===a)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 34068:n=0;break;default:return void GL.recordError(1280)}else{if(a instanceof Float32Array||a instanceof Uint32Array||a instanceof Int32Array||a instanceof Array){for(var s=0;s>>2>>>0]=a[s];break;case 2:GROWABLE_HEAP_F32()[t+4*s>>>2>>>0]=a[s];break;case 4:GROWABLE_HEAP_I8()[t+s>>>0]=a[s]?1:0}return}try{n=0|a.name}catch(t){return GL.recordError(1280),void err("GL_INVALID_ENUM in glGet".concat(r,"v: Unknown object returned from WebGL getParameter(").concat(e,")! (error: ").concat(t,")"))}}break;default:return GL.recordError(1280),void err("GL_INVALID_ENUM in glGet".concat(r,"v: Native code calling glGet").concat(r,"v(").concat(e,") and it returns ").concat(a," of type ").concat(typeof a,"!"))}}switch(r){case 1:writeI53ToI64(t,n);break;case 0:GROWABLE_HEAP_I32()[t>>>2>>>0]=n;break;case 2:GROWABLE_HEAP_F32()[t>>>2>>>0]=n;break;case 4:GROWABLE_HEAP_I8()[t>>>0]=n?1:0}}else GL.recordError(1281)};function _glGetBooleanv(e,t){return emscriptenWebGLGet(e,t>>>=0,4)}_glGetBooleanv.sig="vip";var _emscripten_glGetBooleanv=_glGetBooleanv;function _glGetBufferParameteriv(e,t,r){(r>>>=0)?GROWABLE_HEAP_I32()[r>>>2>>>0]=GLctx.getBufferParameter(e,t):GL.recordError(1281)}_emscripten_glGetBooleanv.sig="vip",_glGetBufferParameteriv.sig="viip";var _emscripten_glGetBufferParameteriv=_glGetBufferParameteriv;_emscripten_glGetBufferParameteriv.sig="viip";var _glGetError=()=>{var e=GLctx.getError()||GL.lastError;return GL.lastError=0,e};_glGetError.sig="i";var _emscripten_glGetError=_glGetError;function _glGetFloatv(e,t){return emscriptenWebGLGet(e,t>>>=0,2)}_emscripten_glGetError.sig="i",_glGetFloatv.sig="vip";var _emscripten_glGetFloatv=_glGetFloatv;function _glGetFramebufferAttachmentParameteriv(e,t,r,n){n>>>=0;var i=GLctx.getFramebufferAttachmentParameter(e,t,r);(i instanceof WebGLRenderbuffer||i instanceof WebGLTexture)&&(i=0|i.name),GROWABLE_HEAP_I32()[n>>>2>>>0]=i}_emscripten_glGetFloatv.sig="vip",_glGetFramebufferAttachmentParameteriv.sig="viiip";var _emscripten_glGetFramebufferAttachmentParameteriv=_glGetFramebufferAttachmentParameteriv;function _glGetIntegerv(e,t){return emscriptenWebGLGet(e,t>>>=0,0)}_emscripten_glGetFramebufferAttachmentParameteriv.sig="viiip",_glGetIntegerv.sig="vip";var _emscripten_glGetIntegerv=_glGetIntegerv;function _glGetProgramInfoLog(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getProgramInfoLog(GL.programs[e]);null===i&&(i="(unknown error)");var a=t>0&&n?stringToUTF8(i,n,t):0;r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=a)}_emscripten_glGetIntegerv.sig="vip",_glGetProgramInfoLog.sig="viipp";var _emscripten_glGetProgramInfoLog=_glGetProgramInfoLog;function _glGetProgramiv(e,t,r){if(r>>>=0)if(e>=GL.counter)GL.recordError(1281);else if(e=GL.programs[e],35716==t){var n=GLctx.getProgramInfoLog(e);null===n&&(n="(unknown error)"),GROWABLE_HEAP_I32()[r>>>2>>>0]=n.length+1}else if(35719==t){if(!e.maxUniformLength)for(var i=0;i>>2>>>0]=e.maxUniformLength}else if(35722==t){if(!e.maxAttributeLength)for(i=0;i>>2>>>0]=e.maxAttributeLength}else if(35381==t){if(!e.maxUniformBlockNameLength)for(i=0;i>>2>>>0]=e.maxUniformBlockNameLength}else GROWABLE_HEAP_I32()[r>>>2>>>0]=GLctx.getProgramParameter(e,t);else GL.recordError(1281)}_emscripten_glGetProgramInfoLog.sig="viipp",_glGetProgramiv.sig="viip";var _emscripten_glGetProgramiv=_glGetProgramiv;function _glGetQueryObjecti64vEXT(e,t,r){if(r>>>=0){var n,i=GL.queries[e];n=GLctx.disjointTimerQueryExt.getQueryObjectEXT(i,t),writeI53ToI64(r,"boolean"==typeof n?n?1:0:n)}else GL.recordError(1281)}_emscripten_glGetProgramiv.sig="viip",_glGetQueryObjecti64vEXT.sig="viip";var _emscripten_glGetQueryObjecti64vEXT=_glGetQueryObjecti64vEXT;function _glGetQueryObjectivEXT(e,t,r){if(r>>>=0){var n,i=GL.queries[e],a=GLctx.disjointTimerQueryExt.getQueryObjectEXT(i,t);n="boolean"==typeof a?a?1:0:a,GROWABLE_HEAP_I32()[r>>>2>>>0]=n}else GL.recordError(1281)}_glGetQueryObjectivEXT.sig="viip";var _emscripten_glGetQueryObjectivEXT=_glGetQueryObjectivEXT,_glGetQueryObjectui64vEXT=_glGetQueryObjecti64vEXT,_emscripten_glGetQueryObjectui64vEXT=_glGetQueryObjectui64vEXT,_glGetQueryObjectuivEXT=_glGetQueryObjectivEXT,_emscripten_glGetQueryObjectuivEXT=_glGetQueryObjectuivEXT;function _glGetQueryivEXT(e,t,r){(r>>>=0)?GROWABLE_HEAP_I32()[r>>>2>>>0]=GLctx.disjointTimerQueryExt.getQueryEXT(e,t):GL.recordError(1281)}_glGetQueryivEXT.sig="viip";var _emscripten_glGetQueryivEXT=_glGetQueryivEXT;function _glGetRenderbufferParameteriv(e,t,r){(r>>>=0)?GROWABLE_HEAP_I32()[r>>>2>>>0]=GLctx.getRenderbufferParameter(e,t):GL.recordError(1281)}_glGetRenderbufferParameteriv.sig="viip";var _emscripten_glGetRenderbufferParameteriv=_glGetRenderbufferParameteriv;function _glGetShaderInfoLog(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getShaderInfoLog(GL.shaders[e]);null===i&&(i="(unknown error)");var a=t>0&&n?stringToUTF8(i,n,t):0;r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=a)}_emscripten_glGetRenderbufferParameteriv.sig="viip",_glGetShaderInfoLog.sig="viipp";var _emscripten_glGetShaderInfoLog=_glGetShaderInfoLog;function _glGetShaderPrecisionFormat(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getShaderPrecisionFormat(e,t);GROWABLE_HEAP_I32()[r>>>2>>>0]=i.rangeMin,GROWABLE_HEAP_I32()[r+4>>>2>>>0]=i.rangeMax,GROWABLE_HEAP_I32()[n>>>2>>>0]=i.precision}_emscripten_glGetShaderInfoLog.sig="viipp",_glGetShaderPrecisionFormat.sig="viipp";var _emscripten_glGetShaderPrecisionFormat=_glGetShaderPrecisionFormat;function _glGetShaderSource(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getShaderSource(GL.shaders[e]);if(i){var a=t>0&&n?stringToUTF8(i,n,t):0;r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=a)}}_emscripten_glGetShaderPrecisionFormat.sig="viipp",_glGetShaderSource.sig="viipp";var _emscripten_glGetShaderSource=_glGetShaderSource;function _glGetShaderiv(e,t,r){if(r>>>=0)if(35716==t){var n=GLctx.getShaderInfoLog(GL.shaders[e]);null===n&&(n="(unknown error)");var i=n?n.length+1:0;GROWABLE_HEAP_I32()[r>>>2>>>0]=i}else if(35720==t){var a=GLctx.getShaderSource(GL.shaders[e]),s=a?a.length+1:0;GROWABLE_HEAP_I32()[r>>>2>>>0]=s}else GROWABLE_HEAP_I32()[r>>>2>>>0]=GLctx.getShaderParameter(GL.shaders[e],t);else GL.recordError(1281)}_emscripten_glGetShaderSource.sig="viipp",_glGetShaderiv.sig="viip";var _emscripten_glGetShaderiv=_glGetShaderiv;_emscripten_glGetShaderiv.sig="viip";var webglGetExtensions=function(){var e=getEmscriptenSupportedExtensions(GLctx);return e.concat(e.map((e=>"GL_"+e)))};function _glGetString(e){var t=GL.stringCache[e];if(!t){switch(e){case 7939:t=stringToNewUTF8(webglGetExtensions().join(" "));break;case 7936:case 7937:case 37445:case 37446:var r=GLctx.getParameter(e);r||GL.recordError(1280),t=r?stringToNewUTF8(r):0;break;case 7938:var n=GLctx.getParameter(7938);n="OpenGL ES 2.0 (".concat(n,")"),t=stringToNewUTF8(n);break;case 35724:var i=GLctx.getParameter(35724),a=i.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==a&&(3==a[1].length&&(a[1]=a[1]+"0"),i="OpenGL ES GLSL ES ".concat(a[1]," (").concat(i,")")),t=stringToNewUTF8(i);break;default:GL.recordError(1280)}GL.stringCache[e]=t}return t}_glGetString.sig="pi";var _emscripten_glGetString=_glGetString;function _glGetTexParameterfv(e,t,r){(r>>>=0)?GROWABLE_HEAP_F32()[r>>>2>>>0]=GLctx.getTexParameter(e,t):GL.recordError(1281)}_emscripten_glGetString.sig="pi",_glGetTexParameterfv.sig="viip";var _emscripten_glGetTexParameterfv=_glGetTexParameterfv;function _glGetTexParameteriv(e,t,r){(r>>>=0)?GROWABLE_HEAP_I32()[r>>>2>>>0]=GLctx.getTexParameter(e,t):GL.recordError(1281)}_emscripten_glGetTexParameterfv.sig="viip",_glGetTexParameteriv.sig="viip";var _emscripten_glGetTexParameteriv=_glGetTexParameteriv;_emscripten_glGetTexParameteriv.sig="viip";var webglGetLeftBracePos=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),webglPrepareUniformLocationsBeforeFirstUse=e=>{var t,r,n=e.uniformLocsById,i=e.uniformSizeAndIdsByName;if(!n)for(e.uniformLocsById=n={},e.uniformArrayNamesById={},t=0;t0?s.slice(0,_):s,c=e.uniformIdCounter;for(e.uniformIdCounter+=o,i[l]=[o,c],r=0;r>>=0),e=GL.programs[e]){webglPrepareUniformLocationsBeforeFirstUse(e);var r=e.uniformLocsById,n=0,i=t,a=webglGetLeftBracePos(t);a>0&&(n=jstoi_q(t.slice(a+1))>>>0,i=t.slice(0,a));var s=e.uniformSizeAndIdsByName[i];if(s&&n{var t=GLctx.currentProgram;if(t){var r=t.uniformLocsById[e];return"number"==typeof r&&(t.uniformLocsById[e]=r=GLctx.getUniformLocation(t,t.uniformArrayNamesById[e]+(r>0?"[".concat(r,"]"):""))),r}GL.recordError(1282)},emscriptenWebGLGetUniform=(e,t,r,n)=>{if(r){e=GL.programs[e],webglPrepareUniformLocationsBeforeFirstUse(e);var i=GLctx.getUniform(e,webglGetUniformLocation(t));if("number"==typeof i||"boolean"==typeof i)switch(n){case 0:GROWABLE_HEAP_I32()[r>>>2>>>0]=i;break;case 2:GROWABLE_HEAP_F32()[r>>>2>>>0]=i}else for(var a=0;a>>2>>>0]=i[a];break;case 2:GROWABLE_HEAP_F32()[r+4*a>>>2>>>0]=i[a]}}else GL.recordError(1281)};function _glGetUniformfv(e,t,r){emscriptenWebGLGetUniform(e,t,r>>>=0,2)}_glGetUniformfv.sig="viip";var _emscripten_glGetUniformfv=_glGetUniformfv;function _glGetUniformiv(e,t,r){emscriptenWebGLGetUniform(e,t,r>>>=0,0)}_emscripten_glGetUniformfv.sig="viip",_glGetUniformiv.sig="viip";var _emscripten_glGetUniformiv=_glGetUniformiv;function _glGetVertexAttribPointerv(e,t,r){(r>>>=0)?GROWABLE_HEAP_I32()[r>>>2>>>0]=GLctx.getVertexAttribOffset(e,t):GL.recordError(1281)}_emscripten_glGetUniformiv.sig="viip",_glGetVertexAttribPointerv.sig="viip";var _emscripten_glGetVertexAttribPointerv=_glGetVertexAttribPointerv;_emscripten_glGetVertexAttribPointerv.sig="viip";var emscriptenWebGLGetVertexAttrib=(e,t,r,n)=>{if(r){var i=GLctx.getVertexAttrib(e,t);if(34975==t)GROWABLE_HEAP_I32()[r>>>2>>>0]=i&&i.name;else if("number"==typeof i||"boolean"==typeof i)switch(n){case 0:GROWABLE_HEAP_I32()[r>>>2>>>0]=i;break;case 2:GROWABLE_HEAP_F32()[r>>>2>>>0]=i;break;case 5:GROWABLE_HEAP_I32()[r>>>2>>>0]=Math.fround(i)}else for(var a=0;a>>2>>>0]=i[a];break;case 2:GROWABLE_HEAP_F32()[r+4*a>>>2>>>0]=i[a];break;case 5:GROWABLE_HEAP_I32()[r+4*a>>>2>>>0]=Math.fround(i[a])}}else GL.recordError(1281)};function _glGetVertexAttribfv(e,t,r){emscriptenWebGLGetVertexAttrib(e,t,r>>>=0,2)}_glGetVertexAttribfv.sig="viip";var _emscripten_glGetVertexAttribfv=_glGetVertexAttribfv;function _glGetVertexAttribiv(e,t,r){emscriptenWebGLGetVertexAttrib(e,t,r>>>=0,5)}_emscripten_glGetVertexAttribfv.sig="viip",_glGetVertexAttribiv.sig="viip";var _emscripten_glGetVertexAttribiv=_glGetVertexAttribiv;_emscripten_glGetVertexAttribiv.sig="viip";var _glHint=(e,t)=>GLctx.hint(e,t);_glHint.sig="vii";var _emscripten_glHint=_glHint;_emscripten_glHint.sig="vii";var _glIsBuffer=e=>{var t=GL.buffers[e];return t?GLctx.isBuffer(t):0};_glIsBuffer.sig="ii";var _emscripten_glIsBuffer=_glIsBuffer;_emscripten_glIsBuffer.sig="ii";var _glIsEnabled=e=>GLctx.isEnabled(e);_glIsEnabled.sig="ii";var _emscripten_glIsEnabled=_glIsEnabled;_emscripten_glIsEnabled.sig="ii";var _glIsFramebuffer=e=>{var t=GL.framebuffers[e];return t?GLctx.isFramebuffer(t):0};_glIsFramebuffer.sig="ii";var _emscripten_glIsFramebuffer=_glIsFramebuffer;_emscripten_glIsFramebuffer.sig="ii";var _glIsProgram=e=>(e=GL.programs[e])?GLctx.isProgram(e):0;_glIsProgram.sig="ii";var _emscripten_glIsProgram=_glIsProgram;_emscripten_glIsProgram.sig="ii";var _glIsQueryEXT=e=>{var t=GL.queries[e];return t?GLctx.disjointTimerQueryExt.isQueryEXT(t):0};_glIsQueryEXT.sig="ii";var _emscripten_glIsQueryEXT=_glIsQueryEXT,_glIsRenderbuffer=e=>{var t=GL.renderbuffers[e];return t?GLctx.isRenderbuffer(t):0};_glIsRenderbuffer.sig="ii";var _emscripten_glIsRenderbuffer=_glIsRenderbuffer;_emscripten_glIsRenderbuffer.sig="ii";var _glIsShader=e=>{var t=GL.shaders[e];return t?GLctx.isShader(t):0};_glIsShader.sig="ii";var _emscripten_glIsShader=_glIsShader;_emscripten_glIsShader.sig="ii";var _glIsTexture=e=>{var t=GL.textures[e];return t?GLctx.isTexture(t):0};_glIsTexture.sig="ii";var _emscripten_glIsTexture=_glIsTexture;_emscripten_glIsTexture.sig="ii";var _glIsVertexArray=e=>{var t=GL.vaos[e];return t?GLctx.isVertexArray(t):0};_glIsVertexArray.sig="ii";var _glIsVertexArrayOES=_glIsVertexArray;_glIsVertexArrayOES.sig="ii";var _emscripten_glIsVertexArrayOES=_glIsVertexArrayOES;_emscripten_glIsVertexArrayOES.sig="ii";var _glLineWidth=e=>GLctx.lineWidth(e);_glLineWidth.sig="vf";var _emscripten_glLineWidth=_glLineWidth;_emscripten_glLineWidth.sig="vf";var _glLinkProgram=e=>{e=GL.programs[e],GLctx.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}};_glLinkProgram.sig="vi";var _emscripten_glLinkProgram=_glLinkProgram;_emscripten_glLinkProgram.sig="vi";var _glPixelStorei=(e,t)=>{3317==e&&(GL.unpackAlignment=t),GLctx.pixelStorei(e,t)};_glPixelStorei.sig="vii";var _emscripten_glPixelStorei=_glPixelStorei;_emscripten_glPixelStorei.sig="vii";var _glPolygonOffset=(e,t)=>GLctx.polygonOffset(e,t);_glPolygonOffset.sig="vff";var _emscripten_glPolygonOffset=_glPolygonOffset;_emscripten_glPolygonOffset.sig="vff";var _glQueryCounterEXT=(e,t)=>{GLctx.disjointTimerQueryExt.queryCounterEXT(GL.queries[e],t)};_glQueryCounterEXT.sig="vii";var _emscripten_glQueryCounterEXT=_glQueryCounterEXT,computeUnpackAlignedImageSize=(e,t,r,n)=>{var i;return t*(e*r+(i=n)-1&-i)},colorChannelsInGlTextureFormat=e=>({5:3,6:4,8:2,29502:3,29504:4}[e-6402]||1),heapObjectForWebGLType=e=>1==(e-=5120)?GROWABLE_HEAP_U8():4==e?GROWABLE_HEAP_I32():6==e?GROWABLE_HEAP_F32():5==e||28922==e?GROWABLE_HEAP_U32():GROWABLE_HEAP_U16(),toTypedArrayIndex=(e,t)=>e>>>31-Math.clz32(t.BYTES_PER_ELEMENT),emscriptenWebGLGetTexPixelData=(e,t,r,n,i,a)=>{var s=heapObjectForWebGLType(e),o=colorChannelsInGlTextureFormat(t)*s.BYTES_PER_ELEMENT,_=computeUnpackAlignedImageSize(r,n,o,GL.unpackAlignment);return s.subarray(toTypedArrayIndex(i,s)>>>0,toTypedArrayIndex(i+_,s)>>>0)};function _glReadPixels(e,t,r,n,i,a,s){var o=emscriptenWebGLGetTexPixelData(a,i,r,n,s>>>=0,i);o?GLctx.readPixels(e,t,r,n,i,a,o):GL.recordError(1280)}_glReadPixels.sig="viiiiiip";var _emscripten_glReadPixels=_glReadPixels;_emscripten_glReadPixels.sig="viiiiiip";var _glReleaseShaderCompiler=()=>{};_glReleaseShaderCompiler.sig="v";var _emscripten_glReleaseShaderCompiler=_glReleaseShaderCompiler;_emscripten_glReleaseShaderCompiler.sig="v";var _glRenderbufferStorage=(e,t,r,n)=>GLctx.renderbufferStorage(e,t,r,n);_glRenderbufferStorage.sig="viiii";var _emscripten_glRenderbufferStorage=_glRenderbufferStorage;_emscripten_glRenderbufferStorage.sig="viiii";var _glSampleCoverage=(e,t)=>{GLctx.sampleCoverage(e,!!t)};_glSampleCoverage.sig="vfi";var _emscripten_glSampleCoverage=_glSampleCoverage;_emscripten_glSampleCoverage.sig="vfi";var _glScissor=(e,t,r,n)=>GLctx.scissor(e,t,r,n);_glScissor.sig="viiii";var _emscripten_glScissor=_glScissor;function _glShaderBinary(e,t,r,n,i){GL.recordError(1280)}_emscripten_glScissor.sig="viiii",_glShaderBinary.sig="vipipi";var _emscripten_glShaderBinary=_glShaderBinary;function _glShaderSource(e,t,r,n){r>>>=0,n>>>=0;var i=GL.getSource(e,t,r,n);GLctx.shaderSource(GL.shaders[e],i)}_emscripten_glShaderBinary.sig="vipipi",_glShaderSource.sig="viipp";var _emscripten_glShaderSource=_glShaderSource;_emscripten_glShaderSource.sig="viipp";var _glStencilFunc=(e,t,r)=>GLctx.stencilFunc(e,t,r);_glStencilFunc.sig="viii";var _emscripten_glStencilFunc=_glStencilFunc;_emscripten_glStencilFunc.sig="viii";var _glStencilFuncSeparate=(e,t,r,n)=>GLctx.stencilFuncSeparate(e,t,r,n);_glStencilFuncSeparate.sig="viiii";var _emscripten_glStencilFuncSeparate=_glStencilFuncSeparate;_emscripten_glStencilFuncSeparate.sig="viiii";var _glStencilMask=e=>GLctx.stencilMask(e);_glStencilMask.sig="vi";var _emscripten_glStencilMask=_glStencilMask;_emscripten_glStencilMask.sig="vi";var _glStencilMaskSeparate=(e,t)=>GLctx.stencilMaskSeparate(e,t);_glStencilMaskSeparate.sig="vii";var _emscripten_glStencilMaskSeparate=_glStencilMaskSeparate;_emscripten_glStencilMaskSeparate.sig="vii";var _glStencilOp=(e,t,r)=>GLctx.stencilOp(e,t,r);_glStencilOp.sig="viii";var _emscripten_glStencilOp=_glStencilOp;_emscripten_glStencilOp.sig="viii";var _glStencilOpSeparate=(e,t,r,n)=>GLctx.stencilOpSeparate(e,t,r,n);_glStencilOpSeparate.sig="viiii";var _emscripten_glStencilOpSeparate=_glStencilOpSeparate;function _glTexImage2D(e,t,r,n,i,a,s,o,_){var l=(_>>>=0)?emscriptenWebGLGetTexPixelData(o,s,n,i,_,r):null;GLctx.texImage2D(e,t,r,n,i,a,s,o,l)}_emscripten_glStencilOpSeparate.sig="viiii",_glTexImage2D.sig="viiiiiiiip";var _emscripten_glTexImage2D=_glTexImage2D;_emscripten_glTexImage2D.sig="viiiiiiiip";var _glTexParameterf=(e,t,r)=>GLctx.texParameterf(e,t,r);_glTexParameterf.sig="viif";var _emscripten_glTexParameterf=_glTexParameterf;function _glTexParameterfv(e,t,r){r>>>=0;var n=GROWABLE_HEAP_F32()[r>>>2>>>0];GLctx.texParameterf(e,t,n)}_emscripten_glTexParameterf.sig="viif",_glTexParameterfv.sig="viip";var _emscripten_glTexParameterfv=_glTexParameterfv;_emscripten_glTexParameterfv.sig="viip";var _glTexParameteri=(e,t,r)=>GLctx.texParameteri(e,t,r);_glTexParameteri.sig="viii";var _emscripten_glTexParameteri=_glTexParameteri;function _glTexParameteriv(e,t,r){r>>>=0;var n=GROWABLE_HEAP_I32()[r>>>2>>>0];GLctx.texParameteri(e,t,n)}_emscripten_glTexParameteri.sig="viii",_glTexParameteriv.sig="viip";var _emscripten_glTexParameteriv=_glTexParameteriv;function _glTexSubImage2D(e,t,r,n,i,a,s,o,_){var l=(_>>>=0)?emscriptenWebGLGetTexPixelData(o,s,i,a,_,0):null;GLctx.texSubImage2D(e,t,r,n,i,a,s,o,l)}_emscripten_glTexParameteriv.sig="viip",_glTexSubImage2D.sig="viiiiiiiip";var _emscripten_glTexSubImage2D=_glTexSubImage2D;_emscripten_glTexSubImage2D.sig="viiiiiiiip";var _glUniform1f=(e,t)=>{GLctx.uniform1f(webglGetUniformLocation(e),t)};_glUniform1f.sig="vif";var _emscripten_glUniform1f=_glUniform1f;_emscripten_glUniform1f.sig="vif";var miniTempWebGLFloatBuffers=[];function _glUniform1fv(e,t,r){if(r>>>=0,t<=288)for(var n=miniTempWebGLFloatBuffers[t],i=0;i>>2>>>0];else n=GROWABLE_HEAP_F32().subarray(r>>>2>>>0,r+4*t>>>2>>>0);GLctx.uniform1fv(webglGetUniformLocation(e),n)}_glUniform1fv.sig="viip";var _emscripten_glUniform1fv=_glUniform1fv;_emscripten_glUniform1fv.sig="viip";var _glUniform1i=(e,t)=>{GLctx.uniform1i(webglGetUniformLocation(e),t)};_glUniform1i.sig="vii";var _emscripten_glUniform1i=_glUniform1i;_emscripten_glUniform1i.sig="vii";var miniTempWebGLIntBuffers=[];function _glUniform1iv(e,t,r){if(r>>>=0,t<=288)for(var n=miniTempWebGLIntBuffers[t],i=0;i>>2>>>0];else n=GROWABLE_HEAP_I32().subarray(r>>>2>>>0,r+4*t>>>2>>>0);GLctx.uniform1iv(webglGetUniformLocation(e),n)}_glUniform1iv.sig="viip";var _emscripten_glUniform1iv=_glUniform1iv;_emscripten_glUniform1iv.sig="viip";var _glUniform2f=(e,t,r)=>{GLctx.uniform2f(webglGetUniformLocation(e),t,r)};_glUniform2f.sig="viff";var _emscripten_glUniform2f=_glUniform2f;function _glUniform2fv(e,t,r){if(r>>>=0,t<=144)for(var n=miniTempWebGLFloatBuffers[2*t],i=0;i<2*t;i+=2)n[i]=GROWABLE_HEAP_F32()[r+4*i>>>2>>>0],n[i+1]=GROWABLE_HEAP_F32()[r+(4*i+4)>>>2>>>0];else n=GROWABLE_HEAP_F32().subarray(r>>>2>>>0,r+8*t>>>2>>>0);GLctx.uniform2fv(webglGetUniformLocation(e),n)}_emscripten_glUniform2f.sig="viff",_glUniform2fv.sig="viip";var _emscripten_glUniform2fv=_glUniform2fv;_emscripten_glUniform2fv.sig="viip";var _glUniform2i=(e,t,r)=>{GLctx.uniform2i(webglGetUniformLocation(e),t,r)};_glUniform2i.sig="viii";var _emscripten_glUniform2i=_glUniform2i;function _glUniform2iv(e,t,r){if(r>>>=0,t<=144)for(var n=miniTempWebGLIntBuffers[2*t],i=0;i<2*t;i+=2)n[i]=GROWABLE_HEAP_I32()[r+4*i>>>2>>>0],n[i+1]=GROWABLE_HEAP_I32()[r+(4*i+4)>>>2>>>0];else n=GROWABLE_HEAP_I32().subarray(r>>>2>>>0,r+8*t>>>2>>>0);GLctx.uniform2iv(webglGetUniformLocation(e),n)}_emscripten_glUniform2i.sig="viii",_glUniform2iv.sig="viip";var _emscripten_glUniform2iv=_glUniform2iv;_emscripten_glUniform2iv.sig="viip";var _glUniform3f=(e,t,r,n)=>{GLctx.uniform3f(webglGetUniformLocation(e),t,r,n)};_glUniform3f.sig="vifff";var _emscripten_glUniform3f=_glUniform3f;function _glUniform3fv(e,t,r){if(r>>>=0,t<=96)for(var n=miniTempWebGLFloatBuffers[3*t],i=0;i<3*t;i+=3)n[i]=GROWABLE_HEAP_F32()[r+4*i>>>2>>>0],n[i+1]=GROWABLE_HEAP_F32()[r+(4*i+4)>>>2>>>0],n[i+2]=GROWABLE_HEAP_F32()[r+(4*i+8)>>>2>>>0];else n=GROWABLE_HEAP_F32().subarray(r>>>2>>>0,r+12*t>>>2>>>0);GLctx.uniform3fv(webglGetUniformLocation(e),n)}_emscripten_glUniform3f.sig="vifff",_glUniform3fv.sig="viip";var _emscripten_glUniform3fv=_glUniform3fv;_emscripten_glUniform3fv.sig="viip";var _glUniform3i=(e,t,r,n)=>{GLctx.uniform3i(webglGetUniformLocation(e),t,r,n)};_glUniform3i.sig="viiii";var _emscripten_glUniform3i=_glUniform3i;function _glUniform3iv(e,t,r){if(r>>>=0,t<=96)for(var n=miniTempWebGLIntBuffers[3*t],i=0;i<3*t;i+=3)n[i]=GROWABLE_HEAP_I32()[r+4*i>>>2>>>0],n[i+1]=GROWABLE_HEAP_I32()[r+(4*i+4)>>>2>>>0],n[i+2]=GROWABLE_HEAP_I32()[r+(4*i+8)>>>2>>>0];else n=GROWABLE_HEAP_I32().subarray(r>>>2>>>0,r+12*t>>>2>>>0);GLctx.uniform3iv(webglGetUniformLocation(e),n)}_emscripten_glUniform3i.sig="viiii",_glUniform3iv.sig="viip";var _emscripten_glUniform3iv=_glUniform3iv;_emscripten_glUniform3iv.sig="viip";var _glUniform4f=(e,t,r,n,i)=>{GLctx.uniform4f(webglGetUniformLocation(e),t,r,n,i)};_glUniform4f.sig="viffff";var _emscripten_glUniform4f=_glUniform4f;function _glUniform4fv(e,t,r){if(r>>>=0,t<=72){var n=miniTempWebGLFloatBuffers[4*t],i=GROWABLE_HEAP_F32();r>>>=2;for(var a=0;a<4*t;a+=4){var s=r+a;n[a]=i[s>>>0],n[a+1]=i[s+1>>>0],n[a+2]=i[s+2>>>0],n[a+3]=i[s+3>>>0]}}else n=GROWABLE_HEAP_F32().subarray(r>>>2>>>0,r+16*t>>>2>>>0);GLctx.uniform4fv(webglGetUniformLocation(e),n)}_emscripten_glUniform4f.sig="viffff",_glUniform4fv.sig="viip";var _emscripten_glUniform4fv=_glUniform4fv;_emscripten_glUniform4fv.sig="viip";var _glUniform4i=(e,t,r,n,i)=>{GLctx.uniform4i(webglGetUniformLocation(e),t,r,n,i)};_glUniform4i.sig="viiiii";var _emscripten_glUniform4i=_glUniform4i;function _glUniform4iv(e,t,r){if(r>>>=0,t<=72)for(var n=miniTempWebGLIntBuffers[4*t],i=0;i<4*t;i+=4)n[i]=GROWABLE_HEAP_I32()[r+4*i>>>2>>>0],n[i+1]=GROWABLE_HEAP_I32()[r+(4*i+4)>>>2>>>0],n[i+2]=GROWABLE_HEAP_I32()[r+(4*i+8)>>>2>>>0],n[i+3]=GROWABLE_HEAP_I32()[r+(4*i+12)>>>2>>>0];else n=GROWABLE_HEAP_I32().subarray(r>>>2>>>0,r+16*t>>>2>>>0);GLctx.uniform4iv(webglGetUniformLocation(e),n)}_emscripten_glUniform4i.sig="viiiii",_glUniform4iv.sig="viip";var _emscripten_glUniform4iv=_glUniform4iv;function _glUniformMatrix2fv(e,t,r,n){if(n>>>=0,t<=72)for(var i=miniTempWebGLFloatBuffers[4*t],a=0;a<4*t;a+=4)i[a]=GROWABLE_HEAP_F32()[n+4*a>>>2>>>0],i[a+1]=GROWABLE_HEAP_F32()[n+(4*a+4)>>>2>>>0],i[a+2]=GROWABLE_HEAP_F32()[n+(4*a+8)>>>2>>>0],i[a+3]=GROWABLE_HEAP_F32()[n+(4*a+12)>>>2>>>0];else i=GROWABLE_HEAP_F32().subarray(n>>>2>>>0,n+16*t>>>2>>>0);GLctx.uniformMatrix2fv(webglGetUniformLocation(e),!!r,i)}_emscripten_glUniform4iv.sig="viip",_glUniformMatrix2fv.sig="viiip";var _emscripten_glUniformMatrix2fv=_glUniformMatrix2fv;function _glUniformMatrix3fv(e,t,r,n){if(n>>>=0,t<=32)for(var i=miniTempWebGLFloatBuffers[9*t],a=0;a<9*t;a+=9)i[a]=GROWABLE_HEAP_F32()[n+4*a>>>2>>>0],i[a+1]=GROWABLE_HEAP_F32()[n+(4*a+4)>>>2>>>0],i[a+2]=GROWABLE_HEAP_F32()[n+(4*a+8)>>>2>>>0],i[a+3]=GROWABLE_HEAP_F32()[n+(4*a+12)>>>2>>>0],i[a+4]=GROWABLE_HEAP_F32()[n+(4*a+16)>>>2>>>0],i[a+5]=GROWABLE_HEAP_F32()[n+(4*a+20)>>>2>>>0],i[a+6]=GROWABLE_HEAP_F32()[n+(4*a+24)>>>2>>>0],i[a+7]=GROWABLE_HEAP_F32()[n+(4*a+28)>>>2>>>0],i[a+8]=GROWABLE_HEAP_F32()[n+(4*a+32)>>>2>>>0];else i=GROWABLE_HEAP_F32().subarray(n>>>2>>>0,n+36*t>>>2>>>0);GLctx.uniformMatrix3fv(webglGetUniformLocation(e),!!r,i)}_emscripten_glUniformMatrix2fv.sig="viiip",_glUniformMatrix3fv.sig="viiip";var _emscripten_glUniformMatrix3fv=_glUniformMatrix3fv;function _glUniformMatrix4fv(e,t,r,n){if(n>>>=0,t<=18){var i=miniTempWebGLFloatBuffers[16*t],a=GROWABLE_HEAP_F32();n>>>=2;for(var s=0;s<16*t;s+=16){var o=n+s;i[s]=a[o>>>0],i[s+1]=a[o+1>>>0],i[s+2]=a[o+2>>>0],i[s+3]=a[o+3>>>0],i[s+4]=a[o+4>>>0],i[s+5]=a[o+5>>>0],i[s+6]=a[o+6>>>0],i[s+7]=a[o+7>>>0],i[s+8]=a[o+8>>>0],i[s+9]=a[o+9>>>0],i[s+10]=a[o+10>>>0],i[s+11]=a[o+11>>>0],i[s+12]=a[o+12>>>0],i[s+13]=a[o+13>>>0],i[s+14]=a[o+14>>>0],i[s+15]=a[o+15>>>0]}}else i=GROWABLE_HEAP_F32().subarray(n>>>2>>>0,n+64*t>>>2>>>0);GLctx.uniformMatrix4fv(webglGetUniformLocation(e),!!r,i)}_emscripten_glUniformMatrix3fv.sig="viiip",_glUniformMatrix4fv.sig="viiip";var _emscripten_glUniformMatrix4fv=_glUniformMatrix4fv;_emscripten_glUniformMatrix4fv.sig="viiip";var _glUseProgram=e=>{e=GL.programs[e],GLctx.useProgram(e),GLctx.currentProgram=e};_glUseProgram.sig="vi";var _emscripten_glUseProgram=_glUseProgram;_emscripten_glUseProgram.sig="vi";var _glValidateProgram=e=>{GLctx.validateProgram(GL.programs[e])};_glValidateProgram.sig="vi";var _emscripten_glValidateProgram=_glValidateProgram;_emscripten_glValidateProgram.sig="vi";var _glVertexAttrib1f=(e,t)=>GLctx.vertexAttrib1f(e,t);_glVertexAttrib1f.sig="vif";var _emscripten_glVertexAttrib1f=_glVertexAttrib1f;function _glVertexAttrib1fv(e,t){t>>>=0,GLctx.vertexAttrib1f(e,GROWABLE_HEAP_F32()[t>>>2])}_emscripten_glVertexAttrib1f.sig="vif",_glVertexAttrib1fv.sig="vip";var _emscripten_glVertexAttrib1fv=_glVertexAttrib1fv;_emscripten_glVertexAttrib1fv.sig="vip";var _glVertexAttrib2f=(e,t,r)=>GLctx.vertexAttrib2f(e,t,r);_glVertexAttrib2f.sig="viff";var _emscripten_glVertexAttrib2f=_glVertexAttrib2f;function _glVertexAttrib2fv(e,t){t>>>=0,GLctx.vertexAttrib2f(e,GROWABLE_HEAP_F32()[t>>>2],GROWABLE_HEAP_F32()[t+4>>>2])}_emscripten_glVertexAttrib2f.sig="viff",_glVertexAttrib2fv.sig="vip";var _emscripten_glVertexAttrib2fv=_glVertexAttrib2fv;_emscripten_glVertexAttrib2fv.sig="vip";var _glVertexAttrib3f=(e,t,r,n)=>GLctx.vertexAttrib3f(e,t,r,n);_glVertexAttrib3f.sig="vifff";var _emscripten_glVertexAttrib3f=_glVertexAttrib3f;function _glVertexAttrib3fv(e,t){t>>>=0,GLctx.vertexAttrib3f(e,GROWABLE_HEAP_F32()[t>>>2],GROWABLE_HEAP_F32()[t+4>>>2],GROWABLE_HEAP_F32()[t+8>>>2])}_emscripten_glVertexAttrib3f.sig="vifff",_glVertexAttrib3fv.sig="vip";var _emscripten_glVertexAttrib3fv=_glVertexAttrib3fv;_emscripten_glVertexAttrib3fv.sig="vip";var _glVertexAttrib4f=(e,t,r,n,i)=>GLctx.vertexAttrib4f(e,t,r,n,i);_glVertexAttrib4f.sig="viffff";var _emscripten_glVertexAttrib4f=_glVertexAttrib4f;function _glVertexAttrib4fv(e,t){t>>>=0,GLctx.vertexAttrib4f(e,GROWABLE_HEAP_F32()[t>>>2],GROWABLE_HEAP_F32()[t+4>>>2],GROWABLE_HEAP_F32()[t+8>>>2],GROWABLE_HEAP_F32()[t+12>>>2])}_emscripten_glVertexAttrib4f.sig="viffff",_glVertexAttrib4fv.sig="vip";var _emscripten_glVertexAttrib4fv=_glVertexAttrib4fv;_emscripten_glVertexAttrib4fv.sig="vip";var _glVertexAttribDivisor=(e,t)=>{GLctx.vertexAttribDivisor(e,t)};_glVertexAttribDivisor.sig="vii";var _glVertexAttribDivisorANGLE=_glVertexAttribDivisor,_emscripten_glVertexAttribDivisorANGLE=_glVertexAttribDivisorANGLE;function _glVertexAttribPointer(e,t,r,n,i,a){a>>>=0,GLctx.vertexAttribPointer(e,t,r,!!n,i,a)}_glVertexAttribPointer.sig="viiiiip";var _emscripten_glVertexAttribPointer=_glVertexAttribPointer;_emscripten_glVertexAttribPointer.sig="viiiiip";var _glViewport=(e,t,r,n)=>GLctx.viewport(e,t,r,n);_glViewport.sig="viiii";var _emscripten_glViewport=_glViewport;_emscripten_glViewport.sig="viiii";var _emscripten_num_logical_cores=()=>ENVIRONMENT_IS_NODE?Ao().cpus().length:navigator.hardwareConcurrency;function _emscripten_out(e){return out(UTF8ToString(e>>>=0))}function _emscripten_promise_destroy(e){e>>>=0,promiseMap.free(e)}function _emscripten_promise_resolve(e,t,r){e>>>=0,r>>>=0;var n=promiseMap.get(e);switch(t){case 0:return void n.resolve(r);case 1:return void n.resolve(getPromise(r));case 2:return n.resolve(getPromise(r)),void _emscripten_promise_destroy(r);case 3:return void n.reject(r)}}_emscripten_num_logical_cores.sig="i",_emscripten_out.sig="vp",_emscripten_promise_destroy.sig="vp",_emscripten_promise_resolve.sig="vpip";var growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}};function _emscripten_resize_heap(e){e>>>=0;var t=GROWABLE_HEAP_U8().length;if(e<=t)return!1;var r,n=getHeapMax();if(e>n)return!1;for(var i=1;i<=4;i*=2){var a=t*(1+.2/i);a=Math.min(a,e+100663296);var s=Math.min(n,(r=Math.max(e,a))+(65536-r%65536)%65536);if(growMemory(s))return!0}return!1}_emscripten_resize_heap.sig="ip";var _emscripten_set_timeout=function(e,t,r){return e>>>=0,r>>>=0,safeSetTimeout((()=>getWasmTableEntry(e)(r)),t)};_emscripten_set_timeout.sig="ipdp";var _emscripten_unwind_to_js_event_loop=()=>{throw"unwind"};function _emscripten_wget_data(e,t,r,n){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_wget_data"}_emscripten_unwind_to_js_event_loop.sig="v",_emscripten_wget_data.sig="vpppp";var getExecutableName=()=>thisProgram||"./this.program",getEnvStrings=()=>{if(!getEnvStrings.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:getExecutableName()};for(var t in ENV)void 0===ENV[t]?delete e[t]:e[t]=ENV[t];var r=[];for(var t in e)r.push("".concat(t,"=").concat(e[t]));getEnvStrings.strings=r}return getEnvStrings.strings},stringToAscii=(e,t)=>{for(var r=0;r>>0]=e.charCodeAt(r);GROWABLE_HEAP_I8()[t>>>0]=0},_environ_get=function(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(151,0,1,e,t);e>>>=0,t>>>=0;var r=0;return getEnvStrings().forEach(((n,i)=>{var a=t+r;GROWABLE_HEAP_U32()[e+4*i>>>2>>>0]=a,stringToAscii(n,a),r+=n.length+1})),0};_environ_get.sig="ipp";var _environ_sizes_get=function(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(152,0,1,e,t);e>>>=0,t>>>=0;var r=getEnvStrings();GROWABLE_HEAP_U32()[e>>>2>>>0]=r.length;var n=0;return r.forEach((e=>n+=e.length+1)),GROWABLE_HEAP_U32()[t>>>2>>>0]=n,0};function _fd_close(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(153,0,1,e);try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_fdstat_get(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(154,0,1,e,t);t>>>=0;try{var r=SYSCALLS.getStreamFromFD(e),n=r.tty?2:FS.isDir(r.mode)?3:FS.isLink(r.mode)?7:4;return GROWABLE_HEAP_I8()[t>>>0]=n,GROWABLE_HEAP_I16()[t+2>>>1>>>0]=0,tempI64=[0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+8>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+12>>>2>>>0]=tempI64[1],tempI64=[0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+16>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+20>>>2>>>0]=tempI64[1],0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_environ_sizes_get.sig="ipp",_fd_close.sig="ii",_fd_fdstat_get.sig="iip";var doReadv=(e,t,r,n)=>{for(var i=0,a=0;a>>2>>>0],o=GROWABLE_HEAP_U32()[t+4>>>2>>>0];t+=8;var _=FS.read(e,GROWABLE_HEAP_I8(),s,o,n);if(_<0)return-1;if(i+=_,_>>=0,r>>>=0;var s=convertI32PairToI53Checked(n,i);a>>>=0;try{if(isNaN(s))return 61;var o=SYSCALLS.getStreamFromFD(e),_=doReadv(o,t,r,s);return GROWABLE_HEAP_U32()[a>>>2>>>0]=_,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_fd_pread.sig="iippiip";var doWritev=(e,t,r,n)=>{for(var i=0,a=0;a>>2>>>0],o=GROWABLE_HEAP_U32()[t+4>>>2>>>0];t+=8;var _=FS.write(e,GROWABLE_HEAP_I8(),s,o,n);if(_<0)return-1;i+=_,typeof n<"u"&&(n+=_)}return i};function _fd_pwrite(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(156,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0;var s=convertI32PairToI53Checked(n,i);a>>>=0;try{if(isNaN(s))return 61;var o=SYSCALLS.getStreamFromFD(e),_=doWritev(o,t,r,s);return GROWABLE_HEAP_U32()[a>>>2>>>0]=_,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_read(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(157,0,1,e,t,r,n);t>>>=0,r>>>=0,n>>>=0;try{var i=SYSCALLS.getStreamFromFD(e),a=doReadv(i,t,r);return GROWABLE_HEAP_U32()[n>>>2>>>0]=a,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_seek(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(158,0,1,e,t,r,n,i);var a=convertI32PairToI53Checked(t,r);i>>>=0;try{if(isNaN(a))return 61;var s=SYSCALLS.getStreamFromFD(e);return FS.llseek(s,a,n),tempI64=[s.position>>>0,(tempDouble=s.position,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[i>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[i+4>>>2>>>0]=tempI64[1],s.getdents&&0===a&&0===n&&(s.getdents=null),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_sync(e){var t;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(159,0,1,e);try{var r=SYSCALLS.getStreamFromFD(e);return null!=(t=r.stream_ops)&&t.fsync?r.stream_ops.fsync(r):0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_write(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(160,0,1,e,t,r,n);t>>>=0,r>>>=0,n>>>=0;try{var i=SYSCALLS.getStreamFromFD(e),a=doWritev(i,t,r);return GROWABLE_HEAP_U32()[n>>>2>>>0]=a,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _getaddrinfo(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(161,0,1,e,t,r,n);e>>>=0,t>>>=0,n>>>=0;var i,a=0,s=0,o=0,_=0,l=0,c=0;function u(e,t,r,n,i,a){var s,o,_;return o=10===e?28:16,i=10===e?inetNtop6(i):inetNtop4(i),s=_malloc(o),assert(!writeSockaddr(s,e,i,a)),_=_malloc(32),GROWABLE_HEAP_I32()[_+4>>>2>>>0]=e,GROWABLE_HEAP_I32()[_+8>>>2>>>0]=t,GROWABLE_HEAP_I32()[_+12>>>2>>>0]=r,GROWABLE_HEAP_U32()[_+24>>>2>>>0]=n,GROWABLE_HEAP_U32()[_+20>>>2>>>0]=s,GROWABLE_HEAP_I32()[_+16>>>2>>>0]=10===e?28:16,GROWABLE_HEAP_I32()[_+28>>>2>>>0]=0,_}if((r>>>=0)&&(o=GROWABLE_HEAP_I32()[r>>>2>>>0],_=GROWABLE_HEAP_I32()[r+4>>>2>>>0],l=GROWABLE_HEAP_I32()[r+8>>>2>>>0],c=GROWABLE_HEAP_I32()[r+12>>>2>>>0]),l&&!c&&(c=2===l?17:6),!l&&c&&(l=17===c?2:1),0===c&&(c=6),0===l&&(l=1),!e&&!t)return-2;if(-1088&o||0!==r&&2&GROWABLE_HEAP_I32()[r>>>2>>>0]&&!e)return-1;if(32&o)return-2;if(0!==l&&1!==l&&2!==l)return-7;if(0!==_&&2!==_&&10!==_)return-6;if(t&&(t=UTF8ToString(t),s=parseInt(t,10),isNaN(s)))return 1024&o?-2:-8;if(!e)return 0===_&&(_=2),1&o||(a=2===_?_htonl(2130706433):[0,0,0,1]),i=u(_,l,c,null,a,s),GROWABLE_HEAP_U32()[n>>>2>>>0]=i,0;if(e=UTF8ToString(e),null!==(a=inetPton4(e)))if(0===_||2===_)_=2;else{if(!(10===_&&8&o))return-2;a=[0,0,_htonl(65535),a],_=10}else if(null!==(a=inetPton6(e))){if(0!==_&&10!==_)return-2;_=10}return null!=a?(i=u(_,l,c,e,a,s),GROWABLE_HEAP_U32()[n>>>2>>>0]=i,0):4&o?-2:(e=DNS.lookup_name(e),a=inetPton4(e),0===_?_=2:10===_&&(a=[0,0,_htonl(65535),a]),i=u(_,l,c,null,a,s),GROWABLE_HEAP_U32()[n>>>2>>>0]=i,0)}function _getentropy(e,t){return e>>>=0,t>>>=0,randomFill(GROWABLE_HEAP_U8().subarray(e>>>0,e+t>>>0)),0}function _getnameinfo(e,t,r,n,i,a,s){r>>>=0,i>>>=0;var o=readSockaddr(e>>>=0,t);if(o.errno)return-6;var _=o.port,l=o.addr,c=!1;if(r&&n){var u;if(1&s||!(u=DNS.lookup_addr(l))){if(8&s)return-2}else l=u;stringToUTF8(l,r,n)+1>=n&&(c=!0)}return i&&a&&stringToUTF8(_=""+_,i,a)+1>=a&&(c=!0),c?-12:0}_fd_pwrite.sig="iippiip",_fd_read.sig="iippp",_fd_seek.sig="iiiiip",_fd_sync.sig="ii",_fd_write.sig="iippp",_getaddrinfo.sig="ipppp",_getentropy.sig="ipp",_getnameinfo.sig="ipipipii";var arraySum=(e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r},MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],addDays=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=isLeapYear(r.getFullYear()),i=r.getMonth(),a=(n?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[i];if(!(t>a-r.getDate()))return r.setDate(r.getDate()+t),r;t-=a-r.getDate()+1,r.setDate(1),i<11?r.setMonth(i+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r},writeArrayToMemory=(e,t)=>{GROWABLE_HEAP_I8().set(e,t>>>0)};function _strftime(e,t,r,n){e>>>=0,t>>>=0,r>>>=0,n>>>=0;var i=GROWABLE_HEAP_U32()[n+40>>>2>>>0],a={tm_sec:GROWABLE_HEAP_I32()[n>>>2>>>0],tm_min:GROWABLE_HEAP_I32()[n+4>>>2>>>0],tm_hour:GROWABLE_HEAP_I32()[n+8>>>2>>>0],tm_mday:GROWABLE_HEAP_I32()[n+12>>>2>>>0],tm_mon:GROWABLE_HEAP_I32()[n+16>>>2>>>0],tm_year:GROWABLE_HEAP_I32()[n+20>>>2>>>0],tm_wday:GROWABLE_HEAP_I32()[n+24>>>2>>>0],tm_yday:GROWABLE_HEAP_I32()[n+28>>>2>>>0],tm_isdst:GROWABLE_HEAP_I32()[n+32>>>2>>>0],tm_gmtoff:GROWABLE_HEAP_I32()[n+36>>>2>>>0],tm_zone:i?UTF8ToString(i):""},s=UTF8ToString(r),o={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var _ in o)s=s.replace(new RegExp(_,"g"),o[_]);var l=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function u(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length0?1:0}var n;return 0===(n=r(e.getFullYear()-t.getFullYear()))&&0===(n=r(e.getMonth()-t.getMonth()))&&(n=r(e.getDate()-t.getDate())),n}function m(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function f(e){var t=addDays(new Date(e.tm_year+1900,0,1),e.tm_yday),r=new Date(t.getFullYear(),0,4),n=new Date(t.getFullYear()+1,0,4),i=m(r),a=m(n);return p(i,t)<=0?p(a,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var h={"%a":e=>l[e.tm_wday].substring(0,3),"%A":e=>l[e.tm_wday],"%b":e=>c[e.tm_mon].substring(0,3),"%B":e=>c[e.tm_mon],"%C":e=>d((e.tm_year+1900)/100|0,2),"%d":e=>d(e.tm_mday,2),"%e":e=>u(e.tm_mday,2," "),"%g":e=>f(e).toString().substring(2),"%G":f,"%H":e=>d(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),d(t,2)},"%j":e=>d(e.tm_mday+arraySum(isLeapYear(e.tm_year+1900)?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,e.tm_mon-1),3),"%m":e=>d(e.tm_mon+1,2),"%M":e=>d(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>d(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return d(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var r=(e.tm_wday+371-e.tm_yday)%7;4!=r&&(3!=r||!isLeapYear(e.tm_year))&&(t=1)}}else{t=52;var n=(e.tm_wday+7-e.tm_yday-1)%7;(4==n||5==n&&isLeapYear(e.tm_year%400-1))&&t++}return d(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return d(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff;return(t>=0?"+":"-")+("0000"+(t=(t=Math.abs(t)/60)/60*100+t%60)).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var _ in s=s.replace(/%%/g,"\0\0"),h)s.includes(_)&&(s=s.replace(new RegExp(_,"g"),h[_](a)));var g=intArrayFromString(s=s.replace(/\0\0/g,"%"),!1);return g.length>t?0:(writeArrayToMemory(g,e),g.length-1)}function _strftime_l(e,t,r,n,i){return _strftime(e>>>=0,t>>>=0,r>>>=0,n>>>=0)}function _strptime(e,t,r){e>>>=0,r>>>=0;for(var n=UTF8ToString(t>>>=0),i="\\!@#$^&*()+=-[]/{}|:<>?,.",a=0;a<25;++a)n=n.replace(new RegExp("\\"+i[a],"g"),"\\"+i[a]);var s={A:"%a",B:"%b",c:"%a %b %d %H:%M:%S %Y",D:"%m\\/%d\\/%y",e:"%d",F:"%Y-%m-%d",h:"%b",R:"%H\\:%M",r:"%I\\:%M\\:%S\\s%p",T:"%H\\:%M\\:%S",x:"%m\\/%d\\/(?:%y|%Y)",X:"%H\\:%M\\:%S"},o={a:"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)",b:"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)",C:"\\d\\d",d:"0[1-9]|[1-9](?!\\d)|1\\d|2\\d|30|31",H:"\\d(?!\\d)|[0,1]\\d|20|21|22|23",I:"\\d(?!\\d)|0\\d|10|11|12",j:"00[1-9]|0?[1-9](?!\\d)|0?[1-9]\\d(?!\\d)|[1,2]\\d\\d|3[0-6]\\d",m:"0[1-9]|[1-9](?!\\d)|10|11|12",M:"0\\d|\\d(?!\\d)|[1-5]\\d",n:" ",p:"AM|am|PM|pm|A\\.M\\.|a\\.m\\.|P\\.M\\.|p\\.m\\.",S:"0\\d|\\d(?!\\d)|[1-5]\\d|60",U:"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53",W:"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53",w:"[0-6]",y:"\\d\\d",Y:"\\d\\d\\d\\d",t:" ",z:"Z|(?:[\\+\\-]\\d\\d:?(?:\\d\\d)?)"},_=[],l=n.replace(/%(.)/g,((e,t)=>s[t]||e)).replace(/%(.)/g,((e,t)=>{let r=o[t];return r?(_.push(t),"(".concat(r,")")):t})).replace(/\s+/g,"\\s*"),c=new RegExp("^"+l,"i").exec(UTF8ToString(e));if(c){var u,d=function(){function e(e,t,r){return"number"!=typeof e||isNaN(e)?t:e>=t?e<=r?e:r:t}return{year:e(GROWABLE_HEAP_I32()[r+20>>>2>>>0]+1900,1970,9999),month:e(GROWABLE_HEAP_I32()[r+16>>>2>>>0],0,11),day:e(GROWABLE_HEAP_I32()[r+12>>>2>>>0],1,31),hour:e(GROWABLE_HEAP_I32()[r+8>>>2>>>0],0,23),min:e(GROWABLE_HEAP_I32()[r+4>>>2>>>0],0,59),sec:e(GROWABLE_HEAP_I32()[r>>>2>>>0],0,59),gmtoff:0}}(),p=e=>{var t=_.indexOf(e);if(t>=0)return c[t+1]};if((u=p("S"))&&(d.sec=jstoi_q(u)),(u=p("M"))&&(d.min=jstoi_q(u)),u=p("H"))d.hour=jstoi_q(u);else if(u=p("I")){var m=jstoi_q(u);(u=p("p"))&&(m+="P"===u.toUpperCase()[0]?12:0),d.hour=m}if(u=p("Y"))d.year=jstoi_q(u);else if(u=p("y")){var f=jstoi_q(u);(u=p("C"))?f+=100*jstoi_q(u):f+=f<69?2e3:1900,d.year=f}if((u=p("m"))?d.month=jstoi_q(u)-1:(u=p("b"))&&(d.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[u.substring(0,3).toUpperCase()]||0),u=p("d"))d.day=jstoi_q(u);else if(u=p("j"))for(var h=jstoi_q(u),g=isLeapYear(d.year),v=0;v<12;++v){var E=arraySum(g?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,v-1);h<=E+(g?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[v]&&(d.day=h-E)}else if(u=p("a")){var y=u.substring(0,3).toUpperCase();if(u=p("U")){var b={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[y],S=jstoi_q(u);L=0===(A=new Date(d.year,0,1)).getDay()?addDays(A,b+7*(S-1)):addDays(A,7-A.getDay()+b+7*(S-1)),d.day=L.getDate(),d.month=L.getMonth()}else if(u=p("W")){var A,L;b={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[y],S=jstoi_q(u),L=1===(A=new Date(d.year,0,1)).getDay()?addDays(A,b+7*(S-1)):addDays(A,7-A.getDay()+1+b+7*(S-1)),d.day=L.getDate(),d.month=L.getMonth()}}if(u=p("z"))if("z"===u.toLowerCase())d.gmtoff=0;else{var w=u.match(/^((?:\-|\+)\d\d):?(\d\d)?/);d.gmtoff=3600*w[1],w[2]&&(d.gmtoff+=d.gmtoff>0?60*w[2]:60*-w[2])}var T=new Date(d.year,d.month,d.day,d.hour,d.min,d.sec,0);return GROWABLE_HEAP_I32()[r>>>2>>>0]=T.getSeconds(),GROWABLE_HEAP_I32()[r+4>>>2>>>0]=T.getMinutes(),GROWABLE_HEAP_I32()[r+8>>>2>>>0]=T.getHours(),GROWABLE_HEAP_I32()[r+12>>>2>>>0]=T.getDate(),GROWABLE_HEAP_I32()[r+16>>>2>>>0]=T.getMonth(),GROWABLE_HEAP_I32()[r+20>>>2>>>0]=T.getFullYear()-1900,GROWABLE_HEAP_I32()[r+24>>>2>>>0]=T.getDay(),GROWABLE_HEAP_I32()[r+28>>>2>>>0]=arraySum(isLeapYear(T.getFullYear())?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,T.getMonth()-1)+T.getDate()-1,GROWABLE_HEAP_I32()[r+32>>>2>>>0]=0,GROWABLE_HEAP_I32()[r+36>>>2>>>0]=d.gmtoff,e+intArrayFromString(c[0]).length-1}return 0}_strftime.sig="ppppp",_strftime_l.sig="pppppp",_strptime.sig="pppp";var getCFunc=e=>Module["_"+e],ccall=(e,t,r,n,i)=>{var a={string:e=>{var t=0;return null!=e&&0!==e&&(t=stringToUTF8OnStack(e)),t},array:e=>{var t=stackAlloc(e.length);return writeArrayToMemory(e,t),t}},s=getCFunc(e),o=[],_=0;if(n)for(var l=0;l{t>0x8000000000000000?(GROWABLE_HEAP_U32()[e>>>2>>>0]=4294967295,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=2147483647):t<-0x8000000000000000?(GROWABLE_HEAP_U32()[e>>>2>>>0]=0,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=2147483648):writeI53ToI64(e,t)},writeI53ToI64Signaling=(e,t)=>{if(t>0x8000000000000000||t<-0x8000000000000000)throw"RangeError: ".concat(t);writeI53ToI64(e,t)},writeI53ToU64Clamped=(e,t)=>{t>0x10000000000000000?(GROWABLE_HEAP_U32()[e>>>2>>>0]=4294967295,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=4294967295):t<0?(GROWABLE_HEAP_U32()[e>>>2>>>0]=0,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=0):writeI53ToI64(e,t)},writeI53ToU64Signaling=(e,t)=>{if(t<0||t>0x10000000000000000)throw"RangeError: ".concat(t);writeI53ToI64(e,t)},readI53FromU64=e=>GROWABLE_HEAP_U32()[e>>>2>>>0]+4294967296*GROWABLE_HEAP_U32()[e+4>>>2>>>0],convertI32PairToI53=(e,t)=>(e>>>0)+4294967296*t,convertU32PairToI53=(e,t)=>(e>>>0)+4294967296*(t>>>0),getTempRet0=e=>__emscripten_tempret_get(),setTempRet0=e=>__emscripten_tempret_set(e),_stackAlloc=stackAlloc,_stackSave=stackSave,_stackRestore=stackSave,ptrToString=e=>"0x"+e.toString(16).padStart(8,"0");function _emscripten_notify_memory_growth(e){updateMemoryViews()}function ___asctime_r(e,t){e>>>=0,t>>>=0;var r=GROWABLE_HEAP_I32()[e>>>2>>>0],n=GROWABLE_HEAP_I32()[e+4>>>2>>>0],i=GROWABLE_HEAP_I32()[e+8>>>2>>>0],a=GROWABLE_HEAP_I32()[e+12>>>2>>>0],s=GROWABLE_HEAP_I32()[e+16>>>2>>>0],o=GROWABLE_HEAP_I32()[e+20>>>2>>>0],_=GROWABLE_HEAP_I32()[e+24>>>2>>>0];return stringToUTF8(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][_]+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][s]+(a<10?" ":" ")+a+(i<10?" 0":" ")+i+(n<10?":0":":")+n+(r<10?":0":":")+r+" "+(1900+o)+"\n",t,26),t}function _strptime_l(e,t,r,n){return _strptime(e>>>=0,t>>>=0,r>>>=0)}_emscripten_notify_memory_growth.sig="vp",___asctime_r.sig="ppp",_strptime_l.sig="ppppp";var ERRNO_CODES={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},ERRNO_MESSAGES={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},Protocols={list:[],map:{}},_setprotoent=e=>{function t(e,t,r){var n=_malloc(e.length+1);stringToAscii(e,n);for(var i=0,a=r.length,s=_malloc(4*(a+1)),o=0;o>>2>>>0]=l}GROWABLE_HEAP_U32()[s+i>>>2>>>0]=0;var c=_malloc(12);return GROWABLE_HEAP_U32()[c>>>2>>>0]=n,GROWABLE_HEAP_U32()[c+4>>>2>>>0]=s,GROWABLE_HEAP_I32()[c+8>>>2>>>0]=t,c}var r=Protocols.list,n=Protocols.map;if(0===r.length){var i=t("tcp",6,["TCP"]);r.push(i),n.tcp=n[6]=i,i=t("udp",17,["UDP"]),r.push(i),n.udp=n[17]=i}_setprotoent.index=0};_setprotoent.sig="vi";var _endprotoent=()=>{};function _getprotoent(e){return _setprotoent.index===Protocols.list.length?0:Protocols.list[_setprotoent.index++]}function _getprotobyname(e){return e=UTF8ToString(e>>>=0),_setprotoent(!0),Protocols.map[e]}function _getprotobynumber(e){return _setprotoent(!0),Protocols.map[e]}function _emscripten_run_script(ptr){ptr>>>=0,eval(UTF8ToString(ptr))}function _emscripten_run_script_int(ptr){return ptr>>>=0,0|eval(UTF8ToString(ptr))}function _emscripten_run_script_string(ptr){ptr>>>=0;var s=eval(UTF8ToString(ptr));if(null==s)return 0;s+="";var me=_emscripten_run_script_string,len=lengthBytesUTF8(s);return(!me.bufferSize||me.bufferSizeMath.random();function jsStackTrace(){return(new Error).stack.toString()}function getCallstack(e){var t=jsStackTrace(),r=t.lastIndexOf("_emscripten_log"),n=t.lastIndexOf("_emscripten_get_callstack"),i=t.indexOf("\n",Math.max(r,n))+1;t=t.slice(i),8&e&&typeof emscripten_source_map>"u"&&(warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var a=t.split("\n");t="";var s=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),o=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),_=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var l in a){var c=a[l],u="",d="",p=0,m=0,f=_.exec(c);if(f&&5==f.length)u=f[1],d=f[2],p=f[3],m=f[4];else{if((f=s.exec(c))||(f=o.exec(c)),!(f&&f.length>=4)){t+=c+"\n";continue}u=f[1],d=f[2],p=f[3],m=0|f[4]}var h=!1;if(8&e){var g=emscripten_source_map.originalPositionFor({line:p,column:m});(h=null==g?void 0:g.source)&&(64&e&&(g.source=g.source.substring(g.source.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=" at ".concat(u," (").concat(g.source,":").concat(g.line,":").concat(g.column,")\n"))}(16&e||!h)&&(64&e&&(d=d.substring(d.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=(h?" = ".concat(u):" at ".concat(u))+" (".concat(d,":").concat(p,":").concat(m,")\n"))}return t.replace(/\s+$/,"")}_emscripten_random.sig="f";var emscriptenLog=(e,t)=>{24&e&&(t=t.replace(/\s+$/,""),t+=(t.length>0?"\n":"")+getCallstack(e)),1&e?4&e?console.error(t):2&e?console.warn(t):512&e?console.info(t):256&e?console.debug(t):console.log(t):6&e?err(t):out(t)},reallyNegative=e=>e<0||0===e&&1/e==-1/0,reSign=(e,t)=>{if(e<=0)return e;var r=t<=32?Math.abs(1<=r&&(t<=32||e>r)&&(e=-2*r+e),e},unSign=(e,t)=>e>=0?e:t<=32?2*Math.abs(1<{for(var t=e;GROWABLE_HEAP_U8()[t>>>0];)++t;return t-e},formatString=(e,t)=>{var r=e,n=t;function i(e){var t;return n=function(e,t){return("double"===t||"i64"===t)&&7&e&&(e+=4),e}(n,e),"double"===e?(t=GROWABLE_HEAP_F64()[n>>>3>>>0],n+=8):"i64"==e?(t=[GROWABLE_HEAP_I32()[n>>>2>>>0],GROWABLE_HEAP_I32()[n+4>>>2>>>0]],n+=8):(e="i32",t=GROWABLE_HEAP_I32()[n>>>2>>>0],n+=4),t}for(var a,s,o,_=[];;){var l=r;if(0===(a=GROWABLE_HEAP_I8()[r>>>0]))break;if(s=GROWABLE_HEAP_I8()[r+1>>>0],37==a){var c=!1,u=!1,d=!1,p=!1,m=!1;e:for(;;){switch(s){case 43:c=!0;break;case 45:u=!0;break;case 35:d=!0;break;case 48:if(p)break e;p=!0;break;case 32:m=!0;break;default:break e}r++,s=GROWABLE_HEAP_I8()[r+1>>>0]}var f=0;if(42==s)f=i("i32"),r++,s=GROWABLE_HEAP_I8()[r+1>>>0];else for(;s>=48&&s<=57;)f=10*f+(s-48),r++,s=GROWABLE_HEAP_I8()[r+1>>>0];var h,g=!1,v=-1;if(46==s){if(v=0,g=!0,r++,42==(s=GROWABLE_HEAP_I8()[r+1>>>0]))v=i("i32"),r++;else for(;;){var E=GROWABLE_HEAP_I8()[r+1>>>0];if(E<48||E>57)break;v=10*v+(E-48),r++}s=GROWABLE_HEAP_I8()[r+1>>>0]}switch(v<0&&(v=6,g=!1),String.fromCharCode(s)){case"h":104==GROWABLE_HEAP_I8()[r+2>>>0]?(r++,h=1):h=2;break;case"l":108==GROWABLE_HEAP_I8()[r+2>>>0]?(r++,h=8):h=4;break;case"L":case"q":case"j":h=8;break;case"z":case"t":case"I":h=4;break;default:h=null}switch(h&&r++,s=GROWABLE_HEAP_I8()[r+1>>>0],String.fromCharCode(s)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var y=100==s||105==s;if(o=i("i"+8*(h=h||4)),8==h&&(o=117==s?convertU32PairToI53(o[0],o[1]):convertI32PairToI53(o[0],o[1])),h<=4){var b=Math.pow(256,h)-1;o=(y?reSign:unSign)(o&b,8*h)}var S=Math.abs(o),A="";if(100==s||105==s)T=reSign(o,8*h).toString(10);else if(117==s)T=unSign(o,8*h).toString(10),o=Math.abs(o);else if(111==s)T=(d?"0":"")+S.toString(8);else if(120==s||88==s){if(A=d&&0!=o?"0x":"",o<0){o=-o,T=(S-1).toString(16);for(var L=[],w=0;w=0&&(c?A="+"+A:m&&(A=" "+A)),"-"==T.charAt(0)&&(A="-"+A,T=T.substr(1));A.length+T.lengthx&&x>=-4?(s=(103==s?"f":"F").charCodeAt(0),v-=x+1):(s=(103==s?"e":"E").charCodeAt(0),v--),D=Math.min(v,20)}101==s||69==s?(T=o.toExponential(D),/[eE][-+]\d$/.test(T)&&(T=T.slice(0,-1)+"0"+T.slice(-1))):(102==s||70==s)&&(T=o.toFixed(D),0===o&&reallyNegative(o)&&(T="-"+T));var M=T.split("e");if(I&&!d)for(;M[0].length>1&&M[0].includes(".")&&("0"==M[0].slice(-1)||"."==M[0].slice(-1));)M[0]=M[0].slice(0,-1);else for(d&&-1==T.indexOf(".")&&(M[0]+=".");v>D++;)M[0]+="0";T=M[0]+(M.length>1?"e"+M[1]:""),69==s&&(T=T.toUpperCase()),o>=0&&(c?T="+"+T:m&&(T=" "+T))}else T=(o<0?"-":"")+"inf",p=!1;for(;T.length>>0]);else _=_.concat(intArrayFromString("(null)".substr(0,P),!0));if(u)for(;P0;)_.push(32);u||_.push(i("i8"));break;case"n":var k=i("i32*");GROWABLE_HEAP_I32()[k>>>2>>>0]=_.length;break;case"%":_.push(a);break;default:for(w=l;w>>0])}r+=2}else _.push(a),r+=1}return _};function _emscripten_log(e,t,r){var n=formatString(t>>>=0,r>>>=0),i=UTF8ArrayToString(n,0);emscriptenLog(e,i)}function _emscripten_get_compiler_setting(e){throw"You must build with -sRETAIN_COMPILER_SETTINGS for getCompilerSetting or emscripten_get_compiler_setting to work"}_emscripten_log.sig="vipp",_emscripten_get_compiler_setting.sig="pp";var _emscripten_has_asyncify=()=>0;function _emscripten_debugger(){}function _emscripten_print_double(e,t,r){var n=e+"";return(t>>>=0)?stringToUTF8(n,t,r):lengthBytesUTF8(n)}function _emscripten_get_module_name(e,t){return stringToUTF8(wasmBinaryFile,e>>>=0,t>>>=0)}function _emscripten_asm_const_double(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}_emscripten_has_asyncify.sig="i",_emscripten_debugger.sig="v",_emscripten_print_double.sig="idpi",_emscripten_get_module_name.sig="ppp",_emscripten_asm_const_double.sig="dppp";var runMainThreadEmAsm=(e,t,r,n)=>{var i=readEmAsmArgs(t,r);return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(0,e,n,...i):ASM_CONSTS[e](...i)};function _emscripten_asm_const_int_sync_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,1)}function _emscripten_asm_const_ptr_sync_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,1)}_emscripten_asm_const_int_sync_on_main_thread.sig="ippp",_emscripten_asm_const_ptr_sync_on_main_thread.sig="pppp";var _emscripten_asm_const_double_sync_on_main_thread=_emscripten_asm_const_int_sync_on_main_thread;function _emscripten_asm_const_async_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,0)}_emscripten_asm_const_double_sync_on_main_thread.sig="dppp",_emscripten_asm_const_async_on_main_thread.sig="vppp";var jstoi_s=Number;function __Unwind_Backtrace(e,t){e>>>=0,t>>>=0;for(var r=getCallstack().split("\n"),n=0;n{var t=[];t.push([0,97,115,109,1,0,0,0]);var r=[e[0].replace("j","i"),"i",e.slice(1).replace(/j/g,"ii")].join(""),n=[3];generateFuncType(r,n),generateFuncType(e,n),generateFuncType("vi",n);var i=[1];uleb128Encode(n.length,i),i.push(...n),t.push(i),t.push([2,15,2,1,101,1,116,1,112,0,0,1,101,1,114,0,2]),t.push([3,2,1,0]),t.push([7,5,1,1,102,0,1]);var a=[];function s(e){a.push(32),uleb128Encode(e,a)}"j"===e[0]?a=[1,1,126]:a.push(0);for(var o=1,_=1;_("dynCall_"+(e=e.replace(/p/g,"i"))in Module||(Module["dynCall_"+e]=createDyncallWrapper(e)),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>{if(e.includes("j"))return dynCallLegacy(e,t,r);var n=getWasmTableEntry(t)(...r);return"p"==e[0]?n>>>0:n},getDynCaller=(e,t)=>(...r)=>dynCall(e,t,r);function _emscripten_force_exit(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(162,0,1,e);__emscripten_runtime_keepalive_clear(),_exit(e)}function _emscripten_outn(e,t){return out(UTF8ToString(e>>>=0,t>>>=0))}function _emscripten_errn(e,t){return err(UTF8ToString(e>>>=0,t>>>=0))}_emscripten_force_exit.sig="vi",_emscripten_outn.sig="vpp",_emscripten_errn.sig="vpp";var _emscripten_throw_number=e=>{throw e};function _emscripten_throw_string(e){throw UTF8ToString(e>>>=0)}_emscripten_throw_number.sig="vd",_emscripten_throw_string.sig="vp";var _emscripten_runtime_keepalive_push=runtimeKeepalivePush;_emscripten_runtime_keepalive_push.sig="v";var _emscripten_runtime_keepalive_pop=runtimeKeepalivePop;_emscripten_runtime_keepalive_pop.sig="v";var _emscripten_runtime_keepalive_check=keepRuntimeAlive;_emscripten_runtime_keepalive_check.sig="i";var asmjsMangle=e=>("__main_argc_argv"==e&&(e="main"),e.startsWith("dynCall_")?e:"_"+e),___global_base=1024;function __emscripten_fs_load_embedded_files(e){e>>>=0;do{var t=GROWABLE_HEAP_U32()[e>>>2>>>0];e+=4;var r=GROWABLE_HEAP_U32()[e>>>2>>>0];e+=4;var n=GROWABLE_HEAP_U32()[e>>>2>>>0];e+=4;var i=UTF8ToString(t);FS.createPath("/",PATH.dirname(i),!0,!0),FS.createDataFile(i,null,GROWABLE_HEAP_I8().subarray(n>>>0,n+r>>>0),!0,!0,!0)}while(GROWABLE_HEAP_U32()[e>>>2>>>0])}__emscripten_fs_load_embedded_files.sig="vp";var POINTER_SIZE=4;function getNativeTypeSize(e){switch(e){case"i1":case"i8":case"u8":return 1;case"i16":case"u16":return 2;case"i32":case"u32":case"float":return 4;case"i64":case"u64":case"double":return 8;default:if("*"===e[e.length-1])return POINTER_SIZE;if("i"===e[0]){let t=Number(e.substr(1));return assert(t%8==0,"getNativeTypeSize invalid bits ".concat(t,", ").concat(e," type")),t/8}return 0}}var STACK_SIZE=65536,STACK_ALIGN=16,ASSERTIONS=0,cwrap=(e,t,r,n)=>{var i=!r||r.every((e=>"number"===e||"boolean"===e));return"string"!==t&&i&&!n?getCFunc(e):(...i)=>ccall(e,t,r,i,n)},removeFunction=e=>{functionsInTableMap.delete(getWasmTableEntry(e)),setWasmTableEntry(e,null),freeTableIndexes.push(e)},_emscripten_math_cbrt=Math.cbrt;_emscripten_math_cbrt.sig="dd";var _emscripten_math_pow=Math.pow;_emscripten_math_pow.sig="ddd";var _emscripten_math_random=Math.random;_emscripten_math_random.sig="d";var _emscripten_math_sign=Math.sign;_emscripten_math_sign.sig="dd";var _emscripten_math_sqrt=Math.sqrt;_emscripten_math_sqrt.sig="dd";var _emscripten_math_exp=Math.exp;_emscripten_math_exp.sig="dd";var _emscripten_math_expm1=Math.expm1;_emscripten_math_expm1.sig="dd";var _emscripten_math_fmod=(e,t)=>e%t;_emscripten_math_fmod.sig="ddd";var _emscripten_math_log=Math.log;_emscripten_math_log.sig="dd";var _emscripten_math_log1p=Math.log1p;_emscripten_math_log1p.sig="dd";var _emscripten_math_log10=Math.log10;_emscripten_math_log10.sig="dd";var _emscripten_math_log2=Math.log2;_emscripten_math_log2.sig="dd";var _emscripten_math_round=Math.round;_emscripten_math_round.sig="dd";var _emscripten_math_acos=Math.acos;_emscripten_math_acos.sig="dd";var _emscripten_math_acosh=Math.acosh;_emscripten_math_acosh.sig="dd";var _emscripten_math_asin=Math.asin;_emscripten_math_asin.sig="dd";var _emscripten_math_asinh=Math.asinh;_emscripten_math_asinh.sig="dd";var _emscripten_math_atan=Math.atan;_emscripten_math_atan.sig="dd";var _emscripten_math_atanh=Math.atanh;_emscripten_math_atanh.sig="dd";var _emscripten_math_atan2=Math.atan2;_emscripten_math_atan2.sig="ddd";var _emscripten_math_cos=Math.cos;_emscripten_math_cos.sig="dd";var _emscripten_math_cosh=Math.cosh;function _emscripten_math_hypot(e,t){t>>>=0;for(var r=[],n=0;n>>3>>>0]);return Math.hypot(...r)}_emscripten_math_cosh.sig="dd",_emscripten_math_hypot.sig="dip";var _emscripten_math_sin=Math.sin;_emscripten_math_sin.sig="dd";var _emscripten_math_sinh=Math.sinh;_emscripten_math_sinh.sig="dd";var _emscripten_math_tan=Math.tan;_emscripten_math_tan.sig="dd";var _emscripten_math_tanh=Math.tanh;function intArrayToString(e){for(var t=[],r=0;r255&&(n&=255),t.push(String.fromCharCode(n))}return t.join("")}_emscripten_math_tanh.sig="dd";var AsciiToString=e=>{e>>>=0;for(var t="";;){var r=GROWABLE_HEAP_U8()[e++>>>0];if(!r)return t;t+=String.fromCharCode(r)}},JSEvents={removeAllEventListeners(){for(;JSEvents.eventHandlers.length;)JSEvents._removeHandler(JSEvents.eventHandlers.length-1);JSEvents.deferredCalls=[]},inEventHandler:0,deferredCalls:[],deferCall(e,t,r){function n(e,t){if(e.length!=t.length)return!1;for(var r in e)if(e[r]!=t[r])return!1;return!0}for(var i in JSEvents.deferredCalls){var a=JSEvents.deferredCalls[i];if(a.targetFunction==e&&n(a.argsList,r))return}JSEvents.deferredCalls.push({targetFunction:e,precedence:t,argsList:r}),JSEvents.deferredCalls.sort(((e,t)=>e.precedencenavigator.userActivation?navigator.userActivation.isActive:JSEvents.inEventHandler&&JSEvents.currentEventHandler.allowsDeferredCalls,runDeferredCalls(){if(JSEvents.canPerformEventHandlerRequests())for(var e=0;e{for(var r=0;re?e==window?"#window":e==screen?"#screen":(null==e?void 0:e.nodeName)||"":"",fullscreenEnabled:()=>document.fullscreenEnabled||document.webkitFullscreenEnabled},maybeCStringToJsString=e=>e>2?UTF8ToString(e):e,specialHTMLTargets=[0,typeof document<"u"?document:0,typeof window<"u"?window:0],findEventTarget=e=>(e=maybeCStringToJsString(e),specialHTMLTargets[e]||(typeof document<"u"?document.querySelector(e):void 0)),registerKeyEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.keyEvent||(JSEvents.keyEvent=_malloc(176));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:n,handlerFunc:e=>{var r=s?_malloc(176):JSEvents.keyEvent;GROWABLE_HEAP_F64()[r>>>3>>>0]=e.timeStamp;var a=r>>>2;GROWABLE_HEAP_I32()[a+2>>>0]=e.location,GROWABLE_HEAP_I32()[a+3>>>0]=e.ctrlKey,GROWABLE_HEAP_I32()[a+4>>>0]=e.shiftKey,GROWABLE_HEAP_I32()[a+5>>>0]=e.altKey,GROWABLE_HEAP_I32()[a+6>>>0]=e.metaKey,GROWABLE_HEAP_I32()[a+7>>>0]=e.repeat,GROWABLE_HEAP_I32()[a+8>>>0]=e.charCode,GROWABLE_HEAP_I32()[a+9>>>0]=e.keyCode,GROWABLE_HEAP_I32()[a+10>>>0]=e.which,stringToUTF8(e.key||"",r+44,32),stringToUTF8(e.code||"",r+76,32),stringToUTF8(e.char||"",r+108,32),stringToUTF8(e.locale||"",r+140,32),s?__emscripten_run_callback_on_thread(s,n,i,r,t):getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)},findCanvasEventTarget=findEventTarget;function _emscripten_set_keypress_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(163,0,1,e,t,r,n,i):registerKeyEventCallback(e>>>=0,t>>>=0,r,n>>>=0,1,"keypress",i>>>=0)}function _emscripten_set_keydown_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(164,0,1,e,t,r,n,i):registerKeyEventCallback(e>>>=0,t>>>=0,r,n>>>=0,2,"keydown",i>>>=0)}function _emscripten_set_keyup_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(165,0,1,e,t,r,n,i):registerKeyEventCallback(e>>>=0,t>>>=0,r,n>>>=0,3,"keyup",i>>>=0)}_emscripten_set_keypress_callback_on_thread.sig="ippipp",_emscripten_set_keydown_callback_on_thread.sig="ippipp",_emscripten_set_keyup_callback_on_thread.sig="ippipp";var getBoundingClientRect=e=>specialHTMLTargets.indexOf(e)<0?e.getBoundingClientRect():{left:0,top:0},fillMouseEventData=(e,t,r)=>{GROWABLE_HEAP_F64()[e>>>3>>>0]=t.timeStamp;var n=e>>>2;GROWABLE_HEAP_I32()[n+2>>>0]=t.screenX,GROWABLE_HEAP_I32()[n+3>>>0]=t.screenY,GROWABLE_HEAP_I32()[n+4>>>0]=t.clientX,GROWABLE_HEAP_I32()[n+5>>>0]=t.clientY,GROWABLE_HEAP_I32()[n+6>>>0]=t.ctrlKey,GROWABLE_HEAP_I32()[n+7>>>0]=t.shiftKey,GROWABLE_HEAP_I32()[n+8>>>0]=t.altKey,GROWABLE_HEAP_I32()[n+9>>>0]=t.metaKey,GROWABLE_HEAP_I16()[2*n+20>>>0]=t.button,GROWABLE_HEAP_I16()[2*n+21>>>0]=t.buttons,GROWABLE_HEAP_I32()[n+11>>>0]=t.movementX,GROWABLE_HEAP_I32()[n+12>>>0]=t.movementY;var i=getBoundingClientRect(r);GROWABLE_HEAP_I32()[n+13>>>0]=t.clientX-(0|i.left),GROWABLE_HEAP_I32()[n+14>>>0]=t.clientY-(0|i.top)},registerMouseEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.mouseEvent||(JSEvents.mouseEvent=_malloc(72));var o={target:e=findEventTarget(e),allowsDeferredCalls:"mousemove"!=a&&"mouseenter"!=a&&"mouseleave"!=a,eventTypeString:a,callbackfunc:n,handlerFunc:(r=event)=>{if(fillMouseEventData(JSEvents.mouseEvent,r,e),s){var a=_malloc(72);fillMouseEventData(a,r,e),__emscripten_run_callback_on_thread(s,n,i,a,t)}else getWasmTableEntry(n)(i,JSEvents.mouseEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_click_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(166,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,4,"click",i>>>=0)}function _emscripten_set_mousedown_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(167,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,5,"mousedown",i>>>=0)}function _emscripten_set_mouseup_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(168,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,6,"mouseup",i>>>=0)}function _emscripten_set_dblclick_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(169,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,7,"dblclick",i>>>=0)}function _emscripten_set_mousemove_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(170,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,8,"mousemove",i>>>=0)}function _emscripten_set_mouseenter_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(171,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,33,"mouseenter",i>>>=0)}function _emscripten_set_mouseleave_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(172,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,34,"mouseleave",i>>>=0)}function _emscripten_set_mouseover_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(173,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,35,"mouseover",i>>>=0)}function _emscripten_set_mouseout_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(174,0,1,e,t,r,n,i):registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,36,"mouseout",i>>>=0)}function _emscripten_get_mouse_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(175,0,1,e):(e>>>=0,JSEvents.mouseEvent?(GROWABLE_HEAP_I8().set(GROWABLE_HEAP_I8().subarray(JSEvents.mouseEvent>>>0,JSEvents.mouseEvent+72>>>0),e>>>0),0):-7)}_emscripten_set_click_callback_on_thread.sig="ippipp",_emscripten_set_mousedown_callback_on_thread.sig="ippipp",_emscripten_set_mouseup_callback_on_thread.sig="ippipp",_emscripten_set_dblclick_callback_on_thread.sig="ippipp",_emscripten_set_mousemove_callback_on_thread.sig="ippipp",_emscripten_set_mouseenter_callback_on_thread.sig="ippipp",_emscripten_set_mouseleave_callback_on_thread.sig="ippipp",_emscripten_set_mouseover_callback_on_thread.sig="ippipp",_emscripten_set_mouseout_callback_on_thread.sig="ippipp",_emscripten_get_mouse_status.sig="ip";var registerWheelEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.wheelEvent||(JSEvents.wheelEvent=_malloc(104));var o={target:e,allowsDeferredCalls:!0,eventTypeString:a,callbackfunc:n,handlerFunc:(r=event)=>{var a=s?_malloc(104):JSEvents.wheelEvent;fillMouseEventData(a,r,e),GROWABLE_HEAP_F64()[a+72>>>3>>>0]=r.deltaX,GROWABLE_HEAP_F64()[a+80>>>3>>>0]=r.deltaY,GROWABLE_HEAP_F64()[a+88>>>3>>>0]=r.deltaZ,GROWABLE_HEAP_I32()[a+96>>>2>>>0]=r.deltaMode,s?__emscripten_run_callback_on_thread(s,n,i,a,t):getWasmTableEntry(n)(i,a,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_wheel_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(176,0,1,e,t,r,n,i):(t>>>=0,n>>>=0,i>>>=0,(e=findEventTarget(e>>>=0))?typeof e.onwheel<"u"?registerWheelEventCallback(e,t,r,n,9,"wheel",i):-1:-4)}_emscripten_set_wheel_callback_on_thread.sig="ippipp";var registerUiEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.uiEvent||(JSEvents.uiEvent=_malloc(36));var o={target:e=findEventTarget(e),eventTypeString:a,callbackfunc:n,handlerFunc:(r=event)=>{if(r.target==e){var a=document.body;if(a){var o=s?_malloc(36):JSEvents.uiEvent;GROWABLE_HEAP_I32()[o>>>2>>>0]=0,GROWABLE_HEAP_I32()[o+4>>>2>>>0]=a.clientWidth,GROWABLE_HEAP_I32()[o+8>>>2>>>0]=a.clientHeight,GROWABLE_HEAP_I32()[o+12>>>2>>>0]=innerWidth,GROWABLE_HEAP_I32()[o+16>>>2>>>0]=innerHeight,GROWABLE_HEAP_I32()[o+20>>>2>>>0]=outerWidth,GROWABLE_HEAP_I32()[o+24>>>2>>>0]=outerHeight,GROWABLE_HEAP_I32()[o+28>>>2>>>0]=0|pageXOffset,GROWABLE_HEAP_I32()[o+32>>>2>>>0]=0|pageYOffset,s?__emscripten_run_callback_on_thread(s,n,i,o,t):getWasmTableEntry(n)(i,o,t)&&r.preventDefault()}}},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_resize_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(177,0,1,e,t,r,n,i):registerUiEventCallback(e>>>=0,t>>>=0,r,n>>>=0,10,"resize",i>>>=0)}function _emscripten_set_scroll_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(178,0,1,e,t,r,n,i):registerUiEventCallback(e>>>=0,t>>>=0,r,n>>>=0,11,"scroll",i>>>=0)}_emscripten_set_resize_callback_on_thread.sig="ippipp",_emscripten_set_scroll_callback_on_thread.sig="ippipp";var registerFocusEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.focusEvent||(JSEvents.focusEvent=_malloc(256));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{var r=JSEvents.getNodeNameForTarget(e.target),a=e.target.id?e.target.id:"",o=s?_malloc(256):JSEvents.focusEvent;stringToUTF8(r,o+0,128),stringToUTF8(a,o+128,128),s?__emscripten_run_callback_on_thread(s,n,i,o,t):getWasmTableEntry(n)(i,o,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_blur_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(179,0,1,e,t,r,n,i):registerFocusEventCallback(e>>>=0,t>>>=0,r,n>>>=0,12,"blur",i>>>=0)}function _emscripten_set_focus_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(180,0,1,e,t,r,n,i):registerFocusEventCallback(e>>>=0,t>>>=0,r,n>>>=0,13,"focus",i>>>=0)}function _emscripten_set_focusin_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(181,0,1,e,t,r,n,i):registerFocusEventCallback(e>>>=0,t>>>=0,r,n>>>=0,14,"focusin",i>>>=0)}function _emscripten_set_focusout_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(182,0,1,e,t,r,n,i):registerFocusEventCallback(e>>>=0,t>>>=0,r,n>>>=0,15,"focusout",i>>>=0)}_emscripten_set_blur_callback_on_thread.sig="ippipp",_emscripten_set_focus_callback_on_thread.sig="ippipp",_emscripten_set_focusin_callback_on_thread.sig="ippipp",_emscripten_set_focusout_callback_on_thread.sig="ippipp";var fillDeviceOrientationEventData=(e,t,r)=>{GROWABLE_HEAP_F64()[e>>>3>>>0]=t.alpha,GROWABLE_HEAP_F64()[e+8>>>3>>>0]=t.beta,GROWABLE_HEAP_F64()[e+16>>>3>>>0]=t.gamma,GROWABLE_HEAP_I32()[e+24>>>2>>>0]=t.absolute},registerDeviceOrientationEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.deviceOrientationEvent||(JSEvents.deviceOrientationEvent=_malloc(32));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:n,handlerFunc:(r=event)=>{if(fillDeviceOrientationEventData(JSEvents.deviceOrientationEvent,r,e),s){var a=_malloc(32);fillDeviceOrientationEventData(a,r,e),__emscripten_run_callback_on_thread(s,n,i,a,t)}else getWasmTableEntry(n)(i,JSEvents.deviceOrientationEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_deviceorientation_callback_on_thread(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(183,0,1,e,t,r,n):registerDeviceOrientationEventCallback(2,e>>>=0,t,r>>>=0,16,"deviceorientation",n>>>=0)}function _emscripten_get_deviceorientation_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(184,0,1,e):(e>>>=0,JSEvents.deviceOrientationEvent?(GROWABLE_HEAP_I32().set(GROWABLE_HEAP_I32().subarray(JSEvents.deviceOrientationEvent>>>0,32),e>>>0),0):-7)}_emscripten_set_deviceorientation_callback_on_thread.sig="ipipp",_emscripten_get_deviceorientation_status.sig="ip";var fillDeviceMotionEventData=(e,t,r)=>{var n=t.acceleration,i=t.accelerationIncludingGravity,a=t.rotationRate;n=n||{},i=i||{},a=a||{},GROWABLE_HEAP_F64()[e>>>3>>>0]=n.x,GROWABLE_HEAP_F64()[e+8>>>3>>>0]=n.y,GROWABLE_HEAP_F64()[e+16>>>3>>>0]=n.z,GROWABLE_HEAP_F64()[e+24>>>3>>>0]=i.x,GROWABLE_HEAP_F64()[e+32>>>3>>>0]=i.y,GROWABLE_HEAP_F64()[e+40>>>3>>>0]=i.z,GROWABLE_HEAP_F64()[e+48>>>3>>>0]=a.alpha,GROWABLE_HEAP_F64()[e+56>>>3>>>0]=a.beta,GROWABLE_HEAP_F64()[e+64>>>3>>>0]=a.gamma},registerDeviceMotionEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.deviceMotionEvent||(JSEvents.deviceMotionEvent=_malloc(80));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:n,handlerFunc:(r=event)=>{if(fillDeviceMotionEventData(JSEvents.deviceMotionEvent,r,e),s){var a=_malloc(80);fillDeviceMotionEventData(a,r,e),__emscripten_run_callback_on_thread(s,n,i,a,t)}else getWasmTableEntry(n)(i,JSEvents.deviceMotionEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_devicemotion_callback_on_thread(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(185,0,1,e,t,r,n):registerDeviceMotionEventCallback(2,e>>>=0,t,r>>>=0,17,"devicemotion",n>>>=0)}function _emscripten_get_devicemotion_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(186,0,1,e):(e>>>=0,JSEvents.deviceMotionEvent?(GROWABLE_HEAP_I32().set(GROWABLE_HEAP_I32().subarray(JSEvents.deviceMotionEvent>>>0,80),e>>>0),0):-7)}_emscripten_set_devicemotion_callback_on_thread.sig="ipipp",_emscripten_get_devicemotion_status.sig="ip";var screenOrientation=()=>{if(window.screen)return screen.orientation||screen.mozOrientation||screen.webkitOrientation},fillOrientationChangeEventData=e=>{var t=0,r=0,n=screenOrientation();"object"==typeof n?((t=["portrait-primary","portrait-secondary","landscape-primary","landscape-secondary"].indexOf(n.type))<0&&(t=["portrait","portrait","landscape","landscape"].indexOf(n.type)),t>=0&&(t=1<>>2>>>0]=t,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=r},registerOrientationChangeEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.orientationChangeEvent||(JSEvents.orientationChangeEvent=_malloc(8));var o={target:e,eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{var r=s?_malloc(8):JSEvents.orientationChangeEvent;fillOrientationChangeEventData(r),s?__emscripten_run_callback_on_thread(s,n,i,r,t):getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_orientationchange_callback_on_thread(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(187,0,1,e,t,r,n):(e>>>=0,r>>>=0,n>>>=0,window.screen&&screen.orientation?registerOrientationChangeEventCallback(screen.orientation,e,t,r,18,"change",n):-1)}function _emscripten_get_orientation_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(188,0,1,e):(e>>>=0,!screenOrientation()&&typeof orientation>"u"?-1:(fillOrientationChangeEventData(e),0))}function _emscripten_lock_orientation(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(189,0,1,e);var t,r=[];if(1&e&&r.push("portrait-primary"),2&e&&r.push("portrait-secondary"),4&e&&r.push("landscape-primary"),8&e&&r.push("landscape-secondary"),screen.lockOrientation)t=screen.lockOrientation(r);else if(screen.mozLockOrientation)t=screen.mozLockOrientation(r);else{if(!screen.webkitLockOrientation)return-1;t=screen.webkitLockOrientation(r)}return t?0:-6}function _emscripten_unlock_orientation(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(190,0,1);if(screen.unlockOrientation)screen.unlockOrientation();else if(screen.mozUnlockOrientation)screen.mozUnlockOrientation();else{if(!screen.webkitUnlockOrientation)return-1;screen.webkitUnlockOrientation()}return 0}_emscripten_set_orientationchange_callback_on_thread.sig="ipipp",_emscripten_get_orientation_status.sig="ip",_emscripten_lock_orientation.sig="ii",_emscripten_unlock_orientation.sig="i";var fillFullscreenChangeEventData=e=>{var t=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement,r=!!t;GROWABLE_HEAP_I32()[e>>>2>>>0]=r,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=JSEvents.fullscreenEnabled();var n=r?t:JSEvents.previousFullscreenElement,i=JSEvents.getNodeNameForTarget(n),a=(null==n?void 0:n.id)||"";stringToUTF8(i,e+8,128),stringToUTF8(a,e+136,128),GROWABLE_HEAP_I32()[e+264>>>2>>>0]=n?n.clientWidth:0,GROWABLE_HEAP_I32()[e+268>>>2>>>0]=n?n.clientHeight:0,GROWABLE_HEAP_I32()[e+272>>>2>>>0]=screen.width,GROWABLE_HEAP_I32()[e+276>>>2>>>0]=screen.height,r&&(JSEvents.previousFullscreenElement=t)},registerFullscreenChangeEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.fullscreenChangeEvent||(JSEvents.fullscreenChangeEvent=_malloc(280));var o={target:e,eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{var r=s?_malloc(280):JSEvents.fullscreenChangeEvent;fillFullscreenChangeEventData(r),s?__emscripten_run_callback_on_thread(s,n,i,r,t):getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_fullscreenchange_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(191,0,1,e,t,r,n,i):(e>>>=0,t>>>=0,n>>>=0,i>>>=0,JSEvents.fullscreenEnabled()?(e=findEventTarget(e))?(registerFullscreenChangeEventCallback(e,t,r,n,19,"webkitfullscreenchange",i),registerFullscreenChangeEventCallback(e,t,r,n,19,"fullscreenchange",i)):-4:-1)}function _emscripten_get_fullscreen_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(192,0,1,e):(e>>>=0,JSEvents.fullscreenEnabled()?(fillFullscreenChangeEventData(e),0):-1)}_emscripten_set_fullscreenchange_callback_on_thread.sig="ippipp",_emscripten_get_fullscreen_status.sig="ip";var getCanvasSizeCallingThread=(e,t,r)=>{var n=findCanvasEventTarget(e);return n?n.controlTransferredOffscreen?-4:(GROWABLE_HEAP_I32()[t>>>2>>>0]=n.width,GROWABLE_HEAP_I32()[r>>>2>>>0]=n.height,0):-4};function getCanvasSizeMainThread(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(193,0,1,e,t,r):getCanvasSizeCallingThread(e,t,r)}function _emscripten_get_canvas_element_size(e,t,r){return t>>>=0,r>>>=0,findCanvasEventTarget(e>>>=0)?getCanvasSizeCallingThread(e,t,r):getCanvasSizeMainThread(e,t,r)}_emscripten_get_canvas_element_size.sig="ippp";var getCanvasElementSize=e=>withStackSave((()=>{var t=stackAlloc(8),r=t+4;return _emscripten_get_canvas_element_size(stringToUTF8OnStack(e.id),t,r),[GROWABLE_HEAP_I32()[t>>>2>>>0],GROWABLE_HEAP_I32()[r>>>2>>>0]]})),setCanvasElementSizeCallingThread=(e,t,r)=>{var n,i=findCanvasEventTarget(e);if(!i||i.controlTransferredOffscreen)return-4;var a=!1;if(null!=(n=i.GLctxObject)&&n.GLctx){var s=i.GLctxObject.GLctx.getParameter(2978);a=0===s[0]&&0===s[1]&&s[2]===i.width&&s[3]===i.height}return i.width=t,i.height=r,a&&i.GLctxObject.GLctx.viewport(0,0,t,r),0};function setCanvasElementSizeMainThread(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(194,0,1,e,t,r):setCanvasElementSizeCallingThread(e,t,r)}function _emscripten_set_canvas_element_size(e,t,r){return findCanvasEventTarget(e>>>=0)?setCanvasElementSizeCallingThread(e,t,r):setCanvasElementSizeMainThread(e,t,r)}_emscripten_set_canvas_element_size.sig="ipii";var setCanvasElementSize=(e,t,r)=>{e.controlTransferredOffscreen?withStackSave((()=>{_emscripten_set_canvas_element_size(stringToUTF8OnStack(e.id),t,r)})):(e.width=t,e.height=r)},registerRestoreOldStyle=e=>{var t=getCanvasElementSize(e),r=t[0],n=t[1],i=e.style.width,a=e.style.height,s=e.style.backgroundColor,o=document.body.style.backgroundColor,_=e.style.paddingLeft,l=e.style.paddingRight,c=e.style.paddingTop,u=e.style.paddingBottom,d=e.style.marginLeft,p=e.style.marginRight,m=e.style.marginTop,f=e.style.marginBottom,h=document.body.style.margin,g=document.documentElement.style.overflow,v=document.body.scroll,E=e.style.imageRendering;function y(){document.fullscreenElement||document.webkitFullscreenElement||(document.removeEventListener("fullscreenchange",y),document.removeEventListener("webkitfullscreenchange",y),setCanvasElementSize(e,r,n),e.style.width=i,e.style.height=a,e.style.backgroundColor=s,o||(document.body.style.backgroundColor="white"),document.body.style.backgroundColor=o,e.style.paddingLeft=_,e.style.paddingRight=l,e.style.paddingTop=c,e.style.paddingBottom=u,e.style.marginLeft=d,e.style.marginRight=p,e.style.marginTop=m,e.style.marginBottom=f,document.body.style.margin=h,document.documentElement.style.overflow=g,document.body.scroll=v,e.style.imageRendering=E,e.GLctxObject&&e.GLctxObject.GLctx.viewport(0,0,r,n),currentFullscreenStrategy.canvasResizedCallback&&(currentFullscreenStrategy.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(currentFullscreenStrategy.canvasResizedCallbackTargetThread,currentFullscreenStrategy.canvasResizedCallback,37,0,currentFullscreenStrategy.canvasResizedCallbackUserData):getWasmTableEntry(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData)))}return document.addEventListener("fullscreenchange",y),document.addEventListener("webkitfullscreenchange",y),y},setLetterbox=(e,t,r)=>{e.style.paddingLeft=e.style.paddingRight=r+"px",e.style.paddingTop=e.style.paddingBottom=t+"px"},JSEvents_resizeCanvasForFullscreen=(e,t)=>{var r=registerRestoreOldStyle(e),n=t.softFullscreen?innerWidth:screen.width,i=t.softFullscreen?innerHeight:screen.height,a=getBoundingClientRect(e),s=a.width,o=a.height,_=getCanvasElementSize(e),l=_[0],c=_[1];if(3==t.scaleMode)setLetterbox(e,(i-o)/2,(n-s)/2),n=s,i=o;else if(2==t.scaleMode)if(n*c{if((0!=t.scaleMode||0!=t.canvasResolutionScaleMode)&&JSEvents_resizeCanvasForFullscreen(e,t),e.requestFullscreen)e.requestFullscreen();else{if(!e.webkitRequestFullscreen)return JSEvents.fullscreenEnabled()?-3:-1;e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}return currentFullscreenStrategy=t,t.canvasResizedCallback&&(t.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(t.canvasResizedCallbackTargetThread,t.canvasResizedCallback,37,0,t.canvasResizedCallbackUserData):getWasmTableEntry(t.canvasResizedCallback)(37,0,t.canvasResizedCallbackUserData)),0},hideEverythingExceptGivenElement=e=>{for(var t=e,r=t.parentNode,n=[];t!=document.body;){for(var i=r.children,a=0;a{for(var t=0;t{var e,t=devicePixelRatio,r=2==currentFullscreenStrategy.canvasResolutionScaleMode,n=2==currentFullscreenStrategy.scaleMode,i=0!=currentFullscreenStrategy.canvasResolutionScaleMode,a=3==currentFullscreenStrategy.scaleMode,s=r?Math.round(innerWidth*t):innerWidth,o=r?Math.round(innerHeight*t):innerHeight,_=s,l=o,c=currentFullscreenStrategy.target,u=getCanvasElementSize(c),d=u[0],p=u[1];if(n&&(_*pd*l&&(_=l*d/p|0),e=(o-l)/2|0),i&&(setCanvasElementSize(c,_,l),c.GLctxObject&&c.GLctxObject.GLctx.viewport(0,0,_,l)),r&&(e/=t,_/=t,l/=t,_=Math.round(1e4*_)/1e4,l=Math.round(1e4*l)/1e4,e=Math.round(1e4*e)/1e4),a){var m=(innerHeight-jstoi_q(c.style.height))/2,f=(innerWidth-jstoi_q(c.style.width))/2;setLetterbox(c,m,f)}else c.style.width=_+"px",c.style.height=l+"px",f=(innerWidth-_)/2,setLetterbox(c,e,f);!a&¤tFullscreenStrategy.canvasResizedCallback&&(currentFullscreenStrategy.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(currentFullscreenStrategy.canvasResizedCallbackTargetThread,currentFullscreenStrategy.canvasResizedCallback,37,0,currentFullscreenStrategy.canvasResizedCallbackUserData):getWasmTableEntry(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData))},doRequestFullscreen=(e,t)=>JSEvents.fullscreenEnabled()?(e=findEventTarget(e))?e.requestFullscreen||e.webkitRequestFullscreen?JSEvents.canPerformEventHandlerRequests()?JSEvents_requestFullscreen(e,t):t.deferUntilInEventHandler?(JSEvents.deferCall(JSEvents_requestFullscreen,1,[e,t]),1):-2:-3:-4:-1;function _emscripten_request_fullscreen(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(195,0,1,e,t):doRequestFullscreen(e>>>=0,{scaleMode:0,canvasResolutionScaleMode:0,filteringMode:0,deferUntilInEventHandler:t,canvasResizedCallbackTargetThread:2})}function _emscripten_request_fullscreen_strategy(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(196,0,1,e,t,r);e>>>=0,r>>>=0;var n={scaleMode:GROWABLE_HEAP_I32()[r>>>2>>>0],canvasResolutionScaleMode:GROWABLE_HEAP_I32()[r+4>>>2>>>0],filteringMode:GROWABLE_HEAP_I32()[r+8>>>2>>>0],deferUntilInEventHandler:t,canvasResizedCallbackTargetThread:GROWABLE_HEAP_I32()[r+20>>>2>>>0],canvasResizedCallback:GROWABLE_HEAP_I32()[r+12>>>2>>>0],canvasResizedCallbackUserData:GROWABLE_HEAP_I32()[r+16>>>2>>>0]};return doRequestFullscreen(e,n)}function _emscripten_enter_soft_fullscreen(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(197,0,1,e,t);if(t>>>=0,!(e=findEventTarget(e>>>=0)))return-4;var r={scaleMode:GROWABLE_HEAP_I32()[t>>>2>>>0],canvasResolutionScaleMode:GROWABLE_HEAP_I32()[t+4>>>2>>>0],filteringMode:GROWABLE_HEAP_I32()[t+8>>>2>>>0],canvasResizedCallback:GROWABLE_HEAP_I32()[t+12>>>2>>>0],canvasResizedCallbackUserData:GROWABLE_HEAP_I32()[t+16>>>2>>>0],canvasResizedCallbackTargetThread:JSEvents.getTargetThreadForEventCallback(),target:e,softFullscreen:!0},n=JSEvents_resizeCanvasForFullscreen(e,r);document.documentElement.style.overflow="hidden",document.body.scroll="no",document.body.style.margin="0px";var i=hideEverythingExceptGivenElement(e);return restoreOldWindowedStyle=function(){n(),restoreHiddenElements(i),removeEventListener("resize",softFullscreenResizeWebGLRenderTarget),r.canvasResizedCallback&&(r.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(r.canvasResizedCallbackTargetThread,r.canvasResizedCallback,37,0,r.canvasResizedCallbackUserData):getWasmTableEntry(r.canvasResizedCallback)(37,0,r.canvasResizedCallbackUserData)),currentFullscreenStrategy=0},currentFullscreenStrategy=r,addEventListener("resize",softFullscreenResizeWebGLRenderTarget),r.canvasResizedCallback&&(r.canvasResizedCallbackTargetThread?__emscripten_run_callback_on_thread(r.canvasResizedCallbackTargetThread,r.canvasResizedCallback,37,0,r.canvasResizedCallbackUserData):getWasmTableEntry(r.canvasResizedCallback)(37,0,r.canvasResizedCallbackUserData)),0}function _emscripten_exit_soft_fullscreen(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(198,0,1):(null==restoreOldWindowedStyle||restoreOldWindowedStyle(),restoreOldWindowedStyle=null,0)}function _emscripten_exit_fullscreen(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(199,0,1);if(!JSEvents.fullscreenEnabled())return-1;JSEvents.removeDeferredCalls(JSEvents_requestFullscreen);var e=specialHTMLTargets[1];if(e.exitFullscreen)e.fullscreenElement&&e.exitFullscreen();else{if(!e.webkitExitFullscreen)return-1;e.webkitFullscreenElement&&e.webkitExitFullscreen()}return 0}_emscripten_request_fullscreen.sig="ipi",_emscripten_request_fullscreen_strategy.sig="ipip",_emscripten_enter_soft_fullscreen.sig="ipp",_emscripten_exit_soft_fullscreen.sig="i",_emscripten_exit_fullscreen.sig="i";var fillPointerlockChangeEventData=e=>{var t=document.pointerLockElement||document.mozPointerLockElement||document.webkitPointerLockElement||document.msPointerLockElement,r=!!t;GROWABLE_HEAP_I32()[e>>>2>>>0]=r;var n=JSEvents.getNodeNameForTarget(t),i=(null==t?void 0:t.id)||"";stringToUTF8(n,e+4,128),stringToUTF8(i,e+132,128)},registerPointerlockChangeEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.pointerlockChangeEvent||(JSEvents.pointerlockChangeEvent=_malloc(260));var o={target:e,eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{var r=s?_malloc(260):JSEvents.pointerlockChangeEvent;fillPointerlockChangeEventData(r),s?__emscripten_run_callback_on_thread(s,n,i,r,t):getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_pointerlockchange_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(200,0,1,e,t,r,n,i):(e>>>=0,t>>>=0,n>>>=0,i>>>=0,document&&document.body&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?(e=findEventTarget(e))?(registerPointerlockChangeEventCallback(e,t,r,n,20,"mozpointerlockchange",i),registerPointerlockChangeEventCallback(e,t,r,n,20,"webkitpointerlockchange",i),registerPointerlockChangeEventCallback(e,t,r,n,20,"mspointerlockchange",i),registerPointerlockChangeEventCallback(e,t,r,n,20,"pointerlockchange",i)):-4:-1)}_emscripten_set_pointerlockchange_callback_on_thread.sig="ippipp";var registerPointerlockErrorEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s);var o={target:e,eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{s?__emscripten_run_callback_on_thread(s,n,i,0,t):getWasmTableEntry(n)(i,0,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_pointerlockerror_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(201,0,1,e,t,r,n,i):(e>>>=0,t>>>=0,n>>>=0,i>>>=0,document&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?(e=findEventTarget(e))?(registerPointerlockErrorEventCallback(e,t,r,n,38,"mozpointerlockerror",i),registerPointerlockErrorEventCallback(e,t,r,n,38,"webkitpointerlockerror",i),registerPointerlockErrorEventCallback(e,t,r,n,38,"mspointerlockerror",i),registerPointerlockErrorEventCallback(e,t,r,n,38,"pointerlockerror",i)):-4:-1)}function _emscripten_get_pointerlock_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(202,0,1,e):((e>>>=0)&&fillPointerlockChangeEventData(e),document.body&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?0:-1)}_emscripten_set_pointerlockerror_callback_on_thread.sig="ippipp",_emscripten_get_pointerlock_status.sig="ip";var requestPointerLock=e=>e.requestPointerLock?(e.requestPointerLock(),0):document.body.requestPointerLock?-3:-1;function _emscripten_request_pointerlock(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(203,0,1,e,t):(e=findEventTarget(e>>>=0))?e.requestPointerLock?JSEvents.canPerformEventHandlerRequests()?requestPointerLock(e):t?(JSEvents.deferCall(requestPointerLock,2,[e]),1):-2:-1:-4}function _emscripten_exit_pointerlock(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(204,0,1):(JSEvents.removeDeferredCalls(requestPointerLock),document.exitPointerLock?(document.exitPointerLock(),0):-1)}function _emscripten_vibrate(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(205,0,1,e):navigator.vibrate?(navigator.vibrate(e),0):-1}function _emscripten_vibrate_pattern(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(206,0,1,e,t);if(e>>>=0,!navigator.vibrate)return-1;for(var r=[],n=0;n>>2>>>0];r.push(i)}return navigator.vibrate(r),0}_emscripten_request_pointerlock.sig="ipi",_emscripten_exit_pointerlock.sig="i",_emscripten_vibrate.sig="ii",_emscripten_vibrate_pattern.sig="ipi";var fillVisibilityChangeEventData=e=>{var t=["hidden","visible","prerender","unloaded"].indexOf(document.visibilityState);GROWABLE_HEAP_I32()[e>>>2>>>0]=document.hidden,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=t},registerVisibilityChangeEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.visibilityChangeEvent||(JSEvents.visibilityChangeEvent=_malloc(8));var o={target:e,eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{var r=s?_malloc(8):JSEvents.visibilityChangeEvent;fillVisibilityChangeEventData(r),s?__emscripten_run_callback_on_thread(s,n,i,r,t):getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_visibilitychange_callback_on_thread(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(207,0,1,e,t,r,n):(e>>>=0,r>>>=0,n>>>=0,specialHTMLTargets[1]?registerVisibilityChangeEventCallback(specialHTMLTargets[1],e,t,r,21,"visibilitychange",n):-4)}function _emscripten_get_visibility_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(208,0,1,e):(e>>>=0,typeof document.visibilityState>"u"&&typeof document.hidden>"u"?-1:(fillVisibilityChangeEventData(e),0))}_emscripten_set_visibilitychange_callback_on_thread.sig="ipipp",_emscripten_get_visibility_status.sig="ip";var registerTouchEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.touchEvent||(JSEvents.touchEvent=_malloc(1696));var o={target:e=findEventTarget(e),allowsDeferredCalls:"touchstart"==a||"touchend"==a,eventTypeString:a,callbackfunc:n,handlerFunc:r=>{for(var a,o={},_=r.touches,l=0;l<_.length;++l)(a=_[l]).isChanged=a.onTarget=0,o[a.identifier]=a;for(l=0;l>>3>>>0]=r.timeStamp;var u=c>>>2;GROWABLE_HEAP_I32()[u+3>>>0]=r.ctrlKey,GROWABLE_HEAP_I32()[u+4>>>0]=r.shiftKey,GROWABLE_HEAP_I32()[u+5>>>0]=r.altKey,GROWABLE_HEAP_I32()[u+6>>>0]=r.metaKey,u+=7;var d=getBoundingClientRect(e),p=0;for(var l in o)if(a=o[l],GROWABLE_HEAP_I32()[u+0>>>0]=a.identifier,GROWABLE_HEAP_I32()[u+1>>>0]=a.screenX,GROWABLE_HEAP_I32()[u+2>>>0]=a.screenY,GROWABLE_HEAP_I32()[u+3>>>0]=a.clientX,GROWABLE_HEAP_I32()[u+4>>>0]=a.clientY,GROWABLE_HEAP_I32()[u+5>>>0]=a.pageX,GROWABLE_HEAP_I32()[u+6>>>0]=a.pageY,GROWABLE_HEAP_I32()[u+7>>>0]=a.isChanged,GROWABLE_HEAP_I32()[u+8>>>0]=a.onTarget,GROWABLE_HEAP_I32()[u+9>>>0]=a.clientX-(0|d.left),GROWABLE_HEAP_I32()[u+10>>>0]=a.clientY-(0|d.top),u+=13,++p>31)break;GROWABLE_HEAP_I32()[c+8>>>2>>>0]=p,s?__emscripten_run_callback_on_thread(s,n,i,c,t):getWasmTableEntry(n)(i,c,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_touchstart_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(209,0,1,e,t,r,n,i):registerTouchEventCallback(e>>>=0,t>>>=0,r,n>>>=0,22,"touchstart",i>>>=0)}function _emscripten_set_touchend_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(210,0,1,e,t,r,n,i):registerTouchEventCallback(e>>>=0,t>>>=0,r,n>>>=0,23,"touchend",i>>>=0)}function _emscripten_set_touchmove_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(211,0,1,e,t,r,n,i):registerTouchEventCallback(e>>>=0,t>>>=0,r,n>>>=0,24,"touchmove",i>>>=0)}function _emscripten_set_touchcancel_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(212,0,1,e,t,r,n,i):registerTouchEventCallback(e>>>=0,t>>>=0,r,n>>>=0,25,"touchcancel",i>>>=0)}_emscripten_set_touchstart_callback_on_thread.sig="ippipp",_emscripten_set_touchend_callback_on_thread.sig="ippipp",_emscripten_set_touchmove_callback_on_thread.sig="ippipp",_emscripten_set_touchcancel_callback_on_thread.sig="ippipp";var fillGamepadEventData=(e,t)=>{GROWABLE_HEAP_F64()[e>>>3>>>0]=t.timestamp;for(var r=0;r>>3>>>0]=t.axes[r];for(r=0;r>>3>>>0]=t.buttons[r].value:GROWABLE_HEAP_F64()[e+8*r+528>>>3>>>0]=t.buttons[r];for(r=0;r>>2>>>0]=t.buttons[r].pressed:GROWABLE_HEAP_I32()[e+4*r+1040>>>2>>>0]=1==t.buttons[r];GROWABLE_HEAP_I32()[e+1296>>>2>>>0]=t.connected,GROWABLE_HEAP_I32()[e+1300>>>2>>>0]=t.index,GROWABLE_HEAP_I32()[e+8>>>2>>>0]=t.axes.length,GROWABLE_HEAP_I32()[e+12>>>2>>>0]=t.buttons.length,stringToUTF8(t.id,e+1304,64),stringToUTF8(t.mapping,e+1368,64)},registerGamepadEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.gamepadEvent||(JSEvents.gamepadEvent=_malloc(1432));var o={target:findEventTarget(e),allowsDeferredCalls:!0,eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{var r=s?_malloc(1432):JSEvents.gamepadEvent;fillGamepadEventData(r,e.gamepad),s?__emscripten_run_callback_on_thread(s,n,i,r,t):getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_sample_gamepad_data(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(214,0,1);try{if(navigator.getGamepads)return(JSEvents.lastGamepadState=navigator.getGamepads())?0:-1}catch(e){navigator.getGamepads=null}return-1}function _emscripten_set_gamepadconnected_callback_on_thread(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(213,0,1,e,t,r,n):(e>>>=0,r>>>=0,n>>>=0,_emscripten_sample_gamepad_data()?-1:registerGamepadEventCallback(2,e,t,r,26,"gamepadconnected",n))}function _emscripten_set_gamepaddisconnected_callback_on_thread(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(215,0,1,e,t,r,n):(e>>>=0,r>>>=0,n>>>=0,_emscripten_sample_gamepad_data()?-1:registerGamepadEventCallback(2,e,t,r,27,"gamepaddisconnected",n))}function _emscripten_get_num_gamepads(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(216,0,1):JSEvents.lastGamepadState.length}function _emscripten_get_gamepad_status(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(217,0,1,e,t):(t>>>=0,e<0||e>=JSEvents.lastGamepadState.length?-5:JSEvents.lastGamepadState[e]?(fillGamepadEventData(t,JSEvents.lastGamepadState[e]),0):-7)}_emscripten_sample_gamepad_data.sig="i",_emscripten_set_gamepadconnected_callback_on_thread.sig="ipipp",_emscripten_set_gamepaddisconnected_callback_on_thread.sig="ipipp",_emscripten_get_num_gamepads.sig="i",_emscripten_get_gamepad_status.sig="iip";var registerBeforeUnloadEventCallback=(e,t,r,n,i,a)=>{var s={target:findEventTarget(e),eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{var r=getWasmTableEntry(n)(i,0,t);if(r&&(r=UTF8ToString(r)),r)return e.preventDefault(),e.returnValue=r,r},useCapture:r};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_beforeunload_callback_on_thread(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(218,0,1,e,t,r):(e>>>=0,t>>>=0,r>>>=0,typeof onbeforeunload>"u"?-1:1!==r?-5:registerBeforeUnloadEventCallback(2,e,!0,t,28,"beforeunload"))}_emscripten_set_beforeunload_callback_on_thread.sig="ippp";var fillBatteryEventData=(e,t)=>{GROWABLE_HEAP_F64()[e>>>3>>>0]=t.chargingTime,GROWABLE_HEAP_F64()[e+8>>>3>>>0]=t.dischargingTime,GROWABLE_HEAP_F64()[e+16>>>3>>>0]=t.level,GROWABLE_HEAP_I32()[e+24>>>2>>>0]=t.charging},battery=()=>navigator.battery||navigator.mozBattery||navigator.webkitBattery,registerBatteryEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s),JSEvents.batteryEvent||(JSEvents.batteryEvent=_malloc(32));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{var r=s?_malloc(32):JSEvents.batteryEvent;fillBatteryEventData(r,battery()),s?__emscripten_run_callback_on_thread(s,n,i,r,t):getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_batterychargingchange_callback_on_thread(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(219,0,1,e,t,r):(e>>>=0,t>>>=0,r>>>=0,battery()?registerBatteryEventCallback(battery(),e,!0,t,29,"chargingchange",r):-1)}function _emscripten_set_batterylevelchange_callback_on_thread(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(220,0,1,e,t,r):(e>>>=0,t>>>=0,r>>>=0,battery()?registerBatteryEventCallback(battery(),e,!0,t,30,"levelchange",r):-1)}function _emscripten_get_battery_status(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(221,0,1,e):(e>>>=0,battery()?(fillBatteryEventData(e,battery()),0):-1)}function _emscripten_set_element_css_size(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(222,0,1,e,t,r):(e=findEventTarget(e>>>=0))?(e.style.width=t+"px",e.style.height=r+"px",0):-4}function _emscripten_get_element_css_size(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(223,0,1,e,t,r);if(t>>>=0,r>>>=0,!(e=findEventTarget(e>>>=0)))return-4;var n=getBoundingClientRect(e);return GROWABLE_HEAP_F64()[t>>>3>>>0]=n.width,GROWABLE_HEAP_F64()[r>>>3>>>0]=n.height,0}_emscripten_set_batterychargingchange_callback_on_thread.sig="ippp",_emscripten_set_batterylevelchange_callback_on_thread.sig="ippp",_emscripten_get_battery_status.sig="ip",_emscripten_set_element_css_size.sig="ipdd",_emscripten_get_element_css_size.sig="ippp";var _emscripten_html5_remove_all_event_listeners=()=>JSEvents.removeAllEventListeners();_emscripten_html5_remove_all_event_listeners.sig="v";var _emscripten_request_animation_frame=function(e,t){return e>>>=0,t>>>=0,requestAnimationFrame((r=>getWasmTableEntry(e)(r,t)))};_emscripten_request_animation_frame.sig="ipp";var _emscripten_cancel_animation_frame=e=>cancelAnimationFrame(e);function _emscripten_request_animation_frame_loop(e,t){return e>>>=0,t>>>=0,requestAnimationFrame((function r(n){getWasmTableEntry(e)(n,t)&&requestAnimationFrame(r)}))}_emscripten_cancel_animation_frame.sig="vi",_emscripten_request_animation_frame_loop.sig="vpp";var _emscripten_performance_now=()=>performance.now();function _emscripten_get_device_pixel_ratio(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(224,0,1):"number"==typeof devicePixelRatio&&devicePixelRatio||1}function _emscripten_get_callstack(e,t,r){t>>>=0;var n=getCallstack(e);return!t||r<=0?lengthBytesUTF8(n)+1:stringToUTF8(n,t,r)+1}_emscripten_performance_now.sig="d",_emscripten_get_device_pixel_ratio.sig="d",_emscripten_get_callstack.sig="iipi";var convertFrameToPC=e=>(abort("Cannot use convertFrameToPC (needed by __builtin_return_address) without -sUSE_OFFSET_CONVERTER"),0);function _emscripten_return_address(e){var t=jsStackTrace().split("\n");"Error"==t[0]&&t.shift();var r=t[e+3];return convertFrameToPC(r)}_emscripten_return_address.sig="pi";var UNWIND_CACHE={},saveInUnwindCache=e=>{e.forEach((e=>{var t=convertFrameToPC(e);t&&(UNWIND_CACHE[t]=e)}))};function _emscripten_stack_snapshot(){var e=jsStackTrace().split("\n");return"Error"==e[0]&&e.shift(),saveInUnwindCache(e),UNWIND_CACHE.last_addr=convertFrameToPC(e[3]),UNWIND_CACHE.last_stack=e,UNWIND_CACHE.last_addr}function _emscripten_stack_unwind_buffer(e,t,r){var n;e>>>=0,t>>>=0,UNWIND_CACHE.last_addr==e?n=UNWIND_CACHE.last_stack:("Error"==(n=jsStackTrace().split("\n"))[0]&&n.shift(),saveInUnwindCache(n));for(var i=3;n[i]&&convertFrameToPC(n[i])!=e;)++i;for(var a=0;a>>2>>>0]=convertFrameToPC(n[a+i]);return a}function _emscripten_pc_get_function(e){return abort("Cannot use emscripten_pc_get_function without -sUSE_OFFSET_CONVERTER"),0}_emscripten_stack_snapshot.sig="p",_emscripten_stack_unwind_buffer.sig="ippi",_emscripten_pc_get_function.sig="pp";var convertPCtoSourceLocation=e=>{if(UNWIND_CACHE.last_get_source_pc==e)return UNWIND_CACHE.last_source;var t,r;if(!r){var n=UNWIND_CACHE[e];if(!n)return null;((t=/\((.*):(\d+):(\d+)\)$/.exec(n))||(t=/@(.*):(\d+):(\d+)/.exec(n)))&&(r={file:t[1],line:t[2],column:t[3]})}return UNWIND_CACHE.last_get_source_pc=e,UNWIND_CACHE.last_source=r,r};function _emscripten_pc_get_file(e){var t=convertPCtoSourceLocation(e>>>=0);return t?(_emscripten_pc_get_file.ret&&_free(_emscripten_pc_get_file.ret),_emscripten_pc_get_file.ret=stringToNewUTF8(t.file),_emscripten_pc_get_file.ret):0}function _emscripten_pc_get_line(e){var t=convertPCtoSourceLocation(e>>>=0);return t?t.line:0}function _emscripten_pc_get_column(e){var t=convertPCtoSourceLocation(e>>>=0);return t&&t.column||0}function _random_get(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(225,0,1,e,t);e>>>=0,t>>>=0;try{return _getentropy(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_emscripten_pc_get_file.sig="pp",_emscripten_pc_get_line.sig="ip",_emscripten_pc_get_column.sig="ip",_random_get.sig="ipp";var checkWasiClock=e=>0==e||1==e||2==e||3==e;function _clock_time_get(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(226,0,1,e,t,r,n);var i;if(convertI32PairToI53Checked(t,r),n>>>=0,!checkWasiClock(e))return 28;if(0===e)i=Date.now();else{if(!nowIsMonotonic)return 52;i=_emscripten_get_now()}var a=Math.round(1e3*i*1e3);return GROWABLE_HEAP_I32()[n>>>2>>>0]=a>>>0,GROWABLE_HEAP_I32()[n+4>>>2>>>0]=a/Math.pow(2,32)>>>0,0}function _clock_res_get(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(227,0,1,e,t);if(t>>>=0,!checkWasiClock(e))return 28;var r;if(0===e)r=1e6;else{if(!nowIsMonotonic)return 52;r=_emscripten_get_now_res()}return GROWABLE_HEAP_I32()[t>>>2>>>0]=r>>>0,GROWABLE_HEAP_I32()[t+4>>>2>>>0]=r/Math.pow(2,32)>>>0,0}_clock_time_get.sig="iiiip",_clock_res_get.sig="iip";var wasiRightsToMuslOFlags=e=>{if(2&e&&64&e)return 2;if(2&e)return 0;if(64&e)return 1;throw new FS.ErrnoError(28)},wasiOFlagsToMuslOFlags=e=>{var t=0;return 1&e&&(t|=64),8&e&&(t|=512),2&e&&(t|=65536),4&e&&(t|=128),t},setImmediateWrapped=e=>{setImmediateWrapped.mapping||(setImmediateWrapped.mapping=[]);var t=setImmediateWrapped.mapping.length;return setImmediateWrapped.mapping[t]=setImmediate((()=>{setImmediateWrapped.mapping[t]=void 0,e()})),t},clearImmediateWrapped=e=>{clearImmediate(setImmediateWrapped.mapping[e]),setImmediateWrapped.mapping[e]=void 0},polyfillSetImmediate=()=>{},_emscripten_set_immediate=function(e,t){return e>>>=0,t>>>=0,runtimeKeepalivePush(),emSetImmediate((()=>{runtimeKeepalivePop(),callUserCallback((()=>getWasmTableEntry(e)(t)))}))};_emscripten_set_immediate.sig="ipp";var _emscripten_clear_immediate=e=>{runtimeKeepalivePop(),emClearImmediate(e)};_emscripten_clear_immediate.sig="vi";var _emscripten_set_immediate_loop=function(e,t){e>>>=0,t>>>=0,runtimeKeepalivePush(),emSetImmediate((function r(){callUserCallback((()=>{getWasmTableEntry(e)(t)?emSetImmediate(r):runtimeKeepalivePop()}))}))};_emscripten_set_immediate_loop.sig="vpp";var _emscripten_clear_timeout=clearTimeout;_emscripten_clear_timeout.sig="vi";var _emscripten_set_timeout_loop=function(e,t,r){return e>>>=0,r>>>=0,runtimeKeepalivePush(),setTimeout((function n(){var i=_emscripten_get_now(),a=i+t;runtimeKeepalivePop(),callUserCallback((()=>{getWasmTableEntry(e)(i,r)&&(runtimeKeepalivePush(),setTimeout(n,a-_emscripten_get_now()))}))}),0)};_emscripten_set_timeout_loop.sig="vpdp";var _emscripten_set_interval=function(e,t,r){return e>>>=0,r>>>=0,runtimeKeepalivePush(),setInterval((()=>{callUserCallback((()=>getWasmTableEntry(e)(r)))}),t)};_emscripten_set_interval.sig="ipdp";var _emscripten_clear_interval=e=>{runtimeKeepalivePop(),clearInterval(e)};_emscripten_clear_interval.sig="vi";var idsToPromises=(e,t)=>{for(var r=[],n=0;n>>2>>>0];r[n]=getPromise(i)}return r},makePromiseCallback=(e,t)=>r=>{runtimeKeepalivePop();var n=stackSave(),i=stackAlloc(POINTER_SIZE);GROWABLE_HEAP_U32()[i>>>2>>>0]=0;try{var a=getWasmTableEntry(e)(i,t,r),s=GROWABLE_HEAP_U32()[i>>>2>>>0]}catch(e){throw"number"!=typeof e?0:e}finally{stackRestore(n)}switch(a){case 0:return s;case 1:return getPromise(s);case 2:var o=getPromise(s);return _emscripten_promise_destroy(s),o;case 3:throw s}};function _emscripten_promise_then(e,t,r,n){e>>>=0,t>>>=0,r>>>=0,n>>>=0,runtimeKeepalivePush();var i=getPromise(e);return promiseMap.allocate({promise:i.then(makePromiseCallback(t,n),makePromiseCallback(r,n))})}_emscripten_promise_then.sig="ppppp";var _emscripten_promise_all=function(e,t,r){t>>>=0;var n=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.all(n).then((e=>{if(t)for(var n=0;n>>2>>>0]=i}return t}))})};_emscripten_promise_all.sig="pppp";var setPromiseResult=(e,t,r)=>{var n=t?0:3;GROWABLE_HEAP_I32()[e>>>2>>>0]=n,GROWABLE_HEAP_U32()[e+4>>>2>>>0]=r},_emscripten_promise_all_settled=function(e,t,r){t>>>=0;var n=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.allSettled(n).then((e=>{if(t)for(var n=t,i=0;i>>=0;var n=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.any(n).catch((e=>{if(t)for(var n=0;n>>2>>>0]=e.errors[n];throw t}))})};function _emscripten_promise_race(e,t){var r=idsToPromises(e>>>=0,t>>>=0);return promiseMap.allocate({promise:Promise.race(r)})}function _emscripten_promise_await(e,t){abort("emscripten_promise_await is only available with ASYNCIFY")}_emscripten_promise_any.sig="pppp",_emscripten_promise_race.sig="ppp",_emscripten_promise_await.sig="vpp";var getExceptionMessageCommon=e=>withStackSave((()=>{var t=stackAlloc(4),r=stackAlloc(4);___get_exception_message(e,t,r);var n,i=GROWABLE_HEAP_U32()[t>>>2>>>0],a=GROWABLE_HEAP_U32()[r>>>2>>>0],s=UTF8ToString(i);return _free(i),a&&(n=UTF8ToString(a),_free(a)),[s,n]})),getCppExceptionTag=()=>___cpp_exception,getCppExceptionThrownObjectFromWebAssemblyException=e=>{var t=e.getArg(getCppExceptionTag(),0);return ___thrown_object_from_unwind_exception(t)},incrementExceptionRefcount=e=>{var t=getCppExceptionThrownObjectFromWebAssemblyException(e);___cxa_increment_exception_refcount(t)},decrementExceptionRefcount=e=>{var t=getCppExceptionThrownObjectFromWebAssemblyException(e);___cxa_decrement_exception_refcount(t)},getExceptionMessage=e=>{var t=getCppExceptionThrownObjectFromWebAssemblyException(e);return getExceptionMessageCommon(t)},_emscripten_run_preload_plugins=function(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(228,0,1,e,t,r);e>>>=0,t>>>=0,r>>>=0,runtimeKeepalivePush();var n=UTF8ToString(e),i=FS.analyzePath(n);return i.exists?(FS.createPreloadedFile(PATH.dirname(n),PATH.basename(n),new Uint8Array(i.object.contents),!0,!0,(()=>{runtimeKeepalivePop(),t&&getWasmTableEntry(t)(e)}),(()=>{runtimeKeepalivePop(),r&&getWasmTableEntry(r)(e)}),!0),0):-1};_emscripten_run_preload_plugins.sig="ippp";var Browser_asyncPrepareDataCounter=0,_emscripten_run_preload_plugins_data=function(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(229,0,1,e,t,r,n,i,a);e>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,runtimeKeepalivePush();var s=UTF8ToString(r),o="prepare_data_"+Browser_asyncPrepareDataCounter+++"."+s,_=stringToNewUTF8(o);FS.createPreloadedFile("/",o,GROWABLE_HEAP_U8().subarray(e>>>0,e+t>>>0),!0,!0,(()=>{runtimeKeepalivePop(),i&&getWasmTableEntry(i)(n,_)}),(()=>{runtimeKeepalivePop(),a&&getWasmTableEntry(a)(n)}),!0)};_emscripten_run_preload_plugins_data.sig="vpipppp";var _emscripten_async_run_script=function(e,t){e>>>=0,safeSetTimeout((()=>_emscripten_run_script(e)),t)};function _emscripten_async_load_script(url,onload,onerror){if(url>>>=0,onload>>>=0,onerror>>>=0,url=UTF8ToString(url),onload=getWasmTableEntry(onload),onerror=getWasmTableEntry(onerror),ENVIRONMENT_IS_PTHREAD)return err('emscripten_async_load_script("'.concat(url,'") failed, emscripten_async_load_script is currently not available in pthreads!')),onerror?onerror():void 0;runtimeKeepalivePush();var loadDone=()=>{runtimeKeepalivePop(),onload&&(runDependencies>0?dependenciesFulfilled=onload:onload())},loadError=()=>{runtimeKeepalivePop(),null==onerror||onerror()};if(ENVIRONMENT_IS_NODE)readAsync(url,(data=>{eval(data),loadDone()}),loadError,!1);else{var script=document.createElement("script");script.onload=loadDone,script.onerror=loadError,script.src=url,document.body.appendChild(script)}}function _emscripten_get_main_loop_timing(e,t){t>>>=0,(e>>>=0)&&(GROWABLE_HEAP_I32()[e>>>2>>>0]=Browser.mainLoop.timingMode),t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=Browser.mainLoop.timingValue)}function _emscripten_set_main_loop(e,t,r){var n=getWasmTableEntry(e>>>=0);setMainLoop(n,t,r)}_emscripten_async_run_script.sig="vpi",_emscripten_async_load_script.sig="vppp",_emscripten_get_main_loop_timing.sig="vpp",_emscripten_set_main_loop.sig="vpii";var _emscripten_set_main_loop_arg=function(e,t,r,n){e>>>=0,setMainLoop((()=>getWasmTableEntry(e)(t)),r,n,t>>>=0)};_emscripten_set_main_loop_arg.sig="vppii";var _emscripten_cancel_main_loop=()=>{Browser.mainLoop.pause(),Browser.mainLoop.func=null};_emscripten_cancel_main_loop.sig="v";var _emscripten_pause_main_loop=()=>{Browser.mainLoop.pause()};_emscripten_pause_main_loop.sig="v";var _emscripten_resume_main_loop=()=>{Browser.mainLoop.resume()};_emscripten_resume_main_loop.sig="v";var __emscripten_push_main_loop_blocker=function(e,t,r){e>>>=0,t>>>=0,r>>>=0,Browser.mainLoop.queue.push({func:()=>{getWasmTableEntry(e)(t)},name:UTF8ToString(r),counted:!0}),Browser.mainLoop.updateStatus()};__emscripten_push_main_loop_blocker.sig="vppp";var __emscripten_push_uncounted_main_loop_blocker=function(e,t,r){e>>>=0,t>>>=0,r>>>=0,Browser.mainLoop.queue.push({func:()=>{getWasmTableEntry(e)(t)},name:UTF8ToString(r),counted:!1}),Browser.mainLoop.updateStatus()};__emscripten_push_uncounted_main_loop_blocker.sig="vppp";var _emscripten_set_main_loop_expected_blockers=e=>{Browser.mainLoop.expectedBlockers=e,Browser.mainLoop.remainingBlockers=e,Browser.mainLoop.updateStatus()};function _emscripten_async_call(e,t,r){function n(){getWasmTableEntry(e)(t)}e>>>=0,t>>>=0,r>=0||ENVIRONMENT_IS_NODE?safeSetTimeout(n,r):Browser.safeRequestAnimationFrame(n)}function _emscripten_get_window_title(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(230,0,1):(_emscripten_get_window_title.buffer||(_emscripten_get_window_title.buffer=_malloc(256)),stringToUTF8(document.title,_emscripten_get_window_title.buffer,256),_emscripten_get_window_title.buffer)}function _emscripten_set_window_title(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(231,0,1,e):(e>>>=0,document.title=UTF8ToString(e))}function _emscripten_get_screen_size(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(232,0,1,e,t);e>>>=0,t>>>=0,GROWABLE_HEAP_I32()[e>>>2>>>0]=screen.width,GROWABLE_HEAP_I32()[t>>>2>>>0]=screen.height}function _emscripten_hide_mouse(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(233,0,1);for(var e=document.styleSheets[0],t=e.cssRules,r=0;r>>=0,t>>>=0,r>>>=0;var n=Module.canvas;GROWABLE_HEAP_I32()[e>>>2>>>0]=n.width,GROWABLE_HEAP_I32()[t>>>2>>>0]=n.height,GROWABLE_HEAP_I32()[r>>>2>>>0]=Browser.isFullscreen?1:0}function _emscripten_create_worker(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(236,0,1,e);e=UTF8ToString(e>>>=0);var t=Browser.workers.length,r={worker:new Worker(e),callbacks:[],awaited:0,buffer:0,bufferSize:0};return r.worker.onmessage=function(e){if(!ABORT){var r=Browser.workers[t];if(r){var n=e.data.callbackId,i=r.callbacks[n];if(i){e.data.finalResponse&&(r.awaited--,r.callbacks[n]=null,runtimeKeepalivePop());var a=e.data.data;a?(a.byteLength||(a=new Uint8Array(a)),(!r.buffer||r.bufferSize>>0),i.func(r.buffer,a.length,i.arg)):i.func(0,0,i.arg)}}}},Browser.workers.push(r),t}function _emscripten_destroy_worker(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(237,0,1,e);var t=Browser.workers[e];t.worker.terminate(),t.buffer&&_free(t.buffer),Browser.workers[e]=null}function _emscripten_call_worker(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(238,0,1,e,t,r,n,i,a);r>>>=0,i>>>=0,a>>>=0,t=UTF8ToString(t>>>=0);var s=Browser.workers[e],o=-1;i&&(runtimeKeepalivePush(),o=s.callbacks.length,s.callbacks.push({func:getWasmTableEntry(i),arg:a}),s.awaited++);var _={funcName:t,callbackId:o,data:r?new Uint8Array(GROWABLE_HEAP_U8().subarray(r>>>0,r+n>>>0)):0};r?s.worker.postMessage(_,[_.data.buffer]):s.worker.postMessage(_)}function _emscripten_get_worker_queue_size(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(239,0,1,e);var t=Browser.workers[e];return t?t.awaited:-1}_emscripten_set_main_loop_expected_blockers.sig="vi",_emscripten_async_call.sig="vppi",_emscripten_get_window_title.sig="p",_emscripten_set_window_title.sig="vp",_emscripten_get_screen_size.sig="vpp",_emscripten_hide_mouse.sig="v",_emscripten_set_canvas_size.sig="vii",_emscripten_get_canvas_size.sig="vppp",_emscripten_create_worker.sig="ip",_emscripten_destroy_worker.sig="vi",_emscripten_call_worker.sig="vippipp",_emscripten_get_worker_queue_size.sig="ii";var getPreloadedImageData=(e,t,r)=>{e=PATH_FS.resolve(e);var n=preloadedImages[e];if(!n)return 0;var i=n.getContext("2d").getImageData(0,0,n.width,n.height),a=_malloc(n.width*n.height*4);return GROWABLE_HEAP_U8().set(i.data,a>>>0),GROWABLE_HEAP_I32()[t>>>2>>>0]=n.width,GROWABLE_HEAP_I32()[r>>>2>>>0]=n.height,a};function _emscripten_get_preloaded_image_data(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(240,0,1,e,t,r):(t>>>=0,r>>>=0,getPreloadedImageData(UTF8ToString(e>>>=0),t,r))}_emscripten_get_preloaded_image_data.sig="pppp";var getPreloadedImageData__data=["$PATH_FS","malloc"];function _emscripten_get_preloaded_image_data_from_FILE(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(241,0,1,e,t,r);e>>>=0,t>>>=0,r>>>=0;var n=_fileno(e),i=FS.getStream(n);return i?getPreloadedImageData(i.path,t,r):0}_emscripten_get_preloaded_image_data_from_FILE.sig="pppp";var wget={wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle(){var e=wget.nextWgetRequestHandle;return wget.nextWgetRequestHandle++,e}},FS_mkdirTree=(e,t)=>FS.mkdirTree(e,t),FS_unlink=e=>FS.unlink(e),_emscripten_async_wget=function(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(242,0,1,e,t,r,n);e>>>=0,t>>>=0,r>>>=0,n>>>=0,runtimeKeepalivePush();var i=UTF8ToString(e),a=UTF8ToString(t);function s(e){e&&(runtimeKeepalivePop(),callUserCallback((()=>{withStackSave((()=>{getWasmTableEntry(e)(stringToUTF8OnStack(a))}))})))}a=PATH_FS.resolve(a);var o=PATH.dirname(a);FS_createPreloadedFile(o,PATH.basename(a),i,!0,!0,(()=>s(r)),(()=>s(n)),!1,!1,(()=>{try{FS_unlink(a)}catch(e){}FS_mkdirTree(o)}))};_emscripten_async_wget.sig="vpppp";var _emscripten_async_wget_data=function(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(243,0,1,e,t,r,n);e>>>=0,t>>>=0,r>>>=0,n>>>=0,runtimeKeepalivePush(),asyncLoad(UTF8ToString(e),(e=>{runtimeKeepalivePop(),callUserCallback((()=>{var n=_malloc(e.length);GROWABLE_HEAP_U8().set(e,n>>>0),getWasmTableEntry(r)(t,n,e.length),_free(n)}))}),(()=>{n&&(runtimeKeepalivePop(),callUserCallback((()=>{getWasmTableEntry(n)(t)})))}),!0)};_emscripten_async_wget_data.sig="vpppp";var _emscripten_async_wget2=function(e,t,r,n,i,a,s,o){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(244,0,1,e,t,r,n,i,a,s,o);e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,s>>>=0,o>>>=0,runtimeKeepalivePush();var _=UTF8ToString(e),l=UTF8ToString(t);l=PATH_FS.resolve(l);var c=UTF8ToString(r),u=UTF8ToString(n),d=l.lastIndexOf("/"),p=new XMLHttpRequest;p.open(c,_,!0),p.responseType="arraybuffer";var m=wget.getNextWgetRequestHandle(),f=PATH.dirname(l);return p.onload=e=>{if(runtimeKeepalivePop(),p.status>=200&&p.status<300){try{FS.unlink(l)}catch(e){}FS.mkdirTree(f),FS.createDataFile(l.substr(0,d),l.substr(d+1),new Uint8Array(p.response),!0,!0,!1),a&&withStackSave((()=>{getWasmTableEntry(a)(m,i,stringToUTF8OnStack(l))}))}else s&&getWasmTableEntry(s)(m,i,p.status);delete wget.wgetRequests[m]},p.onerror=e=>{runtimeKeepalivePop(),s&&getWasmTableEntry(s)(m,i,p.status),delete wget.wgetRequests[m]},p.onprogress=e=>{if(e.lengthComputable||void 0===e.lengthComputable&&0!=e.total){var t=e.loaded/e.total*100;o&&getWasmTableEntry(o)(m,i,t)}},p.onabort=e=>{runtimeKeepalivePop(),delete wget.wgetRequests[m]},"POST"==c?(p.setRequestHeader("Content-type","application/x-www-form-urlencoded"),p.send(u)):p.send(null),wget.wgetRequests[m]=p,m};_emscripten_async_wget2.sig="ipppppppp";var _emscripten_async_wget2_data=function(e,t,r,n,i,a,s,o){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(245,0,1,e,t,r,n,i,a,s,o);t>>>=0,r>>>=0,n>>>=0,a>>>=0,s>>>=0,o>>>=0;var _=UTF8ToString(e>>>=0),l=UTF8ToString(t),c=UTF8ToString(r),u=new XMLHttpRequest;u.open(l,_,!0),u.responseType="arraybuffer";var d=wget.getNextWgetRequestHandle();function p(){s&&withStackSave((()=>{var e=0;u.statusText&&(e=stringToUTF8OnStack(u.statusText)),getWasmTableEntry(s)(d,n,u.status,e)}))}return u.onload=e=>{if(u.status>=200&&u.status<300||0===u.status&&"http"!=_.substr(0,4).toLowerCase()){var t=new Uint8Array(u.response),r=_malloc(t.length);GROWABLE_HEAP_U8().set(t,r>>>0),a&&getWasmTableEntry(a)(d,n,r,t.length),i&&_free(r)}else p();delete wget.wgetRequests[d]},u.onerror=e=>{p(),delete wget.wgetRequests[d]},u.onprogress=e=>{o&&getWasmTableEntry(o)(d,n,e.loaded,e.lengthComputable||void 0===e.lengthComputable?e.total:0)},u.onabort=e=>{delete wget.wgetRequests[d]},"POST"==l?(u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.send(c)):u.send(null),wget.wgetRequests[d]=u,d};function _emscripten_async_wget2_abort(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(246,0,1,e);var t=wget.wgetRequests[e];null==t||t.abort()}_emscripten_async_wget2_data.sig="ippppippp",_emscripten_async_wget2_abort.sig="vi";var _setNetworkCallback=(e,t,r)=>{runtimeKeepalivePush(),Module.websocket.on(e,r?function(n){try{"error"===e?withStackSave((function(){var e=stringToUTF8OnStack(n[2]);getWasmTableEntry(r)(n[0],n[1],e,t)})):getWasmTableEntry(r)(n,t)}catch(e){if(!(e instanceof ExitStatus))throw e&&"object"==typeof e&&e.stack&&err("exception thrown: "+[e,e.stack]),e}}:null)};function _emscripten_set_socket_error_callback(e,t){_setNetworkCallback("error",e>>>=0,t>>>=0)}function _emscripten_set_socket_open_callback(e,t){_setNetworkCallback("open",e>>>=0,t>>>=0)}function _emscripten_set_socket_listen_callback(e,t){_setNetworkCallback("listen",e>>>=0,t>>>=0)}function _emscripten_set_socket_connection_callback(e,t){_setNetworkCallback("connection",e>>>=0,t>>>=0)}function _emscripten_set_socket_message_callback(e,t){_setNetworkCallback("message",e>>>=0,t>>>=0)}function _emscripten_set_socket_close_callback(e,t){_setNetworkCallback("close",e>>>=0,t>>>=0)}function _emscripten_webgl_enable_ANGLE_instanced_arrays(e){return e>>>=0,webgl_enable_ANGLE_instanced_arrays(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_OES_vertex_array_object(e){return e>>>=0,webgl_enable_OES_vertex_array_object(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_draw_buffers(e){return e>>>=0,webgl_enable_WEBGL_draw_buffers(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_multi_draw(e){return e>>>=0,webgl_enable_WEBGL_multi_draw(GL.contexts[e].GLctx)}function _glVertexPointer(e,t,r,n){throw"Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."}_emscripten_set_socket_error_callback.sig="vpp",_emscripten_set_socket_open_callback.sig="vpp",_emscripten_set_socket_listen_callback.sig="vpp",_emscripten_set_socket_connection_callback.sig="vpp",_emscripten_set_socket_message_callback.sig="vpp",_emscripten_set_socket_close_callback.sig="vpp",_emscripten_webgl_enable_ANGLE_instanced_arrays.sig="ip",_emscripten_webgl_enable_OES_vertex_array_object.sig="ip",_emscripten_webgl_enable_WEBGL_draw_buffers.sig="ip",_emscripten_webgl_enable_WEBGL_multi_draw.sig="ip",_glVertexPointer.sig="viiip";var _glMatrixMode=()=>{throw"Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glMatrixMode.sig="vi";var _glBegin=()=>{throw"Legacy GL function (glBegin) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glBegin.sig="vi";var _glLoadIdentity=()=>{throw"Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glLoadIdentity.sig="v";var _glVertexAttribDivisorNV=_glVertexAttribDivisor,_glDrawArraysInstancedNV=_glDrawArraysInstanced,_glDrawElementsInstancedNV=_glDrawElementsInstanced,_glVertexAttribDivisorEXT=_glVertexAttribDivisor,_glDrawArraysInstancedEXT=_glDrawArraysInstanced,_glDrawElementsInstancedEXT=_glDrawElementsInstanced,_glVertexAttribDivisorARB=_glVertexAttribDivisor,_glDrawArraysInstancedARB=_glDrawArraysInstanced,_glDrawElementsInstancedARB=_glDrawElementsInstanced,_glDrawBuffersEXT=_glDrawBuffers;function _glMultiDrawArraysWEBGL(e,t,r,n){t>>>=0,r>>>=0,GLctx.multiDrawWebgl.multiDrawArraysWEBGL(e,GROWABLE_HEAP_I32(),t>>>2,GROWABLE_HEAP_I32(),r>>>2,n)}_glMultiDrawArraysWEBGL.sig="vippi";var _glMultiDrawArrays=_glMultiDrawArraysWEBGL;_glMultiDrawArrays.sig="vippi";var _glMultiDrawArraysANGLE=_glMultiDrawArraysWEBGL;function _glMultiDrawArraysInstancedWEBGL(e,t,r,n,i){t>>>=0,r>>>=0,n>>>=0,GLctx.multiDrawWebgl.multiDrawArraysInstancedWEBGL(e,GROWABLE_HEAP_I32(),t>>>2,GROWABLE_HEAP_I32(),r>>>2,GROWABLE_HEAP_I32(),n>>>2,i)}_glMultiDrawArraysInstancedWEBGL.sig="vipppi";var _glMultiDrawArraysInstancedANGLE=_glMultiDrawArraysInstancedWEBGL;function _glMultiDrawElementsWEBGL(e,t,r,n,i){t>>>=0,n>>>=0,GLctx.multiDrawWebgl.multiDrawElementsWEBGL(e,GROWABLE_HEAP_I32(),t>>>2,r,GROWABLE_HEAP_I32(),n>>>2,i)}_glMultiDrawElementsWEBGL.sig="vipipi";var _glMultiDrawElements=_glMultiDrawElementsWEBGL;_glMultiDrawElements.sig="vipipi";var _glMultiDrawElementsANGLE=_glMultiDrawElementsWEBGL;function _glMultiDrawElementsInstancedWEBGL(e,t,r,n,i,a){t>>>=0,n>>>=0,i>>>=0,GLctx.multiDrawWebgl.multiDrawElementsInstancedWEBGL(e,GROWABLE_HEAP_I32(),t>>>2,r,GROWABLE_HEAP_I32(),n>>>2,GROWABLE_HEAP_I32(),i>>>2,a)}_glMultiDrawElementsInstancedWEBGL.sig="vipippi";var _glMultiDrawElementsInstancedANGLE=_glMultiDrawElementsInstancedWEBGL,_glClearDepth=e=>GLctx.clearDepth(e);_glClearDepth.sig="vd";var _glDepthRange=(e,t)=>GLctx.depthRange(e,t);_glDepthRange.sig="vdd";var _emscripten_glGenVertexArrays=_glGenVertexArrays;_emscripten_glGenVertexArrays.sig="vip";var _emscripten_glDeleteVertexArrays=_glDeleteVertexArrays;_emscripten_glDeleteVertexArrays.sig="vip";var _emscripten_glBindVertexArray=_glBindVertexArray;_emscripten_glBindVertexArray.sig="vi";var _emscripten_glIsVertexArray=_glIsVertexArray;_emscripten_glIsVertexArray.sig="ii";var _emscripten_glVertexPointer=_glVertexPointer;_emscripten_glVertexPointer.sig="viiip";var _emscripten_glMatrixMode=_glMatrixMode;_emscripten_glMatrixMode.sig="vi";var _emscripten_glBegin=_glBegin;_emscripten_glBegin.sig="vi";var _emscripten_glLoadIdentity=_glLoadIdentity;_emscripten_glLoadIdentity.sig="v";var _emscripten_glVertexAttribDivisor=_glVertexAttribDivisor;_emscripten_glVertexAttribDivisor.sig="vii";var _emscripten_glDrawArraysInstanced=_glDrawArraysInstanced;_emscripten_glDrawArraysInstanced.sig="viiii";var _emscripten_glDrawElementsInstanced=_glDrawElementsInstanced;_emscripten_glDrawElementsInstanced.sig="viiipi";var _emscripten_glVertexAttribDivisorNV=_glVertexAttribDivisorNV,_emscripten_glDrawArraysInstancedNV=_glDrawArraysInstancedNV,_emscripten_glDrawElementsInstancedNV=_glDrawElementsInstancedNV,_emscripten_glVertexAttribDivisorEXT=_glVertexAttribDivisorEXT,_emscripten_glDrawArraysInstancedEXT=_glDrawArraysInstancedEXT,_emscripten_glDrawElementsInstancedEXT=_glDrawElementsInstancedEXT,_emscripten_glVertexAttribDivisorARB=_glVertexAttribDivisorARB,_emscripten_glDrawArraysInstancedARB=_glDrawArraysInstancedARB,_emscripten_glDrawElementsInstancedARB=_glDrawElementsInstancedARB,_emscripten_glDrawBuffers=_glDrawBuffers;_emscripten_glDrawBuffers.sig="vip";var _emscripten_glDrawBuffersEXT=_glDrawBuffersEXT,_emscripten_glMultiDrawArrays=_glMultiDrawArrays;_emscripten_glMultiDrawArrays.sig="vippi";var _emscripten_glMultiDrawArraysANGLE=_glMultiDrawArraysANGLE,_emscripten_glMultiDrawArraysWEBGL=_glMultiDrawArraysWEBGL,_emscripten_glMultiDrawArraysInstancedANGLE=_glMultiDrawArraysInstancedANGLE,_emscripten_glMultiDrawArraysInstancedWEBGL=_glMultiDrawArraysInstancedWEBGL,_emscripten_glMultiDrawElements=_glMultiDrawElements;_emscripten_glMultiDrawElements.sig="vipipi";var _emscripten_glMultiDrawElementsANGLE=_glMultiDrawElementsANGLE,_emscripten_glMultiDrawElementsWEBGL=_glMultiDrawElementsWEBGL,_emscripten_glMultiDrawElementsInstancedANGLE=_glMultiDrawElementsInstancedANGLE,_emscripten_glMultiDrawElementsInstancedWEBGL=_glMultiDrawElementsInstancedWEBGL,_emscripten_glClearDepth=_glClearDepth;_emscripten_glClearDepth.sig="vd";var _emscripten_glDepthRange=_glDepthRange;_emscripten_glDepthRange.sig="vdd";var writeGLArray=(e,t,r,n)=>{var i=e.length,a=r>>=2;for(var o=0;o>>0]=e[o];return i},webglPowerPreferences=["default","low-power","high-performance"];function _emscripten_webgl_do_create_context(e,t){e>>>=0;var r=(t>>>=0)>>>2,n=GROWABLE_HEAP_I32()[r+6>>>0],i={alpha:!!GROWABLE_HEAP_I32()[r+0>>>0],depth:!!GROWABLE_HEAP_I32()[r+1>>>0],stencil:!!GROWABLE_HEAP_I32()[r+2>>>0],antialias:!!GROWABLE_HEAP_I32()[r+3>>>0],premultipliedAlpha:!!GROWABLE_HEAP_I32()[r+4>>>0],preserveDrawingBuffer:!!GROWABLE_HEAP_I32()[r+5>>>0],powerPreference:webglPowerPreferences[n],failIfMajorPerformanceCaveat:!!GROWABLE_HEAP_I32()[r+7>>>0],majorVersion:GROWABLE_HEAP_I32()[r+8>>>0],minorVersion:GROWABLE_HEAP_I32()[r+9>>>0],enableExtensionsByDefault:GROWABLE_HEAP_I32()[r+10>>>0],explicitSwapControl:GROWABLE_HEAP_I32()[r+11>>>0],proxyContextToMainThread:GROWABLE_HEAP_I32()[r+12>>>0],renderViaOffscreenBackBuffer:GROWABLE_HEAP_I32()[r+13>>>0]},a=findCanvasEventTarget(e);return!a||i.explicitSwapControl?0:GL.createContext(a,i)}_emscripten_webgl_do_create_context.sig="ppp";var _emscripten_webgl_create_context=_emscripten_webgl_do_create_context;function _emscripten_webgl_do_get_current_context(){return GL.currentContext?GL.currentContext.handle:0}_emscripten_webgl_create_context.sig="ppp",_emscripten_webgl_do_get_current_context.sig="p";var _emscripten_webgl_get_current_context=_emscripten_webgl_do_get_current_context;_emscripten_webgl_get_current_context.sig="p";var _emscripten_webgl_do_commit_frame=()=>GL.currentContext&&GL.currentContext.GLctx&&GL.currentContext.attributes.explicitSwapControl?0:-3;_emscripten_webgl_do_commit_frame.sig="i";var _emscripten_webgl_commit_frame=_emscripten_webgl_do_commit_frame;function _emscripten_webgl_make_context_current(e){return e>>>=0,GL.makeContextCurrent(e)?0:-5}function _emscripten_webgl_get_drawing_buffer_size(e,t,r){e>>>=0,t>>>=0,r>>>=0;var n=GL.getContext(e);return n&&n.GLctx&&t&&r?(GROWABLE_HEAP_I32()[t>>>2>>>0]=n.GLctx.drawingBufferWidth,GROWABLE_HEAP_I32()[r>>>2>>>0]=n.GLctx.drawingBufferHeight,0):-5}function _emscripten_webgl_get_context_attributes(e,t){if(e>>>=0,!(t>>>=0))return-5;if(!(e=GL.contexts[e]))return-3;var r=e.GLctx;if(!r)return-3;r=r.getContextAttributes(),GROWABLE_HEAP_I32()[t>>>2>>>0]=r.alpha,GROWABLE_HEAP_I32()[t+4>>>2>>>0]=r.depth,GROWABLE_HEAP_I32()[t+8>>>2>>>0]=r.stencil,GROWABLE_HEAP_I32()[t+12>>>2>>>0]=r.antialias,GROWABLE_HEAP_I32()[t+16>>>2>>>0]=r.premultipliedAlpha,GROWABLE_HEAP_I32()[t+20>>>2>>>0]=r.preserveDrawingBuffer;var n=r.powerPreference&&webglPowerPreferences.indexOf(r.powerPreference);return GROWABLE_HEAP_I32()[t+24>>>2>>>0]=n,GROWABLE_HEAP_I32()[t+28>>>2>>>0]=r.failIfMajorPerformanceCaveat,GROWABLE_HEAP_I32()[t+32>>>2>>>0]=e.version,GROWABLE_HEAP_I32()[t+36>>>2>>>0]=0,GROWABLE_HEAP_I32()[t+40>>>2>>>0]=e.attributes.enableExtensionsByDefault,0}function _emscripten_webgl_destroy_context(e){e>>>=0,GL.currentContext==e&&(GL.currentContext=0),GL.deleteContext(e)}_emscripten_webgl_commit_frame.sig="i",_emscripten_webgl_make_context_current.sig="ip",_emscripten_webgl_get_drawing_buffer_size.sig="ippp",_emscripten_webgl_get_context_attributes.sig="ipp",_emscripten_webgl_destroy_context.sig="ip";var emscripten_webgl_destroy_context_before_on_calling_thread=e=>{_emscripten_webgl_get_current_context()==e&&_emscripten_webgl_make_context_current(0)};function _emscripten_webgl_enable_extension(e,t){e>>>=0,t>>>=0;var r=GL.getContext(e),n=UTF8ToString(t);return n.startsWith("GL_")&&(n=n.substr(3)),"ANGLE_instanced_arrays"==n&&webgl_enable_ANGLE_instanced_arrays(GLctx),"OES_vertex_array_object"==n&&webgl_enable_OES_vertex_array_object(GLctx),"WEBGL_draw_buffers"==n&&webgl_enable_WEBGL_draw_buffers(GLctx),"WEBGL_multi_draw"==n&&webgl_enable_WEBGL_multi_draw(GLctx),!!r.GLctx.getExtension(n)}_emscripten_webgl_enable_extension.sig="ipp";var _emscripten_supports_offscreencanvas=()=>0;_emscripten_supports_offscreencanvas.sig="i";var registerWebGlEventCallback=(e,t,r,n,i,a,s)=>{s=JSEvents.getTargetThreadForEventCallback(s);var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:n,handlerFunc:(e=event)=>{s?__emscripten_run_callback_on_thread(s,n,i,0,t):getWasmTableEntry(n)(i,0,t)&&e.preventDefault()},useCapture:r};JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_webglcontextlost_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(247,0,1,e,t,r,n,i):(registerWebGlEventCallback(e>>>=0,t>>>=0,r,n>>>=0,31,"webglcontextlost",i>>>=0),0)}function _emscripten_set_webglcontextrestored_callback_on_thread(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(248,0,1,e,t,r,n,i):(registerWebGlEventCallback(e>>>=0,t>>>=0,r,n>>>=0,32,"webglcontextrestored",i>>>=0),0)}function _emscripten_is_webgl_context_lost(e){return e>>>=0,!GL.contexts[e]||GL.contexts[e].GLctx.isContextLost()}function _emscripten_webgl_get_supported_extensions(){return stringToNewUTF8(GLctx.getSupportedExtensions().join(" "))}_emscripten_set_webglcontextlost_callback_on_thread.sig="ippipp",_emscripten_set_webglcontextrestored_callback_on_thread.sig="ippipp",_emscripten_is_webgl_context_lost.sig="ip",_emscripten_webgl_get_supported_extensions.sig="p";var _emscripten_webgl_get_program_parameter_d=(e,t)=>GLctx.getProgramParameter(GL.programs[e],t);function _emscripten_webgl_get_program_info_log_utf8(e){return stringToNewUTF8(GLctx.getProgramInfoLog(GL.programs[e]))}_emscripten_webgl_get_program_parameter_d.sig="dii",_emscripten_webgl_get_program_info_log_utf8.sig="pi";var _emscripten_webgl_get_shader_parameter_d=(e,t)=>GLctx.getShaderParameter(GL.shaders[e],t);function _emscripten_webgl_get_shader_info_log_utf8(e){return stringToNewUTF8(GLctx.getShaderInfoLog(GL.shaders[e]))}function _emscripten_webgl_get_shader_source_utf8(e){return stringToNewUTF8(GLctx.getShaderSource(GL.shaders[e]))}_emscripten_webgl_get_shader_parameter_d.sig="dii",_emscripten_webgl_get_shader_info_log_utf8.sig="pi",_emscripten_webgl_get_shader_source_utf8.sig="pi";var _emscripten_webgl_get_vertex_attrib_d=(e,t)=>GLctx.getVertexAttrib(e,t);_emscripten_webgl_get_vertex_attrib_d.sig="dii";var _emscripten_webgl_get_vertex_attrib_o=(e,t)=>{var r=GLctx.getVertexAttrib(e,t);return null==r?void 0:r.name};function _emscripten_webgl_get_vertex_attrib_v(e,t,r,n,i){return r>>>=0,writeGLArray(GLctx.getVertexAttrib(e,t),r,n,i)}_emscripten_webgl_get_vertex_attrib_o.sig="iii",_emscripten_webgl_get_vertex_attrib_v.sig="iiipii";var _emscripten_webgl_get_uniform_d=(e,t)=>GLctx.getUniform(GL.programs[e],webglGetUniformLocation(t));function _emscripten_webgl_get_uniform_v(e,t,r,n,i){return r>>>=0,writeGLArray(GLctx.getUniform(GL.programs[e],webglGetUniformLocation(t)),r,n,i)}function _emscripten_webgl_get_parameter_v(e,t,r,n){return t>>>=0,writeGLArray(GLctx.getParameter(e),t,r,n)}_emscripten_webgl_get_uniform_d.sig="dii",_emscripten_webgl_get_uniform_v.sig="iiipii",_emscripten_webgl_get_parameter_v.sig="iipii";var _emscripten_webgl_get_parameter_d=e=>GLctx.getParameter(e);_emscripten_webgl_get_parameter_d.sig="di";var _emscripten_webgl_get_parameter_o=e=>{var t=GLctx.getParameter(e);return null==t?void 0:t.name};function _emscripten_webgl_get_parameter_utf8(e){return stringToNewUTF8(GLctx.getParameter(e))}function _emscripten_webgl_get_parameter_i64v(e,t){return writeI53ToI64(t>>>=0,GLctx.getParameter(e))}function _glutPostRedisplay(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(249,0,1);GLUT.displayFunc&&!GLUT.requestedAnimationFrame&&(GLUT.requestedAnimationFrame=!0,Browser.requestAnimationFrame((function(){GLUT.requestedAnimationFrame=!1,Browser.mainLoop.runIter((function(){getWasmTableEntry(GLUT.displayFunc)()}))})))}_emscripten_webgl_get_parameter_o.sig="ii",_emscripten_webgl_get_parameter_utf8.sig="pi",_emscripten_webgl_get_parameter_i64v.sig="vip",_glutPostRedisplay.sig="v";var GLUT={initTime:null,idleFunc:null,displayFunc:null,keyboardFunc:null,keyboardUpFunc:null,specialFunc:null,specialUpFunc:null,reshapeFunc:null,motionFunc:null,passiveMotionFunc:null,mouseFunc:null,buttons:0,modifiers:0,initWindowWidth:256,initWindowHeight:256,initDisplayMode:18,windowX:0,windowY:0,windowWidth:0,windowHeight:0,requestedAnimationFrame:!1,saveModifiers:e=>{GLUT.modifiers=0,e.shiftKey&&(GLUT.modifiers+=1),e.ctrlKey&&(GLUT.modifiers+=2),e.altKey&&(GLUT.modifiers+=4)},onMousemove:e=>{var t=Browser.mouseX,r=Browser.mouseY;Browser.calculateMouseEvent(e);var n=Browser.mouseX,i=Browser.mouseY;n==t&&i==r||(0==GLUT.buttons&&e.target==Module.canvas&&GLUT.passiveMotionFunc?(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.passiveMotionFunc)(t,r)):0!=GLUT.buttons&&GLUT.motionFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.motionFunc)(t,r)))},getSpecialKey:e=>{var t=null;switch(e){case 8:t=120;break;case 46:t=111;break;case 112:t=1;break;case 113:t=2;break;case 114:t=3;break;case 115:t=4;break;case 116:t=5;break;case 117:t=6;break;case 118:t=7;break;case 119:t=8;break;case 120:t=9;break;case 121:t=10;break;case 122:t=11;break;case 123:t=12;break;case 37:t=100;break;case 38:t=101;break;case 39:t=102;break;case 40:t=103;break;case 33:t=104;break;case 34:t=105;break;case 36:t=106;break;case 35:t=107;break;case 45:t=108;break;case 16:case 5:t=112;break;case 6:t=113;break;case 17:case 3:t=114;break;case 4:t=115;break;case 18:case 2:t=116;break;case 1:t=117}return t},getASCIIKey:e=>{if(e.ctrlKey||e.altKey||e.metaKey)return null;var t=e.keyCode;if(48<=t&&t<=57)return t;if(65<=t&&t<=90)return e.shiftKey?t:t+32;if(96<=t&&t<=105)return t-48;if(106<=t&&t<=111)return t-106+42;switch(t){case 9:case 13:case 27:case 32:case 61:return t}var r=e.shiftKey;switch(t){case 186:return r?58:59;case 187:return r?43:61;case 188:return r?60:44;case 189:return r?95:45;case 190:return r?62:46;case 191:return r?63:47;case 219:return r?123:91;case 220:return r?124:47;case 221:return r?125:93;case 222:return r?34:39}return null},onKeydown:e=>{if(GLUT.specialFunc||GLUT.keyboardFunc){var t=GLUT.getSpecialKey(e.keyCode);null!==t?GLUT.specialFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.specialFunc)(t,Browser.mouseX,Browser.mouseY)):null!==(t=GLUT.getASCIIKey(e))&&GLUT.keyboardFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.keyboardFunc)(t,Browser.mouseX,Browser.mouseY))}},onKeyup:e=>{if(GLUT.specialUpFunc||GLUT.keyboardUpFunc){var t=GLUT.getSpecialKey(e.keyCode);null!==t?GLUT.specialUpFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.specialUpFunc)(t,Browser.mouseX,Browser.mouseY)):null!==(t=GLUT.getASCIIKey(e))&&GLUT.keyboardUpFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.keyboardUpFunc)(t,Browser.mouseX,Browser.mouseY))}},touchHandler:e=>{if(e.target==Module.canvas){var t=e.changedTouches[0],r="";switch(e.type){case"touchstart":r="mousedown";break;case"touchmove":r="mousemove";break;case"touchend":r="mouseup";break;default:return}var n=document.createEvent("MouseEvent");n.initMouseEvent(r,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n),e.preventDefault()}},onMouseButtonDown:e=>{if(Browser.calculateMouseEvent(e),GLUT.buttons|=1<{Browser.calculateMouseEvent(e),GLUT.buttons&=~(1<{Browser.calculateMouseEvent(e),window.event;var t=-Browser.getMouseWheelDelta(e),r=3;(t=0==t?0:t>0?Math.max(t,1):Math.min(t,-1))<0&&(r=4),GLUT.mouseFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.mouseFunc)(r,0,Browser.mouseX,Browser.mouseY))},onFullscreenEventChange:e=>{var t,r;document.fullscreen||document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen?(t=screen.width,r=screen.height):(t=GLUT.windowWidth,r=GLUT.windowHeight,document.removeEventListener("fullscreenchange",GLUT.onFullscreenEventChange,!0),document.removeEventListener("mozfullscreenchange",GLUT.onFullscreenEventChange,!0),document.removeEventListener("webkitfullscreenchange",GLUT.onFullscreenEventChange,!0)),Browser.setCanvasSize(t,r,!0),GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(t,r),_glutPostRedisplay()}};function _glutGetModifiers(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(250,0,1):GLUT.modifiers}function _glutInit(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(251,0,1,e,t);e>>>=0,t>>>=0,GLUT.initTime=Date.now();var r="ontouchstart"in document.documentElement;r&&(window.addEventListener("touchmove",GLUT.touchHandler,!0),window.addEventListener("touchstart",GLUT.touchHandler,!0),window.addEventListener("touchend",GLUT.touchHandler,!0)),window.addEventListener("keydown",GLUT.onKeydown,!0),window.addEventListener("keyup",GLUT.onKeyup,!0),window.addEventListener("mousemove",GLUT.onMousemove,!0),window.addEventListener("mousedown",GLUT.onMouseButtonDown,!0),window.addEventListener("mouseup",GLUT.onMouseButtonUp,!0),window.addEventListener("mousewheel",GLUT.onMouseWheel,!0),window.addEventListener("DOMMouseScroll",GLUT.onMouseWheel,!0),Browser.resizeListeners.push((function(e,t){GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(e,t)})),__ATEXIT__.push((function(){r&&(window.removeEventListener("touchmove",GLUT.touchHandler,!0),window.removeEventListener("touchstart",GLUT.touchHandler,!0),window.removeEventListener("touchend",GLUT.touchHandler,!0)),window.removeEventListener("keydown",GLUT.onKeydown,!0),window.removeEventListener("keyup",GLUT.onKeyup,!0),window.removeEventListener("mousemove",GLUT.onMousemove,!0),window.removeEventListener("mousedown",GLUT.onMouseButtonDown,!0),window.removeEventListener("mouseup",GLUT.onMouseButtonUp,!0),window.removeEventListener("mousewheel",GLUT.onMouseWheel,!0),window.removeEventListener("DOMMouseScroll",GLUT.onMouseWheel,!0),Module.canvas.width=Module.canvas.height=1}))}function _glutInitWindowSize(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(252,0,1,e,t);Browser.setCanvasSize(GLUT.initWindowWidth=e,GLUT.initWindowHeight=t)}function _glutInitWindowPosition(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(253,0,1,e,t)}_glutGetModifiers.sig="i",_glutInit.sig="vpp",_glutInitWindowSize.sig="vii",_glutInitWindowPosition.sig="vii";var _glutGet=e=>{switch(e){case 100:case 101:case 500:case 501:return 0;case 102:case 200:return Module.canvas.width;case 103:case 201:return Module.canvas.height;case 502:return GLUT.initWindowWidth;case 503:return GLUT.initWindowHeight;case 700:return Date.now()-GLUT.initTime;case 105:return Module.ctx.getContextAttributes().stencil?8:0;case 106:return Module.ctx.getContextAttributes().depth?8:0;case 110:return Module.ctx.getContextAttributes().alpha?8:0;case 120:return Module.ctx.getContextAttributes().antialias?1:0;default:throw"glutGet("+e+") not implemented yet"}};function _glutIdleFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(254,0,1,e);e>>>=0,GLUT.idleFunc||safeSetTimeout((function e(){GLUT.idleFunc&&(getWasmTableEntry(GLUT.idleFunc)(),safeSetTimeout(e,4))}),0),GLUT.idleFunc=e}_glutGet.sig="ii",_glutIdleFunc.sig="vp";var _glutTimerFunc=function(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(255,0,1,e,t,r):(t>>>=0,safeSetTimeout((()=>getWasmTableEntry(t)(r)),e))};function _glutDisplayFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(256,0,1,e);e>>>=0,GLUT.displayFunc=e}function _glutKeyboardFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(257,0,1,e);e>>>=0,GLUT.keyboardFunc=e}function _glutKeyboardUpFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(258,0,1,e);e>>>=0,GLUT.keyboardUpFunc=e}function _glutSpecialFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(259,0,1,e);e>>>=0,GLUT.specialFunc=e}function _glutSpecialUpFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(260,0,1,e);e>>>=0,GLUT.specialUpFunc=e}function _glutReshapeFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(261,0,1,e);e>>>=0,GLUT.reshapeFunc=e}function _glutMotionFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(262,0,1,e);e>>>=0,GLUT.motionFunc=e}function _glutPassiveMotionFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(263,0,1,e);e>>>=0,GLUT.passiveMotionFunc=e}function _glutMouseFunc(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(264,0,1,e);e>>>=0,GLUT.mouseFunc=e}function _glutSetCursor(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(265,0,1,e);var t="auto";switch(e){case 0:case 1:case 3:case 5:case 6:case 100:break;case 2:t="pointer";break;case 4:t="help";break;case 7:t="wait";break;case 8:t="text";break;case 9:case 102:t="crosshair";break;case 10:t="ns-resize";break;case 11:t="ew-resize";break;case 12:t="n-resize";break;case 13:t="s-resize";break;case 14:t="w-resize";break;case 15:t="e-resize";break;case 16:t="nw-resize";break;case 17:t="ne-resize";break;case 18:t="se-resize";break;case 19:t="sw-resize";break;case 101:t="none";break;default:throw"glutSetCursor: Unknown cursor type: "+e}Module.canvas.style.cursor=t}function _glutCreateWindow(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(266,0,1,e);e>>>=0;var t={antialias:0!=(128&GLUT.initDisplayMode),depth:0!=(16&GLUT.initDisplayMode),stencil:0!=(32&GLUT.initDisplayMode),alpha:0!=(8&GLUT.initDisplayMode)};return Module.ctx=Browser.createContext(Module.canvas,!0,!0,t),Module.ctx?1:0}function _glutDestroyWindow(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(267,0,1,e):(Module.ctx=Browser.destroyContext(Module.canvas,!0,!0),1)}function _glutReshapeWindow(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(268,0,1,e,t);Browser.exitFullscreen(),Browser.setCanvasSize(e,t,!0),GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(e,t),_glutPostRedisplay()}function _glutPositionWindow(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(269,0,1,e,t);Browser.exitFullscreen(),_glutPostRedisplay()}function _glutFullScreen(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(270,0,1);GLUT.windowX=0,GLUT.windowY=0,GLUT.windowWidth=Module.canvas.width,GLUT.windowHeight=Module.canvas.height,document.addEventListener("fullscreenchange",GLUT.onFullscreenEventChange,!0),document.addEventListener("mozfullscreenchange",GLUT.onFullscreenEventChange,!0),document.addEventListener("webkitfullscreenchange",GLUT.onFullscreenEventChange,!0),Browser.requestFullscreen(!1,!1)}function _glutInitDisplayMode(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(271,0,1,e):GLUT.initDisplayMode=e}function _glutSwapBuffers(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(272,0,1)}function _glutMainLoop(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(273,0,1);throw _glutReshapeWindow(Module.canvas.width,Module.canvas.height),_glutPostRedisplay(),"unwind"}function _XOpenDisplay(e){return 1}function _XCreateWindow(e,t,r,n,i,a,s,o,_,l,c,u){return Browser.setCanvasSize(i,a),2}function _XChangeWindowAttributes(e,t,r,n){}function _XSetWMHints(e,t,r){}function _XMapWindow(e,t){}function _XStoreName(e,t,r){}function _XInternAtom(e,t,r){return 0}function _XSendEvent(e,t,r,n,i){}function _XPending(e){return 0}_glutTimerFunc.sig="vipi",_glutDisplayFunc.sig="vp",_glutKeyboardFunc.sig="vp",_glutKeyboardUpFunc.sig="vp",_glutSpecialFunc.sig="vp",_glutSpecialUpFunc.sig="vp",_glutReshapeFunc.sig="vp",_glutMotionFunc.sig="vp",_glutPassiveMotionFunc.sig="vp",_glutMouseFunc.sig="vp",_glutSetCursor.sig="vi",_glutCreateWindow.sig="ip",_glutDestroyWindow.sig="vi",_glutReshapeWindow.sig="vii",_glutPositionWindow.sig="vii",_glutFullScreen.sig="v",_glutInitDisplayMode.sig="vi",_glutSwapBuffers.sig="v",_glutMainLoop.sig="v",_XOpenDisplay.sig="pp",_XCreateWindow.sig="pppiiiiiiippp",_XChangeWindowAttributes.sig="ipppp",_XSetWMHints.sig="ippp",_XMapWindow.sig="ipp",_XStoreName.sig="ippp",_XInternAtom.sig="pppi",_XSendEvent.sig="ippipp",_XPending.sig="ip";var EGL={errorCode:12288,defaultDisplayInitialized:!1,currentContext:0,currentReadSurface:0,currentDrawSurface:0,contextAttributes:{alpha:!1,depth:!1,stencil:!1,antialias:!1},stringCache:{},setErrorCode(e){EGL.errorCode=e},chooseConfig(e,t,r,n,i){if(62e3!=e)return EGL.setErrorCode(12296),0;if(t)for(;;){var a=GROWABLE_HEAP_I32()[t>>>2>>>0];if(12321==a){var s=GROWABLE_HEAP_I32()[t+4>>>2>>>0];EGL.contextAttributes.alpha=s>0}else if(12325==a){var o=GROWABLE_HEAP_I32()[t+4>>>2>>>0];EGL.contextAttributes.depth=o>0}else if(12326==a){var _=GROWABLE_HEAP_I32()[t+4>>>2>>>0];EGL.contextAttributes.stencil=_>0}else if(12337==a){var l=GROWABLE_HEAP_I32()[t+4>>>2>>>0];EGL.contextAttributes.antialias=l>0}else if(12338==a)l=GROWABLE_HEAP_I32()[t+4>>>2>>>0],EGL.contextAttributes.antialias=1==l;else if(12544==a){var c=GROWABLE_HEAP_I32()[t+4>>>2>>>0];EGL.contextAttributes.lowLatency=12547!=c}else if(12344==a)break;t+=8}return r&&n||i?(i&&(GROWABLE_HEAP_I32()[i>>>2>>>0]=1),r&&n>0&&(GROWABLE_HEAP_U32()[r>>>2>>>0]=62002),EGL.setErrorCode(12288),1):(EGL.setErrorCode(12300),0)}};function _eglGetDisplay(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(274,0,1,e):(e>>>=0,EGL.setErrorCode(12288),0!=e&&1!=e?0:62e3)}function _eglInitialize(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(275,0,1,e,t,r):(t>>>=0,r>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=1),r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=4),EGL.defaultDisplayInitialized=!0,EGL.setErrorCode(12288),1))}function _eglTerminate(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(276,0,1,e):62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(EGL.currentContext=0,EGL.currentReadSurface=0,EGL.currentDrawSurface=0,EGL.defaultDisplayInitialized=!1,EGL.setErrorCode(12288),1)}function _eglGetConfigs(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(277,0,1,e,t,r,n):(e>>>=0,t>>>=0,n>>>=0,EGL.chooseConfig(e,0,t,r,n))}function _eglChooseConfig(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(278,0,1,e,t,r,n,i):(e>>>=0,t>>>=0,r>>>=0,i>>>=0,EGL.chooseConfig(e,t,r,n,i))}function _eglGetConfigAttrib(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(279,0,1,e,t,r,n);if(t>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62002!=t)return EGL.setErrorCode(12293),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12320:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.alpha?32:24,1;case 12321:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.alpha?8:0,1;case 12322:case 12323:case 12324:return GROWABLE_HEAP_I32()[n>>>2>>>0]=8,1;case 12325:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.depth?24:0,1;case 12326:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.stencil?8:0,1;case 12327:case 12335:case 12340:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12344,1;case 12328:return GROWABLE_HEAP_I32()[n>>>2>>>0]=62002,1;case 12329:case 12333:case 12334:case 12345:case 12346:case 12347:case 12349:case 12350:case 12354:return GROWABLE_HEAP_I32()[n>>>2>>>0]=0,1;case 12330:case 12332:return GROWABLE_HEAP_I32()[n>>>2>>>0]=4096,1;case 12331:return GROWABLE_HEAP_I32()[n>>>2>>>0]=16777216,1;case 12337:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.antialias?4:0,1;case 12338:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.antialias?1:0,1;case 12339:case 12352:return GROWABLE_HEAP_I32()[n>>>2>>>0]=4,1;case 12341:case 12342:case 12343:return GROWABLE_HEAP_I32()[n>>>2>>>0]=-1,1;case 12348:return GROWABLE_HEAP_I32()[n>>>2>>>0]=1,1;case 12351:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12430,1;default:return EGL.setErrorCode(12292),0}}function _eglCreateWindowSurface(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(280,0,1,e,t,r,n):(t>>>=0,n>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62002!=t?(EGL.setErrorCode(12293),0):(EGL.setErrorCode(12288),62006))}function _eglDestroySurface(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(281,0,1,e,t):(t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62006!=t?(EGL.setErrorCode(12301),1):(EGL.currentReadSurface==t&&(EGL.currentReadSurface=0),EGL.currentDrawSurface==t&&(EGL.currentDrawSurface=0),EGL.setErrorCode(12288),1))}function _eglCreateContext(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(282,0,1,e,t,r,n);if(t>>>=0,r>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;for(var i=1;;){var a=GROWABLE_HEAP_I32()[n>>>2>>>0];if(12440!=a){if(12344==a)break;return EGL.setErrorCode(12292),0}i=GROWABLE_HEAP_I32()[n+4>>>2>>>0],n+=8}return 2!=i?(EGL.setErrorCode(12293),0):(EGL.contextAttributes.majorVersion=i-1,EGL.contextAttributes.minorVersion=0,EGL.context=GL.createContext(Module.canvas,EGL.contextAttributes),0!=EGL.context?(EGL.setErrorCode(12288),GL.makeContextCurrent(EGL.context),Module.useWebGL=!0,Browser.moduleContextCreatedCallbacks.forEach((function(e){e()})),GL.makeContextCurrent(null),62004):(EGL.setErrorCode(12297),0))}function _eglDestroyContext(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(283,0,1,e,t):(t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62004!=t?(EGL.setErrorCode(12294),0):(GL.deleteContext(EGL.context),EGL.setErrorCode(12288),EGL.currentContext==t&&(EGL.currentContext=0),1))}function _eglQuerySurface(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(284,0,1,e,t,r,n);if(t>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62006!=t)return EGL.setErrorCode(12301),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12328:return GROWABLE_HEAP_I32()[n>>>2>>>0]=62002,1;case 12376:case 12416:case 12417:case 12418:case 12419:return 1;case 12375:return GROWABLE_HEAP_I32()[n>>>2>>>0]=Module.canvas.width,1;case 12374:return GROWABLE_HEAP_I32()[n>>>2>>>0]=Module.canvas.height,1;case 12432:case 12433:case 12434:return GROWABLE_HEAP_I32()[n>>>2>>>0]=-1,1;case 12422:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12420,1;case 12441:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12442,1;case 12435:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12437,1;default:return EGL.setErrorCode(12292),0}}function _eglQueryContext(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(285,0,1,e,t,r,n);if(t>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62004!=t)return EGL.setErrorCode(12294),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12328:return GROWABLE_HEAP_I32()[n>>>2>>>0]=62002,1;case 12439:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12448,1;case 12440:return GROWABLE_HEAP_I32()[n>>>2>>>0]=EGL.contextAttributes.majorVersion+1,1;case 12422:return GROWABLE_HEAP_I32()[n>>>2>>>0]=12420,1;default:return EGL.setErrorCode(12292),0}}function _eglGetError(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(286,0,1):EGL.errorCode}function _eglQueryString(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(287,0,1,e,t);if(62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(EGL.setErrorCode(12288),EGL.stringCache[t])return EGL.stringCache[t];var r;switch(t){case 12371:r=stringToNewUTF8("Emscripten");break;case 12372:r=stringToNewUTF8("1.4 Emscripten EGL");break;case 12373:r=stringToNewUTF8("");break;case 12429:r=stringToNewUTF8("OpenGL_ES");break;default:return EGL.setErrorCode(12300),0}return EGL.stringCache[t]=r,r}function _eglBindAPI(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(288,0,1,e):12448==e?(EGL.setErrorCode(12288),1):(EGL.setErrorCode(12300),0)}function _eglQueryAPI(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(289,0,1):(EGL.setErrorCode(12288),12448)}function _eglWaitClient(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(290,0,1):(EGL.setErrorCode(12288),1)}function _eglWaitNative(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(291,0,1,e):(EGL.setErrorCode(12288),1)}_eglGetDisplay.sig="pp",_eglInitialize.sig="ippp",_eglTerminate.sig="ip",_eglGetConfigs.sig="ippip",_eglChooseConfig.sig="ipppip",_eglGetConfigAttrib.sig="ippip",_eglCreateWindowSurface.sig="pppip",_eglDestroySurface.sig="ipp",_eglCreateContext.sig="ppppp",_eglDestroyContext.sig="ipp",_eglQuerySurface.sig="ippip",_eglQueryContext.sig="ippip",_eglGetError.sig="i",_eglQueryString.sig="ppi",_eglBindAPI.sig="ii",_eglQueryAPI.sig="i",_eglWaitClient.sig="i",_eglWaitNative.sig="ii";var _eglWaitGL=_eglWaitClient;function _eglSwapInterval(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(292,0,1,e,t):62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(0==t?_emscripten_set_main_loop_timing(0,0):_emscripten_set_main_loop_timing(1,t),EGL.setErrorCode(12288),1)}function _eglMakeCurrent(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(293,0,1,e,t,r,n):(t>>>=0,r>>>=0,n>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):0!=n&&62004!=n?(EGL.setErrorCode(12294),0):0!=r&&62006!=r||0!=t&&62006!=t?(EGL.setErrorCode(12301),0):(GL.makeContextCurrent(n?EGL.context:null),EGL.currentContext=n,EGL.currentDrawSurface=t,EGL.currentReadSurface=r,EGL.setErrorCode(12288),1))}function _eglGetCurrentContext(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(294,0,1):EGL.currentContext}function _eglGetCurrentSurface(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(295,0,1,e):12378==e?EGL.currentReadSurface:12377==e?EGL.currentDrawSurface:(EGL.setErrorCode(12300),0)}function _eglGetCurrentDisplay(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(296,0,1):EGL.currentContext?62e3:0}function _eglSwapBuffers(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(297,0,1,e,t);if(e>>>=0,t>>>=0,EGL.defaultDisplayInitialized)if(Module.ctx){if(!Module.ctx.isContextLost())return EGL.setErrorCode(12288),1;EGL.setErrorCode(12302)}else EGL.setErrorCode(12290);else EGL.setErrorCode(12289);return 0}function _eglReleaseThread(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(298,0,1):(EGL.currentContext=0,EGL.currentReadSurface=0,EGL.currentDrawSurface=0,EGL.setErrorCode(12288),1)}function _uuid_clear(e){return zeroMemory(e>>>=0,16)}function _uuid_compare(e,t){return _memcmp(e>>>=0,t>>>=0,16)}function _uuid_copy(e,t){return _memcpy(e>>>=0,t>>>=0,16)}function _uuid_generate(e){e>>>=0;var t=null;if(ENVIRONMENT_IS_NODE)try{t=(0,xn("crypto").randomBytes)(16)}catch(e){}else ENVIRONMENT_IS_WEB&&typeof window.crypto<"u"&&typeof window.crypto.getRandomValues<"u"&&(t=new Uint8Array(16),window.crypto.getRandomValues(t));if(!t){t=new Array(16);for(var r=(new Date).getTime(),n=0;n<16;n++){var i=(r+256*Math.random())%256|0;r=r/256|0,t[n]=i}}t[6]=15&t[6]|64,t[8]=63&t[8]|128,writeArrayToMemory(t,e)}function _uuid_is_null(e){e>>>=0;for(var t=0;t<4;t++,e=e+4|0)if(GROWABLE_HEAP_I32()[e>>>2>>>0])return 0;return 1}function _uuid_parse(e,t){if(t>>>=0,36===(e=UTF8ToString(e>>>=0)).length){var r=0,n=new Array(16);return e.toLowerCase().replace(/[0-9a-f]{2}/g,(function(e){r<16&&(n[r++]=parseInt(e,16))})),r<16?-1:(writeArrayToMemory(n,t),0)}return-1}function _uuid_unparse(e,t,r){e>>>=0,t>>>=0;var n=0,i="xxxx-xx-xx-xx-xxxxxx".replace(/[x]/g,(function(t){var i=r?GROWABLE_HEAP_U8()[e+n>>>0].toString(16).toUpperCase():GROWABLE_HEAP_U8()[e+n>>>0].toString(16);return i=1===i.length?"0"+i:i,n++,i}));stringToUTF8(i,t,37)}function _uuid_unparse_lower(e,t){_uuid_unparse(e>>>=0,t>>>=0)}function _uuid_unparse_upper(e,t){_uuid_unparse(e>>>=0,t>>>=0,!0)}function _uuid_type(e){return 4}function _uuid_variant(e){return 1}_eglWaitGL.sig="i",_eglSwapInterval.sig="ipi",_eglMakeCurrent.sig="ipppp",_eglGetCurrentContext.sig="p",_eglGetCurrentSurface.sig="pi",_eglGetCurrentDisplay.sig="p",_eglSwapBuffers.sig="ipp",_eglReleaseThread.sig="i",_uuid_clear.sig="vp",_uuid_compare.sig="ipp",_uuid_copy.sig="vpp",_uuid_generate.sig="vp",_uuid_is_null.sig="ip",_uuid_parse.sig="ipp",_uuid_unparse.sig="vpp",_uuid_unparse_lower.sig="vpp",_uuid_unparse_upper.sig="vpp",_uuid_type.sig="ip",_uuid_variant.sig="ip";var GLEW={isLinaroFork:1,extensions:null,error:{0:null,1:null,2:null,3:null,4:null,5:null,6:null,7:null,8:null},version:{1:null,2:null,3:null,4:null},errorStringConstantFromCode(e){if(GLEW.isLinaroFork)switch(e){case 4:return"OpenGL ES lib expected, found OpenGL lib";case 5:return"OpenGL lib expected, found OpenGL ES lib";case 6:return"Missing EGL version";case 7:return"EGL 1.1 and up are supported"}switch(e){case 0:return"No error";case 1:return"Missing GL version";case 2:return"GL 1.1 and up are supported";case 3:return"GLX 1.2 and up are supported";default:return null}},errorString(e){if(!GLEW.error[e]){var t=GLEW.errorStringConstantFromCode(e);t||(t="Unknown error",e=8),GLEW.error[e]=stringToNewUTF8(t)}return GLEW.error[e]},versionStringConstantFromCode(e){switch(e){case 1:return"1.10.0";case 2:return"1";case 3:return"10";case 4:return"0";default:return null}},versionString(e){if(!GLEW.version[e]){var t=GLEW.versionStringConstantFromCode(e);if(!t)return 0;GLEW.version[e]=stringToNewUTF8(t)}return GLEW.version[e]},extensionIsSupported:e=>(GLEW.extensions||(GLEW.extensions=webglGetExtensions()),GLEW.extensions.includes(e)?1:GLEW.extensions.includes("GL_"+e))},_glewInit=()=>0;function _glewIsSupported(e){for(var t=UTF8ToString(e>>>=0).split(" "),r=0;r>>=0,GLEW.extensionIsSupported(UTF8ToString(e))}function _glewGetErrorString(e){return GLEW.errorString(e)}function _glewGetString(e){return GLEW.versionString(e)}_glewInit.sig="i",_glewIsSupported.sig="ip",_glewGetExtension.sig="ip",_glewGetErrorString.sig="pi",_glewGetString.sig="pi";var IDBStore={indexedDB(){if(typeof indexedDB<"u")return indexedDB;var e=null;return"object"==typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),assert(e,"IDBStore used, but indexedDB not supported"),e},DB_VERSION:22,DB_STORE_NAME:"FILE_DATA",dbs:{},blobs:[0],getDB(e,t){var r,n=IDBStore.dbs[e];if(n)return t(null,n);try{r=IDBStore.indexedDB().open(e,IDBStore.DB_VERSION)}catch(e){return t(e)}r.onupgradeneeded=e=>{var t=e.target.result,r=e.target.transaction;t.objectStoreNames.contains(IDBStore.DB_STORE_NAME)?r.objectStore(IDBStore.DB_STORE_NAME):t.createObjectStore(IDBStore.DB_STORE_NAME)},r.onsuccess=()=>{n=r.result,IDBStore.dbs[e]=n,t(null,n)},r.onerror=function(e){t(e.target.error||"unknown error"),e.preventDefault()}},getStore(e,t,r){IDBStore.getDB(e,((e,n)=>{if(e)return r(e);var i=n.transaction([IDBStore.DB_STORE_NAME],t);i.onerror=e=>{r(e.target.error||"unknown error"),e.preventDefault()};var a=i.objectStore(IDBStore.DB_STORE_NAME);r(null,a)}))},getFile(e,t,r){IDBStore.getStore(e,"readonly",((e,n)=>{if(e)return r(e);var i=n.get(t);i.onsuccess=e=>{var n=e.target.result;return n?r(null,n):r("file ".concat(t," not found"))},i.onerror=r}))},setFile(e,t,r,n){IDBStore.getStore(e,"readwrite",((e,i)=>{if(e)return n(e);var a=i.put(r,t);a.onsuccess=e=>n(),a.onerror=n}))},deleteFile(e,t,r){IDBStore.getStore(e,"readwrite",((e,n)=>{if(e)return r(e);var i=n.delete(t);i.onsuccess=e=>r(),i.onerror=r}))},existsFile(e,t,r){IDBStore.getStore(e,"readonly",((e,n)=>{if(e)return r(e);var i=n.count(t);i.onsuccess=e=>r(null,e.target.result>0),i.onerror=r}))},clearStore(e,t){IDBStore.getStore(e,"readwrite",((e,r)=>{if(e)return t(e);var n=r.clear();n.onsuccess=e=>t(),n.onerror=t}))}},_emscripten_idb_async_load=function(e,t,r,n,i){e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,runtimeKeepalivePush(),IDBStore.getFile(UTF8ToString(e),UTF8ToString(t),((e,t)=>{runtimeKeepalivePop(),callUserCallback((()=>{if(e)i&&getWasmTableEntry(i)(r);else{var a=_malloc(t.length);GROWABLE_HEAP_U8().set(t,a>>>0),getWasmTableEntry(n)(r,a,t.length),_free(a)}}))}))};_emscripten_idb_async_load.sig="vppppp";var _emscripten_idb_async_store=function(e,t,r,n,i,a,s){e>>>=0,t>>>=0,r>>>=0,i>>>=0,a>>>=0,s>>>=0,runtimeKeepalivePush(),IDBStore.setFile(UTF8ToString(e),UTF8ToString(t),new Uint8Array(GROWABLE_HEAP_U8().subarray(r>>>0,r+n>>>0)),(e=>{runtimeKeepalivePop(),callUserCallback((()=>{e?s&&getWasmTableEntry(s)(i):a&&getWasmTableEntry(a)(i)}))}))};_emscripten_idb_async_store.sig="vpppippp";var _emscripten_idb_async_delete=function(e,t,r,n,i){e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,runtimeKeepalivePush(),IDBStore.deleteFile(UTF8ToString(e),UTF8ToString(t),(e=>{runtimeKeepalivePop(),callUserCallback((()=>{e?i&&getWasmTableEntry(i)(r):n&&getWasmTableEntry(n)(r)}))}))};_emscripten_idb_async_delete.sig="vppppp";var _emscripten_idb_async_exists=function(e,t,r,n,i){e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,runtimeKeepalivePush(),IDBStore.existsFile(UTF8ToString(e),UTF8ToString(t),((e,t)=>{runtimeKeepalivePop(),callUserCallback((()=>{e?i&&getWasmTableEntry(i)(r):n&&getWasmTableEntry(n)(r,t)}))}))};_emscripten_idb_async_exists.sig="vppppp";var _emscripten_idb_async_clear=function(e,t,r,n){e>>>=0,t>>>=0,r>>>=0,n>>>=0,runtimeKeepalivePush(),IDBStore.clearStore(UTF8ToString(e),(e=>{runtimeKeepalivePop(),callUserCallback((()=>{e?n&&getWasmTableEntry(n)(t):r&&getWasmTableEntry(r)(t)}))}))};function _emscripten_idb_load(e,t,r,n,i){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_load, etc."}function _emscripten_idb_store(e,t,r,n,i){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_store, etc."}function _emscripten_idb_delete(e,t,r){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_delete, etc."}function _emscripten_idb_exists(e,t,r,n){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_exists, etc."}function _emscripten_idb_clear(e,t){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_clear, etc."}_emscripten_idb_async_clear.sig="vpppp",_emscripten_idb_load.sig="vppppp",_emscripten_idb_store.sig="vpppip",_emscripten_idb_delete.sig="vppp",_emscripten_idb_exists.sig="vpppp",_emscripten_idb_clear.sig="vpp";var runAndAbortIfError=e=>{try{return e()}catch(e){abort(e)}},_emscripten_sleep=()=>{throw"Please compile your program with async support in order to use asynchronous operations like emscripten_sleep"};function _emscripten_scan_registers(e){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_scan_registers"}function _emscripten_fiber_swap(e,t){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_fiber_swap"}function _SDL_GetTicks(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(299,0,1):Date.now()-SDL.startTime|0}function _SDL_LockSurface(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(300,0,1,e);e>>>=0;var t=SDL.surfaces[e];if(t.locked++,t.locked>1||(t.buffer||(t.buffer=_malloc(t.width*t.height*4),GROWABLE_HEAP_U32()[e+20>>>2>>>0]=t.buffer),GROWABLE_HEAP_U32()[e+20>>>2>>>0]=t.buffer,e==SDL.screen&&Module.screenIsReadOnly&&t.image))return 0;if(SDL.defaults.discardOnLock){if(t.image||(t.image=t.ctx.createImageData(t.width,t.height)),!SDL.defaults.opaqueFrontBuffer)return}else t.image=t.ctx.getImageData(0,0,t.width,t.height);if(e==SDL.screen&&SDL.defaults.opaqueFrontBuffer)for(var r=t.image.data,n=r.length,i=0;i>>0)}return 0}_emscripten_sleep.sig="vi",_emscripten_scan_registers.sig="vp",_emscripten_fiber_swap.sig="vpp",_SDL_GetTicks.sig="i",_SDL_LockSurface.sig="ip";var SDL={defaults:{width:320,height:200,copyOnLock:!0,discardOnLock:!1,opaqueFrontBuffer:!0},version:null,surfaces:{},canvasPool:[],events:[],fonts:[null],audios:[null],rwops:[null],music:{audio:null,volume:1},mixerFrequency:22050,mixerFormat:32784,mixerNumChannels:2,mixerChunkSize:1024,channelMinimumNumber:0,GL:!1,glAttributes:{0:3,1:3,2:2,3:0,4:0,5:1,6:16,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:1,16:0,17:0,18:0},keyboardState:null,keyboardMap:{},canRequestFullscreen:!1,isRequestingFullscreen:!1,textInput:!1,unicode:!1,ttfContext:null,audio:null,startTime:null,initFlags:0,buttonState:0,modState:0,DOMButtons:[0,0,0],DOMEventToSDLEvent:{},TOUCH_DEFAULT_ID:0,eventHandler:null,eventHandlerContext:null,eventHandlerTemp:0,keyCodes:{16:1249,17:1248,18:1250,20:1081,33:1099,34:1102,35:1101,36:1098,37:1104,38:1106,39:1103,40:1105,44:316,45:1097,46:127,91:1251,93:1125,96:1122,97:1113,98:1114,99:1115,100:1116,101:1117,102:1118,103:1119,104:1120,105:1121,106:1109,107:1111,109:1110,110:1123,111:1108,112:1082,113:1083,114:1084,115:1085,116:1086,117:1087,118:1088,119:1089,120:1090,121:1091,122:1092,123:1093,124:1128,125:1129,126:1130,127:1131,128:1132,129:1133,130:1134,131:1135,132:1136,133:1137,134:1138,135:1139,144:1107,160:94,161:33,162:34,163:35,164:36,165:37,166:38,167:95,168:40,169:41,170:42,171:43,172:124,173:45,174:123,175:125,176:126,181:127,182:129,183:128,188:44,190:46,191:47,192:96,219:91,220:92,221:93,222:39,224:1251},scanCodes:{8:42,9:43,13:40,27:41,32:44,35:204,39:53,44:54,46:55,47:56,48:39,49:30,50:31,51:32,52:33,53:34,54:35,55:36,56:37,57:38,58:203,59:51,61:46,91:47,92:49,93:48,96:52,97:4,98:5,99:6,100:7,101:8,102:9,103:10,104:11,105:12,106:13,107:14,108:15,109:16,110:17,111:18,112:19,113:20,114:21,115:22,116:23,117:24,118:25,119:26,120:27,121:28,122:29,127:76,305:224,308:226,316:70},loadRect:e=>({x:GROWABLE_HEAP_I32()[e+0>>>2>>>0],y:GROWABLE_HEAP_I32()[e+4>>>2>>>0],w:GROWABLE_HEAP_I32()[e+8>>>2>>>0],h:GROWABLE_HEAP_I32()[e+12>>>2>>>0]}),updateRect(e,t){GROWABLE_HEAP_I32()[e>>>2>>>0]=t.x,GROWABLE_HEAP_I32()[e+4>>>2>>>0]=t.y,GROWABLE_HEAP_I32()[e+8>>>2>>>0]=t.w,GROWABLE_HEAP_I32()[e+12>>>2>>>0]=t.h},intersectionOfRects(e,t){var r=Math.max(e.x,t.x),n=Math.max(e.y,t.y),i=Math.min(e.x+e.w,t.x+t.w),a=Math.min(e.y+e.h,t.y+t.h);return{x:r,y:n,w:Math.max(r,i)-r,h:Math.max(n,a)-n}},checkPixelFormat(e){},loadColorToCSSRGB(e){var t=GROWABLE_HEAP_I32()[e>>>2>>>0];return"rgb("+(255&t)+","+(t>>8&255)+","+(t>>16&255)+")"},loadColorToCSSRGBA(e){var t=GROWABLE_HEAP_I32()[e>>>2>>>0];return"rgba("+(255&t)+","+(t>>8&255)+","+(t>>16&255)+","+(t>>24&255)/255+")"},translateColorToCSSRGBA:e=>"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>>24)/255+")",translateRGBAToCSSRGBA:(e,t,r,n)=>"rgba("+(255&e)+","+(255&t)+","+(255&r)+","+(255&n)/255+")",translateRGBAToColor:(e,t,r,n)=>e|t<<8|r<<16|n<<24,makeSurface(e,t,r,n,i,a,s,o,_){var l,c=1&r,u=2097152&r,d=67108864&r,p=_malloc(60),m=_malloc(44),f=u?1:4,h=0;!c&&!d&&(h=_malloc(e*t*4)),GROWABLE_HEAP_I32()[p>>>2>>>0]=r,GROWABLE_HEAP_U32()[p+4>>>2>>>0]=m,GROWABLE_HEAP_I32()[p+8>>>2>>>0]=e,GROWABLE_HEAP_I32()[p+12>>>2>>>0]=t,GROWABLE_HEAP_I32()[p+16>>>2>>>0]=e*f,GROWABLE_HEAP_U32()[p+20>>>2>>>0]=h,GROWABLE_HEAP_I32()[p+36>>>2>>>0]=0,GROWABLE_HEAP_I32()[p+40>>>2>>>0]=0,GROWABLE_HEAP_I32()[p+44>>>2>>>0]=Module.canvas.width,GROWABLE_HEAP_I32()[p+48>>>2>>>0]=Module.canvas.height,GROWABLE_HEAP_I32()[p+56>>>2>>>0]=1,GROWABLE_HEAP_I32()[m>>>2>>>0]=-2042224636,GROWABLE_HEAP_I32()[m+4>>>2>>>0]=0,GROWABLE_HEAP_I8()[m+8>>>0]=8*f,GROWABLE_HEAP_I8()[m+9>>>0]=f,GROWABLE_HEAP_I32()[m+12>>>2>>>0]=a||255,GROWABLE_HEAP_I32()[m+16>>>2>>>0]=s||65280,GROWABLE_HEAP_I32()[m+20>>>2>>>0]=o||16711680,GROWABLE_HEAP_I32()[m+24>>>2>>>0]=_||4278190080,SDL.GL=SDL.GL||d,n?l=Module.canvas:((l=SDL.canvasPool.length>0?SDL.canvasPool.pop():document.createElement("canvas")).width=e,l.height=t);var g={antialias:0!=SDL.glAttributes[13]&&SDL.glAttributes[14]>1,depth:SDL.glAttributes[6]>0,stencil:SDL.glAttributes[7]>0,alpha:SDL.glAttributes[3]>0},v=Browser.createContext(l,d,n,g);return SDL.surfaces[p]={width:e,height:t,canvas:l,ctx:v,surf:p,buffer:h,pixelFormat:m,alpha:255,flags:r,locked:0,usePageCanvas:n,source:i,isFlagSet:e=>r&e},p},copyIndexedColorData(e,t,r,n,i){if(e.colors){var a=Module.canvas.width,s=Module.canvas.height,o=t||0,_=r||0,l=(n||a-o)+o,c=(i||s-_)+_,u=e.buffer;e.image.data32||(e.image.data32=new Uint32Array(e.image.data.buffer));for(var d=e.image.data32,p=e.colors32,m=_;m>>0]]}},freeSurface(e){var t=e+56,r=GROWABLE_HEAP_I32()[t>>>2>>>0];if(r>1)GROWABLE_HEAP_I32()[t>>>2>>>0]=r-1;else{var n=SDL.surfaces[e];!n.usePageCanvas&&n.canvas&&SDL.canvasPool.push(n.canvas),n.buffer&&_free(n.buffer),_free(n.pixelFormat),_free(e),SDL.surfaces[e]=null,e===SDL.screen&&(SDL.screen=null)}},blitSurface(e,t,r,n,i){var a,s,o,_,l=SDL.surfaces[e],c=SDL.surfaces[r];if(a=t?SDL.loadRect(t):{x:0,y:0,w:l.width,h:l.height},s=n?SDL.loadRect(n):{x:0,y:0,w:l.width,h:l.height},c.clipRect){var u=i&&0!==a.w?a.w/s.w:1,d=i&&0!==a.h?a.h/s.h:1;s=SDL.intersectionOfRects(c.clipRect,s),a.w=s.w*u,a.h=s.h*d,n&&SDL.updateRect(n,s)}if(i?(o=s.w,_=s.h):(o=a.w,_=a.h),0===a.w||0===a.h||0===o||0===_)return 0;var p=c.ctx.globalAlpha;return c.ctx.globalAlpha=l.alpha/255,c.ctx.drawImage(l.canvas,a.x,a.y,a.w,a.h,s.x,s.y,o,_),c.ctx.globalAlpha=p,r!=SDL.screen&&(warnOnce("WARNING: copying canvas data to memory for compatibility"),_SDL_LockSurface(r),c.locked--),0},downFingers:{},savedKeydown:null,receiveEvent(e){function t(){for(var e in SDL.keyboardMap)SDL.events.push({type:"keyup",keyCode:SDL.keyboardMap[e]})}switch(e.type){case"touchstart":case"touchmove":e.preventDefault();var r=[];if("touchstart"===e.type)for(var n=0;n0?Math.max(_,1):Math.min(_,-1))>0?3:4;SDL.events.push({type:"mousedown",button:l,pageX:e.pageX,pageY:e.pageY}),SDL.events.push({type:"mouseup",button:l,pageX:e.pageX,pageY:e.pageY}),SDL.events.push({type:"wheel",deltaX:0,deltaY:_}),e.preventDefault();break;case"mousemove":if(1===SDL.DOMButtons[0]&&SDL.events.push({type:"touchmove",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}}),Browser.pointerLock&&("mozMovementX"in e&&(e.movementX=e.mozMovementX,e.movementY=e.mozMovementY),0==e.movementX&&0==e.movementY))return void e.preventDefault();case"keydown":case"keyup":case"keypress":case"mousedown":case"mouseup":if(("keydown"!==e.type||!SDL.unicode&&!SDL.textInput||8===e.keyCode||9===e.keyCode)&&e.preventDefault(),"mousedown"==e.type)SDL.DOMButtons[e.button]=1,SDL.events.push({type:"touchstart",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}});else if("mouseup"==e.type){if(!SDL.DOMButtons[e.button])return;SDL.events.push({type:"touchend",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}}),SDL.DOMButtons[e.button]=0}"keydown"===e.type||"mousedown"===e.type?SDL.canRequestFullscreen=!0:("keyup"===e.type||"mouseup"===e.type)&&(SDL.isRequestingFullscreen&&(Module.requestFullscreen(!0,!0),SDL.isRequestingFullscreen=!1),SDL.canRequestFullscreen=!1),"keypress"===e.type&&SDL.savedKeydown?(SDL.savedKeydown.keypressCharCode=e.charCode,SDL.savedKeydown=null):"keydown"===e.type&&(SDL.savedKeydown=e),("keypress"!==e.type||SDL.textInput)&&SDL.events.push(e);break;case"mouseout":for(n=0;n<3;n++)SDL.DOMButtons[n]&&(SDL.events.push({type:"mouseup",button:n,pageX:e.pageX,pageY:e.pageY}),SDL.DOMButtons[n]=0);e.preventDefault();break;case"focus":SDL.events.push(e),e.preventDefault();break;case"blur":SDL.events.push(e),t(),e.preventDefault();break;case"visibilitychange":SDL.events.push({type:"visibilitychange",visible:!document.hidden}),t(),e.preventDefault();break;case"unload":return void(Browser.mainLoop.runner&&(SDL.events.push(e),Browser.mainLoop.runner()));case"resize":SDL.events.push(e),e.preventDefault&&e.preventDefault()}SDL.events.length>=1e4&&(err("SDL event queue full, dropping events"),SDL.events=SDL.events.slice(0,1e4)),SDL.flushEventsToHandler()},lookupKeyCodeForEvent(e){var t=e.keyCode;return t>=65&&t<=90?t+=32:(t=SDL.keyCodes[e.keyCode]||e.keyCode,2===e.location&&t>=1248&&t<=1251&&(t+=4)),t},handleEvent(e){if(!e.handled)switch(e.handled=!0,e.type){case"touchstart":case"touchend":case"touchmove":Browser.calculateMouseEvent(e);break;case"keydown":case"keyup":var t="keydown"===e.type,r=SDL.lookupKeyCodeForEvent(e);GROWABLE_HEAP_I8()[SDL.keyboardState+r>>>0]=t,SDL.modState=(GROWABLE_HEAP_I8()[SDL.keyboardState+1248>>>0]?64:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1249>>>0]?1:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1250>>>0]?256:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1252>>>0]?128:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1253>>>0]?2:0)|(GROWABLE_HEAP_I8()[SDL.keyboardState+1254>>>0]?512:0),t?SDL.keyboardMap[r]=e.keyCode:delete SDL.keyboardMap[r];break;case"mousedown":case"mouseup":"mousedown"==e.type?SDL.buttonState|=1<0;)if(!1!==SDL.makeCEvent(SDL.events.shift(),e))return 1;return 0}return SDL.events.length>0},makeCEvent(e,t){if("number"==typeof e)return _memcpy(t,e,28),void _free(e);switch(SDL.handleEvent(e),e.type){case"keydown":case"keyup":var r,n="keydown"===e.type,i=SDL.lookupKeyCodeForEvent(e);r=i>=1024?i-1024:SDL.scanCodes[i]||i,GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I8()[t+8>>>0]=n?1:0,GROWABLE_HEAP_I8()[t+9>>>0]=0,GROWABLE_HEAP_I32()[t+12>>>2>>>0]=r,GROWABLE_HEAP_I32()[t+16>>>2>>>0]=i,GROWABLE_HEAP_I16()[t+20>>>1>>>0]=SDL.modState,GROWABLE_HEAP_I32()[t+24>>>2>>>0]=e.keypressCharCode||i;break;case"keypress":GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type];for(var a=intArrayFromString(String.fromCharCode(e.charCode)),s=0;s>>0]=a[s];break;case"mousedown":case"mouseup":case"mousemove":"mousemove"!=e.type?(n="mousedown"===e.type,GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=0,GROWABLE_HEAP_I32()[t+8>>>2>>>0]=0,GROWABLE_HEAP_I32()[t+12>>>2>>>0]=0,GROWABLE_HEAP_I8()[t+16>>>0]=e.button+1,GROWABLE_HEAP_I8()[t+17>>>0]=n?1:0,GROWABLE_HEAP_I32()[t+20>>>2>>>0]=Browser.mouseX,GROWABLE_HEAP_I32()[t+24>>>2>>>0]=Browser.mouseY):(GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=0,GROWABLE_HEAP_I32()[t+8>>>2>>>0]=0,GROWABLE_HEAP_I32()[t+12>>>2>>>0]=0,GROWABLE_HEAP_I32()[t+16>>>2>>>0]=SDL.buttonState,GROWABLE_HEAP_I32()[t+20>>>2>>>0]=Browser.mouseX,GROWABLE_HEAP_I32()[t+24>>>2>>>0]=Browser.mouseY,GROWABLE_HEAP_I32()[t+28>>>2>>>0]=Browser.mouseMovementX,GROWABLE_HEAP_I32()[t+32>>>2>>>0]=Browser.mouseMovementY);break;case"wheel":GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[t+16>>>2>>>0]=e.deltaX,GROWABLE_HEAP_I32()[t+20>>>2>>>0]=e.deltaY;break;case"touchstart":case"touchend":case"touchmove":var o=e.touch;if(!Browser.touches[o.identifier])break;var _=Module.canvas.width,l=Module.canvas.height,c=Browser.touches[o.identifier].x/_,u=Browser.touches[o.identifier].y/l,d=c-Browser.lastTouches[o.identifier].x/_,p=u-Browser.lastTouches[o.identifier].y/l;if(void 0===o.deviceID&&(o.deviceID=SDL.TOUCH_DEFAULT_ID),0===d&&0===p&&"touchmove"===e.type)return!1;GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=_SDL_GetTicks(),tempI64=[o.deviceID>>>0,(tempDouble=o.deviceID,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+8>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+12>>>2>>>0]=tempI64[1],tempI64=[o.identifier>>>0,(tempDouble=o.identifier,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],GROWABLE_HEAP_I32()[t+16>>>2>>>0]=tempI64[0],GROWABLE_HEAP_I32()[t+20>>>2>>>0]=tempI64[1],GROWABLE_HEAP_F32()[t+24>>>2>>>0]=c,GROWABLE_HEAP_F32()[t+28>>>2>>>0]=u,GROWABLE_HEAP_F32()[t+32>>>2>>>0]=d,GROWABLE_HEAP_F32()[t+36>>>2>>>0]=p,void 0!==o.force?GROWABLE_HEAP_F32()[t+40>>>2>>>0]=o.force:GROWABLE_HEAP_F32()[t+40>>>2>>>0]="touchend"==e.type?0:1;break;case"unload":GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type];break;case"resize":GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=e.w,GROWABLE_HEAP_I32()[t+8>>>2>>>0]=e.h;break;case"joystick_button_up":case"joystick_button_down":var m="joystick_button_up"===e.type?0:1;GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I8()[t+4>>>0]=e.index,GROWABLE_HEAP_I8()[t+5>>>0]=e.button,GROWABLE_HEAP_I8()[t+6>>>0]=m;break;case"joystick_axis_motion":GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I8()[t+4>>>0]=e.index,GROWABLE_HEAP_I8()[t+5>>>0]=e.axis,GROWABLE_HEAP_I32()[t+8>>>2>>>0]=SDL.joystickAxisValueConversion(e.value);break;case"focus":GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=0,GROWABLE_HEAP_I8()[t+8>>>0]=12;break;case"blur":GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=0,GROWABLE_HEAP_I8()[t+8>>>0]=13;break;case"visibilitychange":var f=e.visible?1:2;GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],GROWABLE_HEAP_I32()[t+4>>>2>>>0]=0,GROWABLE_HEAP_I8()[t+8>>>0]=f;break;default:throw"Unhandled SDL event: "+e.type}},makeFontString:(e,t)=>("'"!=t.charAt(0)&&'"'!=t.charAt(0)&&(t='"'+t+'"'),e+"px "+t+", serif"),estimateTextWidth(e,t){var r=e.size,n=SDL.makeFontString(r,e.name),i=SDL.ttfContext;return i.font=n,0|i.measureText(t).width},allocateChannels(e){if(!(SDL.numChannels&&SDL.numChannels>=e&&0!=e)){SDL.numChannels=e,SDL.channels=[];for(var t=0;t{e.paused||SDL.playWebAudio(e)}));e.webAudioNode=SDL.audioContext.createBufferSource(),e.webAudioNode.buffer=t.decodedBuffer,e.webAudioNode.loop=e.loop,e.webAudioNode.onended=e.onended,e.webAudioPannerNode=SDL.audioContext.createPanner(),e.webAudioPannerNode.setPosition(0,0,-.5),e.webAudioPannerNode.panningModel="equalpower",e.webAudioGainNode=SDL.audioContext.createGain(),e.webAudioGainNode.gain.value=e.volume,e.webAudioNode.connect(e.webAudioPannerNode),e.webAudioPannerNode.connect(e.webAudioGainNode),e.webAudioGainNode.connect(SDL.audioContext.destination),e.webAudioNode.start(0,e.currentPosition),e.startTime=SDL.audioContext.currentTime-e.currentPosition}catch(e){err("playWebAudio failed: ".concat(e))}},pauseWebAudio(e){if(e){if(e.webAudioNode)try{e.currentPosition=(SDL.audioContext.currentTime-e.startTime)%e.resource.webAudio.decodedBuffer.duration,e.webAudioNode.onended=void 0,e.webAudioNode.stop(0),e.webAudioNode=void 0}catch(e){err("pauseWebAudio failed: ".concat(e))}e.paused=!0}},openAudioContext(){SDL.audioContext||(typeof AudioContext<"u"?SDL.audioContext=new AudioContext:typeof webkitAudioContext<"u"&&(SDL.audioContext=new webkitAudioContext))},webAudioAvailable:()=>!!SDL.audioContext,fillWebAudioBufferFromHeap(e,t,r){for(var n=SDL.audio,i=n.channels,a=0;a>>1>>>0]/32768;else if(8==n.format)for(o=0;o>>0];s[o]=(_>=0?_-128:_+128)/128}else{if(33056!=n.format)throw"Invalid SDL audio format "+n.format+"!";for(o=0;o>>2>>>0]}}},joystickEventState:1,lastJoystickState:{},joystickNamePool:{},recordJoystickState(e,t){for(var r=new Array(t.buttons.length),n=0;n"object"==typeof e?e.pressed:e>0,queryJoysticks(){for(var e in SDL.lastJoystickState){var t=SDL.getGamepad(e-1),r=SDL.lastJoystickState[e];if(typeof t>"u"||null===t)return;if("number"!=typeof t.timestamp||t.timestamp!=r.timestamp||!t.timestamp){var n;for(n=0;n(e=Math.min(1,Math.max(e,-1)),Math.ceil(32767.5*(e+1)-32768)),getGamepads(){var e=navigator.getGamepads||navigator.webkitGamepads||navigator.mozGamepads||navigator.gamepads||navigator.webkitGetGamepads;return void 0!==e?e.apply(navigator):[]},getGamepad(e){var t=SDL.getGamepads();return t.length>e&&e>=0?t[e]:null}};function _SDL_Linked_Version(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(301,0,1):(null===SDL.version&&(SDL.version=_malloc(3),GROWABLE_HEAP_I8()[SDL.version+0>>>0]=1,GROWABLE_HEAP_I8()[SDL.version+1>>>0]=3,GROWABLE_HEAP_I8()[SDL.version+2>>>0]=0),SDL.version)}function _SDL_Init(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(302,0,1,e);if(SDL.startTime=Date.now(),SDL.initFlags=e,!Module.doNotCaptureKeyboard){var t=Module.keyboardListeningElement||document;t.addEventListener("keydown",SDL.receiveEvent),t.addEventListener("keyup",SDL.receiveEvent),t.addEventListener("keypress",SDL.receiveEvent),window.addEventListener("focus",SDL.receiveEvent),window.addEventListener("blur",SDL.receiveEvent),document.addEventListener("visibilitychange",SDL.receiveEvent)}return window.addEventListener("unload",SDL.receiveEvent),SDL.keyboardState=_malloc(65536),zeroMemory(SDL.keyboardState,65536),SDL.DOMEventToSDLEvent.keydown=768,SDL.DOMEventToSDLEvent.keyup=769,SDL.DOMEventToSDLEvent.keypress=771,SDL.DOMEventToSDLEvent.mousedown=1025,SDL.DOMEventToSDLEvent.mouseup=1026,SDL.DOMEventToSDLEvent.mousemove=1024,SDL.DOMEventToSDLEvent.wheel=1027,SDL.DOMEventToSDLEvent.touchstart=1792,SDL.DOMEventToSDLEvent.touchend=1793,SDL.DOMEventToSDLEvent.touchmove=1794,SDL.DOMEventToSDLEvent.unload=256,SDL.DOMEventToSDLEvent.resize=28673,SDL.DOMEventToSDLEvent.visibilitychange=512,SDL.DOMEventToSDLEvent.focus=512,SDL.DOMEventToSDLEvent.blur=512,SDL.DOMEventToSDLEvent.joystick_axis_motion=1536,SDL.DOMEventToSDLEvent.joystick_button_down=1539,SDL.DOMEventToSDLEvent.joystick_button_up=1540,0}function _SDL_WasInit(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(303,0,1,e):(null===SDL.startTime&&_SDL_Init(0),1)}function _SDL_GetVideoInfo(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(304,0,1);var e=_malloc(20);return zeroMemory(e,3),GROWABLE_HEAP_I32()[e+12>>>2>>>0]=Module.canvas.width,GROWABLE_HEAP_I32()[e+16>>>2>>>0]=Module.canvas.height,e}function _SDL_ListModes(e,t){return-1}_SDL_Linked_Version.sig="p",_SDL_Init.sig="ii",_SDL_WasInit.sig="ii",_SDL_GetVideoInfo.sig="p",_SDL_ListModes.sig="ppi";var _SDL_VideoModeOK=(e,t,r,n)=>r;function _SDL_VideoDriverName(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(305,0,1,e,t);if(e>>>=0,null===SDL.startTime)return 0;var r=[101,109,115,99,114,105,112,116,101,110,95,115,100,108,95,100,114,105,118,101,114],n=0,i=r.length;for(t<=i&&(i=t-1);n>>0]=a,n++}return GROWABLE_HEAP_I8()[e+n>>>0]=0,e}_SDL_VideoModeOK.sig="iiiii",_SDL_VideoDriverName.sig="ppi";var _SDL_AudioDriverName=_SDL_VideoDriverName;_SDL_AudioDriverName.sig="ppi";var _SDL_SetVideoMode=function(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(306,0,1,e,t,r,n);["touchstart","touchend","touchmove","mousedown","mouseup","mousemove","mousewheel","wheel","mouseout","DOMMouseScroll"].forEach((e=>Module.canvas.addEventListener(e,SDL.receiveEvent,!0)));var i=Module.canvas;return 0==e&&0==t&&(e=i.width,t=i.height),SDL.addedResizeListener||(SDL.addedResizeListener=!0,Browser.resizeListeners.push(((e,t)=>{SDL.settingVideoMode||SDL.receiveEvent({type:"resize",w:e,h:t})}))),SDL.settingVideoMode=!0,Browser.setCanvasSize(e,t),SDL.settingVideoMode=!1,SDL.screen&&(SDL.freeSurface(SDL.screen),assert(!SDL.screen)),SDL.GL&&(n|=67108864),SDL.screen=SDL.makeSurface(e,t,n,!0,"screen"),SDL.screen};function _SDL_GetVideoSurface(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(307,0,1):SDL.screen}function _SDL_AudioQuit(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(308,0,1);for(var e=0;eout("SDL_VideoQuit called (and ignored)");_SDL_VideoQuit.sig="v";var _SDL_QuitSubSystem=e=>out("SDL_QuitSubSystem called (and ignored)");_SDL_QuitSubSystem.sig="vi";var _SDL_Quit=()=>{_SDL_AudioQuit(),out("SDL_Quit called (and ignored)")};function _SDL_UnlockSurface(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(309,0,1,e);e>>>=0,assert(!SDL.GL);var t=SDL.surfaces[e];if(t.locked&&!(--t.locked>0)){if(t.isFlagSet(2097152))SDL.copyIndexedColorData(t);else if(t.colors)for(var r=Module.canvas.width,n=Module.canvas.height,i=t.buffer,a=t.image.data,s=t.colors,o=0;o>>0],u=_+4*l;a[u]=s[c],a[u+1]=s[c+1],a[u+2]=s[c+2]}i+=3*r}else{a=t.image.data;var d=t.buffer;assert(d%4==0,"Invalid buffer offset: "+d);var p,m=d>>>2,f=0,h=e==SDL.screen;if(typeof CanvasPixelArray<"u"&&a instanceof CanvasPixelArray)for(p=a.length;f>>0],a[f]=255&c,a[f+1]=c>>8&255,a[f+2]=c>>16&255,a[f+3]=h?255:c>>24&255,m++,f+=4;else{var g=new Uint32Array(a.buffer);if(h&&SDL.defaults.opaqueFrontBuffer){p=g.length,g.set(GROWABLE_HEAP_I32().subarray(m>>>0,m+p>>>0));var v=new Uint8Array(a.buffer),E=3,y=E+4*p;if(p%8==0)for(;E>>0,m+g.length>>>0))}}t.ctx.putImageData(t.image,0,0)}}function _SDL_Flip(e){}function _SDL_UpdateRect(e,t,r,n,i){}function _SDL_UpdateRects(e,t,r){}_SDL_Quit.sig="v",_SDL_UnlockSurface.sig="vp",_SDL_Flip.sig="ip",_SDL_UpdateRect.sig="vpiiii",_SDL_UpdateRects.sig="vpip";var _SDL_Delay=e=>{ENVIRONMENT_IS_WORKER||abort("SDL_Delay called on the main thread! Potential infinite loop, quitting. (consider building with async support like ASYNCIFY)");for(var t=Date.now();Date.now()-t>>=0,(e>>>=0)&&_emscripten_set_window_title(e),t&&(t=UTF8ToString(t))}_SDL_Delay.sig="vi",_SDL_WM_SetCaption.sig="vpp";var _SDL_EnableKeyRepeat=(e,t)=>{};function _SDL_GetKeyboardState(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(311,0,1,e):((e>>>=0)&&(GROWABLE_HEAP_I32()[e>>>2>>>0]=65536),SDL.keyboardState)}_SDL_EnableKeyRepeat.sig="iii",_SDL_GetKeyboardState.sig="pp";var _SDL_GetKeyState=()=>_SDL_GetKeyboardState(0);function _SDL_GetKeyName(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(312,0,1,e):(SDL.keyName||(SDL.keyName=stringToNewUTF8("unknown key")),SDL.keyName)}function _SDL_GetModState(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(313,0,1):SDL.modState}function _SDL_GetMouseState(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(314,0,1,e,t):(t>>>=0,(e>>>=0)&&(GROWABLE_HEAP_I32()[e>>>2>>>0]=Browser.mouseX),t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=Browser.mouseY),SDL.buttonState)}function _SDL_WarpMouse(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(315,0,1,e,t)}function _SDL_ShowCursor(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(316,0,1,e);switch(e){case 0:return Browser.isFullscreen?(Module.canvas.requestPointerLock(),0):1;case 1:return Module.canvas.exitPointerLock(),1;case-1:return!Browser.pointerLock;default:err("SDL_ShowCursor called with unknown toggle parameter value: ".concat(e))}}function _SDL_GetError(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(317,0,1):(SDL.errorMessage||(SDL.errorMessage=stringToNewUTF8("unknown SDL-emscripten error")),SDL.errorMessage)}function _SDL_SetError(e,t){}function _SDL_CreateRGBSurface(e,t,r,n,i,a,s,o){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(318,0,1,e,t,r,n,i,a,s,o):SDL.makeSurface(t,r,e,!1,"CreateRGBSurface",i,a,s,o)}function _SDL_CreateRGBSurfaceFrom(e,t,r,n,i,a,s,o,_){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(319,0,1,e,t,r,n,i,a,s,o,_);e>>>=0;var l=SDL.makeSurface(t,r,0,!1,"CreateRGBSurfaceFrom",a,s,o,_);if(32!==n)return err("TODO: Partially unimplemented SDL_CreateRGBSurfaceFrom called!"),l;for(var c=SDL.surfaces[l],u=c.ctx.createImageData(t,r),d=4*t,p=0;p>>0];return c.ctx.putImageData(u,0,0),l}function _SDL_ConvertSurface(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(320,0,1,e,t,r);e>>>=0,(t>>>=0)&&SDL.checkPixelFormat(t);var n=SDL.surfaces[e],i=SDL.makeSurface(n.width,n.height,n.flags,!1,"copy:"+n.source),a=SDL.surfaces[i];return a.ctx.globalCompositeOperation="copy",a.ctx.drawImage(n.canvas,0,0),a.ctx.globalCompositeOperation=n.ctx.globalCompositeOperation,i}function _SDL_DisplayFormatAlpha(e){return _SDL_ConvertSurface(e>>>=0,0,0)}function _SDL_FreeSurface(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(321,0,1,e);(e>>>=0)&&SDL.freeSurface(e)}function _SDL_UpperBlit(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(322,0,1,e,t,r,n):(e>>>=0,t>>>=0,r>>>=0,n>>>=0,SDL.blitSurface(e,t,r,n,!1))}function _SDL_UpperBlitScaled(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(323,0,1,e,t,r,n):(e>>>=0,t>>>=0,r>>>=0,n>>>=0,SDL.blitSurface(e,t,r,n,!0))}_SDL_GetKeyName.sig="pi",_SDL_GetModState.sig="i",_SDL_GetMouseState.sig="ipp",_SDL_WarpMouse.sig="vii",_SDL_ShowCursor.sig="ii",_SDL_GetError.sig="p",_SDL_SetError.sig="vpp",_SDL_CreateRGBSurface.sig="piiiiiiii",_SDL_CreateRGBSurfaceFrom.sig="ppiiiiiiii",_SDL_ConvertSurface.sig="pppi",_SDL_DisplayFormatAlpha.sig="pp",_SDL_FreeSurface.sig="vp",_SDL_UpperBlit.sig="ipppp",_SDL_UpperBlitScaled.sig="ipppp";var _SDL_LowerBlit=_SDL_UpperBlit;_SDL_LowerBlit.sig="ipppp";var _SDL_LowerBlitScaled=_SDL_UpperBlitScaled;function _SDL_GetClipRect(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(324,0,1,e,t);e>>>=0,assert(t>>>=0);var r=SDL.surfaces[e],n=r.clipRect||{x:0,y:0,w:r.width,h:r.height};SDL.updateRect(t,n)}function _SDL_SetClipRect(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(325,0,1,e,t);e>>>=0,t>>>=0;var r=SDL.surfaces[e];t?r.clipRect=SDL.intersectionOfRects({x:0,y:0,w:r.width,h:r.height},SDL.loadRect(t)):delete r.clipRect}function _SDL_FillRect(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(326,0,1,e,t,r);e>>>=0,t>>>=0;var n=SDL.surfaces[e];assert(!n.locked),n.isFlagSet(2097152)&&(r=n.colors32[r]);var i=t?SDL.loadRect(t):{x:0,y:0,w:n.width,h:n.height};return n.clipRect&&(i=SDL.intersectionOfRects(n.clipRect,i),t&&SDL.updateRect(t,i)),n.ctx.save(),n.ctx.fillStyle=SDL.translateColorToCSSRGBA(r),n.ctx.fillRect(i.x,i.y,i.w,i.h),n.ctx.restore(),0}function _zoomSurface(e,t,r,n){e>>>=0;var i=SDL.surfaces[e],a=i.width*t,s=i.height*r,o=SDL.makeSurface(Math.abs(a),Math.abs(s),i.flags,!1,"zoomSurface"),_=SDL.surfaces[o];return t>=0&&r>=0?_.ctx.drawImage(i.canvas,0,0,a,s):(_.ctx.save(),_.ctx.scale(t<0?-1:1,r<0?-1:1),_.ctx.drawImage(i.canvas,a<0?a:0,s<0?s:0,Math.abs(a),Math.abs(s)),_.ctx.restore()),o}function _rotozoomSurface(e,t,r,n){if(e>>>=0,t%360==0)return _zoomSurface(e,r,r,n);var i=SDL.surfaces[e],a=i.width*r,s=i.height*r,o=Math.ceil(Math.sqrt(Math.pow(a,2)+Math.pow(s,2))),_=SDL.makeSurface(o,o,i.flags,!1,"rotozoomSurface"),l=SDL.surfaces[_];return l.ctx.translate(o/2,o/2),l.ctx.rotate(-t*Math.PI/180),l.ctx.drawImage(i.canvas,-a/2,-s/2,a,s),_}function _SDL_SetAlpha(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(327,0,1,e,t,r);e>>>=0;var n=SDL.surfaces[e];n.alpha=r,65536&t||(n.alpha=255)}function _SDL_SetColorKey(e,t,r){return warnOnce("SDL_SetColorKey is a no-op for performance reasons"),0}function _SDL_PollEvent(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(328,0,1,e):(e>>>=0,SDL.pollEvent(e))}function _SDL_PushEvent(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(329,0,1,e);e>>>=0;var t=_malloc(28);return _memcpy(t,e,28),SDL.events.push(t),0}function _SDL_PeepEvents(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(330,0,1,e,t,r,n,i);if(2===(e>>>=0,r)){assert(1==t);for(var a=0,s=0;a>>=0,t>>>=0,SDL.eventHandler=e,SDL.eventHandlerContext=t,SDL.eventHandlerTemp||(SDL.eventHandlerTemp=_malloc(28))}function _SDL_SetColors(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(333,0,1,e,t,r,n);e>>>=0,t>>>=0;var i=SDL.surfaces[e];if(!i.colors){var a=new ArrayBuffer(1024);i.colors=new Uint8Array(a),i.colors32=new Uint32Array(a)}for(var s=0;s>>0],i.colors[o+1]=GROWABLE_HEAP_U8()[t+(4*s+1)>>>0],i.colors[o+2]=GROWABLE_HEAP_U8()[t+(4*s+2)>>>0],i.colors[o+3]=255}return 1}function _SDL_SetPalette(e,t,r,n,i){return _SDL_SetColors(e>>>=0,r>>>=0,n,i)}function _SDL_MapRGB(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(334,0,1,e,t,r,n):(e>>>=0,SDL.checkPixelFormat(e),255&t|(255&r)<<8|(255&n)<<16|4278190080)}function _SDL_MapRGBA(e,t,r,n,i){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(335,0,1,e,t,r,n,i):(e>>>=0,SDL.checkPixelFormat(e),255&t|(255&r)<<8|(255&n)<<16|(255&i)<<24)}function _SDL_GetRGB(e,t,r,n,i){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(336,0,1,e,t,r,n,i);t>>>=0,r>>>=0,n>>>=0,i>>>=0,SDL.checkPixelFormat(t),r&&(GROWABLE_HEAP_I8()[r>>>0]=255&e),n&&(GROWABLE_HEAP_I8()[n>>>0]=e>>8&255),i&&(GROWABLE_HEAP_I8()[i>>>0]=e>>16&255)}function _SDL_GetRGBA(e,t,r,n,i,a){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(337,0,1,e,t,r,n,i,a);t>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,SDL.checkPixelFormat(t),r&&(GROWABLE_HEAP_I8()[r>>>0]=255&e),n&&(GROWABLE_HEAP_I8()[n>>>0]=e>>8&255),i&&(GROWABLE_HEAP_I8()[i>>>0]=e>>16&255),a&&(GROWABLE_HEAP_I8()[a>>>0]=e>>24&255)}function _SDL_GetAppState(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(338,0,1);var e=0;return Browser.pointerLock&&(e|=1),document.hasFocus()&&(e|=2),4|e}_SDL_LowerBlitScaled.sig="ipppp",_SDL_GetClipRect.sig="vpp",_SDL_SetClipRect.sig="ipp",_SDL_FillRect.sig="ippi",_zoomSurface.sig="ppddi",_rotozoomSurface.sig="ppddi",_SDL_SetAlpha.sig="ipii",_SDL_SetColorKey.sig="ipii",_SDL_PollEvent.sig="ip",_SDL_PushEvent.sig="ip",_SDL_PeepEvents.sig="ipiiii",_SDL_PumpEvents.sig="v",_emscripten_SDL_SetEventHandler.sig="vpp",_SDL_SetColors.sig="ippii",_SDL_SetPalette.sig="ipipii",_SDL_MapRGB.sig="ipiii",_SDL_MapRGBA.sig="ipiiii",_SDL_GetRGB.sig="vipppp",_SDL_GetRGBA.sig="vippppp",_SDL_GetAppState.sig="i";var _SDL_WM_GrabInput=()=>{};function _SDL_WM_ToggleFullScreen(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(339,0,1,e):(e>>>=0,Browser.exitFullscreen()?1:SDL.canRequestFullscreen?(SDL.isRequestingFullscreen=!0,1):0)}_SDL_WM_GrabInput.sig="ii",_SDL_WM_ToggleFullScreen.sig="ip";var _IMG_Init=e=>e;function _SDL_FreeRW(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(341,0,1,e);for(e>>>=0,SDL.rwops[e]=null;SDL.rwops.length>0&&null===SDL.rwops[SDL.rwops.length-1];)SDL.rwops.pop()}_IMG_Init.sig="ii",_SDL_FreeRW.sig="vp";var _IMG_Load_RW=function(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(340,0,1,e,t);e>>>=0;try{var r=()=>{n&&t&&_SDL_FreeRW(e)},n=SDL.rwops[e];if(void 0===n)return 0;var i,a=n.filename;if(void 0===a)return warnOnce("Only file names that have been preloaded are supported for IMG_Load_RW. Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins"),0;if(!i){if(a=PATH_FS.resolve(a),!(i=preloadedImages[a]))return null===i&&err("Trying to reuse preloaded image, but freePreloadedMediaOnUse is set!"),warnOnce("Cannot find preloaded image "+a),warnOnce("Cannot find preloaded image "+a+". Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins"),0;Module.freePreloadedMediaOnUse&&(preloadedImages[a]=null)}var s=SDL.makeSurface(i.width,i.height,0,!1,"load:"+a),o=SDL.surfaces[s];if(o.ctx.globalCompositeOperation="copy",i.rawData){var _=o.ctx.getImageData(0,0,o.width,o.height);if(4==i.bpp)_.data.set(GROWABLE_HEAP_U8().subarray(i.data>>>0,i.data+i.size>>>0));else if(3==i.bpp)for(var l=i.size/3,c=_.data,u=i.data,d=0,p=0;p>>0],c[d++]=GROWABLE_HEAP_U8()[u++>>>0],c[d++]=GROWABLE_HEAP_U8()[u++>>>0],c[d++]=255;else if(2==i.bpp)for(l=i.size,c=_.data,u=i.data,d=0,p=0;p>>0],f=GROWABLE_HEAP_U8()[u++>>>0];c[d++]=m,c[d++]=m,c[d++]=m,c[d++]=f}else{if(1!=i.bpp)return err("cannot handle bpp ".concat(i.bpp)),0;for(l=i.size,c=_.data,u=i.data,d=0,p=0;p>>0];c[d++]=h,c[d++]=h,c[d++]=h,c[d++]=255}}o.ctx.putImageData(_,0,0)}else o.ctx.drawImage(i,0,0,i.width,i.height,0,0,i.width,i.height);return o.ctx.globalCompositeOperation="source-over",_SDL_LockSurface(s),o.locked--,SDL.GL&&(o.canvas=o.ctx=null),s}finally{r()}};_IMG_Load_RW.sig="ppi";var _SDL_LoadBMP_RW=_IMG_Load_RW;function _SDL_RWFromFile(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(343,0,1,e,t);e>>>=0,t>>>=0;var r=SDL.rwops.length,n=UTF8ToString(e);return SDL.rwops.push({filename:n,mimetype:Browser.getMimetype(n)}),r}function _IMG_Load(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(342,0,1,e);var t=_SDL_RWFromFile(e>>>=0,0);return _IMG_Load_RW(t,1)}_SDL_LoadBMP_RW.sig="ppi",_SDL_RWFromFile.sig="ppp",_IMG_Load.sig="pp";var _IMG_Quit=()=>out("IMG_Quit called (and ignored)");function _SDL_OpenAudio(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(344,0,1,e,t);e>>>=0,t>>>=0;try{if(SDL.audio={freq:GROWABLE_HEAP_U32()[e>>>2>>>0],format:GROWABLE_HEAP_U16()[e+4>>>1>>>0],channels:GROWABLE_HEAP_U8()[e+6>>>0],samples:GROWABLE_HEAP_U16()[e+8>>>1>>>0],callback:GROWABLE_HEAP_U32()[e+16>>>2>>>0],userdata:GROWABLE_HEAP_U32()[e+20>>>2>>>0],paused:!0,timer:null},8==SDL.audio.format)SDL.audio.silence=128;else if(32784==SDL.audio.format)SDL.audio.silence=0;else{if(33056!=SDL.audio.format)throw"Invalid SDL audio format "+SDL.audio.format+"!";SDL.audio.silence=0}if(SDL.audio.freq<=0)throw"Unsupported sound frequency "+SDL.audio.freq+"!";if(SDL.audio.freq<=22050)SDL.audio.freq=22050;else if(SDL.audio.freq<=32e3)SDL.audio.freq=32e3;else if(SDL.audio.freq<=44100)SDL.audio.freq=44100;else if(SDL.audio.freq<=48e3)SDL.audio.freq=48e3;else{if(!(SDL.audio.freq<=96e3))throw"Unsupported sound frequency ".concat(SDL.audio.freq,"!");SDL.audio.freq=96e3}if(0==SDL.audio.channels)SDL.audio.channels=1;else{if(SDL.audio.channels<0||SDL.audio.channels>32)throw"Unsupported number of audio channels for SDL audio: ".concat(SDL.audio.channels,"!");1!=SDL.audio.channels&&2!=SDL.audio.channels&&out("Warning: Using untested number of audio channels ".concat(SDL.audio.channels))}if(SDL.audio.samples<128||SDL.audio.samples>524288)throw"Unsupported audio callback buffer size ".concat(SDL.audio.samples,"!");if(SDL.audio.samples&SDL.audio.samples-1)throw"Audio callback buffer size ".concat(SDL.audio.samples," must be a power-of-two!");var r=SDL.audio.samples*SDL.audio.channels;if(8==SDL.audio.format)SDL.audio.bytesPerSample=1;else if(32784==SDL.audio.format)SDL.audio.bytesPerSample=2;else{if(33056!=SDL.audio.format)throw"Invalid SDL audio format ".concat(SDL.audio.format,"!");SDL.audio.bytesPerSample=4}if(SDL.audio.bufferSize=r*SDL.audio.bytesPerSample,SDL.audio.bufferDurationSecs=SDL.audio.bufferSize/SDL.audio.bytesPerSample/SDL.audio.channels/SDL.audio.freq,SDL.audio.bufferingDelay=.05,SDL.audio.buffer=_malloc(SDL.audio.bufferSize),SDL.audio.numSimultaneouslyQueuedBuffers=Module.SDL_numSimultaneouslyQueuedBuffers||5,SDL.audio.queueNewAudioData=()=>{if(SDL.audio)for(var e=0;e=SDL.audio.bufferingDelay+SDL.audio.bufferDurationSecs*SDL.audio.numSimultaneouslyQueuedBuffers)return;getWasmTableEntry(SDL.audio.callback)(SDL.audio.userdata,SDL.audio.buffer,SDL.audio.bufferSize),SDL.audio.pushAudio(SDL.audio.buffer,SDL.audio.bufferSize)}},SDL.audio.caller=()=>{if(SDL.audio){--SDL.audio.numAudioTimersPending,SDL.audio.queueNewAudioData();var e=SDL.audio.nextPlayTime-SDL.audioContext.currentTime,t=SDL.audio.bufferDurationSecs/2;SDL.audio.numAudioTimersPending{try{if(SDL.audio.paused)return;var r=t/SDL.audio.bytesPerSample/SDL.audio.channels;if(r!=SDL.audio.samples)throw"Received mismatching audio buffer size!";var n=SDL.audioContext.createBufferSource(),i=SDL.audioContext.createBuffer(SDL.audio.channels,r,SDL.audio.freq);n.connect(SDL.audioContext.destination),SDL.fillWebAudioBufferFromHeap(e,r,i),n.buffer=i;var a=SDL.audioContext.currentTime,s=Math.max(a+SDL.audio.bufferingDelay,SDL.audio.nextPlayTime);typeof n.start<"u"?n.start(s):typeof n.noteOn<"u"&&n.noteOn(s),SDL.audio.nextPlayTime=s+SDL.audio.bufferDurationSecs}catch(e){err("Web Audio API error playing back audio: ".concat(e.toString()))}},t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.audio.freq,GROWABLE_HEAP_I16()[t+4>>>1>>>0]=SDL.audio.format,GROWABLE_HEAP_I8()[t+6>>>0]=SDL.audio.channels,GROWABLE_HEAP_I8()[t+7>>>0]=SDL.audio.silence,GROWABLE_HEAP_I16()[t+8>>>1>>>0]=SDL.audio.samples,GROWABLE_HEAP_U32()[t+16>>>2>>>0]=SDL.audio.callback,GROWABLE_HEAP_U32()[t+20>>>2>>>0]=SDL.audio.userdata),SDL.allocateChannels(32)}catch(e){err('Initializing SDL audio threw an exception: "'.concat(e.toString(),'"! Continuing without audio')),SDL.audio=null,SDL.allocateChannels(0),t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=0,GROWABLE_HEAP_I16()[t+4>>>1>>>0]=0,GROWABLE_HEAP_I8()[t+6>>>0]=0,GROWABLE_HEAP_I8()[t+7>>>0]=0,GROWABLE_HEAP_I16()[t+8>>>1>>>0]=0,GROWABLE_HEAP_U32()[t+16>>>2>>>0]=0,GROWABLE_HEAP_U32()[t+20>>>2>>>0]=0)}return SDL.audio?0:-1}function _SDL_PauseAudio(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(345,0,1,e);SDL.audio&&(e?void 0!==SDL.audio.timer&&(clearTimeout(SDL.audio.timer),SDL.audio.numAudioTimersPending=0,SDL.audio.timer=void 0):SDL.audio.timer||(SDL.audio.numAudioTimersPending=1,SDL.audio.timer=safeSetTimeout(SDL.audio.caller,1)),SDL.audio.paused=e)}function _SDL_CloseAudio(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(346,0,1);SDL.audio&&(SDL.audio.callbackRemover&&(SDL.audio.callbackRemover(),SDL.audio.callbackRemover=null),_SDL_PauseAudio(1),_free(SDL.audio.buffer),SDL.audio=null,SDL.allocateChannels(0))}_IMG_Quit.sig="v",_SDL_OpenAudio.sig="ipp",_SDL_PauseAudio.sig="vi",_SDL_CloseAudio.sig="v";var _SDL_LockAudio=()=>{};_SDL_LockAudio.sig="v";var _SDL_UnlockAudio=()=>{};function _SDL_CreateMutex(){return 0}function _SDL_mutexP(e){return 0}function _SDL_mutexV(e){return 0}function _SDL_DestroyMutex(e){}function _SDL_CreateCond(){return 0}function _SDL_CondSignal(e){}function _SDL_CondWait(e,t){}function _SDL_DestroyCond(e){}function _SDL_StartTextInput(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(347,0,1);SDL.textInput=!0}function _SDL_StopTextInput(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(348,0,1);SDL.textInput=!1}_SDL_UnlockAudio.sig="v",_SDL_CreateMutex.sig="p",_SDL_mutexP.sig="ip",_SDL_mutexV.sig="ip",_SDL_DestroyMutex.sig="vp",_SDL_CreateCond.sig="p",_SDL_CondSignal.sig="ip",_SDL_CondWait.sig="ipp",_SDL_DestroyCond.sig="vp",_SDL_StartTextInput.sig="v",_SDL_StopTextInput.sig="v";var _Mix_Init=e=>e?8:0;_Mix_Init.sig="ii";var _Mix_Quit=()=>{};function _Mix_OpenAudio(e,t,r,n){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(349,0,1,e,t,r,n):(SDL.openAudioContext(),autoResumeAudioContext(SDL.audioContext),SDL.allocateChannels(32),SDL.mixerFrequency=e,SDL.mixerFormat=t,SDL.mixerNumChannels=r,SDL.mixerChunkSize=n,0)}_Mix_Quit.sig="v",_Mix_OpenAudio.sig="iiiii";var _Mix_CloseAudio=_SDL_CloseAudio;function _Mix_AllocateChannels(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(350,0,1,e):(SDL.allocateChannels(e),e)}function _Mix_ChannelFinished(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(351,0,1,e);e>>>=0,SDL.channelFinished=e}function _Mix_Volume(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(352,0,1,e,t);if(-1==e){for(var r=0;r>>=0;var r=SDL.rwops[e];if(void 0===r)return 0;var n,i,a,s="";if(void 0!==r.filename){s=PATH_FS.resolve(r.filename);var o=preloadedAudios[s];if(!o){null===o&&err("Trying to reuse preloaded audio, but freePreloadedMediaOnUse is set!"),Module.noAudioDecoding||warnOnce("Cannot find preloaded audio "+s);try{a=FS.readFile(s)}catch(e){return err("Couldn't find file for: ".concat(s)),0}}Module.freePreloadedMediaOnUse&&(preloadedAudios[s]=null),n=o}else{if(void 0===r.bytes)return 0;a=SDL.webAudioAvailable()?GROWABLE_HEAP_U8().buffer.slice(r.bytes,r.bytes+r.count):GROWABLE_HEAP_U8().subarray(r.bytes>>>0,r.bytes+r.count>>>0)}var _=a&&(a.buffer||a),l=void 0===Module.SDL_canPlayWithWebAudio||Module.SDL_canPlayWithWebAudio(s,_);if(void 0!==a&&SDL.webAudioAvailable()&&l)n=void 0,(i={}).onDecodeComplete=[],SDL.audioContext.decodeAudioData(_,(e=>{i.decodedBuffer=e,i.onDecodeComplete.forEach((e=>e())),i.onDecodeComplete=void 0}));else if(void 0===n&&a){var c=new Blob([a],{type:r.mimetype}),u=URL.createObjectURL(c);(n=new Audio).src=u,n.mozAudioChannelType="content"}var d=SDL.audios.length;return SDL.audios.push({source:s,audio:n,webAudio:i}),d}function _Mix_LoadWAV(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(355,0,1,e);var t=_SDL_RWFromFile(e>>>=0,0),r=_Mix_LoadWAV_RW(t,0);return _SDL_FreeRW(t),r}function _Mix_QuickLoad_RAW(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(356,0,1,e,t);e>>>=0;for(var r,n,i=t>>1,a=new Float32Array(i),s=0;s>>1>>>0]/32768;SDL.webAudioAvailable()?(n={}).decodedBuffer=a:((r=new Audio).mozAudioChannelType="content",r.numChannels=SDL.mixerNumChannels,r.frequency=SDL.mixerFrequency);var o=SDL.audios.length;return SDL.audios.push({source:"",audio:r,webAudio:n,buffer:a}),o}function _Mix_FreeChunk(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(357,0,1,e);e>>>=0,SDL.audios[e]=null}function _Mix_ReserveChannels(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(358,0,1,e);SDL.channelMinimumNumber=e}function _Mix_PlayChannelTimed(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(359,0,1,e,t,r,n);t>>>=0,assert(-1==n);var i=SDL.audios[t];if(!i||!i.audio&&!i.webAudio)return-1;if(-1==e){for(var a=SDL.channelMinimumNumber;a0;function _Mix_HaltChannel(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(360,0,1,e);function t(e){var t=SDL.channels[e];t.audio&&(t.audio.pause(),t.audio=null),SDL.channelFinished&&getWasmTableEntry(SDL.channelFinished)(e)}if(-1!=e)t(e);else for(var r=0;r>>=0,SDL.hookMusicFinished=e,SDL.music.audio&&(SDL.music.audio.onended=_Mix_HaltMusic)}function _Mix_VolumeMusic(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(363,0,1,e):SDL.setGetVolume(SDL.music,e)}_Mix_FadingChannel.sig="ii",_Mix_HaltChannel.sig="ii",_Mix_HaltMusic.sig="i",_Mix_HookMusicFinished.sig="vp",_Mix_VolumeMusic.sig="ii";var _Mix_LoadMUS_RW=_Mix_LoadWAV_RW;function _Mix_LoadMUS(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(364,0,1,e);var t=_SDL_RWFromFile(e>>>=0,0),r=_Mix_LoadMUS_RW(t,0);return _SDL_FreeRW(t),r}_Mix_LoadMUS_RW.sig="pp",_Mix_LoadMUS.sig="pp";var _Mix_FreeMusic=_Mix_FreeChunk;function _Mix_PlayMusic(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(365,0,1,e,t);e>>>=0,SDL.music.audio&&(SDL.music.audio.paused||err("Music is already playing. ".concat(SDL.music.source)),SDL.music.audio.pause());var r,n=SDL.audios[e];return n.webAudio?((r={}).resource=n,r.paused=!1,r.currentPosition=0,r.play=function(){SDL.playWebAudio(this)},r.pause=function(){SDL.pauseWebAudio(this)}):n.audio&&(r=n.audio),r.onended=function(){SDL.music.audio==this&&_Mix_HaltMusic()},r.loop=0!=t&&1!=t,r.volume=SDL.music.volume,SDL.music.audio=r,r.play(),0}function _Mix_PauseMusic(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(366,0,1);var e=SDL.music.audio;null==e||e.pause()}function _Mix_ResumeMusic(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(367,0,1);var e=SDL.music.audio;null==e||e.play()}_Mix_FreeMusic.sig="vp",_Mix_PlayMusic.sig="ipi",_Mix_PauseMusic.sig="v",_Mix_ResumeMusic.sig="v";var _Mix_FadeInMusicPos=_Mix_PlayMusic;_Mix_FadeInMusicPos.sig="ipiid";var _Mix_FadeOutMusic=_Mix_HaltMusic;function _Mix_PlayingMusic(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(368,0,1):SDL.music.audio&&!SDL.music.audio.paused?1:0}function _Mix_Playing(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(369,0,1,e);if(-1===e){for(var t=0,r=0;r>>=0,e=PATH.normalize(UTF8ToString(e));var r=SDL.fonts.length;return SDL.fonts.push({name:e,size:t}),r}function _TTF_CloseFont(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(376,0,1,e);e>>>=0,SDL.fonts[e]=null}function _TTF_RenderText_Solid(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(377,0,1,e,t,r);e>>>=0,r>>>=0,t=UTF8ToString(t>>>=0)||" ";var n=SDL.fonts[e],i=SDL.estimateTextWidth(n,t),a=n.size;r=SDL.loadColorToCSSRGB(r);var s=SDL.makeFontString(a,n.name),o=SDL.makeSurface(i,a,0,!1,"text:"+t),_=SDL.surfaces[o];return _.ctx.save(),_.ctx.fillStyle=r,_.ctx.font=s,_.ctx.textBaseline="bottom",_.ctx.fillText(t,0,0|a),_.ctx.restore(),o}_Mix_FadeOutMusic.sig="ii",_Mix_PlayingMusic.sig="i",_Mix_Playing.sig="ii",_Mix_Pause.sig="vi",_Mix_Paused.sig="ii",_Mix_PausedMusic.sig="i",_Mix_Resume.sig="vi",_TTF_Init.sig="i",_TTF_OpenFont.sig="ppi",_TTF_CloseFont.sig="vp",_TTF_RenderText_Solid.sig="pppp";var _TTF_RenderText_Blended=_TTF_RenderText_Solid;_TTF_RenderText_Blended.sig="pppp";var _TTF_RenderText_Shaded=_TTF_RenderText_Solid;_TTF_RenderText_Shaded.sig="ppppp";var _TTF_RenderUTF8_Solid=_TTF_RenderText_Solid;function _TTF_SizeText(e,t,r,n){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(378,0,1,e,t,r,n);e>>>=0,t>>>=0,r>>>=0,n>>>=0;var i=SDL.fonts[e];return r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=SDL.estimateTextWidth(i,UTF8ToString(t))),n&&(GROWABLE_HEAP_I32()[n>>>2>>>0]=i.size),0}_TTF_RenderUTF8_Solid.sig="pppp",_TTF_SizeText.sig="ipppp";var _TTF_SizeUTF8=_TTF_SizeText;function _TTF_GlyphMetrics(e,t,r,n,i,a,s){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(379,0,1,e,t,r,n,i,a,s);e>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,s>>>=0;var o=SDL.fonts[e],_=SDL.estimateTextWidth(o,String.fromCharCode(t));s&&(GROWABLE_HEAP_I32()[s>>>2>>>0]=_),r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=0),n&&(GROWABLE_HEAP_I32()[n>>>2>>>0]=_),i&&(GROWABLE_HEAP_I32()[i>>>2>>>0]=0),a&&(GROWABLE_HEAP_I32()[a>>>2>>>0]=o.size)}function _TTF_FontAscent(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(380,0,1,e):(e>>>=0,.98*SDL.fonts[e].size|0)}function _TTF_FontDescent(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(381,0,1,e):(e>>>=0,.02*SDL.fonts[e].size|0)}function _TTF_FontHeight(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(382,0,1,e):(e>>>=0,SDL.fonts[e].size)}_TTF_SizeUTF8.sig="ipppp",_TTF_GlyphMetrics.sig="ipippppp",_TTF_FontAscent.sig="ip",_TTF_FontDescent.sig="ip",_TTF_FontHeight.sig="ip";var _TTF_FontLineSkip=_TTF_FontHeight;_TTF_FontLineSkip.sig="ip";var _TTF_Quit=()=>out("TTF_Quit called (and ignored)");_TTF_Quit.sig="v";var SDL_gfx={drawRectangle:(e,t,r,n,i,a,s)=>{t=t<<16>>16,r=r<<16>>16,n=n<<16>>16,i=i<<16>>16;var o=SDL.surfaces[e];assert(!o.locked);var _=t{t=t<<16>>16,r=r<<16>>16,n=n<<16>>16,i=i<<16>>16;var s=SDL.surfaces[e];assert(!s.locked),s.ctx.save(),s.ctx.strokeStyle=a,s.ctx.beginPath(),s.ctx.moveTo(t,r),s.ctx.lineTo(n,i),s.ctx.stroke(),s.ctx.restore()},drawEllipse:(e,t,r,n,i,a,s)=>{t=t<<16>>16,r=r<<16>>16,n=n<<16>>16,i=i<<16>>16;var o=SDL.surfaces[e];assert(!o.locked),o.ctx.save(),o.ctx.beginPath(),o.ctx.translate(t,r),o.ctx.scale(n,i),o.ctx.arc(0,0,1,0,2*Math.PI),o.ctx.restore(),o.ctx.save(),o.ctx[a+"Style"]=s,o.ctx[a](),o.ctx.restore()},translateColorToCSSRGBA:e=>"rgba(".concat(e>>>24,",").concat(e>>16&255,",").concat(e>>8&255,",").concat(255&e,")")};function _boxColor(e,t,r,n,i,a){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,n,i,"fill",SDL_gfx.translateColorToCSSRGBA(a))}function _boxRGBA(e,t,r,n,i,a,s,o,_){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,n,i,"fill",SDL.translateRGBAToCSSRGBA(a,s,o,_))}function _rectangleColor(e,t,r,n,i,a){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,n,i,"stroke",SDL_gfx.translateColorToCSSRGBA(a))}function _rectangleRGBA(e,t,r,n,i,a,s,o,_){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,n,i,"stroke",SDL.translateRGBAToCSSRGBA(a,s,o,_))}function _ellipseColor(e,t,r,n,i,a){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,n,i,"stroke",SDL_gfx.translateColorToCSSRGBA(a))}function _ellipseRGBA(e,t,r,n,i,a,s,o,_){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,n,i,"stroke",SDL.translateRGBAToCSSRGBA(a,s,o,_))}function _filledEllipseColor(e,t,r,n,i,a){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,n,i,"fill",SDL_gfx.translateColorToCSSRGBA(a))}function _filledEllipseRGBA(e,t,r,n,i,a,s,o,_){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,n,i,"fill",SDL.translateRGBAToCSSRGBA(a,s,o,_))}function _lineColor(e,t,r,n,i,a){return e>>>=0,SDL_gfx.drawLine(e,t,r,n,i,SDL_gfx.translateColorToCSSRGBA(a))}function _lineRGBA(e,t,r,n,i,a,s,o,_){return e>>>=0,SDL_gfx.drawLine(e,t,r,n,i,SDL.translateRGBAToCSSRGBA(a,s,o,_))}function _pixelRGBA(e,t,r,n,i,a,s){return _boxRGBA(e>>>=0,t,r,t,r,n,i,a,s)}function _SDL_GL_SetAttribute(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(383,0,1,e,t);e in SDL.glAttributes||abort("Unknown SDL GL attribute ("+e+"). Please check if your SDL version is supported."),SDL.glAttributes[e]=t}function _SDL_GL_GetAttribute(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(384,0,1,e,t):(t>>>=0,e in SDL.glAttributes||abort("Unknown SDL GL attribute ("+e+"). Please check if your SDL version is supported."),t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=SDL.glAttributes[e]),0)}function _SDL_GL_SwapBuffers(){var e;if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(385,0,1);null==(e=Browser.doSwapBuffers)||e.call(Browser)}function _SDL_GL_ExtensionSupported(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(386,0,1,e):(e>>>=0,0|Module.ctx.getExtension(e))}function _SDL_DestroyWindow(e){}function _SDL_DestroyRenderer(e){}function _SDL_GetWindowFlags(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(387,0,1,e):(e>>>=0,Browser.isFullscreen?1:0)}function _SDL_GL_SwapWindow(e){}function _SDL_GL_MakeCurrent(e,t){}function _SDL_GL_DeleteContext(e){}function _SDL_GL_GetSwapInterval(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(388,0,1):1==Browser.mainLoop.timingMode?Browser.mainLoop.timingValue:0}_boxColor.sig="ipiiiii",_boxRGBA.sig="ipiiiiiiii",_rectangleColor.sig="ipiiiii",_rectangleRGBA.sig="ipiiiiiiii",_ellipseColor.sig="ipiiiii",_ellipseRGBA.sig="ipiiiiiiii",_filledEllipseColor.sig="ipiiiii",_filledEllipseRGBA.sig="ipiiiiiiii",_lineColor.sig="ipiiiii",_lineRGBA.sig="ipiiiiiiii",_pixelRGBA.sig="ipiiiiii",_SDL_GL_SetAttribute.sig="iii",_SDL_GL_GetAttribute.sig="iip",_SDL_GL_SwapBuffers.sig="v",_SDL_GL_ExtensionSupported.sig="ip",_SDL_DestroyWindow.sig="vp",_SDL_DestroyRenderer.sig="vp",_SDL_GetWindowFlags.sig="ip",_SDL_GL_SwapWindow.sig="vp",_SDL_GL_MakeCurrent.sig="ipp",_SDL_GL_DeleteContext.sig="vp",_SDL_GL_GetSwapInterval.sig="i";var _SDL_GL_SetSwapInterval=e=>{_emscripten_set_main_loop_timing(1,e)};function _SDL_SetWindowTitle(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(389,0,1,e,t);e>>>=0,(t>>>=0)&&(document.title=UTF8ToString(t))}function _SDL_GetWindowSize(e,t,r){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(390,0,1,e,t,r);e>>>=0,t>>>=0,r>>>=0;var n=Module.canvas.width,i=Module.canvas.height;t&&(GROWABLE_HEAP_I32()[t>>>2>>>0]=n),r&&(GROWABLE_HEAP_I32()[r>>>2>>>0]=i)}function _SDL_LogSetOutputFunction(e,t){}function _SDL_SetWindowFullscreen(e,t){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(391,0,1,e,t):(e>>>=0,Browser.isFullscreen?(Module.canvas.exitFullscreen(),1):0)}_SDL_GL_SetSwapInterval.sig="ii",_SDL_SetWindowTitle.sig="vpp",_SDL_GetWindowSize.sig="vppp",_SDL_LogSetOutputFunction.sig="vpp",_SDL_SetWindowFullscreen.sig="ipi";var _SDL_ClearError=()=>{};_SDL_ClearError.sig="v";var _SDL_SetGamma=(e,t,r)=>-1;function _SDL_SetGammaRamp(e,t,r){return-1}function _SDL_NumJoysticks(){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(392,0,1);for(var e=0,t=SDL.getGamepads(),r=0;r>>=0)-1}function _SDL_JoystickNumAxes(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(396,0,1,e);e>>>=0;var t=SDL.getGamepad(e-1);return t?t.axes.length:0}function _SDL_JoystickNumBalls(e){return 0}function _SDL_JoystickNumHats(e){return 0}function _SDL_JoystickNumButtons(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(397,0,1,e);e>>>=0;var t=SDL.getGamepad(e-1);return t?t.buttons.length:0}function _SDL_JoystickUpdate(){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(398,0,1):SDL.queryJoysticks()}function _SDL_JoystickEventState(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(399,0,1,e):e<0?SDL.joystickEventState:SDL.joystickEventState=e}function _SDL_JoystickGetAxis(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(400,0,1,e,t);e>>>=0;var r=SDL.getGamepad(e-1);return r&&r.axes.length>t?SDL.joystickAxisValueConversion(r.axes[t]):0}function _SDL_JoystickGetHat(e,t){return 0}function _SDL_JoystickGetBall(e,t,r,n){return-1}function _SDL_JoystickGetButton(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(401,0,1,e,t);e>>>=0;var r=SDL.getGamepad(e-1);return r&&r.buttons.length>t&&SDL.getJoystickButtonState(r.buttons[t])?1:0}function _SDL_JoystickClose(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(402,0,1,e);e>>>=0,delete SDL.lastJoystickState[e]}_SDL_SetGamma.sig="ifff",_SDL_SetGammaRamp.sig="ippp",_SDL_NumJoysticks.sig="i",_SDL_JoystickName.sig="pi",_SDL_JoystickOpen.sig="pi",_SDL_JoystickOpened.sig="ii",_SDL_JoystickIndex.sig="ip",_SDL_JoystickNumAxes.sig="ip",_SDL_JoystickNumBalls.sig="ip",_SDL_JoystickNumHats.sig="ip",_SDL_JoystickNumButtons.sig="ip",_SDL_JoystickUpdate.sig="v",_SDL_JoystickEventState.sig="ii",_SDL_JoystickGetAxis.sig="ipi",_SDL_JoystickGetHat.sig="ipi",_SDL_JoystickGetBall.sig="ipipp",_SDL_JoystickGetButton.sig="ipi",_SDL_JoystickClose.sig="vp";var _SDL_InitSubSystem=e=>0;function _SDL_RWFromConstMem(e,t){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(403,0,1,e,t);e>>>=0;var r=SDL.rwops.length;return SDL.rwops.push({bytes:e,count:t}),r}_SDL_InitSubSystem.sig="ii",_SDL_RWFromConstMem.sig="ppi";var _SDL_RWFromMem=_SDL_RWFromConstMem;_SDL_RWFromMem.sig="ppi";var _SDL_GetNumAudioDrivers=()=>1;function _SDL_GetCurrentAudioDriver(){return stringToNewUTF8("Emscripten Audio")}_SDL_GetNumAudioDrivers.sig="i",_SDL_GetCurrentAudioDriver.sig="p";var _SDL_GetScancodeFromKey=e=>SDL.scanCodes[e];function _SDL_GetAudioDriver(e){return _SDL_GetCurrentAudioDriver()}function _SDL_EnableUNICODE(e){if(ENVIRONMENT_IS_PTHREAD)return proxyToMainThread(404,0,1,e);var t=SDL.unicode||0;return SDL.unicode=e,t}_SDL_GetScancodeFromKey.sig="ii",_SDL_GetAudioDriver.sig="pi",_SDL_EnableUNICODE.sig="ii";var _SDL_AddTimer=function(e,t,r){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(405,0,1,e,t,r):(t>>>=0,r>>>=0,safeSetTimeout((()=>getWasmTableEntry(t)(e,r)),e))};function _SDL_RemoveTimer(e){return ENVIRONMENT_IS_PTHREAD?proxyToMainThread(406,0,1,e):(clearTimeout(e),!0)}function _SDL_CreateThread(e,t,r,n){throw"SDL threads cannot be supported in the web platform because they assume shared state. See emscripten_create_worker etc. for a message-passing concurrency model that does let you run code in another thread."}function _SDL_WaitThread(e,t){throw"SDL_WaitThread"}function _SDL_GetThreadID(e){throw"SDL_GetThreadID"}function _SDL_ThreadID(){return 0}function _SDL_AllocRW(){throw"SDL_AllocRW: TODO"}function _SDL_CondBroadcast(e){throw"SDL_CondBroadcast: TODO"}function _SDL_CondWaitTimeout(e,t,r){throw"SDL_CondWaitTimeout: TODO"}_SDL_AddTimer.sig="iipp",_SDL_RemoveTimer.sig="ii",_SDL_CreateThread.sig="ppp",_SDL_WaitThread.sig="vpp",_SDL_GetThreadID.sig="pp",_SDL_ThreadID.sig="p",_SDL_AllocRW.sig="p",_SDL_CondBroadcast.sig="ip",_SDL_CondWaitTimeout.sig="ippi";var _SDL_WM_IconifyWindow=()=>{throw"SDL_WM_IconifyWindow TODO"};function _Mix_SetPostMix(e,t){return warnOnce("Mix_SetPostMix: TODO")}function _Mix_VolumeChunk(e,t){throw"Mix_VolumeChunk: TODO"}_SDL_WM_IconifyWindow.sig="i",_Mix_SetPostMix.sig="vpp",_Mix_VolumeChunk.sig="ipi";var _Mix_SetPosition=(e,t,r)=>{throw"Mix_SetPosition: TODO"};function _Mix_QuerySpec(e,t,r){throw"Mix_QuerySpec: TODO"}function _Mix_FadeInChannelTimed(e,t,r,n,i){throw"Mix_FadeInChannelTimed"}_Mix_SetPosition.sig="iiii",_Mix_QuerySpec.sig="ippp",_Mix_FadeInChannelTimed.sig="iipiii";var _Mix_FadeOutChannel=()=>{throw"Mix_FadeOutChannel"};function _Mix_Linked_Version(){throw"Mix_Linked_Version: TODO"}function _SDL_SaveBMP_RW(e,t,r){throw"SDL_SaveBMP_RW: TODO"}function _SDL_WM_SetIcon(e,t){}_Mix_FadeOutChannel.sig="iii",_Mix_Linked_Version.sig="p",_SDL_SaveBMP_RW.sig="ippi",_SDL_WM_SetIcon.sig="vpp";var _SDL_HasRDTSC=()=>0;_SDL_HasRDTSC.sig="i";var _SDL_HasMMX=()=>0;_SDL_HasMMX.sig="i";var _SDL_HasMMXExt=()=>0;_SDL_HasMMXExt.sig="i";var _SDL_Has3DNow=()=>0;_SDL_Has3DNow.sig="i";var _SDL_Has3DNowExt=()=>0;_SDL_Has3DNowExt.sig="i";var _SDL_HasSSE=()=>0;_SDL_HasSSE.sig="i";var _SDL_HasSSE2=()=>0;_SDL_HasSSE2.sig="i";var _SDL_HasAltiVec=()=>0;_SDL_HasAltiVec.sig="i";var polyfillWaitAsync=()=>{},atomicWaitStates=["ok","not-equal","timed-out"],liveAtomicWaitAsyncs={},liveAtomicWaitAsyncCounter=0,_emscripten_atomic_wait_async=function(e,t,r,n,i){e>>>=0,r>>>=0,n>>>=0;let a=Atomics.waitAsync(GROWABLE_HEAP_I32(),e>>>2,t,i);if(!a.async)return atomicWaitStates.indexOf(a.value);let s=liveAtomicWaitAsyncCounter;return liveAtomicWaitAsyncCounter=Math.max(0,liveAtomicWaitAsyncCounter+1|0),liveAtomicWaitAsyncs[s]=e,runtimeKeepalivePush(),a.value.then((i=>{liveAtomicWaitAsyncs[s]&&(runtimeKeepalivePop(),delete liveAtomicWaitAsyncs[s],callUserCallback((()=>getWasmTableEntry(r)(e,t,atomicWaitStates.indexOf(i),n))))})),-s};_emscripten_atomic_wait_async.sig="ipippd";var _emscripten_atomic_cancel_wait_async=e=>{var t=liveAtomicWaitAsyncs[e];return t?(Atomics.notify(GROWABLE_HEAP_I32(),t>>>2),delete liveAtomicWaitAsyncs[e],runtimeKeepalivePop(),0):-5};_emscripten_atomic_cancel_wait_async.sig="ii";var _emscripten_atomic_cancel_all_wait_asyncs=()=>{let e=Object.values(liveAtomicWaitAsyncs);return e.forEach((e=>{Atomics.notify(GROWABLE_HEAP_I32(),e>>>2)})),liveAtomicWaitAsyncs={},e.length};_emscripten_atomic_cancel_all_wait_asyncs.sig="i";var _emscripten_atomic_cancel_all_wait_asyncs_at_address=function(e){e>>>=0;let t=0;return Object.keys(liveAtomicWaitAsyncs).forEach((r=>{liveAtomicWaitAsyncs[r]==e&&(Atomics.notify(GROWABLE_HEAP_I32(),e>>>2),delete liveAtomicWaitAsyncs[r],t++)})),t};_emscripten_atomic_cancel_all_wait_asyncs_at_address.sig="ip";var ALLOC_NORMAL=0,ALLOC_STACK=1,allocate=(e,t)=>{var r;return r=t==ALLOC_STACK?stackAlloc(e.length):_malloc(e.length),!e.subarray&&!e.slice&&(e=new Uint8Array(e)),GROWABLE_HEAP_U8().set(e,r>>>0),r},writeStringToMemory=(e,t,r)=>{var n,i;warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!"),r&&(i=t+lengthBytesUTF8(e),n=GROWABLE_HEAP_I8()[i>>>0]),stringToUTF8(e,t,1/0),r&&(GROWABLE_HEAP_I8()[i>>>0]=n)},writeAsciiToMemory=(e,t,r)=>{for(var n=0;n>>0]=e.charCodeAt(n);r||(GROWABLE_HEAP_I8()[t>>>0]=0)},allocateUTF8=stringToNewUTF8,allocateUTF8OnStack=stringToUTF8OnStack,setErrNo=e=>(GROWABLE_HEAP_I32()[___errno_location()>>>2>>>0]=e,e),demangle=e=>(demangle.recursionGuard=1+(0|demangle.recursionGuard),demangle.recursionGuard>1?e:withStackSave((()=>{try{var t=e;t.startsWith("__Z")&&(t=t.substr(1));var r=stringToUTF8OnStack(t),n=stackAlloc(4),i=___cxa_demangle(r,0,0,n);if(0===GROWABLE_HEAP_I32()[n>>>2>>>0]&&i)return UTF8ToString(i)}catch(e){}finally{_free(i),demangle.recursionGuard<2&&--demangle.recursionGuard}return e})));function stackTrace(){var e=jsStackTrace();return Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace()),e}var _emscripten_has_threading_support=()=>typeof SharedArrayBuffer<"u";_emscripten_has_threading_support.sig="i";var tupleRegistrations={},structRegistrations={},getTypeName=e=>{var t=___getTypeName(e),r=readLatin1String(t);return _free(t),r},getFunctionName=e=>{let t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},getFunctionArgsName=e=>{let t=(e=e.trim()).indexOf("(")+1;return 0!==t?e.substr(t,e.length-t-1).replaceAll(" ","").split(",").filter((e=>e.length)):[]},heap32VectorToArray=(e,t)=>{for(var r=[],n=0;n>>2>>>0]);return r},requireRegisteredType=(e,t)=>{var r=registeredTypes[e];return void 0===r&&throwBindingError("".concat(t," has unknown type ").concat(getTypeName(e))),r};function usesDestructorStack(e){for(var t=1;t0?", ":"")+o),l+=(r||n?"var rv = ":"")+"invoker(fn"+(o.length>0?", ":"")+o+");\n",i)l+="runDestructors(destructors);\n";else for(_=t?1:2;_Object.defineProperty(t,"name",{value:e}),extendError=(e,t)=>{var r=createNamedFunction(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},r},UnboundTypeError,PureVirtualError,registeredInstances={},getInheritedInstanceCount=()=>Object.keys(registeredInstances).length,getLiveInheritedInstances=()=>{var e=[];for(var t in registeredInstances)registeredInstances.hasOwnProperty(t)&&e.push(registeredInstances[t]);return e},deletionQueue=[],flushPendingDeletes=()=>{for(;deletionQueue.length;){var e=deletionQueue.pop();e.$$.deleteScheduled=!1,e.delete()}},delayFunction,setDelayFunction=e=>{delayFunction=e,deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes)},init_embind=()=>{Module.getInheritedInstanceCount=getInheritedInstanceCount,Module.getLiveInheritedInstances=getLiveInheritedInstances,Module.flushPendingDeletes=flushPendingDeletes,Module.setDelayFunction=setDelayFunction},throwUnboundTypeError=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){if(!n[t]&&!registeredTypes[t]){if(typeDependencies[t])return void typeDependencies[t].forEach(e);r.push(t),n[t]=!0}})),new UnboundTypeError("".concat(e,": ")+r.map(getTypeName).join([", "]))},ensureOverloadTable=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(...n){return e[t].overloadTable.hasOwnProperty(n.length)||throwBindingError("Function '".concat(r,"' called with an invalid number of arguments (").concat(n.length,") - expects one of (").concat(e[t].overloadTable,")!")),e[t].overloadTable[n.length].apply(this,n)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},exposePublicSymbol=(e,t,r)=>{Module.hasOwnProperty(e)?((void 0===r||void 0!==Module[e].overloadTable&&void 0!==Module[e].overloadTable[r])&&throwBindingError("Cannot register public name '".concat(e,"' twice")),ensureOverloadTable(Module,e,e),Module.hasOwnProperty(r)&&throwBindingError("Cannot register multiple overloads of a function with the same number of arguments (".concat(r,")!")),Module[e].overloadTable[r]=t):(Module[e]=t,void 0!==r&&(Module[e].numArguments=r))},replacePublicSymbol=(e,t,r)=>{Module.hasOwnProperty(e)||throwInternalError("Replacing nonexistent public symbol"),void 0!==Module[e].overloadTable&&void 0!==r?Module[e].overloadTable[r]=t:(Module[e]=t,Module[e].argCount=r)},getBasestPointer=(e,t)=>{for(void 0===t&&throwBindingError("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},registerInheritedInstance=(e,t,r)=>{t=getBasestPointer(e,t),registeredInstances.hasOwnProperty(t)?throwBindingError("Tried to register registered instance: ".concat(t)):registeredInstances[t]=r},unregisterInheritedInstance=(e,t)=>{t=getBasestPointer(e,t),registeredInstances.hasOwnProperty(t)?delete registeredInstances[t]:throwBindingError("Tried to unregister unregistered instance: ".concat(t))},getInheritedInstance=(e,t)=>(t=getBasestPointer(e,t),registeredInstances[t]),registeredPointers={},enumReadValueFromPointer=(e,t,r)=>{switch(t){case 1:return r?function(e){return this.fromWireType(GROWABLE_HEAP_I8()[e>>>0])}:function(e){return this.fromWireType(GROWABLE_HEAP_U8()[e>>>0])};case 2:return r?function(e){return this.fromWireType(GROWABLE_HEAP_I16()[e>>>1>>>0])}:function(e){return this.fromWireType(GROWABLE_HEAP_U16()[e>>>1>>>0])};case 4:return r?function(e){return this.fromWireType(GROWABLE_HEAP_I32()[e>>>2>>>0])}:function(e){return this.fromWireType(GROWABLE_HEAP_U32()[e>>>2>>>0])};default:throw new TypeError("invalid integer width (".concat(t,"): ").concat(e))}};function __embind_register_user_type(e,t){__embind_register_emval(e>>>=0)}function __embind_register_optional(e,t){__embind_register_emval(e>>>=0)}__embind_register_user_type.sig="vpp",__embind_register_optional.sig="vpp";var runDestructors=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function newFunc(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type ".concat(typeof e," which is not a function"));var r=createNamedFunction(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}function craftInvokerFunction(e,t,r,n,i,a){var s=t.length;s<2&&throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var o=null!==t[1]&&null!==r,_=usesDestructorStack(t),l="void"!==t[0].name,c=[e,throwBindingError,n,i,runDestructors,t[0],t[1]],u=0;u{var r=(e=readLatin1String(e)).includes("j")||e.includes("p")?getDynCaller(e,t):getWasmTableEntry(t);return"function"!=typeof r&&throwBindingError("unknown function pointer with signature ".concat(e,": ").concat(t)),r};function __embind_register_function(e,t,r,n,i,a,s){e>>>=0,n>>>=0,i>>>=0,a>>>=0;var o=heap32VectorToArray(t,r>>>=0);e=readLatin1String(e),e=getFunctionName(e),i=embind__requireFunction(n,i),exposePublicSymbol(e,(function(){throwUnboundTypeError("Cannot call ".concat(e," due to unbound types"),o)}),t-1),whenDependentTypesAreResolved([],o,(r=>{var n=[r[0],null].concat(r.slice(1));return replacePublicSymbol(e,craftInvokerFunction(e,n,null,i,a,s),t-1),[]}))}function __embind_register_value_array(e,t,r,n,i,a){t>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,tupleRegistrations[e>>>=0]={name:readLatin1String(t),rawConstructor:embind__requireFunction(r,n),rawDestructor:embind__requireFunction(i,a),elements:[]}}function __embind_register_value_array_element(e,t,r,n,i,a,s,o,_){t>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,s>>>=0,o>>>=0,_>>>=0,tupleRegistrations[e>>>=0].elements.push({getterReturnType:t,getter:embind__requireFunction(r,n),getterContext:i,setterArgumentType:a,setter:embind__requireFunction(s,o),setterContext:_})}__embind_register_function.sig="vpippppi",__embind_register_value_array.sig="vpppppp",__embind_register_value_array_element.sig="vppppppppp";var __embind_finalize_value_array=function(e){var t=tupleRegistrations[e>>>=0];delete tupleRegistrations[e];var r=t.elements,n=r.length,i=r.map((e=>e.getterReturnType)).concat(r.map((e=>e.setterArgumentType))),a=t.rawConstructor,s=t.rawDestructor;whenDependentTypesAreResolved([e],i,(e=>(r.forEach(((t,r)=>{var i=e[r],a=t.getter,s=t.getterContext,o=e[r+n],_=t.setter,l=t.setterContext;t.read=e=>i.fromWireType(a(s,e)),t.write=(e,t)=>{var r=[];_(l,e,o.toWireType(r,t)),runDestructors(r)}})),[{name:t.name,fromWireType:e=>{for(var t=new Array(n),i=0;i{if(n!==i.length)throw new TypeError("Incorrect number of tuple elements for ".concat(t.name,": expected=").concat(n,", actual=").concat(i.length));for(var o=a(),_=0;_>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,structRegistrations[e>>>=0]={name:readLatin1String(t),rawConstructor:embind__requireFunction(r,n),rawDestructor:embind__requireFunction(i,a),fields:[]}}function __embind_register_value_object_field(e,t,r,n,i,a,s,o,_,l){t>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,s>>>=0,o>>>=0,_>>>=0,l>>>=0,structRegistrations[e>>>=0].fields.push({fieldName:readLatin1String(t),getterReturnType:r,getter:embind__requireFunction(n,i),getterContext:a,setterArgumentType:s,setter:embind__requireFunction(o,_),setterContext:l})}__embind_finalize_value_array.sig="vp",__embind_register_value_object.sig="vpppppp",__embind_register_value_object_field.sig="vpppppppppp";var __embind_finalize_value_object=function(e){var t=structRegistrations[e>>>=0];delete structRegistrations[e];var r=t.rawConstructor,n=t.rawDestructor,i=t.fields,a=i.map((e=>e.getterReturnType)).concat(i.map((e=>e.setterArgumentType)));whenDependentTypesAreResolved([e],a,(e=>{var a={};return i.forEach(((t,r)=>{var n=t.fieldName,s=e[r],o=t.getter,_=t.getterContext,l=e[r+i.length],c=t.setter,u=t.setterContext;a[n]={read:e=>s.fromWireType(o(_,e)),write:(e,t)=>{var r=[];c(u,e,l.toWireType(r,t)),runDestructors(r)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var r in a)t[r]=a[r].read(e);return n(e),t},toWireType:(e,t)=>{for(var i in a)if(!(i in t))throw new TypeError('Missing field: "'.concat(i,'"'));var s=r();for(i in a)a[i].write(s,t[i]);return null!==e&&e.push(n,s),s},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:n}]}))};__embind_finalize_value_object.sig="vp";var upcastPointer=(e,t,r)=>{for(;t!==r;)t.upcast||throwBindingError("Expected null or instance of ".concat(r.name,", got an instance of ").concat(t.name)),e=t.upcast(e),t=t.baseClass;return e};function genericPointerToWireType(e,t){var r;if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;(!t||!t.$$)&&throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&t.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type ".concat(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name," to parameter type ").concat(this.name));var n=t.$$.ptrType.registeredClass;if(r=upcastPointer(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&throwBindingError("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:throwBindingError("Cannot convert argument of type ".concat(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,Emval.toHandle((()=>i.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:throwBindingError("Unsupporting sharing policy")}return r}function constNoSmartPtrRawPointerToWireType(e,t){if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),0;t.$$||throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name));var r=t.$$.ptrType.registeredClass;return upcastPointer(t.$$.ptr,r,this.registeredClass)}function nonConstNoSmartPtrRawPointerToWireType(e,t){if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),0;t.$$||throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name)),t.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type ".concat(t.$$.ptrType.name," to parameter type ").concat(this.name));var r=t.$$.ptrType.registeredClass;return upcastPointer(t.$$.ptr,r,this.registeredClass)}function RegisteredPointer(e,t,r,n,i,a,s,o,_,l,c){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=o,this.rawConstructor=_,this.rawShare=l,this.rawDestructor=c,i||void 0!==t.baseClass?this.toWireType=genericPointerToWireType:n?(this.toWireType=constNoSmartPtrRawPointerToWireType,this.destructorFunction=null):(this.toWireType=nonConstNoSmartPtrRawPointerToWireType,this.destructorFunction=null)}var downcastPointer=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=downcastPointer(e,t,r.baseClass);return null===n?null:r.downcast(n)},finalizationRegistry=!1,detachFinalizer=e=>{},runDestructor=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},releaseClassHandle=e=>{e.count.value-=1,0===e.count.value&&runDestructor(e)},attachFinalizer=e=>typeof FinalizationRegistry>"u"?(attachFinalizer=e=>e,e):(finalizationRegistry=new FinalizationRegistry((e=>{releaseClassHandle(e.$$)})),detachFinalizer=e=>finalizationRegistry.unregister(e),(attachFinalizer=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};finalizationRegistry.register(e,r,e)}return e})(e)),makeClassHandle=(e,t)=>((!t.ptrType||!t.ptr)&&throwInternalError("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&throwInternalError("Both smartPtrType and smartPtr must be specified"),t.count={value:1},attachFinalizer(Object.create(e,{$$:{value:t,writable:!0}})));function RegisteredPointer_fromWireType(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=getInheritedInstance(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,s=this.registeredClass.getActualType(t),o=registeredPointers[s];if(!o)return i.call(this);a=this.isConst?o.constPointerType:o.pointerType;var _=downcastPointer(t,this.registeredClass,a.registeredClass);return null===_?i.call(this):this.isSmartPointer?makeClassHandle(a.registeredClass.instancePrototype,{ptrType:a,ptr:_,smartPtrType:this,smartPtr:e}):makeClassHandle(a.registeredClass.instancePrototype,{ptrType:a,ptr:_})}var init_RegisteredPointer=()=>{Object.assign(RegisteredPointer.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var t;null==(t=this.rawDestructor)||t.call(this,e)},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,fromWireType:RegisteredPointer_fromWireType})},detachFinalizer_deps=["$finalizationRegistry"];function ClassHandle(){}var shallowCopyInternalPointer=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),throwInstanceAlreadyDeleted=e=>{throwBindingError(e.$$.ptrType.registeredClass.name+" instance already deleted")},init_ClassHandle=()=>{Object.assign(ClassHandle.prototype,{isAliasOf(e){if(!(this instanceof ClassHandle&&e instanceof ClassHandle))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i},clone(){if(this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),detachFinalizer(this),releaseClassHandle(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),deletionQueue.push(this),1===deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes),this.$$.deleteScheduled=!0,this}})};function RegisteredClass(e,t,r,n,i,a,s,o){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var char_0=48,char_9=57,makeLegalFunctionName=e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=char_0&&t<=char_9?"_".concat(e):e};function __embind_register_class(e,t,r,n,i,a,s,o,_,l,c,u,d){e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,s>>>=0,o>>>=0,_>>>=0,l>>>=0,u>>>=0,d>>>=0,c=readLatin1String(c>>>=0),a=embind__requireFunction(i,a),o&&(o=embind__requireFunction(s,o)),l&&(l=embind__requireFunction(_,l)),d=embind__requireFunction(u,d);var p=makeLegalFunctionName(c);exposePublicSymbol(p,(function(){throwUnboundTypeError("Cannot construct ".concat(c," due to unbound types"),[n])})),whenDependentTypesAreResolved([e,t,r],n?[n]:[],(t=>{var r,i,s;t=t[0],s=n?(i=t.registeredClass).instancePrototype:ClassHandle.prototype;var _=createNamedFunction(c,(function(...e){if(Object.getPrototypeOf(this)!==u)throw new BindingError("Use 'new' to construct "+c);if(void 0===m.constructor_body)throw new BindingError(c+" has no accessible constructor");var t=m.constructor_body[e.length];if(void 0===t)throw new BindingError("Tried to invoke ctor of ".concat(c," with invalid number of parameters (").concat(e.length,") - expected (").concat(Object.keys(m.constructor_body).toString(),") parameters instead!"));return t.apply(this,e)})),u=Object.create(s,{constructor:{value:_}});_.prototype=u;var m=new RegisteredClass(c,_,u,d,i,a,o,l);m.baseClass&&(null!=(r=m.baseClass).__derivedClasses||(r.__derivedClasses=[]),m.baseClass.__derivedClasses.push(m));var f=new RegisteredPointer(c,m,!0,!1,!1),h=new RegisteredPointer(c+"*",m,!1,!1,!1),g=new RegisteredPointer(c+" const*",m,!1,!0,!1);return registeredPointers[e]={pointerType:h,constPointerType:g},replacePublicSymbol(p,_),[f,h,g]}))}__embind_register_class.sig="vppppppppppppp";var __embind_register_class_constructor=function(e,t,r,n,i,a){e>>>=0,n>>>=0,i>>>=0,a>>>=0;var s=heap32VectorToArray(t,r>>>=0);i=embind__requireFunction(n,i),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var r="constructor ".concat(e.name);if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new BindingError("Cannot register multiple constructors with identical number of parameters (".concat(t-1,") for class '").concat(e.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return e.registeredClass.constructor_body[t-1]=()=>{throwUnboundTypeError("Cannot construct ".concat(e.name," due to unbound types"),s)},whenDependentTypesAreResolved([],s,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=craftInvokerFunction(r,n,null,i,a),[]))),[]}))};__embind_register_class_constructor.sig="vpipppp";var validateThis=(e,t,r)=>(e instanceof Object||throwBindingError("".concat(r,' with invalid "this": ').concat(e)),e instanceof t.registeredClass.constructor||throwBindingError("".concat(r,' incompatible with "this" of type ').concat(e.constructor.name)),e.$$.ptr||throwBindingError("cannot call emscripten binding method ".concat(r," on deleted object")),upcastPointer(e.$$.ptr,e.$$.ptrType.registeredClass,t.registeredClass)),__embind_register_class_function=function(e,t,r,n,i,a,s,o,_){e>>>=0,t>>>=0,i>>>=0,a>>>=0,s>>>=0;var l=heap32VectorToArray(r,n>>>=0);t=readLatin1String(t),t=getFunctionName(t),a=embind__requireFunction(i,a),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(t);function i(){throwUnboundTypeError("Cannot call ".concat(n," due to unbound types"),l)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),o&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,u=c[t];return void 0===u||void 0===u.overloadTable&&u.className!==e.name&&u.argCount===r-2?(i.argCount=r-2,i.className=e.name,c[t]=i):(ensureOverloadTable(c,t,n),c[t].overloadTable[r-2]=i),whenDependentTypesAreResolved([],l,(i=>{var o=craftInvokerFunction(n,i,e,a,s,_);return void 0===c[t].overloadTable?(o.argCount=r-2,c[t]=o):c[t].overloadTable[r-2]=o,[]})),[]}))};__embind_register_class_function.sig="vppippppii";var __embind_register_class_property=function(e,t,r,n,i,a,s,o,_,l){e>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,s>>>=0,o>>>=0,_>>>=0,l>>>=0,t=readLatin1String(t>>>=0),i=embind__requireFunction(n,i),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(t),c={get(){throwUnboundTypeError("Cannot access ".concat(n," due to unbound types"),[r,s])},enumerable:!0,configurable:!0};return c.set=_?()=>throwUnboundTypeError("Cannot access ".concat(n," due to unbound types"),[r,s]):e=>throwBindingError(n+" is a read-only property"),Object.defineProperty(e.registeredClass.instancePrototype,t,c),whenDependentTypesAreResolved([],_?[r,s]:[r],(r=>{var s=r[0],c={get(){var t=validateThis(this,e,n+" getter");return s.fromWireType(i(a,t))},enumerable:!0};if(_){_=embind__requireFunction(o,_);var u=r[1];c.set=function(t){var r=validateThis(this,e,n+" setter"),i=[];_(l,r,u.toWireType(i,t)),runDestructors(i)}}return Object.defineProperty(e.registeredClass.instancePrototype,t,c),[]})),[]}))};__embind_register_class_property.sig="vpppppppppp";var __embind_register_class_class_function=function(e,t,r,n,i,a,s,o){e>>>=0,t>>>=0,i>>>=0,a>>>=0,s>>>=0;var _=heap32VectorToArray(r,n>>>=0);t=readLatin1String(t),t=getFunctionName(t),a=embind__requireFunction(i,a),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(t);function i(){throwUnboundTypeError("Cannot call ".concat(n," due to unbound types"),_)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var l=e.registeredClass.constructor;return void 0===l[t]?(i.argCount=r-1,l[t]=i):(ensureOverloadTable(l,t,n),l[t].overloadTable[r-1]=i),whenDependentTypesAreResolved([],_,(i=>{var _=[i[0],null].concat(i.slice(1)),c=craftInvokerFunction(n,_,null,a,s,o);if(void 0===l[t].overloadTable?(c.argCount=r-1,l[t]=c):l[t].overloadTable[r-1]=c,e.registeredClass.__derivedClasses)for(let r of e.registeredClass.__derivedClasses)r.constructor.hasOwnProperty(t)||(r.constructor[t]=c);return[]})),[]}))};__embind_register_class_class_function.sig="vppippppi";var __embind_register_class_class_property=function(e,t,r,n,i,a,s,o){e>>>=0,r>>>=0,n>>>=0,i>>>=0,a>>>=0,s>>>=0,o>>>=0,t=readLatin1String(t>>>=0),a=embind__requireFunction(i,a),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var i="".concat(e.name,".").concat(t),_={get(){throwUnboundTypeError("Cannot access ".concat(i," due to unbound types"),[r])},enumerable:!0,configurable:!0};return _.set=o?()=>{throwUnboundTypeError("Cannot access ".concat(i," due to unbound types"),[r])}:e=>{throwBindingError("".concat(i," is a read-only property"))},Object.defineProperty(e.registeredClass.constructor,t,_),whenDependentTypesAreResolved([],[r],(r=>{r=r[0];var i={get:()=>r.fromWireType(a(n)),enumerable:!0};return o&&(o=embind__requireFunction(s,o),i.set=e=>{var t=[];o(n,r.toWireType(t,e)),runDestructors(t)}),Object.defineProperty(e.registeredClass.constructor,t,i),[]})),[]}))};function __embind_create_inheriting_constructor(e,t,r){t>>>=0,r>>>=0,e=readLatin1String(e>>>=0),t=requireRegisteredType(t,"wrapper"),r=Emval.toValue(r);var n=t.registeredClass,i=n.instancePrototype,a=n.baseClass.instancePrototype,s=n.baseClass.constructor,o=createNamedFunction(e,(function(...e){n.baseClass.pureVirtualFunctions.forEach(function(e){if(this[e]===a[e])throw new PureVirtualError("Pure virtual function ".concat(e," must be implemented in JavaScript"))}.bind(this)),Object.defineProperty(this,"__parent",{value:i}),this.__construct(...e)}));return i.__construct=function(...e){this===i&&throwBindingError("Pass correct 'this' to __construct");var t=s.implement(this,...e);detachFinalizer(t);var r=t.$$;t.notifyOnDestruction(),r.preservePointerOnDelete=!0,Object.defineProperties(this,{$$:{value:r}}),attachFinalizer(this),registerInheritedInstance(n,r.ptr,this)},i.__destruct=function(){this===i&&throwBindingError("Pass correct 'this' to __destruct"),detachFinalizer(this),unregisterInheritedInstance(n,this.$$.ptr)},o.prototype=Object.create(i),Object.assign(o.prototype,r),Emval.toHandle(o)}__embind_register_class_class_property.sig="vpppppppp",__embind_create_inheriting_constructor.sig="pppp";var __embind_register_smart_ptr=function(e,t,r,n,i,a,s,o,_,l,c,u){e>>>=0,t>>>=0,i>>>=0,a>>>=0,s>>>=0,o>>>=0,_>>>=0,l>>>=0,c>>>=0,u>>>=0,r=readLatin1String(r>>>=0),a=embind__requireFunction(i,a),o=embind__requireFunction(s,o),l=embind__requireFunction(_,l),u=embind__requireFunction(c,u),whenDependentTypesAreResolved([e],[t],(e=>(e=e[0],[new RegisteredPointer(r,e.registeredClass,!1,!1,!0,e,n,a,o,l,u)])))};function __embind_register_enum(e,t,r,n){function i(){}e>>>=0,r>>>=0,t=readLatin1String(t>>>=0),i.values={},registerType(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:GenericWireTypeSize,readValueFromPointer:enumReadValueFromPointer(t,r,n),destructorFunction:null}),exposePublicSymbol(t,i)}function __embind_register_enum_value(e,t,r){t>>>=0;var n=requireRegisteredType(e>>>=0,"enum");t=readLatin1String(t);var i=n.constructor,a=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:createNamedFunction("".concat(n.name,"_").concat(t),(function(){}))}});i.values[r]=a,i[t]=a}__embind_register_smart_ptr.sig="vpppipppppppp",__embind_register_enum.sig="vpppi",__embind_register_enum_value.sig="vppi";var __embind_register_constant=function(e,t,r){t>>>=0,e=readLatin1String(e>>>=0),whenDependentTypesAreResolved([],[t],(t=>(t=t[0],Module[e]=t.fromWireType(r),[])))};__embind_register_constant.sig="vppd";var emval_symbols={};function __emval_register_symbol(e){emval_symbols[e>>>=0]=readLatin1String(e)}__emval_register_symbol.sig="vp";var getStringOrSymbol=e=>{var t=emval_symbols[e];return void 0===t?readLatin1String(e):t};function __emval_incref(e){(e>>>=0)>9&&(emval_handles[e+1]+=1)}function __emval_run_destructors(e){e>>>=0;var t=Emval.toValue(e);runDestructors(t),__emval_decref(e)}function __emval_new_array(){return Emval.toHandle([])}function __emval_new_array_from_memory_view(e){e>>>=0,e=Emval.toValue(e);for(var t=new Array(e.length),r=0;r>>=0,Emval.toHandle(getStringOrSymbol(e))}function __emval_new_u8string(e){return e>>>=0,Emval.toHandle(UTF8ToString(e))}function __emval_new_u16string(e){return e>>>=0,Emval.toHandle(UTF16ToString(e))}function __emval_take_value(e,t){t>>>=0;var r=(e=requireRegisteredType(e>>>=0,"_emval_take_value")).readValueFromPointer(t);return Emval.toHandle(r)}__emval_incref.sig="vp",__emval_run_destructors.sig="vp",__emval_new_array.sig="p",__emval_new_array_from_memory_view.sig="pp",__emval_new_object.sig="p",__emval_new_cstring.sig="pp",__emval_new_u8string.sig="pp",__emval_new_u16string.sig="pp",__emval_take_value.sig="ppp";var emval_get_global=()=>"object"==typeof globalThis?globalThis:Function("return this")();function __emval_get_global(e){return 0==(e>>>=0)?Emval.toHandle(emval_get_global()):(e=getStringOrSymbol(e),Emval.toHandle(emval_get_global()[e]))}function __emval_get_module_property(e){return e=getStringOrSymbol(e>>>=0),Emval.toHandle(Module[e])}function __emval_get_property(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),t=Emval.toValue(t),Emval.toHandle(e[t])}function __emval_set_property(e,t,r){e>>>=0,t>>>=0,r>>>=0,e=Emval.toValue(e),t=Emval.toValue(t),r=Emval.toValue(r),e[t]=r}__emval_get_global.sig="pp",__emval_get_module_property.sig="pp",__emval_get_property.sig="ppp",__emval_set_property.sig="vppp";var emval_returnValue=(e,t,r)=>{var n=[],i=e.toWireType(n,r);return n.length&&(GROWABLE_HEAP_U32()[t>>>2>>>0]=Emval.toHandle(n)),i};function __emval_as(e,t,r){return e>>>=0,t>>>=0,r>>>=0,e=Emval.toValue(e),t=requireRegisteredType(t,"emval::as"),emval_returnValue(t,r,e)}function __emval_as_int64(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),(t=requireRegisteredType(t,"emval::as")).toWireType(null,e)}function __emval_as_uint64(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),(t=requireRegisteredType(t,"emval::as")).toWireType(null,e)}function __emval_equals(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))==Emval.toValue(t)}function __emval_strictly_equals(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))===Emval.toValue(t)}function __emval_greater_than(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))>Emval.toValue(t)}function __emval_less_than(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))>>=0,!(e=Emval.toValue(e))}__emval_as.sig="dppp",__emval_as_int64.sig="ipp",__emval_as_uint64.sig="ipp",__emval_equals.sig="ipp",__emval_strictly_equals.sig="ipp",__emval_greater_than.sig="ipp",__emval_less_than.sig="ipp",__emval_not.sig="ip";var emval_methodCallers=[];function __emval_call(e,t,r,n){return t>>>=0,r>>>=0,n>>>=0,(e=emval_methodCallers[e>>>=0])(null,t=Emval.toValue(t),r,n)}__emval_call.sig="dpppp";var emval_lookupTypes=(e,t)=>{for(var r=new Array(e),n=0;n>>2>>>0],"parameter "+n);return r},emval_addMethodCaller=e=>{var t=emval_methodCallers.length;return emval_methodCallers.push(e),t},reflectConstruct=Reflect.construct;function __emval_get_method_caller(e,t,r){var n=emval_lookupTypes(e,t>>>=0),i=n.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",s=0,o=[];0===r&&o.push("obj");for(var _=["retType"],l=[i],c=0;ce.name)).join(", "),") => ").concat(i.name,">");return emval_addMethodCaller(createNamedFunction(d,u))}function __emval_call_method(e,t,r,n,i){return t>>>=0,r>>>=0,n>>>=0,i>>>=0,(e=emval_methodCallers[e>>>=0])(t=Emval.toValue(t),t[r=getStringOrSymbol(r)],n,i)}function __emval_typeof(e){return e>>>=0,e=Emval.toValue(e),Emval.toHandle(typeof e)}function __emval_instanceof(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))instanceof Emval.toValue(t)}function __emval_is_number(e){return e>>>=0,"number"==typeof(e=Emval.toValue(e))}function __emval_is_string(e){return e>>>=0,"string"==typeof(e=Emval.toValue(e))}function __emval_in(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))in Emval.toValue(t)}function __emval_delete(e,t){return e>>>=0,t>>>=0,delete(e=Emval.toValue(e))[t=Emval.toValue(t)]}function __emval_throw(e){throw e>>>=0,Emval.toValue(e)}function __emval_iter_begin(e){return e>>>=0,e=Emval.toValue(e),Emval.toHandle(e[Symbol.iterator]())}function __emval_iter_next(e){e>>>=0;var t=(e=Emval.toValue(e)).next();return t.done?0:Emval.toHandle(t.value)}__emval_get_method_caller.sig="pipi",__emval_call_method.sig="dppppp",__emval_typeof.sig="pp",__emval_instanceof.sig="ipp",__emval_is_number.sig="ip",__emval_is_string.sig="ip",__emval_in.sig="ipp",__emval_delete.sig="ipp",__emval_throw.sig="ip",__emval_iter_begin.sig="pp",__emval_iter_next.sig="pp";var __emval_coro_suspend=function(e,t){e>>>=0,t>>>=0,Emval.toValue(e).then((e=>{__emval_coro_resume(t,Emval.toHandle(e))}))};__emval_coro_suspend.sig="vpp";var __emval_coro_make_promise=function(e,t){return e>>>=0,t>>>=0,Emval.toHandle(new Promise(((r,n)=>{GROWABLE_HEAP_U32()[e>>>2>>>0]=Emval.toHandle(r),GROWABLE_HEAP_U32()[t>>>2>>>0]=Emval.toHandle((()=>{try{___cxa_rethrow()}catch(e){n(e)}}))})))},emSetImmediate,emClearImmediate;function _duckdb_web_fs_file_sync(e){return globalThis.DUCKDB_RUNTIME.syncFile(Module,e)}function _duckdb_web_fs_file_remove(e,t){return globalThis.DUCKDB_RUNTIME.removeFile(Module,e,t)}__emval_coro_make_promise.sig="ppp",_duckdb_web_fs_file_sync.sig="vi",PThread.init(),registerWasmPlugin(),FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit(),embind_init_charCodes(),BindingError=Module.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},InternalError=Module.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},init_emval(),Module.requestFullscreen=Browser.requestFullscreen,Module.requestAnimationFrame=Browser.requestAnimationFrame,Module.setCanvasSize=Browser.setCanvasSize,Module.pauseMainLoop=Browser.mainLoop.pause,Module.resumeMainLoop=Browser.mainLoop.resume,Module.getUserMedia=Browser.getUserMedia,Module.createContext=Browser.createContext;for(var preloadedImages={},preloadedAudios={},GLctx,i=0;i<32;++i)tempFixedLengthArray.push(new Array(i));for(var miniTempWebGLFloatBuffersStorage=new Float32Array(288),i=0;i<288;++i)miniTempWebGLFloatBuffers[i]=miniTempWebGLFloatBuffersStorage.subarray(0,i);for(var miniTempWebGLIntBuffersStorage=new Int32Array(288),i=0;i<288;++i)miniTempWebGLIntBuffers[i]=miniTempWebGLIntBuffersStorage.subarray(0,i);if(typeof setImmediate<"u")emSetImmediate=setImmediateWrapped,emClearImmediate=clearImmediateWrapped;else if("function"==typeof addEventListener){var __setImmediate_id_counter=0,__setImmediate_queue=[],__setImmediate_message_id="_si",__setImmediate_cb=e=>{e.data===__setImmediate_message_id&&(e.stopPropagation(),__setImmediate_queue.shift()(),++__setImmediate_id_counter)};addEventListener("message",__setImmediate_cb,!0),emSetImmediate=e=>(postMessage(__setImmediate_message_id,"*"),__setImmediate_id_counter+__setImmediate_queue.push(e)-1),emClearImmediate=e=>{var t=e-__setImmediate_id_counter;t>=0&&t<__setImmediate_queue.length&&(__setImmediate_queue[t]=()=>{})}}if(!Atomics.waitAsync||typeof navigator<"u"&&navigator.userAgent&&jstoi_q((navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./)||[])[2])<91){let e=function(){let r=performance.now(),n=t.length;for(let e=0;ei[3],s=Atomics.load(i[0],i[1])!=i[2];(a||s)&&(t[e--]=t[--n],t.length=n,i[4](s?"ok":"timed-out"))}n&&setTimeout(e,10)};var __Atomics_pollWaitAsyncAddresses=e;let t=[];Atomics.waitAsync=(r,n,i,a)=>{if(Atomics.load(r,n)!=i)return{async:!1,value:"not-equal"};if(a<=0)return{async:!1,value:"timed-out"};a=performance.now()+(a||1/0);let s,o=new Promise((e=>{s=e}));return t[0]||setTimeout(e,10),t.push([r,n,i,a,s]),{async:!0,value:o}}}UnboundTypeError=Module.UnboundTypeError=extendError(Error,"UnboundTypeError"),PureVirtualError=Module.PureVirtualError=extendError(Error,"PureVirtualError"),init_embind(),init_RegisteredPointer(),init_ClassHandle();var proxiedFunctionTable=[_proc_exit,exitOnMainThread,pthreadCreateProxied,___syscall__newselect,___syscall_accept4,___syscall_bind,___syscall_chdir,___syscall_chmod,___syscall_connect,___syscall_dup,___syscall_dup3,___syscall_faccessat,___syscall_fadvise64,___syscall_fallocate,___syscall_fchdir,___syscall_fchmod,___syscall_fchmodat2,___syscall_fchown32,___syscall_fchownat,___syscall_fcntl64,___syscall_fdatasync,___syscall_fstat64,___syscall_fstatfs64,___syscall_statfs64,___syscall_ftruncate64,___syscall_getcwd,___syscall_getdents64,___syscall_getpeername,___syscall_getsockname,___syscall_getsockopt,___syscall_ioctl,___syscall_listen,___syscall_lstat64,___syscall_mkdirat,___syscall_mknodat,___syscall_newfstatat,___syscall_openat,___syscall_pipe,___syscall_poll,___syscall_readlinkat,___syscall_recvfrom,___syscall_recvmsg,___syscall_renameat,___syscall_rmdir,___syscall_sendmsg,___syscall_sendto,___syscall_socket,___syscall_stat64,___syscall_symlink,___syscall_symlinkat,___syscall_truncate64,___syscall_unlinkat,___syscall_utimensat,__emscripten_runtime_keepalive_clear,__mmap_js,__msync_js,__munmap_js,__setitimer_js,_alBuffer3f,_alBuffer3i,_alBufferData,_alBufferf,_alBufferfv,_alBufferi,_alBufferiv,_alDeleteBuffers,_alDeleteSources,_alSourcei,_alDisable,_alDistanceModel,_alDopplerFactor,_alDopplerVelocity,_alEnable,_alGenBuffers,_alGenSources,_alGetBoolean,_alGetBooleanv,_alGetBuffer3f,_alGetBuffer3i,_alGetBufferf,_alGetBufferfv,_alGetBufferi,_alGetBufferiv,_alGetDouble,_alGetDoublev,_alGetEnumValue,_alGetError,_alGetFloat,_alGetFloatv,_alGetInteger,_alGetIntegerv,_alGetListener3f,_alGetListener3i,_alGetListenerf,_alGetListenerfv,_alGetListeneri,_alGetListeneriv,_alGetSource3f,_alGetSource3i,_alGetSourcef,_alGetSourcefv,_alGetSourcei,_alGetSourceiv,_alGetString,_alIsBuffer,_alIsEnabled,_alIsExtensionPresent,_alIsSource,_alListener3f,_alListener3i,_alListenerf,_alListenerfv,_alListeneri,_alListeneriv,_alSource3f,_alSource3i,_alSourcePause,_alSourcePausev,_alSourcePlay,_alSourcePlayv,_alSourceQueueBuffers,_alSourceRewind,_alSourceRewindv,_alSourceStop,_alSourceStopv,_alSourceUnqueueBuffers,_alSourcef,_alSourcefv,_alSourceiv,_alSpeedOfSound,_alcCaptureCloseDevice,_alcCaptureOpenDevice,_alcCaptureSamples,_alcCaptureStart,_alcCaptureStop,_alcCloseDevice,_alcCreateContext,_alcDestroyContext,_alcGetContextsDevice,_alcGetCurrentContext,_alcGetEnumValue,_alcGetError,_alcGetIntegerv,_alcGetString,_alcIsExtensionPresent,_alcMakeContextCurrent,_alcOpenDevice,_emscripten_alcDevicePauseSOFT,_emscripten_alcDeviceResumeSOFT,_emscripten_alcGetStringiSOFT,_emscripten_alcResetDeviceSOFT,_environ_get,_environ_sizes_get,_fd_close,_fd_fdstat_get,_fd_pread,_fd_pwrite,_fd_read,_fd_seek,_fd_sync,_fd_write,_getaddrinfo,_emscripten_force_exit,_emscripten_set_keypress_callback_on_thread,_emscripten_set_keydown_callback_on_thread,_emscripten_set_keyup_callback_on_thread,_emscripten_set_click_callback_on_thread,_emscripten_set_mousedown_callback_on_thread,_emscripten_set_mouseup_callback_on_thread,_emscripten_set_dblclick_callback_on_thread,_emscripten_set_mousemove_callback_on_thread,_emscripten_set_mouseenter_callback_on_thread,_emscripten_set_mouseleave_callback_on_thread,_emscripten_set_mouseover_callback_on_thread,_emscripten_set_mouseout_callback_on_thread,_emscripten_get_mouse_status,_emscripten_set_wheel_callback_on_thread,_emscripten_set_resize_callback_on_thread,_emscripten_set_scroll_callback_on_thread,_emscripten_set_blur_callback_on_thread,_emscripten_set_focus_callback_on_thread,_emscripten_set_focusin_callback_on_thread,_emscripten_set_focusout_callback_on_thread,_emscripten_set_deviceorientation_callback_on_thread,_emscripten_get_deviceorientation_status,_emscripten_set_devicemotion_callback_on_thread,_emscripten_get_devicemotion_status,_emscripten_set_orientationchange_callback_on_thread,_emscripten_get_orientation_status,_emscripten_lock_orientation,_emscripten_unlock_orientation,_emscripten_set_fullscreenchange_callback_on_thread,_emscripten_get_fullscreen_status,getCanvasSizeMainThread,setCanvasElementSizeMainThread,_emscripten_request_fullscreen,_emscripten_request_fullscreen_strategy,_emscripten_enter_soft_fullscreen,_emscripten_exit_soft_fullscreen,_emscripten_exit_fullscreen,_emscripten_set_pointerlockchange_callback_on_thread,_emscripten_set_pointerlockerror_callback_on_thread,_emscripten_get_pointerlock_status,_emscripten_request_pointerlock,_emscripten_exit_pointerlock,_emscripten_vibrate,_emscripten_vibrate_pattern,_emscripten_set_visibilitychange_callback_on_thread,_emscripten_get_visibility_status,_emscripten_set_touchstart_callback_on_thread,_emscripten_set_touchend_callback_on_thread,_emscripten_set_touchmove_callback_on_thread,_emscripten_set_touchcancel_callback_on_thread,_emscripten_set_gamepadconnected_callback_on_thread,_emscripten_sample_gamepad_data,_emscripten_set_gamepaddisconnected_callback_on_thread,_emscripten_get_num_gamepads,_emscripten_get_gamepad_status,_emscripten_set_beforeunload_callback_on_thread,_emscripten_set_batterychargingchange_callback_on_thread,_emscripten_set_batterylevelchange_callback_on_thread,_emscripten_get_battery_status,_emscripten_set_element_css_size,_emscripten_get_element_css_size,_emscripten_get_device_pixel_ratio,_random_get,_clock_time_get,_clock_res_get,_emscripten_run_preload_plugins,_emscripten_run_preload_plugins_data,_emscripten_get_window_title,_emscripten_set_window_title,_emscripten_get_screen_size,_emscripten_hide_mouse,_emscripten_set_canvas_size,_emscripten_get_canvas_size,_emscripten_create_worker,_emscripten_destroy_worker,_emscripten_call_worker,_emscripten_get_worker_queue_size,_emscripten_get_preloaded_image_data,_emscripten_get_preloaded_image_data_from_FILE,_emscripten_async_wget,_emscripten_async_wget_data,_emscripten_async_wget2,_emscripten_async_wget2_data,_emscripten_async_wget2_abort,_emscripten_set_webglcontextlost_callback_on_thread,_emscripten_set_webglcontextrestored_callback_on_thread,_glutPostRedisplay,_glutGetModifiers,_glutInit,_glutInitWindowSize,_glutInitWindowPosition,_glutIdleFunc,_glutTimerFunc,_glutDisplayFunc,_glutKeyboardFunc,_glutKeyboardUpFunc,_glutSpecialFunc,_glutSpecialUpFunc,_glutReshapeFunc,_glutMotionFunc,_glutPassiveMotionFunc,_glutMouseFunc,_glutSetCursor,_glutCreateWindow,_glutDestroyWindow,_glutReshapeWindow,_glutPositionWindow,_glutFullScreen,_glutInitDisplayMode,_glutSwapBuffers,_glutMainLoop,_eglGetDisplay,_eglInitialize,_eglTerminate,_eglGetConfigs,_eglChooseConfig,_eglGetConfigAttrib,_eglCreateWindowSurface,_eglDestroySurface,_eglCreateContext,_eglDestroyContext,_eglQuerySurface,_eglQueryContext,_eglGetError,_eglQueryString,_eglBindAPI,_eglQueryAPI,_eglWaitClient,_eglWaitNative,_eglSwapInterval,_eglMakeCurrent,_eglGetCurrentContext,_eglGetCurrentSurface,_eglGetCurrentDisplay,_eglSwapBuffers,_eglReleaseThread,_SDL_GetTicks,_SDL_LockSurface,_SDL_Linked_Version,_SDL_Init,_SDL_WasInit,_SDL_GetVideoInfo,_SDL_VideoDriverName,_SDL_SetVideoMode,_SDL_GetVideoSurface,_SDL_AudioQuit,_SDL_UnlockSurface,_SDL_WM_SetCaption,_SDL_GetKeyboardState,_SDL_GetKeyName,_SDL_GetModState,_SDL_GetMouseState,_SDL_WarpMouse,_SDL_ShowCursor,_SDL_GetError,_SDL_CreateRGBSurface,_SDL_CreateRGBSurfaceFrom,_SDL_ConvertSurface,_SDL_FreeSurface,_SDL_UpperBlit,_SDL_UpperBlitScaled,_SDL_GetClipRect,_SDL_SetClipRect,_SDL_FillRect,_SDL_SetAlpha,_SDL_PollEvent,_SDL_PushEvent,_SDL_PeepEvents,_SDL_PumpEvents,_emscripten_SDL_SetEventHandler,_SDL_SetColors,_SDL_MapRGB,_SDL_MapRGBA,_SDL_GetRGB,_SDL_GetRGBA,_SDL_GetAppState,_SDL_WM_ToggleFullScreen,_IMG_Load_RW,_SDL_FreeRW,_IMG_Load,_SDL_RWFromFile,_SDL_OpenAudio,_SDL_PauseAudio,_SDL_CloseAudio,_SDL_StartTextInput,_SDL_StopTextInput,_Mix_OpenAudio,_Mix_AllocateChannels,_Mix_ChannelFinished,_Mix_Volume,_Mix_SetPanning,_Mix_LoadWAV_RW,_Mix_LoadWAV,_Mix_QuickLoad_RAW,_Mix_FreeChunk,_Mix_ReserveChannels,_Mix_PlayChannelTimed,_Mix_HaltChannel,_Mix_HookMusicFinished,_Mix_HaltMusic,_Mix_VolumeMusic,_Mix_LoadMUS,_Mix_PlayMusic,_Mix_PauseMusic,_Mix_ResumeMusic,_Mix_PlayingMusic,_Mix_Playing,_Mix_Pause,_Mix_Paused,_Mix_PausedMusic,_Mix_Resume,_TTF_Init,_TTF_OpenFont,_TTF_CloseFont,_TTF_RenderText_Solid,_TTF_SizeText,_TTF_GlyphMetrics,_TTF_FontAscent,_TTF_FontDescent,_TTF_FontHeight,_SDL_GL_SetAttribute,_SDL_GL_GetAttribute,_SDL_GL_SwapBuffers,_SDL_GL_ExtensionSupported,_SDL_GetWindowFlags,_SDL_GL_GetSwapInterval,_SDL_SetWindowTitle,_SDL_GetWindowSize,_SDL_SetWindowFullscreen,_SDL_NumJoysticks,_SDL_JoystickName,_SDL_JoystickOpen,_SDL_JoystickOpened,_SDL_JoystickNumAxes,_SDL_JoystickNumButtons,_SDL_JoystickUpdate,_SDL_JoystickEventState,_SDL_JoystickGetAxis,_SDL_JoystickGetButton,_SDL_JoystickClose,_SDL_RWFromConstMem,_SDL_EnableUNICODE,_SDL_AddTimer,_SDL_RemoveTimer],wasmImports={IMG_Init:_IMG_Init,IMG_Load:_IMG_Load,IMG_Load_RW:_IMG_Load_RW,IMG_Quit:_IMG_Quit,Mix_AllocateChannels:_Mix_AllocateChannels,Mix_ChannelFinished:_Mix_ChannelFinished,Mix_CloseAudio:_Mix_CloseAudio,Mix_FadeInChannelTimed:_Mix_FadeInChannelTimed,Mix_FadeInMusicPos:_Mix_FadeInMusicPos,Mix_FadeOutChannel:_Mix_FadeOutChannel,Mix_FadeOutMusic:_Mix_FadeOutMusic,Mix_FadingChannel:_Mix_FadingChannel,Mix_FreeChunk:_Mix_FreeChunk,Mix_FreeMusic:_Mix_FreeMusic,Mix_HaltChannel:_Mix_HaltChannel,Mix_HaltMusic:_Mix_HaltMusic,Mix_HookMusicFinished:_Mix_HookMusicFinished,Mix_Init:_Mix_Init,Mix_Linked_Version:_Mix_Linked_Version,Mix_LoadMUS:_Mix_LoadMUS,Mix_LoadMUS_RW:_Mix_LoadMUS_RW,Mix_LoadWAV:_Mix_LoadWAV,Mix_LoadWAV_RW:_Mix_LoadWAV_RW,Mix_OpenAudio:_Mix_OpenAudio,Mix_Pause:_Mix_Pause,Mix_PauseMusic:_Mix_PauseMusic,Mix_Paused:_Mix_Paused,Mix_PausedMusic:_Mix_PausedMusic,Mix_PlayChannelTimed:_Mix_PlayChannelTimed,Mix_PlayMusic:_Mix_PlayMusic,Mix_Playing:_Mix_Playing,Mix_PlayingMusic:_Mix_PlayingMusic,Mix_QuerySpec:_Mix_QuerySpec,Mix_QuickLoad_RAW:_Mix_QuickLoad_RAW,Mix_Quit:_Mix_Quit,Mix_ReserveChannels:_Mix_ReserveChannels,Mix_Resume:_Mix_Resume,Mix_ResumeMusic:_Mix_ResumeMusic,Mix_SetPanning:_Mix_SetPanning,Mix_SetPosition:_Mix_SetPosition,Mix_SetPostMix:_Mix_SetPostMix,Mix_Volume:_Mix_Volume,Mix_VolumeChunk:_Mix_VolumeChunk,Mix_VolumeMusic:_Mix_VolumeMusic,SDL_AddTimer:_SDL_AddTimer,SDL_AllocRW:_SDL_AllocRW,SDL_AudioDriverName:_SDL_AudioDriverName,SDL_AudioQuit:_SDL_AudioQuit,SDL_ClearError:_SDL_ClearError,SDL_CloseAudio:_SDL_CloseAudio,SDL_CondBroadcast:_SDL_CondBroadcast,SDL_CondSignal:_SDL_CondSignal,SDL_CondWait:_SDL_CondWait,SDL_CondWaitTimeout:_SDL_CondWaitTimeout,SDL_ConvertSurface:_SDL_ConvertSurface,SDL_CreateCond:_SDL_CreateCond,SDL_CreateMutex:_SDL_CreateMutex,SDL_CreateRGBSurface:_SDL_CreateRGBSurface,SDL_CreateRGBSurfaceFrom:_SDL_CreateRGBSurfaceFrom,SDL_CreateThread:_SDL_CreateThread,SDL_Delay:_SDL_Delay,SDL_DestroyCond:_SDL_DestroyCond,SDL_DestroyMutex:_SDL_DestroyMutex,SDL_DestroyRenderer:_SDL_DestroyRenderer,SDL_DestroyWindow:_SDL_DestroyWindow,SDL_DisplayFormatAlpha:_SDL_DisplayFormatAlpha,SDL_EnableKeyRepeat:_SDL_EnableKeyRepeat,SDL_EnableUNICODE:_SDL_EnableUNICODE,SDL_FillRect:_SDL_FillRect,SDL_Flip:_SDL_Flip,SDL_FreeRW:_SDL_FreeRW,SDL_FreeSurface:_SDL_FreeSurface,SDL_GL_DeleteContext:_SDL_GL_DeleteContext,SDL_GL_ExtensionSupported:_SDL_GL_ExtensionSupported,SDL_GL_GetAttribute:_SDL_GL_GetAttribute,SDL_GL_GetSwapInterval:_SDL_GL_GetSwapInterval,SDL_GL_MakeCurrent:_SDL_GL_MakeCurrent,SDL_GL_SetAttribute:_SDL_GL_SetAttribute,SDL_GL_SetSwapInterval:_SDL_GL_SetSwapInterval,SDL_GL_SwapBuffers:_SDL_GL_SwapBuffers,SDL_GL_SwapWindow:_SDL_GL_SwapWindow,SDL_GetAppState:_SDL_GetAppState,SDL_GetAudioDriver:_SDL_GetAudioDriver,SDL_GetClipRect:_SDL_GetClipRect,SDL_GetCurrentAudioDriver:_SDL_GetCurrentAudioDriver,SDL_GetError:_SDL_GetError,SDL_GetKeyName:_SDL_GetKeyName,SDL_GetKeyState:_SDL_GetKeyState,SDL_GetKeyboardState:_SDL_GetKeyboardState,SDL_GetModState:_SDL_GetModState,SDL_GetMouseState:_SDL_GetMouseState,SDL_GetNumAudioDrivers:_SDL_GetNumAudioDrivers,SDL_GetRGB:_SDL_GetRGB,SDL_GetRGBA:_SDL_GetRGBA,SDL_GetScancodeFromKey:_SDL_GetScancodeFromKey,SDL_GetThreadID:_SDL_GetThreadID,SDL_GetTicks:_SDL_GetTicks,SDL_GetVideoInfo:_SDL_GetVideoInfo,SDL_GetVideoSurface:_SDL_GetVideoSurface,SDL_GetWindowFlags:_SDL_GetWindowFlags,SDL_GetWindowSize:_SDL_GetWindowSize,SDL_Has3DNow:_SDL_Has3DNow,SDL_Has3DNowExt:_SDL_Has3DNowExt,SDL_HasAltiVec:_SDL_HasAltiVec,SDL_HasMMX:_SDL_HasMMX,SDL_HasMMXExt:_SDL_HasMMXExt,SDL_HasRDTSC:_SDL_HasRDTSC,SDL_HasSSE:_SDL_HasSSE,SDL_HasSSE2:_SDL_HasSSE2,SDL_Init:_SDL_Init,SDL_InitSubSystem:_SDL_InitSubSystem,SDL_JoystickClose:_SDL_JoystickClose,SDL_JoystickEventState:_SDL_JoystickEventState,SDL_JoystickGetAxis:_SDL_JoystickGetAxis,SDL_JoystickGetBall:_SDL_JoystickGetBall,SDL_JoystickGetButton:_SDL_JoystickGetButton,SDL_JoystickGetHat:_SDL_JoystickGetHat,SDL_JoystickIndex:_SDL_JoystickIndex,SDL_JoystickName:_SDL_JoystickName,SDL_JoystickNumAxes:_SDL_JoystickNumAxes,SDL_JoystickNumBalls:_SDL_JoystickNumBalls,SDL_JoystickNumButtons:_SDL_JoystickNumButtons,SDL_JoystickNumHats:_SDL_JoystickNumHats,SDL_JoystickOpen:_SDL_JoystickOpen,SDL_JoystickOpened:_SDL_JoystickOpened,SDL_JoystickUpdate:_SDL_JoystickUpdate,SDL_Linked_Version:_SDL_Linked_Version,SDL_ListModes:_SDL_ListModes,SDL_LoadBMP_RW:_SDL_LoadBMP_RW,SDL_LockAudio:_SDL_LockAudio,SDL_LockSurface:_SDL_LockSurface,SDL_LogSetOutputFunction:_SDL_LogSetOutputFunction,SDL_LowerBlit:_SDL_LowerBlit,SDL_LowerBlitScaled:_SDL_LowerBlitScaled,SDL_MapRGB:_SDL_MapRGB,SDL_MapRGBA:_SDL_MapRGBA,SDL_NumJoysticks:_SDL_NumJoysticks,SDL_OpenAudio:_SDL_OpenAudio,SDL_PauseAudio:_SDL_PauseAudio,SDL_PeepEvents:_SDL_PeepEvents,SDL_PollEvent:_SDL_PollEvent,SDL_PumpEvents:_SDL_PumpEvents,SDL_PushEvent:_SDL_PushEvent,SDL_Quit:_SDL_Quit,SDL_QuitSubSystem:_SDL_QuitSubSystem,SDL_RWFromConstMem:_SDL_RWFromConstMem,SDL_RWFromFile:_SDL_RWFromFile,SDL_RWFromMem:_SDL_RWFromMem,SDL_RemoveTimer:_SDL_RemoveTimer,SDL_SaveBMP_RW:_SDL_SaveBMP_RW,SDL_SetAlpha:_SDL_SetAlpha,SDL_SetClipRect:_SDL_SetClipRect,SDL_SetColorKey:_SDL_SetColorKey,SDL_SetColors:_SDL_SetColors,SDL_SetError:_SDL_SetError,SDL_SetGamma:_SDL_SetGamma,SDL_SetGammaRamp:_SDL_SetGammaRamp,SDL_SetPalette:_SDL_SetPalette,SDL_SetVideoMode:_SDL_SetVideoMode,SDL_SetWindowFullscreen:_SDL_SetWindowFullscreen,SDL_SetWindowTitle:_SDL_SetWindowTitle,SDL_ShowCursor:_SDL_ShowCursor,SDL_StartTextInput:_SDL_StartTextInput,SDL_StopTextInput:_SDL_StopTextInput,SDL_ThreadID:_SDL_ThreadID,SDL_UnlockAudio:_SDL_UnlockAudio,SDL_UnlockSurface:_SDL_UnlockSurface,SDL_UpdateRect:_SDL_UpdateRect,SDL_UpdateRects:_SDL_UpdateRects,SDL_UpperBlit:_SDL_UpperBlit,SDL_UpperBlitScaled:_SDL_UpperBlitScaled,SDL_VideoDriverName:_SDL_VideoDriverName,SDL_VideoModeOK:_SDL_VideoModeOK,SDL_VideoQuit:_SDL_VideoQuit,SDL_WM_GrabInput:_SDL_WM_GrabInput,SDL_WM_IconifyWindow:_SDL_WM_IconifyWindow,SDL_WM_SetCaption:_SDL_WM_SetCaption,SDL_WM_SetIcon:_SDL_WM_SetIcon,SDL_WM_ToggleFullScreen:_SDL_WM_ToggleFullScreen,SDL_WaitThread:_SDL_WaitThread,SDL_WarpMouse:_SDL_WarpMouse,SDL_WasInit:_SDL_WasInit,SDL_mutexP:_SDL_mutexP,SDL_mutexV:_SDL_mutexV,TTF_CloseFont:_TTF_CloseFont,TTF_FontAscent:_TTF_FontAscent,TTF_FontDescent:_TTF_FontDescent,TTF_FontHeight:_TTF_FontHeight,TTF_FontLineSkip:_TTF_FontLineSkip,TTF_GlyphMetrics:_TTF_GlyphMetrics,TTF_Init:_TTF_Init,TTF_OpenFont:_TTF_OpenFont,TTF_Quit:_TTF_Quit,TTF_RenderText_Blended:_TTF_RenderText_Blended,TTF_RenderText_Shaded:_TTF_RenderText_Shaded,TTF_RenderText_Solid:_TTF_RenderText_Solid,TTF_RenderUTF8_Solid:_TTF_RenderUTF8_Solid,TTF_SizeText:_TTF_SizeText,TTF_SizeUTF8:_TTF_SizeUTF8,XChangeWindowAttributes:_XChangeWindowAttributes,XCreateWindow:_XCreateWindow,XInternAtom:_XInternAtom,XMapWindow:_XMapWindow,XOpenDisplay:_XOpenDisplay,XPending:_XPending,XSendEvent:_XSendEvent,XSetWMHints:_XSetWMHints,XStoreName:_XStoreName,_Unwind_Backtrace:__Unwind_Backtrace,_Unwind_FindEnclosingFunction:__Unwind_FindEnclosingFunction,_Unwind_GetIPInfo:__Unwind_GetIPInfo,_ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm:__ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm,__asctime_r:___asctime_r,__assert_fail:___assert_fail,__c_longjmp:___c_longjmp,__call_sighandler:___call_sighandler,__cpp_exception:___cpp_exception,__emscripten_init_main_thread_js:___emscripten_init_main_thread_js,__emscripten_thread_cleanup:___emscripten_thread_cleanup,__global_base:___global_base,__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__pthread_create_js:___pthread_create_js,__pthread_kill_js:___pthread_kill_js,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__syscall__newselect:___syscall__newselect,__syscall_accept4:___syscall_accept4,__syscall_bind:___syscall_bind,__syscall_chdir:___syscall_chdir,__syscall_chmod:___syscall_chmod,__syscall_connect:___syscall_connect,__syscall_dup:___syscall_dup,__syscall_dup3:___syscall_dup3,__syscall_faccessat:___syscall_faccessat,__syscall_fadvise64:___syscall_fadvise64,__syscall_fallocate:___syscall_fallocate,__syscall_fchdir:___syscall_fchdir,__syscall_fchmod:___syscall_fchmod,__syscall_fchmodat2:___syscall_fchmodat2,__syscall_fchown32:___syscall_fchown32,__syscall_fchownat:___syscall_fchownat,__syscall_fcntl64:___syscall_fcntl64,__syscall_fdatasync:___syscall_fdatasync,__syscall_fstat64:___syscall_fstat64,__syscall_fstatfs64:___syscall_fstatfs64,__syscall_ftruncate64:___syscall_ftruncate64,__syscall_getcwd:___syscall_getcwd,__syscall_getdents64:___syscall_getdents64,__syscall_getpeername:___syscall_getpeername,__syscall_getsockname:___syscall_getsockname,__syscall_getsockopt:___syscall_getsockopt,__syscall_ioctl:___syscall_ioctl,__syscall_listen:___syscall_listen,__syscall_lstat64:___syscall_lstat64,__syscall_mkdirat:___syscall_mkdirat,__syscall_mknodat:___syscall_mknodat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_pipe:___syscall_pipe,__syscall_poll:___syscall_poll,__syscall_readlinkat:___syscall_readlinkat,__syscall_recvfrom:___syscall_recvfrom,__syscall_recvmsg:___syscall_recvmsg,__syscall_renameat:___syscall_renameat,__syscall_rmdir:___syscall_rmdir,__syscall_sendmsg:___syscall_sendmsg,__syscall_sendto:___syscall_sendto,__syscall_socket:___syscall_socket,__syscall_stat64:___syscall_stat64,__syscall_statfs64:___syscall_statfs64,__syscall_symlink:___syscall_symlink,__syscall_symlinkat:___syscall_symlinkat,__syscall_truncate64:___syscall_truncate64,__syscall_unlinkat:___syscall_unlinkat,__syscall_utimensat:___syscall_utimensat,__table_base:___table_base,_dlopen_js:__dlopen_js,_dlsym_catchup_js:__dlsym_catchup_js,_dlsym_js:__dlsym_js,_embind_create_inheriting_constructor:__embind_create_inheriting_constructor,_embind_finalize_value_array:__embind_finalize_value_array,_embind_finalize_value_object:__embind_finalize_value_object,_embind_register_bigint:__embind_register_bigint,_embind_register_bool:__embind_register_bool,_embind_register_class:__embind_register_class,_embind_register_class_class_function:__embind_register_class_class_function,_embind_register_class_class_property:__embind_register_class_class_property,_embind_register_class_constructor:__embind_register_class_constructor,_embind_register_class_function:__embind_register_class_function,_embind_register_class_property:__embind_register_class_property,_embind_register_constant:__embind_register_constant,_embind_register_emval:__embind_register_emval,_embind_register_enum:__embind_register_enum,_embind_register_enum_value:__embind_register_enum_value,_embind_register_float:__embind_register_float,_embind_register_function:__embind_register_function,_embind_register_integer:__embind_register_integer,_embind_register_memory_view:__embind_register_memory_view,_embind_register_optional:__embind_register_optional,_embind_register_smart_ptr:__embind_register_smart_ptr,_embind_register_std_string:__embind_register_std_string,_embind_register_std_wstring:__embind_register_std_wstring,_embind_register_user_type:__embind_register_user_type,_embind_register_value_array:__embind_register_value_array,_embind_register_value_array_element:__embind_register_value_array_element,_embind_register_value_object:__embind_register_value_object,_embind_register_value_object_field:__embind_register_value_object_field,_embind_register_void:__embind_register_void,_emscripten_dlopen_js:__emscripten_dlopen_js,_emscripten_dlsync_threads:__emscripten_dlsync_threads,_emscripten_dlsync_threads_async:__emscripten_dlsync_threads_async,_emscripten_fs_load_embedded_files:__emscripten_fs_load_embedded_files,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_get_progname:__emscripten_get_progname,_emscripten_lookup_name:__emscripten_lookup_name,_emscripten_notify_mailbox_postmessage:__emscripten_notify_mailbox_postmessage,_emscripten_push_main_loop_blocker:__emscripten_push_main_loop_blocker,_emscripten_push_uncounted_main_loop_blocker:__emscripten_push_uncounted_main_loop_blocker,_emscripten_receive_on_main_thread_js:__emscripten_receive_on_main_thread_js,_emscripten_runtime_keepalive_clear:__emscripten_runtime_keepalive_clear,_emscripten_set_offscreencanvas_size:__emscripten_set_offscreencanvas_size,_emscripten_system:__emscripten_system,_emscripten_thread_exit_joinable:__emscripten_thread_exit_joinable,_emscripten_thread_mailbox_await:__emscripten_thread_mailbox_await,_emscripten_thread_set_strongref:__emscripten_thread_set_strongref,_emval_as:__emval_as,_emval_as_int64:__emval_as_int64,_emval_as_uint64:__emval_as_uint64,_emval_call:__emval_call,_emval_call_method:__emval_call_method,_emval_coro_make_promise:__emval_coro_make_promise,_emval_coro_suspend:__emval_coro_suspend,_emval_decref:__emval_decref,_emval_delete:__emval_delete,_emval_equals:__emval_equals,_emval_get_global:__emval_get_global,_emval_get_method_caller:__emval_get_method_caller,_emval_get_module_property:__emval_get_module_property,_emval_get_property:__emval_get_property,_emval_greater_than:__emval_greater_than,_emval_in:__emval_in,_emval_incref:__emval_incref,_emval_instanceof:__emval_instanceof,_emval_is_number:__emval_is_number,_emval_is_string:__emval_is_string,_emval_iter_begin:__emval_iter_begin,_emval_iter_next:__emval_iter_next,_emval_less_than:__emval_less_than,_emval_new_array:__emval_new_array,_emval_new_array_from_memory_view:__emval_new_array_from_memory_view,_emval_new_cstring:__emval_new_cstring,_emval_new_object:__emval_new_object,_emval_new_u16string:__emval_new_u16string,_emval_new_u8string:__emval_new_u8string,_emval_not:__emval_not,_emval_register_symbol:__emval_register_symbol,_emval_run_destructors:__emval_run_destructors,_emval_set_property:__emval_set_property,_emval_strictly_equals:__emval_strictly_equals,_emval_take_value:__emval_take_value,_emval_throw:__emval_throw,_emval_typeof:__emval_typeof,_glGetActiveAttribOrUniform:__glGetActiveAttribOrUniform,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_mktime_js:__mktime_js,_mmap_js:__mmap_js,_msync_js:__msync_js,_munmap_js:__munmap_js,_setitimer_js:__setitimer_js,_timegm_js:__timegm_js,_tzset_js:__tzset_js,abort:_abort,alBuffer3f:_alBuffer3f,alBuffer3i:_alBuffer3i,alBufferData:_alBufferData,alBufferf:_alBufferf,alBufferfv:_alBufferfv,alBufferi:_alBufferi,alBufferiv:_alBufferiv,alDeleteBuffers:_alDeleteBuffers,alDeleteSources:_alDeleteSources,alDisable:_alDisable,alDistanceModel:_alDistanceModel,alDopplerFactor:_alDopplerFactor,alDopplerVelocity:_alDopplerVelocity,alEnable:_alEnable,alGenBuffers:_alGenBuffers,alGenSources:_alGenSources,alGetBoolean:_alGetBoolean,alGetBooleanv:_alGetBooleanv,alGetBuffer3f:_alGetBuffer3f,alGetBuffer3i:_alGetBuffer3i,alGetBufferf:_alGetBufferf,alGetBufferfv:_alGetBufferfv,alGetBufferi:_alGetBufferi,alGetBufferiv:_alGetBufferiv,alGetDouble:_alGetDouble,alGetDoublev:_alGetDoublev,alGetEnumValue:_alGetEnumValue,alGetError:_alGetError,alGetFloat:_alGetFloat,alGetFloatv:_alGetFloatv,alGetInteger:_alGetInteger,alGetIntegerv:_alGetIntegerv,alGetListener3f:_alGetListener3f,alGetListener3i:_alGetListener3i,alGetListenerf:_alGetListenerf,alGetListenerfv:_alGetListenerfv,alGetListeneri:_alGetListeneri,alGetListeneriv:_alGetListeneriv,alGetSource3f:_alGetSource3f,alGetSource3i:_alGetSource3i,alGetSourcef:_alGetSourcef,alGetSourcefv:_alGetSourcefv,alGetSourcei:_alGetSourcei,alGetSourceiv:_alGetSourceiv,alGetString:_alGetString,alIsBuffer:_alIsBuffer,alIsEnabled:_alIsEnabled,alIsExtensionPresent:_alIsExtensionPresent,alIsSource:_alIsSource,alListener3f:_alListener3f,alListener3i:_alListener3i,alListenerf:_alListenerf,alListenerfv:_alListenerfv,alListeneri:_alListeneri,alListeneriv:_alListeneriv,alSource3f:_alSource3f,alSource3i:_alSource3i,alSourcePause:_alSourcePause,alSourcePausev:_alSourcePausev,alSourcePlay:_alSourcePlay,alSourcePlayv:_alSourcePlayv,alSourceQueueBuffers:_alSourceQueueBuffers,alSourceRewind:_alSourceRewind,alSourceRewindv:_alSourceRewindv,alSourceStop:_alSourceStop,alSourceStopv:_alSourceStopv,alSourceUnqueueBuffers:_alSourceUnqueueBuffers,alSourcef:_alSourcef,alSourcefv:_alSourcefv,alSourcei:_alSourcei,alSourceiv:_alSourceiv,alSpeedOfSound:_alSpeedOfSound,alcCaptureCloseDevice:_alcCaptureCloseDevice,alcCaptureOpenDevice:_alcCaptureOpenDevice,alcCaptureSamples:_alcCaptureSamples,alcCaptureStart:_alcCaptureStart,alcCaptureStop:_alcCaptureStop,alcCloseDevice:_alcCloseDevice,alcCreateContext:_alcCreateContext,alcDestroyContext:_alcDestroyContext,alcGetContextsDevice:_alcGetContextsDevice,alcGetCurrentContext:_alcGetCurrentContext,alcGetEnumValue:_alcGetEnumValue,alcGetError:_alcGetError,alcGetIntegerv:_alcGetIntegerv,alcGetString:_alcGetString,alcIsExtensionPresent:_alcIsExtensionPresent,alcMakeContextCurrent:_alcMakeContextCurrent,alcOpenDevice:_alcOpenDevice,alcProcessContext:_alcProcessContext,alcSuspendContext:_alcSuspendContext,boxColor:_boxColor,boxRGBA:_boxRGBA,clock_res_get:_clock_res_get,clock_time_get:_clock_time_get,duckdb_web_fs_directory_create:_duckdb_web_fs_directory_create,duckdb_web_fs_directory_exists:_duckdb_web_fs_directory_exists,duckdb_web_fs_directory_list_files:_duckdb_web_fs_directory_list_files,duckdb_web_fs_directory_remove:_duckdb_web_fs_directory_remove,duckdb_web_fs_file_close:_duckdb_web_fs_file_close,duckdb_web_fs_file_exists:_duckdb_web_fs_file_exists,duckdb_web_fs_file_get_last_modified_time:_duckdb_web_fs_file_get_last_modified_time,duckdb_web_fs_file_move:_duckdb_web_fs_file_move,duckdb_web_fs_file_open:_duckdb_web_fs_file_open,duckdb_web_fs_file_read:_duckdb_web_fs_file_read,duckdb_web_fs_file_remove:_duckdb_web_fs_file_remove,duckdb_web_fs_file_sync:_duckdb_web_fs_file_sync,duckdb_web_fs_file_truncate:_duckdb_web_fs_file_truncate,duckdb_web_fs_file_write:_duckdb_web_fs_file_write,duckdb_web_fs_get_default_data_protocol:_duckdb_web_fs_get_default_data_protocol,duckdb_web_fs_glob:_duckdb_web_fs_glob,duckdb_web_test_platform_feature:_duckdb_web_test_platform_feature,duckdb_web_udf_scalar_call:_duckdb_web_udf_scalar_call,eglBindAPI:_eglBindAPI,eglChooseConfig:_eglChooseConfig,eglCreateContext:_eglCreateContext,eglCreateWindowSurface:_eglCreateWindowSurface,eglDestroyContext:_eglDestroyContext,eglDestroySurface:_eglDestroySurface,eglGetConfigAttrib:_eglGetConfigAttrib,eglGetConfigs:_eglGetConfigs,eglGetCurrentContext:_eglGetCurrentContext,eglGetCurrentDisplay:_eglGetCurrentDisplay,eglGetCurrentSurface:_eglGetCurrentSurface,eglGetDisplay:_eglGetDisplay,eglGetError:_eglGetError,eglInitialize:_eglInitialize,eglMakeCurrent:_eglMakeCurrent,eglQueryAPI:_eglQueryAPI,eglQueryContext:_eglQueryContext,eglQueryString:_eglQueryString,eglQuerySurface:_eglQuerySurface,eglReleaseThread:_eglReleaseThread,eglSwapBuffers:_eglSwapBuffers,eglSwapInterval:_eglSwapInterval,eglTerminate:_eglTerminate,eglWaitClient:_eglWaitClient,eglWaitGL:_eglWaitGL,eglWaitNative:_eglWaitNative,ellipseColor:_ellipseColor,ellipseRGBA:_ellipseRGBA,emscripten_SDL_SetEventHandler:_emscripten_SDL_SetEventHandler,emscripten_alcDevicePauseSOFT:_emscripten_alcDevicePauseSOFT,emscripten_alcDeviceResumeSOFT:_emscripten_alcDeviceResumeSOFT,emscripten_alcGetStringiSOFT:_emscripten_alcGetStringiSOFT,emscripten_alcResetDeviceSOFT:_emscripten_alcResetDeviceSOFT,emscripten_asm_const_async_on_main_thread:_emscripten_asm_const_async_on_main_thread,emscripten_asm_const_double:_emscripten_asm_const_double,emscripten_asm_const_double_sync_on_main_thread:_emscripten_asm_const_double_sync_on_main_thread,emscripten_asm_const_int:_emscripten_asm_const_int,emscripten_asm_const_int_sync_on_main_thread:_emscripten_asm_const_int_sync_on_main_thread,emscripten_asm_const_ptr:_emscripten_asm_const_ptr,emscripten_asm_const_ptr_sync_on_main_thread:_emscripten_asm_const_ptr_sync_on_main_thread,emscripten_async_call:_emscripten_async_call,emscripten_async_load_script:_emscripten_async_load_script,emscripten_async_run_script:_emscripten_async_run_script,emscripten_async_wget:_emscripten_async_wget,emscripten_async_wget2:_emscripten_async_wget2,emscripten_async_wget2_abort:_emscripten_async_wget2_abort,emscripten_async_wget2_data:_emscripten_async_wget2_data,emscripten_async_wget_data:_emscripten_async_wget_data,emscripten_atomic_cancel_all_wait_asyncs:_emscripten_atomic_cancel_all_wait_asyncs,emscripten_atomic_cancel_all_wait_asyncs_at_address:_emscripten_atomic_cancel_all_wait_asyncs_at_address,emscripten_atomic_cancel_wait_async:_emscripten_atomic_cancel_wait_async,emscripten_atomic_wait_async:_emscripten_atomic_wait_async,emscripten_call_worker:_emscripten_call_worker,emscripten_cancel_animation_frame:_emscripten_cancel_animation_frame,emscripten_cancel_main_loop:_emscripten_cancel_main_loop,emscripten_check_blocking_allowed:_emscripten_check_blocking_allowed,emscripten_clear_immediate:_emscripten_clear_immediate,emscripten_clear_interval:_emscripten_clear_interval,emscripten_clear_timeout:_emscripten_clear_timeout,emscripten_console_error:_emscripten_console_error,emscripten_console_log:_emscripten_console_log,emscripten_console_warn:_emscripten_console_warn,emscripten_create_worker:_emscripten_create_worker,emscripten_date_now:_emscripten_date_now,emscripten_debugger:_emscripten_debugger,emscripten_destroy_worker:_emscripten_destroy_worker,emscripten_enter_soft_fullscreen:_emscripten_enter_soft_fullscreen,emscripten_err:_emscripten_err,emscripten_errn:_emscripten_errn,emscripten_exit_fullscreen:_emscripten_exit_fullscreen,emscripten_exit_pointerlock:_emscripten_exit_pointerlock,emscripten_exit_soft_fullscreen:_emscripten_exit_soft_fullscreen,emscripten_exit_with_live_runtime:_emscripten_exit_with_live_runtime,emscripten_fiber_swap:_emscripten_fiber_swap,emscripten_force_exit:_emscripten_force_exit,emscripten_get_battery_status:_emscripten_get_battery_status,emscripten_get_callstack:_emscripten_get_callstack,emscripten_get_canvas_element_size:_emscripten_get_canvas_element_size,emscripten_get_canvas_size:_emscripten_get_canvas_size,emscripten_get_compiler_setting:_emscripten_get_compiler_setting,emscripten_get_device_pixel_ratio:_emscripten_get_device_pixel_ratio,emscripten_get_devicemotion_status:_emscripten_get_devicemotion_status,emscripten_get_deviceorientation_status:_emscripten_get_deviceorientation_status,emscripten_get_element_css_size:_emscripten_get_element_css_size,emscripten_get_fullscreen_status:_emscripten_get_fullscreen_status,emscripten_get_gamepad_status:_emscripten_get_gamepad_status,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_main_loop_timing:_emscripten_get_main_loop_timing,emscripten_get_module_name:_emscripten_get_module_name,emscripten_get_mouse_status:_emscripten_get_mouse_status,emscripten_get_now:_emscripten_get_now,emscripten_get_now_res:_emscripten_get_now_res,emscripten_get_num_gamepads:_emscripten_get_num_gamepads,emscripten_get_orientation_status:_emscripten_get_orientation_status,emscripten_get_pointerlock_status:_emscripten_get_pointerlock_status,emscripten_get_preloaded_image_data:_emscripten_get_preloaded_image_data,emscripten_get_preloaded_image_data_from_FILE:_emscripten_get_preloaded_image_data_from_FILE,emscripten_get_screen_size:_emscripten_get_screen_size,emscripten_get_visibility_status:_emscripten_get_visibility_status,emscripten_get_window_title:_emscripten_get_window_title,emscripten_get_worker_queue_size:_emscripten_get_worker_queue_size,emscripten_glActiveTexture:_emscripten_glActiveTexture,emscripten_glAttachShader:_emscripten_glAttachShader,emscripten_glBegin:_emscripten_glBegin,emscripten_glBeginQueryEXT:_emscripten_glBeginQueryEXT,emscripten_glBindAttribLocation:_emscripten_glBindAttribLocation,emscripten_glBindBuffer:_emscripten_glBindBuffer,emscripten_glBindFramebuffer:_emscripten_glBindFramebuffer,emscripten_glBindRenderbuffer:_emscripten_glBindRenderbuffer,emscripten_glBindTexture:_emscripten_glBindTexture,emscripten_glBindVertexArray:_emscripten_glBindVertexArray,emscripten_glBindVertexArrayOES:_emscripten_glBindVertexArrayOES,emscripten_glBlendColor:_emscripten_glBlendColor,emscripten_glBlendEquation:_emscripten_glBlendEquation,emscripten_glBlendEquationSeparate:_emscripten_glBlendEquationSeparate,emscripten_glBlendFunc:_emscripten_glBlendFunc,emscripten_glBlendFuncSeparate:_emscripten_glBlendFuncSeparate,emscripten_glBufferData:_emscripten_glBufferData,emscripten_glBufferSubData:_emscripten_glBufferSubData,emscripten_glCheckFramebufferStatus:_emscripten_glCheckFramebufferStatus,emscripten_glClear:_emscripten_glClear,emscripten_glClearColor:_emscripten_glClearColor,emscripten_glClearDepth:_emscripten_glClearDepth,emscripten_glClearDepthf:_emscripten_glClearDepthf,emscripten_glClearStencil:_emscripten_glClearStencil,emscripten_glColorMask:_emscripten_glColorMask,emscripten_glCompileShader:_emscripten_glCompileShader,emscripten_glCompressedTexImage2D:_emscripten_glCompressedTexImage2D,emscripten_glCompressedTexSubImage2D:_emscripten_glCompressedTexSubImage2D,emscripten_glCopyTexImage2D:_emscripten_glCopyTexImage2D,emscripten_glCopyTexSubImage2D:_emscripten_glCopyTexSubImage2D,emscripten_glCreateProgram:_emscripten_glCreateProgram,emscripten_glCreateShader:_emscripten_glCreateShader,emscripten_glCullFace:_emscripten_glCullFace,emscripten_glDeleteBuffers:_emscripten_glDeleteBuffers,emscripten_glDeleteFramebuffers:_emscripten_glDeleteFramebuffers,emscripten_glDeleteProgram:_emscripten_glDeleteProgram,emscripten_glDeleteQueriesEXT:_emscripten_glDeleteQueriesEXT,emscripten_glDeleteRenderbuffers:_emscripten_glDeleteRenderbuffers,emscripten_glDeleteShader:_emscripten_glDeleteShader,emscripten_glDeleteTextures:_emscripten_glDeleteTextures,emscripten_glDeleteVertexArrays:_emscripten_glDeleteVertexArrays,emscripten_glDeleteVertexArraysOES:_emscripten_glDeleteVertexArraysOES,emscripten_glDepthFunc:_emscripten_glDepthFunc,emscripten_glDepthMask:_emscripten_glDepthMask,emscripten_glDepthRange:_emscripten_glDepthRange,emscripten_glDepthRangef:_emscripten_glDepthRangef,emscripten_glDetachShader:_emscripten_glDetachShader,emscripten_glDisable:_emscripten_glDisable,emscripten_glDisableVertexAttribArray:_emscripten_glDisableVertexAttribArray,emscripten_glDrawArrays:_emscripten_glDrawArrays,emscripten_glDrawArraysInstanced:_emscripten_glDrawArraysInstanced,emscripten_glDrawArraysInstancedANGLE:_emscripten_glDrawArraysInstancedANGLE,emscripten_glDrawArraysInstancedARB:_emscripten_glDrawArraysInstancedARB,emscripten_glDrawArraysInstancedEXT:_emscripten_glDrawArraysInstancedEXT,emscripten_glDrawArraysInstancedNV:_emscripten_glDrawArraysInstancedNV,emscripten_glDrawBuffers:_emscripten_glDrawBuffers,emscripten_glDrawBuffersEXT:_emscripten_glDrawBuffersEXT,emscripten_glDrawBuffersWEBGL:_emscripten_glDrawBuffersWEBGL,emscripten_glDrawElements:_emscripten_glDrawElements,emscripten_glDrawElementsInstanced:_emscripten_glDrawElementsInstanced,emscripten_glDrawElementsInstancedANGLE:_emscripten_glDrawElementsInstancedANGLE,emscripten_glDrawElementsInstancedARB:_emscripten_glDrawElementsInstancedARB,emscripten_glDrawElementsInstancedEXT:_emscripten_glDrawElementsInstancedEXT,emscripten_glDrawElementsInstancedNV:_emscripten_glDrawElementsInstancedNV,emscripten_glEnable:_emscripten_glEnable,emscripten_glEnableVertexAttribArray:_emscripten_glEnableVertexAttribArray,emscripten_glEndQueryEXT:_emscripten_glEndQueryEXT,emscripten_glFinish:_emscripten_glFinish,emscripten_glFlush:_emscripten_glFlush,emscripten_glFramebufferRenderbuffer:_emscripten_glFramebufferRenderbuffer,emscripten_glFramebufferTexture2D:_emscripten_glFramebufferTexture2D,emscripten_glFrontFace:_emscripten_glFrontFace,emscripten_glGenBuffers:_emscripten_glGenBuffers,emscripten_glGenFramebuffers:_emscripten_glGenFramebuffers,emscripten_glGenQueriesEXT:_emscripten_glGenQueriesEXT,emscripten_glGenRenderbuffers:_emscripten_glGenRenderbuffers,emscripten_glGenTextures:_emscripten_glGenTextures,emscripten_glGenVertexArrays:_emscripten_glGenVertexArrays,emscripten_glGenVertexArraysOES:_emscripten_glGenVertexArraysOES,emscripten_glGenerateMipmap:_emscripten_glGenerateMipmap,emscripten_glGetActiveAttrib:_emscripten_glGetActiveAttrib,emscripten_glGetActiveUniform:_emscripten_glGetActiveUniform,emscripten_glGetAttachedShaders:_emscripten_glGetAttachedShaders,emscripten_glGetAttribLocation:_emscripten_glGetAttribLocation,emscripten_glGetBooleanv:_emscripten_glGetBooleanv,emscripten_glGetBufferParameteriv:_emscripten_glGetBufferParameteriv,emscripten_glGetError:_emscripten_glGetError,emscripten_glGetFloatv:_emscripten_glGetFloatv,emscripten_glGetFramebufferAttachmentParameteriv:_emscripten_glGetFramebufferAttachmentParameteriv,emscripten_glGetIntegerv:_emscripten_glGetIntegerv,emscripten_glGetProgramInfoLog:_emscripten_glGetProgramInfoLog,emscripten_glGetProgramiv:_emscripten_glGetProgramiv,emscripten_glGetQueryObjecti64vEXT:_emscripten_glGetQueryObjecti64vEXT,emscripten_glGetQueryObjectivEXT:_emscripten_glGetQueryObjectivEXT,emscripten_glGetQueryObjectui64vEXT:_emscripten_glGetQueryObjectui64vEXT,emscripten_glGetQueryObjectuivEXT:_emscripten_glGetQueryObjectuivEXT,emscripten_glGetQueryivEXT:_emscripten_glGetQueryivEXT,emscripten_glGetRenderbufferParameteriv:_emscripten_glGetRenderbufferParameteriv,emscripten_glGetShaderInfoLog:_emscripten_glGetShaderInfoLog,emscripten_glGetShaderPrecisionFormat:_emscripten_glGetShaderPrecisionFormat,emscripten_glGetShaderSource:_emscripten_glGetShaderSource,emscripten_glGetShaderiv:_emscripten_glGetShaderiv,emscripten_glGetString:_emscripten_glGetString,emscripten_glGetTexParameterfv:_emscripten_glGetTexParameterfv,emscripten_glGetTexParameteriv:_emscripten_glGetTexParameteriv,emscripten_glGetUniformLocation:_emscripten_glGetUniformLocation,emscripten_glGetUniformfv:_emscripten_glGetUniformfv,emscripten_glGetUniformiv:_emscripten_glGetUniformiv,emscripten_glGetVertexAttribPointerv:_emscripten_glGetVertexAttribPointerv,emscripten_glGetVertexAttribfv:_emscripten_glGetVertexAttribfv,emscripten_glGetVertexAttribiv:_emscripten_glGetVertexAttribiv,emscripten_glHint:_emscripten_glHint,emscripten_glIsBuffer:_emscripten_glIsBuffer,emscripten_glIsEnabled:_emscripten_glIsEnabled,emscripten_glIsFramebuffer:_emscripten_glIsFramebuffer,emscripten_glIsProgram:_emscripten_glIsProgram,emscripten_glIsQueryEXT:_emscripten_glIsQueryEXT,emscripten_glIsRenderbuffer:_emscripten_glIsRenderbuffer,emscripten_glIsShader:_emscripten_glIsShader,emscripten_glIsTexture:_emscripten_glIsTexture,emscripten_glIsVertexArray:_emscripten_glIsVertexArray,emscripten_glIsVertexArrayOES:_emscripten_glIsVertexArrayOES,emscripten_glLineWidth:_emscripten_glLineWidth,emscripten_glLinkProgram:_emscripten_glLinkProgram,emscripten_glLoadIdentity:_emscripten_glLoadIdentity,emscripten_glMatrixMode:_emscripten_glMatrixMode,emscripten_glMultiDrawArrays:_emscripten_glMultiDrawArrays,emscripten_glMultiDrawArraysANGLE:_emscripten_glMultiDrawArraysANGLE,emscripten_glMultiDrawArraysInstancedANGLE:_emscripten_glMultiDrawArraysInstancedANGLE,emscripten_glMultiDrawArraysInstancedWEBGL:_emscripten_glMultiDrawArraysInstancedWEBGL,emscripten_glMultiDrawArraysWEBGL:_emscripten_glMultiDrawArraysWEBGL,emscripten_glMultiDrawElements:_emscripten_glMultiDrawElements,emscripten_glMultiDrawElementsANGLE:_emscripten_glMultiDrawElementsANGLE,emscripten_glMultiDrawElementsInstancedANGLE:_emscripten_glMultiDrawElementsInstancedANGLE,emscripten_glMultiDrawElementsInstancedWEBGL:_emscripten_glMultiDrawElementsInstancedWEBGL,emscripten_glMultiDrawElementsWEBGL:_emscripten_glMultiDrawElementsWEBGL,emscripten_glPixelStorei:_emscripten_glPixelStorei,emscripten_glPolygonOffset:_emscripten_glPolygonOffset,emscripten_glQueryCounterEXT:_emscripten_glQueryCounterEXT,emscripten_glReadPixels:_emscripten_glReadPixels,emscripten_glReleaseShaderCompiler:_emscripten_glReleaseShaderCompiler,emscripten_glRenderbufferStorage:_emscripten_glRenderbufferStorage,emscripten_glSampleCoverage:_emscripten_glSampleCoverage,emscripten_glScissor:_emscripten_glScissor,emscripten_glShaderBinary:_emscripten_glShaderBinary,emscripten_glShaderSource:_emscripten_glShaderSource,emscripten_glStencilFunc:_emscripten_glStencilFunc,emscripten_glStencilFuncSeparate:_emscripten_glStencilFuncSeparate,emscripten_glStencilMask:_emscripten_glStencilMask,emscripten_glStencilMaskSeparate:_emscripten_glStencilMaskSeparate,emscripten_glStencilOp:_emscripten_glStencilOp,emscripten_glStencilOpSeparate:_emscripten_glStencilOpSeparate,emscripten_glTexImage2D:_emscripten_glTexImage2D,emscripten_glTexParameterf:_emscripten_glTexParameterf,emscripten_glTexParameterfv:_emscripten_glTexParameterfv,emscripten_glTexParameteri:_emscripten_glTexParameteri,emscripten_glTexParameteriv:_emscripten_glTexParameteriv,emscripten_glTexSubImage2D:_emscripten_glTexSubImage2D,emscripten_glUniform1f:_emscripten_glUniform1f,emscripten_glUniform1fv:_emscripten_glUniform1fv,emscripten_glUniform1i:_emscripten_glUniform1i,emscripten_glUniform1iv:_emscripten_glUniform1iv,emscripten_glUniform2f:_emscripten_glUniform2f,emscripten_glUniform2fv:_emscripten_glUniform2fv,emscripten_glUniform2i:_emscripten_glUniform2i,emscripten_glUniform2iv:_emscripten_glUniform2iv,emscripten_glUniform3f:_emscripten_glUniform3f,emscripten_glUniform3fv:_emscripten_glUniform3fv,emscripten_glUniform3i:_emscripten_glUniform3i,emscripten_glUniform3iv:_emscripten_glUniform3iv,emscripten_glUniform4f:_emscripten_glUniform4f,emscripten_glUniform4fv:_emscripten_glUniform4fv,emscripten_glUniform4i:_emscripten_glUniform4i,emscripten_glUniform4iv:_emscripten_glUniform4iv,emscripten_glUniformMatrix2fv:_emscripten_glUniformMatrix2fv,emscripten_glUniformMatrix3fv:_emscripten_glUniformMatrix3fv,emscripten_glUniformMatrix4fv:_emscripten_glUniformMatrix4fv,emscripten_glUseProgram:_emscripten_glUseProgram,emscripten_glValidateProgram:_emscripten_glValidateProgram,emscripten_glVertexAttrib1f:_emscripten_glVertexAttrib1f,emscripten_glVertexAttrib1fv:_emscripten_glVertexAttrib1fv,emscripten_glVertexAttrib2f:_emscripten_glVertexAttrib2f,emscripten_glVertexAttrib2fv:_emscripten_glVertexAttrib2fv,emscripten_glVertexAttrib3f:_emscripten_glVertexAttrib3f,emscripten_glVertexAttrib3fv:_emscripten_glVertexAttrib3fv,emscripten_glVertexAttrib4f:_emscripten_glVertexAttrib4f,emscripten_glVertexAttrib4fv:_emscripten_glVertexAttrib4fv,emscripten_glVertexAttribDivisor:_emscripten_glVertexAttribDivisor,emscripten_glVertexAttribDivisorANGLE:_emscripten_glVertexAttribDivisorANGLE,emscripten_glVertexAttribDivisorARB:_emscripten_glVertexAttribDivisorARB,emscripten_glVertexAttribDivisorEXT:_emscripten_glVertexAttribDivisorEXT,emscripten_glVertexAttribDivisorNV:_emscripten_glVertexAttribDivisorNV,emscripten_glVertexAttribPointer:_emscripten_glVertexAttribPointer,emscripten_glVertexPointer:_emscripten_glVertexPointer,emscripten_glViewport:_emscripten_glViewport,emscripten_has_asyncify:_emscripten_has_asyncify,emscripten_has_threading_support:_emscripten_has_threading_support,emscripten_hide_mouse:_emscripten_hide_mouse,emscripten_html5_remove_all_event_listeners:_emscripten_html5_remove_all_event_listeners,emscripten_idb_async_clear:_emscripten_idb_async_clear,emscripten_idb_async_delete:_emscripten_idb_async_delete,emscripten_idb_async_exists:_emscripten_idb_async_exists,emscripten_idb_async_load:_emscripten_idb_async_load,emscripten_idb_async_store:_emscripten_idb_async_store,emscripten_idb_clear:_emscripten_idb_clear,emscripten_idb_delete:_emscripten_idb_delete,emscripten_idb_exists:_emscripten_idb_exists,emscripten_idb_load:_emscripten_idb_load,emscripten_idb_store:_emscripten_idb_store,emscripten_is_webgl_context_lost:_emscripten_is_webgl_context_lost,emscripten_lock_orientation:_emscripten_lock_orientation,emscripten_log:_emscripten_log,emscripten_math_acos:_emscripten_math_acos,emscripten_math_acosh:_emscripten_math_acosh,emscripten_math_asin:_emscripten_math_asin,emscripten_math_asinh:_emscripten_math_asinh,emscripten_math_atan:_emscripten_math_atan,emscripten_math_atan2:_emscripten_math_atan2,emscripten_math_atanh:_emscripten_math_atanh,emscripten_math_cbrt:_emscripten_math_cbrt,emscripten_math_cos:_emscripten_math_cos,emscripten_math_cosh:_emscripten_math_cosh,emscripten_math_exp:_emscripten_math_exp,emscripten_math_expm1:_emscripten_math_expm1,emscripten_math_fmod:_emscripten_math_fmod,emscripten_math_hypot:_emscripten_math_hypot,emscripten_math_log:_emscripten_math_log,emscripten_math_log10:_emscripten_math_log10,emscripten_math_log1p:_emscripten_math_log1p,emscripten_math_log2:_emscripten_math_log2,emscripten_math_pow:_emscripten_math_pow,emscripten_math_random:_emscripten_math_random,emscripten_math_round:_emscripten_math_round,emscripten_math_sign:_emscripten_math_sign,emscripten_math_sin:_emscripten_math_sin,emscripten_math_sinh:_emscripten_math_sinh,emscripten_math_sqrt:_emscripten_math_sqrt,emscripten_math_tan:_emscripten_math_tan,emscripten_math_tanh:_emscripten_math_tanh,emscripten_notify_memory_growth:_emscripten_notify_memory_growth,emscripten_num_logical_cores:_emscripten_num_logical_cores,emscripten_out:_emscripten_out,emscripten_outn:_emscripten_outn,emscripten_pause_main_loop:_emscripten_pause_main_loop,emscripten_pc_get_column:_emscripten_pc_get_column,emscripten_pc_get_file:_emscripten_pc_get_file,emscripten_pc_get_function:_emscripten_pc_get_function,emscripten_pc_get_line:_emscripten_pc_get_line,emscripten_performance_now:_emscripten_performance_now,emscripten_print_double:_emscripten_print_double,emscripten_promise_all:_emscripten_promise_all,emscripten_promise_all_settled:_emscripten_promise_all_settled,emscripten_promise_any:_emscripten_promise_any,emscripten_promise_await:_emscripten_promise_await,emscripten_promise_create:_emscripten_promise_create,emscripten_promise_destroy:_emscripten_promise_destroy,emscripten_promise_race:_emscripten_promise_race,emscripten_promise_resolve:_emscripten_promise_resolve,emscripten_promise_then:_emscripten_promise_then,emscripten_random:_emscripten_random,emscripten_request_animation_frame:_emscripten_request_animation_frame,emscripten_request_animation_frame_loop:_emscripten_request_animation_frame_loop,emscripten_request_fullscreen:_emscripten_request_fullscreen,emscripten_request_fullscreen_strategy:_emscripten_request_fullscreen_strategy,emscripten_request_pointerlock:_emscripten_request_pointerlock,emscripten_resize_heap:_emscripten_resize_heap,emscripten_resume_main_loop:_emscripten_resume_main_loop,emscripten_return_address:_emscripten_return_address,emscripten_run_preload_plugins:_emscripten_run_preload_plugins,emscripten_run_preload_plugins_data:_emscripten_run_preload_plugins_data,emscripten_run_script:_emscripten_run_script,emscripten_run_script_int:_emscripten_run_script_int,emscripten_run_script_string:_emscripten_run_script_string,emscripten_runtime_keepalive_check:_emscripten_runtime_keepalive_check,emscripten_runtime_keepalive_pop:_emscripten_runtime_keepalive_pop,emscripten_runtime_keepalive_push:_emscripten_runtime_keepalive_push,emscripten_sample_gamepad_data:_emscripten_sample_gamepad_data,emscripten_scan_registers:_emscripten_scan_registers,emscripten_set_batterychargingchange_callback_on_thread:_emscripten_set_batterychargingchange_callback_on_thread,emscripten_set_batterylevelchange_callback_on_thread:_emscripten_set_batterylevelchange_callback_on_thread,emscripten_set_beforeunload_callback_on_thread:_emscripten_set_beforeunload_callback_on_thread,emscripten_set_blur_callback_on_thread:_emscripten_set_blur_callback_on_thread,emscripten_set_canvas_element_size:_emscripten_set_canvas_element_size,emscripten_set_canvas_size:_emscripten_set_canvas_size,emscripten_set_click_callback_on_thread:_emscripten_set_click_callback_on_thread,emscripten_set_dblclick_callback_on_thread:_emscripten_set_dblclick_callback_on_thread,emscripten_set_devicemotion_callback_on_thread:_emscripten_set_devicemotion_callback_on_thread,emscripten_set_deviceorientation_callback_on_thread:_emscripten_set_deviceorientation_callback_on_thread,emscripten_set_element_css_size:_emscripten_set_element_css_size,emscripten_set_focus_callback_on_thread:_emscripten_set_focus_callback_on_thread,emscripten_set_focusin_callback_on_thread:_emscripten_set_focusin_callback_on_thread,emscripten_set_focusout_callback_on_thread:_emscripten_set_focusout_callback_on_thread,emscripten_set_fullscreenchange_callback_on_thread:_emscripten_set_fullscreenchange_callback_on_thread,emscripten_set_gamepadconnected_callback_on_thread:_emscripten_set_gamepadconnected_callback_on_thread,emscripten_set_gamepaddisconnected_callback_on_thread:_emscripten_set_gamepaddisconnected_callback_on_thread,emscripten_set_immediate:_emscripten_set_immediate,emscripten_set_immediate_loop:_emscripten_set_immediate_loop,emscripten_set_interval:_emscripten_set_interval,emscripten_set_keydown_callback_on_thread:_emscripten_set_keydown_callback_on_thread,emscripten_set_keypress_callback_on_thread:_emscripten_set_keypress_callback_on_thread,emscripten_set_keyup_callback_on_thread:_emscripten_set_keyup_callback_on_thread,emscripten_set_main_loop:_emscripten_set_main_loop,emscripten_set_main_loop_arg:_emscripten_set_main_loop_arg,emscripten_set_main_loop_expected_blockers:_emscripten_set_main_loop_expected_blockers,emscripten_set_main_loop_timing:_emscripten_set_main_loop_timing,emscripten_set_mousedown_callback_on_thread:_emscripten_set_mousedown_callback_on_thread,emscripten_set_mouseenter_callback_on_thread:_emscripten_set_mouseenter_callback_on_thread,emscripten_set_mouseleave_callback_on_thread:_emscripten_set_mouseleave_callback_on_thread,emscripten_set_mousemove_callback_on_thread:_emscripten_set_mousemove_callback_on_thread,emscripten_set_mouseout_callback_on_thread:_emscripten_set_mouseout_callback_on_thread,emscripten_set_mouseover_callback_on_thread:_emscripten_set_mouseover_callback_on_thread,emscripten_set_mouseup_callback_on_thread:_emscripten_set_mouseup_callback_on_thread,emscripten_set_orientationchange_callback_on_thread:_emscripten_set_orientationchange_callback_on_thread,emscripten_set_pointerlockchange_callback_on_thread:_emscripten_set_pointerlockchange_callback_on_thread,emscripten_set_pointerlockerror_callback_on_thread:_emscripten_set_pointerlockerror_callback_on_thread,emscripten_set_resize_callback_on_thread:_emscripten_set_resize_callback_on_thread,emscripten_set_scroll_callback_on_thread:_emscripten_set_scroll_callback_on_thread,emscripten_set_socket_close_callback:_emscripten_set_socket_close_callback,emscripten_set_socket_connection_callback:_emscripten_set_socket_connection_callback,emscripten_set_socket_error_callback:_emscripten_set_socket_error_callback,emscripten_set_socket_listen_callback:_emscripten_set_socket_listen_callback,emscripten_set_socket_message_callback:_emscripten_set_socket_message_callback,emscripten_set_socket_open_callback:_emscripten_set_socket_open_callback,emscripten_set_timeout:_emscripten_set_timeout,emscripten_set_timeout_loop:_emscripten_set_timeout_loop,emscripten_set_touchcancel_callback_on_thread:_emscripten_set_touchcancel_callback_on_thread,emscripten_set_touchend_callback_on_thread:_emscripten_set_touchend_callback_on_thread,emscripten_set_touchmove_callback_on_thread:_emscripten_set_touchmove_callback_on_thread,emscripten_set_touchstart_callback_on_thread:_emscripten_set_touchstart_callback_on_thread,emscripten_set_visibilitychange_callback_on_thread:_emscripten_set_visibilitychange_callback_on_thread,emscripten_set_webglcontextlost_callback_on_thread:_emscripten_set_webglcontextlost_callback_on_thread,emscripten_set_webglcontextrestored_callback_on_thread:_emscripten_set_webglcontextrestored_callback_on_thread,emscripten_set_wheel_callback_on_thread:_emscripten_set_wheel_callback_on_thread,emscripten_set_window_title:_emscripten_set_window_title,emscripten_sleep:_emscripten_sleep,emscripten_stack_snapshot:_emscripten_stack_snapshot,emscripten_stack_unwind_buffer:_emscripten_stack_unwind_buffer,emscripten_supports_offscreencanvas:_emscripten_supports_offscreencanvas,emscripten_throw_number:_emscripten_throw_number,emscripten_throw_string:_emscripten_throw_string,emscripten_unlock_orientation:_emscripten_unlock_orientation,emscripten_unwind_to_js_event_loop:_emscripten_unwind_to_js_event_loop,emscripten_vibrate:_emscripten_vibrate,emscripten_vibrate_pattern:_emscripten_vibrate_pattern,emscripten_webgl_commit_frame:_emscripten_webgl_commit_frame,emscripten_webgl_create_context:_emscripten_webgl_create_context,emscripten_webgl_destroy_context:_emscripten_webgl_destroy_context,emscripten_webgl_do_commit_frame:_emscripten_webgl_do_commit_frame,emscripten_webgl_do_create_context:_emscripten_webgl_do_create_context,emscripten_webgl_do_get_current_context:_emscripten_webgl_do_get_current_context,emscripten_webgl_enable_ANGLE_instanced_arrays:_emscripten_webgl_enable_ANGLE_instanced_arrays,emscripten_webgl_enable_OES_vertex_array_object:_emscripten_webgl_enable_OES_vertex_array_object,emscripten_webgl_enable_WEBGL_draw_buffers:_emscripten_webgl_enable_WEBGL_draw_buffers,emscripten_webgl_enable_WEBGL_multi_draw:_emscripten_webgl_enable_WEBGL_multi_draw,emscripten_webgl_enable_extension:_emscripten_webgl_enable_extension,emscripten_webgl_get_context_attributes:_emscripten_webgl_get_context_attributes,emscripten_webgl_get_current_context:_emscripten_webgl_get_current_context,emscripten_webgl_get_drawing_buffer_size:_emscripten_webgl_get_drawing_buffer_size,emscripten_webgl_get_parameter_d:_emscripten_webgl_get_parameter_d,emscripten_webgl_get_parameter_i64v:_emscripten_webgl_get_parameter_i64v,emscripten_webgl_get_parameter_o:_emscripten_webgl_get_parameter_o,emscripten_webgl_get_parameter_utf8:_emscripten_webgl_get_parameter_utf8,emscripten_webgl_get_parameter_v:_emscripten_webgl_get_parameter_v,emscripten_webgl_get_program_info_log_utf8:_emscripten_webgl_get_program_info_log_utf8,emscripten_webgl_get_program_parameter_d:_emscripten_webgl_get_program_parameter_d,emscripten_webgl_get_shader_info_log_utf8:_emscripten_webgl_get_shader_info_log_utf8,emscripten_webgl_get_shader_parameter_d:_emscripten_webgl_get_shader_parameter_d,emscripten_webgl_get_shader_source_utf8:_emscripten_webgl_get_shader_source_utf8,emscripten_webgl_get_supported_extensions:_emscripten_webgl_get_supported_extensions,emscripten_webgl_get_uniform_d:_emscripten_webgl_get_uniform_d,emscripten_webgl_get_uniform_v:_emscripten_webgl_get_uniform_v,emscripten_webgl_get_vertex_attrib_d:_emscripten_webgl_get_vertex_attrib_d,emscripten_webgl_get_vertex_attrib_o:_emscripten_webgl_get_vertex_attrib_o,emscripten_webgl_get_vertex_attrib_v:_emscripten_webgl_get_vertex_attrib_v,emscripten_webgl_make_context_current:_emscripten_webgl_make_context_current,emscripten_wget_data:_emscripten_wget_data,endprotoent:_endprotoent,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,exit:_exit,fd_close:_fd_close,fd_fdstat_get:_fd_fdstat_get,fd_pread:_fd_pread,fd_pwrite:_fd_pwrite,fd_read:_fd_read,fd_seek:_fd_seek,fd_sync:_fd_sync,fd_write:_fd_write,filledEllipseColor:_filledEllipseColor,filledEllipseRGBA:_filledEllipseRGBA,getaddrinfo:_getaddrinfo,getentropy:_getentropy,getnameinfo:_getnameinfo,getprotobyname:_getprotobyname,getprotobynumber:_getprotobynumber,getprotoent:_getprotoent,glActiveTexture:_glActiveTexture,glAttachShader:_glAttachShader,glBegin:_glBegin,glBeginQueryEXT:_glBeginQueryEXT,glBindAttribLocation:_glBindAttribLocation,glBindBuffer:_glBindBuffer,glBindFramebuffer:_glBindFramebuffer,glBindRenderbuffer:_glBindRenderbuffer,glBindTexture:_glBindTexture,glBindVertexArray:_glBindVertexArray,glBindVertexArrayOES:_glBindVertexArrayOES,glBlendColor:_glBlendColor,glBlendEquation:_glBlendEquation,glBlendEquationSeparate:_glBlendEquationSeparate,glBlendFunc:_glBlendFunc,glBlendFuncSeparate:_glBlendFuncSeparate,glBufferData:_glBufferData,glBufferSubData:_glBufferSubData,glCheckFramebufferStatus:_glCheckFramebufferStatus,glClear:_glClear,glClearColor:_glClearColor,glClearDepth:_glClearDepth,glClearDepthf:_glClearDepthf,glClearStencil:_glClearStencil,glColorMask:_glColorMask,glCompileShader:_glCompileShader,glCompressedTexImage2D:_glCompressedTexImage2D,glCompressedTexSubImage2D:_glCompressedTexSubImage2D,glCopyTexImage2D:_glCopyTexImage2D,glCopyTexSubImage2D:_glCopyTexSubImage2D,glCreateProgram:_glCreateProgram,glCreateShader:_glCreateShader,glCullFace:_glCullFace,glDeleteBuffers:_glDeleteBuffers,glDeleteFramebuffers:_glDeleteFramebuffers,glDeleteProgram:_glDeleteProgram,glDeleteQueriesEXT:_glDeleteQueriesEXT,glDeleteRenderbuffers:_glDeleteRenderbuffers,glDeleteShader:_glDeleteShader,glDeleteTextures:_glDeleteTextures,glDeleteVertexArrays:_glDeleteVertexArrays,glDeleteVertexArraysOES:_glDeleteVertexArraysOES,glDepthFunc:_glDepthFunc,glDepthMask:_glDepthMask,glDepthRange:_glDepthRange,glDepthRangef:_glDepthRangef,glDetachShader:_glDetachShader,glDisable:_glDisable,glDisableVertexAttribArray:_glDisableVertexAttribArray,glDrawArrays:_glDrawArrays,glDrawArraysInstanced:_glDrawArraysInstanced,glDrawArraysInstancedANGLE:_glDrawArraysInstancedANGLE,glDrawArraysInstancedARB:_glDrawArraysInstancedARB,glDrawArraysInstancedEXT:_glDrawArraysInstancedEXT,glDrawArraysInstancedNV:_glDrawArraysInstancedNV,glDrawBuffers:_glDrawBuffers,glDrawBuffersEXT:_glDrawBuffersEXT,glDrawBuffersWEBGL:_glDrawBuffersWEBGL,glDrawElements:_glDrawElements,glDrawElementsInstanced:_glDrawElementsInstanced,glDrawElementsInstancedANGLE:_glDrawElementsInstancedANGLE,glDrawElementsInstancedARB:_glDrawElementsInstancedARB,glDrawElementsInstancedEXT:_glDrawElementsInstancedEXT,glDrawElementsInstancedNV:_glDrawElementsInstancedNV,glEnable:_glEnable,glEnableVertexAttribArray:_glEnableVertexAttribArray,glEndQueryEXT:_glEndQueryEXT,glFinish:_glFinish,glFlush:_glFlush,glFramebufferRenderbuffer:_glFramebufferRenderbuffer,glFramebufferTexture2D:_glFramebufferTexture2D,glFrontFace:_glFrontFace,glGenBuffers:_glGenBuffers,glGenFramebuffers:_glGenFramebuffers,glGenQueriesEXT:_glGenQueriesEXT,glGenRenderbuffers:_glGenRenderbuffers,glGenTextures:_glGenTextures,glGenVertexArrays:_glGenVertexArrays,glGenVertexArraysOES:_glGenVertexArraysOES,glGenerateMipmap:_glGenerateMipmap,glGetActiveAttrib:_glGetActiveAttrib,glGetActiveUniform:_glGetActiveUniform,glGetAttachedShaders:_glGetAttachedShaders,glGetAttribLocation:_glGetAttribLocation,glGetBooleanv:_glGetBooleanv,glGetBufferParameteriv:_glGetBufferParameteriv,glGetError:_glGetError,glGetFloatv:_glGetFloatv,glGetFramebufferAttachmentParameteriv:_glGetFramebufferAttachmentParameteriv,glGetIntegerv:_glGetIntegerv,glGetProgramInfoLog:_glGetProgramInfoLog,glGetProgramiv:_glGetProgramiv,glGetQueryObjecti64vEXT:_glGetQueryObjecti64vEXT,glGetQueryObjectivEXT:_glGetQueryObjectivEXT,glGetQueryObjectui64vEXT:_glGetQueryObjectui64vEXT,glGetQueryObjectuivEXT:_glGetQueryObjectuivEXT,glGetQueryivEXT:_glGetQueryivEXT,glGetRenderbufferParameteriv:_glGetRenderbufferParameteriv,glGetShaderInfoLog:_glGetShaderInfoLog,glGetShaderPrecisionFormat:_glGetShaderPrecisionFormat,glGetShaderSource:_glGetShaderSource,glGetShaderiv:_glGetShaderiv,glGetString:_glGetString,glGetTexParameterfv:_glGetTexParameterfv,glGetTexParameteriv:_glGetTexParameteriv,glGetUniformLocation:_glGetUniformLocation,glGetUniformfv:_glGetUniformfv,glGetUniformiv:_glGetUniformiv,glGetVertexAttribPointerv:_glGetVertexAttribPointerv,glGetVertexAttribfv:_glGetVertexAttribfv,glGetVertexAttribiv:_glGetVertexAttribiv,glHint:_glHint,glIsBuffer:_glIsBuffer,glIsEnabled:_glIsEnabled,glIsFramebuffer:_glIsFramebuffer,glIsProgram:_glIsProgram,glIsQueryEXT:_glIsQueryEXT,glIsRenderbuffer:_glIsRenderbuffer,glIsShader:_glIsShader,glIsTexture:_glIsTexture,glIsVertexArray:_glIsVertexArray,glIsVertexArrayOES:_glIsVertexArrayOES,glLineWidth:_glLineWidth,glLinkProgram:_glLinkProgram,glLoadIdentity:_glLoadIdentity,glMatrixMode:_glMatrixMode,glMultiDrawArrays:_glMultiDrawArrays,glMultiDrawArraysANGLE:_glMultiDrawArraysANGLE,glMultiDrawArraysInstancedANGLE:_glMultiDrawArraysInstancedANGLE,glMultiDrawArraysInstancedWEBGL:_glMultiDrawArraysInstancedWEBGL,glMultiDrawArraysWEBGL:_glMultiDrawArraysWEBGL,glMultiDrawElements:_glMultiDrawElements,glMultiDrawElementsANGLE:_glMultiDrawElementsANGLE,glMultiDrawElementsInstancedANGLE:_glMultiDrawElementsInstancedANGLE,glMultiDrawElementsInstancedWEBGL:_glMultiDrawElementsInstancedWEBGL,glMultiDrawElementsWEBGL:_glMultiDrawElementsWEBGL,glPixelStorei:_glPixelStorei,glPolygonOffset:_glPolygonOffset,glQueryCounterEXT:_glQueryCounterEXT,glReadPixels:_glReadPixels,glReleaseShaderCompiler:_glReleaseShaderCompiler,glRenderbufferStorage:_glRenderbufferStorage,glSampleCoverage:_glSampleCoverage,glScissor:_glScissor,glShaderBinary:_glShaderBinary,glShaderSource:_glShaderSource,glStencilFunc:_glStencilFunc,glStencilFuncSeparate:_glStencilFuncSeparate,glStencilMask:_glStencilMask,glStencilMaskSeparate:_glStencilMaskSeparate,glStencilOp:_glStencilOp,glStencilOpSeparate:_glStencilOpSeparate,glTexImage2D:_glTexImage2D,glTexParameterf:_glTexParameterf,glTexParameterfv:_glTexParameterfv,glTexParameteri:_glTexParameteri,glTexParameteriv:_glTexParameteriv,glTexSubImage2D:_glTexSubImage2D,glUniform1f:_glUniform1f,glUniform1fv:_glUniform1fv,glUniform1i:_glUniform1i,glUniform1iv:_glUniform1iv,glUniform2f:_glUniform2f,glUniform2fv:_glUniform2fv,glUniform2i:_glUniform2i,glUniform2iv:_glUniform2iv,glUniform3f:_glUniform3f,glUniform3fv:_glUniform3fv,glUniform3i:_glUniform3i,glUniform3iv:_glUniform3iv,glUniform4f:_glUniform4f,glUniform4fv:_glUniform4fv,glUniform4i:_glUniform4i,glUniform4iv:_glUniform4iv,glUniformMatrix2fv:_glUniformMatrix2fv,glUniformMatrix3fv:_glUniformMatrix3fv,glUniformMatrix4fv:_glUniformMatrix4fv,glUseProgram:_glUseProgram,glValidateProgram:_glValidateProgram,glVertexAttrib1f:_glVertexAttrib1f,glVertexAttrib1fv:_glVertexAttrib1fv,glVertexAttrib2f:_glVertexAttrib2f,glVertexAttrib2fv:_glVertexAttrib2fv,glVertexAttrib3f:_glVertexAttrib3f,glVertexAttrib3fv:_glVertexAttrib3fv,glVertexAttrib4f:_glVertexAttrib4f,glVertexAttrib4fv:_glVertexAttrib4fv,glVertexAttribDivisor:_glVertexAttribDivisor,glVertexAttribDivisorANGLE:_glVertexAttribDivisorANGLE,glVertexAttribDivisorARB:_glVertexAttribDivisorARB,glVertexAttribDivisorEXT:_glVertexAttribDivisorEXT,glVertexAttribDivisorNV:_glVertexAttribDivisorNV,glVertexAttribPointer:_glVertexAttribPointer,glVertexPointer:_glVertexPointer,glViewport:_glViewport,glewGetErrorString:_glewGetErrorString,glewGetExtension:_glewGetExtension,glewGetString:_glewGetString,glewInit:_glewInit,glewIsSupported:_glewIsSupported,glutCreateWindow:_glutCreateWindow,glutDestroyWindow:_glutDestroyWindow,glutDisplayFunc:_glutDisplayFunc,glutFullScreen:_glutFullScreen,glutGet:_glutGet,glutGetModifiers:_glutGetModifiers,glutIdleFunc:_glutIdleFunc,glutInit:_glutInit,glutInitDisplayMode:_glutInitDisplayMode,glutInitWindowPosition:_glutInitWindowPosition,glutInitWindowSize:_glutInitWindowSize,glutKeyboardFunc:_glutKeyboardFunc,glutKeyboardUpFunc:_glutKeyboardUpFunc,glutMainLoop:_glutMainLoop,glutMotionFunc:_glutMotionFunc,glutMouseFunc:_glutMouseFunc,glutPassiveMotionFunc:_glutPassiveMotionFunc,glutPositionWindow:_glutPositionWindow,glutPostRedisplay:_glutPostRedisplay,glutReshapeFunc:_glutReshapeFunc,glutReshapeWindow:_glutReshapeWindow,glutSetCursor:_glutSetCursor,glutSpecialFunc:_glutSpecialFunc,glutSpecialUpFunc:_glutSpecialUpFunc,glutSwapBuffers:_glutSwapBuffers,glutTimerFunc:_glutTimerFunc,lineColor:_lineColor,lineRGBA:_lineRGBA,memory:wasmMemory||Module.wasmMemory,pixelRGBA:_pixelRGBA,proc_exit:_proc_exit,random_get:_random_get,rectangleColor:_rectangleColor,rectangleRGBA:_rectangleRGBA,rotozoomSurface:_rotozoomSurface,setNetworkCallback:_setNetworkCallback,setprotoent:_setprotoent,stackAlloc:_stackAlloc,stackRestore:_stackRestore,stackSave:_stackSave,strftime:_strftime,strftime_l:_strftime_l,strptime:_strptime,strptime_l:_strptime_l,uuid_clear:_uuid_clear,uuid_compare:_uuid_compare,uuid_copy:_uuid_copy,uuid_generate:_uuid_generate,uuid_is_null:_uuid_is_null,uuid_parse:_uuid_parse,uuid_type:_uuid_type,uuid_unparse:_uuid_unparse,uuid_unparse_lower:_uuid_unparse_lower,uuid_unparse_upper:_uuid_unparse_upper,uuid_variant:_uuid_variant,zoomSurface:_zoomSurface},wasmExports=createWasm(),__embind_initialize_bindings=Module.__embind_initialize_bindings=()=>(__embind_initialize_bindings=Module.__embind_initialize_bindings=wasmExports._embind_initialize_bindings)(),__embind_register_bindings=Module.__embind_register_bindings=e=>(__embind_register_bindings=Module.__embind_register_bindings=wasmExports._embind_register_bindings)(e),__emval_coro_resume=(e,t)=>(__emval_coro_resume=wasmExports._emval_coro_resume)(e,t),_pthread_self=Module._pthread_self=()=>(_pthread_self=Module._pthread_self=wasmExports.pthread_self)(),_main=Module._main=(e,t)=>(_main=Module._main=wasmExports.main)(e,t),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_duckdb_web_fs_glob_add_path=Module._duckdb_web_fs_glob_add_path=e=>(_duckdb_web_fs_glob_add_path=Module._duckdb_web_fs_glob_add_path=wasmExports.duckdb_web_fs_glob_add_path)(e),_duckdb_web_clear_response=Module._duckdb_web_clear_response=()=>(_duckdb_web_clear_response=Module._duckdb_web_clear_response=wasmExports.duckdb_web_clear_response)(),_duckdb_web_fail_with=Module._duckdb_web_fail_with=e=>(_duckdb_web_fail_with=Module._duckdb_web_fail_with=wasmExports.duckdb_web_fail_with)(e),_duckdb_web_reset=Module._duckdb_web_reset=e=>(_duckdb_web_reset=Module._duckdb_web_reset=wasmExports.duckdb_web_reset)(e),_duckdb_web_connect=Module._duckdb_web_connect=()=>(_duckdb_web_connect=Module._duckdb_web_connect=wasmExports.duckdb_web_connect)(),_duckdb_web_disconnect=Module._duckdb_web_disconnect=e=>(_duckdb_web_disconnect=Module._duckdb_web_disconnect=wasmExports.duckdb_web_disconnect)(e),_duckdb_web_access_buffer=Module._duckdb_web_access_buffer=(e,t)=>(_duckdb_web_access_buffer=Module._duckdb_web_access_buffer=wasmExports.duckdb_web_access_buffer)(e,t),_duckdb_web_flush_files=Module._duckdb_web_flush_files=()=>(_duckdb_web_flush_files=Module._duckdb_web_flush_files=wasmExports.duckdb_web_flush_files)(),_duckdb_web_flush_file=Module._duckdb_web_flush_file=e=>(_duckdb_web_flush_file=Module._duckdb_web_flush_file=wasmExports.duckdb_web_flush_file)(e),_duckdb_web_open=Module._duckdb_web_open=(e,t)=>(_duckdb_web_open=Module._duckdb_web_open=wasmExports.duckdb_web_open)(e,t),_duckdb_web_get_global_file_info=Module._duckdb_web_get_global_file_info=(e,t)=>(_duckdb_web_get_global_file_info=Module._duckdb_web_get_global_file_info=wasmExports.duckdb_web_get_global_file_info)(e,t),_duckdb_web_collect_file_stats=Module._duckdb_web_collect_file_stats=(e,t,r)=>(_duckdb_web_collect_file_stats=Module._duckdb_web_collect_file_stats=wasmExports.duckdb_web_collect_file_stats)(e,t,r),_duckdb_web_export_file_stats=Module._duckdb_web_export_file_stats=(e,t)=>(_duckdb_web_export_file_stats=Module._duckdb_web_export_file_stats=wasmExports.duckdb_web_export_file_stats)(e,t),_duckdb_web_fs_drop_file=Module._duckdb_web_fs_drop_file=(e,t)=>(_duckdb_web_fs_drop_file=Module._duckdb_web_fs_drop_file=wasmExports.duckdb_web_fs_drop_file)(e,t),_duckdb_web_fs_drop_files=Module._duckdb_web_fs_drop_files=e=>(_duckdb_web_fs_drop_files=Module._duckdb_web_fs_drop_files=wasmExports.duckdb_web_fs_drop_files)(e),_duckdb_web_fs_glob_file_infos=Module._duckdb_web_fs_glob_file_infos=(e,t)=>(_duckdb_web_fs_glob_file_infos=Module._duckdb_web_fs_glob_file_infos=wasmExports.duckdb_web_fs_glob_file_infos)(e,t),_duckdb_web_fs_get_file_info_by_id=Module._duckdb_web_fs_get_file_info_by_id=(e,t,r)=>(_duckdb_web_fs_get_file_info_by_id=Module._duckdb_web_fs_get_file_info_by_id=wasmExports.duckdb_web_fs_get_file_info_by_id)(e,t,r),_duckdb_web_fs_get_file_info_by_name=Module._duckdb_web_fs_get_file_info_by_name=(e,t,r)=>(_duckdb_web_fs_get_file_info_by_name=Module._duckdb_web_fs_get_file_info_by_name=wasmExports.duckdb_web_fs_get_file_info_by_name)(e,t,r),_duckdb_web_fs_register_file_url=Module._duckdb_web_fs_register_file_url=(e,t,r,n,i)=>(_duckdb_web_fs_register_file_url=Module._duckdb_web_fs_register_file_url=wasmExports.duckdb_web_fs_register_file_url)(e,t,r,n,i),_duckdb_web_fs_register_file_buffer=Module._duckdb_web_fs_register_file_buffer=(e,t,r,n)=>(_duckdb_web_fs_register_file_buffer=Module._duckdb_web_fs_register_file_buffer=wasmExports.duckdb_web_fs_register_file_buffer)(e,t,r,n),_duckdb_web_copy_file_to_buffer=Module._duckdb_web_copy_file_to_buffer=(e,t)=>(_duckdb_web_copy_file_to_buffer=Module._duckdb_web_copy_file_to_buffer=wasmExports.duckdb_web_copy_file_to_buffer)(e,t),_duckdb_web_copy_file_to_path=Module._duckdb_web_copy_file_to_path=(e,t,r)=>(_duckdb_web_copy_file_to_path=Module._duckdb_web_copy_file_to_path=wasmExports.duckdb_web_copy_file_to_path)(e,t,r),_duckdb_web_get_version=Module._duckdb_web_get_version=e=>(_duckdb_web_get_version=Module._duckdb_web_get_version=wasmExports.duckdb_web_get_version)(e),_duckdb_web_get_feature_flags=Module._duckdb_web_get_feature_flags=()=>(_duckdb_web_get_feature_flags=Module._duckdb_web_get_feature_flags=wasmExports.duckdb_web_get_feature_flags)(),_duckdb_web_tokenize=Module._duckdb_web_tokenize=(e,t)=>(_duckdb_web_tokenize=Module._duckdb_web_tokenize=wasmExports.duckdb_web_tokenize)(e,t),_duckdb_web_tokenize_buffer=Module._duckdb_web_tokenize_buffer=(e,t,r)=>(_duckdb_web_tokenize_buffer=Module._duckdb_web_tokenize_buffer=wasmExports.duckdb_web_tokenize_buffer)(e,t,r),_duckdb_web_udf_scalar_create=Module._duckdb_web_udf_scalar_create=(e,t,r)=>(_duckdb_web_udf_scalar_create=Module._duckdb_web_udf_scalar_create=wasmExports.duckdb_web_udf_scalar_create)(e,t,r),_duckdb_web_prepared_create=Module._duckdb_web_prepared_create=(e,t,r)=>(_duckdb_web_prepared_create=Module._duckdb_web_prepared_create=wasmExports.duckdb_web_prepared_create)(e,t,r),_duckdb_web_prepared_create_buffer=Module._duckdb_web_prepared_create_buffer=(e,t,r,n)=>(_duckdb_web_prepared_create_buffer=Module._duckdb_web_prepared_create_buffer=wasmExports.duckdb_web_prepared_create_buffer)(e,t,r,n),_duckdb_web_prepared_close=Module._duckdb_web_prepared_close=(e,t,r)=>(_duckdb_web_prepared_close=Module._duckdb_web_prepared_close=wasmExports.duckdb_web_prepared_close)(e,t,r),_duckdb_web_prepared_run=Module._duckdb_web_prepared_run=(e,t,r,n)=>(_duckdb_web_prepared_run=Module._duckdb_web_prepared_run=wasmExports.duckdb_web_prepared_run)(e,t,r,n),_duckdb_web_prepared_send=Module._duckdb_web_prepared_send=(e,t,r,n)=>(_duckdb_web_prepared_send=Module._duckdb_web_prepared_send=wasmExports.duckdb_web_prepared_send)(e,t,r,n),_duckdb_web_query_run=Module._duckdb_web_query_run=(e,t,r)=>(_duckdb_web_query_run=Module._duckdb_web_query_run=wasmExports.duckdb_web_query_run)(e,t,r),_duckdb_web_query_run_buffer=Module._duckdb_web_query_run_buffer=(e,t,r,n)=>(_duckdb_web_query_run_buffer=Module._duckdb_web_query_run_buffer=wasmExports.duckdb_web_query_run_buffer)(e,t,r,n),_duckdb_web_pending_query_start=Module._duckdb_web_pending_query_start=(e,t,r,n)=>(_duckdb_web_pending_query_start=Module._duckdb_web_pending_query_start=wasmExports.duckdb_web_pending_query_start)(e,t,r,n),_duckdb_web_pending_query_start_buffer=Module._duckdb_web_pending_query_start_buffer=(e,t,r,n,i)=>(_duckdb_web_pending_query_start_buffer=Module._duckdb_web_pending_query_start_buffer=wasmExports.duckdb_web_pending_query_start_buffer)(e,t,r,n,i),_duckdb_web_pending_query_poll=Module._duckdb_web_pending_query_poll=(e,t,r)=>(_duckdb_web_pending_query_poll=Module._duckdb_web_pending_query_poll=wasmExports.duckdb_web_pending_query_poll)(e,t,r),_duckdb_web_pending_query_cancel=Module._duckdb_web_pending_query_cancel=(e,t)=>(_duckdb_web_pending_query_cancel=Module._duckdb_web_pending_query_cancel=wasmExports.duckdb_web_pending_query_cancel)(e,t),_duckdb_web_query_fetch_results=Module._duckdb_web_query_fetch_results=(e,t)=>(_duckdb_web_query_fetch_results=Module._duckdb_web_query_fetch_results=wasmExports.duckdb_web_query_fetch_results)(e,t),_duckdb_web_get_tablenames=Module._duckdb_web_get_tablenames=(e,t,r)=>(_duckdb_web_get_tablenames=Module._duckdb_web_get_tablenames=wasmExports.duckdb_web_get_tablenames)(e,t,r),_duckdb_web_get_tablenames_buffer=Module._duckdb_web_get_tablenames_buffer=(e,t,r,n)=>(_duckdb_web_get_tablenames_buffer=Module._duckdb_web_get_tablenames_buffer=wasmExports.duckdb_web_get_tablenames_buffer)(e,t,r,n),_duckdb_web_insert_arrow_from_ipc_stream=Module._duckdb_web_insert_arrow_from_ipc_stream=(e,t,r,n,i)=>(_duckdb_web_insert_arrow_from_ipc_stream=Module._duckdb_web_insert_arrow_from_ipc_stream=wasmExports.duckdb_web_insert_arrow_from_ipc_stream)(e,t,r,n,i),_duckdb_web_insert_csv_from_path=Module._duckdb_web_insert_csv_from_path=(e,t,r,n)=>(_duckdb_web_insert_csv_from_path=Module._duckdb_web_insert_csv_from_path=wasmExports.duckdb_web_insert_csv_from_path)(e,t,r,n),_duckdb_web_insert_json_from_path=Module._duckdb_web_insert_json_from_path=(e,t,r,n)=>(_duckdb_web_insert_json_from_path=Module._duckdb_web_insert_json_from_path=wasmExports.duckdb_web_insert_json_from_path)(e,t,r,n),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_freeaddrinfo=Module._freeaddrinfo=e=>(_freeaddrinfo=Module._freeaddrinfo=wasmExports.freeaddrinfo)(e),_freeifaddrs=Module._freeifaddrs=e=>(_freeifaddrs=Module._freeifaddrs=wasmExports.freeifaddrs)(e),_pthread_create=Module._pthread_create=(e,t,r,n)=>(_pthread_create=Module._pthread_create=wasmExports.pthread_create)(e,t,r,n),_pthread_setspecific=Module._pthread_setspecific=(e,t)=>(_pthread_setspecific=Module._pthread_setspecific=wasmExports.pthread_setspecific)(e,t),_pthread_rwlock_init=Module._pthread_rwlock_init=(e,t)=>(_pthread_rwlock_init=Module._pthread_rwlock_init=wasmExports.pthread_rwlock_init)(e,t),_pthread_rwlock_destroy=Module._pthread_rwlock_destroy=e=>(_pthread_rwlock_destroy=Module._pthread_rwlock_destroy=wasmExports.pthread_rwlock_destroy)(e),_pthread_rwlock_wrlock=Module._pthread_rwlock_wrlock=e=>(_pthread_rwlock_wrlock=Module._pthread_rwlock_wrlock=wasmExports.pthread_rwlock_wrlock)(e),_pthread_rwlock_unlock=Module._pthread_rwlock_unlock=e=>(_pthread_rwlock_unlock=Module._pthread_rwlock_unlock=wasmExports.pthread_rwlock_unlock)(e),_pthread_rwlock_rdlock=Module._pthread_rwlock_rdlock=e=>(_pthread_rwlock_rdlock=Module._pthread_rwlock_rdlock=wasmExports.pthread_rwlock_rdlock)(e),_pthread_atfork=Module._pthread_atfork=(e,t,r)=>(_pthread_atfork=Module._pthread_atfork=wasmExports.pthread_atfork)(e,t,r),_pthread_kill=Module._pthread_kill=(e,t)=>(_pthread_kill=Module._pthread_kill=wasmExports.pthread_kill)(e,t),_emscripten_builtin_free=Module._emscripten_builtin_free=e=>(_emscripten_builtin_free=Module._emscripten_builtin_free=wasmExports.emscripten_builtin_free)(e),__emscripten_tls_init=Module.__emscripten_tls_init=()=>(__emscripten_tls_init=Module.__emscripten_tls_init=wasmExports._emscripten_tls_init)(),_emscripten_builtin_memalign=(e,t)=>(_emscripten_builtin_memalign=wasmExports.emscripten_builtin_memalign)(e,t),_emscripten_GetProcAddress=Module._emscripten_GetProcAddress=e=>(_emscripten_GetProcAddress=Module._emscripten_GetProcAddress=wasmExports.emscripten_GetProcAddress)(e),_emscripten_webgl1_get_proc_address=Module._emscripten_webgl1_get_proc_address=e=>(_emscripten_webgl1_get_proc_address=Module._emscripten_webgl1_get_proc_address=wasmExports.emscripten_webgl1_get_proc_address)(e),_emscripten_webgl_get_proc_address=Module._emscripten_webgl_get_proc_address=e=>(_emscripten_webgl_get_proc_address=Module._emscripten_webgl_get_proc_address=wasmExports.emscripten_webgl_get_proc_address)(e),_emscripten_webgl_init_context_attributes=Module._emscripten_webgl_init_context_attributes=e=>(_emscripten_webgl_init_context_attributes=Module._emscripten_webgl_init_context_attributes=wasmExports.emscripten_webgl_init_context_attributes)(e),_emscripten_is_main_runtime_thread=Module._emscripten_is_main_runtime_thread=()=>(_emscripten_is_main_runtime_thread=Module._emscripten_is_main_runtime_thread=wasmExports.emscripten_is_main_runtime_thread)(),_emscripten_errf=Module._emscripten_errf=(e,t)=>(_emscripten_errf=Module._emscripten_errf=wasmExports.emscripten_errf)(e,t),__emscripten_run_callback_on_thread=(e,t,r,n,i)=>(__emscripten_run_callback_on_thread=wasmExports._emscripten_run_callback_on_thread)(e,t,r,n,i),_emscripten_proxy_get_system_queue=Module._emscripten_proxy_get_system_queue=()=>(_emscripten_proxy_get_system_queue=Module._emscripten_proxy_get_system_queue=wasmExports.emscripten_proxy_get_system_queue)(),_emscripten_proxy_sync=Module._emscripten_proxy_sync=(e,t,r,n)=>(_emscripten_proxy_sync=Module._emscripten_proxy_sync=wasmExports.emscripten_proxy_sync)(e,t,r,n),_emscripten_compute_dom_pk_code=Module._emscripten_compute_dom_pk_code=e=>(_emscripten_compute_dom_pk_code=Module._emscripten_compute_dom_pk_code=wasmExports.emscripten_compute_dom_pk_code)(e),_emscripten_dom_pk_code_to_string=Module._emscripten_dom_pk_code_to_string=e=>(_emscripten_dom_pk_code_to_string=Module._emscripten_dom_pk_code_to_string=wasmExports.emscripten_dom_pk_code_to_string)(e),_emscripten_wget=Module._emscripten_wget=(e,t)=>(_emscripten_wget=Module._emscripten_wget=wasmExports.emscripten_wget)(e,t),_emscripten_dom_vk_to_string=Module._emscripten_dom_vk_to_string=e=>(_emscripten_dom_vk_to_string=Module._emscripten_dom_vk_to_string=wasmExports.emscripten_dom_vk_to_string)(e),__emscripten_set_offscreencanvas_size_on_thread=Module.__emscripten_set_offscreencanvas_size_on_thread=(e,t,r,n)=>(__emscripten_set_offscreencanvas_size_on_thread=Module.__emscripten_set_offscreencanvas_size_on_thread=wasmExports._emscripten_set_offscreencanvas_size_on_thread)(e,t,r,n),_emscripten_proxy_async=Module._emscripten_proxy_async=(e,t,r,n)=>(_emscripten_proxy_async=Module._emscripten_proxy_async=wasmExports.emscripten_proxy_async)(e,t,r,n),__emscripten_memcpy_bulkmem=Module.__emscripten_memcpy_bulkmem=(e,t,r)=>(__emscripten_memcpy_bulkmem=Module.__emscripten_memcpy_bulkmem=wasmExports._emscripten_memcpy_bulkmem)(e,t,r),_emscripten_builtin_memcpy=Module._emscripten_builtin_memcpy=(e,t,r)=>(_emscripten_builtin_memcpy=Module._emscripten_builtin_memcpy=wasmExports.emscripten_builtin_memcpy)(e,t,r),__emscripten_memset_bulkmem=Module.__emscripten_memset_bulkmem=(e,t,r)=>(__emscripten_memset_bulkmem=Module.__emscripten_memset_bulkmem=wasmExports._emscripten_memset_bulkmem)(e,t,r),_emscripten_builtin_memset=Module._emscripten_builtin_memset=(e,t,r)=>(_emscripten_builtin_memset=Module._emscripten_builtin_memset=wasmExports.emscripten_builtin_memset)(e,t,r),_emscripten_futex_wake=Module._emscripten_futex_wake=(e,t)=>(_emscripten_futex_wake=Module._emscripten_futex_wake=wasmExports.emscripten_futex_wake)(e,t),_emscripten_builtin_malloc=Module._emscripten_builtin_malloc=e=>(_emscripten_builtin_malloc=Module._emscripten_builtin_malloc=wasmExports.emscripten_builtin_malloc)(e),_emscripten_futex_wait=Module._emscripten_futex_wait=(e,t,r)=>(_emscripten_futex_wait=Module._emscripten_futex_wait=wasmExports.emscripten_futex_wait)(e,t,r),_emscripten_thread_sleep=Module._emscripten_thread_sleep=e=>(_emscripten_thread_sleep=Module._emscripten_thread_sleep=wasmExports.emscripten_thread_sleep)(e),___dl_seterr=(e,t)=>(___dl_seterr=wasmExports.__dl_seterr)(e,t),__emscripten_dlsync_self_async=e=>(__emscripten_dlsync_self_async=wasmExports._emscripten_dlsync_self_async)(e),__emscripten_dlsync_self=()=>(__emscripten_dlsync_self=wasmExports._emscripten_dlsync_self)(),__emscripten_process_dlopen_queue=Module.__emscripten_process_dlopen_queue=()=>(__emscripten_process_dlopen_queue=Module.__emscripten_process_dlopen_queue=wasmExports._emscripten_process_dlopen_queue)(),_emscripten_proxy_execute_queue=Module._emscripten_proxy_execute_queue=e=>(_emscripten_proxy_execute_queue=Module._emscripten_proxy_execute_queue=wasmExports.emscripten_proxy_execute_queue)(e),__emscripten_proxy_dlsync_async=(e,t)=>(__emscripten_proxy_dlsync_async=wasmExports._emscripten_proxy_dlsync_async)(e,t),_em_proxying_queue_create=Module._em_proxying_queue_create=()=>(_em_proxying_queue_create=Module._em_proxying_queue_create=wasmExports.em_proxying_queue_create)(),_emscripten_proxy_callback=Module._emscripten_proxy_callback=(e,t,r,n,i,a)=>(_emscripten_proxy_callback=Module._emscripten_proxy_callback=wasmExports.emscripten_proxy_callback)(e,t,r,n,i,a),__emscripten_proxy_dlsync=e=>(__emscripten_proxy_dlsync=wasmExports._emscripten_proxy_dlsync)(e),_pthread_setcancelstate=Module._pthread_setcancelstate=(e,t)=>(_pthread_setcancelstate=Module._pthread_setcancelstate=wasmExports.pthread_setcancelstate)(e,t),_emscripten_dlopen=Module._emscripten_dlopen=(e,t,r,n,i)=>(_emscripten_dlopen=Module._emscripten_dlopen=wasmExports.emscripten_dlopen)(e,t,r,n,i),_emscripten_dlopen_promise=Module._emscripten_dlopen_promise=(e,t)=>(_emscripten_dlopen_promise=Module._emscripten_dlopen_promise=wasmExports.emscripten_dlopen_promise)(e,t),_pthread_mutex_lock=Module._pthread_mutex_lock=e=>(_pthread_mutex_lock=Module._pthread_mutex_lock=wasmExports.pthread_mutex_lock)(e),_pthread_mutex_unlock=Module._pthread_mutex_unlock=e=>(_pthread_mutex_unlock=Module._pthread_mutex_unlock=wasmExports.pthread_mutex_unlock)(e),_emscripten_main_runtime_thread_id=()=>(_emscripten_main_runtime_thread_id=wasmExports.emscripten_main_runtime_thread_id)(),_emscripten_proxy_sync_with_ctx=Module._emscripten_proxy_sync_with_ctx=(e,t,r,n)=>(_emscripten_proxy_sync_with_ctx=Module._emscripten_proxy_sync_with_ctx=wasmExports.emscripten_proxy_sync_with_ctx)(e,t,r,n),_emscripten_proxy_finish=Module._emscripten_proxy_finish=e=>(_emscripten_proxy_finish=Module._emscripten_proxy_finish=wasmExports.emscripten_proxy_finish)(e),_em_task_queue_create=Module._em_task_queue_create=e=>(_em_task_queue_create=Module._em_task_queue_create=wasmExports.em_task_queue_create)(e),_em_task_queue_destroy=Module._em_task_queue_destroy=e=>(_em_task_queue_destroy=Module._em_task_queue_destroy=wasmExports.em_task_queue_destroy)(e),_pthread_mutex_destroy=Module._pthread_mutex_destroy=e=>(_pthread_mutex_destroy=Module._pthread_mutex_destroy=wasmExports.pthread_mutex_destroy)(e),_em_task_queue_execute=Module._em_task_queue_execute=e=>(_em_task_queue_execute=Module._em_task_queue_execute=wasmExports.em_task_queue_execute)(e),_em_task_queue_dequeue=Module._em_task_queue_dequeue=(e,t)=>(_em_task_queue_dequeue=Module._em_task_queue_dequeue=wasmExports.em_task_queue_dequeue)(e,t),_em_task_queue_cancel=Module._em_task_queue_cancel=e=>(_em_task_queue_cancel=Module._em_task_queue_cancel=wasmExports.em_task_queue_cancel)(e),_em_task_queue_enqueue=Module._em_task_queue_enqueue=(e,t)=>(_em_task_queue_enqueue=Module._em_task_queue_enqueue=wasmExports.em_task_queue_enqueue)(e,t),_em_task_queue_send=Module._em_task_queue_send=(e,t)=>(_em_task_queue_send=Module._em_task_queue_send=wasmExports.em_task_queue_send)(e,t),_emscripten_thread_mailbox_ref=Module._emscripten_thread_mailbox_ref=e=>(_emscripten_thread_mailbox_ref=Module._emscripten_thread_mailbox_ref=wasmExports.emscripten_thread_mailbox_ref)(e),_emscripten_thread_mailbox_send=Module._emscripten_thread_mailbox_send=(e,t)=>(_emscripten_thread_mailbox_send=Module._emscripten_thread_mailbox_send=wasmExports.emscripten_thread_mailbox_send)(e,t),_emscripten_thread_mailbox_unref=Module._emscripten_thread_mailbox_unref=e=>(_emscripten_thread_mailbox_unref=Module._emscripten_thread_mailbox_unref=wasmExports.emscripten_thread_mailbox_unref)(e),_pthread_mutex_trylock=Module._pthread_mutex_trylock=e=>(_pthread_mutex_trylock=Module._pthread_mutex_trylock=wasmExports.pthread_mutex_trylock)(e),_emscripten_console_logf=Module._emscripten_console_logf=(e,t)=>(_emscripten_console_logf=Module._emscripten_console_logf=wasmExports.emscripten_console_logf)(e,t),_emscripten_console_errorf=Module._emscripten_console_errorf=(e,t)=>(_emscripten_console_errorf=Module._emscripten_console_errorf=wasmExports.emscripten_console_errorf)(e,t),_emscripten_console_warnf=Module._emscripten_console_warnf=(e,t)=>(_emscripten_console_warnf=Module._emscripten_console_warnf=wasmExports.emscripten_console_warnf)(e,t),_emscripten_outf=Module._emscripten_outf=(e,t)=>(_emscripten_outf=Module._emscripten_outf=wasmExports.emscripten_outf)(e,t),_emscripten_fiber_init=Module._emscripten_fiber_init=(e,t,r,n,i,a,s)=>(_emscripten_fiber_init=Module._emscripten_fiber_init=wasmExports.emscripten_fiber_init)(e,t,r,n,i,a,s),_emscripten_fiber_init_from_current_context=Module._emscripten_fiber_init_from_current_context=(e,t,r)=>(_emscripten_fiber_init_from_current_context=Module._emscripten_fiber_init_from_current_context=wasmExports.emscripten_fiber_init_from_current_context)(e,t,r),_emscripten_stack_get_base=Module._emscripten_stack_get_base=()=>(_emscripten_stack_get_base=Module._emscripten_stack_get_base=wasmExports.emscripten_stack_get_base)(),_emscripten_stack_get_end=Module._emscripten_stack_get_end=()=>(_emscripten_stack_get_end=Module._emscripten_stack_get_end=wasmExports.emscripten_stack_get_end)(),__emscripten_yield=Module.__emscripten_yield=e=>(__emscripten_yield=Module.__emscripten_yield=wasmExports._emscripten_yield)(e),__emscripten_thread_supports_atomics_wait=Module.__emscripten_thread_supports_atomics_wait=()=>(__emscripten_thread_supports_atomics_wait=Module.__emscripten_thread_supports_atomics_wait=wasmExports._emscripten_thread_supports_atomics_wait)(),_emscripten_get_heap_size=Module._emscripten_get_heap_size=()=>(_emscripten_get_heap_size=Module._emscripten_get_heap_size=wasmExports.emscripten_get_heap_size)(),_emscripten_scan_stack=Module._emscripten_scan_stack=e=>(_emscripten_scan_stack=Module._emscripten_scan_stack=wasmExports.emscripten_scan_stack)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),__emscripten_thread_init=Module.__emscripten_thread_init=(e,t,r,n,i,a)=>(__emscripten_thread_init=Module.__emscripten_thread_init=wasmExports._emscripten_thread_init)(e,t,r,n,i,a),_emscripten_is_main_browser_thread=Module._emscripten_is_main_browser_thread=()=>(_emscripten_is_main_browser_thread=Module._emscripten_is_main_browser_thread=wasmExports.emscripten_is_main_browser_thread)(),__emscripten_thread_crashed=Module.__emscripten_thread_crashed=()=>(__emscripten_thread_crashed=Module.__emscripten_thread_crashed=wasmExports._emscripten_thread_crashed)(),__emscripten_check_timers=Module.__emscripten_check_timers=e=>(__emscripten_check_timers=Module.__emscripten_check_timers=wasmExports._emscripten_check_timers)(e),_emscripten_main_thread_process_queued_calls=()=>(_emscripten_main_thread_process_queued_calls=wasmExports.emscripten_main_thread_process_queued_calls)(),_pthread_sigmask=Module._pthread_sigmask=(e,t,r)=>(_pthread_sigmask=Module._pthread_sigmask=wasmExports.pthread_sigmask)(e,t,r),_freelocale=Module._freelocale=e=>(_freelocale=Module._freelocale=wasmExports.freelocale)(e),_emscripten_pthread_attr_gettransferredcanvases=Module._emscripten_pthread_attr_gettransferredcanvases=(e,t)=>(_emscripten_pthread_attr_gettransferredcanvases=Module._emscripten_pthread_attr_gettransferredcanvases=wasmExports.emscripten_pthread_attr_gettransferredcanvases)(e,t),_emscripten_pthread_attr_settransferredcanvases=Module._emscripten_pthread_attr_settransferredcanvases=(e,t)=>(_emscripten_pthread_attr_settransferredcanvases=Module._emscripten_pthread_attr_settransferredcanvases=wasmExports.emscripten_pthread_attr_settransferredcanvases)(e,t),_pthread_mutexattr_getprioceiling=Module._pthread_mutexattr_getprioceiling=(e,t)=>(_pthread_mutexattr_getprioceiling=Module._pthread_mutexattr_getprioceiling=wasmExports.pthread_mutexattr_getprioceiling)(e,t),_pthread_mutexattr_setprioceiling=Module._pthread_mutexattr_setprioceiling=(e,t)=>(_pthread_mutexattr_setprioceiling=Module._pthread_mutexattr_setprioceiling=wasmExports.pthread_mutexattr_setprioceiling)(e,t),_emscripten_current_thread_process_queued_calls=Module._emscripten_current_thread_process_queued_calls=()=>(_emscripten_current_thread_process_queued_calls=Module._emscripten_current_thread_process_queued_calls=wasmExports.emscripten_current_thread_process_queued_calls)(),__emscripten_thread_is_valid=Module.__emscripten_thread_is_valid=e=>(__emscripten_thread_is_valid=Module.__emscripten_thread_is_valid=wasmExports._emscripten_thread_is_valid)(e),__emscripten_thread_mailbox_init=Module.__emscripten_thread_mailbox_init=e=>(__emscripten_thread_mailbox_init=Module.__emscripten_thread_mailbox_init=wasmExports._emscripten_thread_mailbox_init)(e),_emscripten_builtin_mmap=Module._emscripten_builtin_mmap=(e,t,r,n,i,a,s)=>(_emscripten_builtin_mmap=Module._emscripten_builtin_mmap=wasmExports.emscripten_builtin_mmap)(e,t,r,n,i,a,s),_emscripten_builtin_munmap=Module._emscripten_builtin_munmap=(e,t)=>(_emscripten_builtin_munmap=Module._emscripten_builtin_munmap=wasmExports.emscripten_builtin_munmap)(e,t),_em_proxying_queue_destroy=Module._em_proxying_queue_destroy=e=>(_em_proxying_queue_destroy=Module._em_proxying_queue_destroy=wasmExports.em_proxying_queue_destroy)(e),_pthread_cond_signal=Module._pthread_cond_signal=e=>(_pthread_cond_signal=Module._pthread_cond_signal=wasmExports.pthread_cond_signal)(e),_pthread_getspecific=Module._pthread_getspecific=e=>(_pthread_getspecific=Module._pthread_getspecific=wasmExports.pthread_getspecific)(e),_pthread_cond_wait=Module._pthread_cond_wait=(e,t)=>(_pthread_cond_wait=Module._pthread_cond_wait=wasmExports.pthread_cond_wait)(e,t),_pthread_once=Module._pthread_once=(e,t)=>(_pthread_once=Module._pthread_once=wasmExports.pthread_once)(e,t),_pthread_cond_destroy=Module._pthread_cond_destroy=e=>(_pthread_cond_destroy=Module._pthread_cond_destroy=wasmExports.pthread_cond_destroy)(e),_emscripten_proxy_callback_with_ctx=Module._emscripten_proxy_callback_with_ctx=(e,t,r,n,i,a)=>(_emscripten_proxy_callback_with_ctx=Module._emscripten_proxy_callback_with_ctx=wasmExports.emscripten_proxy_callback_with_ctx)(e,t,r,n,i,a),_emscripten_proxy_promise_with_ctx=Module._emscripten_proxy_promise_with_ctx=(e,t,r,n)=>(_emscripten_proxy_promise_with_ctx=Module._emscripten_proxy_promise_with_ctx=wasmExports.emscripten_proxy_promise_with_ctx)(e,t,r,n),_emscripten_proxy_promise=Module._emscripten_proxy_promise=(e,t,r,n)=>(_emscripten_proxy_promise=Module._emscripten_proxy_promise=wasmExports.emscripten_proxy_promise)(e,t,r,n),__emscripten_run_on_main_thread_js=(e,t,r,n,i)=>(__emscripten_run_on_main_thread_js=wasmExports._emscripten_run_on_main_thread_js)(e,t,r,n,i),_pthread_key_create=Module._pthread_key_create=(e,t)=>(_pthread_key_create=Module._pthread_key_create=wasmExports.pthread_key_create)(e,t),_emscripten_async_waitable_close=Module._emscripten_async_waitable_close=e=>(_emscripten_async_waitable_close=Module._emscripten_async_waitable_close=wasmExports.emscripten_async_waitable_close)(e),_emscripten_dispatch_to_thread_args=Module._emscripten_dispatch_to_thread_args=(e,t,r,n,i)=>(_emscripten_dispatch_to_thread_args=Module._emscripten_dispatch_to_thread_args=wasmExports.emscripten_dispatch_to_thread_args)(e,t,r,n,i),_emscripten_async_run_in_main_thread=Module._emscripten_async_run_in_main_thread=e=>(_emscripten_async_run_in_main_thread=Module._emscripten_async_run_in_main_thread=wasmExports.emscripten_async_run_in_main_thread)(e),_emscripten_dispatch_to_thread_=Module._emscripten_dispatch_to_thread_=(e,t,r,n,i)=>(_emscripten_dispatch_to_thread_=Module._emscripten_dispatch_to_thread_=wasmExports.emscripten_dispatch_to_thread_)(e,t,r,n,i),_emscripten_dispatch_to_thread_async_args=Module._emscripten_dispatch_to_thread_async_args=(e,t,r,n,i)=>(_emscripten_dispatch_to_thread_async_args=Module._emscripten_dispatch_to_thread_async_args=wasmExports.emscripten_dispatch_to_thread_async_args)(e,t,r,n,i),_emscripten_dispatch_to_thread_async_=Module._emscripten_dispatch_to_thread_async_=(e,t,r,n,i)=>(_emscripten_dispatch_to_thread_async_=Module._emscripten_dispatch_to_thread_async_=wasmExports.emscripten_dispatch_to_thread_async_)(e,t,r,n,i),_emscripten_sync_run_in_main_runtime_thread_=Module._emscripten_sync_run_in_main_runtime_thread_=(e,t,r)=>(_emscripten_sync_run_in_main_runtime_thread_=Module._emscripten_sync_run_in_main_runtime_thread_=wasmExports.emscripten_sync_run_in_main_runtime_thread_)(e,t,r),_emscripten_wait_for_call_v=Module._emscripten_wait_for_call_v=(e,t)=>(_emscripten_wait_for_call_v=Module._emscripten_wait_for_call_v=wasmExports.emscripten_wait_for_call_v)(e,t),_emscripten_async_run_in_main_runtime_thread_=Module._emscripten_async_run_in_main_runtime_thread_=(e,t,r)=>(_emscripten_async_run_in_main_runtime_thread_=Module._emscripten_async_run_in_main_runtime_thread_=wasmExports.emscripten_async_run_in_main_runtime_thread_)(e,t,r),_emscripten_async_waitable_run_in_main_runtime_thread_=Module._emscripten_async_waitable_run_in_main_runtime_thread_=(e,t,r)=>(_emscripten_async_waitable_run_in_main_runtime_thread_=Module._emscripten_async_waitable_run_in_main_runtime_thread_=wasmExports.emscripten_async_waitable_run_in_main_runtime_thread_)(e,t,r),_emscripten_wait_for_call_i=Module._emscripten_wait_for_call_i=(e,t,r)=>(_emscripten_wait_for_call_i=Module._emscripten_wait_for_call_i=wasmExports.emscripten_wait_for_call_i)(e,t,r),_pthread_attr_destroy=Module._pthread_attr_destroy=e=>(_pthread_attr_destroy=Module._pthread_attr_destroy=wasmExports.pthread_attr_destroy)(e),_pthread_attr_getdetachstate=Module._pthread_attr_getdetachstate=(e,t)=>(_pthread_attr_getdetachstate=Module._pthread_attr_getdetachstate=wasmExports.pthread_attr_getdetachstate)(e,t),_pthread_attr_getguardsize=Module._pthread_attr_getguardsize=(e,t)=>(_pthread_attr_getguardsize=Module._pthread_attr_getguardsize=wasmExports.pthread_attr_getguardsize)(e,t),_pthread_attr_getinheritsched=Module._pthread_attr_getinheritsched=(e,t)=>(_pthread_attr_getinheritsched=Module._pthread_attr_getinheritsched=wasmExports.pthread_attr_getinheritsched)(e,t),_pthread_attr_getschedparam=Module._pthread_attr_getschedparam=(e,t)=>(_pthread_attr_getschedparam=Module._pthread_attr_getschedparam=wasmExports.pthread_attr_getschedparam)(e,t),_pthread_attr_getschedpolicy=Module._pthread_attr_getschedpolicy=(e,t)=>(_pthread_attr_getschedpolicy=Module._pthread_attr_getschedpolicy=wasmExports.pthread_attr_getschedpolicy)(e,t),_pthread_attr_getscope=Module._pthread_attr_getscope=(e,t)=>(_pthread_attr_getscope=Module._pthread_attr_getscope=wasmExports.pthread_attr_getscope)(e,t),_pthread_attr_getstack=Module._pthread_attr_getstack=(e,t,r)=>(_pthread_attr_getstack=Module._pthread_attr_getstack=wasmExports.pthread_attr_getstack)(e,t,r),_pthread_attr_getstacksize=Module._pthread_attr_getstacksize=(e,t)=>(_pthread_attr_getstacksize=Module._pthread_attr_getstacksize=wasmExports.pthread_attr_getstacksize)(e,t),_pthread_barrierattr_getpshared=Module._pthread_barrierattr_getpshared=(e,t)=>(_pthread_barrierattr_getpshared=Module._pthread_barrierattr_getpshared=wasmExports.pthread_barrierattr_getpshared)(e,t),_pthread_condattr_getclock=Module._pthread_condattr_getclock=(e,t)=>(_pthread_condattr_getclock=Module._pthread_condattr_getclock=wasmExports.pthread_condattr_getclock)(e,t),_pthread_condattr_getpshared=Module._pthread_condattr_getpshared=(e,t)=>(_pthread_condattr_getpshared=Module._pthread_condattr_getpshared=wasmExports.pthread_condattr_getpshared)(e,t),_pthread_mutexattr_getprotocol=Module._pthread_mutexattr_getprotocol=(e,t)=>(_pthread_mutexattr_getprotocol=Module._pthread_mutexattr_getprotocol=wasmExports.pthread_mutexattr_getprotocol)(e,t),_pthread_mutexattr_getpshared=Module._pthread_mutexattr_getpshared=(e,t)=>(_pthread_mutexattr_getpshared=Module._pthread_mutexattr_getpshared=wasmExports.pthread_mutexattr_getpshared)(e,t),_pthread_mutexattr_getrobust=Module._pthread_mutexattr_getrobust=(e,t)=>(_pthread_mutexattr_getrobust=Module._pthread_mutexattr_getrobust=wasmExports.pthread_mutexattr_getrobust)(e,t),_pthread_mutexattr_gettype=Module._pthread_mutexattr_gettype=(e,t)=>(_pthread_mutexattr_gettype=Module._pthread_mutexattr_gettype=wasmExports.pthread_mutexattr_gettype)(e,t),_pthread_rwlockattr_getpshared=Module._pthread_rwlockattr_getpshared=(e,t)=>(_pthread_rwlockattr_getpshared=Module._pthread_rwlockattr_getpshared=wasmExports.pthread_rwlockattr_getpshared)(e,t),_pthread_attr_init=Module._pthread_attr_init=e=>(_pthread_attr_init=Module._pthread_attr_init=wasmExports.pthread_attr_init)(e),_pthread_attr_setdetachstate=Module._pthread_attr_setdetachstate=(e,t)=>(_pthread_attr_setdetachstate=Module._pthread_attr_setdetachstate=wasmExports.pthread_attr_setdetachstate)(e,t),_pthread_attr_setguardsize=Module._pthread_attr_setguardsize=(e,t)=>(_pthread_attr_setguardsize=Module._pthread_attr_setguardsize=wasmExports.pthread_attr_setguardsize)(e,t),_pthread_attr_setinheritsched=Module._pthread_attr_setinheritsched=(e,t)=>(_pthread_attr_setinheritsched=Module._pthread_attr_setinheritsched=wasmExports.pthread_attr_setinheritsched)(e,t),_pthread_attr_setschedparam=Module._pthread_attr_setschedparam=(e,t)=>(_pthread_attr_setschedparam=Module._pthread_attr_setschedparam=wasmExports.pthread_attr_setschedparam)(e,t),_pthread_attr_setschedpolicy=Module._pthread_attr_setschedpolicy=(e,t)=>(_pthread_attr_setschedpolicy=Module._pthread_attr_setschedpolicy=wasmExports.pthread_attr_setschedpolicy)(e,t),_pthread_attr_setscope=Module._pthread_attr_setscope=(e,t)=>(_pthread_attr_setscope=Module._pthread_attr_setscope=wasmExports.pthread_attr_setscope)(e,t),_pthread_attr_setstack=Module._pthread_attr_setstack=(e,t,r)=>(_pthread_attr_setstack=Module._pthread_attr_setstack=wasmExports.pthread_attr_setstack)(e,t,r),_pthread_attr_setstacksize=Module._pthread_attr_setstacksize=(e,t)=>(_pthread_attr_setstacksize=Module._pthread_attr_setstacksize=wasmExports.pthread_attr_setstacksize)(e,t),_pthread_barrier_destroy=Module._pthread_barrier_destroy=e=>(_pthread_barrier_destroy=Module._pthread_barrier_destroy=wasmExports.pthread_barrier_destroy)(e),_pthread_barrier_init=Module._pthread_barrier_init=(e,t,r)=>(_pthread_barrier_init=Module._pthread_barrier_init=wasmExports.pthread_barrier_init)(e,t,r),_pthread_barrier_wait=Module._pthread_barrier_wait=e=>(_pthread_barrier_wait=Module._pthread_barrier_wait=wasmExports.pthread_barrier_wait)(e),_pthread_barrierattr_destroy=Module._pthread_barrierattr_destroy=e=>(_pthread_barrierattr_destroy=Module._pthread_barrierattr_destroy=wasmExports.pthread_barrierattr_destroy)(e),_pthread_barrierattr_init=Module._pthread_barrierattr_init=e=>(_pthread_barrierattr_init=Module._pthread_barrierattr_init=wasmExports.pthread_barrierattr_init)(e),_pthread_barrierattr_setpshared=Module._pthread_barrierattr_setpshared=(e,t)=>(_pthread_barrierattr_setpshared=Module._pthread_barrierattr_setpshared=wasmExports.pthread_barrierattr_setpshared)(e,t),_pthread_exit=Module._pthread_exit=e=>(_pthread_exit=Module._pthread_exit=wasmExports.pthread_exit)(e),_pthread_cancel=Module._pthread_cancel=e=>(_pthread_cancel=Module._pthread_cancel=wasmExports.pthread_cancel)(e),_pthread_cond_broadcast=Module._pthread_cond_broadcast=e=>(_pthread_cond_broadcast=Module._pthread_cond_broadcast=wasmExports.pthread_cond_broadcast)(e),_pthread_cond_init=Module._pthread_cond_init=(e,t)=>(_pthread_cond_init=Module._pthread_cond_init=wasmExports.pthread_cond_init)(e,t),_pthread_cond_timedwait=Module._pthread_cond_timedwait=(e,t,r)=>(_pthread_cond_timedwait=Module._pthread_cond_timedwait=wasmExports.pthread_cond_timedwait)(e,t,r),_pthread_condattr_destroy=Module._pthread_condattr_destroy=e=>(_pthread_condattr_destroy=Module._pthread_condattr_destroy=wasmExports.pthread_condattr_destroy)(e),_pthread_condattr_init=Module._pthread_condattr_init=e=>(_pthread_condattr_init=Module._pthread_condattr_init=wasmExports.pthread_condattr_init)(e),_pthread_condattr_setclock=Module._pthread_condattr_setclock=(e,t)=>(_pthread_condattr_setclock=Module._pthread_condattr_setclock=wasmExports.pthread_condattr_setclock)(e,t),_pthread_condattr_setpshared=Module._pthread_condattr_setpshared=(e,t)=>(_pthread_condattr_setpshared=Module._pthread_condattr_setpshared=wasmExports.pthread_condattr_setpshared)(e,t),__emscripten_thread_free_data=e=>(__emscripten_thread_free_data=wasmExports._emscripten_thread_free_data)(e),__emscripten_thread_exit=Module.__emscripten_thread_exit=e=>(__emscripten_thread_exit=Module.__emscripten_thread_exit=wasmExports._emscripten_thread_exit)(e),__emscripten_thread_mailbox_shutdown=Module.__emscripten_thread_mailbox_shutdown=e=>(__emscripten_thread_mailbox_shutdown=Module.__emscripten_thread_mailbox_shutdown=wasmExports._emscripten_thread_mailbox_shutdown)(e),_emscripten_builtin_pthread_create=Module._emscripten_builtin_pthread_create=(e,t,r,n)=>(_emscripten_builtin_pthread_create=Module._emscripten_builtin_pthread_create=wasmExports.emscripten_builtin_pthread_create)(e,t,r,n),_emscripten_builtin_pthread_exit=Module._emscripten_builtin_pthread_exit=e=>(_emscripten_builtin_pthread_exit=Module._emscripten_builtin_pthread_exit=wasmExports.emscripten_builtin_pthread_exit)(e),_pthread_detach=Module._pthread_detach=e=>(_pthread_detach=Module._pthread_detach=wasmExports.pthread_detach)(e),_emscripten_builtin_pthread_detach=Module._emscripten_builtin_pthread_detach=e=>(_emscripten_builtin_pthread_detach=Module._emscripten_builtin_pthread_detach=wasmExports.emscripten_builtin_pthread_detach)(e),_pthread_equal=Module._pthread_equal=(e,t)=>(_pthread_equal=Module._pthread_equal=wasmExports.pthread_equal)(e,t),_pthread_getattr_np=Module._pthread_getattr_np=(e,t)=>(_pthread_getattr_np=Module._pthread_getattr_np=wasmExports.pthread_getattr_np)(e,t),_pthread_getconcurrency=Module._pthread_getconcurrency=()=>(_pthread_getconcurrency=Module._pthread_getconcurrency=wasmExports.pthread_getconcurrency)(),_pthread_getcpuclockid=Module._pthread_getcpuclockid=(e,t)=>(_pthread_getcpuclockid=Module._pthread_getcpuclockid=wasmExports.pthread_getcpuclockid)(e,t),_pthread_getschedparam=Module._pthread_getschedparam=(e,t,r)=>(_pthread_getschedparam=Module._pthread_getschedparam=wasmExports.pthread_getschedparam)(e,t,r),_pthread_tryjoin_np=Module._pthread_tryjoin_np=(e,t)=>(_pthread_tryjoin_np=Module._pthread_tryjoin_np=wasmExports.pthread_tryjoin_np)(e,t),_pthread_timedjoin_np=Module._pthread_timedjoin_np=(e,t,r)=>(_pthread_timedjoin_np=Module._pthread_timedjoin_np=wasmExports.pthread_timedjoin_np)(e,t,r),_pthread_join=Module._pthread_join=(e,t)=>(_pthread_join=Module._pthread_join=wasmExports.pthread_join)(e,t),_emscripten_builtin_pthread_join=Module._emscripten_builtin_pthread_join=(e,t)=>(_emscripten_builtin_pthread_join=Module._emscripten_builtin_pthread_join=wasmExports.emscripten_builtin_pthread_join)(e,t),_pthread_key_delete=Module._pthread_key_delete=e=>(_pthread_key_delete=Module._pthread_key_delete=wasmExports.pthread_key_delete)(e),_pthread_mutex_consistent=Module._pthread_mutex_consistent=e=>(_pthread_mutex_consistent=Module._pthread_mutex_consistent=wasmExports.pthread_mutex_consistent)(e),_pthread_mutex_getprioceiling=Module._pthread_mutex_getprioceiling=(e,t)=>(_pthread_mutex_getprioceiling=Module._pthread_mutex_getprioceiling=wasmExports.pthread_mutex_getprioceiling)(e,t),_pthread_mutex_init=Module._pthread_mutex_init=(e,t)=>(_pthread_mutex_init=Module._pthread_mutex_init=wasmExports.pthread_mutex_init)(e,t),_pthread_mutex_setprioceiling=Module._pthread_mutex_setprioceiling=(e,t,r)=>(_pthread_mutex_setprioceiling=Module._pthread_mutex_setprioceiling=wasmExports.pthread_mutex_setprioceiling)(e,t,r),_pthread_mutex_timedlock=Module._pthread_mutex_timedlock=(e,t)=>(_pthread_mutex_timedlock=Module._pthread_mutex_timedlock=wasmExports.pthread_mutex_timedlock)(e,t),_pthread_mutexattr_destroy=Module._pthread_mutexattr_destroy=e=>(_pthread_mutexattr_destroy=Module._pthread_mutexattr_destroy=wasmExports.pthread_mutexattr_destroy)(e),_pthread_mutexattr_init=Module._pthread_mutexattr_init=e=>(_pthread_mutexattr_init=Module._pthread_mutexattr_init=wasmExports.pthread_mutexattr_init)(e),_pthread_mutexattr_setprotocol=Module._pthread_mutexattr_setprotocol=(e,t)=>(_pthread_mutexattr_setprotocol=Module._pthread_mutexattr_setprotocol=wasmExports.pthread_mutexattr_setprotocol)(e,t),_pthread_mutexattr_setpshared=Module._pthread_mutexattr_setpshared=(e,t)=>(_pthread_mutexattr_setpshared=Module._pthread_mutexattr_setpshared=wasmExports.pthread_mutexattr_setpshared)(e,t),_pthread_mutexattr_setrobust=Module._pthread_mutexattr_setrobust=(e,t)=>(_pthread_mutexattr_setrobust=Module._pthread_mutexattr_setrobust=wasmExports.pthread_mutexattr_setrobust)(e,t),_pthread_mutexattr_settype=Module._pthread_mutexattr_settype=(e,t)=>(_pthread_mutexattr_settype=Module._pthread_mutexattr_settype=wasmExports.pthread_mutexattr_settype)(e,t),_pthread_rwlock_tryrdlock=Module._pthread_rwlock_tryrdlock=e=>(_pthread_rwlock_tryrdlock=Module._pthread_rwlock_tryrdlock=wasmExports.pthread_rwlock_tryrdlock)(e),_pthread_rwlock_timedrdlock=Module._pthread_rwlock_timedrdlock=(e,t)=>(_pthread_rwlock_timedrdlock=Module._pthread_rwlock_timedrdlock=wasmExports.pthread_rwlock_timedrdlock)(e,t),_pthread_rwlock_trywrlock=Module._pthread_rwlock_trywrlock=e=>(_pthread_rwlock_trywrlock=Module._pthread_rwlock_trywrlock=wasmExports.pthread_rwlock_trywrlock)(e),_pthread_rwlock_timedwrlock=Module._pthread_rwlock_timedwrlock=(e,t)=>(_pthread_rwlock_timedwrlock=Module._pthread_rwlock_timedwrlock=wasmExports.pthread_rwlock_timedwrlock)(e,t),_pthread_rwlockattr_destroy=Module._pthread_rwlockattr_destroy=e=>(_pthread_rwlockattr_destroy=Module._pthread_rwlockattr_destroy=wasmExports.pthread_rwlockattr_destroy)(e),_pthread_rwlockattr_init=Module._pthread_rwlockattr_init=e=>(_pthread_rwlockattr_init=Module._pthread_rwlockattr_init=wasmExports.pthread_rwlockattr_init)(e),_pthread_rwlockattr_setpshared=Module._pthread_rwlockattr_setpshared=(e,t)=>(_pthread_rwlockattr_setpshared=Module._pthread_rwlockattr_setpshared=wasmExports.pthread_rwlockattr_setpshared)(e,t),_pthread_setattr_default_np=Module._pthread_setattr_default_np=e=>(_pthread_setattr_default_np=Module._pthread_setattr_default_np=wasmExports.pthread_setattr_default_np)(e),_pthread_getattr_default_np=Module._pthread_getattr_default_np=e=>(_pthread_getattr_default_np=Module._pthread_getattr_default_np=wasmExports.pthread_getattr_default_np)(e),_pthread_setcanceltype=Module._pthread_setcanceltype=(e,t)=>(_pthread_setcanceltype=Module._pthread_setcanceltype=wasmExports.pthread_setcanceltype)(e,t),_pthread_testcancel=Module._pthread_testcancel=()=>(_pthread_testcancel=Module._pthread_testcancel=wasmExports.pthread_testcancel)(),_pthread_setconcurrency=Module._pthread_setconcurrency=e=>(_pthread_setconcurrency=Module._pthread_setconcurrency=wasmExports.pthread_setconcurrency)(e),_pthread_setschedparam=Module._pthread_setschedparam=(e,t,r)=>(_pthread_setschedparam=Module._pthread_setschedparam=wasmExports.pthread_setschedparam)(e,t,r),_pthread_setschedprio=Module._pthread_setschedprio=(e,t)=>(_pthread_setschedprio=Module._pthread_setschedprio=wasmExports.pthread_setschedprio)(e,t),_pthread_spin_destroy=Module._pthread_spin_destroy=e=>(_pthread_spin_destroy=Module._pthread_spin_destroy=wasmExports.pthread_spin_destroy)(e),_pthread_spin_init=Module._pthread_spin_init=(e,t)=>(_pthread_spin_init=Module._pthread_spin_init=wasmExports.pthread_spin_init)(e,t),_pthread_spin_lock=Module._pthread_spin_lock=e=>(_pthread_spin_lock=Module._pthread_spin_lock=wasmExports.pthread_spin_lock)(e),_pthread_spin_trylock=Module._pthread_spin_trylock=e=>(_pthread_spin_trylock=Module._pthread_spin_trylock=wasmExports.pthread_spin_trylock)(e),_pthread_spin_unlock=Module._pthread_spin_unlock=e=>(_pthread_spin_unlock=Module._pthread_spin_unlock=wasmExports.pthread_spin_unlock)(e),_emscripten_get_sbrk_ptr=Module._emscripten_get_sbrk_ptr=()=>(_emscripten_get_sbrk_ptr=Module._emscripten_get_sbrk_ptr=wasmExports.emscripten_get_sbrk_ptr)(),__emscripten_timeout=(e,t)=>(__emscripten_timeout=wasmExports._emscripten_timeout)(e,t),__emscripten_check_mailbox=()=>(__emscripten_check_mailbox=wasmExports._emscripten_check_mailbox)(),_emscripten_set_thread_name=Module._emscripten_set_thread_name=(e,t)=>(_emscripten_set_thread_name=Module._emscripten_set_thread_name=wasmExports.emscripten_set_thread_name)(e,t),_malloc_trim=Module._malloc_trim=e=>(_malloc_trim=Module._malloc_trim=wasmExports.malloc_trim)(e),_malloc_usable_size=Module._malloc_usable_size=e=>(_malloc_usable_size=Module._malloc_usable_size=wasmExports.malloc_usable_size)(e),_malloc_footprint=Module._malloc_footprint=()=>(_malloc_footprint=Module._malloc_footprint=wasmExports.malloc_footprint)(),_malloc_max_footprint=Module._malloc_max_footprint=()=>(_malloc_max_footprint=Module._malloc_max_footprint=wasmExports.malloc_max_footprint)(),_malloc_footprint_limit=Module._malloc_footprint_limit=()=>(_malloc_footprint_limit=Module._malloc_footprint_limit=wasmExports.malloc_footprint_limit)(),_malloc_set_footprint_limit=Module._malloc_set_footprint_limit=e=>(_malloc_set_footprint_limit=Module._malloc_set_footprint_limit=wasmExports.malloc_set_footprint_limit)(e),__emscripten_tempret_set=e=>(__emscripten_tempret_set=wasmExports._emscripten_tempret_set)(e),__emscripten_tempret_get=()=>(__emscripten_tempret_get=wasmExports._emscripten_tempret_get)(),_emscripten_stack_init=Module._emscripten_stack_init=()=>(_emscripten_stack_init=Module._emscripten_stack_init=wasmExports.emscripten_stack_init)(),_emscripten_stack_set_limits=(e,t)=>(_emscripten_stack_set_limits=wasmExports.emscripten_stack_set_limits)(e,t),_emscripten_stack_get_free=Module._emscripten_stack_get_free=()=>(_emscripten_stack_get_free=Module._emscripten_stack_get_free=wasmExports.emscripten_stack_get_free)(),_emscripten_wasm_worker_initialize=Module._emscripten_wasm_worker_initialize=(e,t)=>(_emscripten_wasm_worker_initialize=Module._emscripten_wasm_worker_initialize=wasmExports.emscripten_wasm_worker_initialize)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),__ZTVN5arrow12NumericArrayINS_10Date64TypeEEE=Module.__ZTVN5arrow12NumericArrayINS_10Date64TypeEEE=1929e3,__ZTVNSt3__220__shared_ptr_pointerIPN5arrow17DictionaryBuilderINS1_14Decimal256TypeEEENS_14default_deleteIS4_EENS_9allocatorIS4_EEEE=Module.__ZTVNSt3__220__shared_ptr_pointerIPN5arrow17DictionaryBuilderINS1_14Decimal256TypeEEENS_14default_deleteIS4_EENS_9allocatorIS4_EEEE=1935e3,__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb3web21TableFunctionRelationENS_9allocatorIS3_EEEE=Module.__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb3web21TableFunctionRelationENS_9allocatorIS3_EEEE=1947e3,__ZTIN6duckdb13QualifyBinderE=Module.__ZTIN6duckdb13QualifyBinderE=1959e3,__ZTTNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE=Module.__ZTTNSt3__219basic_ostringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE=2168e3,__ZTIN6duckdb17LocalWriteCSVDataE=Module.__ZTIN6duckdb17LocalWriteCSVDataE=1993e3,__ZTSN6duckdb18ScalarFunctionInfoE=Module.__ZTSN6duckdb18ScalarFunctionInfoE=523e3,__ZTVN6duckdb24ArrowCollectorLocalStateE=Module.__ZTVN6duckdb24ArrowCollectorLocalStateE=2015e3,__ZTIN6duckdb23PhysicalBlockwiseNLJoinE=Module.__ZTIN6duckdb23PhysicalBlockwiseNLJoinE=2038e3,__ZTVN6duckdb24RadixHTGlobalSourceStateE=Module.__ZTVN6duckdb24RadixHTGlobalSourceStateE=2049e3,__ZTSN6duckdb14CTableBindDataE=Module.__ZTSN6duckdb14CTableBindDataE=645e3,__ZGVZNK14duckdb_httplib10ClientImpl18read_response_lineERNS_6StreamERKNS_7RequestERNS_8ResponseEE2re=Module.__ZGVZNK14duckdb_httplib10ClientImpl18read_response_lineERNS_6StreamERKNS_7RequestERNS_8ResponseEE2re=2206e3,__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb14DeleteRelationENS_9allocatorIS2_EEEE=Module.__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb14DeleteRelationENS_9allocatorIS2_EEEE=2056e3,__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb18ProjectionRelationENS_9allocatorIS2_EEEE=Module.__ZTVNSt3__220__shared_ptr_emplaceIN6duckdb18ProjectionRelationENS_9allocatorIS2_EEEE=2063e3,__ZTIN6duckdb13PipelineEventE=Module.__ZTIN6duckdb13PipelineEventE=2064e3,__ZN6duckdb26LeadingZeroBufferConstants6SHIFTSE=Module.__ZN6duckdb26LeadingZeroBufferConstants6SHIFTSE=676e3,__ZTVN5arrow8internal21DictionaryBuilderBaseINS_18AdaptiveIntBuilderENS_10UInt32TypeEEE=Module.__ZTVN5arrow8internal21DictionaryBuilderBaseINS_18AdaptiveIntBuilderENS_10UInt32TypeEEE=2091e3,__ZTVN5arrow8internal21DictionaryBuilderBaseINS_18AdaptiveIntBuilderENS_10DoubleTypeEEE=Module.__ZTVN5arrow8internal21DictionaryBuilderBaseINS_18AdaptiveIntBuilderENS_10DoubleTypeEEE=2092e3,__ZTINSt3__223enable_shared_from_thisIN5arrow6ScalarEEE=Module.__ZTINSt3__223enable_shared_from_thisIN5arrow6ScalarEEE=2099e3,__ZTVNSt3__220__shared_ptr_emplaceIN5arrow25ExtensionTypeRegistryImplENS_9allocatorIS2_EEEE=Module.__ZTVNSt3__220__shared_ptr_emplaceIN5arrow25ExtensionTypeRegistryImplENS_9allocatorIS2_EEEE=2101e3,__ZTVN5arrow12Date64ScalarE=Module.__ZTVN5arrow12Date64ScalarE=2103e3,__ZTIN5arrow4util18EqualityComparableINS_7compute15FunctionOptionsEEE=Module.__ZTIN5arrow4util18EqualityComparableINS_7compute15FunctionOptionsEEE=2105e3,__ZTIZN5arrow17MakeFormatterImpl5VisitINS_10Date32TypeEEENSt3__29enable_ifIXsr12is_date_typeIT_EE5valueENS_6StatusEE4typeERKS5_EUlRKNS_5ArrayExPNS3_13basic_ostreamIcNS3_11char_traitsIcEEEEE_=Module.__ZTIZN5arrow17MakeFormatterImpl5VisitINS_10Date32TypeEEENSt3__29enable_ifIXsr12is_date_typeIT_EE5valueENS_6StatusEE4typeERKS5_EUlRKNS_5ArrayExPNS3_13basic_ostreamIcNS3_11char_traitsIcEEEEE_=212e4,__ZTINSt3__220__shared_ptr_emplaceIN5arrow12NumericArrayINS1_10Time32TypeEEENS_9allocatorIS4_EEEE=Module.__ZTINSt3__220__shared_ptr_emplaceIN5arrow12NumericArrayINS1_10Time32TypeEEENS_9allocatorIS4_EEEE=2122e3,__ZN5arrow7compute16SetLookupOptions9kTypeNameE=Module.__ZN5arrow7compute16SetLookupOptions9kTypeNameE=1472e3,__ZTSN5arrow7compute15StrftimeOptionsE=Module.__ZTSN5arrow7compute15StrftimeOptionsE=1473e3,__ZTIZN5arrow7compute8internal22GetFunctionOptionsTypeINS0_10PadOptionsEJNS_8internal18DataMemberPropertyIS3_xEENS5_IS3_NSt3__212basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEEENS5_IS3_bEEEEEPKNS0_19FunctionOptionsTypeEDpRKT0_E11OptionsType=Module.__ZTIZN5arrow7compute8internal22GetFunctionOptionsTypeINS0_10PadOptionsEJNS_8internal18DataMemberPropertyIS3_xEENS5_IS3_NSt3__212basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEEEENS5_IS3_bEEEEEPKNS0_19FunctionOptionsTypeEDpRKT0_E11OptionsType=2125e3,__ZTIN5arrow7compute16ArraySortOptionsE=Module.__ZTIN5arrow7compute16ArraySortOptionsE=2127e3,__ZTCN5arrow2io12StdoutStreamE0_NS0_12OutputStreamE=Module.__ZTCN5arrow2io12StdoutStreamE0_NS0_12OutputStreamE=215e4,__ZN5arrow19GenericBasicDecimalINS_15BasicDecimal256ELi256ELi4EE9kBitWidthE=Module.__ZN5arrow19GenericBasicDecimalINS_15BasicDecimal256ELi256ELi4EE9kBitWidthE=1539e3,__emscripten_main_thread_futex=Module.__emscripten_main_thread_futex=2213024,__ZNSt3__25wcerrE=Module.__ZNSt3__25wcerrE=2253e3,__ZNSt3__27codecvtIDsDu11__mbstate_tE2idE=Module.__ZNSt3__27codecvtIDsDu11__mbstate_tE2idE=2254e3,__ZTINSt3__215numpunct_bynameIwEE=Module.__ZTINSt3__215numpunct_bynameIwEE=2171e3,__ZTINSt3__29money_getIcNS_19istreambuf_iteratorIcNS_11char_traitsIcEEEEEE=Module.__ZTINSt3__29money_getIcNS_19istreambuf_iteratorIcNS_11char_traitsIcEEEEEE=2173e3,__ZTSPKo=Module.__ZTSPKo=1928e3,calledRun;function applySignatureConversions(e){var t,r=e=>t=>e(t)>>>0,n=e=>()=>e()>>>0,i=e=>(t,r)=>e(t,r)>>>0;return(e=Object.assign({},e)).__getTypeName=r(e.__getTypeName),e.pthread_self=n(e.pthread_self),e.malloc=r(e.malloc),e.__errno_location=n(e.__errno_location),e.memcpy=(t=e.memcpy,(e,r,n)=>t(e,r,n)>>>0),e.emscripten_builtin_memalign=i(e.emscripten_builtin_memalign),e.emscripten_builtin_malloc=r(e.emscripten_builtin_malloc),e.emscripten_main_runtime_thread_id=n(e.emscripten_main_runtime_thread_id),e.emscripten_stack_get_base=n(e.emscripten_stack_get_base),e.emscripten_stack_get_end=n(e.emscripten_stack_get_end),e.emscripten_stack_get_current=n(e.emscripten_stack_get_current),e.sbrk=(e=>t=>e(t)>>>0)(e.sbrk),e.memalign=i(e.memalign),e._emscripten_stack_alloc=r(e._emscripten_stack_alloc),e}function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc(4*(r+1)),i=n;e.forEach((e=>{GROWABLE_HEAP_U32()[i>>>2>>>0]=stringToUTF8OnStack(e),i+=4})),GROWABLE_HEAP_U32()[i>>>2>>>0]=0;try{var a=t(r,n);return exitJS(a,!0),a}catch(e){return handleException(e)}}}Module.wasmMemory=wasmMemory,Module.stackSave=stackSave,Module.stackRestore=stackRestore,Module.stackAlloc=stackAlloc,Module.keepRuntimeAlive=keepRuntimeAlive,Module.ccall=ccall,Module.ExitStatus=ExitStatus,Module.PThread=PThread,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)};var sharedModules=Module.sharedModules||[];function run(e=arguments_){if(!(runDependencies>0)){if(ENVIRONMENT_IS_PTHREAD)return readyPromiseResolve(Module),initRuntime(),void startWorker(Module);preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t())}function t(){calledRun||(calledRun=!0,Module.calledRun=!0,!ABORT&&(initRuntime(),preMain(),readyPromiseResolve(Module),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),shouldRunNow&&callMain(e),postRun()))}}if(Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;return Module.noInitialRun&&(shouldRunNow=!1),run(),readyPromise}})();"object"==typeof exports&&"object"==typeof module?module.exports=DuckDB:"function"==typeof define&&define.amd&&define([],(()=>DuckDB))})),Nl=xt((()=>{})),Cl=xt((()=>{})),Hl=xt(((e,t)=>{!function(){var e="input is invalid type",r="object"==typeof window,n=r?window:{};n.JS_SHA256_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self,a=!n.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;a?n=global:i&&(n=self);var s=!n.JS_SHA256_NO_COMMON_JS&&"object"==typeof t&&t.exports,o="function"==typeof define&&define.amd,_=!n.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),c=[-2147483648,8388608,32768,128],u=[24,16,8,0],d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=["hex","array","digest","arrayBuffer"],m=[];(n.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),_&&(n.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var f=function(e,t){return function(r){return new y(t,!0).update(r)[e]()}},h=function(e){var t=f("hex",e);a&&(t=g(t,e)),t.create=function(){return new y(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r>>6,o[c++]=128|63&s):s<55296||s>=57344?(o[c++]=224|s>>>12,o[c++]=128|s>>>6&63,o[c++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),o[c++]=240|s>>>18,o[c++]=128|s>>>12&63,o[c++]=128|s>>>6&63,o[c++]=128|63&s);t=o}else{if("object"!==a)throw new Error(e);if(null===t)throw new Error(e);if(_&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||_&&ArrayBuffer.isView(t)))throw new Error(e)}t.length>64&&(t=new y(r,!0).update(t).array());var u=[],d=[];for(i=0;i<64;++i){var p=t[i]||0;u[i]=92^p,d[i]=54^p}y.call(this,r,n),this.update(d),this.oKeyPad=u,this.inner=!0,this.sharedMemory=n}y.prototype.update=function(t){if(!this.finalized){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(_&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||_&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,a,s=0,o=t.length,l=this.blocks;s>>2]|=t[s]<>>2]|=i<>>2]|=(192|i>>>6)<>>2]|=(128|63&i)<=57344?(l[a>>>2]|=(224|i>>>12)<>>2]|=(128|i>>>6&63)<>>2]|=(128|63&i)<>>2]|=(240|i>>>18)<>>2]|=(128|i>>>12&63)<>>2]|=(128|i>>>6&63)<>>2]|=(128|63&i)<=64?(this.block=l[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},y.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=c[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},y.prototype.hash=function(){var e,t,r,n,i,a,s,o,_,l=this.h0,c=this.h1,u=this.h2,p=this.h3,m=this.h4,f=this.h5,h=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,r=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+r<<0;for(_=c&u,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,g=(i=v[0]-1413257819)-150054599<<0,p=i+24177077<<0):(a=704751109,g=(i=v[0]-210244248)-1521486534<<0,p=i+143694565<<0),this.first=!1):(t=(l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10),n=(a=l&c)^l&u^_,g=p+(i=g+(r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&f^~m&h)+d[e]+v[e])<<0,p=i+(t+n)<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(s=p&l)^p&c^a,h=u+(i=h+(r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&m^~g&f)+d[e+1]+v[e+1])<<0,t=((u=i+(t+n)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),n=(o=u&p)^u&l^s,f=c+(i=f+(r=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&g^~h&m)+d[e+2]+v[e+2])<<0,t=((c=i+(t+n)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),n=(_=c&u)^c&p^o,m=l+(i=m+(r=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&h^~f&g)+d[e+3]+v[e+3])<<0,l=i+(t+n)<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+l<<0,this.h1=this.h1+c<<0,this.h2=this.h2+u<<0,this.h3=this.h3+p<<0,this.h4=this.h4+m<<0,this.h5=this.h5+f<<0,this.h6=this.h6+h<<0,this.h7=this.h7+g<<0},y.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4,a=this.h5,s=this.h6,o=this.h7,_=l[e>>>28&15]+l[e>>>24&15]+l[e>>>20&15]+l[e>>>16&15]+l[e>>>12&15]+l[e>>>8&15]+l[e>>>4&15]+l[15&e]+l[t>>>28&15]+l[t>>>24&15]+l[t>>>20&15]+l[t>>>16&15]+l[t>>>12&15]+l[t>>>8&15]+l[t>>>4&15]+l[15&t]+l[r>>>28&15]+l[r>>>24&15]+l[r>>>20&15]+l[r>>>16&15]+l[r>>>12&15]+l[r>>>8&15]+l[r>>>4&15]+l[15&r]+l[n>>>28&15]+l[n>>>24&15]+l[n>>>20&15]+l[n>>>16&15]+l[n>>>12&15]+l[n>>>8&15]+l[n>>>4&15]+l[15&n]+l[i>>>28&15]+l[i>>>24&15]+l[i>>>20&15]+l[i>>>16&15]+l[i>>>12&15]+l[i>>>8&15]+l[i>>>4&15]+l[15&i]+l[a>>>28&15]+l[a>>>24&15]+l[a>>>20&15]+l[a>>>16&15]+l[a>>>12&15]+l[a>>>8&15]+l[a>>>4&15]+l[15&a]+l[s>>>28&15]+l[s>>>24&15]+l[s>>>20&15]+l[s>>>16&15]+l[s>>>12&15]+l[s>>>8&15]+l[s>>>4&15]+l[15&s];return this.is224||(_+=l[o>>>28&15]+l[o>>>24&15]+l[o>>>20&15]+l[o>>>16&15]+l[o>>>12&15]+l[o>>>8&15]+l[o>>>4&15]+l[15&o]),_},y.prototype.toString=y.prototype.hex,y.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4,a=this.h5,s=this.h6,o=this.h7,_=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||_.push(o>>>24&255,o>>>16&255,o>>>8&255,255&o),_},y.prototype.array=y.prototype.digest,y.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},b.prototype=new y,b.prototype.finalize=function(){if(y.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();y.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),y.prototype.finalize.call(this)}};var S=h();S.sha256=S,S.sha224=h(!0),S.sha256.hmac=E(),S.sha224.hmac=E(!0),s?t.exports=S:(n.sha256=S.sha256,n.sha224=S.sha224,o&&define((function(){return S})))}()})),Ld={};function Go(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e){return this instanceof ee?(this.v=e,this):new ee(e)}function Xe(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),a=[];return n={},s("next"),s("throw"),s("return"),n[Symbol.asyncIterator]=function(){return this},n;function s(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||o(e,t)}))})}function o(e,t){try{!function(e){e.value instanceof ee?Promise.resolve(e.value.v).then(_,l):c(a[0][2],e)}(i[e](t))}catch(e){c(a[0][3],e)}}function _(e){o("next",e)}function l(e){o("throw",e)}function c(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function en(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:ee(e[n](t)),done:!1}:i?i(t):t}:i}}function ct(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof ko?ko(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}pr(Ld,{registerWorker:()=>zl});var La={};pr(La,{compareArrayLike:()=>Aa,joinUint8Arrays:()=>Ke,memcpy:()=>Fn,rebaseValueOffsets:()=>Gi,toArrayBufferView:()=>re,toArrayBufferViewAsyncIterator:()=>ft,toArrayBufferViewIterator:()=>Rt,toBigInt64Array:()=>ki,toBigUint64Array:()=>ac,toFloat32Array:()=>oc,toFloat32ArrayAsyncIterator:()=>Ac,toFloat32ArrayIterator:()=>mc,toFloat64Array:()=>_c,toFloat64ArrayAsyncIterator:()=>Lc,toFloat64ArrayIterator:()=>hc,toInt16Array:()=>nc,toInt16ArrayAsyncIterator:()=>Ec,toInt16ArrayIterator:()=>uc,toInt32Array:()=>Br,toInt32ArrayAsyncIterator:()=>yc,toInt32ArrayIterator:()=>dc,toInt8Array:()=>rc,toInt8ArrayAsyncIterator:()=>vc,toInt8ArrayIterator:()=>cc,toUint16Array:()=>ic,toUint16ArrayAsyncIterator:()=>bc,toUint16ArrayIterator:()=>fc,toUint32Array:()=>sc,toUint32ArrayAsyncIterator:()=>Sc,toUint32ArrayIterator:()=>pc,toUint8Array:()=>j,toUint8ArrayAsyncIterator:()=>Sa,toUint8ArrayIterator:()=>ba,toUint8ClampedArray:()=>lc,toUint8ClampedArrayAsyncIterator:()=>wc,toUint8ClampedArrayIterator:()=>gc});var Ql=new TextDecoder("utf-8"),Mn=e=>Ql.decode(e),Zl=new TextEncoder,Mt=e=>Zl.encode(e),ec=e=>"number"==typeof e,No=e=>"boolean"==typeof e,Me=e=>"function"==typeof e,He=e=>null!=e&&Object(e)===e,ut=e=>He(e)&&Me(e.then),dt=e=>He(e)&&Me(e[Symbol.iterator]),rt=e=>He(e)&&Me(e[Symbol.asyncIterator]),Mi=e=>He(e)&&He(e.schema),Ri=e=>He(e)&&"done"in e&&"value"in e,Fi=e=>He(e)&&Me(e.stat)&&ec(e.fd),Bi=e=>He(e)&&Rn(e.body),Pi=e=>"_getDOMStream"in e&&"_getNodeStream"in e,Co=e=>He(e)&&Me(e.abort)&&Me(e.getWriter)&&!Pi(e),Rn=e=>He(e)&&Me(e.cancel)&&Me(e.getReader)&&!Pi(e),Ho=e=>He(e)&&Me(e.end)&&Me(e.write)&&No(e.writable)&&!Pi(e),Oi=e=>He(e)&&Me(e.read)&&Me(e.pipe)&&No(e.readable)&&!Pi(e),Wo=e=>He(e)&&Me(e.clear)&&Me(e.bytes)&&Me(e.position)&&Me(e.setPosition)&&Me(e.capacity)&&Me(e.getBufferIdentifier)&&Me(e.createLong),ya=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function tc(e){let t,r,n,i,a=e[0]?[e[0]]:[];for(let s,o,_=0,l=0,c=e.length;++_e+t.byteLength),0),o=0,_=-1,l=Math.min(t||Number.POSITIVE_INFINITY,s);for(let e=a.length;++_re(Int8Array,e),nc=e=>re(Int16Array,e),Br=e=>re(Int32Array,e),ki=e=>re(BigInt64Array,e),j=e=>re(Uint8Array,e),ic=e=>re(Uint16Array,e),sc=e=>re(Uint32Array,e),ac=e=>re(BigUint64Array,e),oc=e=>re(Float32Array,e),_c=e=>re(Float64Array,e),lc=e=>re(Uint8ClampedArray,e),Ea=e=>(e.next(),e);function*Rt(e,t){let r=function*(e){yield e},n="string"==typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof ya?r(t):dt(t)?t:r(t);return yield*Fr(Ea(function*(t){let r=null;do{r=t.next(yield re(e,r))}while(!r.done)}(n[Symbol.iterator]()))),new e}var cc=e=>Rt(Int8Array,e),uc=e=>Rt(Int16Array,e),dc=e=>Rt(Int32Array,e),ba=e=>Rt(Uint8Array,e),fc=e=>Rt(Uint16Array,e),pc=e=>Rt(Uint32Array,e),mc=e=>Rt(Float32Array,e),hc=e=>Rt(Float64Array,e),gc=e=>Rt(Uint8ClampedArray,e);function ft(e,t){return Xe(this,arguments,(function*(){if(ut(t))return yield ee(yield ee(yield*Fr(en(ct(ft(e,yield ee(t)))))));let r=function(e){return Xe(this,arguments,(function*(){yield yield ee(yield ee(e))}))},n="string"==typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof ya?r(t):dt(t)?function(e){return Xe(this,arguments,(function*(){yield ee(yield*Fr(en(ct(Ea(function*(e){let t=null;do{t=e.next(yield null==t?void 0:t.value)}while(!t.done)}(e[Symbol.iterator]()))))))}))}(t):rt(t)?t:r(t);return yield ee(yield*Fr(en(ct(Ea(function(t){return Xe(this,arguments,(function*(){let r=null;do{r=yield ee(t.next(yield yield ee(re(e,r))))}while(!r.done)}))}(n[Symbol.asyncIterator]())))))),yield ee(new e)}))}var vc=e=>ft(Int8Array,e),Ec=e=>ft(Int16Array,e),yc=e=>ft(Int32Array,e),Sa=e=>ft(Uint8Array,e),bc=e=>ft(Uint16Array,e),Sc=e=>ft(Uint32Array,e),Ac=e=>ft(Float32Array,e),Lc=e=>ft(Float64Array,e),wc=e=>ft(Uint8ClampedArray,e);function Gi(e,t,r){if(0!==e)for(let n=-1,i=(r=r.slice(0,t)).length;++n0)do{if(e[r]!==t[r])return!1}while(++rNi(Tc(e)),fromAsyncIterable:e=>Ni(Dc(e)),fromDOMStream:e=>Ni(Ic(e)),fromNodeStream:e=>Ni(xc(e)),toDOMStream(e,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(e,t){throw new Error('"toNodeStream" not available in this environment')}},Ni=e=>(e.next(),e);function*Tc(e){let t,r,n,i,a=!1,s=[],o=0;({cmd:n,size:i}=(yield null)||{cmd:"read",size:0});let _=ba(e)[Symbol.iterator]();try{do{if(({done:t,value:r}=Number.isNaN(i-o)?_.next():_.next(i-o)),!t&&r.byteLength>0&&(s.push(r),o+=r.byteLength),t||i<=o)do{({cmd:n,size:i}=yield"peek"===n?Ke(s,i)[0]:([r,s,o]=Ke(s,i),r))}while(i0&&(s.push(r),o+=r.byteLength),t||i<=o)do{({cmd:n,size:i}=yield yield ee("peek"===n?Ke(s,i)[0]:([r,s,o]=Ke(s,i),r)))}while(i0&&(s.push(j(t)),o+=t.byteLength),i||n<=o)do{({cmd:r,size:n}=yield yield ee("peek"===r?Ke(s,n)[0]:([t,s,o]=Ke(s,n),t)))}while(n{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return O(this,void 0,void 0,(function*(){let{reader:t,source:r}=this;t&&(yield t.cancel(e).catch((()=>{}))),r&&r.locked&&this.releaseLock()}))}read(e){return O(this,void 0,void 0,(function*(){if(0===e)return{done:null==this.reader,value:new Uint8Array(0)};let t=yield this.reader.read();return!t.done&&(t.value=j(t)),t}))}},wa=(e,t)=>{let r,n=e=>r([t,e]);return[t,n,new Promise((i=>(r=i)&&e.once(t,n)))]},ce,he,pe,we,G,Re;function xc(e){return Xe(this,arguments,(function*(){let t,r,n,i=[],a="error",s=!1,o=null,_=0,l=[];if(({cmd:t,size:r}=(yield yield ee(null))||{cmd:"read",size:0}),e.isTTY)return yield yield ee(new Uint8Array(0)),yield ee(null);try{i[0]=wa(e,"end"),i[1]=wa(e,"error");do{if(i[2]=wa(e,"readable"),[a,o]=yield ee(Promise.race(i.map((e=>e[2])))),"error"===a)break;if((s="end"===a)||(Number.isFinite(r-_)?(n=j(e.read(r-_)),n.byteLength0&&(l.push(n),_+=n.byteLength)),s||r<=_)do{({cmd:t,size:r}=yield yield ee("peek"===t?Ke(l,r)[0]:([n,l,_]=Ke(l,r),n)))}while(r<_)}while(!s)}finally{yield ee((c=i,u="error"===a?o:null,n=l=null,new Promise(((t,r)=>{for(let[t,r]of c)e.off(t,r);try{let t=e.destroy;t&&t.call(e,u),u=void 0}catch(e){u=e||u}finally{null!=u?r(u):t()}}))))}var c,u;return yield ee(null)}))}!function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"}(ce||(ce={})),function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(he||(he={})),function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}(pe||(pe={})),function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(we||(we={})),function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(G||(G={})),function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(Re||(Re={}));var Ft=new Int32Array(2),Ci=new Float32Array(Ft.buffer),Hi=new Float64Array(Ft.buffer),tn=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],Bn;!function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"}(Bn||(Bn={}));var Ye=class e{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new e(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){Ci[0]=t,this.writeInt32(e,Ft[0])}writeFloat64(e,t){Hi[0]=t,this.writeInt32(e,Ft[tn?0:1]),this.writeInt32(e+4,Ft[tn?1:0])}getBufferIdentifier(){if(this.bytes_.lengththis.minalign&&(this.minalign=t);let n=1+~(this.bb.capacity()-this.space+r)&t-1;for(;this.space=0&&0==this.vtable[t];t--);let r=t+1;for(;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);let n=2*(r+2);this.addInt16(n);let i=0,a=this.space;e:for(t=0;t=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+n),this.addOffset(e),n&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){let r=this.bb.capacity()-e,n=r-this.bb.readInt32(r);if(!(t=0;r--)e.addInt32(t[r]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(t,r,n){return e.startUnion(t),e.addMode(t,r),e.addTypeIds(t,n),e.endUnion(t)}},zn=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(t){return e.startUtf8(t),e.endUtf8(t)}},ge;!function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.FloatingPoint=3]="FloatingPoint",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct_=13]="Struct_",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.LargeList=21]="LargeList",e[e.RunEndEncoded=22]="RunEndEncoded"}(ge||(ge={}));var Ce=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):ge.NONE}type(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){let t=this.bb.__offset(this.bb_pos,12);return t?(e||new Bt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(t,r){let n=this.bb.__offset(this.bb_pos,14);return n?(r||new e).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,16);return r?(t||new Fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,ge.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}},ze=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):mr.Little}fields(e,t){let r=this.bb.__offset(this.bb_pos,6);return r?(t||new Ce).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new Fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,mr.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addInt64(t[r]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(t,r,n,i,a){return e.startSchema(t),e.addEndianness(t,r),e.addFields(t,n),e.addCustomMetadata(t,i),e.addFeatures(t,a),e.endSchema(t)}},ie,v,it;!function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"}(ie||(ie={})),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth",e[e.DurationSecond=-27]="DurationSecond",e[e.DurationMillisecond=-28]="DurationMillisecond",e[e.DurationMicrosecond=-29]="DurationMicrosecond",e[e.DurationNanosecond=-30]="DurationNanosecond"}(v||(v={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(it||(it={}));var qa={};pr(qa,{clampRange:()=>Jn,createElementComparator:()=>Tr,wrapIndex:()=>Or});var Da={};function gt(e){if(null===e)return"null";if(void 0===e)return"undefined";switch(typeof e){case"number":case"bigint":return"".concat(e);case"string":return'"'.concat(e,'"')}return"function"==typeof e[Symbol.toPrimitive]?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?"[".concat([...e].map((e=>gt(e))),"]"):"[".concat(e,"]"):ArrayBuffer.isView(e)?"[".concat(e,"]"):JSON.stringify(e,((e,t)=>"bigint"==typeof t?"".concat(t):t))}pr(Da,{valueToString:()=>gt});var Ra={};function ae(e){if("bigint"==typeof e&&(eNumber.MAX_SAFE_INTEGER))throw new TypeError("".concat(e," is not safe to convert to a number."));return Number(e)}function Ia(e,t){return ae(e/t)+ae(e%t)/ae(t)}pr(Ra,{BN:()=>qn,bigNumToBigInt:()=>Vo,bigNumToNumber:()=>Ma,bigNumToString:()=>on,isArrowBigNumSymbol:()=>Uo});var Uo=Symbol.for("isArrowBigNum");function vt(e,...t){return 0===t.length?Object.setPrototypeOf(re(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}function sn(...e){return vt.apply(this,e)}function an(...e){return vt.apply(this,e)}function jn(...e){return vt.apply(this,e)}vt.prototype[Uo]=!0,vt.prototype.toJSON=function(){return'"'.concat(on(this),'"')},vt.prototype.valueOf=function(e){return Ma(this,e)},vt.prototype.toString=function(){return on(this)},vt.prototype[Symbol.toPrimitive]=function(e="default"){switch(e){case"number":return Ma(this);case"string":return on(this);case"default":return Vo(this)}return on(this)},Object.setPrototypeOf(sn.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(an.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(jn.prototype,Object.create(Uint32Array.prototype)),Object.assign(sn.prototype,vt.prototype,{constructor:sn,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(an.prototype,vt.prototype,{constructor:an,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(jn.prototype,vt.prototype,{constructor:jn,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});var Mc=BigInt(4294967296)*BigInt(4294967296),Rc=Mc-BigInt(1);function Ma(e,t){let{buffer:r,byteOffset:n,byteLength:i,signed:a}=e,s=new BigUint64Array(r,n,i/8),o=a&&s.at(-1)&BigInt(1)<=0)return xa(e);t=t.slice();let r=1;for(let e=0;e(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]="DataType"))(k.prototype);var We=class extends k{constructor(){super(v.Null)}toString(){return"Null"}};jo=Symbol.toStringTag,We[jo]=(e=>e[Symbol.toStringTag]="Null")(We.prototype);var Be=class extends k{constructor(e,t){super(v.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}toString(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}};qo=Symbol.toStringTag,Be[qo]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(Be.prototype);var Vi=class extends Be{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},zi=class extends Be{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},Ot=class extends Be{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},ji=class extends Be{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},qi=class extends Be{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},$i=class extends Be{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Ji=class extends Be{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Xi=class extends Be{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Vi.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(zi.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(Ot.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(ji.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(qi.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty($i.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Ji.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Xi.prototype,"ArrayType",{value:BigUint64Array});var st=class extends k{constructor(e){super(v.Float),this.precision=e}get ArrayType(){switch(this.precision){case pe.HALF:return Uint16Array;case pe.SINGLE:return Float32Array;case pe.DOUBLE:return Float64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}toString(){return"Float".concat(this.precision<<5||16)}};$o=Symbol.toStringTag,st[$o]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(st.prototype);var Ki=class extends st{constructor(){super(pe.HALF)}},Yi=class extends st{constructor(){super(pe.SINGLE)}},Qi=class extends st{constructor(){super(pe.DOUBLE)}};Object.defineProperty(Ki.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Yi.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(Qi.prototype,"ArrayType",{value:Float64Array});var zt=class extends k{constructor(){super(v.Binary)}toString(){return"Binary"}};Jo=Symbol.toStringTag,zt[Jo]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(zt.prototype);var jt=class extends k{constructor(){super(v.LargeBinary)}toString(){return"LargeBinary"}};Xo=Symbol.toStringTag,jt[Xo]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeBinary"))(jt.prototype);var qt=class extends k{constructor(){super(v.Utf8)}toString(){return"Utf8"}};Ko=Symbol.toStringTag,qt[Ko]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))(qt.prototype);var $t=class extends k{constructor(){super(v.LargeUtf8)}toString(){return"LargeUtf8"}};Yo=Symbol.toStringTag,$t[Yo]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeUtf8"))($t.prototype);var Jt=class extends k{constructor(){super(v.Bool)}toString(){return"Bool"}};Qo=Symbol.toStringTag,Jt[Qo]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(Jt.prototype);var Xt=class extends k{constructor(e,t,r=128){super(v.Decimal),this.scale=e,this.precision=t,this.bitWidth=r}toString(){return"Decimal[".concat(this.precision,"e").concat(this.scale>0?"+":"").concat(this.scale,"]")}};Zo=Symbol.toStringTag,Xt[Zo]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(Xt.prototype);var Kt=class extends k{constructor(e){super(v.Date),this.unit=e}toString(){return"Date".concat(32*(this.unit+1),"<").concat(we[this.unit],">")}get ArrayType(){return this.unit===we.DAY?Int32Array:BigInt64Array}};e_=Symbol.toStringTag,Kt[e_]=(e=>(e.unit=null,e[Symbol.toStringTag]="Date"))(Kt.prototype);var Yt=class extends k{constructor(e,t){super(v.Time),this.unit=e,this.bitWidth=t}toString(){return"Time".concat(this.bitWidth,"<").concat(G[this.unit],">")}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}};t_=Symbol.toStringTag,Yt[t_]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(Yt.prototype);var Qt=class extends k{constructor(e,t){super(v.Timestamp),this.unit=e,this.timezone=t}toString(){return"Timestamp<".concat(G[this.unit]).concat(this.timezone?", ".concat(this.timezone):"",">")}};r_=Symbol.toStringTag,Qt[r_]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Timestamp"))(Qt.prototype);var Zt=class extends k{constructor(e){super(v.Interval),this.unit=e}toString(){return"Interval<".concat(Re[this.unit],">")}};n_=Symbol.toStringTag,Zt[n_]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(Zt.prototype);var er=class extends k{constructor(e){super(v.Duration),this.unit=e}toString(){return"Duration<".concat(G[this.unit],">")}};i_=Symbol.toStringTag,er[i_]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Duration"))(er.prototype);var Et=class extends k{constructor(e){super(v.List),this.children=[e]}toString(){return"List<".concat(this.valueType,">")}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};s_=Symbol.toStringTag,Et[s_]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(Et.prototype);var ve=class extends k{constructor(e){super(v.Struct),this.children=e}toString(){return"Struct<{".concat(this.children.map((e=>"".concat(e.name,":").concat(e.type))).join(", "),"}>")}};a_=Symbol.toStringTag,ve[a_]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(ve.prototype);var yt=class extends k{constructor(e,t,r){super(v.Union),this.mode=e,this.children=r,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce(((e,t,r)=>(e[t]=r)&&e||e),Object.create(null))}toString(){return"".concat(this[Symbol.toStringTag],"<").concat(this.children.map((e=>"".concat(e.type))).join(" | "),">")}};o_=Symbol.toStringTag,yt[o_]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(yt.prototype);var tr=class extends k{constructor(e){super(v.FixedSizeBinary),this.byteWidth=e}toString(){return"FixedSizeBinary[".concat(this.byteWidth,"]")}};__=Symbol.toStringTag,tr[__]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(tr.prototype);var bt=class extends k{constructor(e,t){super(v.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}};l_=Symbol.toStringTag,bt[l_]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(bt.prototype);var St=class extends k{constructor(e,t=!1){var r,n,i;if(super(v.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",null!==(r=null==e?void 0:e.type)&&void 0!==r&&r.children)){let t=null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.children[0];t&&(t.name="key");let r=null===(i=null==e?void 0:e.type)||void 0===i?void 0:i.children[1];r&&(r.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return"Map<{".concat(this.children[0].type.children.map((e=>"".concat(e.name,":").concat(e.type))).join(", "),"}>")}};c_=Symbol.toStringTag,St[c_]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(St.prototype);var Fc=(e=>()=>++e)(-1),Ze=class extends k{constructor(e,t,r,n){super(v.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=n||!1,this.id=null==r?Fc():ae(r)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return"Dictionary<".concat(this.indices,", ").concat(this.dictionary,">")}};function et(e){let t=e;switch(e.typeId){case v.Decimal:return e.bitWidth/32;case v.Interval:return 1+t.unit;case v.FixedSizeList:return t.listSize;case v.FixedSizeBinary:return t.byteWidth;default:return 1}}u_=Symbol.toStringTag,Ze[u_]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(Ze.prototype);var C=class{visitMany(e,...t){return e.map(((e,r)=>this.visit(e,...t.map((e=>e[r])))))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Bc(this,e,t)}getVisitFnByTypeId(e,t=!0){return _n(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function Bc(e,t,r=!0){return"number"==typeof t?_n(e,t,r):"string"==typeof t&&t in v?_n(e,v[t],r):t&&t instanceof k?_n(e,d_(t),r):null!=t&&t.type&&t.type instanceof k?_n(e,d_(t.type),r):_n(e,v.NONE,r)}function _n(e,t,r=!0){let n=null;switch(t){case v.Null:n=e.visitNull;break;case v.Bool:n=e.visitBool;break;case v.Int:n=e.visitInt;break;case v.Int8:n=e.visitInt8||e.visitInt;break;case v.Int16:n=e.visitInt16||e.visitInt;break;case v.Int32:n=e.visitInt32||e.visitInt;break;case v.Int64:n=e.visitInt64||e.visitInt;break;case v.Uint8:n=e.visitUint8||e.visitInt;break;case v.Uint16:n=e.visitUint16||e.visitInt;break;case v.Uint32:n=e.visitUint32||e.visitInt;break;case v.Uint64:n=e.visitUint64||e.visitInt;break;case v.Float:n=e.visitFloat;break;case v.Float16:n=e.visitFloat16||e.visitFloat;break;case v.Float32:n=e.visitFloat32||e.visitFloat;break;case v.Float64:n=e.visitFloat64||e.visitFloat;break;case v.Utf8:n=e.visitUtf8;break;case v.LargeUtf8:n=e.visitLargeUtf8;break;case v.Binary:n=e.visitBinary;break;case v.LargeBinary:n=e.visitLargeBinary;break;case v.FixedSizeBinary:n=e.visitFixedSizeBinary;break;case v.Date:n=e.visitDate;break;case v.DateDay:n=e.visitDateDay||e.visitDate;break;case v.DateMillisecond:n=e.visitDateMillisecond||e.visitDate;break;case v.Timestamp:n=e.visitTimestamp;break;case v.TimestampSecond:n=e.visitTimestampSecond||e.visitTimestamp;break;case v.TimestampMillisecond:n=e.visitTimestampMillisecond||e.visitTimestamp;break;case v.TimestampMicrosecond:n=e.visitTimestampMicrosecond||e.visitTimestamp;break;case v.TimestampNanosecond:n=e.visitTimestampNanosecond||e.visitTimestamp;break;case v.Time:n=e.visitTime;break;case v.TimeSecond:n=e.visitTimeSecond||e.visitTime;break;case v.TimeMillisecond:n=e.visitTimeMillisecond||e.visitTime;break;case v.TimeMicrosecond:n=e.visitTimeMicrosecond||e.visitTime;break;case v.TimeNanosecond:n=e.visitTimeNanosecond||e.visitTime;break;case v.Decimal:n=e.visitDecimal;break;case v.List:n=e.visitList;break;case v.Struct:n=e.visitStruct;break;case v.Union:n=e.visitUnion;break;case v.DenseUnion:n=e.visitDenseUnion||e.visitUnion;break;case v.SparseUnion:n=e.visitSparseUnion||e.visitUnion;break;case v.Dictionary:n=e.visitDictionary;break;case v.Interval:n=e.visitInterval;break;case v.IntervalDayTime:n=e.visitIntervalDayTime||e.visitInterval;break;case v.IntervalYearMonth:n=e.visitIntervalYearMonth||e.visitInterval;break;case v.Duration:n=e.visitDuration;break;case v.DurationSecond:n=e.visitDurationSecond||e.visitDuration;break;case v.DurationMillisecond:n=e.visitDurationMillisecond||e.visitDuration;break;case v.DurationMicrosecond:n=e.visitDurationMicrosecond||e.visitDuration;break;case v.DurationNanosecond:n=e.visitDurationNanosecond||e.visitDuration;break;case v.FixedSizeList:n=e.visitFixedSizeList;break;case v.Map:n=e.visitMap}if("function"==typeof n)return n;if(!r)return()=>null;throw new Error("Unrecognized type '".concat(v[t],"'"))}function d_(e){switch(e.typeId){case v.Null:return v.Null;case v.Int:{let{bitWidth:t,isSigned:r}=e;switch(t){case 8:return r?v.Int8:v.Uint8;case 16:return r?v.Int16:v.Uint16;case 32:return r?v.Int32:v.Uint32;case 64:return r?v.Int64:v.Uint64}return v.Int}case v.Float:switch(e.precision){case pe.HALF:return v.Float16;case pe.SINGLE:return v.Float32;case pe.DOUBLE:return v.Float64}return v.Float;case v.Binary:return v.Binary;case v.LargeBinary:return v.LargeBinary;case v.Utf8:return v.Utf8;case v.LargeUtf8:return v.LargeUtf8;case v.Bool:return v.Bool;case v.Decimal:return v.Decimal;case v.Time:switch(e.unit){case G.SECOND:return v.TimeSecond;case G.MILLISECOND:return v.TimeMillisecond;case G.MICROSECOND:return v.TimeMicrosecond;case G.NANOSECOND:return v.TimeNanosecond}return v.Time;case v.Timestamp:switch(e.unit){case G.SECOND:return v.TimestampSecond;case G.MILLISECOND:return v.TimestampMillisecond;case G.MICROSECOND:return v.TimestampMicrosecond;case G.NANOSECOND:return v.TimestampNanosecond}return v.Timestamp;case v.Date:switch(e.unit){case we.DAY:return v.DateDay;case we.MILLISECOND:return v.DateMillisecond}return v.Date;case v.Interval:switch(e.unit){case Re.DAY_TIME:return v.IntervalDayTime;case Re.YEAR_MONTH:return v.IntervalYearMonth}return v.Interval;case v.Duration:switch(e.unit){case G.SECOND:return v.DurationSecond;case G.MILLISECOND:return v.DurationMillisecond;case G.MICROSECOND:return v.DurationMicrosecond;case G.NANOSECOND:return v.DurationNanosecond}return v.Duration;case v.Map:return v.Map;case v.List:return v.List;case v.Struct:return v.Struct;case v.Union:switch(e.mode){case he.Dense:return v.DenseUnion;case he.Sparse:return v.SparseUnion}return v.Union;case v.FixedSizeBinary:return v.FixedSizeBinary;case v.FixedSizeList:return v.FixedSizeList;case v.Dictionary:return v.Dictionary}throw new Error("Unrecognized type '".concat(v[e.typeId],"'"))}C.prototype.visitInt8=null,C.prototype.visitInt16=null,C.prototype.visitInt32=null,C.prototype.visitInt64=null,C.prototype.visitUint8=null,C.prototype.visitUint16=null,C.prototype.visitUint32=null,C.prototype.visitUint64=null,C.prototype.visitFloat16=null,C.prototype.visitFloat32=null,C.prototype.visitFloat64=null,C.prototype.visitDateDay=null,C.prototype.visitDateMillisecond=null,C.prototype.visitTimestampSecond=null,C.prototype.visitTimestampMillisecond=null,C.prototype.visitTimestampMicrosecond=null,C.prototype.visitTimestampNanosecond=null,C.prototype.visitTimeSecond=null,C.prototype.visitTimeMillisecond=null,C.prototype.visitTimeMicrosecond=null,C.prototype.visitTimeNanosecond=null,C.prototype.visitDenseUnion=null,C.prototype.visitSparseUnion=null,C.prototype.visitIntervalDayTime=null,C.prototype.visitIntervalYearMonth=null,C.prototype.visitDuration=null,C.prototype.visitDurationSecond=null,C.prototype.visitDurationMillisecond=null,C.prototype.visitDurationMicrosecond=null,C.prototype.visitDurationNanosecond=null;var Fa={};pr(Fa,{float64ToUint16:()=>$n,uint16ToFloat64:()=>Zi});var f_=new Float64Array(1),ln=new Uint32Array(f_.buffer);function Zi(e){let t=(31744&e)>>10,r=(1023&e)/1024,n=Math.pow(-1,(32768&e)>>15);switch(t){case 31:return n*(r?Number.NaN:1/0);case 0:return n*(r?6103515625e-14*r:0)}return n*Math.pow(2,t-15)*(1+r)}function $n(e){if(e!=e)return 32256;f_[0]=e;let t=(2147483648&ln[1])>>16&65535,r=2146435072&ln[1],n=0;return r>=1089470464?ln[0]>0?r=31744:(r=(2080374784&r)>>16,n=(1048575&ln[1])>>10):r<=1056964608?(n=1048576+(1048575&ln[1]),n=1048576+(n<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,n=512+(1048575&ln[1])>>10),t|r|65535&n}var z=class extends C{};function K(e){return(t,r,n)=>{if(t.setValid(r,null!=n))return e(t,r,n)}}var Pc=(e,t,r)=>{e[t]=Math.floor(r/864e5)},p_=(e,t,r,n)=>{if(r+1{let i=e+r;n?t[i>>3]|=1<>3]&=~(1<{e[t]=r},Ba=({values:e},t,r)=>{e[t]=r},m_=({values:e},t,r)=>{e[t]=$n(r)},kc=(e,t,r)=>{switch(e.type.precision){case pe.HALF:return m_(e,t,r);case pe.SINGLE:case pe.DOUBLE:return Ba(e,t,r)}},es=({values:e},t,r)=>{Pc(e,t,r.valueOf())},ts=({values:e},t,r)=>{e[t]=BigInt(r)},Pa=({stride:e,values:t},r,n)=>{t.set(n.subarray(0,e),e*r)},h_=({values:e,valueOffsets:t},r,n)=>p_(e,t,r,n),g_=({values:e,valueOffsets:t},r,n)=>p_(e,t,r,Mt(n)),Oa=(e,t,r)=>{e.type.unit===we.DAY?es(e,t,r):ts(e,t,r)},rs=({values:e},t,r)=>{e[t]=BigInt(r/1e3)},ns=({values:e},t,r)=>{e[t]=BigInt(r)},is=({values:e},t,r)=>{e[t]=BigInt(1e3*r)},ss=({values:e},t,r)=>{e[t]=BigInt(1e6*r)},ka=(e,t,r)=>{switch(e.type.unit){case G.SECOND:return rs(e,t,r);case G.MILLISECOND:return ns(e,t,r);case G.MICROSECOND:return is(e,t,r);case G.NANOSECOND:return ss(e,t,r)}},as=({values:e},t,r)=>{e[t]=r},os=({values:e},t,r)=>{e[t]=r},_s=({values:e},t,r)=>{e[t]=r},ls=({values:e},t,r)=>{e[t]=r},Ga=(e,t,r)=>{switch(e.type.unit){case G.SECOND:return as(e,t,r);case G.MILLISECOND:return os(e,t,r);case G.MICROSECOND:return _s(e,t,r);case G.NANOSECOND:return ls(e,t,r)}},Na=({values:e,stride:t},r,n)=>{e.set(n.subarray(0,t),t*r)},Gc=(e,t,r)=>{let n=e.children[0],i=e.valueOffsets,a=ke.getVisitFn(n);if(Array.isArray(r))for(let e=-1,s=i[t],o=i[t+1];s{let n=e.children[0],{valueOffsets:i}=e,a=ke.getVisitFn(n),{[t]:s,[t+1]:o}=i,_=r instanceof Map?r.entries():Object.entries(r);for(let e of _)if(a(n,s,e),++s>=o)break},Cc=(e,t)=>(r,n,i,a)=>n&&r(n,e,t[a]),Hc=(e,t)=>(r,n,i,a)=>n&&r(n,e,t.get(a)),Wc=(e,t)=>(r,n,i,a)=>n&&r(n,e,t.get(i.name)),Uc=(e,t)=>(r,n,i,a)=>n&&r(n,e,t[i.name]),Vc=(e,t,r)=>{let n=e.type.children.map((e=>ke.getVisitFn(e.type))),i=r instanceof Map?Wc(t,r):r instanceof se?Hc(t,r):Array.isArray(r)?Cc(t,r):Uc(t,r);e.type.children.forEach(((t,r)=>i(n[r],e.children[r],t,r)))},zc=(e,t,r)=>{e.type.mode===he.Dense?v_(e,t,r):E_(e,t,r)},v_=(e,t,r)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[n];ke.visit(i,e.valueOffsets[t],r)},E_=(e,t,r)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[n];ke.visit(i,t,r)},jc=(e,t,r)=>{var n;null===(n=e.dictionary)||void 0===n||n.set(e.values[t],r)},Ca=(e,t,r)=>{e.type.unit===Re.DAY_TIME?cs(e,t,r):us(e,t,r)},cs=({values:e},t,r)=>{e.set(r.subarray(0,2),2*t)},us=({values:e},t,r)=>{e[t]=12*r[0]+r[1]%12},ds=({values:e},t,r)=>{e[t]=r},ps=({values:e},t,r)=>{e[t]=r},ms=({values:e},t,r)=>{e[t]=r},hs=({values:e},t,r)=>{e[t]=r},Ha=(e,t,r)=>{switch(e.type.unit){case G.SECOND:return ds(e,t,r);case G.MILLISECOND:return ps(e,t,r);case G.MICROSECOND:return ms(e,t,r);case G.NANOSECOND:return hs(e,t,r)}},qc=(e,t,r)=>{let{stride:n}=e,i=e.children[0],a=ke.getVisitFn(i);if(Array.isArray(r))for(let e=-1,s=t*n;++e"".concat(gt(e),": ").concat(gt(t)))).join(", "),"}")}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Wa(this[At],this[cn])}},Wa=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return ee.name))}has(e,t){return-1!==e[At].type.children.findIndex((e=>e.name===t))}getOwnPropertyDescriptor(e,t){if(-1!==e[At].type.children.findIndex((e=>e.name===t)))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let r=e[At].type.children.findIndex((e=>e.name===t));if(-1!==r){let n=Ie.visit(e[At].children[r],e[cn]);return Reflect.set(e,t,n),n}}set(e,t,r){let n=e[At].type.children.findIndex((e=>e.name===t));return-1!==n?(ke.visit(e[At].children[n],e[cn],r),Reflect.set(e,t,r)):!(!Reflect.has(e,t)&&"symbol"!=typeof t)&&Reflect.set(e,t,r)}},H=class extends C{};function q(e){return(t,r)=>t.getValid(r)?e(t,r):null}var $c=(e,t)=>864e5*e[t],Jc=(e,t)=>null,y_=(e,t,r)=>{if(r+1>=t.length)return null;let n=ae(t[r]),i=ae(t[r+1]);return e.subarray(n,i)},Xc=({offset:e,values:t},r)=>{let n=e+r;return 0!=(t[n>>3]&1<$c(e,t),S_=({values:e},t)=>ae(e[t]),Lr=({stride:e,values:t},r)=>t[e*r],Kc=({stride:e,values:t},r)=>Zi(t[e*r]),A_=({values:e},t)=>e[t],Yc=({stride:e,values:t},r)=>t.subarray(e*r,e*(r+1)),L_=({values:e,valueOffsets:t},r)=>y_(e,t,r),w_=({values:e,valueOffsets:t},r)=>{let n=y_(e,t,r);return null!==n?Mn(n):null},Qc=({values:e},t)=>e[t],Zc=({type:e,values:t},r)=>e.precision!==pe.HALF?t[r]:Zi(t[r]),eu=(e,t)=>e.type.unit===we.DAY?b_(e,t):S_(e,t),T_=({values:e},t)=>1e3*ae(e[t]),D_=({values:e},t)=>ae(e[t]),I_=({values:e},t)=>Ia(e[t],BigInt(1e3)),x_=({values:e},t)=>Ia(e[t],BigInt(1e6)),tu=(e,t)=>{switch(e.type.unit){case G.SECOND:return T_(e,t);case G.MILLISECOND:return D_(e,t);case G.MICROSECOND:return I_(e,t);case G.NANOSECOND:return x_(e,t)}},M_=({values:e},t)=>e[t],R_=({values:e},t)=>e[t],F_=({values:e},t)=>e[t],B_=({values:e},t)=>e[t],ru=(e,t)=>{switch(e.type.unit){case G.SECOND:return M_(e,t);case G.MILLISECOND:return R_(e,t);case G.MICROSECOND:return F_(e,t);case G.NANOSECOND:return B_(e,t)}},nu=({values:e,stride:t},r)=>qn.decimal(e.subarray(t*r,t*(r+1))),iu=(e,t)=>{let{valueOffsets:r,stride:n,children:i}=e,{[t*n]:a,[t*n+1]:s}=r,o=i[0].slice(a,s-a);return new se([o])},su=(e,t)=>{let{valueOffsets:r,children:n}=e,{[t]:i,[t+1]:a}=r,s=n[0];return new kt(s.slice(i,a-i))},au=(e,t)=>new Ar(e,t),ou=(e,t)=>e.type.mode===he.Dense?P_(e,t):O_(e,t),P_=(e,t)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],n=e.children[r];return Ie.visit(n,e.valueOffsets[t])},O_=(e,t)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],n=e.children[r];return Ie.visit(n,t)},_u=(e,t)=>{var r;return null===(r=e.dictionary)||void 0===r?void 0:r.get(e.values[t])},lu=(e,t)=>e.type.unit===Re.DAY_TIME?k_(e,t):G_(e,t),k_=({values:e},t)=>e.subarray(2*t,2*(t+1)),G_=({values:e},t)=>{let r=e[t],n=new Int32Array(2);return n[0]=Math.trunc(r/12),n[1]=Math.trunc(r%12),n},N_=({values:e},t)=>e[t],C_=({values:e},t)=>e[t],H_=({values:e},t)=>e[t],W_=({values:e},t)=>e[t],cu=(e,t)=>{switch(e.type.unit){case G.SECOND:return N_(e,t);case G.MILLISECOND:return C_(e,t);case G.MICROSECOND:return H_(e,t);case G.NANOSECOND:return W_(e,t)}},uu=(e,t)=>{let{stride:r,children:n}=e,i=n[0].slice(t*r,r);return new se([i])};H.prototype.visitNull=q(Jc),H.prototype.visitBool=q(Xc),H.prototype.visitInt=q(Qc),H.prototype.visitInt8=q(Lr),H.prototype.visitInt16=q(Lr),H.prototype.visitInt32=q(Lr),H.prototype.visitInt64=q(A_),H.prototype.visitUint8=q(Lr),H.prototype.visitUint16=q(Lr),H.prototype.visitUint32=q(Lr),H.prototype.visitUint64=q(A_),H.prototype.visitFloat=q(Zc),H.prototype.visitFloat16=q(Kc),H.prototype.visitFloat32=q(Lr),H.prototype.visitFloat64=q(Lr),H.prototype.visitUtf8=q(w_),H.prototype.visitLargeUtf8=q(w_),H.prototype.visitBinary=q(L_),H.prototype.visitLargeBinary=q(L_),H.prototype.visitFixedSizeBinary=q(Yc),H.prototype.visitDate=q(eu),H.prototype.visitDateDay=q(b_),H.prototype.visitDateMillisecond=q(S_),H.prototype.visitTimestamp=q(tu),H.prototype.visitTimestampSecond=q(T_),H.prototype.visitTimestampMillisecond=q(D_),H.prototype.visitTimestampMicrosecond=q(I_),H.prototype.visitTimestampNanosecond=q(x_),H.prototype.visitTime=q(ru),H.prototype.visitTimeSecond=q(M_),H.prototype.visitTimeMillisecond=q(R_),H.prototype.visitTimeMicrosecond=q(F_),H.prototype.visitTimeNanosecond=q(B_),H.prototype.visitDecimal=q(nu),H.prototype.visitList=q(iu),H.prototype.visitStruct=q(au),H.prototype.visitUnion=q(ou),H.prototype.visitDenseUnion=q(P_),H.prototype.visitSparseUnion=q(O_),H.prototype.visitDictionary=q(_u),H.prototype.visitInterval=q(lu),H.prototype.visitIntervalDayTime=q(k_),H.prototype.visitIntervalYearMonth=q(G_),H.prototype.visitDuration=q(cu),H.prototype.visitDurationSecond=q(N_),H.prototype.visitDurationMillisecond=q(C_),H.prototype.visitDurationMicrosecond=q(H_),H.prototype.visitDurationNanosecond=q(W_),H.prototype.visitFixedSizeList=q(uu),H.prototype.visitMap=q(su);var Ie=new H,wr=Symbol.for("keys"),dn=Symbol.for("vals"),un=Symbol.for("kKeysAsStrings"),Va=Symbol.for("_kKeysAsStrings"),kt=class{constructor(e){return this[wr]=new se([e.children[0]]).memoize(),this[dn]=e.children[1],new Proxy(this,new ja)}get[un](){return this[Va]||(this[Va]=Array.from(this[wr].toArray(),String))}[Symbol.iterator](){return new za(this[wr],this[dn])}get size(){return this[wr].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[wr],t=this[dn],r={};for(let n=-1,i=e.length;++n"".concat(gt(e),": ").concat(gt(t)))).join(", "),"}")}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},za=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Ie.visit(this.vals,e)]})}},ja=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[un]}has(e,t){return e[un].includes(t)}getOwnPropertyDescriptor(e,t){if(-1!==e[un].indexOf(t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let r=e[un].indexOf(t);if(-1!==r){let n=Ie.visit(Reflect.get(e,dn),r);return Reflect.set(e,t,n),n}}set(e,t,r){let n=e[un].indexOf(t);return-1!==n?(ke.visit(Reflect.get(e,dn),n,r),Reflect.set(e,t,r)):!!Reflect.has(e,t)&&Reflect.set(e,t,r)}},U_;function Jn(e,t,r,n){let{length:i=0}=e,a="number"!=typeof t?0:t,s="number"!=typeof r?i:r;return a<0&&(a=(a%i+i)%i),s<0&&(s=(s%i+i)%i),si&&(s=i),n?n(e,a,s):[a,s]}Object.defineProperties(kt.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[wr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[dn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Va]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var Or=(e,t)=>e<0?t+e:e,V_=e=>e!=e;function Tr(e){if("object"!=typeof e||null===e)return V_(e)?V_:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date&&e.valueOf()===t}return ArrayBuffer.isView(e)?t=>!!t&&Aa(e,t):e instanceof Map?fu(e):Array.isArray(e)?du(e):e instanceof se?pu(e):mu(e,!0)}function du(e){let t=[];for(let r=-1,n=e.length;++r!1;let n=[];for(let t=-1,i=r.length;++t{if(!r||"object"!=typeof r)return!1;switch(r.constructor){case Array:return hu(e,r);case Map:return z_(e,r,r.keys());case kt:case Ar:case Object:case void 0:return z_(e,r,t||Object.keys(r))}return r instanceof se&&gu(e,r)}}function hu(e,t){let r=e.length;if(t.length!==r)return!1;for(let n=-1;++n>n}function vu(e,t,r){return r?!!(e[t>>3]|=1<>3]&=~(1<0||r.byteLength>3):Nr(new kr(r,e,t,null,Es)).subarray(0,n)),i}return r}function Nr(e){let t=[],r=0,n=0,i=0;for(let a of e)a&&(i|=1<0)&&(t[r++]=i);let a=new Uint8Array(t.length+7&-8);return a.set(t),a}pr($a,{BitIterator:()=>kr,getBit:()=>j_,getBool:()=>Es,packBools:()=>Nr,popcnt_array:()=>q_,popcnt_bit_range:()=>Xn,popcnt_uint32:()=>vs,setBool:()=>vu,truncateBitmap:()=>Gr});var kr=class{constructor(e,t,r,n,i){this.bytes=e,this.length=r,this.context=n,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index>3<<3,i=t+(t%8==0?0:8-t%8);return Xn(e,t,i)+Xn(e,n,r)+q_(e,i>>3,n-i>>3)}function q_(e,t,r){let n=0,i=Math.trunc(t),a=new DataView(e.buffer,e.byteOffset,e.byteLength),s=void 0===r?e.byteLength:i+r;for(;s-i>=4;)n+=vs(a.getUint32(i)),i+=4;for(;s-i>=2;)n+=vs(a.getUint16(i)),i+=2;for(;s-i>=1;)n+=vs(a.getUint8(i)),i+=1;return n}function vs(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(858993459&t)+(t>>>2&858993459),16843009*(t+(t>>>4)&252645135)>>>24}var Eu=-1,le=class e{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(0!==this._nullCount){let{type:e}=this;return k.isSparseUnion(e)||k.isDenseUnion(e)?this.children.some((e=>e.nullable)):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:r,nullBitmap:n,typeIds:i}=this;return t&&(e+=t.byteLength),r&&(e+=r.byteLength),n&&(e+=n.byteLength),i&&(e+=i.byteLength),this.children.reduce(((e,t)=>e+t.byteLength),e)}get nullCount(){if(k.isUnion(this.type))return this.children.reduce(((e,t)=>e+t.nullCount),0);let e,t=this._nullCount;return t<=Eu&&(e=this.nullBitmap)&&(this._nullCount=t=0===e.length?0:this.length-Xn(e,this.offset,this.offset+this.length)),t}constructor(t,r,n,i,a,s=[],o){let _;this.type=t,this.children=s,this.dictionary=o,this.offset=Math.floor(Math.max(r||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=et(t),a&&((_=a[0])&&(this.valueOffsets=_),(_=a[1])&&(this.values=_),(_=a[2])&&(this.nullBitmap=_),(_=a[3])&&(this.typeIds=_)))}getValid(e){let{type:t}=this;if(k.isUnion(t)){let r=t,n=this.children[r.typeIdToChildIndex[this.typeIds[e]]],i=r.mode===he.Dense?this.valueOffsets[e]:e;return n.getValid(i)}if(this.nullable&&this.nullCount>0){let t=this.offset+e;return 0!=(this.nullBitmap[t>>3]&1<>3;(!n||n.byteLength<=_)&&(n=new Uint8Array((i+a+63&-64)>>3).fill(255),this.nullCount>0?(n.set(Gr(i,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:n})):Object.assign(this,{nullBitmap:n,_nullCount:0}));let l=n[_];r=0!=(l&o),n[_]=t?l|o:l&~o}return r!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,r=this.offset,n=this.length,i=this._nullCount,a=this,s=this.children){return new e(t,r,n,i,a,s,this.dictionary)}slice(e,t){let{stride:r,typeId:n,children:i}=this,a=+(0===this._nullCount)-1,s=16===n?r:1,o=this._sliceBuffers(e,t,r,n);return this.clone(this.type,this.offset+e,t,a,o,0===i.length||this.valueOffsets?i:this._sliceChildren(i,s*e,s*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===v.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:r}=this,n=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);n[t>>3]=(1<0&&n.set(Gr(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[it.VALIDITY]=n,this.clone(this.type,0,e,r+(e-t),i)}_sliceBuffers(e,t,r,n){let i,{buffers:a}=this;return(i=a[it.TYPE])&&(a[it.TYPE]=i.subarray(e,e+t)),(i=a[it.OFFSET])&&(a[it.OFFSET]=i.subarray(e,e+t+1))||(i=a[it.DATA])&&(a[it.DATA]=6===n?i:i.subarray(r*e,r*(e+t))),a}_sliceChildren(e,t,r){return e.map((e=>e.slice(t,r)))}};le.prototype.children=Object.freeze([]);var Ja=class e extends C{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:r=0,length:n=0}=e;return new le(t,r,n,n)}visitBool(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length>>3,nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitInt(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitFloat(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitUtf8(e){let{type:t,offset:r=0}=e,n=j(e.data),i=j(e.nullBitmap),a=Br(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,n,i])}visitLargeUtf8(e){let{type:t,offset:r=0}=e,n=j(e.data),i=j(e.nullBitmap),a=ki(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,n,i])}visitBinary(e){let{type:t,offset:r=0}=e,n=j(e.data),i=j(e.nullBitmap),a=Br(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,n,i])}visitLargeBinary(e){let{type:t,offset:r=0}=e,n=j(e.data),i=j(e.nullBitmap),a=ki(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,n,i])}visitFixedSizeBinary(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length/et(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitDate(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length/et(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitTimestamp(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length/et(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitTime(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length/et(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitDecimal(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length/et(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitList(e){let{type:t,offset:r=0,child:n}=e,i=j(e.nullBitmap),a=Br(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,void 0,i],[n])}visitStruct(e){let{type:t,offset:r=0,children:n=[]}=e,i=j(e.nullBitmap),{length:a=n.reduce(((e,{length:t})=>Math.max(e,t)),0),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,void 0,i],n)}visitUnion(e){let{type:t,offset:r=0,children:n=[]}=e,i=re(t.ArrayType,e.typeIds),{length:a=i.length,nullCount:s=-1}=e;if(k.isSparseUnion(t))return new le(t,r,a,s,[void 0,void 0,void 0,i],n);let o=Br(e.valueOffsets);return new le(t,r,a,s,[o,void 0,void 0,i],n)}visitDictionary(t){let{type:r,offset:n=0}=t,i=j(t.nullBitmap),a=re(r.indices.ArrayType,t.data),{dictionary:s=new se([(new e).visit({type:r.dictionary})])}=t,{length:o=a.length,nullCount:_=(t.nullBitmap?-1:0)}=t;return new le(r,n,o,_,[void 0,a,i],[],s)}visitInterval(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length/et(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitDuration(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:a=i.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,i,n])}visitFixedSizeList(t){let{type:r,offset:n=0,child:i=(new e).visit({type:r.valueType})}=t,a=j(t.nullBitmap),{length:s=i.length/et(r),nullCount:o=(t.nullBitmap?-1:0)}=t;return new le(r,n,s,o,[void 0,void 0,a],[i])}visitMap(t){let{type:r,offset:n=0,child:i=(new e).visit({type:r.childType})}=t,a=j(t.nullBitmap),s=Br(t.valueOffsets),{length:o=s.length-1,nullCount:_=(t.nullBitmap?-1:0)}=t;return new le(r,n,o,_,[s,void 0,a],[i])}},yu=new Ja;function Y(e){return yu.visit(e)}var Kn=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndexe.nullable))}function ys(e){return e.reduce(((e,t)=>e+t.nullCount),0)}function bs(e){return e.reduce(((e,t,r)=>(e[r+1]=e[r]+t.length,e)),new Uint32Array(e.length+1))}function Ss(e,t,r,n){let i=[];for(let a=-1,s=e.length;++a=n)break;if(r>=o+_)continue;if(o>=r&&o+_<=n){i.push(s);continue}let l=Math.max(0,r-o),c=Math.min(n-o,_);i.push(s.slice(l,c-l))}return 0===i.length&&i.push(e[0].slice(0,0)),i}function Xa(e,t,r,n){let i=0,a=0,s=t.length-1;do{if(i>=s-1)return r0?0:-1}function Su(e,t){let{nullBitmap:r}=e;if(!r||e.nullCount<=0)return-1;let n=0;for(let i of new kr(r,e.offset+(t||0),e.length,r,Es)){if(!i)return n;++n}return-1}function Q(e,t,r){if(void 0===t)return-1;if(null===t)switch(e.typeId){case v.Union:case v.Dictionary:break;default:return Su(e,r)}let n=Ie.getVisitFn(e),i=Tr(t);for(let t=(r||0)-1,a=e.length;++t{let r=e.data[t];return r.values.subarray(0,r.length)[Symbol.iterator]()}));let r=0;return new Kn(e.data.length,(t=>{let n=e.data[t].length,i=e.slice(r,r+n);return r+=n,new Ka(i)}))}var Ka=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data)):t;if(0===a.length||a.some((e=>!(e instanceof le))))throw new TypeError("Vector constructor expects an Array of Data instances.");let s=null===(r=a[0])||void 0===r?void 0:r.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:r}=K_[s.typeId],n=a[0];this.isValid=e=>Yn(n,e),this.get=t=>e(n,t),this.set=(e,r)=>t(n,e,r),this.indexOf=e=>r(n,e),this._offsets=[0,n.length];break}default:Object.setPrototypeOf(this,Y_[s.typeId]),this._offsets=bs(a)}this.data=a,this.type=s,this.stride=et(s),this.numChildren=null!==(i=null===(n=s.children)||void 0===n?void 0:n.length)&&void 0!==i?i:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce(((e,t)=>e+t.byteLength),0)}get nullable(){return $_(this.data)}get nullCount(){return ys(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return"".concat(this.VectorName,"<").concat(this.type[Symbol.toStringTag],">")}get VectorName(){return"".concat(v[this.type.typeId],"Vector")}isValid(e){return!1}get(e){return null}at(e){return this.get(Or(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return pn.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap((e=>e.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,r){return new e(Jn(this,t,r,(({data:e,_offsets:t},r,n)=>Ss(e,t,r,n))))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:r,stride:n,ArrayType:i}=this;switch(e.typeId){case v.Int:case v.Float:case v.Decimal:case v.Time:case v.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,r*n);default:return t.reduce(((e,{values:t,length:r})=>(e.array.set(t.subarray(0,r*n),e.offset),e.offset+=r*n,e)),{array:new i(r*n),offset:0}).array}}return[...this]}toString(){return"[".concat([...this].join(","),"]")}getChild(e){var t;return this.getChildAt(null===(t=this.type.children)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(t){return t>-1&&te[t]))):null}get isMemoized(){return!!k.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(k.isDictionary(this.type)){let t=new ws(this.data[0].dictionary),r=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new e(r)}return new ws(this)}unmemoize(){if(k.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),r=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new e(r)}return this}};X_=Symbol.toStringTag,se[X_]=(e=>{e.type=k.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(v).map((e=>v[e])).filter((e=>"number"==typeof e&&e!==v.NONE));for(let r of t){let t=Ie.getVisitFnByTypeId(r),n=ke.getVisitFnByTypeId(r),i=Cr.getVisitFnByTypeId(r);K_[r]={get:t,set:n,indexOf:i},Y_[r]=Object.create(e,{isValid:{value:fn(Yn)},get:{value:fn(Ie.getVisitFnByTypeId(r))},set:{value:As(ke.getVisitFnByTypeId(r))},indexOf:{value:Ls(Cr.getVisitFnByTypeId(r))}})}return"Vector"})(se.prototype);var ws=class e extends se{constructor(t){super(t.data);let r=this.get,n=this.set,i=this.slice,a=new Array(this.length);Object.defineProperty(this,"get",{value(e){let t=a[e];if(void 0!==t)return t;let n=r.call(this,e);return a[e]=n,n}}),Object.defineProperty(this,"set",{value(e,t){n.call(this,e,t),a[e]=t}}),Object.defineProperty(this,"slice",{value:(t,r)=>new e(i.call(this,t,r))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new se(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}};function Q_(e){if(!e||e.length<=0)return function(e){return!0};let t="",r=e.filter((e=>e==e));return r.length>0&&(t="\n switch (x) {".concat(r.map((e=>"\n case ".concat(Au(e),":"))).join(""),"\n return false;\n }")),e.length!==r.length&&(t="if (x !== x) return false;\n".concat(t)),new Function("x","".concat(t,"\nreturn true;"))}function Au(e){return"bigint"!=typeof e?gt(e):"".concat(gt(e),"n")}function Ya(e,t){let r=Math.ceil(e)*t-1;return(r-r%64+64||64)/t}function Z_(e,t=0){return e.length>=t?e.subarray(0,t):Fn(new e.constructor(t),e,0)}var Lt=class{constructor(e,t=0,r=1){this.length=Math.ceil(t/r),this.buffer=new e(this.length),this.stride=r,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e}get byteLength(){return Math.ceil(this.length*this.stride)*this.BYTES_PER_ELEMENT}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(e,t){return this}append(e){return this.set(this.length,e)}reserve(e){if(e>0){this.length+=e;let t=this.stride,r=this.length*t,n=this.buffer.length;r>=n&&this._resize(Ya(0===n?1*r:2*r,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=Ya(e*this.stride,this.BYTES_PER_ELEMENT);let t=Z_(this.buffer,e);return this.clear(),t}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(e){return this.buffer=Z_(this.buffer,e)}},nr=class extends Lt{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,t){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=t,this}},mn=class extends nr{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(e){return this.buffer[e>>3]>>e%8&1}set(e,t){let{buffer:r}=this.reserve(e-this.length+1),n=e>>3,i=e%8,a=r[n]>>i&1;return t?0===a&&(r[n]|=1<=0&&n.fill(n[r],r,e),n[e]=n[e-1]+t,this}flush(e=this.length-1){return e>this.length&&this.set(e-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(e+1)}},be=class{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e){throw new Error('"throughDOM" not available in this environment')}constructor({type:e,nullValues:t}){this.length=0,this.finished=!1,this.type=e,this.children=[],this.nullValues=t,this.stride=et(e),this._nulls=new mn,t&&t.length>0&&(this._isValid=Q_(t))}toVector(){return new se([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let e=0,{_offsets:t,_values:r,_nulls:n,_typeIds:i,children:a}=this;return t&&(e+=t.byteLength),r&&(e+=r.byteLength),n&&(e+=n.byteLength),i&&(e+=i.byteLength),a.reduce(((e,t)=>e+t.byteLength),e)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce(((e,t)=>e+t.reservedByteLength),e)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(e){return this.set(this.length,e)}isValid(e){return this._isValid(e)}set(e,t){return this.setValid(e,this.isValid(t))&&this.setValue(e,t),this}setValue(e,t){this._setValue(this,e,t)}setValid(e,t){return this.length=this._nulls.set(e,+t).length,t}addChild(e,t="".concat(this.numChildren)){throw new Error('Cannot append children to non-nested type "'.concat(this.type,'"'))}getChildAt(e){return this.children[e]||null}flush(){let e,t,r,n,{type:i,length:a,nullCount:s,_typeIds:o,_offsets:_,_values:l,_nulls:c}=this;(t=null==o?void 0:o.flush(a))?n=null==_?void 0:_.flush(a):e=(n=null==_?void 0:_.flush(a))?null==l?void 0:l.flush(_.last()):null==l?void 0:l.flush(a),s>0&&(r=null==c?void 0:c.flush(a));let u=this.children.map((e=>e.flush()));return this.clear(),Y({type:i,length:a,nullCount:s,children:u,child:u[0],data:e,typeIds:t,nullBitmap:r,valueOffsets:n})}finish(){this.finished=!0;for(let e of this.children)e.finish();return this}clear(){var e,t,r,n;this.length=0,null===(e=this._nulls)||void 0===e||e.clear(),null===(t=this._values)||void 0===t||t.clear(),null===(r=this._offsets)||void 0===r||r.clear(),null===(n=this._typeIds)||void 0===n||n.clear();for(let e of this.children)e.clear();return this}};be.prototype.length=1,be.prototype.stride=1,be.prototype.children=null,be.prototype.finished=!1,be.prototype.nullValues=null,be.prototype._isValid=()=>!0;var xe=class extends be{constructor(e){super(e),this._values=new nr(this.ArrayType,0,this.stride)}setValue(e,t){let r=this._values;return r.reserve(e-r.length+1),super.setValue(e,t)}},je=class extends be{constructor(e){super(e),this._pendingLength=0,this._offsets=new hn(e.type)}setValue(e,t){let r=this._pending||(this._pending=new Map),n=r.get(e);n&&(this._pendingLength-=n.length),this._pendingLength+=t instanceof kt?t[wr].length:t.length,r.set(e,t)}setValid(e,t){return!!super.setValid(e,t)||((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let e=this._pending,t=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,t),this}},Hr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,r,n){return e.prep(8,24),e.writeInt64(BigInt(null!=n?n:0)),e.pad(4),e.writeInt32(r),e.writeInt64(BigInt(null!=t?t:0)),e.offset()}},tt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ce.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new ze).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new Hr).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){let r=this.bb.__offset(this.bb_pos,10);return r?(t||new Hr).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,12);return r?(t||new Fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,ce.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}},de=class e{constructor(e=[],t,r,n=ce.V5){this.fields=e||[],this.metadata=t||new Map,r||(r=Qa(this.fields)),this.dictionaries=r,this.metadataVersion=n}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((e=>e.name))}toString(){return"Schema<{ ".concat(this.fields.map(((e,t)=>"".concat(t,": ").concat(e))).join(", ")," }>")}select(t){let r=new Set(t),n=this.fields.filter((e=>r.has(e.name)));return new e(n,this.metadata)}selectAt(t){let r=t.map((e=>this.fields[e])).filter(Boolean);return new e(r,this.metadata)}assign(...t){let r=t[0]instanceof e?t[0]:Array.isArray(t[0])?new e(t[0]):new e(t),n=[...this.fields],i=Ts(Ts(new Map,this.metadata),r.metadata),a=r.fields.filter((e=>{let t=n.findIndex((t=>t.name===e.name));return!~t||(n[t]=e.clone({metadata:Ts(Ts(new Map,n[t].metadata),e.metadata)}))&&!1})),s=Qa(a,new Map);return new e([...n,...a],i,new Map([...this.dictionaries,...s]))}};de.prototype.fields=null,de.prototype.metadata=null,de.prototype.dictionaries=null;var ne=class e{static new(...t){let[r,n,i,a]=t;return t[0]&&"object"==typeof t[0]&&(({name:r}=t[0]),void 0===n&&(n=t[0].type),void 0===i&&(i=t[0].nullable),void 0===a&&(a=t[0].metadata)),new e("".concat(r),n,i,a)}constructor(e,t,r=!1,n){this.name=e,this.type=t,this.nullable=r,this.metadata=n||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return"".concat(this.name,": ").concat(this.type)}clone(...t){let[r,n,i,a]=t;return t[0]&&"object"==typeof t[0]?({name:r=this.name,type:n=this.type,nullable:i=this.nullable,metadata:a=this.metadata}=t[0]):[r=this.name,n=this.type,i=this.nullable,a=this.metadata]=t,e.new(r,n,i,a)}};function Ts(e,t){return new Map([...e||new Map,...t||new Map])}function Qa(e,t=new Map){for(let r=-1,n=e.length;++r0&&Qa(n.children,t)}return t}ne.prototype.type=null,ne.prototype.name=null,ne.prototype.nullable=null,ne.prototype.metadata=null;var Lu=Pr,wu=Ye,ir=class{static decode(e){e=new wu(j(e));let t=tt.getRootAsFooter(e),r=de.decode(t.schema(),new Map,t.version());return new Za(r,t)}static encode(e){let t=new Lu,r=de.encode(t,e.schema);tt.startRecordBatchesVector(t,e.numRecordBatches);for(let r of[...e.recordBatches()].slice().reverse())sr.encode(t,r);let n=t.endVector();tt.startDictionariesVector(t,e.numDictionaries);for(let r of[...e.dictionaryBatches()].slice().reverse())sr.encode(t,r);let i=t.endVector();return tt.startFooter(t),tt.addSchema(t,r),tt.addVersion(t,ce.V5),tt.addRecordBatches(t,n),tt.addDictionaries(t,i),tt.finishFooterBuffer(t,tt.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=ce.V5,r,n){this.schema=e,this.version=t,r&&(this._recordBatches=r),n&&(this._dictionaryBatches=n)}*recordBatches(){for(let e,t=-1,r=this.numRecordBatches;++t=0&&e=0&&e=0&&e=0&&ethis._closedPromiseResolve=e))}get closed(){return this._closedPromise}cancel(e){return O(this,void 0,void 0,(function*(){yield this.return(e)}))}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(Ee);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Oe.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Oe.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return O(this,void 0,void 0,(function*(){return yield this.abort(e),Ee}))}return(e){return O(this,void 0,void 0,(function*(){return yield this.close(),Ee}))}read(e){return O(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return O(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((e,t)=>{this.resolvers.push({resolve:e,reject:t})})):Promise.resolve(Ee)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}},Gt=class extends Ds{write(e){if((e=j(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Mn(this.toUint8Array(!0)):this.toUint8Array(!1).then(Mn)}toUint8Array(e=!1){return e?Ke(this._values)[0]:O(this,void 0,void 0,(function*(){var e,t,r,n;let i=[],a=0;try{for(var s,o=!0,_=ct(this);!(e=(s=yield _.next()).done);o=!0){n=s.value,o=!1;let e=n;i.push(e),a+=e.byteLength}}catch(e){t={error:e}}finally{try{!o&&!e&&(r=_.return)&&(yield r.call(_))}finally{if(t)throw t.error}}return Ke(i,a)[0]}))}},Nt=class{constructor(e){e&&(this.source=new eo(Oe.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},at=class e{constructor(t){t instanceof e?this.source=t.source:t instanceof Gt?this.source=new ar(Oe.fromAsyncIterable(t)):Oi(t)?this.source=new ar(Oe.fromNodeStream(t)):Rn(t)?this.source=new ar(Oe.fromDOMStream(t)):Bi(t)?this.source=new ar(Oe.fromDOMStream(t.body)):dt(t)?this.source=new ar(Oe.fromIterable(t)):(ut(t)||rt(t))&&(this.source=new ar(Oe.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},eo=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,t="read"){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||Ee)}return(e){return Object.create(this.source.return&&this.source.return(e)||Ee)}},ar=class{constructor(e){this.source=e,this._closedPromise=new Promise((e=>this._closedPromiseResolve=e))}cancel(e){return O(this,void 0,void 0,(function*(){yield this.return(e)}))}get closed(){return this._closedPromise}read(e){return O(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return O(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(e){return O(this,arguments,void 0,(function*(e,t="read"){return yield this.source.next({cmd:t,size:e})}))}throw(e){return O(this,void 0,void 0,(function*(){let t=this.source.throw&&(yield this.source.throw(e))||Ee;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}return(e){return O(this,void 0,void 0,(function*(){let t=this.source.return&&(yield this.source.return(e))||Ee;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}},Zn=class extends Nt{constructor(e,t){super(),this.position=0,this.buffer=j(e),this.size=void 0===t?this.buffer.byteLength:t}readInt32(e){let{buffer:t,byteOffset:r}=this.readAt(e,4);return new DataView(t,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),eei,Int128:()=>ti,Int64:()=>or,Uint64:()=>Le});var vn=8,to=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],ei=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let t=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),r=new Uint32Array([e.buffer[1]>>>16,65535&e.buffer[1],e.buffer[0]>>>16,65535&e.buffer[0]]),n=t[3]*r[3];this.buffer[0]=65535&n;let i=n>>>16;return n=t[2]*r[3],i+=n,n=t[3]*r[2]>>>0,i+=n,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0>>16,this.buffer[1]+=t[1]*r[3]+t[2]*r[2]+t[3]*r[1],this.buffer[1]+=t[0]*r[3]+t[1]*r[2]+t[2]*r[1]+t[3]*r[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]>>0&&++t[1],t[1]>>0&&++t[2],t[2]>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return"".concat(gn(this.buffer[3])," ").concat(gn(this.buffer[2])," ").concat(gn(this.buffer[1])," ").concat(gn(this.buffer[0]))}static multiply(t,r){return new e(new Uint32Array(t.buffer)).times(r)}static add(t,r){return new e(new Uint32Array(t.buffer)).plus(r)}static from(t,r=new Uint32Array(4)){return e.fromString("string"==typeof t?t:t.toString(),r)}static fromNumber(t,r=new Uint32Array(4)){return e.fromString(t.toString(),r)}static fromString(t,r=new Uint32Array(4)){let n=t.startsWith("-"),i=t.length,a=new e(r);for(let r=n?1:0;r0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+t)}readDictionary(e){return this.dictionaries.get(e.id)}},Is=class extends ri{constructor(e,t,r,n,i){super(new Uint8Array(0),t,r,n,i),this.sources=e}readNullBitmap(e,t,{offset:r}=this.nextBufferRange()){return t<=0?new Uint8Array(0):Nr(this.sources[r])}readOffsets(e,{offset:t}=this.nextBufferRange()){return re(Uint8Array,re(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return re(Uint8Array,re(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:r}=this;return k.isTimestamp(e)||(k.isInt(e)||k.isTime(e))&&64===e.bitWidth||k.isDuration(e)||k.isDate(e)&&e.unit===we.MILLISECOND?re(Uint8Array,or.convertArray(r[t])):k.isDecimal(e)?re(Uint8Array,ti.convertArray(r[t])):k.isBinary(e)||k.isLargeBinary(e)||k.isFixedSizeBinary(e)?Tu(r[t]):k.isBool(e)?Nr(r[t]):k.isUtf8(e)||k.isLargeUtf8(e)?Mt(r[t].join("")):re(Uint8Array,re(e.ArrayType,r[t].map((e=>+e))))}};function Tu(e){let t=e.join(""),r=new Uint8Array(t.length/2);for(let e=0;e>1]=Number.parseInt(t.slice(e,e+2),16);return r}var En=class extends je{constructor(e){super(e),this._values=new Lt(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,j(t))}_flushPending(e,t){let r=this._offsets,n=this._values.reserve(t).buffer,i=0;for(let[t,a]of e)if(void 0===a)r.set(t,0);else{let e=a.length;n.set(a,i),r.set(t,e),i+=e}}},yn=class extends je{constructor(e){super(e),this._values=new Lt(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,j(t))}_flushPending(e,t){let r=this._offsets,n=this._values.reserve(t).buffer,i=0;for(let[t,a]of e)if(void 0===a)r.set(t,BigInt(0));else{let e=a.length;n.set(a,i),r.set(t,BigInt(e)),i+=e}}},xs=class extends be{constructor(e){super(e),this._values=new mn}setValue(e,t){this._values.set(e,+t)}},Ur=class extends xe{};Ur.prototype._setValue=Oa;var ni=class extends Ur{};ni.prototype._setValue=es;var ii=class extends Ur{};ii.prototype._setValue=ts;var si=class extends xe{};si.prototype._setValue=Na;var Ms=class extends be{constructor({type:e,nullValues:t,dictionaryHashFunction:r}){super({type:new Ze(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Vr({type:this.type.indices,nullValues:t}),this.dictionary=Vr({type:this.type.dictionary,nullValues:null}),"function"==typeof r&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(e){return this.indices.isValid(e)}setValid(e,t){let r=this.indices;return t=r.setValid(e,t),this.length=r.length,t}setValue(e,t){let r=this._keysToIndices,n=this.valueToKey(t),i=r[n];return void 0===i&&(r[n]=i=this._dictionaryOffset+this.dictionary.append(t).length-1),this.indices.setValue(e,i)}flush(){let e=this.type,t=this._dictionary,r=this.dictionary.toVector(),n=this.indices.flush().clone(e);return n.dictionary=t?t.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=n.dictionary,this.clear(),n}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(e){return"string"==typeof e?e:"".concat(e)}},ai=class extends xe{};ai.prototype._setValue=Pa;var Rs=class extends be{setValue(e,t){let[r]=this.children,n=e*this.stride;for(let e=-1,i=t.length;++e0)throw new Error("FixedSizeListBuilder can only have one child.");let r=this.children.push(e);return this.type=new bt(this.type.listSize,new ne(t,e.type,!0)),r}},zr=class extends xe{setValue(e,t){this._values.set(e,t)}},Fs=class extends zr{setValue(e,t){super.setValue(e,$n(t))}},Bs=class extends zr{},Ps=class extends zr{},jr=class extends xe{};jr.prototype._setValue=Ca;var oi=class extends jr{};oi.prototype._setValue=cs;var _i=class extends jr{};_i.prototype._setValue=us;var _r=class extends xe{};_r.prototype._setValue=Ha;var li=class extends _r{};li.prototype._setValue=ds;var ci=class extends _r{};ci.prototype._setValue=ps;var ui=class extends _r{};ui.prototype._setValue=ms;var di=class extends _r{};di.prototype._setValue=hs;var ot=class extends xe{setValue(e,t){this._values.set(e,t)}},Os=class extends ot{},ks=class extends ot{},Gs=class extends ot{},Ns=class extends ot{},Cs=class extends ot{},Hs=class extends ot{},Ws=class extends ot{},Us=class extends ot{},Vs=class extends je{constructor(e){super(e),this._offsets=new hn(e.type)}addChild(e,t="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new Et(new ne(t,e.type,!0)),this.numChildren-1}_flushPending(e){let t=this._offsets,[r]=this.children;for(let[n,i]of e)if(typeof i>"u")t.set(n,0);else{let e=i,a=e.length,s=t.set(n,a).buffer[n];for(let t=-1;++t0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new St(new ne(t,e.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(e){let t=this._offsets,[r]=this.children;for(let[n,i]of e)if(void 0===i)t.set(n,0);else{let{[n]:e,[n+1]:a}=t.set(n,i.size).buffer;for(let t of i.entries())if(r.set(e,t),++e>=a)break}}},js=class extends be{setValue(e,t){}setValid(e,t){return this.length=Math.max(e+1,this.length),t}},qs=class extends be{setValue(e,t){let{children:r,type:n}=this;switch(Array.isArray(t)||t.constructor){case!0:return n.children.forEach(((n,i)=>r[i].set(e,t[i])));case Map:return n.children.forEach(((n,i)=>r[i].set(e,t.get(n.name))));default:return n.children.forEach(((n,i)=>r[i].set(e,t[n.name])))}}setValid(e,t){return super.setValid(e,t)||this.children.forEach((r=>r.setValid(e,t))),t}addChild(e,t="".concat(this.numChildren)){let r=this.children.push(e);return this.type=new ve([...this.type.children,new ne(t,e.type,!0)]),r}},lr=class extends xe{};lr.prototype._setValue=ka;var fi=class extends lr{};fi.prototype._setValue=rs;var pi=class extends lr{};pi.prototype._setValue=ns;var mi=class extends lr{};mi.prototype._setValue=is;var hi=class extends lr{};hi.prototype._setValue=ss;var cr=class extends xe{};cr.prototype._setValue=Ga;var gi=class extends cr{};gi.prototype._setValue=as;var vi=class extends cr{};vi.prototype._setValue=os;var Ei=class extends cr{};Ei.prototype._setValue=_s;var yi=class extends cr{};yi.prototype._setValue=ls;var bn=class extends be{constructor(e){super(e),this._typeIds=new nr(Int8Array,0,1),"function"==typeof e.valueToChildTypeId&&(this._valueToChildTypeId=e.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(e,t){return this.set(this.length,e,t)}set(e,t,r){return void 0===r&&(r=this._valueToChildTypeId(this,t,e)),this.setValue(e,t,r),this}setValue(e,t,r){this._typeIds.set(e,r);let n=this.type.typeIdToChildIndex[r],i=this.children[n];null==i||i.set(e,t)}addChild(e,t="".concat(this.children.length)){let r=this.children.push(e),{type:{children:n,mode:i,typeIds:a}}=this,s=[...n,new ne(t,e.type)];return this.type=new yt(i,[...a,r],s),r}_valueToChildTypeId(e,t,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},$s=class extends bn{},Js=class extends bn{constructor(e){super(e),this._offsets=new nr(Int32Array)}setValue(e,t,r){let n=this._typeIds.set(e,r).buffer[e],i=this.getChildAt(this.type.typeIdToChildIndex[n]),a=this._offsets.set(e,i.length).buffer[e];null==i||i.set(a,t)}},bi=class extends je{constructor(e){super(e),this._values=new Lt(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,Mt(t))}_flushPending(e,t){}};bi.prototype._flushPending=En.prototype._flushPending;var Si=class extends je{constructor(e){super(e),this._values=new Lt(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,Mt(t))}_flushPending(e,t){}};Si.prototype._flushPending=yn.prototype._flushPending;var no=class extends C{visitNull(){return js}visitBool(){return xs}visitInt(){return ot}visitInt8(){return Os}visitInt16(){return ks}visitInt32(){return Gs}visitInt64(){return Ns}visitUint8(){return Cs}visitUint16(){return Hs}visitUint32(){return Ws}visitUint64(){return Us}visitFloat(){return zr}visitFloat16(){return Fs}visitFloat32(){return Bs}visitFloat64(){return Ps}visitUtf8(){return bi}visitLargeUtf8(){return Si}visitBinary(){return En}visitLargeBinary(){return yn}visitFixedSizeBinary(){return ai}visitDate(){return Ur}visitDateDay(){return ni}visitDateMillisecond(){return ii}visitTimestamp(){return lr}visitTimestampSecond(){return fi}visitTimestampMillisecond(){return pi}visitTimestampMicrosecond(){return mi}visitTimestampNanosecond(){return hi}visitTime(){return cr}visitTimeSecond(){return gi}visitTimeMillisecond(){return vi}visitTimeMicrosecond(){return Ei}visitTimeNanosecond(){return yi}visitDecimal(){return si}visitList(){return Vs}visitStruct(){return qs}visitUnion(){return bn}visitDenseUnion(){return Js}visitSparseUnion(){return $s}visitDictionary(){return Ms}visitInterval(){return jr}visitIntervalDayTime(){return oi}visitIntervalYearMonth(){return _i}visitDuration(){return _r}visitDurationSecond(){return li}visitDurationMillisecond(){return ci}visitDurationMicrosecond(){return ui}visitDurationNanosecond(){return di}visitFixedSizeList(){return Rs}visitMap(){return zs}},el=new no,V=class extends C{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,r)=>this.compareFields(e,t[r])))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function Ue(e,t){return t instanceof e.constructor}function qr(e,t){return e===t||Ue(e,t)}function ur(e,t){return e===t||Ue(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function Xs(e,t){return e===t||Ue(e,t)&&e.precision===t.precision}function Du(e,t){return e===t||Ue(e,t)&&e.byteWidth===t.byteWidth}function io(e,t){return e===t||Ue(e,t)&&e.unit===t.unit}function Ai(e,t){return e===t||Ue(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Li(e,t){return e===t||Ue(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function Iu(e,t){return e===t||Ue(e,t)&&e.children.length===t.children.length&&Ct.compareManyFields(e.children,t.children)}function xu(e,t){return e===t||Ue(e,t)&&e.children.length===t.children.length&&Ct.compareManyFields(e.children,t.children)}function so(e,t){return e===t||Ue(e,t)&&e.mode===t.mode&&e.typeIds.every(((e,r)=>e===t.typeIds[r]))&&Ct.compareManyFields(e.children,t.children)}function Mu(e,t){return e===t||Ue(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&Ct.visit(e.indices,t.indices)&&Ct.visit(e.dictionary,t.dictionary)}function ao(e,t){return e===t||Ue(e,t)&&e.unit===t.unit}function wi(e,t){return e===t||Ue(e,t)&&e.unit===t.unit}function Ru(e,t){return e===t||Ue(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&Ct.compareManyFields(e.children,t.children)}function Fu(e,t){return e===t||Ue(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&Ct.compareManyFields(e.children,t.children)}V.prototype.visitNull=qr,V.prototype.visitBool=qr,V.prototype.visitInt=ur,V.prototype.visitInt8=ur,V.prototype.visitInt16=ur,V.prototype.visitInt32=ur,V.prototype.visitInt64=ur,V.prototype.visitUint8=ur,V.prototype.visitUint16=ur,V.prototype.visitUint32=ur,V.prototype.visitUint64=ur,V.prototype.visitFloat=Xs,V.prototype.visitFloat16=Xs,V.prototype.visitFloat32=Xs,V.prototype.visitFloat64=Xs,V.prototype.visitUtf8=qr,V.prototype.visitLargeUtf8=qr,V.prototype.visitBinary=qr,V.prototype.visitLargeBinary=qr,V.prototype.visitFixedSizeBinary=Du,V.prototype.visitDate=io,V.prototype.visitDateDay=io,V.prototype.visitDateMillisecond=io,V.prototype.visitTimestamp=Ai,V.prototype.visitTimestampSecond=Ai,V.prototype.visitTimestampMillisecond=Ai,V.prototype.visitTimestampMicrosecond=Ai,V.prototype.visitTimestampNanosecond=Ai,V.prototype.visitTime=Li,V.prototype.visitTimeSecond=Li,V.prototype.visitTimeMillisecond=Li,V.prototype.visitTimeMicrosecond=Li,V.prototype.visitTimeNanosecond=Li,V.prototype.visitDecimal=qr,V.prototype.visitList=Iu,V.prototype.visitStruct=xu,V.prototype.visitUnion=so,V.prototype.visitDenseUnion=so,V.prototype.visitSparseUnion=so,V.prototype.visitDictionary=Mu,V.prototype.visitInterval=ao,V.prototype.visitIntervalDayTime=ao,V.prototype.visitIntervalYearMonth=ao,V.prototype.visitDuration=wi,V.prototype.visitDurationSecond=wi,V.prototype.visitDurationMillisecond=wi,V.prototype.visitDurationMicrosecond=wi,V.prototype.visitDurationNanosecond=wi,V.prototype.visitFixedSizeList=Ru,V.prototype.visitMap=Fu;var Ct=new V;function $r(e,t){return Ct.compareSchemas(e,t)}function tl(e,t){return Ct.compareFields(e,t)}function rl(e,t){return Ct.visit(e,t)}function Vr(e){let t=e.type,r=new(el.getVisitFn(t)())(e);if(t.children&&t.children.length>0){let n=e.children||[],i={nullValues:e.nullValues},a=Array.isArray(n)?(e,t)=>n[t]||i:({name:e})=>n[e]||i;for(let[e,n]of t.children.entries()){let{type:t}=n,i=a(n,e);r.children.push(Vr(Object.assign(Object.assign({},i),{type:t})))}}return r}function Ks(e,t){return Bu(e,t.map((e=>e.data.concat())))}function Bu(e,t){let r,n=[...e.fields],i=[],a={numBatches:t.reduce(((e,t)=>Math.max(e,t.length)),0)},s=0,o=0,_=-1,l=t.length,c=[];for(;a.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,_=-1;++_0&&(i[s++]=Y({type:new ve(n),length:o,nullCount:0,children:c.slice()})))}return[e=e.assign(n),i.map((t=>new Te(e,t)))]}function Pu(e,t,r,n,i){var a;let s=(t+63&-64)>>3;for(let o=-1,_=n.length;++o<_;){let _=r[o],l=null==_?void 0:_.length;if(l>=t)l===t?r[o]=_:(r[o]=_.slice(0,t),i.numBatches=Math.max(i.numBatches,n[o].unshift(_.slice(t,l-t))));else{let n=e[o];e[o]=n.clone({nullable:!0}),r[o]=null!==(a=null==_?void 0:_._changeLengthAndBackfillNullBitmap(t))&&void 0!==a?a:Y({type:n.type,length:t,nullCount:t,nullBitmap:new Uint8Array(s)})}}return r}var nl,Ve=class e{constructor(...t){var r,n;if(0===t.length)return this.batches=[],this.schema=new de([]),this._offsets=[0],this;let i,a;t[0]instanceof de&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(a=t.pop());let s=t=>{if(t){if(t instanceof Te)return[t];if(t instanceof e)return t.batches;if(t instanceof le){if(t.type instanceof ve)return[new Te(new de(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((e=>s(e)));if("function"==typeof t[Symbol.iterator])return[...t].flatMap((e=>s(e)));if("object"==typeof t){let e=Object.keys(t),r=e.map((e=>new se([t[e]]))),n=null!=i?i:new de(e.map(((e,t)=>new ne(String(e),r[t].type,r[t].nullable)))),[,a]=Ks(n,r);return 0===a.length?[new Te(t)]:a}}}return[]},o=t.flatMap((e=>s(e)));if(i=null!==(n=null!=i?i:null===(r=o[0])||void 0===r?void 0:r.schema)&&void 0!==n?n:new de([]),!(i instanceof de))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let e of o){if(!(e instanceof Te))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!$r(i,e.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=o,this._offsets=null!=a?a:bs(this.data)}get data(){return this.batches.map((({data:e})=>e))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((e,t)=>e+t.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=ys(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(Or(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?pn.visit(new se(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return"[\n ".concat(this.toArray().join(",\n "),"\n]")}concat(...t){let r=this.schema,n=this.data.concat(t.flatMap((({data:e})=>e)));return new e(r,n.map((e=>new Te(r,e))))}slice(t,r){let n=this.schema;[t,r]=Jn({length:this.numRows},t,r);let i=Ss(this.data,this._offsets,t,r);return new e(n,i.map((e=>new Te(n,e))))}getChild(e){return this.getChildAt(this.schema.fields.findIndex((t=>t.name===e)))}getChildAt(e){if(e>-1&&et.children[e]));if(0===t.length){let{type:r}=this.schema.fields[e],n=Y({type:r,length:0,nullCount:0});t.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new se(t)}return null}setChild(e,t){var r;return this.setChildAt(null===(r=this.schema.fields)||void 0===r?void 0:r.findIndex((t=>t.name===e)),t)}setChildAt(t,r){let n=this.schema,i=[...this.batches];if(t>-1&&tthis.getChildAt(t)));[e[t],s[t]]=[a,r],[n,i]=Ks(n,s)}return new e(n,i)}select(e){let t=this.schema.fields.reduce(((e,t,r)=>e.set(t.name,r)),new Map);return this.selectAt(e.map((e=>t.get(e))).filter((e=>e>-1)))}selectAt(t){let r=this.schema.selectAt(t),n=this.batches.map((e=>e.selectAt(t)));return new e(r,n)}assign(t){let r=this.schema.fields,[n,i]=t.schema.fields.reduce(((e,t,n)=>{let[i,a]=e,s=r.findIndex((e=>e.name===t.name));return~s?a[s]=n:i.push(n),e}),[[],[]]),a=this.schema.assign(t.schema),s=[...r.map(((e,t)=>[t,i[t]])).map((([e,r])=>void 0===r?this.getChildAt(e):t.getChildAt(r))),...n.map((e=>t.getChildAt(e)))].filter(Boolean);return new e(...Ks(a,s))}};nl=Symbol.toStringTag,Ve[nl]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=fn(Yn),e.get=fn(Ie.getVisitFn(v.Struct)),e.set=As(ke.getVisitFn(v.Struct)),e.indexOf=Ls(Cr.getVisitFn(v.Struct)),"Table"))(Ve.prototype);var sl,Te=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof de))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=Y({nullCount:0,type:new ve(this.schema.fields),children:this.schema.fields.map((e=>Y({type:e.type,nullCount:0})))})]=e,!(this.data instanceof le))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=il(this.schema,this.data.children);break;case 1:{let[t]=e,{fields:r,children:n,length:i}=Object.keys(t).reduce(((e,r,n)=>(e.children[n]=t[r],e.length=Math.max(e.length,t[r].length),e.fields[n]=ne.new({name:r,type:t[r].type,nullable:!0}),e)),{length:0,fields:new Array,children:new Array}),a=new de(r),s=Y({type:new ve(r),length:i,children:n,nullCount:0});[this.schema,this.data]=il(a,s.children,i);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=al(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Ie.visit(this.data,e)}at(e){return this.get(Or(e,this.numRows))}set(e,t){return ke.visit(this.data,e,t)}indexOf(e,t){return Cr.visit(this.data,e,t)}[Symbol.iterator](){return pn.visit(new se([this.data]))}toArray(){return[...this]}concat(...e){return new Ve(this.schema,[this,...e])}slice(t,r){let[n]=new se([this.data]).slice(t,r).data;return new e(this.schema,n)}getChild(e){var t;return this.getChildAt(null===(t=this.schema.fields)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(e){return e>-1&&et.name===e)),t)}setChildAt(t,r){let n=this.schema,i=this.data;if(t>-1&&tt.name===e));~t&&(i[t]=this.data.children[t])}return new e(r,Y({type:n,length:this.numRows,children:i}))}selectAt(t){let r=this.schema.selectAt(t),n=t.map((e=>this.data.children[e])).filter(Boolean),i=Y({type:new ve(r.fields),length:this.numRows,children:n});return new e(r,i)}};function il(e,t,r=t.reduce(((e,t)=>Math.max(e,t.length)),0)){var n;let i=[...e.fields],a=[...t],s=(r+63&-64)>>3;for(let[o,_]of e.fields.entries()){let e=t[o];(!e||e.length!==r)&&(i[o]=_.clone({nullable:!0}),a[o]=null!==(n=null==e?void 0:e._changeLengthAndBackfillNullBitmap(r))&&void 0!==n?n:Y({type:_.type,length:r,nullCount:r,nullBitmap:new Uint8Array(s)}))}return[e.assign(i),Y({type:new ve(i),length:r,children:a})]}function al(e,t,r=new Map){var n,i;if((null!==(n=null==e?void 0:e.length)&&void 0!==n?n:0)>0&&(null==e?void 0:e.length)===(null==t?void 0:t.length))for(let n=-1,a=e.length;++n(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(Te.prototype);var Jr=class extends Te{constructor(e){let t=e.fields.map((e=>Y({type:e.type})));super(e,Y({type:new ve(e.fields),nullCount:0,children:t}))}},wt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ce.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):ie.NONE}header(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,12);return r?(t||new Fe).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,ce.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,ie.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt("0"))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(t,r,n,i,a,s){return e.startMessage(t),e.addVersion(t,r),e.addHeaderType(t,n),e.addHeader(t,i),e.addBodyLength(t,a),e.addCustomMetadata(t,s),e.endMessage(t)}},oo=class extends C{visit(e,t){return null==e||null==t?void 0:super.visit(e,t)}visitNull(e,t){return Un.startNull(t),Un.endNull(t)}visitInt(e,t){return mt.startInt(t),mt.addBitWidth(t,e.bitWidth),mt.addIsSigned(t,e.isSigned),mt.endInt(t)}visitFloat(e,t){return yr.startFloatingPoint(t),yr.addPrecision(t,e.precision),yr.endFloatingPoint(t)}visitBinary(e,t){return Gn.startBinary(t),Gn.endBinary(t)}visitLargeBinary(e,t){return Cn.startLargeBinary(t),Cn.endLargeBinary(t)}visitBool(e,t){return Nn.startBool(t),Nn.endBool(t)}visitUtf8(e,t){return zn.startUtf8(t),zn.endUtf8(t)}visitLargeUtf8(e,t){return Hn.startLargeUtf8(t),Hn.endLargeUtf8(t)}visitDecimal(e,t){return Pt.startDecimal(t),Pt.addScale(t,e.scale),Pt.addPrecision(t,e.precision),Pt.addBitWidth(t,e.bitWidth),Pt.endDecimal(t)}visitDate(e,t){return hr.startDate(t),hr.addUnit(t,e.unit),hr.endDate(t)}visitTime(e,t){return Ut.startTime(t),Ut.addUnit(t,e.unit),Ut.addBitWidth(t,e.bitWidth),Ut.endTime(t)}visitTimestamp(e,t){let r=e.timezone&&t.createString(e.timezone)||void 0;return Vt.startTimestamp(t),Vt.addUnit(t,e.unit),void 0!==r&&Vt.addTimezone(t,r),Vt.endTimestamp(t)}visitInterval(e,t){return br.startInterval(t),br.addUnit(t,e.unit),br.endInterval(t)}visitDuration(e,t){return gr.startDuration(t),gr.addUnit(t,e.unit),gr.endDuration(t)}visitList(e,t){return Wn.startList(t),Wn.endList(t)}visitStruct(e,t){return Vn.startStruct_(t),Vn.endStruct_(t)}visitUnion(e,t){ht.startTypeIdsVector(t,e.typeIds.length);let r=ht.createTypeIdsVector(t,e.typeIds);return ht.startUnion(t),ht.addMode(t,e.mode),ht.addTypeIds(t,r),ht.endUnion(t)}visitDictionary(e,t){let r=this.visit(e.indices,t);return Bt.startDictionaryEncoding(t),Bt.addId(t,BigInt(e.id)),Bt.addIsOrdered(t,e.isOrdered),void 0!==r&&Bt.addIndexType(t,r),Bt.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return vr.startFixedSizeBinary(t),vr.addByteWidth(t,e.byteWidth),vr.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return Er.startFixedSizeList(t),Er.addListSize(t,e.listSize),Er.endFixedSizeList(t)}visitMap(e,t){return Sr.startMap(t),Sr.addKeysSorted(t,e.keysSorted),Sr.endMap(t)}},Ys=new oo;function cl(e,t=new Map){return new de(ku(e,t),Qs(e.metadata),t)}function _o(e){return new Ge(e.count,dl(e.columns),fl(e.columns))}function ul(e){return new $e(_o(e.data),e.id,e.isDelta)}function ku(e,t){return(e.fields||[]).filter(Boolean).map((e=>ne.fromJSON(e,t)))}function ol(e,t){return(e.children||[]).filter(Boolean).map((e=>ne.fromJSON(e,t)))}function dl(e){return(e||[]).reduce(((e,t)=>[...e,new _t(t.count,Gu(t.VALIDITY)),...dl(t.children)]),[])}function fl(e,t=[]){for(let r=-1,n=(e||[]).length;++re+ +(0===t)),0)}function pl(e,t){let r,n,i,a,s,o;return t&&(a=e.dictionary)?t.has(r=a.id)?(n=(n=a.indexType)?_l(n):new Ot,o=new Ze(t.get(r),n,r,a.isOrdered),i=new ne(e.name,o,e.nullable,Qs(e.metadata))):(n=(n=a.indexType)?_l(n):new Ot,t.set(r,s=ll(e,ol(e,t))),o=new Ze(s,n,r,a.isOrdered),i=new ne(e.name,o,e.nullable,Qs(e.metadata))):(s=ll(e,ol(e,t)),i=new ne(e.name,s,e.nullable,Qs(e.metadata))),i||null}function Qs(e=[]){return new Map(e.map((({key:e,value:t})=>[e,t])))}function _l(e){return new Be(e.isSigned,e.bitWidth)}function ll(e,t){let r=e.type.name;switch(r){case"NONE":case"null":return new We;case"binary":return new zt;case"largebinary":return new jt;case"utf8":return new qt;case"largeutf8":return new $t;case"bool":return new Jt;case"list":return new Et((t||[])[0]);case"struct":case"struct_":return new ve(t||[])}switch(r){case"int":{let t=e.type;return new Be(t.isSigned,t.bitWidth)}case"floatingpoint":{let t=e.type;return new st(pe[t.precision])}case"decimal":{let t=e.type;return new Xt(t.scale,t.precision,t.bitWidth)}case"date":{let t=e.type;return new Kt(we[t.unit])}case"time":{let t=e.type;return new Yt(G[t.unit],t.bitWidth)}case"timestamp":{let t=e.type;return new Qt(G[t.unit],t.timezone)}case"interval":{let t=e.type;return new Zt(Re[t.unit])}case"duration":{let t=e.type;return new er(G[t.unit])}case"union":{let r=e.type,[n,...i]=(r.mode+"").toLowerCase(),a=n.toUpperCase()+i.join("");return new yt(he[a],r.typeIds||[],t||[])}case"fixedsizebinary":{let t=e.type;return new tr(t.byteWidth)}case"fixedsizelist":{let r=e.type;return new bt(r.listSize,(t||[])[0])}case"map":{let r=e.type;return new St((t||[])[0],r.keysSorted)}}throw new Error('Unrecognized type: "'.concat(r,'"'))}var Nu=Pr,Cu=Ye,Je=class e{static fromJSON(t,r){let n=new e(0,ce.V5,r);return n._createHeader=Hu(t,r),n}static decode(t){t=new Cu(j(t));let r=wt.getRootAsMessage(t),n=r.bodyLength(),i=r.version(),a=r.headerType(),s=new e(n,i,a);return s._createHeader=Wu(r,a),s}static encode(e){let t=new Nu,r=-1;return e.isSchema()?r=de.encode(t,e.header()):e.isRecordBatch()?r=Ge.encode(t,e.header()):e.isDictionaryBatch()&&(r=$e.encode(t,e.header())),wt.startMessage(t),wt.addVersion(t,ce.V5),wt.addHeader(t,r),wt.addHeaderType(t,e.headerType),wt.addBodyLength(t,BigInt(e.bodyLength)),wt.finishMessageBuffer(t,wt.endMessage(t)),t.asUint8Array()}static from(t,r=0){if(t instanceof de)return new e(0,ce.V5,ie.Schema,t);if(t instanceof Ge)return new e(r,ce.V5,ie.RecordBatch,t);if(t instanceof $e)return new e(r,ce.V5,ie.DictionaryBatch,t);throw new Error("Unrecognized Message header: ".concat(t))}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===ie.Schema}isRecordBatch(){return this.headerType===ie.RecordBatch}isDictionaryBatch(){return this.headerType===ie.DictionaryBatch}constructor(e,t,r,n){this._version=t,this._headerType=r,this.body=new Uint8Array(0),n&&(this._createHeader=()=>n),this._bodyLength=ae(e)}},Ge=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,r){this._nodes=t,this._buffers=r,this._length=ae(e)}},$e=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,r=!1){this._data=e,this._isDelta=r,this._id=ae(t)}},qe=class{constructor(e,t){this.offset=ae(e),this.length=ae(t)}},_t=class{constructor(e,t){this.length=ae(e),this.nullCount=ae(t)}};function Hu(e,t){return()=>{switch(t){case ie.Schema:return de.fromJSON(e);case ie.RecordBatch:return Ge.fromJSON(e);case ie.DictionaryBatch:return $e.fromJSON(e)}throw new Error("Unrecognized Message type: { name: ".concat(ie[t],", type: ").concat(t," }"))}}function Wu(e,t){return()=>{switch(t){case ie.Schema:return de.decode(e.header(new ze),new Map,e.version());case ie.RecordBatch:return Ge.decode(e.header(new Qe),e.version());case ie.DictionaryBatch:return $e.decode(e.header(new Wt),e.version())}throw new Error("Unrecognized Message type: { name: ".concat(ie[t],", type: ").concat(t," }"))}}function Uu(e,t=new Map,r=ce.V5){let n=Xu(e,t);return new de(n,Zs(e),t,r)}function Vu(e,t=ce.V5){if(null!==e.compression())throw new Error("Record batch compression not implemented");return new Ge(e.length(),$u(e),Ju(e,t))}function zu(e,t=ce.V5){return new $e(Ge.decode(e.data(),t),e.id(),e.isDelta())}function ju(e){return new qe(e.offset(),e.length())}function qu(e){return new _t(e.length(),e.nullCount())}function $u(e){let t=[];for(let r,n=-1,i=-1,a=e.nodesLength();++nne.encode(e,t)));ze.startFieldsVector(e,r.length);let n=ze.createFieldsVector(e,r),i=t.metadata&&t.metadata.size>0?ze.createCustomMetadataVector(e,[...t.metadata].map((([t,r])=>{let n=e.createString("".concat(t)),i=e.createString("".concat(r));return Fe.startKeyValue(e),Fe.addKey(e,n),Fe.addValue(e,i),Fe.endKeyValue(e)}))):-1;return ze.startSchema(e),ze.addFields(e,n),ze.addEndianness(e,nd?mr.Little:mr.Big),-1!==i&&ze.addCustomMetadata(e,i),ze.endSchema(e)}function Qu(e,t){let r=-1,n=-1,i=-1,a=t.type,s=t.typeId;k.isDictionary(a)?(s=a.dictionary.typeId,i=Ys.visit(a,e),n=Ys.visit(a.dictionary,e)):n=Ys.visit(a,e);let o=(a.children||[]).map((t=>ne.encode(e,t))),_=Ce.createChildrenVector(e,o),l=t.metadata&&t.metadata.size>0?Ce.createCustomMetadataVector(e,[...t.metadata].map((([t,r])=>{let n=e.createString("".concat(t)),i=e.createString("".concat(r));return Fe.startKeyValue(e),Fe.addKey(e,n),Fe.addValue(e,i),Fe.endKeyValue(e)}))):-1;return t.name&&(r=e.createString(t.name)),Ce.startField(e),Ce.addType(e,n),Ce.addTypeType(e,s),Ce.addChildren(e,_),Ce.addNullable(e,!!t.nullable),-1!==r&&Ce.addName(e,r),-1!==i&&Ce.addDictionary(e,i),-1!==l&&Ce.addCustomMetadata(e,l),Ce.endField(e)}function Zu(e,t){let r=t.nodes||[],n=t.buffers||[];Qe.startNodesVector(e,r.length);for(let t of r.slice().reverse())_t.encode(e,t);let i=e.endVector();Qe.startBuffersVector(e,n.length);for(let t of n.slice().reverse())qe.encode(e,t);let a=e.endVector();return Qe.startRecordBatch(e),Qe.addLength(e,BigInt(t.length)),Qe.addNodes(e,i),Qe.addBuffers(e,a),Qe.endRecordBatch(e)}function ed(e,t){let r=Ge.encode(e,t.data);return Wt.startDictionaryBatch(e),Wt.addId(e,BigInt(t.id)),Wt.addIsDelta(e,t.isDelta),Wt.addData(e,r),Wt.endDictionaryBatch(e)}function td(e,t){return nn.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function rd(e,t){return rn.createBuffer(e,BigInt(t.offset),BigInt(t.length))}ne.encode=Qu,ne.decode=Ku,ne.fromJSON=pl,de.encode=Yu,de.decode=Uu,de.fromJSON=cl,Ge.encode=Zu,Ge.decode=Vu,Ge.fromJSON=_o,$e.encode=ed,$e.decode=zu,$e.fromJSON=ul,_t.encode=td,_t.decode=qu,qe.encode=rd,qe.decode=ju;var nd=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]})(),co=e=>"Expected ".concat(ie[e]," Message in stream, but was null or length 0."),uo=e=>"Header pointer of flatbuffer-encoded ".concat(ie[e]," Message is null or length 0."),vl=(e,t)=>"Expected to read ".concat(e," metadata bytes, but only read ").concat(t,"."),El=(e,t)=>"Expected to read ".concat(e," bytes for message body, but only read ").concat(t,"."),Sn=class{constructor(e){this.source=e instanceof Nt?e:new Nt(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||-1===e.value&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?Ee:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(co(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let t=j(this.source.read(e));if(t.byteLength[...t,...r.VALIDITY&&[r.VALIDITY]||[],...r.TYPE_ID&&[r.TYPE_ID]||[],...r.OFFSET&&[r.OFFSET]||[],...r.DATA&&[r.DATA]||[],...e(r.children)]),[])}(this._body)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(co(e));return t.value}readSchema(){let e=ie.Schema,t=this.readMessage(e),r=null==t?void 0:t.header();if(!t||!r)throw new Error(uo(e));return r}},ea=4,lo="ARROW1",An=new Uint8Array(lo.length);for(let e=0;ethis)):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Oe.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Oe.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof e?t:Mi(t)?sd(t):Fi(t)?_d(t):ut(t)?O(this,void 0,void 0,(function*(){return yield e.from(yield t)})):Bi(t)||Rn(t)||Oi(t)||rt(t)?od(new at(t)):ad(new Nt(t))}static readAll(t){return t instanceof e?t.isSync()?bl(t):Sl(t):Mi(t)||ArrayBuffer.isView(t)||dt(t)||Ri(t)?bl(t):Sl(t)}},Ht=class extends Ne{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Xe(this,arguments,(function*(){yield ee(yield*Fr(en(ct(this[Symbol.iterator]()))))}))}},Ir=class extends Ne{constructor(e){super(e),this._impl=e}readAll(){return O(this,void 0,void 0,(function*(){var e,t,r,n;let i=new Array;try{for(var a,s=!0,o=ct(this);!(e=(a=yield o.next()).done);s=!0){n=a.value,s=!1;let e=n;i.push(e)}}catch(e){t={error:e}}finally{try{!s&&!e&&(r=o.return)&&(yield r.call(o))}finally{if(t)throw t.error}}return i}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},xr=class extends Ht{constructor(e){super(e),this._impl=e}},Ii=class extends Ir{constructor(e){super(e),this._impl=e}},ra=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){let r=this._loadVectors(e,t,this.schema.fields),n=Y({type:new ve(this.schema.fields),length:e.length,children:r});return new Te(this.schema,n)}_loadDictionaryBatch(e,t){let{id:r,isDelta:n}=e,{dictionaries:i,schema:a}=this,s=i.get(r),o=a.dictionaries.get(r),_=this._loadVectors(e.data,t,[o]);return(s&&n?s.concat(new se(_)):new se(_)).memoize()}_loadVectors(e,t,r){return new ri(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(r)}},wn=class extends ra{constructor(e,t){super(t),this._reader=Mi(e)?new Di(this._handle=e):new Sn(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=Al(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):Ee}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):Ee}next(){if(this.closed)return Ee;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),n=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,n)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),n=t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Jr(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Tn=class extends ra{constructor(e,t){super(t),this._reader=new Ti(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return O(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(e){return O(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=Al(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(e){return O(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):Ee}))}return(e){return O(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):Ee}))}next(){return O(this,void 0,void 0,(function*(){if(this.closed)return Ee;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),n=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,n)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),n=yield t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Jr(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(e){return O(this,void 0,void 0,(function*(){return yield this._reader.readMessage(e)}))}},na=class extends wn{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof Zn?e:new Zn(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();let r=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(r&&this._handle.seek(r.offset)){let e=this._reader.readMessage(ie.RecordBatch);if(null!=e&&e.isRecordBatch()){let t=e.header(),r=this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,r)}}return null}_readDictionaryBatch(e){var t;let r=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(r&&this._handle.seek(r.offset)){let e=this._reader.readMessage(ie.DictionaryBatch);if(null!=e&&e.isDictionaryBatch()){let t=e.header(),r=this._reader.readMessageBody(e.bodyLength),n=this._loadDictionaryBatch(t,r);this.dictionaries.set(t.id,n)}}}_readFooter(){let{_handle:e}=this,t=e.size-fo,r=e.readInt32(t),n=e.readAt(t-r,r);return ir.decode(n)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return O(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)}))}readRecordBatch(e){return O(this,void 0,void 0,(function*(){var t;if(this.closed)return null;this._footer||(yield this.open());let r=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(r&&(yield this._handle.seek(r.offset))){let e=yield this._reader.readMessage(ie.RecordBatch);if(null!=e&&e.isRecordBatch()){let t=e.header(),r=yield this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,r)}}return null}))}_readDictionaryBatch(e){return O(this,void 0,void 0,(function*(){var t;let r=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(r&&(yield this._handle.seek(r.offset))){let e=yield this._reader.readMessage(ie.DictionaryBatch);if(null!=e&&e.isDictionaryBatch()){let t=e.header(),r=yield this._reader.readMessageBody(e.bodyLength),n=this._loadDictionaryBatch(t,r);this.dictionaries.set(t.id,n)}}}))}_readFooter(){return O(this,void 0,void 0,(function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-fo,r=yield e.readInt32(t),n=yield e.readAt(t-r,r);return ir.decode(n)}))}_readNextMessageAndValidate(e){return O(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?ta(t)?new xr(new na(e.read())):new Ht(new wn(e)):new Ht(new wn(function*(){}()))}function od(e){return O(this,void 0,void 0,(function*(){let t=yield e.peek(Ln+7&-8);return t&&t.byteLength>=4?ta(t)?new xr(new na(yield e.read())):new Ir(new Tn(e)):new Ir(new Tn(function(){return Xe(this,arguments,(function*(){}))}()))}))}function _d(e){return O(this,void 0,void 0,(function*(){let{size:t}=yield e.stat(),r=new Dr(e,t);return t>=yl&&ta(yield r.readAt(0,Ln+7&-8))?new Ii(new po(r)):new Ir(new Tn(r))}))}var Ae=class e extends C{static assemble(...t){let r=e=>e.flatMap((e=>Array.isArray(e)?r(e):e instanceof Te?e.data.children:e.data)),n=new e;return n.visitMany(r(t)),n}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(e){if(e instanceof se)return this.visitMany(e.data),this;let{type:t}=e;if(!k.isDictionary(t)){let{length:r}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(k.isUnion(t))this.nodes.push(new _t(r,0));else{let{nullCount:n}=e;k.isNull(t)||Tt.call(this,n<=0?new Uint8Array(0):Gr(e.offset,r,e.nullBitmap)),this.nodes.push(new _t(r,n))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function Tt(e){let t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new qe(this._byteLength,t)),this._byteLength+=t,this}function ld(e){var t;let{type:r,length:n,typeIds:i,valueOffsets:a}=e;if(Tt.call(this,i),r.mode===he.Sparse)return ho.call(this,e);if(r.mode===he.Dense){if(e.offset<=0)return Tt.call(this,a),ho.call(this,e);{let s=new Int32Array(n),o=Object.create(null),_=Object.create(null);for(let e,r,l=-1;++l{let i=r.typeIds[t],a=o[i],s=_[i];return e.slice(a,Math.min(n,s))})))}}return this}function cd(e){let t;return e.nullCount>=e.length?Tt.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?Tt.call(this,Gr(e.offset,e.length,t)):Tt.call(this,Nr(e.values))}function dr(e){return Tt.call(this,e.values.subarray(0,e.length*e.stride))}function ia(e){let{length:t,values:r,valueOffsets:n}=e,i=ae(n[0]),a=ae(n[t]),s=Math.min(a-i,r.byteLength-i);return Tt.call(this,Gi(-i,t+1,n)),Tt.call(this,r.subarray(i,i+s)),this}function go(e){let{length:t,valueOffsets:r}=e;if(r){let{0:n,[t]:i}=r;return Tt.call(this,Gi(-n,t+1,r)),this.visit(e.children[0].slice(n,i-n))}return this.visit(e.children[0])}function ho(e){return this.visitMany(e.type.children.map(((t,r)=>e.children[r])).filter(Boolean))[0]}Ae.prototype.visitBool=cd,Ae.prototype.visitInt=dr,Ae.prototype.visitFloat=dr,Ae.prototype.visitUtf8=ia,Ae.prototype.visitLargeUtf8=ia,Ae.prototype.visitBinary=ia,Ae.prototype.visitLargeBinary=ia,Ae.prototype.visitFixedSizeBinary=dr,Ae.prototype.visitDate=dr,Ae.prototype.visitTimestamp=dr,Ae.prototype.visitTime=dr,Ae.prototype.visitDecimal=dr,Ae.prototype.visitList=go,Ae.prototype.visitStruct=ho,Ae.prototype.visitUnion=ld,Ae.prototype.visitInterval=dr,Ae.prototype.visitDuration=dr,Ae.prototype.visitFixedSizeList=go,Ae.prototype.visitMap=go;var Xr=class extends Wr{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}constructor(e){super(),this._position=0,this._started=!1,this._sink=new Gt,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,He(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!=typeof e.autoDestroy||e.autoDestroy,this._writeLegacyIpcFormat="boolean"==typeof e.writeLegacyIpcFormat&&e.writeLegacyIpcFormat}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return ut(e)?e.then((e=>this.writeAll(e))):rt(e)?Eo(this,e):vo(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,t=null){return e===this._sink||e instanceof Gt?this._sink=e:(this._sink=new Gt,e&&Co(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&Ho(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!t||!$r(t,this._schema))&&(null==t?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}write(e){let t=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==e)return this.finish()&&void 0;if(e instanceof Ve&&!(t=e.schema))return this.finish()&&void 0;if(e instanceof Te&&!(t=e.schema))return this.finish()&&void 0;if(t&&!$r(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof Te?e instanceof Jr||this._writeRecordBatch(e):e instanceof Ve?this.writeAll(e.batches):dt(e)&&this.writeAll(e)}_writeMessage(e,t=8){let r=t-1,n=Je.encode(e),i=n.byteLength,a=this._writeLegacyIpcFormat?4:8,s=i+a+r&~r,o=s-i-a;return e.headerType===ie.RecordBatch?this._recordBatchBlocks.push(new sr(s,e.bodyLength,this._position)):e.headerType===ie.DictionaryBatch&&this._dictionaryBlocks.push(new sr(s,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(s-a)),i>0&&this._write(n),this._writePadding(o)}_write(e){if(this._started){let t=j(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(Je.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(An)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:t,nodes:r,bufferRegions:n,buffers:i}=Ae.assemble(e),a=new Ge(e.numRows,r,n),s=Je.from(a,t);return this._writeDictionaries(e)._writeMessage(s)._writeBodyBuffers(i)}_writeDictionaryBatch(e,t,r=!1){let{byteLength:n,nodes:i,bufferRegions:a,buffers:s}=Ae.assemble(new se([e])),o=new Ge(e.length,i,a),_=new $e(o,t,r),l=Je.from(_,n);return this._writeMessage(l)._writeBodyBuffers(s)}_writeBodyBuffers(e){let t,r,n;for(let i=-1,a=e.length;++i0&&(this._write(t),(n=(r+7&-8)-r)>0&&this._writePadding(n));return this}_writeDictionaries(e){var t,r;for(let[n,i]of e.dictionaries){let e=null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[],a=this._seenDictionaries.get(n),s=null!==(r=this._dictionaryDeltaOffsets.get(n))&&void 0!==r?r:0;if(a&&a.data[0]===e[0]){if(s0);this._seenDictionaries.set(n,i),this._dictionaryDeltaOffsets.set(n,e.length)}return this}},Kr=class e extends Xr{static writeAll(t,r){let n=new e(r);return ut(t)?t.then((e=>n.writeAll(e))):rt(t)?Eo(n,t):vo(n,t)}},Yr=class e extends Xr{static writeAll(t){let r=new e;return ut(t)?t.then((e=>r.writeAll(e))):rt(t)?Eo(r,t):vo(r,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,t,r=!1){if(!r&&this._seenDictionaries.has(t))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(e,t,r)}_writeFooter(e){let t=ir.encode(new ir(e,ce.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}};function vo(e,t){let r=t;t instanceof Ve&&(r=t.batches,e.reset(void 0,t.schema));for(let t of r)e.write(t);return e.finish()}function Eo(e,t){return O(this,void 0,void 0,(function*(){var r,n,i,a,s,o,_;try{for(r=!0,n=ct(t);!(a=(i=yield n.next()).done);r=!0){_=i.value,r=!1;let t=_;e.write(t)}}catch(e){s={error:e}}finally{try{!r&&!a&&(o=n.return)&&(yield o.call(n))}finally{if(s)throw s.error}}return e.finish()}))}function Ll(e,t){if(rt(e))return dd(e,t);if(dt(e))return ud(e,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function ud(e,t){let r=null,n="bytes"===(null==t?void 0:t.type)||!1,i=(null==t?void 0:t.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(t){a(t,r||(r=e[Symbol.iterator]()))},pull(e){r?a(e,r):e.close()},cancel(){null!=r&&r.return&&r.return(),r=null}}),Object.assign({highWaterMark:n?i:void 0},t));function a(e,t){let r,i=null,a=e.desiredSize||null;for(;!(i=t.next(n?a:null)).done;)if(ArrayBuffer.isView(i.value)&&(r=j(i.value))&&(null!=a&&n&&(a=a-r.byteLength+1),i.value=r),e.enqueue(i.value),null!=a&&--a<=0)return;e.close()}}function dd(e,t){let r=null,n="bytes"===(null==t?void 0:t.type)||!1,i=(null==t?void 0:t.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(t){return O(this,void 0,void 0,(function*(){yield a(t,r||(r=e[Symbol.asyncIterator]()))}))},pull(e){return O(this,void 0,void 0,(function*(){r?yield a(e,r):e.close()}))},cancel(){return O(this,void 0,void 0,(function*(){null!=r&&r.return&&(yield r.return()),r=null}))}}),Object.assign({highWaterMark:n?i:void 0},t));function a(e,t){return O(this,void 0,void 0,(function*(){let r,i=null,a=e.desiredSize||null;for(;!(i=yield t.next(n?a:null)).done;)if(ArrayBuffer.isView(i.value)&&(r=j(i.value))&&(null!=a&&n&&(a=a-r.byteLength+1),i.value=r),e.enqueue(i.value),null!=a&&--a<=0)return;e.close()}))}}function Dl(e){return new yo(e)}var yo=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{readableStrategy:t,writableStrategy:r,queueingStrategy:n="count"}=e,i=Go(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Vr(i),this._getSize="bytes"!==n?wl:Tl;let{highWaterMark:a=("bytes"===n?Math.pow(2,14):1e3)}=Object.assign({},t),{highWaterMark:s=("bytes"===n?Math.pow(2,14):1e3)}=Object.assign({},r);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:e=>{this._maybeFlush(this._builder,this._controller=e)},start:e=>{this._maybeFlush(this._builder,this._controller=e)}},{highWaterMark:a,size:"bytes"!==n?wl:Tl}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:s,size:e=>this._writeValueAndReturnChunkSize(e)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){null!=t&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,null==t?e.close():e.enqueue(t)}},wl=e=>{var t;return null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0},Tl=e=>{var t;return null!==(t=null==e?void 0:e.byteLength)&&void 0!==t?t:0};function sa(e,t){let r=new Gt,n=null,i=new ReadableStream({cancel(){return O(this,void 0,void 0,(function*(){yield r.close()}))},start(e){return O(this,void 0,void 0,(function*(){yield a(e,n||(n=yield function(){return O(this,void 0,void 0,(function*(){return yield(yield Ne.from(r)).open(t)}))}()))}))},pull(e){return O(this,void 0,void 0,(function*(){n?yield a(e,n):e.close()}))}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},e)),readable:i};function a(e,t){return O(this,void 0,void 0,(function*(){let r=e.desiredSize,n=null;for(;!(n=yield t.next()).done;)if(e.enqueue(n.value),null!=r&&--r<=0)return;e.close()}))}}function aa(e,t){let r=new this(e),n=new at(r),i=new ReadableStream({cancel(){return O(this,void 0,void 0,(function*(){yield n.cancel()}))},pull(e){return O(this,void 0,void 0,(function*(){yield a(e)}))},start(e){return O(this,void 0,void 0,(function*(){yield a(e)}))}},Object.assign({highWaterMark:Math.pow(2,14)},t));return{writable:new WritableStream(r,e),readable:i};function a(e){return O(this,void 0,void 0,(function*(){let t=null,r=e.desiredSize;for(;t=yield n.read(r||null);)if(e.enqueue(t),null!=r&&(r-=t.byteLength)<=0)return;e.close()}))}}function oa(e,t="stream"){return("stream"===t?Kr:Yr).writeAll(e).toUint8Array(!0)}var hd=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ra),ro),$a),Fa),La),qa),Da),{compareSchemas:$r,compareFields:tl,compareTypes:rl});function Dn(e){switch(e.typeId){case v.Binary:return{sqlType:"binary"};case v.Bool:return{sqlType:"bool"};case v.Date:return{sqlType:"date"};case v.DateDay:return{sqlType:"date32[d]"};case v.DateMillisecond:return{sqlType:"date64[ms]"};case v.Decimal:{let t=e;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case v.Float:return{sqlType:"float"};case v.Float16:return{sqlType:"float16"};case v.Float32:return{sqlType:"float32"};case v.Float64:return{sqlType:"float64"};case v.Int:return{sqlType:"int32"};case v.Int16:return{sqlType:"int16"};case v.Int32:return{sqlType:"int32"};case v.Int64:return{sqlType:"int64"};case v.Uint16:return{sqlType:"uint16"};case v.Uint32:return{sqlType:"uint32"};case v.Uint64:return{sqlType:"uint64"};case v.Uint8:return{sqlType:"uint8"};case v.IntervalDayTime:return{sqlType:"interval[dt]"};case v.IntervalYearMonth:return{sqlType:"interval[m]"};case v.List:return{sqlType:"list",valueType:Dn(e.valueType)};case v.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:e.byteWidth};case v.Null:return{sqlType:"null"};case v.Utf8:return{sqlType:"utf8"};case v.Struct:return{sqlType:"struct",fields:e.children.map((e=>_a(e.name,e.type)))};case v.Map:{let t=e;return{sqlType:"map",keyType:Dn(t.keyType),valueType:Dn(t.valueType)}}case v.Time:return{sqlType:"time[s]"};case v.TimeMicrosecond:return{sqlType:"time[us]"};case v.TimeMillisecond:return{sqlType:"time[ms]"};case v.TimeNanosecond:return{sqlType:"time[ns]"};case v.TimeSecond:return{sqlType:"time[s]"};case v.Timestamp:return{sqlType:"timestamp",timezone:e.timezone||void 0};case v.TimestampSecond:return{sqlType:"timestamp[s]",timezone:e.timezone||void 0};case v.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:e.timezone||void 0};case v.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:e.timezone||void 0};case v.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error("unsupported arrow type: ".concat(e.toString()))}function _a(e,t){let r=Dn(t);return r.name=e,r}Oe.toDOMStream=Ll,be.throughDOM=Dl,Ne.throughDOM=sa,xr.throughDOM=sa,Ht.throughDOM=sa,Xr.throughDOM=aa,Yr.throughDOM=aa,Kr.throughDOM=aa;var la=class{constructor(){this._bindings=null,this._nextMessageId=0}log(e){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:e},[])}sendOK(e){this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"OK",data:null},[])}failWith(e,t){let r={name:t.name,message:t.message,stack:t.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"ERROR",data:r},[])}async onMessage(e){switch(e.type){case"PING":return void this.sendOK(e);case"INSTANTIATE":null!=this._bindings&&this.failWith(e,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(e.data[0],e.data[1],(t=>{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"INSTANTIATE_PROGRESS",data:t},[])})),this.sendOK(e)}catch(t){console.log(t),this._bindings=null,this.failWith(e,t)}return}if(!this._bindings)return this.failWith(e,new Error("duckdb is not initialized"));try{switch(e.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(e);break;case"OPEN":this._bindings.open(e.data),this.sendOK(e);break;case"DROP_FILE":this._bindings.dropFile(e.data),this.sendOK(e);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(e);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(e);break;case"CONNECT":{let t=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"CONNECTION_INFO",data:t.useUnsafe(((e,t)=>t))},[]);break}case"DISCONNECT":this._bindings.disconnect(e.data),this.sendOK(e);break;case"CREATE_PREPARED":{let t=this._bindings.createPrepared(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"PREPARED_STATEMENT_ID",data:t},[]);break}case"CLOSE_PREPARED":this._bindings.closePrepared(e.data[0],e.data[1]),this.sendOK(e);break;case"RUN_PREPARED":{let t=this._bindings.runPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:t},[t.buffer]);break}case"RUN_QUERY":{let t=this._bindings.runQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:t},[t.buffer]);break}case"SEND_PREPARED":{let t=this._bindings.sendPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER",data:t},[t.buffer]);break}case"START_PENDING_QUERY":{let t=this._bindings.startPendingQuery(e.data[0],e.data[1],e.data[2]),r=[];t&&r.push(t.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:t},r);break}case"POLL_PENDING_QUERY":{let t=this._bindings.pollPendingQuery(e.data),r=[];t&&r.push(t.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:t},r);break}case"CANCEL_PENDING_QUERY":{let t=this._bindings.cancelPendingQuery(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SUCCESS",data:t},[]);break}case"FETCH_QUERY_RESULTS":{let t=this._bindings.fetchQueryResults(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_CHUNK",data:t},[t.buffer]);break}case"GET_TABLE_NAMES":{let t=this._bindings.getTableNames(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"TABLE_NAMES",data:t},[]);break}case"GLOB_FILE_INFOS":{let t=this._bindings.globFiles(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_INFOS",data:t},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(e.data[0],e.data[1],e.data[2],e.data[3]),this.sendOK(e);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(e.data[0],e.data[1]),this.sendOK(e);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(e.data[0],e.data[1],e.data[2],e.data[3]),this.sendOK(e);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(e.data[0],e.data[1]),this.sendOK(e);break;case"COPY_FILE_TO_BUFFER":{let t=this._bindings.copyFileToBuffer(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_BUFFER",data:t},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(e.data[0],e.data[1]),this.sendOK(e);break;case"EXPORT_FILE_STATISTICS":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(e.data)},[]);break;case"INSERT_ARROW_FROM_IPC_STREAM":this._bindings.insertArrowFromIPCStream(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"IMPORT_CSV_FROM_PATH":this._bindings.insertCSVFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"IMPORT_JSON_FROM_PATH":this._bindings.insertJSONFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"TOKENIZE":{let t=this._bindings.tokenize(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SCRIPT_TOKENS",data:t},[]);break}}}catch(t){return console.log(t),this.failWith(e,t)}}},Gl=Oo(Fl()),ca=class{constructor(e,t){this._bindings=e,this._conn=t}close(){this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}query(e){let t=this._bindings.runQuery(this._conn,e),r=Ne.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),new Ve(r)}async send(e,t=!1){let r=this._bindings.startPendingQuery(this._conn,e,t);for(;null==r;)r=await new Promise(((e,t)=>{try{e(this._bindings.pollPendingQuery(this._conn))}catch(e){console.log(e),t(e)}}));let n=new ua(this._bindings,this._conn,r),i=Ne.from(n);return console.assert(i.isSync()),console.assert(i.isStream()),i}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(e){return this._bindings.getTableNames(this._conn,e)}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new wo(this._bindings,this._conn,t)}createScalarFunction(e,t,r){this._bindings.createScalarFunction(this._conn,e,t,r)}insertArrowTable(e,t){let r=oa(e,"stream");this.insertArrowFromIPCStream(r,t)}insertArrowFromIPCStream(e,t){this._bindings.insertArrowFromIPCStream(this._conn,e,t)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}},ua=class{constructor(e,t,r){this.bindings=e,this.conn=t,this.header=r,this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=0==e.length,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},wo=class{constructor(e,t,r){this.bindings=e,this.connectionId=t,this.statementId=r}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...e){let t=this.bindings.runPrepared(this.connectionId,this.statementId,e),r=Ne.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),new Ve(r)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),r=new ua(this.bindings,this.connectionId,t),n=Ne.from(r);return console.assert(n.isSync()),console.assert(n.isStream()),n}},Ol=new TextEncoder,Bl=new TextDecoder("utf-8");function To(e,t,r){let n=Ol.encode(r),i=e._malloc(n.byteLength),a=e.HEAPU8.subarray(i,i+n.byteLength);a.set(n),e.HEAPF64[0+(t>>3)]=1,e.HEAPF64[1+(t>>3)]=i,e.HEAPF64[2+(t>>3)]=a.byteLength}function Io(e){switch(e){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function Do(e,t,r,n){let i=e.HEAPU8.subarray(t,t+n*Io(r));switch(r){case"UINT8":return new Uint8Array(i.buffer,i.byteOffset,n);case"INT8":return new Int8Array(i.buffer,i.byteOffset,n);case"INT32":return new Int32Array(i.buffer,i.byteOffset,n);case"FLOAT":return new Float32Array(i.buffer,i.byteOffset,n);case"DOUBLE":case"VARCHAR":return new Float64Array(i.buffer,i.byteOffset,n);default:return new Array(0)}}function Pl(e,t,r){let n=e.HEAPU8.subarray(t,t+r);return new Uint8Array(n.buffer,n.byteOffset,r)}function da(e,t,r){let n=e.HEAPU8.subarray(t,t+8*r);return new Float64Array(n.buffer,n.byteOffset,r)}function kl(e,t,r,n,i,a,s,o){try{let _=e._udfFunctions.get(n);if(!_)return void To(t,r,"Unknown UDF with id: "+n);let l=Bl.decode(t.HEAPU8.subarray(i,i+a)),c=JSON.parse(l),u=da(t,s,o/8),d=e=>{var r;let n=null;switch(void 0!==e.validityBuffer&&(n=Pl(t,u[e.validityBuffer],c.rows)),e.physicalType){case"VARCHAR":{if(null===e.dataBuffer||void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(null===e.lengthBuffer||void 0===e.lengthBuffer)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let r=Do(t,u[e.dataBuffer],e.physicalType,c.rows),i=[],a=da(t,u[e.lengthBuffer],c.rows);for(let e=0;ei[e]}case"STRUCT":{let t={},i=[];for(let n=0;n<((null==(r=e.children)?void 0:r.length)||0);++n){let r=e.children[n],a=d(r);i.push((e=>{t[r.name]=a(e)}))}return null!=n?e=>{if(!n[e])return null;for(let t of i)t(e);return t}:e=>{for(let t of i)t(e);return t}}default:{if(void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for argument of type: "+e.physicalType);let r=Do(t,u[e.dataBuffer],e.physicalType,c.rows);return null!=n?e=>n[e]?r[e]:null:e=>r[e]}}},p=[];for(let e=0;e>3)]=0,t.HEAPF64[1+(r>>3)]=A,t.HEAPF64[2+(r>>3)]=0}catch(e){To(t,r,e.toString())}}function vd(){let e=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),e.decode(t))}var Ed=vd();function lt(e,t){console.error("FAIL WITH: ".concat(t)),e.ccall("duckdb_web_fail_with",null,["string"],[t])}function Qr(e,t,r){let n=e.HEAPU8.subarray(t,t+r),i=new Uint8Array(new ArrayBuffer(n.byteLength));return i.set(n),i}function te(e,t,r){return Ed(e.HEAPU8.subarray(t,t+r))}function fe(e,t,r,n){let i=e.stackSave(),a=e.stackAlloc(24);r.unshift("number"),n.unshift(a),e.ccall(t,null,r,n);let s=e.HEAPF64[0+(a>>3)],o=e.HEAPF64[1+(a>>3)],_=e.HEAPF64[2+(a>>3)];return e.stackRestore(i),[s,o,_]}function ye(e){e.ccall("duckdb_web_clear_response",null,[],[])}var fa=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),r=new Uint8Array(new ArrayBuffer(e.byteLength));r.set(e.subarray(56)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=r}getBlockStats(e,t){return(t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0}).file_writes=15&this.blockStats[3*e+0],t.file_reads_cold=this.blockStats[3*e+0]>>4,t.file_reads_ahead=15&this.blockStats[3*e+1],t.file_reads_cached=this.blockStats[3*e+1]>>4,t.page_accesses=15&this.blockStats[3*e+1],t.page_loads=this.blockStats[3*e+1]>>4,t}},In=new TextEncoder,pa=class{constructor(e,t){this._instance=null,this._initPromise=null,this._initPromiseResolver=()=>{},this.onInstantiationProgress=[],this._logger=e,this._runtime=t,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(e=(e=>{})){return null!=this._instance||(null!=this._initPromise&&(this.onInstantiationProgress.push(e),await this._initPromise),this._initPromise=new Promise((e=>{this._initPromiseResolver=e})),this.onInstantiationProgress=[e],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter((t=>t!=e)),globalThis.DUCKDB_BINDINGS=this),this}open(e){let[t,r,n]=fe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(0!==t)throw new Error(te(this.mod,r,n));ye(this.mod)}reset(){let[e,t,r]=fe(this.mod,"duckdb_web_reset",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));ye(this.mod)}getVersion(){let[e,t,r]=fe(this.mod,"duckdb_web_get_version",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));let n=te(this.mod,t,r);return ye(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let t=In.encode(e),r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[n,i,a]=fe(this.mod,"duckdb_web_tokenize_buffer",["number","number"],[r,t.length]);if(this.mod._free(r),0!==n)throw new Error(te(this.mod,i,a));let s=te(this.mod,i,a);return ye(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new ca(this,e)}disconnect(e){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[e]),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"dropUDFFunctions",connectionId:e})}runQuery(e,t){let r=In.encode(t),n=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(n,n+r.length).set(r);let[i,a,s]=fe(this.mod,"duckdb_web_query_run_buffer",["number","number","number"],[e,n,r.length]);if(this.mod._free(n),0!==i)throw new Error(te(this.mod,a,s));let o=Qr(this.mod,a,s);return ye(this.mod),o}startPendingQuery(e,t,r=!1){let n=In.encode(t),i=this.mod._malloc(n.length);this.mod.HEAPU8.subarray(i,i+n.length).set(n);let[a,s,o]=fe(this.mod,"duckdb_web_pending_query_start_buffer",["number","number","number","boolean"],[e,i,n.length,r]);if(this.mod._free(i),0!==a)throw new Error(te(this.mod,s,o));if(0==s)return null;let _=Qr(this.mod,s,o);return ye(this.mod),_}pollPendingQuery(e){let[t,r,n]=fe(this.mod,"duckdb_web_pending_query_poll",["number"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));if(0==r)return null;let i=Qr(this.mod,r,n);return ye(this.mod),i}cancelPendingQuery(e){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[e])}fetchQueryResults(e){let[t,r,n]=fe(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));let i=Qr(this.mod,r,n);return ye(this.mod),i}getTableNames(e,t){let r=In.encode(t),n=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(n,n+r.length).set(r);let[i,a,s]=fe(this.mod,"duckdb_web_get_tablenames_buffer",["number","number","number"],[e,n,r.length]);if(this.mod._free(n),0!==i)throw new Error(te(this.mod,a,s));let o=te(this.mod,a,s);return ye(this.mod),JSON.parse(o)}createScalarFunction(e,t,r,n){let i={functionId:this._nextUDFId,name:t,returnType:Dn(r)},a={functionId:i.functionId,connectionId:e,name:t,returnType:r,func:n};this._nextUDFId+=1;let[s,o,_]=fe(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[e,JSON.stringify(i)]);if(0!==s)throw new Error(te(this.mod,o,_));if(ye(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(a.functionId,a),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"registerUDFFunction",udf:a})}createPrepared(e,t){let r=In.encode(t),n=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(n,n+r.length).set(r);let[i,a,s]=fe(this.mod,"duckdb_web_prepared_create_buffer",["number","number","number"],[e,n,r.length]);if(this.mod._free(n),0!==i)throw new Error(te(this.mod,a,s));return ye(this.mod),a}closePrepared(e,t){let[r,n,i]=fe(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(0!==r)throw new Error(te(this.mod,n,i));ye(this.mod)}runPrepared(e,t,r){let[n,i,a]=fe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(r)]);if(0!==n)throw new Error(te(this.mod,i,a));let s=Qr(this.mod,i,a);return ye(this.mod),s}sendPrepared(e,t,r){let[n,i,a]=fe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(r)]);if(0!==n)throw new Error(te(this.mod,i,a));let s=Qr(this.mod,i,a);return ye(this.mod),s}insertArrowFromIPCStream(e,t,r){if(0==t.length)return;let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let i=r?JSON.stringify(r):"",[a,s,o]=fe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,i]);if(0!==a)throw new Error(te(this.mod,s,o))}insertCSVFromPath(e,t,r){if(void 0!==r.columns){r.columnsFlat=[];for(let e in r.columns)r.columnsFlat.push(_a(e,r.columns[e]))}let n={...r};n.columns=n.columnsFlat,delete n.columnsFlat;let i=JSON.stringify(n),[a,s,o]=fe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,i]);if(0!==a)throw new Error(te(this.mod,s,o))}insertJSONFromPath(e,t,r){if(void 0!==r.columns){r.columnsFlat=[];for(let e in r.columns)r.columnsFlat.push(_a(e,r.columns[e]))}let n={...r};n.columns=n.columnsFlat,delete n.columnsFlat;let i=JSON.stringify(n),[a,s,o]=fe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,i]);if(0!==a)throw new Error(te(this.mod,s,o))}globFiles(e){let[t,r,n]=fe(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));let i=te(this.mod,r,n);ye(this.mod);let a=JSON.parse(i);return null==a?[]:a}registerFileURL(e,t,r,n=!1){void 0===t&&(t=e);let[i,a,s]=fe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t,r,n]);if(0!==i)throw new Error(te(this.mod,a,s));ye(this.mod)}registerFileText(e,t){let r=In.encode(t);this.registerFileBuffer(e,r)}registerFileBuffer(e,t){let r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[n,i,a]=fe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,r,t.length]);if(0!==n)throw new Error(te(this.mod,i,a));ye(this.mod)}registerFileHandle(e,t,r,n){let[i,a,s]=fe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[e,e,r,n]);if(0!==i)throw new Error(te(this.mod,a,s));if(ye(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let r of this.pthread.runningWorkers)r.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let t of this.pthread.unusedWorkers)t.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){let[t,r,n]=fe(this.mod,"duckdb_web_fs_drop_file",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));ye(this.mod)}dropFiles(){let[e,t,r]=fe(this.mod,"duckdb_web_fs_drop_files",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));ye(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[r,n,i]=fe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(0!==r)throw new Error(te(this.mod,n,i));ye(this.mod)}copyFileToBuffer(e){let[t,r,n]=fe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));let i=this.mod.HEAPU8.subarray(r,r+n),a=new Uint8Array(i.length);return a.set(i),ye(this.mod),a}collectFileStatistics(e,t){let[r,n,i]=fe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(0!==r)throw new Error(te(this.mod,n,i))}exportFileStatistics(e){let[t,r,n]=fe(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));return new fa(this.mod.HEAPU8.subarray(r,r+n))}},ma=class extends pa{constructor(e,t,r,n){super(e,t),this.mainModuleURL=r,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error("WASM instantiation requested unexpected file: prefix=".concat(t," path=").concat(e))}instantiateWasm(e,t){globalThis.DUCKDB_RUNTIME=this._runtime;let r=this.onInstantiationProgress;if(WebAssembly.instantiateStreaming)if("function"==typeof TransformStream){let n=(async()=>{var e;let t=new Request(this.mainModuleURL),n=await fetch(t),i=n.headers.get("content-length"),a=i&&parseInt(i,10)||0,s=new Date,o={startedAt:s,updatedAt:s,bytesTotal:a||0,bytesLoaded:0},_=new TransformStream({transform(e,t){o.bytesLoaded+=e.byteLength;let n=new Date;if(n.getTime()-o.updatedAt.getTime()<20)return o.updatedAt=n,void t.enqueue(e);for(let e of r)e(o);t.enqueue(e)}});return new Response(null==(e=n.body)?void 0:e.pipeThrough(_),n)})();WebAssembly.instantiateStreaming(n,e).then((e=>{t(e.instance,e.module)}))}else{console.warn("instantiating without progress handler since transform streams are unavailable");let r=new Request(this.mainModuleURL);WebAssembly.instantiateStreaming(fetch(r),e).then((e=>{t(e.instance,e.module)}))}else if("function"==typeof XMLHttpRequest){let n=new XMLHttpRequest,i=this.mainModuleURL,a=new Date,s={startedAt:a,updatedAt:a,bytesTotal:0,bytesLoaded:0};n.open("GET",i),n.responseType="arraybuffer",n.onerror=e=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+e}),new Error(e.toString())},n.onprogress=e=>{s.bytesTotal=e.total,s.bytesLoaded=e.loaded;let t=new Date;if(t.getTime()-s.updatedAt.getTime()<20)s.updatedAt=t;else for(let e of r)e(s)},n.onload=()=>{WebAssembly.instantiate(n.response,e).then((e=>{t(e.instance,e.module)})).catch((e=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+e}),new Error(e)}))},n.send()}else console.warn("instantiating with manual fetch since streaming instantiation and xhrs are unavailable"),(async()=>{let r=new Request(this.mainModuleURL),n=await(await fetch(r)).arrayBuffer();WebAssembly.instantiate(n,e).then((e=>{t(e.instance,e.module)}))})();return[]}},ha=class extends ma{constructor(e,t,r,n=null){super(e,t,r,n)}instantiateImpl(e){return(0,Gl.default)({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}},Mr=Oo(Hl()),Wl=function(e,t,r){var n;if(null!=(n=null==e?void 0:e.endpoint)&&n.startsWith("http")){let t="".concat(null==e?void 0:e.endpoint),r=t.indexOf("://")+3;return t.substring(r)}return null!=e&&e.endpoint?"".concat(r,".").concat(null==e?void 0:e.endpoint):"".concat(r,".s3.amazonaws.com")};function yd(e,t,r){var n,i,a,s;let o=Ul(t),_=o.path;return Vl(e)&&(_="/".concat(o.bucket).concat(_)),{url:_,query:"",host:Wl(e,t,o.bucket),region:null!=(n=null==e?void 0:e.region)?n:"",service:"s3",method:r,accessKeyId:null!=(i=null==e?void 0:e.accessKeyId)?i:"",secretAccessKey:null!=(a=null==e?void 0:e.secretAccessKey)?a:"",sessionToken:null!=(s=null==e?void 0:e.sessionToken)?s:"",dateNow:(new Date).toISOString().replace(/-/g,"").split("T")[0],datetimeNow:(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function bd(e,t=!1){let r="0123456789ABCDEF",n="";for(let i=0;i="A"&&a<="Z"||a>="a"&&a<="z"||a>="0"&&a<="9"||"_"==a||"-"==a||"~"==a||"."==a?n+=a:"/"==a?n+=t?"%2F":a:(n+="%",n+=r[a.charCodeAt(0)>>4],n+=r[15&a.charCodeAt(0)])}return n}function Sd(e,t=null){var r;let n=null!=(r=null==t?void 0:t.contentHash)?r:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",i=new Map;i.set("x-amz-date",e.datetimeNow),i.set("x-amz-content-sha256",n),e.sessionToken&&i.set("x-amz-security-token",e.sessionToken);let a="";null!=t&&t.contentType&&(a+="content-type;"),a+="host;x-amz-content-sha256;x-amz-date",e.sessionToken&&(a+=";x-amz-security-token");let s=e.method+"\n"+bd(e.url)+"\n"+e.query;null!=t&&t.contentType&&(s+="\ncontent-type:"+(null==t?void 0:t.contentType)),s+="\nhost:"+e.host+"\nx-amz-content-sha256:"+n+"\nx-amz-date:"+e.datetimeNow,e.sessionToken&&e.sessionToken.length>0&&(s+="\nx-amz-security-token:"+e.sessionToken),s+="\n\n"+a+"\n"+n;let o=(0,Mr.sha256)(s),_="AWS4-HMAC-SHA256\n"+e.datetimeNow+"\n"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request\n"+o,l="AWS4"+e.secretAccessKey,c=Mr.sha256.hmac.arrayBuffer(l,e.dateNow),u=Mr.sha256.hmac.arrayBuffer(c,e.region),d=Mr.sha256.hmac.arrayBuffer(u,e.service),p=Mr.sha256.hmac.arrayBuffer(d,"aws4_request"),m=Mr.sha256.hmac(p,_);return i.set("Authorization","AWS4-HMAC-SHA256 Credential="+e.accessKeyId+"/"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request, SignedHeaders="+a+", Signature="+m),i}var Ad=function(e,t,r,n=null,i=null){return Sd(yd(e,t,r),{contentType:n,contentHash:i?Mr.sha256.hex(i):null})};function Dt(e,t,r,n,i=null,a=null){(null!=t&&t.accessKeyId||null!=t&&t.sessionToken)&&(Ad(t,r,n,i,a).forEach(((t,r)=>{e.setRequestHeader(r,t)})),i&&e.setRequestHeader("content-type",i))}function Ul(e){if(0!=e.indexOf("s3://"))throw new Error("URL needs to start with s3://");let t=e.indexOf("/",5);if(-1==t)throw new Error("URL needs to contain a '/' after the host");let r=e.substring(5,t);if(!r)throw new Error("URL needs to contain a bucket name");let n=e.substring(t);if(!n)throw new Error("URL needs to contain key");return{bucket:r,path:n}}function Vl(e){var t;return!(null==(t=null==e?void 0:e.endpoint)||!t.startsWith("http"))}function It(e,t){let r=Ul(t);return Vl(e)?"".concat(null==e?void 0:e.endpoint,"/").concat(r.bucket)+r.path:"https://"+Wl(e,t,r.bucket)+r.path}var _e={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(e,t){try{let r=_e._fileInfoCache.get(t),[n,i,a]=fe(e,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(null==r?void 0:r.cacheEpoch)||0]);if(0!==n)return null;if(0===a)return r;let s=te(e,i,a);ye(e);try{let e=JSON.parse(s);if(null==e)return null;let r={...e,blob:null};return _e._fileInfoCache.set(t,r),r}catch(e){return console.warn(e),null}}catch(e){return console.log(e),null}},getGlobalFileInfo(e){var t;try{let[r,n,i]=fe(e,"duckdb_web_get_global_file_info",["number"],[(null==(t=_e._globalFileInfo)?void 0:t.cacheEpoch)||0]);if(0!==r)return null;if(0===i)return _e._globalFileInfo;let a=te(e,n,i);ye(e);let s=JSON.parse(a);return null==s?null:(_e._globalFileInfo={...s,blob:null},_e._globalFileInfo)}catch(e){return console.log(e),null}},testPlatformFeature:(e,t)=>1===t?typeof BigInt64Array<"u":(console.warn("test for unknown feature: ".concat(t)),!1),getDefaultDataProtocol:e=>2,openFile:(e,t,r)=>{var n,i;try{_e._fileInfoCache.delete(t);let a=_e.getFileInfo(e,t);switch(null==a?void 0:a.dataProtocol){case 4:case 5:{if(1&r&&2&r)throw new Error("Opening file ".concat(a.fileName," failed: cannot open file with both read and write flags set"));if(32&r)throw new Error("Opening file ".concat(a.fileName," failed: appending to HTTP/S3 files is not supported"));if(2&r){let t=new XMLHttpRequest;if(5==a.dataProtocol?(t.open("HEAD",It(a.s3Config,a.dataUrl),!1),Dt(t,a.s3Config,a.dataUrl,"HEAD")):t.open("HEAD",a.dataUrl,!1),t.send(null),200!=t.status&&404!=t.status)throw new Error("Opening file ".concat(a.fileName," failed: Unexpected return status from server (").concat(t.status,")"));if(404==t.status&&!(8&r||16&r))throw new Error("Opening file ".concat(a.fileName," failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag."));let n=e._malloc(1),i=new Uint8Array;e.HEAPU8.set(i,n);let s=e._malloc(16);return e.HEAPF64[0+(s>>3)]=1,e.HEAPF64[1+(s>>3)]=n,s}if(!(1&r))throw new Error("Opening file ".concat(a.fileName," failed: unsupported file flags: ").concat(r));let t=null,i=null;if(a.reliableHeadRequests||!a.allowFullHttpReads)try{let r=new XMLHttpRequest;if(5==a.dataProtocol?(r.open("HEAD",It(a.s3Config,a.dataUrl),!1),Dt(r,a.s3Config,a.dataUrl,"HEAD")):r.open("HEAD",a.dataUrl,!1),r.setRequestHeader("Range","bytes=0-"),r.send(null),t=r.getResponseHeader("Content-Length"),null!==t&&206==r.status){let r=e._malloc(16);return e.HEAPF64[0+(r>>3)]=+t,e.HEAPF64[1+(r>>3)]=0,r}}catch(e){i=e,console.warn("HEAD request with range header failed: ".concat(e))}if(a.allowFullHttpReads){{let r=new XMLHttpRequest;5==a.dataProtocol?(r.open("GET",It(a.s3Config,a.dataUrl),!1),Dt(r,a.s3Config,a.dataUrl,"GET")):r.open("GET",a.dataUrl,!1),r.responseType="arraybuffer",r.setRequestHeader("Range","bytes=0-0"),r.send(null);let i=null==(n=r.getResponseHeader("Content-Range"))?void 0:n.split("/")[1],s=r.getResponseHeader("Content-Length"),o=null;if(void 0!==i)o=i;else if(!a.reliableHeadRequests){let e=new XMLHttpRequest;5==a.dataProtocol?(e.open("HEAD",It(a.s3Config,a.dataUrl),!1),Dt(e,a.s3Config,a.dataUrl,"HEAD")):e.open("HEAD",a.dataUrl,!1),e.setRequestHeader("Range","bytes=0-"),e.send(null),t=e.getResponseHeader("Content-Length"),null!==t&&+t>1&&(o=t)}if(206==r.status&&null!==s&&1==+s&&null!==o){let t=e._malloc(16);return e.HEAPF64[0+(t>>3)]=+o,e.HEAPF64[1+(t>>3)]=0,t}if(200==r.status&&null!==s&&null!==t&&+s==+t){console.warn("fall back to full HTTP read for: ".concat(a.dataUrl));let t=e._malloc(r.response.byteLength),n=new Uint8Array(r.response,0,r.response.byteLength);e.HEAPU8.set(n,t);let i=e._malloc(16);return e.HEAPF64[0+(i>>3)]=r.response.byteLength,e.HEAPF64[1+(i>>3)]=t,i}}console.warn("falling back to full HTTP read for: ".concat(a.dataUrl));let r=new XMLHttpRequest;if(5==a.dataProtocol?(r.open("GET",It(a.s3Config,a.dataUrl),!1),Dt(r,a.s3Config,a.dataUrl,"GET")):r.open("GET",a.dataUrl,!1),r.responseType="arraybuffer",r.send(null),200==r.status){let t=e._malloc(r.response.byteLength),n=new Uint8Array(r.response,0,r.response.byteLength);e.HEAPU8.set(n,t);let i=e._malloc(16);return e.HEAPF64[0+(i>>3)]=r.response.byteLength,e.HEAPF64[1+(i>>3)]=t,i}}if(null!=i)throw new Error("Reading file ".concat(a.fileName," failed with error: ").concat(i));return 0}case 2:{let t=null==(i=_e._files)?void 0:i.get(a.fileName);if(t){let r=e._malloc(16);return e.HEAPF64[0+(r>>3)]=t.size,e.HEAPF64[1+(r>>3)]=0,r}console.warn("Buffering missing file: ".concat(a.fileName));let r=e._malloc(16),n=e._malloc(1);return e.HEAPF64[0+(r>>3)]=1,e.HEAPF64[1+(r>>3)]=n,r}}}catch(t){console.error(t.toString()),lt(e,t.toString())}return 0},glob:(e,t,r)=>{var n;try{let i=te(e,t,r);if(i.startsWith("http")||i.startsWith("s3://")){let t=new XMLHttpRequest;if(i.startsWith("s3://")){let r=_e.getGlobalFileInfo(e);t.open("HEAD",It(null==r?void 0:r.s3Config,i),!1),Dt(t,null==r?void 0:r.s3Config,i,"HEAD")}else t.open("HEAD",i,!1);if(t.send(null),200!=t.status&&206!==t.status){if(null==(n=_e.getGlobalFileInfo(e))||!n.allowFullHttpReads)return lt(e,"HEAD request failed: ".concat(i,", with full http reads are disabled")),0;let t=new XMLHttpRequest;if(i.startsWith("s3://")){let r=_e.getGlobalFileInfo(e);t.open("GET",It(null==r?void 0:r.s3Config,i),!1),Dt(t,null==r?void 0:r.s3Config,i,"HEAD")}else t.open("GET",i,!1);if(t.setRequestHeader("Range","bytes=0-0"),t.send(null),200!=t.status&&206!==t.status)return lt(e,"HEAD and GET requests failed: ".concat(i)),0;let r=t.getResponseHeader("Content-Length");r&&+r>1&&console.warn("Range request for ".concat(i," did not return a partial response: ").concat(t.status,' "').concat(t.statusText,'"'))}e.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(t){return console.log(t),lt(e,t.toString()),0}},checkFile:(e,t,r)=>{try{let n=te(e,t,r);if(n.startsWith("http")||n.startsWith("s3://")){let t=new XMLHttpRequest;if(n.startsWith("s3://")){let r=_e.getGlobalFileInfo(e);t.open("HEAD",It(null==r?void 0:r.s3Config,n),!1),Dt(t,null==r?void 0:r.s3Config,n,"HEAD")}else t.open("HEAD",n,!1);return t.send(null),206==t.status||200==t.status}}catch(e){return console.log(e),!1}return!1},syncFile:(e,t)=>{},closeFile:(e,t)=>{var r;let n=_e.getFileInfo(e,t);switch(_e._fileInfoCache.delete(t),null==n?void 0:n.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let e=null==(r=_e._files)?void 0:r.get(n.fileName);if(!e)throw new Error("No OPFS access handle registered with name: ".concat(n.fileName));return e.flush()}}},truncateFile:(e,t,r)=>{var n;let i=_e.getFileInfo(e,t);switch(null==i?void 0:i.dataProtocol){case 4:return void lt(e,"Cannot truncate a http file");case 5:return void lt(e,"Cannot truncate an s3 file");case 0:case 1:case 2:return void lt(e,"truncateFile not implemented");case 3:{let e=null==(n=_e._files)?void 0:n.get(i.fileName);if(!e)throw new Error("No OPFS access handle registered with name: ".concat(i.fileName));return e.truncate(r)}}return 0},readFile(e,t,r,n,i){var a,s;if(0==n)return 0;try{let o=_e.getFileInfo(e,t);switch(null==o?void 0:o.dataProtocol){case 4:case 5:if(!o.dataUrl)throw new Error("Missing data URL for file ".concat(t));try{let t=new XMLHttpRequest;if(5==o.dataProtocol?(t.open("GET",It(null==o?void 0:o.s3Config,o.dataUrl),!1),Dt(t,null==o?void 0:o.s3Config,o.dataUrl,"GET")):t.open("GET",o.dataUrl,!1),t.responseType="arraybuffer",t.setRequestHeader("Range","bytes=".concat(i,"-").concat(i+n-1)),t.send(null),206==t.status||200==t.status&&n==t.response.byteLength&&0==i){let i=new Uint8Array(t.response,0,Math.min(t.response.byteLength,n));return e.HEAPU8.set(i,r),i.byteLength}if(200==t.status){console.warn("Range request for ".concat(o.dataUrl," did not return a partial response: ").concat(t.status,' "').concat(t.statusText,'"'));let a=new Uint8Array(t.response,i,Math.min(t.response.byteLength-i,n));return e.HEAPU8.set(a,r),a.byteLength}throw new Error("Range request for ".concat(o.dataUrl," did returned non-success status: ").concat(t.status,' "').concat(t.statusText,'"'))}catch(e){throw console.log(e),new Error("Range request for ".concat(o.dataUrl," failed with error: ").concat(e,'"'))}case 2:{let t=null==(a=_e._files)?void 0:a.get(o.fileName);if(!t)throw new Error("No HTML5 file registered with name: ".concat(o.fileName));let s=t.slice(i,i+n),_=new Uint8Array((new FileReaderSync).readAsArrayBuffer(s));return e.HEAPU8.set(_,r),_.byteLength}case 3:{let t=null==(s=_e._files)?void 0:s.get(o.fileName);if(!t)throw new Error("No OPFS access handle registered with name: ".concat(o.fileName));let a=e.HEAPU8.subarray(r,r+n);return t.read(a,{at:i})}}return 0}catch(t){return console.log(t),lt(e,t.toString()),0}},writeFile:(e,t,r,n,i)=>{var a;let s=_e.getFileInfo(e,t);switch(null==s?void 0:s.dataProtocol){case 4:return lt(e,"Cannot write to HTTP file"),0;case 5:{let t=e.HEAPU8.subarray(r,r+n),i=new XMLHttpRequest;return i.open("PUT",It(null==s?void 0:s.s3Config,s.dataUrl),!1),Dt(i,null==s?void 0:s.s3Config,s.dataUrl,"PUT","",t),i.send(t),200!==i.status?(lt(e,"Failed writing file: HTTP "+i.status),0):n}case 2:return lt(e,"cannot write using the html5 file reader api"),0;case 3:{let t=null==(a=_e._files)?void 0:a.get(s.fileName);if(!t)throw new Error("No OPFS access handle registered with name: ".concat(s.fileName));let o=e.HEAPU8.subarray(r,r+n);return t.write(o,{at:i})}}return 0},getLastFileModificationTime:(e,t)=>{var r;let n=_e.getFileInfo(e,t);switch(null==n?void 0:n.dataProtocol){case 2:if(!(null==(r=_e._files)?void 0:r.get(n.fileName)))throw Error("No handle available for file: ".concat(n.fileName));return 0;case 4:case 5:return(new Date).getTime()}return 0},checkDirectory:(e,t,r)=>{let n=te(e,t,r);return console.log("checkDirectory: ".concat(n)),!1},createDirectory:(e,t,r)=>{let n=te(e,t,r);console.log("createDirectory: ".concat(n))},removeDirectory:(e,t,r)=>{let n=te(e,t,r);console.log("removeDirectory: ".concat(n))},listDirectoryEntries:(e,t,r)=>{let n=te(e,t,r);return console.log("listDirectoryEntries: ".concat(n)),!1},moveFile:(e,t,r,n,i)=>{var a,s;let o=te(e,t,r),_=te(e,n,i),l=null==(a=_e._files)?void 0:a.get(o);void 0!==l&&(_e._files.delete(l),_e._files.set(_,l));for(let[e,t]of(null==(s=_e._fileInfoCache)?void 0:s.entries())||[])if(t.dataUrl==o){_e._fileInfoCache.delete(e);break}return!0},removeFile:(e,t,r)=>{},callScalarUDF:(e,t,r,n,i,a,s)=>{kl(_e,e,t,r,n,i,a,s)}},xo=class extends la{postMessage(e,t){globalThis.postMessage(e,t)}async instantiate(e,t,r){return await new ha(this,_e,e,t).instantiate(r)}};function zl(){let e=new xo;globalThis.onmessage=async t=>{await e.onMessage(t.data)}}return zl(),Kl(Ld)})(); \ No newline at end of file diff --git a/static/assets/duckdb-browser-coi.worker.242b14ae945f783fcf12.js.LICENSE.txt b/static/assets/duckdb-browser-coi.worker.242b14ae945f783fcf12.js.LICENSE.txt new file mode 100644 index 000000000..286bd31ff --- /dev/null +++ b/static/assets/duckdb-browser-coi.worker.242b14ae945f783fcf12.js.LICENSE.txt @@ -0,0 +1,12 @@ +/*! Bundled license information: + +js-sha256/src/sha256.js: + (** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.11.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2024 + * @license MIT + *) +*/ diff --git a/static/assets/duckdb-browser-coi.worker.e6966bd37d2ce8c12e34.js b/static/assets/duckdb-browser-coi.worker.e6966bd37d2ce8c12e34.js deleted file mode 100644 index 6a4e77743..000000000 --- a/static/assets/duckdb-browser-coi.worker.e6966bd37d2ce8c12e34.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see duckdb-browser-coi.worker.e6966bd37d2ce8c12e34.js.LICENSE.txt */ -"use strict";var duckdb=(()=>{var Up=Object.create,ws=Object.defineProperty,kp=Object.getOwnPropertyDescriptor,Lp=Object.getOwnPropertyNames,Np=Object.getPrototypeOf,Cp=Object.prototype.hasOwnProperty,ba=(r=function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):r),r,un=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),dn=(t,e)=>{for(var r in e)ws(t,r,{get:e[r],enumerable:!0})},Jl=(t,e,r,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of Lp(e))!Cp.call(t,n)&&n!==r&&ws(t,n,{get:()=>e[n],enumerable:!(i=kp(e,n))||i.enumerable});return t},ql=(t,e,r)=>(r=null!=t?Up(Np(t)):{},Jl(!e&&t&&t.__esModule?r:ws(r,"default",{value:t,enumerable:!0}),t)),Pp=t=>Jl(ws({},"__esModule",{value:!0}),t),gu=un(((t,e)=>{var r,i,n,s,a,o,l,u,h,d,c,f,p,y,b,_,m,g,v,w,I,S,A,T,O;!function(t){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};function i(t,e){return t!==r&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(r,i){return t[r]=e?e(r,i):i}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){t(i(r,i(e)))})):"object"==typeof e&&"object"==typeof e.exports?t(i(r,i(e.exports))):t(i(r))}((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])};r=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)},i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r=0;o--)(n=t[o])&&(a=(s<3?n(a):s>3?n(e,r,a):n(e,r))||a);return s>3&&a&&Object.defineProperty(e,r,a),a},a=function(t,e){return function(r,i){e(r,i,t)}},o=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t,e,r,i){return new(r||(r=Promise))((function(n,s){function a(t){try{l(i.next(t))}catch(t){s(t)}}function o(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){t.done?n(t.value):function(t){return t instanceof r?t:new r((function(e){e(t)}))}(t.value).then(a,o)}l((i=i.apply(t,e||[])).next())}))},u=function(t,e){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,n,s=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a},f=function(){for(var t=[],e=0;e1||o(t,e)}))})}function o(t,e){try{!function(t){t.value instanceof b?Promise.resolve(t.value.v).then(l,u):h(s[0][2],t)}(n[t](e))}catch(t){h(s[0][3],t)}}function l(t){o("next",t)}function u(t){o("throw",t)}function h(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}},m=function(t){var e,r;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,n){e[i]=t[i]?function(e){return(r=!r)?{value:b(t[i](e)),done:"return"===i}:n?n(e):e}:n}},g=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=d(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(e){return new Promise((function(i,n){!function(t,e,r,i){Promise.resolve(i).then((function(e){t({value:e,done:r})}),e)}(i,n,(e=t[r](e)).done,e.value)}))}}},v=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var F=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&O(e,t,r);return F(e,t),e},I=function(t){return t&&t.__esModule?t:{default:t}},S=function(t,e,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:e.get(t)},A=function(t,e,r,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(t,r):n?n.value=r:e.set(t,r),r},T=function(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)},t("__extends",r),t("__assign",i),t("__rest",n),t("__decorate",s),t("__param",a),t("__metadata",o),t("__awaiter",l),t("__generator",u),t("__exportStar",h),t("__createBinding",O),t("__values",d),t("__read",c),t("__spread",f),t("__spreadArrays",p),t("__spreadArray",y),t("__await",b),t("__asyncGenerator",_),t("__asyncDelegator",m),t("__asyncValues",g),t("__makeTemplateObject",v),t("__importStar",w),t("__importDefault",I),t("__classPrivateFieldGet",S),t("__classPrivateFieldSet",A),t("__classPrivateFieldIn",T)}))})),yc=un((()=>{})),of=un((()=>{})),af=un((()=>{})),cf=un((()=>{})),lf=un((()=>{})),mf=un(((exports,module)=>{(function(){var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(r){return new Sha256(e,!0).update(r)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r>6,a[l++]=128|63&s):s<55296||s>=57344?(a[l++]=224|s>>12,a[l++]=128|s>>6&63,a[l++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),a[l++]=240|s>>18,a[l++]=128|s>>12&63,a[l++]=128|s>>6&63,a[l++]=128|63&s);t=a}else{if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],h=[];for(i=0;i<64;++i){var d=t[i]||0;u[i]=92^d,h[i]=54^d}Sha256.call(this,e,r),this.update(h),this.oKeyPad=u,this.inner=!0,this.sharedMemory=r}Sha256.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var i,n,s=0,a=t.length,o=this.blocks;s>2]|=t[s]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=64?(this.block=o[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,r,i,n,s,a,o,l,u=this.h0,h=this.h1,d=this.h2,c=this.h3,f=this.h4,p=this.h5,y=this.h6,b=this.h7,_=this.blocks;for(t=16;t<64;++t)e=((n=_[t-15])>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,r=((n=_[t-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,_[t]=_[t-16]+e+_[t-7]+r<<0;for(l=h&d,t=0;t<64;t+=4)this.first?(this.is224?(s=300032,b=(n=_[0]-1413257819)-150054599<<0,c=n+24177077<<0):(s=704751109,b=(n=_[0]-210244248)-1521486534<<0,c=n+143694565<<0),this.first=!1):(e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),i=(s=u&h)^u&d^l,b=c+(n=b+(r=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&p^~f&y)+K[t]+_[t])<<0,c=n+(e+i)<<0),e=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),i=(a=c&u)^c&h^s,y=d+(n=y+(r=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&f^~b&p)+K[t+1]+_[t+1])<<0,e=((d=n+(e+i)<<0)>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),i=(o=d&c)^d&u^a,p=h+(n=p+(r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&b^~y&f)+K[t+2]+_[t+2])<<0,e=((h=n+(e+i)<<0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),i=(l=h&d)^h&c^o,f=u+(n=f+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&y^~p&b)+K[t+3]+_[t+3])<<0,u=n+(e+i)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+h<<0,this.h2=this.h2+d<<0,this.h3=this.h3+c<<0,this.h4=this.h4+f<<0,this.h5=this.h5+p<<0,this.h6=this.h6+y<<0,this.h7=this.h7+b<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,i=this.h3,n=this.h4,s=this.h5,a=this.h6,o=this.h7,l=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(l+=HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,i=this.h3,n=this.h4,s=this.h5,a=this.h6,o=this.h7,l=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||l.push(o>>24&255,o>>16&255,o>>8&255,255&o),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define((function(){return exports})))})()})),Ey={};dn(Ey,{registerWorker:()=>bf});var wu=ql(gu(),1),{__extends:Ly,__assign:Ny,__rest:vu,__decorate:Cy,__param:Py,__metadata:Vy,__awaiter:A,__generator:Hy,__exportStar:zy,__createBinding:Wy,__values:jy,__read:$y,__spread:Yy,__spreadArrays:Xy,__spreadArray:Gy,__await:$,__asyncGenerator:pe,__asyncDelegator:On,__asyncValues:Ue,__makeTemplateObject:Ky,__importStar:Jy,__importDefault:qy,__classPrivateFieldGet:Zy,__classPrivateFieldSet:Qy,__classPrivateFieldIn:tb}=wu.default,Fa={};dn(Fa,{compareArrayLike:()=>Aa,joinUint8Arrays:()=>Te,memcpy:()=>Mn,rebaseValueOffsets:()=>gi,toArrayBufferView:()=>Y,toArrayBufferViewAsyncIterator:()=>je,toArrayBufferViewIterator:()=>sr,toBigInt64Array:()=>Yp,toBigUint64Array:()=>Kp,toFloat32Array:()=>Jp,toFloat32ArrayAsyncIterator:()=>fm,toFloat32ArrayIterator:()=>im,toFloat64Array:()=>qp,toFloat64ArrayAsyncIterator:()=>hm,toFloat64ArrayIterator:()=>sm,toInt16Array:()=>$p,toInt16ArrayAsyncIterator:()=>cm,toInt16ArrayIterator:()=>tm,toInt32Array:()=>fn,toInt32ArrayAsyncIterator:()=>lm,toInt32ArrayIterator:()=>em,toInt8Array:()=>jp,toInt8ArrayAsyncIterator:()=>am,toInt8ArrayIterator:()=>Qp,toUint16Array:()=>Xp,toUint16ArrayAsyncIterator:()=>um,toUint16ArrayIterator:()=>rm,toUint32Array:()=>Gp,toUint32ArrayAsyncIterator:()=>dm,toUint32ArrayIterator:()=>nm,toUint8Array:()=>k,toUint8ArrayAsyncIterator:()=>Ia,toUint8ArrayIterator:()=>Sa,toUint8ClampedArray:()=>Zp,toUint8ClampedArrayAsyncIterator:()=>pm,toUint8ClampedArrayIterator:()=>om});var Vp=new TextDecoder("utf-8"),_i=t=>Vp.decode(t),Hp=new TextEncoder,jr=t=>Hp.encode(t),[nb,As]=(()=>{let t=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=()=>{throw t()},e.asUintN=()=>{throw t()},typeof BigInt<"u"?[BigInt,!0]:[e,!1]})(),[yi,ib]=(()=>{let t=()=>{throw new Error("BigInt64Array is not available in this environment")};return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}},!1]})(),[Rn,sb]=(()=>{let t=()=>{throw new Error("BigUint64Array is not available in this environment")};return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}},!1]})(),zp=t=>"number"==typeof t,Su=t=>"boolean"==typeof t,Ct=t=>"function"==typeof t,ae=t=>null!=t&&Object(t)===t,ze=t=>ae(t)&&Ct(t.then),We=t=>ae(t)&&Ct(t[Symbol.iterator]),ke=t=>ae(t)&&Ct(t[Symbol.asyncIterator]),Fs=t=>ae(t)&&ae(t.schema),xs=t=>ae(t)&&"done"in t&&"value"in t,Ts=t=>ae(t)&&Ct(t.stat)&&zp(t.fd),Bs=t=>ae(t)&&bi(t.body),Ds=t=>"_getDOMStream"in t&&"_getNodeStream"in t,Iu=t=>ae(t)&&Ct(t.abort)&&Ct(t.getWriter)&&!Ds(t),bi=t=>ae(t)&&Ct(t.cancel)&&Ct(t.getReader)&&!Ds(t),Au=t=>ae(t)&&Ct(t.end)&&Ct(t.write)&&Su(t.writable)&&!Ds(t),Es=t=>ae(t)&&Ct(t.read)&&Ct(t.pipe)&&Su(t.readable)&&!Ds(t),Fu=t=>ae(t)&&Ct(t.clear)&&Ct(t.bytes)&&Ct(t.position)&&Ct(t.setPosition)&&Ct(t.capacity)&&Ct(t.getBufferIdentifier)&&Ct(t.createLong),va=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function Wp(t){let e,r,i,n,s=t[0]?[t[0]]:[];for(let a,o,l=0,u=0,h=t.length;++lt+e.byteLength),0),o=0,l=-1,u=Math.min(e||Number.POSITIVE_INFINITY,a);for(let t=s.length;++lY(Int8Array,t),$p=t=>Y(Int16Array,t),fn=t=>Y(Int32Array,t),Yp=t=>Y(yi,t),k=t=>Y(Uint8Array,t),Xp=t=>Y(Uint16Array,t),Gp=t=>Y(Uint32Array,t),Kp=t=>Y(Rn,t),Jp=t=>Y(Float32Array,t),qp=t=>Y(Float64Array,t),Zp=t=>Y(Uint8ClampedArray,t),wa=t=>(t.next(),t);function*sr(t,e){let r=function*(t){yield t},i="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof va?r(e):We(e)?e:r(e);return yield*wa(function*(e){let r=null;do{r=e.next(yield Y(t,r))}while(!r.done)}(i[Symbol.iterator]())),new t}var Qp=t=>sr(Int8Array,t),tm=t=>sr(Int16Array,t),em=t=>sr(Int32Array,t),Sa=t=>sr(Uint8Array,t),rm=t=>sr(Uint16Array,t),nm=t=>sr(Uint32Array,t),im=t=>sr(Float32Array,t),sm=t=>sr(Float64Array,t),om=t=>sr(Uint8ClampedArray,t);function je(t,e){return pe(this,arguments,(function*(){if(ze(e))return yield $(yield $(yield*On(Ue(je(t,yield $(e))))));let r=function(t){return pe(this,arguments,(function*(){yield yield $(yield $(t))}))},i="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof va?r(e):We(e)?function(t){return pe(this,arguments,(function*(){yield $(yield*On(Ue(wa(function*(t){let e=null;do{e=t.next(yield null==e?void 0:e.value)}while(!e.done)}(t[Symbol.iterator]())))))}))}(e):ke(e)?e:r(e);return yield $(yield*On(Ue(wa(function(e){return pe(this,arguments,(function*(){let r=null;do{r=yield $(e.next(yield yield $(Y(t,r))))}while(!r.done)}))}(i[Symbol.asyncIterator]()))))),yield $(new t)}))}var am=t=>je(Int8Array,t),cm=t=>je(Int16Array,t),lm=t=>je(Int32Array,t),Ia=t=>je(Uint8Array,t),um=t=>je(Uint16Array,t),dm=t=>je(Uint32Array,t),fm=t=>je(Float32Array,t),hm=t=>je(Float64Array,t),pm=t=>je(Uint8ClampedArray,t);function gi(t,e,r){if(0!==t){r=r.slice(0,e+1);for(let i=-1;++i<=e;)r[i]+=t}return r}function Aa(t,e){let r=0,i=t.length;if(i!==e.length)return!1;if(i>0)do{if(t[r]!==e[r])return!1}while(++rOs(mm(t)),fromAsyncIterable:t=>Os(_m(t)),fromDOMStream:t=>Os(ym(t)),fromNodeStream:t=>Os(bm(t)),toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},Os=t=>(t.next(),t);function*mm(t){let e,r,i,n,s=!1,a=[],o=0;({cmd:i,size:n}=yield null);let l=Sa(t)[Symbol.iterator]();try{do{if(({done:e,value:r}=Number.isNaN(n-o)?l.next():l.next(n-o)),!e&&r.byteLength>0&&(a.push(r),o+=r.byteLength),e||n<=o)do{({cmd:i,size:n}=yield"peek"===i?Te(a,n)[0]:([r,a,o]=Te(a,n),r))}while(n0&&(a.push(r),o+=r.byteLength),e||n<=o)do{({cmd:i,size:n}=yield yield $("peek"===i?Te(a,n)[0]:([r,a,o]=Te(a,n),r)))}while(n0&&(a.push(k(e)),o+=e.byteLength),n||i<=o)do{({cmd:r,size:i}=yield yield $("peek"===r?Te(a,i)[0]:([e,a,o]=Te(a,i),e)))}while(i{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return A(this,void 0,void 0,(function*(){let{reader:e,source:r}=this;e&&(yield e.cancel(t).catch((()=>{}))),r&&r.locked&&this.releaseLock()}))}read(t){return A(this,void 0,void 0,(function*(){if(0===t)return{done:null==this.reader,value:new Uint8Array(0)};let e=yield this.reader.read();return!e.done&&(e.value=k(e)),e}))}},xa=(t,e)=>{let r,i=t=>r([e,t]);return[e,i,new Promise((n=>(r=n)&&t.once(e,i)))]},Vt,Tt,It,Jt,G,ce,rt,h,Le;function bm(t){return pe(this,arguments,(function*(){let e,r,i,n=[],s="error",a=!1,o=null,l=0,u=[];if(({cmd:e,size:r}=yield yield $(null)),t.isTTY)return yield yield $(new Uint8Array(0)),yield $(null);try{n[0]=xa(t,"end"),n[1]=xa(t,"error");do{if(n[2]=xa(t,"readable"),[s,o]=yield $(Promise.race(n.map((t=>t[2])))),"error"===s)break;if((a="end"===s)||(Number.isFinite(r-l)?(i=k(t.read(r-l)),i.byteLength0&&(u.push(i),l+=i.byteLength)),a||r<=l)do{({cmd:e,size:r}=yield yield $("peek"===e?Te(u,r)[0]:([i,u,l]=Te(u,r),i)))}while(r{for(let[e,r]of h)t.off(e,r);try{let i=t.destroy;i&&i.call(t,d),d=void 0}catch(t){d=t||d}finally{null!=d?r(d):e()}}))))}var h,d;return yield $(null)}))}!function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"}(Vt||(Vt={})),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(Tt||(Tt={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(It||(It={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(Jt||(Jt={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(G||(G={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(ce||(ce={})),function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(rt||(rt={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"}(h||(h={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(Le||(Le={}));var ja={};function $e(t){if(null===t)return"null";if(void 0===t)return"undefined";switch(typeof t){case"number":case"bigint":return`${t}`;case"string":return`"${t}"`}return"function"==typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map((t=>$e(t)))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,((t,e)=>"bigint"==typeof e?`${e}`:e))}dn(ja,{clampIndex:()=>c_,clampRange:()=>Si,createElementComparator:()=>Gr});var Da={};dn(Da,{BN:()=>hn,bignumToBigInt:()=>Rs,bignumToString:()=>$r,isArrowBigNumSymbol:()=>xu});var xu=Symbol.for("isArrowBigNum"),$r,Rs;function Ye(t,...e){return 0===e.length?Object.setPrototypeOf(Y(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function Un(...t){return Ye.apply(this,t)}function kn(...t){return Ye.apply(this,t)}function wi(...t){return Ye.apply(this,t)}function Tu(t){let{buffer:e,byteOffset:r,length:i,signed:n}=t,s=new Rn(e,r,i),a=n&&s[s.length-1]&BigInt(1)<8===t.byteLength?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:Ba(t),$r=t=>8===t.byteLength?`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`:Ba(t)):($r=Ba,Rs=$r);var hn=class{static new(t,e){switch(e){case!0:return new Un(t);case!1:return new kn(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case yi:return new Un(t)}return 16===t.byteLength?new wi(t):new kn(t)}static signed(t){return new Un(t)}static unsigned(t){return new kn(t)}static decimal(t){return new wi(t)}constructor(t,e){return hn.new(t,e)}},Bu,Du,Eu,Ou,Ru,Mu,Uu,ku,Lu,Nu,Cu,Pu,Vu,Hu,zu,Wu,ju,$u,Yu,T=class{static isNull(t){return(null==t?void 0:t.typeId)===h.Null}static isInt(t){return(null==t?void 0:t.typeId)===h.Int}static isFloat(t){return(null==t?void 0:t.typeId)===h.Float}static isBinary(t){return(null==t?void 0:t.typeId)===h.Binary}static isUtf8(t){return(null==t?void 0:t.typeId)===h.Utf8}static isBool(t){return(null==t?void 0:t.typeId)===h.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===h.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===h.Date}static isTime(t){return(null==t?void 0:t.typeId)===h.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===h.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===h.Interval}static isList(t){return(null==t?void 0:t.typeId)===h.List}static isStruct(t){return(null==t?void 0:t.typeId)===h.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===h.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===h.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===h.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===h.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===h.Dictionary}static isDenseUnion(t){return T.isUnion(t)&&t.mode===Tt.Dense}static isSparseUnion(t){return T.isUnion(t)&&t.mode===Tt.Sparse}get typeId(){return h.NONE}};Bu=Symbol.toStringTag,T[Bu]=(t=>(t.children=null,t.ArrayType=Array,t[Symbol.toStringTag]="DataType"))(T.prototype);var le=class extends T{toString(){return"Null"}get typeId(){return h.Null}};Du=Symbol.toStringTag,le[Du]=(t=>t[Symbol.toStringTag]="Null")(le.prototype);var Ot=class extends T{constructor(t,e){super(),this.isSigned=t,this.bitWidth=e}get typeId(){return h.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};Eu=Symbol.toStringTag,Ot[Eu]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(Ot.prototype);var Ms=class extends Ot{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},Us=class extends Ot{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},or=class extends Ot{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},ks=class extends Ot{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Ls=class extends Ot{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Ns=class extends Ot{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Cs=class extends Ot{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Ps=class extends Ot{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Ms.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(Us.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(or.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(ks.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(Ls.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(Ns.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Cs.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Ps.prototype,"ArrayType",{value:BigUint64Array});var me=class extends T{constructor(t){super(),this.precision=t}get typeId(){return h.Float}get ArrayType(){switch(this.precision){case It.HALF:return Uint16Array;case It.SINGLE:return Float32Array;case It.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};Ou=Symbol.toStringTag,me[Ou]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(me.prototype);var Vs=class extends me{constructor(){super(It.HALF)}},Hs=class extends me{constructor(){super(It.SINGLE)}},zs=class extends me{constructor(){super(It.DOUBLE)}};Object.defineProperty(Vs.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Hs.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(zs.prototype,"ArrayType",{value:Float64Array});var Fr=class extends T{constructor(){super()}get typeId(){return h.Binary}toString(){return"Binary"}};Ru=Symbol.toStringTag,Fr[Ru]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Fr.prototype);var xr=class extends T{constructor(){super()}get typeId(){return h.Utf8}toString(){return"Utf8"}};Mu=Symbol.toStringTag,xr[Mu]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(xr.prototype);var Tr=class extends T{constructor(){super()}get typeId(){return h.Bool}toString(){return"Bool"}};Uu=Symbol.toStringTag,Tr[Uu]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Tr.prototype);var Br=class extends T{constructor(t,e,r=128){super(),this.scale=t,this.precision=e,this.bitWidth=r}get typeId(){return h.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};ku=Symbol.toStringTag,Br[ku]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(Br.prototype);var Dr=class extends T{constructor(t){super(),this.unit=t}get typeId(){return h.Date}toString(){return`Date${32*(this.unit+1)}<${Jt[this.unit]}>`}};Lu=Symbol.toStringTag,Dr[Lu]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(Dr.prototype);var Xe=class extends T{constructor(t,e){super(),this.unit=t,this.bitWidth=e}get typeId(){return h.Time}toString(){return`Time${this.bitWidth}<${G[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};Nu=Symbol.toStringTag,Xe[Nu]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(Xe.prototype);var Er=class extends T{constructor(t,e){super(),this.unit=t,this.timezone=e}get typeId(){return h.Timestamp}toString(){return`Timestamp<${G[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};Cu=Symbol.toStringTag,Er[Cu]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(Er.prototype);var Or=class extends T{constructor(t){super(),this.unit=t}get typeId(){return h.Interval}toString(){return`Interval<${ce[this.unit]}>`}};Pu=Symbol.toStringTag,Or[Pu]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(Or.prototype);var Ge=class extends T{constructor(t){super(),this.children=[t]}get typeId(){return h.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};Vu=Symbol.toStringTag,Ge[Vu]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Ge.prototype);var bt=class extends T{constructor(t){super(),this.children=t}get typeId(){return h.Struct}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}};Hu=Symbol.toStringTag,bt[Hu]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(bt.prototype);var Ke=class extends T{constructor(t,e,r){super(),this.mode=t,this.children=r,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,r)=>(t[e]=r)&&t||t),Object.create(null))}get typeId(){return h.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}};zu=Symbol.toStringTag,Ke[zu]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(Ke.prototype);var Rr=class extends T{constructor(t){super(),this.byteWidth=t}get typeId(){return h.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Wu=Symbol.toStringTag,Rr[Wu]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Rr.prototype);var Je=class extends T{constructor(t,e){super(),this.listSize=t,this.children=[e]}get typeId(){return h.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};ju=Symbol.toStringTag,Je[ju]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(Je.prototype);var qe=class extends T{constructor(t,e=!1){super(),this.children=[t],this.keysSorted=e}get typeId(){return h.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}};$u=Symbol.toStringTag,qe[$u]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(qe.prototype);var gm=(t=>()=>++t)(-1),Be=class extends T{constructor(t,e,r,i){super(),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==r?gm():"number"==typeof r?r:r.low}get typeId(){return h.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};function De(t){let e=t;switch(t.typeId){case h.Decimal:return t.bitWidth/32;case h.Timestamp:return 2;case h.Date:case h.Interval:return 1+e.unit;case h.FixedSizeList:return e.listSize;case h.FixedSizeBinary:return e.byteWidth;default:return 1}}Yu=Symbol.toStringTag,Be[Yu]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(Be.prototype);var D=class{visitMany(t,...e){return t.map(((t,r)=>this.visit(t,...e.map((t=>t[r])))))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return wm(this,t,e)}getVisitFnByTypeId(t,e=!0){return Ln(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}};function wm(t,e,r=!0){return"number"==typeof e?Ln(t,e,r):"string"==typeof e&&e in h?Ln(t,h[e],r):e&&e instanceof T?Ln(t,Xu(e),r):(null==e?void 0:e.type)&&e.type instanceof T?Ln(t,Xu(e.type),r):Ln(t,h.NONE,r)}function Ln(t,e,r=!0){let i=null;switch(e){case h.Null:i=t.visitNull;break;case h.Bool:i=t.visitBool;break;case h.Int:i=t.visitInt;break;case h.Int8:i=t.visitInt8||t.visitInt;break;case h.Int16:i=t.visitInt16||t.visitInt;break;case h.Int32:i=t.visitInt32||t.visitInt;break;case h.Int64:i=t.visitInt64||t.visitInt;break;case h.Uint8:i=t.visitUint8||t.visitInt;break;case h.Uint16:i=t.visitUint16||t.visitInt;break;case h.Uint32:i=t.visitUint32||t.visitInt;break;case h.Uint64:i=t.visitUint64||t.visitInt;break;case h.Float:i=t.visitFloat;break;case h.Float16:i=t.visitFloat16||t.visitFloat;break;case h.Float32:i=t.visitFloat32||t.visitFloat;break;case h.Float64:i=t.visitFloat64||t.visitFloat;break;case h.Utf8:i=t.visitUtf8;break;case h.Binary:i=t.visitBinary;break;case h.FixedSizeBinary:i=t.visitFixedSizeBinary;break;case h.Date:i=t.visitDate;break;case h.DateDay:i=t.visitDateDay||t.visitDate;break;case h.DateMillisecond:i=t.visitDateMillisecond||t.visitDate;break;case h.Timestamp:i=t.visitTimestamp;break;case h.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp;break;case h.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp;break;case h.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp;break;case h.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp;break;case h.Time:i=t.visitTime;break;case h.TimeSecond:i=t.visitTimeSecond||t.visitTime;break;case h.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime;break;case h.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime;break;case h.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime;break;case h.Decimal:i=t.visitDecimal;break;case h.List:i=t.visitList;break;case h.Struct:i=t.visitStruct;break;case h.Union:i=t.visitUnion;break;case h.DenseUnion:i=t.visitDenseUnion||t.visitUnion;break;case h.SparseUnion:i=t.visitSparseUnion||t.visitUnion;break;case h.Dictionary:i=t.visitDictionary;break;case h.Interval:i=t.visitInterval;break;case h.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval;break;case h.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval;break;case h.FixedSizeList:i=t.visitFixedSizeList;break;case h.Map:i=t.visitMap}if("function"==typeof i)return i;if(!r)return()=>null;throw new Error(`Unrecognized type '${h[e]}'`)}function Xu(t){switch(t.typeId){case h.Null:return h.Null;case h.Int:{let{bitWidth:e,isSigned:r}=t;switch(e){case 8:return r?h.Int8:h.Uint8;case 16:return r?h.Int16:h.Uint16;case 32:return r?h.Int32:h.Uint32;case 64:return r?h.Int64:h.Uint64}return h.Int}case h.Float:switch(t.precision){case It.HALF:return h.Float16;case It.SINGLE:return h.Float32;case It.DOUBLE:return h.Float64}return h.Float;case h.Binary:return h.Binary;case h.Utf8:return h.Utf8;case h.Bool:return h.Bool;case h.Decimal:return h.Decimal;case h.Time:switch(t.unit){case G.SECOND:return h.TimeSecond;case G.MILLISECOND:return h.TimeMillisecond;case G.MICROSECOND:return h.TimeMicrosecond;case G.NANOSECOND:return h.TimeNanosecond}return h.Time;case h.Timestamp:switch(t.unit){case G.SECOND:return h.TimestampSecond;case G.MILLISECOND:return h.TimestampMillisecond;case G.MICROSECOND:return h.TimestampMicrosecond;case G.NANOSECOND:return h.TimestampNanosecond}return h.Timestamp;case h.Date:switch(t.unit){case Jt.DAY:return h.DateDay;case Jt.MILLISECOND:return h.DateMillisecond}return h.Date;case h.Interval:switch(t.unit){case ce.DAY_TIME:return h.IntervalDayTime;case ce.YEAR_MONTH:return h.IntervalYearMonth}return h.Interval;case h.Map:return h.Map;case h.List:return h.List;case h.Struct:return h.Struct;case h.Union:switch(t.mode){case Tt.Dense:return h.DenseUnion;case Tt.Sparse:return h.SparseUnion}return h.Union;case h.FixedSizeBinary:return h.FixedSizeBinary;case h.FixedSizeList:return h.FixedSizeList;case h.Dictionary:return h.Dictionary}throw new Error(`Unrecognized type '${h[t.typeId]}'`)}D.prototype.visitInt8=null,D.prototype.visitInt16=null,D.prototype.visitInt32=null,D.prototype.visitInt64=null,D.prototype.visitUint8=null,D.prototype.visitUint16=null,D.prototype.visitUint32=null,D.prototype.visitUint64=null,D.prototype.visitFloat16=null,D.prototype.visitFloat32=null,D.prototype.visitFloat64=null,D.prototype.visitDateDay=null,D.prototype.visitDateMillisecond=null,D.prototype.visitTimestampSecond=null,D.prototype.visitTimestampMillisecond=null,D.prototype.visitTimestampMicrosecond=null,D.prototype.visitTimestampNanosecond=null,D.prototype.visitTimeSecond=null,D.prototype.visitTimeMillisecond=null,D.prototype.visitTimeMicrosecond=null,D.prototype.visitTimeNanosecond=null,D.prototype.visitDenseUnion=null,D.prototype.visitSparseUnion=null,D.prototype.visitIntervalDayTime=null,D.prototype.visitIntervalYearMonth=null;var Ea={};dn(Ea,{float64ToUint16:()=>vi,uint16ToFloat64:()=>Ws});var Gu=new Float64Array(1),Nn=new Uint32Array(Gu.buffer);function Ws(t){let e=(31744&t)>>10,r=(1023&t)/1024,i=Math.pow(-1,(32768&t)>>15);switch(e){case 31:return i*(r?Number.NaN:1/0);case 0:return i*(r?6103515625e-14*r:0)}return i*Math.pow(2,e-15)*(1+r)}function vi(t){if(t!=t)return 32256;Gu[0]=t;let e=(2147483648&Nn[1])>>16&65535,r=2146435072&Nn[1],i=0;return r>=1089470464?Nn[0]>0?r=31744:(r=(2080374784&r)>>16,i=(1048575&Nn[1])>>10):r<=1056964608?(i=1048576+(1048575&Nn[1]),i=1048576+(i<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,i=512+(1048575&Nn[1])>>10),e|r|65535&i}var L=class extends D{};function j(t){return(e,r,i)=>{if(e.setValid(r,null!=i))return t(e,r,i)}}var vm=(t,e,r)=>{t[e]=Math.trunc(r/864e5)},Oa=(t,e,r)=>{t[e]=Math.trunc(r%4294967296),t[e+1]=Math.trunc(r/4294967296)},Sm=(t,e,r)=>{t[e]=Math.trunc(1e3*r%4294967296),t[e+1]=Math.trunc(1e3*r/4294967296)},Im=(t,e,r)=>{t[e]=Math.trunc(1e6*r%4294967296),t[e+1]=Math.trunc(1e6*r/4294967296)},Ku=(t,e,r,i)=>{if(r+1{let n=t+r;i?e[n>>3]|=1<>3]&=~(1<{t[e]=r},Ra=({values:t},e,r)=>{t[e]=r},Ju=({values:t},e,r)=>{t[e]=vi(r)},Fm=(t,e,r)=>{switch(t.type.precision){case It.HALF:return Ju(t,e,r);case It.SINGLE:case It.DOUBLE:return Ra(t,e,r)}},js=({values:t},e,r)=>{vm(t,e,r.valueOf())},$s=({values:t},e,r)=>{Oa(t,2*e,r.valueOf())},Ma=({stride:t,values:e},r,i)=>{e.set(i.subarray(0,t),t*r)},xm=({values:t,valueOffsets:e},r,i)=>Ku(t,e,r,i),Tm=({values:t,valueOffsets:e},r,i)=>{Ku(t,e,r,jr(i))},Ua=(t,e,r)=>{t.type.unit===Jt.DAY?js(t,e,r):$s(t,e,r)},Ys=({values:t},e,r)=>Oa(t,2*e,r/1e3),Xs=({values:t},e,r)=>Oa(t,2*e,r),Gs=({values:t},e,r)=>Sm(t,2*e,r),Ks=({values:t},e,r)=>Im(t,2*e,r),ka=(t,e,r)=>{switch(t.type.unit){case G.SECOND:return Ys(t,e,r);case G.MILLISECOND:return Xs(t,e,r);case G.MICROSECOND:return Gs(t,e,r);case G.NANOSECOND:return Ks(t,e,r)}},Js=({values:t},e,r)=>{t[e]=r},qs=({values:t},e,r)=>{t[e]=r},Zs=({values:t},e,r)=>{t[e]=r},Qs=({values:t},e,r)=>{t[e]=r},La=(t,e,r)=>{switch(t.type.unit){case G.SECOND:return Js(t,e,r);case G.MILLISECOND:return qs(t,e,r);case G.MICROSECOND:return Zs(t,e,r);case G.NANOSECOND:return Qs(t,e,r)}},Na=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},Bm=(t,e,r)=>{let i=t.children[0],n=t.valueOffsets,s=qt.getVisitFn(i);if(Array.isArray(r))for(let t=-1,a=n[e],o=n[e+1];a{let i=t.children[0],{valueOffsets:n}=t,s=qt.getVisitFn(i),{[e]:a,[e+1]:o}=n,l=r instanceof Map?r.entries():Object.entries(r);for(let t of l)if(s(i,a,t),++a>=o)break},Em=(t,e)=>(r,i,n,s)=>i&&r(i,t,e[s]),Om=(t,e)=>(r,i,n,s)=>i&&r(i,t,e.get(s)),Rm=(t,e)=>(r,i,n,s)=>i&&r(i,t,e.get(n.name)),Mm=(t,e)=>(r,i,n,s)=>i&&r(i,t,e[n.name]),Um=(t,e,r)=>{let i=t.type.children.map((t=>qt.getVisitFn(t.type))),n=r instanceof Map?Rm(e,r):r instanceof N?Om(e,r):Array.isArray(r)?Em(e,r):Mm(e,r);t.type.children.forEach(((e,r)=>n(i[r],t.children[r],e,r)))},km=(t,e,r)=>{t.type.mode===Tt.Dense?qu(t,e,r):Zu(t,e,r)},qu=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];qt.visit(n,t.valueOffsets[e],r)},Zu=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];qt.visit(n,e,r)},Lm=(t,e,r)=>{var i;null===(i=t.dictionary)||void 0===i||i.set(t.values[e],r)},Ca=(t,e,r)=>{t.type.unit===ce.DAY_TIME?to(t,e,r):eo(t,e,r)},to=({values:t},e,r)=>{t.set(r.subarray(0,2),2*e)},eo=({values:t},e,r)=>{t[e]=12*r[0]+r[1]%12},Nm=(t,e,r)=>{let{stride:i}=t,n=t.children[0],s=qt.getVisitFn(n);if(Array.isArray(r))for(let t=-1,a=e*i;++t`${$e(t)}: ${$e(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Pa(this[Ze],this[Cn])}},Pa=class{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let t=this.childIndex;return tt.name))}has(t,e){return-1!==t[Ze].type.children.findIndex((t=>t.name===e))}getOwnPropertyDescriptor(t,e){if(-1!==t[Ze].type.children.findIndex((t=>t.name===e)))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let r=t[Ze].type.children.findIndex((t=>t.name===e));if(-1!==r){let i=Ut.visit(t[Ze].children[r],t[Cn]);return Reflect.set(t,e,i),i}}set(t,e,r){let i=t[Ze].type.children.findIndex((t=>t.name===e));return-1!==i?(qt.visit(t[Ze].children[i],t[Cn],r),Reflect.set(t,e,r)):!(!Reflect.has(t,e)&&"symbol"!=typeof e)&&Reflect.set(t,e,r)}},O=class extends D{};function V(t){return(e,r)=>e.getValid(r)?t(e,r):null}var Cm=(t,e)=>864e5*t[e],Ha=(t,e)=>4294967296*t[e+1]+(t[e]>>>0),Pm=(t,e)=>t[e+1]/1e3*4294967296+(t[e]>>>0)/1e3,Vm=(t,e)=>t[e+1]/1e6*4294967296+(t[e]>>>0)/1e6,Qu=t=>new Date(t),Hm=(t,e)=>Qu(Cm(t,e)),zm=(t,e)=>Qu(Ha(t,e)),Wm=(t,e)=>null,td=(t,e,r)=>{if(r+1>=e.length)return null;let i=e[r],n=e[r+1];return t.subarray(i,n)},jm=({offset:t,values:e},r)=>{let i=t+r;return 0!=(e[i>>3]&1<Hm(t,e),rd=({values:t},e)=>zm(t,2*e),Xr=({stride:t,values:e},r)=>e[t*r],$m=({stride:t,values:e},r)=>Ws(e[t*r]),nd=({values:t},e)=>t[e],Ym=({stride:t,values:e},r)=>e.subarray(t*r,t*(r+1)),Xm=({values:t,valueOffsets:e},r)=>td(t,e,r),Gm=({values:t,valueOffsets:e},r)=>{let i=td(t,e,r);return null!==i?_i(i):null},Km=({values:t},e)=>t[e],Jm=({type:t,values:e},r)=>t.precision!==It.HALF?e[r]:Ws(e[r]),qm=(t,e)=>t.type.unit===Jt.DAY?ed(t,e):rd(t,e),id=({values:t},e)=>1e3*Ha(t,2*e),sd=({values:t},e)=>Ha(t,2*e),od=({values:t},e)=>Pm(t,2*e),ad=({values:t},e)=>Vm(t,2*e),Zm=(t,e)=>{switch(t.type.unit){case G.SECOND:return id(t,e);case G.MILLISECOND:return sd(t,e);case G.MICROSECOND:return od(t,e);case G.NANOSECOND:return ad(t,e)}},cd=({values:t},e)=>t[e],ld=({values:t},e)=>t[e],ud=({values:t},e)=>t[e],dd=({values:t},e)=>t[e],Qm=(t,e)=>{switch(t.type.unit){case G.SECOND:return cd(t,e);case G.MILLISECOND:return ld(t,e);case G.MICROSECOND:return ud(t,e);case G.NANOSECOND:return dd(t,e)}},t_=({values:t,stride:e},r)=>hn.decimal(t.subarray(e*r,e*(r+1))),e_=(t,e)=>{let{valueOffsets:r,stride:i,children:n}=t,{[e*i]:s,[e*i+1]:a}=r,o=n[0].slice(s,a-s);return new N([o])},r_=(t,e)=>{let{valueOffsets:r,children:i}=t,{[e]:n,[e+1]:s}=r,a=i[0];return new ar(a.slice(n,s-n))},n_=(t,e)=>new Yr(t,e),i_=(t,e)=>t.type.mode===Tt.Dense?fd(t,e):hd(t,e),fd=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return Ut.visit(i,t.valueOffsets[e])},hd=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return Ut.visit(i,e)},s_=(t,e)=>{var r;return null===(r=t.dictionary)||void 0===r?void 0:r.get(t.values[e])},o_=(t,e)=>t.type.unit===ce.DAY_TIME?pd(t,e):md(t,e),pd=({values:t},e)=>t.subarray(2*e,2*(e+1)),md=({values:t},e)=>{let r=t[e],i=new Int32Array(2);return i[0]=Math.trunc(r/12),i[1]=Math.trunc(r%12),i},a_=(t,e)=>{let{stride:r,children:i}=t,n=i[0].slice(e*r,r);return new N([n])};O.prototype.visitNull=V(Wm),O.prototype.visitBool=V(jm),O.prototype.visitInt=V(Km),O.prototype.visitInt8=V(Xr),O.prototype.visitInt16=V(Xr),O.prototype.visitInt32=V(Xr),O.prototype.visitInt64=V(nd),O.prototype.visitUint8=V(Xr),O.prototype.visitUint16=V(Xr),O.prototype.visitUint32=V(Xr),O.prototype.visitUint64=V(nd),O.prototype.visitFloat=V(Jm),O.prototype.visitFloat16=V($m),O.prototype.visitFloat32=V(Xr),O.prototype.visitFloat64=V(Xr),O.prototype.visitUtf8=V(Gm),O.prototype.visitBinary=V(Xm),O.prototype.visitFixedSizeBinary=V(Ym),O.prototype.visitDate=V(qm),O.prototype.visitDateDay=V(ed),O.prototype.visitDateMillisecond=V(rd),O.prototype.visitTimestamp=V(Zm),O.prototype.visitTimestampSecond=V(id),O.prototype.visitTimestampMillisecond=V(sd),O.prototype.visitTimestampMicrosecond=V(od),O.prototype.visitTimestampNanosecond=V(ad),O.prototype.visitTime=V(Qm),O.prototype.visitTimeSecond=V(cd),O.prototype.visitTimeMillisecond=V(ld),O.prototype.visitTimeMicrosecond=V(ud),O.prototype.visitTimeNanosecond=V(dd),O.prototype.visitDecimal=V(t_),O.prototype.visitList=V(e_),O.prototype.visitStruct=V(n_),O.prototype.visitUnion=V(i_),O.prototype.visitDenseUnion=V(fd),O.prototype.visitSparseUnion=V(hd),O.prototype.visitDictionary=V(s_),O.prototype.visitInterval=V(o_),O.prototype.visitIntervalDayTime=V(pd),O.prototype.visitIntervalYearMonth=V(md),O.prototype.visitFixedSizeList=V(a_),O.prototype.visitMap=V(r_);var Ut=new O,Ne=Symbol.for("keys"),Pn=Symbol.for("vals"),ar=class{constructor(t){return this[Ne]=new N([t.children[0]]).memoize(),this[Pn]=t.children[1],new Proxy(this,new Wa)}[Symbol.iterator](){return new za(this[Ne],this[Pn])}get size(){return this[Ne].length}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[Ne],e=this[Pn],r={};for(let i=-1,n=t.length;++i`${$e(t)}: ${$e(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},za=class{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){let t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),Ut.visit(this.vals,t)]})}},Wa=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Ne].toArray().map(String)}has(t,e){return t[Ne].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[Ne].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let r=t[Ne].indexOf(e);if(-1!==r){let i=Ut.visit(Reflect.get(t,Pn),r);return Reflect.set(t,e,i),i}}set(t,e,r){let i=t[Ne].indexOf(e);return-1!==i?(qt.visit(Reflect.get(t,Pn),i,r),Reflect.set(t,e,r)):!!Reflect.has(t,e)&&Reflect.set(t,e,r)}},_d;function c_(t,e,r){let i=t.length,n=e>-1?e:i+e%i;return r?r(t,n):n}function Si(t,e,r,i){let{length:n=0}=t,s="number"!=typeof e?0:e,a="number"!=typeof r?n:r;return s<0&&(s=(s%n+n)%n),a<0&&(a=(a%n+n)%n),an&&(a=n),i?i(t,s,a):[s,a]}Object.defineProperties(ar.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Ne]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Pn]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var yd=t=>t!=t;function Gr(t){if("object"!=typeof t||null===t)return yd(t)?yd:e=>e===t;if(t instanceof Date){let e=t.valueOf();return t=>t instanceof Date&&t.valueOf()===e}return ArrayBuffer.isView(t)?e=>!!e&&Aa(t,e):t instanceof Map?u_(t):Array.isArray(t)?l_(t):t instanceof N?d_(t):f_(t,!0)}function l_(t){let e=[];for(let r=-1,i=t.length;++r!1;let i=[];for(let e=-1,n=r.length;++e{if(!r||"object"!=typeof r)return!1;switch(r.constructor){case Array:return h_(t,r);case Map:return bd(t,r,r.keys());case ar:case Yr:case Object:case void 0:return bd(t,r,e||Object.keys(r))}return r instanceof N&&p_(t,r)}}function h_(t,e){let r=t.length;if(e.length!==r)return!1;for(let i=-1;++i>i}function m_(t,e,r){return r?!!(t[e>>3]|=1<>3]&=~(1<0||r.byteLength>3):mn(new pn(r,t,e,null,io)).subarray(0,i)),n}return r}function mn(t){let e=[],r=0,i=0,n=0;for(let s of t)s&&(n|=1<0)&&(e[r++]=n);let s=new Uint8Array(e.length+7&-8);return s.set(e),s}dn($a,{BitIterator:()=>pn,getBit:()=>gd,getBool:()=>io,packBools:()=>mn,popcnt_array:()=>wd,popcnt_bit_range:()=>Ii,popcnt_uint32:()=>no,setBool:()=>m_,truncateBitmap:()=>Vn});var pn=class{constructor(t,e,r,i,n){this.bytes=t,this.length=r,this.context=i,this.get=n,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}next(){return this.index>3<<3,n=e+(e%8==0?0:8-e%8);return Ii(t,e,n)+Ii(t,i,r)+wd(t,n>>3,i-n>>3)}function wd(t,e,r){let i=0,n=Math.trunc(e),s=new DataView(t.buffer,t.byteOffset,t.byteLength),a=void 0===r?t.byteLength:n+r;for(;a-n>=4;)i+=no(s.getUint32(n)),n+=4;for(;a-n>=2;)i+=no(s.getUint16(n)),n+=2;for(;a-n>=1;)i+=no(s.getUint8(n)),n+=1;return i}function no(t){let e=Math.trunc(t);return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}var __=-1,it=class{constructor(t,e,r,i,n,s=[],a){let o;this.type=t,this.children=s,this.dictionary=a,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),n instanceof it?(this.stride=n.stride,this.values=n.values,this.typeIds=n.typeIds,this.nullBitmap=n.nullBitmap,this.valueOffsets=n.valueOffsets):(this.stride=De(t),n&&((o=n[0])&&(this.valueOffsets=o),(o=n[1])&&(this.values=o),(o=n[2])&&(this.nullBitmap=o),(o=n[3])&&(this.typeIds=o))),this.nullable=0!==this._nullCount&&this.nullBitmap&&this.nullBitmap.byteLength>0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let t=0,{valueOffsets:e,values:r,nullBitmap:i,typeIds:n}=this;return e&&(t+=e.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),n&&(t+=n.byteLength),this.children.reduce(((t,e)=>t+e.byteLength),t)}get nullCount(){let t,e=this._nullCount;return e<=__&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-Ii(t,this.offset,this.offset+this.length)),e}getValid(t){if(this.nullable&&this.nullCount>0){let e=this.offset+t;return 0!=(this.nullBitmap[e>>3]&1<>3){let{nullBitmap:t}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:t,_nullCount:0})}let{nullBitmap:r,offset:i}=this,n=i+t>>3,s=(i+t)%8,a=r[n]>>s&1;return e?0===a&&(r[n]|=1<>3).fill(255,0,e>>3);i[e>>3]=(1<0&&i.set(Vn(this.offset,e,this.nullBitmap),0);let n=this.buffers;return n[Le.VALIDITY]=i,this.clone(this.type,0,t,r+(t-e),n)}_sliceBuffers(t,e,r,i){let n,{buffers:s}=this;return(n=s[Le.TYPE])&&(s[Le.TYPE]=n.subarray(t,t+e)),(n=s[Le.OFFSET])&&(s[Le.OFFSET]=n.subarray(t,t+e+1))||(n=s[Le.DATA])&&(s[Le.DATA]=6===i?n:n.subarray(r*t,r*(t+e))),s}_sliceChildren(t,e,r){return t.map((t=>t.slice(e,r)))}};it.prototype.children=Object.freeze([]);var _n=class extends D{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){let{type:e,offset:r=0,length:i=0}=t;return new it(e,r,i,0)}visitBool(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length>>3,nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitInt(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length,nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitFloat(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length,nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitUtf8(t){let{type:e,offset:r=0}=t,i=k(t.data),n=k(t.nullBitmap),s=fn(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new it(e,r,a,o,[s,i,n])}visitBinary(t){let{type:e,offset:r=0}=t,i=k(t.data),n=k(t.nullBitmap),s=fn(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new it(e,r,a,o,[s,i,n])}visitFixedSizeBinary(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length/De(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitDate(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length/De(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitTimestamp(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length/De(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitTime(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length/De(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitDecimal(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length/De(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitList(t){let{type:e,offset:r=0,child:i}=t,n=k(t.nullBitmap),s=fn(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new it(e,r,a,o,[s,void 0,n],[i])}visitStruct(t){let{type:e,offset:r=0,children:i=[]}=t,n=k(t.nullBitmap),{length:s=i.reduce(((t,{length:e})=>Math.max(t,e)),0),nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,void 0,n],i)}visitUnion(t){let{type:e,offset:r=0,children:i=[]}=t,n=k(t.nullBitmap),s=Y(e.ArrayType,t.typeIds),{length:a=s.length,nullCount:o=(t.nullBitmap?-1:0)}=t;if(T.isSparseUnion(e))return new it(e,r,a,o,[void 0,void 0,n,s],i);let l=fn(t.valueOffsets);return new it(e,r,a,o,[l,void 0,n,s],i)}visitDictionary(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.indices.ArrayType,t.data),{dictionary:s=new N([(new _n).visit({type:e.dictionary})])}=t,{length:a=n.length,nullCount:o=(t.nullBitmap?-1:0)}=t;return new it(e,r,a,o,[void 0,n,i],[],s)}visitInterval(t){let{type:e,offset:r=0}=t,i=k(t.nullBitmap),n=Y(e.ArrayType,t.data),{length:s=n.length/De(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,n,i])}visitFixedSizeList(t){let{type:e,offset:r=0,child:i=(new _n).visit({type:e.valueType})}=t,n=k(t.nullBitmap),{length:s=i.length/De(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new it(e,r,s,a,[void 0,void 0,n],[i])}visitMap(t){let{type:e,offset:r=0,child:i=(new _n).visit({type:e.childType})}=t,n=k(t.nullBitmap),s=fn(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new it(e,r,a,o,[s,void 0,n],[i])}};function P(t){return(new _n).visit(t)}var Ai=class{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndext+e.nullCount),0)}function oo(t){return t.reduce(((t,e,r)=>(t[r+1]=t[r]+e.length,t)),new Uint32Array(t.length+1))}function ao(t,e,r,i){let n=[];for(let s=-1,a=t.length;++s=i)break;if(r>=o+l)continue;if(o>=r&&o+l<=i){n.push(a);continue}let u=Math.max(0,r-o),h=Math.min(i-o,l);n.push(a.slice(u,h-u))}return 0===n.length&&n.push(t[0].slice(0,0)),n}function Ya(t,e,r,i){let n=0,s=0,a=e.length-1;do{if(n>=a-1)return r0?0:-1}function b_(t,e){let{nullBitmap:r}=t;if(!r||t.nullCount<=0)return-1;let i=0;for(let n of new pn(r,t.offset+(e||0),t.length,r,io)){if(!n)return i;++i}return-1}function X(t,e,r){if(void 0===e)return-1;if(null===e)return b_(t,r);let i=Ut.getVisitFn(t),n=Gr(e);for(let e=(r||0)-1,s=t.length;++e{let r=t.data[e];return r.values.subarray(0,r.length)[Symbol.iterator]()}));let r=0;return new Ai(t.data.length,(e=>{let i=t.data[e].length,n=t.slice(r,r+i);return r+=i,new Xa(n)}))}var Xa=class{constructor(t){this.vector=t,this.index=0}next(){return this.indext+e,cr=class extends D{visitNull(t,e){return 0}visitInt(t,e){return t.type.bitWidth/8}visitFloat(t,e){return t.type.ArrayType.BYTES_PER_ELEMENT}visitBool(t,e){return 1/8}visitDecimal(t,e){return t.type.bitWidth/8}visitDate(t,e){return 4*(t.type.unit+1)}visitTime(t,e){return t.type.bitWidth/8}visitTimestamp(t,e){return t.type.unit===G.SECOND?4:8}visitInterval(t,e){return 4*(t.type.unit+1)}visitStruct(t,e){return t.children.reduce(((t,r)=>t+Ee.visit(r,e)),0)}visitFixedSizeBinary(t,e){return t.type.byteWidth}visitMap(t,e){return 8+t.children.reduce(((t,r)=>t+Ee.visit(r,e)),0)}visitDictionary(t,e){var r;return t.type.indices.bitWidth/8+((null===(r=t.dictionary)||void 0===r?void 0:r.getByteLength(t.values[e]))||0)}},w_=({valueOffsets:t},e)=>t[e+1]-t[e]+8,v_=({valueOffsets:t},e)=>t[e+1]-t[e]+8,S_=({valueOffsets:t,stride:e,children:r},i)=>{let n=r[0],{[i*e]:s}=t,{[i*e+1]:a}=t,o=Ee.getVisitFn(n.type),l=n.slice(s,a-s),u=8;for(let t=-1,e=a-s;++t{let i=e[0],n=i.slice(r*t,t),s=Ee.getVisitFn(i.type),a=0;for(let t=-1,e=n.length;++tt.type.mode===Tt.Dense?Sd(t,e):Id(t,e),Sd=({type:t,children:e,typeIds:r,valueOffsets:i},n)=>{let s=t.typeIdToChildIndex[r[n]];return 8+Ee.visit(e[s],i[n])},Id=({children:t},e)=>4+Ee.visitMany(t,t.map((()=>e))).reduce(g_,0);cr.prototype.visitUtf8=w_,cr.prototype.visitBinary=v_,cr.prototype.visitList=S_,cr.prototype.visitFixedSizeList=I_,cr.prototype.visitUnion=A_,cr.prototype.visitDenseUnion=Sd,cr.prototype.visitSparseUnion=Id;var Ee=new cr,Ad,Fd={},xd={},N=class{constructor(t){var e,r,i;let n=t[0]instanceof N?t.flatMap((t=>t.data)):t;if(0===n.length||n.some((t=>!(t instanceof it))))throw new TypeError("Vector constructor expects an Array of Data instances.");let s=null===(e=n[0])||void 0===e?void 0:e.type;switch(n.length){case 0:this._offsets=[0];break;case 1:{let{get:t,set:e,indexOf:r,byteLength:i}=Fd[s.typeId],a=n[0];this.isValid=t=>Fi(a,t),this.get=e=>t(a,e),this.set=(t,r)=>e(a,t,r),this.indexOf=t=>r(a,t),this.getByteLength=t=>i(a,t),this._offsets=[0,a.length];break}default:Object.setPrototypeOf(this,xd[s.typeId]),this._offsets=oo(n)}this.data=n,this.type=s,this.stride=De(s),this.numChildren=null!==(i=null===(r=s.children)||void 0===r?void 0:r.length)&&void 0!==i?i:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return-1===this._byteLength&&(this._byteLength=this.data.reduce(((t,e)=>t+e.byteLength),0)),this._byteLength}get nullCount(){return-1===this._nullCount&&(this._nullCount=so(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${h[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>0}getByteLength(t){return 0}[Symbol.iterator](){return Hn.visit(this)}concat(...t){return new N(this.data.concat(t.flatMap((t=>t.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new N(Si(this,t,e,(({data:t,_offsets:e},r,i)=>ao(t,e,r,i))))}toJSON(){return[...this]}toArray(){let{type:t,data:e,length:r,stride:i,ArrayType:n}=this;switch(t.typeId){case h.Int:case h.Float:case h.Decimal:case h.Time:case h.Timestamp:switch(e.length){case 0:return new n;case 1:return e[0].values.subarray(0,r*i);default:return e.reduce(((t,{values:e})=>(t.array.set(e,t.offset),t.offset+=e.length,t)),{array:new n(r*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e;return this.getChildAt(null===(e=this.type.children)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&te[t]))):null}get isMemoized(){return!!T.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(T.isDictionary(this.type)){let t=new zn(this.data[0].dictionary),e=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new N(e)}return new zn(this)}unmemoize(){if(T.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),e=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new N(e)}return this}};Ad=Symbol.toStringTag,N[Ad]=(t=>{t.type=T.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._nullCount=-1,t._byteLength=-1,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;let e=Object.keys(h).map((t=>h[t])).filter((t=>"number"==typeof t&&t!==h.NONE));for(let r of e){let e=Ut.getVisitFnByTypeId(r),i=qt.getVisitFnByTypeId(r),n=yn.getVisitFnByTypeId(r),s=Ee.getVisitFnByTypeId(r);Fd[r]={get:e,set:i,indexOf:n,byteLength:s},xd[r]=Object.create(t,{isValid:{value:Kr(Fi)},get:{value:Kr(Ut.getVisitFnByTypeId(r))},set:{value:co(qt.getVisitFnByTypeId(r))},indexOf:{value:lo(yn.getVisitFnByTypeId(r))},getByteLength:{value:Kr(Ee.getVisitFnByTypeId(r))}})}return"Vector"})(N.prototype);var zn=class extends N{constructor(t){super(t.data);let e=this.get,r=this.set,i=this.slice,n=new Array(this.length);Object.defineProperty(this,"get",{value(t){let r=n[t];if(void 0!==r)return r;let i=e.call(this,t);return n[t]=i,i}}),Object.defineProperty(this,"set",{value(t,e){r.call(this,t,e),n[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new zn(i.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new N(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}};function Td(t){if(!t||t.length<=0)return function(t){return!0};let e="",r=t.filter((t=>t==t));return r.length>0&&(e=`\n switch (x) {${r.map((t=>`\n case ${F_(t)}:`)).join("")}\n return false;\n }`),t.length!==r.length&&(e=`if (x !== x) return false;\n${e}`),new Function("x",`${e}\nreturn true;`)}function F_(t){return"bigint"!=typeof t?$e(t):As?`${$e(t)}n`:`"${$e(t)}"`}var Ga=(t,e)=>(t*e+63&-64||64)/e,x_=(t,e=0)=>t.length>=e?t.subarray(0,e):Mn(new t.constructor(e),t,0),Jr=class{constructor(t,e=1){this.buffer=t,this.stride=e,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t.constructor,this._resize(this.length=Math.trunc(t.length/e))}get byteLength(){return Math.trunc(this.length*this.stride*this.BYTES_PER_ELEMENT)}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(t,e){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;let e=this.stride,r=this.length*e,i=this.buffer.length;r>=i&&this._resize(Ga(0===i?1*r:2*r,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=Ga(t*this.stride,this.BYTES_PER_ELEMENT);let e=x_(this.buffer,t);return this.clear(),e}clear(){return this.length=0,this._resize(0),this}_resize(t){return this.buffer=Mn(new this.ArrayType(t),this.buffer)}};Jr.prototype.offset=0;var Ur=class extends Jr{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}},Wn=class extends Ur{constructor(t=new Uint8Array(0)){super(t,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,e){let{buffer:r}=this.reserve(t-this.length+1),i=t>>3,n=t%8,s=r[i]>>n&1;return e?0===s&&(r[i]|=1<this.length&&this.set(t-1,0),super.flush(t+1)}},At=class{constructor({type:t,nullValues:e}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=e,this.stride=De(t),this._nulls=new Wn,e&&e.length>0&&(this._isValid=Td(e))}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}toVector(){return new N([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0,{_offsets:e,_values:r,_nulls:i,_typeIds:n,children:s}=this;return e&&(t+=e.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),n&&(t+=n.byteLength),s.reduce(((t,e)=>t+e.byteLength),t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce(((t,e)=>t+e.reservedByteLength),t)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}setValue(t,e){this._setValue(this,t,e)}setValid(t,e){return this.length=this._nulls.set(t,+e).length,e}addChild(t,e=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){let t,e,r,i,{type:n,length:s,nullCount:a,_typeIds:o,_offsets:l,_values:u,_nulls:h}=this;(e=null==o?void 0:o.flush(s))?i=null==l?void 0:l.flush(s):t=(i=null==l?void 0:l.flush(s))?null==u?void 0:u.flush(l.last()):null==u?void 0:u.flush(s),a>0&&(r=null==h?void 0:h.flush(s));let d=this.children.map((t=>t.flush()));return this.clear(),P({type:n,length:s,nullCount:a,children:d,child:d[0],data:t,typeIds:e,nullBitmap:r,valueOffsets:i})}finish(){this.finished=!0;for(let t of this.children)t.finish();return this}clear(){var t,e,r,i;this.length=0,null===(t=this._nulls)||void 0===t||t.clear(),null===(e=this._values)||void 0===e||e.clear(),null===(r=this._offsets)||void 0===r||r.clear(),null===(i=this._typeIds)||void 0===i||i.clear();for(let t of this.children)t.clear();return this}};At.prototype.length=1,At.prototype.stride=1,At.prototype.children=null,At.prototype.finished=!1,At.prototype.nullValues=null,At.prototype._isValid=()=>!0;var Ht=class extends At{constructor(t){super(t),this._values=new Ur(new this.ArrayType(0),this.stride)}setValue(t,e){let r=this._values;return r.reserve(t-r.length+1),super.setValue(t,e)}},lr=class extends At{constructor(t){super(t),this._pendingLength=0,this._offsets=new jn}setValue(t,e){let r=this._pending||(this._pending=new Map),i=r.get(t);i&&(this._pendingLength-=i.length),this._pendingLength+=e instanceof ar?e[Ne].length:e.length,r.set(t,e)}setValid(t,e){return!!super.setValid(t,e)||((this._pending||(this._pending=new Map)).set(t,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}},bn=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(t,e,r,i){return t.prep(8,24),t.writeInt64(i),t.pad(4),t.writeInt32(r),t.writeInt64(e),t.offset()}},ur=new Int32Array(2),uo=new Float32Array(ur.buffer),fo=new Float64Array(ur.buffer),$n=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],kt=class{constructor(t,e){this.low=0|t,this.high=0|e}static create(t,e){return 0==t&&0==e?kt.ZERO:new kt(t,e)}toFloat64(){return(this.low>>>0)+4294967296*this.high}equals(t){return this.low==t.low&&this.high==t.high}},xi;kt.ZERO=new kt(0,0),function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"}(xi||(xi={}));var ue=class{constructor(t){this.bytes_=t,this.position_=0}static allocate(t){return new ue(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return new kt(this.readInt32(t),this.readInt32(t+4))}readUint64(t){return new kt(this.readUint32(t),this.readUint32(t+4))}readFloat32(t){return ur[0]=this.readInt32(t),uo[0]}readFloat64(t){return ur[$n?0:1]=this.readInt32(t),ur[$n?1:0]=this.readInt32(t+4),fo[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,e.low),this.writeInt32(t+4,e.high)}writeUint64(t,e){this.writeUint32(t,e.low),this.writeUint32(t+4,e.high)}writeFloat32(t,e){uo[0]=e,this.writeInt32(t,ur[0])}writeFloat64(t,e){fo[0]=e,this.writeInt32(t,ur[$n?0:1]),this.writeInt32(t+4,ur[$n?1:0])}getBufferIdentifier(){if(this.bytes_.length>10),56320+(1023&e)))}return i}__union_with_string(t,e){return"string"==typeof t?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(4!=t.length)throw new Error("FlatBuffers: file identifier must be length 4");for(let e=0;e<4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1;return!0}createLong(t,e){return kt.create(t,e)}createScalarList(t,e){let r=[];for(let i=0;ithis.minalign&&(this.minalign=t);let r=1+~(this.bb.capacity()-this.space+e)&t-1;for(;this.space=0&&0==this.vtable[e];e--);let r=e+1;for(;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);this.addInt16(t-this.object_start);let i=2*(r+2);this.addInt16(i);let n=0,s=this.space;t:for(e=0;e=0;e--)this.writeInt8(t.charCodeAt(e))}this.prep(this.minalign,4+i),this.addOffset(t),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,e){this.finish(t,e,!0)}requiredField(t,e){let r=this.bb.capacity()-t,i=r-this.bb.readInt32(r);if(0==this.bb.readInt16(i+e))throw new Error("FlatBuffers: field "+e+" must be set")}startVector(t,e,r){this.notNested(),this.vector_num_elems=e,this.prep(4,t*e),this.prep(r,t*e)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);let e=this.createString(t);return this.string_maps.set(t,e),e}createString(t){if(!t)return 0;let e;if(t instanceof Uint8Array)e=t;else{e=[];let r=0;for(;r=56320?n:(n<<10)+t.charCodeAt(r++)+-56613888,i<128?e.push(i):(i<2048?e.push(i>>6&31|192):(i<65536?e.push(i>>12&15|224):e.push(i>>18&7|240,i>>12&63|128),e.push(i>>6&63|128)),e.push(63&i|128))}}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);for(let t=0,r=this.space,i=this.bb.bytes();t=0;r--)t.addInt32(e[r]);return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,r){return jt.startUnion(t),jt.addMode(t,e),jt.addTypeIds(t,r),jt.endUnion(t)}},_r=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(t,e){return(e||new _r).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,e){return t.setPosition(t.position()+4),(e||new _r).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return _r.startUtf8(t),_r.endUtf8(t)}},Ft;!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"}(Ft||(Ft={}));var Lt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(t,e){return(e||new Lt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,e){return t.setPosition(t.position()+4),(e||new Lt).__init(t.readInt32(t.position())+t.position(),t)}name(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){let t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}typeType(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):Ft.NONE}type(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){let e=this.bb.__offset(this.bb_pos,12);return e?(t||new Oe).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(t,e){let r=this.bb.__offset(this.bb_pos,14);return r?(e||new Lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}childrenLength(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,16);return r?(e||new gt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,Ft.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}},Bt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(t,e){return(e||new Bt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,e){return t.setPosition(t.position()+4),(e||new Bt).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Zr.Little}fields(t,e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new Lt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}fieldsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new gt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):this.bb.createLong(0,0)}featuresLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,Zr.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static addFeatures(t,e){t.addFieldOffset(3,e,0)}static createFeaturesVector(t,e){t.startVector(8,e.length,8);for(let r=e.length-1;r>=0;r--)t.addInt64(e[r]);return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,e){t.finish(e)}static finishSizePrefixedSchemaBuffer(t,e){t.finish(e,void 0,!0)}static createSchema(t,e,r,i,n){return Bt.startSchema(t),Bt.addEndianness(t,e),Bt.addFields(t,r),Bt.addCustomMetadata(t,i),Bt.addFeatures(t,n),Bt.endSchema(t)}},re=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new re).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new re).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):qr.V1}schema(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new Bt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new bn).__init(this.bb.__vector(this.bb_pos+r)+24*t,this.bb):null}dictionariesLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){let r=this.bb.__offset(this.bb_pos,10);return r?(e||new bn).__init(this.bb.__vector(this.bb_pos+r)+24*t,this.bb):null}recordBatchesLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new gt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,qr.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}},q=class{constructor(t=[],e,r){this.fields=t||[],this.metadata=e||new Map,r||(r=Ka(t)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((t=>t.name))}toString(){return`Schema<{ ${this.fields.map(((t,e)=>`${e}: ${t}`)).join(", ")} }>`}select(t){let e=new Set(t),r=this.fields.filter((t=>e.has(t.name)));return new q(r,this.metadata)}selectAt(t){let e=t.map((t=>this.fields[t])).filter(Boolean);return new q(e,this.metadata)}assign(...t){let e=t[0]instanceof q?t[0]:Array.isArray(t[0])?new q(t[0]):new q(t),r=[...this.fields],i=po(po(new Map,this.metadata),e.metadata),n=e.fields.filter((t=>{let e=r.findIndex((e=>e.name===t.name));return!~e||(r[e]=t.clone({metadata:po(po(new Map,r[e].metadata),t.metadata)}))&&!1})),s=Ka(n,new Map);return new q([...r,...n],i,new Map([...this.dictionaries,...s]))}};q.prototype.fields=null,q.prototype.metadata=null,q.prototype.dictionaries=null;var z=class{constructor(t,e,r=!1,i){this.name=t,this.type=e,this.nullable=r,this.metadata=i||new Map}static new(...t){let[e,r,i,n]=t;return t[0]&&"object"==typeof t[0]&&(({name:e}=t[0]),void 0===r&&(r=t[0].type),void 0===i&&(i=t[0].nullable),void 0===n&&(n=t[0].metadata)),new z(`${e}`,r,i,n)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,r,i,n]=t;return t[0]&&"object"==typeof t[0]?({name:e=this.name,type:r=this.type,nullable:i=this.nullable,metadata:n=this.metadata}=t[0]):[e=this.name,r=this.type,i=this.nullable,n=this.metadata]=t,z.new(e,r,i,n)}};function po(t,e){return new Map([...t||new Map,...e||new Map])}function Ka(t,e=new Map){for(let r=-1,i=t.length;++r0&&Ka(i.children,e)}return e}z.prototype.type=null,z.prototype.name=null,z.prototype.nullable=null,z.prototype.metadata=null;var Bd=kt,T_=kr,B_=ue,Lr=class{constructor(t,e=Vt.V4,r,i){this.schema=t,this.version=e,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}static decode(t){t=new B_(k(t));let e=re.getRootAsFooter(t),r=q.decode(e.schema());return new Ja(r,e)}static encode(t){let e=new T_,r=q.encode(e,t.schema);re.startRecordBatchesVector(e,t.numRecordBatches);for(let r of[...t.recordBatches()].slice().reverse())tr.encode(e,r);let i=e.endVector();re.startDictionariesVector(e,t.numDictionaries);for(let r of[...t.dictionaryBatches()].slice().reverse())tr.encode(e,r);let n=e.endVector();return re.startFooter(e),re.addSchema(e,r),re.addVersion(e,Vt.V4),re.addRecordBatches(e,i),re.addDictionaries(e,n),re.finishFooterBuffer(e,re.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,e=-1,r=this.numRecordBatches;++e=0&&t=0&&t=0&&t=0&&tthis._closedPromiseResolve=t))}get closed(){return this._closedPromise}cancel(t){return A(this,void 0,void 0,(function*(){yield this.return(t)}))}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){let{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(wt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return Kt.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return Kt.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return A(this,void 0,void 0,(function*(){return yield this.abort(t),wt}))}return(t){return A(this,void 0,void 0,(function*(){return yield this.close(),wt}))}read(t){return A(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return A(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((t,e)=>{this.resolvers.push({resolve:t,reject:e})})):Promise.resolve(wt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}},yr=class extends mo{write(t){if((t=k(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?_i(this.toUint8Array(!0)):this.toUint8Array(!1).then(_i)}toUint8Array(t=!1){return t?Te(this._values)[0]:(()=>A(this,void 0,void 0,(function*(){var t,e;let r=[],i=0;try{for(var n,s=Ue(this);!(n=yield s.next()).done;){let t=n.value;r.push(t),i+=t.byteLength}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=s.return)&&(yield e.call(s))}finally{if(t)throw t.error}}return Te(r,i)[0]})))()}},br=class{constructor(t){t&&(this.source=new qa(Kt.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},Se=class{constructor(t){t instanceof Se?this.source=t.source:t instanceof yr?this.source=new Nr(Kt.fromAsyncIterable(t)):Es(t)?this.source=new Nr(Kt.fromNodeStream(t)):bi(t)?this.source=new Nr(Kt.fromDOMStream(t)):Bs(t)?this.source=new Nr(Kt.fromDOMStream(t.body)):We(t)?this.source=new Nr(Kt.fromIterable(t)):(ze(t)||ke(t))&&(this.source=new Nr(Kt.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},qa=class{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||wt)}return(t){return Object.create(this.source.return&&this.source.return(t)||wt)}},Nr=class{constructor(t){this.source=t,this._closedPromise=new Promise((t=>this._closedPromiseResolve=t))}cancel(t){return A(this,void 0,void 0,(function*(){yield this.return(t)}))}get closed(){return this._closedPromise}read(t){return A(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return A(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(t,e="read"){return A(this,void 0,void 0,(function*(){return yield this.source.next({cmd:e,size:t})}))}throw(t){return A(this,void 0,void 0,(function*(){let e=this.source.throw&&(yield this.source.throw(t))||wt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}return(t){return A(this,void 0,void 0,(function*(){let e=this.source.return&&(yield this.source.return(t))||wt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}},Mi=class extends br{constructor(t,e){super(),this.position=0,this.buffer=k(t),this.size=typeof e>"u"?this.buffer.byteLength:e}readInt32(t){let{buffer:e,byteOffset:r}=this.readAt(t,4);return new DataView(e,r).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),tA(this,void 0,void 0,(function*(){this.size=(yield t.stat()).size,delete this._pending})))()}readInt32(t){return A(this,void 0,void 0,(function*(){let{buffer:e,byteOffset:r}=yield this.readAt(t,4);return new DataView(e,r).getInt32(0,!0)}))}seek(t){return A(this,void 0,void 0,(function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),tUi,Int128:()=>Ie,Int64:()=>$t,Uint64:()=>st});var Xn=8,Za=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Ui=class{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){let e=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),r=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]]),i=e[3]*r[3];this.buffer[0]=65535&i;let n=i>>>16;return i=e[2]*r[3],n+=i,i=e[3]*r[2]>>>0,n+=i,this.buffer[0]+=n<<16,this.buffer[1]=n>>>0>>16,this.buffer[1]+=e[1]*r[3]+e[2]*r[2]+e[3]*r[1],this.buffer[1]+=e[0]*r[3]+e[1]*r[2]+e[2]*r[1]+e[3]*r[0]<<16,this}_plus(t){let e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]>>0&&++e[1],e[1]>>0&&++e[2],e[2]>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${Yn(this.buffer[3])} ${Yn(this.buffer[2])} ${Yn(this.buffer[1])} ${Yn(this.buffer[0])}`}static multiply(t,e){return new Ie(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new Ie(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return Ie.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return Ie.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){let r=t.startsWith("-"),i=t.length,n=new Ie(e);for(let e=r?1:0;e0&&this.readData(t,r)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+e)}readDictionary(t){return this.dictionaries.get(t.id)}},_o=class extends ki{constructor(t,e,r,i){super(new Uint8Array(0),e,r,i),this.sources=t}readNullBitmap(t,e,{offset:r}=this.nextBufferRange()){return e<=0?new Uint8Array(0):mn(this.sources[r])}readOffsets(t,{offset:e}=this.nextBufferRange()){return Y(Uint8Array,Y(Int32Array,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return Y(Uint8Array,Y(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){let{sources:r}=this;return T.isTimestamp(t)||(T.isInt(t)||T.isTime(t))&&64===t.bitWidth||T.isDate(t)&&t.unit===Jt.MILLISECOND?Y(Uint8Array,$t.convertArray(r[e])):T.isDecimal(t)?Y(Uint8Array,Ie.convertArray(r[e])):T.isBinary(t)||T.isFixedSizeBinary(t)?D_(r[e]):T.isBool(t)?mn(r[e]):T.isUtf8(t)?jr(r[e].join("")):Y(Uint8Array,Y(t.ArrayType,r[e].map((t=>+t))))}};function D_(t){let e=t.join(""),r=new Uint8Array(e.length/2);for(let t=0;t>1]=Number.parseInt(e.slice(t,t+2),16);return r}var Gn=class extends lr{constructor(t){super(t),this._values=new Jr(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,k(e))}_flushPending(t,e){let r=this._offsets,i=this._values.reserve(e).buffer,n=0;for(let[e,s]of t)if(void 0===s)r.set(e,0);else{let t=s.length;i.set(s,n),r.set(e,t),n+=t}}},yo=class extends At{constructor(t){super(t),this._values=new Wn}setValue(t,e){this._values.set(t,+e)}},wn=class extends Ht{};wn.prototype._setValue=Ua;var Li=class extends wn{};Li.prototype._setValue=js;var Ni=class extends wn{};Ni.prototype._setValue=$s;var Ci=class extends Ht{};Ci.prototype._setValue=Na;var bo=class extends At{constructor({type:t,nullValues:e,dictionaryHashFunction:r}){super({type:new Be(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=vn({type:this.type.indices,nullValues:e}),this.dictionary=vn({type:this.type.dictionary,nullValues:null}),"function"==typeof r&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(t){return this.indices.isValid(t)}setValid(t,e){let r=this.indices;return e=r.setValid(t,e),this.length=r.length,e}setValue(t,e){let r=this._keysToIndices,i=this.valueToKey(e),n=r[i];return void 0===n&&(r[i]=n=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,n)}flush(){let t=this.type,e=this._dictionary,r=this.dictionary.toVector(),i=this.indices.flush().clone(t);return i.dictionary=e?e.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=i.dictionary,this.clear(),i}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(t){return"string"==typeof t?t:`${t}`}},Pi=class extends Ht{};Pi.prototype._setValue=Ma;var go=class extends At{setValue(t,e){let[r]=this.children,i=t*this.stride;for(let t=-1,n=e.length;++t0)throw new Error("FixedSizeListBuilder can only have one child.");let r=this.children.push(t);return this.type=new Je(this.type.listSize,new z(e,t.type,!0)),r}},Sn=class extends Ht{setValue(t,e){this._values.set(t,e)}},wo=class extends Sn{setValue(t,e){super.setValue(t,vi(e))}},vo=class extends Sn{},So=class extends Sn{},In=class extends Ht{};In.prototype._setValue=Ca;var Vi=class extends In{};Vi.prototype._setValue=to;var Hi=class extends In{};Hi.prototype._setValue=eo;var Pe=class extends Ht{setValue(t,e){this._values.set(t,e)}},Io=class extends Pe{},Ao=class extends Pe{},Fo=class extends Pe{},xo=class extends Pe{},To=class extends Pe{},Bo=class extends Pe{},Do=class extends Pe{},Eo=class extends Pe{},Oo=class extends lr{constructor(t){super(t),this._offsets=new jn}addChild(t,e="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Ge(new z(e,t.type,!0)),this.numChildren-1}_flushPending(t){let e=this._offsets,[r]=this.children;for(let[i,n]of t)if(void 0===n)e.set(i,0);else{let t=n.length,s=e.set(i,t).buffer[i];for(let e=-1;++e0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new qe(new z(e,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){let e=this._offsets,[r]=this.children;for(let[i,n]of t)if(void 0===n)e.set(i,0);else{let{[i]:t,[i+1]:s}=e.set(i,n.size).buffer;for(let e of n.entries())if(r.set(t,e),++t>=s)break}}},Mo=class extends At{setValue(t,e){}setValid(t,e){return this.length=Math.max(t+1,this.length),e}},Uo=class extends At{setValue(t,e){let{children:r,type:i}=this;switch(Array.isArray(e)||e.constructor){case!0:return i.children.forEach(((i,n)=>r[n].set(t,e[n])));case Map:return i.children.forEach(((i,n)=>r[n].set(t,e.get(i.name))));default:return i.children.forEach(((i,n)=>r[n].set(t,e[i.name])))}}setValid(t,e){return super.setValid(t,e)||this.children.forEach((r=>r.setValid(t,e))),e}addChild(t,e=`${this.numChildren}`){let r=this.children.push(t);return this.type=new bt([...this.type.children,new z(e,t.type,!0)]),r}},Cr=class extends Ht{};Cr.prototype._setValue=ka;var zi=class extends Cr{};zi.prototype._setValue=Ys;var Wi=class extends Cr{};Wi.prototype._setValue=Xs;var ji=class extends Cr{};ji.prototype._setValue=Gs;var $i=class extends Cr{};$i.prototype._setValue=Ks;var Pr=class extends Ht{};Pr.prototype._setValue=La;var Yi=class extends Pr{};Yi.prototype._setValue=Js;var Xi=class extends Pr{};Xi.prototype._setValue=qs;var Gi=class extends Pr{};Gi.prototype._setValue=Zs;var Ki=class extends Pr{};Ki.prototype._setValue=Qs;var Kn=class extends At{constructor(t){super(t),this._typeIds=new Ur(new Int8Array(0),1),"function"==typeof t.valueToChildTypeId&&(this._valueToChildTypeId=t.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,e){return this.set(this.length,t,e)}set(t,e,r){return void 0===r&&(r=this._valueToChildTypeId(this,e,t)),this.setValid(t,this.isValid(e))&&this.setValue(t,e,r),this}setValue(t,e,r){this._typeIds.set(t,r);let i=this.type.typeIdToChildIndex[r],n=this.children[i];null==n||n.set(t,e)}addChild(t,e=`${this.children.length}`){let r=this.children.push(t),{type:{children:i,mode:n,typeIds:s}}=this,a=[...i,new z(e,t.type)];return this.type=new Ke(n,[...s,r],a),r}_valueToChildTypeId(t,e,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},ko=class extends Kn{},Lo=class extends Kn{constructor(t){super(t),this._offsets=new Ur(new Int32Array(0))}setValue(t,e,r){let i=this._typeIds.set(t,r).buffer[t],n=this.getChildAt(this.type.typeIdToChildIndex[i]),s=this._offsets.set(t,n.length).buffer[t];null==n||n.set(s,e)}},Ji=class extends lr{constructor(t){super(t),this._values=new Jr(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,jr(e))}_flushPending(t,e){}};Ji.prototype._flushPending=Gn.prototype._flushPending;var tc=class extends D{visitNull(){return Mo}visitBool(){return yo}visitInt(){return Pe}visitInt8(){return Io}visitInt16(){return Ao}visitInt32(){return Fo}visitInt64(){return xo}visitUint8(){return To}visitUint16(){return Bo}visitUint32(){return Do}visitUint64(){return Eo}visitFloat(){return Sn}visitFloat16(){return wo}visitFloat32(){return vo}visitFloat64(){return So}visitUtf8(){return Ji}visitBinary(){return Gn}visitFixedSizeBinary(){return Pi}visitDate(){return wn}visitDateDay(){return Li}visitDateMillisecond(){return Ni}visitTimestamp(){return Cr}visitTimestampSecond(){return zi}visitTimestampMillisecond(){return Wi}visitTimestampMicrosecond(){return ji}visitTimestampNanosecond(){return $i}visitTime(){return Pr}visitTimeSecond(){return Yi}visitTimeMillisecond(){return Xi}visitTimeMicrosecond(){return Gi}visitTimeNanosecond(){return Ki}visitDecimal(){return Ci}visitList(){return Oo}visitStruct(){return Uo}visitUnion(){return Kn}visitDenseUnion(){return Lo}visitSparseUnion(){return ko}visitDictionary(){return bo}visitInterval(){return In}visitIntervalDayTime(){return Vi}visitIntervalYearMonth(){return Hi}visitFixedSizeList(){return go}visitMap(){return Ro}},Dd=new tc,U=class extends D{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((t,r)=>this.compareFields(t,e[r])))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}};function Ae(t,e){return e instanceof t.constructor}function qi(t,e){return t===e||Ae(t,e)}function Vr(t,e){return t===e||Ae(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function No(t,e){return t===e||Ae(t,e)&&t.precision===e.precision}function E_(t,e){return t===e||Ae(t,e)&&t.byteWidth===e.byteWidth}function ec(t,e){return t===e||Ae(t,e)&&t.unit===e.unit}function Zi(t,e){return t===e||Ae(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function Qi(t,e){return t===e||Ae(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function O_(t,e){return t===e||Ae(t,e)&&t.children.length===e.children.length&&gr.compareManyFields(t.children,e.children)}function R_(t,e){return t===e||Ae(t,e)&&t.children.length===e.children.length&&gr.compareManyFields(t.children,e.children)}function rc(t,e){return t===e||Ae(t,e)&&t.mode===e.mode&&t.typeIds.every(((t,r)=>t===e.typeIds[r]))&&gr.compareManyFields(t.children,e.children)}function M_(t,e){return t===e||Ae(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&gr.visit(t.indices,e.indices)&&gr.visit(t.dictionary,e.dictionary)}function nc(t,e){return t===e||Ae(t,e)&&t.unit===e.unit}function U_(t,e){return t===e||Ae(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&gr.compareManyFields(t.children,e.children)}function k_(t,e){return t===e||Ae(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&gr.compareManyFields(t.children,e.children)}U.prototype.visitNull=qi,U.prototype.visitBool=qi,U.prototype.visitInt=Vr,U.prototype.visitInt8=Vr,U.prototype.visitInt16=Vr,U.prototype.visitInt32=Vr,U.prototype.visitInt64=Vr,U.prototype.visitUint8=Vr,U.prototype.visitUint16=Vr,U.prototype.visitUint32=Vr,U.prototype.visitUint64=Vr,U.prototype.visitFloat=No,U.prototype.visitFloat16=No,U.prototype.visitFloat32=No,U.prototype.visitFloat64=No,U.prototype.visitUtf8=qi,U.prototype.visitBinary=qi,U.prototype.visitFixedSizeBinary=E_,U.prototype.visitDate=ec,U.prototype.visitDateDay=ec,U.prototype.visitDateMillisecond=ec,U.prototype.visitTimestamp=Zi,U.prototype.visitTimestampSecond=Zi,U.prototype.visitTimestampMillisecond=Zi,U.prototype.visitTimestampMicrosecond=Zi,U.prototype.visitTimestampNanosecond=Zi,U.prototype.visitTime=Qi,U.prototype.visitTimeSecond=Qi,U.prototype.visitTimeMillisecond=Qi,U.prototype.visitTimeMicrosecond=Qi,U.prototype.visitTimeNanosecond=Qi,U.prototype.visitDecimal=qi,U.prototype.visitList=O_,U.prototype.visitStruct=R_,U.prototype.visitUnion=rc,U.prototype.visitDenseUnion=rc,U.prototype.visitSparseUnion=rc,U.prototype.visitDictionary=M_,U.prototype.visitInterval=nc,U.prototype.visitIntervalDayTime=nc,U.prototype.visitIntervalYearMonth=nc,U.prototype.visitFixedSizeList=U_,U.prototype.visitMap=k_;var gr=new U;function An(t,e){return gr.compareSchemas(t,e)}function Ed(t,e){return gr.compareFields(t,e)}function Od(t,e){return gr.visit(t,e)}function vn(t){let e=t.type,r=new(Dd.getVisitFn(e)())(t);if(e.children&&e.children.length>0){let i=t.children||[],n={nullValues:t.nullValues},s=Array.isArray(i)?(t,e)=>i[e]||n:({name:t})=>i[t]||n;for(let[t,i]of e.children.entries()){let{type:e}=i,n=s(i,t);r.children.push(vn(Object.assign(Object.assign({},n),{type:e})))}}return r}function Co(t,e){return L_(t,e.map((t=>t.data.concat())))}function L_(t,e){let r,i=[...t.fields],n=[],s={numBatches:e.reduce(((t,e)=>Math.max(t,e.length)),0)},a=0,o=0,l=-1,u=e.length,h=[];for(;s.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,l=-1;++l0&&(n[a++]=P({type:new bt(i),length:o,nullCount:0,children:h.slice()})))}return[t=t.assign(i),n.map((e=>new mt(t,e)))]}function N_(t,e,r,i,n){var s;let a=(e+63&-64)>>3;for(let o=-1,l=i.length;++o=e)u===e?r[o]=l:(r[o]=l.slice(0,e),n.numBatches=Math.max(n.numBatches,i[o].unshift(l.slice(e,u-e))));else{let i=t[o];t[o]=i.clone({nullable:!0}),r[o]=null!==(s=null==l?void 0:l._changeLengthAndBackfillNullBitmap(e))&&void 0!==s?s:P({type:i.type,length:e,nullCount:e,nullBitmap:new Uint8Array(a)})}}return r}var Rd,Et=class{constructor(...t){var e,r;if(0===t.length)return this.batches=[],this.schema=new q([]),this._offsets=[0],this;let i,n;t[0]instanceof q&&(i=t.shift()),t[t.length-1]instanceof Uint32Array&&(n=t.pop());let s=t=>{if(t){if(t instanceof mt)return[t];if(t instanceof Et)return t.batches;if(t instanceof it){if(t.type instanceof bt)return[new mt(new q(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((t=>s(t)));if("function"==typeof t[Symbol.iterator])return[...t].flatMap((t=>s(t)));if("object"==typeof t){let e=Object.keys(t),r=e.map((e=>new N([t[e]]))),i=new q(e.map(((t,e)=>new z(String(t),r[e].type)))),[,n]=Co(i,r);return 0===n.length?[new mt(t)]:n}}}return[]},a=t.flatMap((t=>s(t)));if(i=null!==(r=null!=i?i:null===(e=a[0])||void 0===e?void 0:e.schema)&&void 0!==r?r:new q([]),!(i instanceof q))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let t of a){if(!(t instanceof mt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!An(i,t.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=a,this._offsets=null!=n?n:oo(this.data)}get data(){return this.batches.map((({data:t})=>t))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((t,e)=>t+e.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=so(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}set(t,e){}indexOf(t,e){return-1}getByteLength(t){return 0}[Symbol.iterator](){return this.batches.length>0?Hn.visit(new N(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(",\n ")}\n]`}concat(...t){let e=this.schema,r=this.data.concat(t.flatMap((({data:t})=>t)));return new Et(e,r.map((t=>new mt(e,t))))}slice(t,e){let r=this.schema;[t,e]=Si({length:this.numRows},t,e);let i=ao(this.data,this._offsets,t,e);return new Et(r,i.map((t=>new mt(r,t))))}getChild(t){return this.getChildAt(this.schema.fields.findIndex((e=>e.name===t)))}getChildAt(t){if(t>-1&&te.children[t]));if(0===e.length){let{type:r}=this.schema.fields[t],i=P({type:r,length:0,nullCount:0});e.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new N(e)}return null}setChild(t,e){var r;return this.setChildAt(null===(r=this.schema.fields)||void 0===r?void 0:r.findIndex((e=>e.name===t)),e)}setChildAt(t,e){let r=this.schema,i=[...this.batches];if(t>-1&&tthis.getChildAt(e)));[n[t],a[t]]=[s,e],[r,i]=Co(r,a)}return new Et(r,i)}select(t){let e=this.schema.fields.reduce(((t,e,r)=>t.set(e.name,r)),new Map);return this.selectAt(t.map((t=>e.get(t))).filter((t=>t>-1)))}selectAt(t){let e=this.schema.selectAt(t),r=this.batches.map((e=>e.selectAt(t)));return new Et(e,r)}assign(t){let e=this.schema.fields,[r,i]=t.schema.fields.reduce(((t,r,i)=>{let[n,s]=t,a=e.findIndex((t=>t.name===r.name));return~a?s[a]=i:n.push(i),t}),[[],[]]),n=this.schema.assign(t.schema),s=[...e.map(((t,e)=>[e,i[e]])).map((([e,r])=>void 0===r?this.getChildAt(e):t.getChildAt(r))),...r.map((e=>t.getChildAt(e)))].filter(Boolean);return new Et(...Co(n,s))}};Rd=Symbol.toStringTag,Et[Rd]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=Kr(Fi),t.get=Kr(Ut.getVisitFn(h.Struct)),t.set=co(qt.getVisitFn(h.Struct)),t.indexOf=lo(yn.getVisitFn(h.Struct)),t.getByteLength=Kr(Ee.getVisitFn(h.Struct)),"Table"))(Et.prototype);var Ud,mt=class{constructor(...t){switch(t.length){case 2:if([this.schema]=t,!(this.schema instanceof q))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=P({nullCount:0,type:new bt(this.schema.fields),children:this.schema.fields.map((t=>P({type:t.type,nullCount:0})))})]=t,!(this.data instanceof it))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=Md(this.schema,this.data.children);break;case 1:{let[e]=t,{fields:r,children:i,length:n}=Object.keys(e).reduce(((t,r,i)=>(t.children[i]=e[r],t.length=Math.max(t.length,e[r].length),t.fields[i]=z.new({name:r,type:e[r].type,nullable:!0}),t)),{length:0,fields:new Array,children:new Array}),s=new q(r),a=P({type:new bt(r),length:n,children:i,nullCount:0});[this.schema,this.data]=Md(s,a.children,n);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=kd(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(t){return this.data.getValid(t)}get(t){return Ut.visit(this.data,t)}set(t,e){return qt.visit(this.data,t,e)}indexOf(t,e){return yn.visit(this.data,t,e)}getByteLength(t){return Ee.visit(this.data,t)}[Symbol.iterator](){return Hn.visit(new N([this.data]))}toArray(){return[...this]}concat(...t){return new Et(this.schema,[this,...t])}slice(t,e){let[r]=new N([this.data]).slice(t,e).data;return new mt(this.schema,r)}getChild(t){var e;return this.getChildAt(null===(e=this.schema.fields)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&te.name===t)),e)}setChildAt(t,e){let r=this.schema,i=this.data;if(t>-1&&tt.name===e));~t&&(i[t]=this.data.children[t])}return new mt(e,P({type:r,length:this.numRows,children:i}))}selectAt(t){let e=this.schema.selectAt(t),r=t.map((t=>this.data.children[t])).filter(Boolean),i=P({type:new bt(e.fields),length:this.numRows,children:r});return new mt(e,i)}};function Md(t,e,r=e.reduce(((t,e)=>Math.max(t,e.length)),0)){var i;let n=[...t.fields],s=[...e],a=(r+63&-64)>>3;for(let[o,l]of t.fields.entries()){let t=e[o];(!t||t.length!==r)&&(n[o]=l.clone({nullable:!0}),s[o]=null!==(i=null==t?void 0:t._changeLengthAndBackfillNullBitmap(r))&&void 0!==i?i:P({type:l.type,length:r,nullCount:r,nullBitmap:new Uint8Array(a)}))}return[t.assign(n),P({type:new bt(n),length:r,children:s})]}function kd(t,e,r=new Map){for(let i=-1,n=t.length;++i0&&kd(n.children,s.children,r)}return r}Ud=Symbol.toStringTag,mt[Ud]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(mt.prototype);var Fn=class extends mt{constructor(t){let e=t.fields.map((t=>P({type:t.type})));super(t,P({type:new bt(t.fields),nullCount:0,children:e}))}},ts,es;!function(t){t[t.BUFFER=0]="BUFFER"}(ts||(ts={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(es||(es={}));var er=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new er).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+4),(e||new er).__init(t.readInt32(t.position())+t.position(),t)}codec(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):es.LZ4_FRAME}method(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):ts.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,es.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,ts.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,r){return er.startBodyCompression(t),er.addCodec(t,e),er.addMethod(t,r),er.endBodyCompression(t)}},Jn=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(e),t.offset()}},qn=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(e),t.offset()}},ne=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(t,e){return(e||new ne).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,e){return t.setPosition(t.position()+4),(e||new ne).__init(t.readInt32(t.position())+t.position(),t)}length(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}nodes(t,e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new qn).__init(this.bb.__vector(this.bb_pos+r)+16*t,this.bb):null}nodesLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new Jn).__init(this.bb.__vector(this.bb_pos+r)+16*t,this.bb):null}buffersLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new er).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}},Ve=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(t,e){return(e||new Ve).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,e){return t.setPosition(t.position()+4),(e||new Ve).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}data(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new ne).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){let t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){return t.endObject()}},Zn;!function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(Zn||(Zn={}));var Rt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(t,e){return(e||new Rt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,e){return t.setPosition(t.position()+4),(e||new Rt).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):qr.V1}headerType(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):Zn.NONE}header(t){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new gt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,qr.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,Zn.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,t.createLong(0,0))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,e){t.finish(e)}static finishSizePrefixedMessageBuffer(t,e){t.finish(e,void 0,!0)}static createMessage(t,e,r,i,n,s){return Rt.startMessage(t),Rt.addVersion(t,e),Rt.addHeaderType(t,r),Rt.addHeader(t,i),Rt.addBodyLength(t,n),Rt.addCustomMetadata(t,s),Rt.endMessage(t)}},P_=kt,ic=class extends D{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return pr.startNull(e),pr.endNull(e)}visitInt(t,e){return zt.startInt(e),zt.addBitWidth(e,t.bitWidth),zt.addIsSigned(e,t.isSigned),zt.endInt(e)}visitFloat(t,e){return ge.startFloatingPoint(e),ge.addPrecision(e,t.precision),ge.endFloatingPoint(e)}visitBinary(t,e){return dr.startBinary(e),dr.endBinary(e)}visitBool(t,e){return fr.startBool(e),fr.endBool(e)}visitUtf8(t,e){return _r.startUtf8(e),_r.endUtf8(e)}visitDecimal(t,e){return Wt.startDecimal(e),Wt.addScale(e,t.scale),Wt.addPrecision(e,t.precision),Wt.addBitWidth(e,t.bitWidth),Wt.endDecimal(e)}visitDate(t,e){return _e.startDate(e),_e.addUnit(e,t.unit),_e.endDate(e)}visitTime(t,e){return te.startTime(e),te.addUnit(e,t.unit),te.addBitWidth(e,t.bitWidth),te.endTime(e)}visitTimestamp(t,e){let r=t.timezone&&e.createString(t.timezone)||void 0;return ee.startTimestamp(e),ee.addUnit(e,t.unit),void 0!==r&&ee.addTimezone(e,r),ee.endTimestamp(e)}visitInterval(t,e){return we.startInterval(e),we.addUnit(e,t.unit),we.endInterval(e)}visitList(t,e){return hr.startList(e),hr.endList(e)}visitStruct(t,e){return mr.startStruct_(e),mr.endStruct_(e)}visitUnion(t,e){jt.startTypeIdsVector(e,t.typeIds.length);let r=jt.createTypeIdsVector(e,t.typeIds);return jt.startUnion(e),jt.addMode(e,t.mode),jt.addTypeIds(e,r),jt.endUnion(e)}visitDictionary(t,e){let r=this.visit(t.indices,e);return Oe.startDictionaryEncoding(e),Oe.addId(e,new P_(t.id,0)),Oe.addIsOrdered(e,t.isOrdered),void 0!==r&&Oe.addIndexType(e,r),Oe.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return ye.startFixedSizeBinary(e),ye.addByteWidth(e,t.byteWidth),ye.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return be.startFixedSizeList(e),be.addListSize(e,t.listSize),be.endFixedSizeList(e)}visitMap(t,e){return ve.startMap(e),ve.addKeysSorted(e,t.keysSorted),ve.endMap(e)}},Po=new ic;function Pd(t,e=new Map){return new q(V_(t,e),Vo(t.customMetadata),e)}function sc(t){return new Zt(t.count,Hd(t.columns),zd(t.columns))}function Vd(t){return new xe(sc(t.data),t.id,t.isDelta)}function V_(t,e){return(t.fields||[]).filter(Boolean).map((t=>z.fromJSON(t,e)))}function Ld(t,e){return(t.children||[]).filter(Boolean).map((t=>z.fromJSON(t,e)))}function Hd(t){return(t||[]).reduce(((t,e)=>[...t,new rr(e.count,H_(e.VALIDITY)),...Hd(e.children)]),[])}function zd(t,e=[]){for(let r=-1,i=(t||[]).length;++rt+ +(0===e)),0)}function Wd(t,e){let r,i,n,s,a,o;return e&&(s=t.dictionary)?e.has(r=s.id)?(i=(i=s.indexType)?Nd(i):new or,o=new Be(e.get(r),i,r,s.isOrdered),n=new z(t.name,o,t.nullable,Vo(t.customMetadata))):(i=(i=s.indexType)?Nd(i):new or,e.set(r,a=Cd(t,Ld(t,e))),o=new Be(a,i,r,s.isOrdered),n=new z(t.name,o,t.nullable,Vo(t.customMetadata))):(a=Cd(t,Ld(t,e)),n=new z(t.name,a,t.nullable,Vo(t.customMetadata))),n||null}function Vo(t){return new Map(Object.entries(t||{}))}function Nd(t){return new Ot(t.isSigned,t.bitWidth)}function Cd(t,e){let r=t.type.name;switch(r){case"NONE":case"null":return new le;case"binary":return new Fr;case"utf8":return new xr;case"bool":return new Tr;case"list":return new Ge((e||[])[0]);case"struct":case"struct_":return new bt(e||[])}switch(r){case"int":{let e=t.type;return new Ot(e.isSigned,e.bitWidth)}case"floatingpoint":{let e=t.type;return new me(It[e.precision])}case"decimal":{let e=t.type;return new Br(e.scale,e.precision,e.bitWidth)}case"date":{let e=t.type;return new Dr(Jt[e.unit])}case"time":{let e=t.type;return new Xe(G[e.unit],e.bitWidth)}case"timestamp":{let e=t.type;return new Er(G[e.unit],e.timezone)}case"interval":{let e=t.type;return new Or(ce[e.unit])}case"union":{let r=t.type;return new Ke(Tt[r.mode],r.typeIds||[],e||[])}case"fixedsizebinary":{let e=t.type;return new Rr(e.byteWidth)}case"fixedsizelist":{let r=t.type;return new Je(r.listSize,(e||[])[0])}case"map":{let r=t.type;return new qe((e||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${r}"`)}var xn=kt,z_=kr,W_=ue,Nt=class{constructor(t,e,r,i){this._version=e,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength="number"==typeof t?t:t.low}static fromJSON(t,e){let r=new Nt(0,Vt.V4,e);return r._createHeader=j_(t,e),r}static decode(t){t=new W_(k(t));let e=Rt.getRootAsMessage(t),r=e.bodyLength(),i=e.version(),n=e.headerType(),s=new Nt(r,i,n);return s._createHeader=$_(e,n),s}static encode(t){let e=new z_,r=-1;return t.isSchema()?r=q.encode(e,t.header()):t.isRecordBatch()?r=Zt.encode(e,t.header()):t.isDictionaryBatch()&&(r=xe.encode(e,t.header())),Rt.startMessage(e),Rt.addVersion(e,Vt.V4),Rt.addHeader(e,r),Rt.addHeaderType(e,t.headerType),Rt.addBodyLength(e,new xn(t.bodyLength,0)),Rt.finishMessageBuffer(e,Rt.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof q)return new Nt(0,Vt.V4,rt.Schema,t);if(t instanceof Zt)return new Nt(e,Vt.V4,rt.RecordBatch,t);if(t instanceof xe)return new Nt(e,Vt.V4,rt.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===rt.Schema}isRecordBatch(){return this.headerType===rt.RecordBatch}isDictionaryBatch(){return this.headerType===rt.DictionaryBatch}},Zt=class{constructor(t,e,r){this._nodes=e,this._buffers=r,this._length="number"==typeof t?t:t.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}},xe=class{constructor(t,e,r=!1){this._data=t,this._isDelta=r,this._id="number"==typeof e?e:e.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}},Fe=class{constructor(t,e){this.offset="number"==typeof t?t:t.low,this.length="number"==typeof e?e:e.low}},rr=class{constructor(t,e){this.length="number"==typeof t?t:t.low,this.nullCount="number"==typeof e?e:e.low}};function j_(t,e){return()=>{switch(e){case rt.Schema:return q.fromJSON(t);case rt.RecordBatch:return Zt.fromJSON(t);case rt.DictionaryBatch:return xe.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${rt[e]}, type: ${e} }`)}}function $_(t,e){return()=>{switch(e){case rt.Schema:return q.decode(t.header(new Bt));case rt.RecordBatch:return Zt.decode(t.header(new ne),t.version());case rt.DictionaryBatch:return xe.decode(t.header(new Ve),t.version())}throw new Error(`Unrecognized Message type: { name: ${rt[e]}, type: ${e} }`)}}function Y_(t,e=new Map){let r=Q_(t,e);return new q(r,Ho(t),e)}function X_(t,e=Vt.V4){if(null!==t.compression())throw new Error("Record batch compression not implemented");return new Zt(t.length(),q_(t),Z_(t,e))}function G_(t,e=Vt.V4){return new xe(Zt.decode(t.data(),e),t.id(),t.isDelta())}function K_(t){return new Fe(t.offset(),t.length())}function J_(t){return new rr(t.length(),t.nullCount())}function q_(t){let e=[];for(let r,i=-1,n=-1,s=t.nodesLength();++iz.encode(t,e)));Bt.startFieldsVector(t,r.length);let i=Bt.createFieldsVector(t,r),n=e.metadata&&e.metadata.size>0?Bt.createCustomMetadataVector(t,[...e.metadata].map((([e,r])=>{let i=t.createString(`${e}`),n=t.createString(`${r}`);return gt.startKeyValue(t),gt.addKey(t,i),gt.addValue(t,n),gt.endKeyValue(t)}))):-1;return Bt.startSchema(t),Bt.addFields(t,i),Bt.addEndianness(t,ay?Zr.Little:Zr.Big),-1!==n&&Bt.addCustomMetadata(t,n),Bt.endSchema(t)}function ry(t,e){let r=-1,i=-1,n=-1,s=e.type,a=e.typeId;T.isDictionary(s)?(a=s.dictionary.typeId,n=Po.visit(s,t),i=Po.visit(s.dictionary,t)):i=Po.visit(s,t);let o=(s.children||[]).map((e=>z.encode(t,e))),l=Lt.createChildrenVector(t,o),u=e.metadata&&e.metadata.size>0?Lt.createCustomMetadataVector(t,[...e.metadata].map((([e,r])=>{let i=t.createString(`${e}`),n=t.createString(`${r}`);return gt.startKeyValue(t),gt.addKey(t,i),gt.addValue(t,n),gt.endKeyValue(t)}))):-1;return e.name&&(r=t.createString(e.name)),Lt.startField(t),Lt.addType(t,i),Lt.addTypeType(t,a),Lt.addChildren(t,l),Lt.addNullable(t,!!e.nullable),-1!==r&&Lt.addName(t,r),-1!==n&&Lt.addDictionary(t,n),-1!==u&&Lt.addCustomMetadata(t,u),Lt.endField(t)}function ny(t,e){let r=e.nodes||[],i=e.buffers||[];ne.startNodesVector(t,r.length);for(let e of r.slice().reverse())rr.encode(t,e);let n=t.endVector();ne.startBuffersVector(t,i.length);for(let e of i.slice().reverse())Fe.encode(t,e);let s=t.endVector();return ne.startRecordBatch(t),ne.addLength(t,new xn(e.length,0)),ne.addNodes(t,n),ne.addBuffers(t,s),ne.endRecordBatch(t)}function iy(t,e){let r=Zt.encode(t,e.data);return Ve.startDictionaryBatch(t),Ve.addId(t,new xn(e.id,0)),Ve.addIsDelta(t,e.isDelta),Ve.addData(t,r),Ve.endDictionaryBatch(t)}function sy(t,e){return qn.createFieldNode(t,new xn(e.length,0),new xn(e.nullCount,0))}function oy(t,e){return Jn.createBuffer(t,new xn(e.offset,0),new xn(e.length,0))}z.encode=ry,z.decode=ty,z.fromJSON=Wd,q.encode=ey,q.decode=Y_,q.fromJSON=Pd,Zt.encode=ny,Zt.decode=X_,Zt.fromJSON=sc,xe.encode=iy,xe.decode=G_,xe.fromJSON=Vd,rr.encode=sy,rr.decode=J_,Fe.encode=oy,Fe.decode=K_;var ay=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),ac=t=>`Expected ${rt[t]} Message in stream, but was null or length 0.`,cc=t=>`Header pointer of flatbuffer-encoded ${rt[t]} Message is null or length 0.`,Xd=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,Gd=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,Qn=class{constructor(t){this.source=t instanceof br?t:new br(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?wt:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(ac(t));return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);let e=k(this.source.read(t));if(e.byteLength[...e,...r.VALIDITY&&[r.VALIDITY]||[],...r.TYPE&&[r.TYPE]||[],...r.OFFSET&&[r.OFFSET]||[],...r.DATA&&[r.DATA]||[],...t(r.children)]),[])}(this._body)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(ac(t));return e.value}readSchema(){let t=rt.Schema,e=this.readMessage(t),r=null==e?void 0:e.header();if(!e||!r)throw new Error(cc(t));return r}},zo=4,oc="ARROW1",ti=new Uint8Array(oc.length);for(let t=0;tthis)):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Kt.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Kt.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof Mt?t:Fs(t)?ly(t):Ts(t)?fy(t):ze(t)?(()=>A(this,void 0,void 0,(function*(){return yield Mt.from(yield t)})))():Bs(t)||bi(t)||Es(t)||ke(t)?dy(new Se(t)):uy(new br(t))}static readAll(t){return t instanceof Mt?t.isSync()?Jd(t):qd(t):Fs(t)||ArrayBuffer.isView(t)||We(t)||xs(t)?Jd(t):qd(t)}},wr=class extends Mt{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return pe(this,arguments,(function*(){yield $(yield*On(Ue(this[Symbol.iterator]())))}))}},en=class extends Mt{constructor(t){super(t),this._impl=t}readAll(){var t,e;return A(this,void 0,void 0,(function*(){let r=new Array;try{for(var i,n=Ue(this);!(i=yield n.next()).done;){let t=i.value;r.push(t)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&(yield e.call(n))}finally{if(t)throw t.error}}return r}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},rn=class extends wr{constructor(t){super(t),this._impl=t}},is=class extends en{constructor(t){super(t),this._impl=t}},jo=class{constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){let r=this._loadVectors(t,e,this.schema.fields),i=P({type:new bt(this.schema.fields),length:t.length,children:r});return new mt(this.schema,i)}_loadDictionaryBatch(t,e){let{id:r,isDelta:i}=t,{dictionaries:n,schema:s}=this,a=n.get(r);if(i||!a){let n=s.dictionaries.get(r),o=this._loadVectors(t.data,e,[n]);return(a&&i?a.concat(new N(o)):new N(o)).memoize()}return a.memoize()}_loadVectors(t,e,r){return new ki(e,t.nodes,t.buffers,this.dictionaries).visitMany(r)}},ri=class extends jo{constructor(t,e){super(e),this._reader=Fs(t)?new ns(this._handle=t):new Qn(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return this.closed||(this.autoDestroy=Zd(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):wt}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):wt}next(){if(this.closed)return wt;let t,{_reader:e}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;let r=t.header(),i=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;let r=t.header(),i=e.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,n)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Fn(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}},ni=class extends jo{constructor(t,e){super(e),this._reader=new rs(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return A(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(t){return A(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=Zd(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(t){return A(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):wt}))}return(t){return A(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):wt}))}next(){return A(this,void 0,void 0,(function*(){if(this.closed)return wt;let t,{_reader:e}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;let r=t.header(),i=yield e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;let r=t.header(),i=yield e.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,n)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Fn(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(t){return A(this,void 0,void 0,(function*(){return yield this._reader.readMessage(t)}))}},$o=class extends ri{constructor(t,e){super(t instanceof Mi?t:new Mi(t),e)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var e;if(this.closed)return null;this._footer||this.open();let r=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t);if(r&&this._handle.seek(r.offset)){let t=this._reader.readMessage(rt.RecordBatch);if(null!=t&&t.isRecordBatch()){let e=t.header(),r=this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,r)}}return null}_readDictionaryBatch(t){var e;let r=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t);if(r&&this._handle.seek(r.offset)){let t=this._reader.readMessage(rt.DictionaryBatch);if(null!=t&&t.isDictionaryBatch()){let e=t.header(),r=this._reader.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(e,r);this.dictionaries.set(e.id,i)}}}_readFooter(){let{_handle:t}=this,e=t.size-lc,r=t.readInt32(e),i=t.readAt(e-r,r);return Lr.decode(i)}_readNextMessageAndValidate(t){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return A(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield e.open.call(this,t)}))}readRecordBatch(t){var e;return A(this,void 0,void 0,(function*(){if(this.closed)return null;this._footer||(yield this.open());let r=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t);if(r&&(yield this._handle.seek(r.offset))){let t=yield this._reader.readMessage(rt.RecordBatch);if(null!=t&&t.isRecordBatch()){let e=t.header(),r=yield this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,r)}}return null}))}_readDictionaryBatch(t){var e;return A(this,void 0,void 0,(function*(){let r=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t);if(r&&(yield this._handle.seek(r.offset))){let t=yield this._reader.readMessage(rt.DictionaryBatch);if(null!=t&&t.isDictionaryBatch()){let e=t.header(),r=yield this._reader.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(e,r);this.dictionaries.set(e.id,i)}}}))}_readFooter(){return A(this,void 0,void 0,(function*(){let{_handle:t}=this;t._pending&&(yield t._pending);let e=t.size-lc,r=yield t.readInt32(e),i=yield t.readAt(e-r,r);return Lr.decode(i)}))}_readNextMessageAndValidate(t){return A(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?Wo(e)?new rn(new $o(t.read())):new wr(new ri(t)):new wr(new ri(function*(){}()))}function dy(t){return A(this,void 0,void 0,(function*(){let e=yield t.peek(ei+7&-8);return e&&e.byteLength>=4?Wo(e)?new rn(new $o(yield t.read())):new en(new ni(t)):new en(new ni(function(){return pe(this,arguments,(function*(){}))}()))}))}function fy(t){return A(this,void 0,void 0,(function*(){let{size:e}=yield t.stat(),r=new tn(t,e);return e>=Kd&&Wo(yield r.readAt(0,ei+7&-8))?new is(new uc(r)):new en(new ni(r))}))}var Dt=class extends D{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...t){let e=t=>t.flatMap((t=>Array.isArray(t)?e(t):t instanceof mt?t.data.children:t.data)),r=new Dt;return r.visitMany(e(t)),r}visit(t){if(t instanceof N)return this.visitMany(t.data),this;let{type:e}=t;if(!T.isDictionary(e)){let{length:r,nullCount:i}=t;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");T.isNull(e)||nr.call(this,i<=0?new Uint8Array(0):Vn(t.offset,r,t.nullBitmap)),this.nodes.push(new rr(r,i))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function nr(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Fe(this._byteLength,e)),this._byteLength+=e,this}function hy(t){let{type:e,length:r,typeIds:i,valueOffsets:n}=t;if(nr.call(this,i),e.mode===Tt.Sparse)return fc.call(this,t);if(e.mode===Tt.Dense){if(t.offset<=0)return nr.call(this,n),fc.call(this,t);{let s=i.reduce(((t,e)=>Math.max(t,e)),i[0]),a=new Int32Array(s+1),o=new Int32Array(s+1).fill(-1),l=new Int32Array(r),u=gi(-n[0],r,n);for(let t,e,n=-1;++n=t.length?nr.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?nr.call(this,Vn(t.offset,t.length,e)):nr.call(this,mn(t.values))}function nn(t){return nr.call(this,t.values.subarray(0,t.length*t.stride))}function Qd(t){let{length:e,values:r,valueOffsets:i}=t,n=i[0],s=i[e],a=Math.min(s-n,r.byteLength-n);return nr.call(this,gi(-i[0],e,i)),nr.call(this,r.subarray(n,n+a)),this}function hc(t){let{length:e,valueOffsets:r}=t;return r&&nr.call(this,gi(r[0],e,r)),this.visit(t.children[0])}function fc(t){return this.visitMany(t.type.children.map(((e,r)=>t.children[r])).filter(Boolean))[0]}Dt.prototype.visitBool=py,Dt.prototype.visitInt=nn,Dt.prototype.visitFloat=nn,Dt.prototype.visitUtf8=Qd,Dt.prototype.visitBinary=Qd,Dt.prototype.visitFixedSizeBinary=nn,Dt.prototype.visitDate=nn,Dt.prototype.visitTimestamp=nn,Dt.prototype.visitTime=nn,Dt.prototype.visitDecimal=nn,Dt.prototype.visitList=hc,Dt.prototype.visitStruct=fc,Dt.prototype.visitUnion=hy,Dt.prototype.visitInterval=nn,Dt.prototype.visitFixedSizeList=hc,Dt.prototype.visitMap=hc;var Tn=class extends gn{constructor(t){super(),this._position=0,this._started=!1,this._sink=new yr,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,ae(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!=typeof t.autoDestroy||t.autoDestroy,this._writeLegacyIpcFormat="boolean"==typeof t.writeLegacyIpcFormat&&t.writeLegacyIpcFormat}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return ze(t)?t.then((t=>this.writeAll(t))):ke(t)?mc(this,t):pc(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,e=null){return t===this._sink||t instanceof yr?this._sink=t:(this._sink=new yr,t&&Iu(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&Au(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!e||!An(e,this._schema))&&(null==e?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}write(t){let e=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==t)return this.finish()&&void 0;if(t instanceof Et&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof mt&&!(e=t.schema))return this.finish()&&void 0;if(e&&!An(e,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof mt?t instanceof Fn||this._writeRecordBatch(t):t instanceof Et?this.writeAll(t.batches):We(t)&&this.writeAll(t)}_writeMessage(t,e=8){let r=e-1,i=Nt.encode(t),n=i.byteLength,s=this._writeLegacyIpcFormat?4:8,a=n+s+r&~r,o=a-n-s;return t.headerType===rt.RecordBatch?this._recordBatchBlocks.push(new tr(a,t.bodyLength,this._position)):t.headerType===rt.DictionaryBatch&&this._dictionaryBlocks.push(new tr(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-s)),n>0&&this._write(i),this._writePadding(o)}_write(t){if(this._started){let e=k(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}_writeSchema(t){return this._writeMessage(Nt.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(ti)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){let{byteLength:e,nodes:r,bufferRegions:i,buffers:n}=Dt.assemble(t),s=new Zt(t.numRows,r,i),a=Nt.from(s,e);return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(n)}_writeDictionaryBatch(t,e,r=!1){this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0));let{byteLength:i,nodes:n,bufferRegions:s,buffers:a}=Dt.assemble(new N([t])),o=new Zt(t.length,n,s),l=new xe(o,e,r),u=Nt.from(l,i);return this._writeMessage(u)._writeBodyBuffers(a)}_writeBodyBuffers(t){let e,r,i;for(let n=-1,s=t.length;++n0&&(this._write(e),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(t){for(let[e,r]of t.dictionaries){let t=this._dictionaryDeltaOffsets.get(e)||0;if(0===t||(r=null==r?void 0:r.slice(t)).length>0)for(let i of r.data)this._writeDictionaryBatch(i,e,t>0),t+=i.length}return this}},Hr=class extends Tn{static writeAll(t,e){let r=new Hr(e);return ze(t)?t.then((t=>r.writeAll(t))):ke(t)?mc(r,t):pc(r,t)}},zr=class extends Tn{static writeAll(t){let e=new zr;return ze(t)?t.then((t=>e.writeAll(t))):ke(t)?mc(e,t):pc(e,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){let e=Lr.encode(new Lr(t,Vt.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}};function pc(t,e){let r=e;e instanceof Et&&(r=e.batches,t.reset(void 0,e.schema));for(let e of r)t.write(e);return t.finish()}function mc(t,e){var r,i,n,s;return A(this,void 0,void 0,(function*(){try{for(r=Ue(e);!(i=yield r.next()).done;){let e=i.value;t.write(e)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(s=r.return)&&(yield s.call(r))}finally{if(n)throw n.error}}return t.finish()}))}function tf(t,e){if(ke(t))return _y(t,e);if(We(t))return my(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function my(t,e){let r=null,i="bytes"===(null==e?void 0:e.type)||!1,n=(null==e?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(e){s(e,r||(r=t[Symbol.iterator]()))},pull(t){r?s(t,r):t.close()},cancel(){(null==r?void 0:r.return)&&r.return(),r=null}}),Object.assign({highWaterMark:i?n:void 0},e));function s(t,e){let r,n=null,s=t.desiredSize||null;for(;!(n=e.next(i?s:null)).done;)if(ArrayBuffer.isView(n.value)&&(r=k(n.value))&&(null!=s&&i&&(s=s-r.byteLength+1),n.value=r),t.enqueue(n.value),null!=s&&--s<=0)return;t.close()}}function _y(t,e){let r=null,i="bytes"===(null==e?void 0:e.type)||!1,n=(null==e?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(e){return A(this,void 0,void 0,(function*(){yield s(e,r||(r=t[Symbol.asyncIterator]()))}))},pull(t){return A(this,void 0,void 0,(function*(){r?yield s(t,r):t.close()}))},cancel(){return A(this,void 0,void 0,(function*(){(null==r?void 0:r.return)&&(yield r.return()),r=null}))}}),Object.assign({highWaterMark:i?n:void 0},e));function s(t,e){return A(this,void 0,void 0,(function*(){let r,n=null,s=t.desiredSize||null;for(;!(n=yield e.next(i?s:null)).done;)if(ArrayBuffer.isView(n.value)&&(r=k(n.value))&&(null!=s&&i&&(s=s-r.byteLength+1),n.value=r),t.enqueue(n.value),null!=s&&--s<=0)return;t.close()}))}}function nf(t){return new _c(t)}var _c=class{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{readableStrategy:e,writableStrategy:r,queueingStrategy:i="count"}=t,n=vu(t,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=vn(n),this._getSize="bytes"!==i?ef:rf;let{highWaterMark:s=("bytes"===i?Math.pow(2,14):1e3)}=Object.assign({},e),{highWaterMark:a=("bytes"===i?Math.pow(2,14):1e3)}=Object.assign({},r);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:t=>{this._maybeFlush(this._builder,this._controller=t)},start:t=>{this._maybeFlush(this._builder,this._controller=t)}},{highWaterMark:s,size:"bytes"!==i?ef:rf}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:t=>this._writeValueAndReturnChunkSize(t)})}_writeValueAndReturnChunkSize(t){let e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}_maybeFlush(t,e){null!=e&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}_enqueue(t,e){this._bufferedSize=0,this._controller=null,null==e?t.close():t.enqueue(e)}},ef=t=>{var e;return null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0},rf=t=>{var e;return null!==(e=null==t?void 0:t.byteLength)&&void 0!==e?e:0};function Yo(t,e){let r=new yr,i=null,n=new ReadableStream({cancel(){return A(this,void 0,void 0,(function*(){yield r.close()}))},start(t){return A(this,void 0,void 0,(function*(){yield s(t,i||(i=yield function(){return A(this,void 0,void 0,(function*(){return yield(yield Mt.from(r)).open(e)}))}()))}))},pull(t){return A(this,void 0,void 0,(function*(){i?yield s(t,i):t.close()}))}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:n};function s(t,e){return A(this,void 0,void 0,(function*(){let r=t.desiredSize,i=null;for(;!(i=yield e.next()).done;)if(t.enqueue(i.value),null!=r&&--r<=0)return;t.close()}))}}function Xo(t,e){let r=new this(t),i=new Se(r),n=new ReadableStream({cancel(){return A(this,void 0,void 0,(function*(){yield i.cancel()}))},pull(t){return A(this,void 0,void 0,(function*(){yield s(t)}))},start(t){return A(this,void 0,void 0,(function*(){yield s(t)}))}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(r,t),readable:n};function s(t){return A(this,void 0,void 0,(function*(){let e=null,r=t.desiredSize;for(;e=yield i.read(r||null);)if(t.enqueue(e),null!=r&&(r-=e.byteLength)<=0)return;t.close()}))}}function Go(t,e="stream"){return("stream"===e?Hr:zr).writeAll(t).toUint8Array(!0)}var wy=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Da),Qa),$a),Ea),Fa),ja),{compareSchemas:An,compareFields:Ed,compareTypes:Od});function ii(t){switch(t.typeId){case h.Binary:return{sqlType:"binary"};case h.Bool:return{sqlType:"bool"};case h.Date:return{sqlType:"date"};case h.DateDay:return{sqlType:"date32[d]"};case h.DateMillisecond:return{sqlType:"date64[ms]"};case h.Decimal:{let e=t;return{sqlType:"decimal",precision:e.precision,scale:e.scale}}case h.Float:return{sqlType:"float"};case h.Float16:return{sqlType:"float16"};case h.Float32:return{sqlType:"float32"};case h.Float64:return{sqlType:"float64"};case h.Int:return{sqlType:"int32"};case h.Int16:return{sqlType:"int16"};case h.Int32:return{sqlType:"int32"};case h.Int64:return{sqlType:"int64"};case h.Uint16:return{sqlType:"uint16"};case h.Uint32:return{sqlType:"uint32"};case h.Uint64:return{sqlType:"uint64"};case h.Uint8:return{sqlType:"uint8"};case h.IntervalDayTime:return{sqlType:"interval[dt]"};case h.IntervalYearMonth:return{sqlType:"interval[m]"};case h.List:return{sqlType:"list",valueType:ii(t.valueType)};case h.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:t.byteWidth};case h.Null:return{sqlType:"null"};case h.Utf8:return{sqlType:"utf8"};case h.Struct:return{sqlType:"struct",fields:t.children.map((t=>Ko(t.name,t.type)))};case h.Map:{let e=t;return{sqlType:"map",keyType:ii(e.keyType),valueType:ii(e.valueType)}}case h.Time:return{sqlType:"time[s]"};case h.TimeMicrosecond:return{sqlType:"time[us]"};case h.TimeMillisecond:return{sqlType:"time[ms]"};case h.TimeNanosecond:return{sqlType:"time[ns]"};case h.TimeSecond:return{sqlType:"time[s]"};case h.Timestamp:return{sqlType:"timestamp",timezone:t.timezone||void 0};case h.TimestampSecond:return{sqlType:"timestamp[s]",timezone:t.timezone||void 0};case h.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:t.timezone||void 0};case h.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:t.timezone||void 0};case h.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:t.timezone||void 0}}throw new Error(`unsupported arrow type: ${t.toString()}`)}function Ko(t,e){let r=ii(e);return r.name=t,r}Kt.toDOMStream=tf,At.throughDOM=nf,Mt.throughDOM=Yo,rn.throughDOM=Yo,wr.throughDOM=Yo,Tn.throughDOM=Xo,zr.throughDOM=Xo,Hr.throughDOM=Xo;var Jo=class{constructor(){this._bindings=null,this._nextMessageId=0}log(t){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:t},[])}sendOK(t){this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"OK",data:null},[])}failWith(t,e){let r={name:e.name,message:e.message,stack:e.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:r},[])}async onMessage(t){switch(t.type){case"PING":return void this.sendOK(t);case"INSTANTIATE":null!=this._bindings&&this.failWith(t,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(t.data[0],t.data[1],(e=>{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"INSTANTIATE_PROGRESS",data:e},[])})),this.sendOK(t)}catch(e){this._bindings=null,this.failWith(t,e)}return}if(!this._bindings)return this.failWith(t,new Error("duckdb is not initialized"));try{switch(t.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(t);break;case"OPEN":this._bindings.open(t.data),this.sendOK(t);break;case"DROP_FILE":this._bindings.dropFile(t.data),this.sendOK(t);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(t);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(t);break;case"CONNECT":{let e=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"CONNECTION_INFO",data:e.useUnsafe(((t,e)=>e))},[]);break}case"DISCONNECT":this._bindings.disconnect(t.data),this.sendOK(t);break;case"CREATE_PREPARED":{let e=this._bindings.createPrepared(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"PREPARED_STATEMENT_ID",data:e},[]);break}case"CLOSE_PREPARED":this._bindings.closePrepared(t.data[0],t.data[1]),this.sendOK(t);break;case"RUN_PREPARED":{let e=this._bindings.runPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"RUN_QUERY":{let e=this._bindings.runQuery(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"SEND_PREPARED":{let e=this._bindings.sendPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER",data:e},[e.buffer]);break}case"START_PENDING_QUERY":{let e=this._bindings.startPendingQuery(t.data[0],t.data[1]),r=[];e&&r.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},r);break}case"POLL_PENDING_QUERY":{let e=this._bindings.pollPendingQuery(t.data),r=[];e&&r.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},r);break}case"CANCEL_PENDING_QUERY":{let e=this._bindings.cancelPendingQuery(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SUCCESS",data:e},[]);break}case"FETCH_QUERY_RESULTS":{let e=this._bindings.fetchQueryResults(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_CHUNK",data:e},[e.buffer]);break}case"GET_TABLE_NAMES":{let e=this._bindings.getTableNames(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"TABLE_NAMES",data:e},[]);break}case"GLOB_FILE_INFOS":{let e=this._bindings.globFiles(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_INFOS",data:e},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_BUFFER":{let e=this._bindings.copyFileToBuffer(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_BUFFER",data:e},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(t.data[0],t.data[1]),this.sendOK(t);break;case"EXPORT_FILE_STATISTICS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(t.data)},[]);break;case"INSERT_ARROW_FROM_IPC_STREAM":this._bindings.insertArrowFromIPCStream(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"IMPORT_CSV_FROM_PATH":this._bindings.insertCSVFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"IMPORT_JSON_FROM_PATH":this._bindings.insertJSONFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"TOKENIZE":{let e=this._bindings.tokenize(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SCRIPT_TOKENS",data:e},[]);break}}}catch(e){return this.failWith(t,e)}}},bc={},vy=(()=>{var t=bc.url;return function(e){function r(){return M.buffer!=N&&K(M.buffer),k}function i(){return M.buffer!=N&&K(M.buffer),C}function n(){return M.buffer!=N&&K(M.buffer),P}function s(){return M.buffer!=N&&K(M.buffer),H}function a(){return M.buffer!=N&&K(M.buffer),j}function o(){return M.buffer!=N&&K(M.buffer),z}var l,u,h=typeof(e=e||{})<"u"?e:{};h.ready=new Promise((function(t,e){l=t,u=e}));var d,c,f=Object.assign({},h),p=[],y="./this.program",b=(t,e)=>{throw e},_="object"==typeof window,m="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,v=h.ENVIRONMENT_IS_PTHREAD||!1,w="";function I(t){return h.locateFile?h.locateFile(t,w):w+t}if(g){var S,A;let t;w=m?yc().dirname(w)+"/":__dirname+"/","function"==typeof ba&&(S=of(),A=yc()),d=(t,e)=>(t=A.normalize(t),S.readFileSync(t,e?void 0:"utf8")),c=t=>{var e=d(t,!0);return e.buffer||(e=new Uint8Array(e)),e},process.argv.length>1&&(y=process.argv[1].replace(/\\/g,"/")),p=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof ct))throw t})),process.on("unhandledRejection",(function(t){throw t})),b=(t,e)=>{if(rt())throw process.exitCode=t,e;(function(t){t instanceof ct||E("exiting due to exception: "+t)})(e),process.exit(t)},h.inspect=function(){return"[Emscripten Module object]"};try{t=af()}catch(t){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),t}global.Worker=t.Worker}else(_||m)&&(m?w=self.location.href:typeof document<"u"&&document.currentScript&&(w=document.currentScript.src),t&&(w=t),w=0!==w.indexOf("blob:")?w.substr(0,w.replace(/[?#].*/,"").lastIndexOf("/")+1):"",g||(d=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},m&&(c=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})));g&&typeof performance>"u"&&(global.performance=cf().performance);var T=console.log.bind(console),O=console.warn.bind(console);g&&(T=t=>S.writeSync(1,t+"\n"),O=t=>S.writeSync(2,t+"\n"));var F,B=h.print||T,E=h.printErr||O;Object.assign(h,f),f=null,h.arguments&&(p=h.arguments),h.thisProgram&&(y=h.thisProgram),h.quit&&(b=h.quit),Atomics.load,Atomics.store,Atomics.compareExchange,h.wasmBinary&&(F=h.wasmBinary);var D=h.noExitRuntime||!0;"object"!=typeof WebAssembly&<("no native wasm support detected");var M,U,R,x=!1;function L(t,e){t||lt(e)}var N,k,C,P,V,H,j,z,W=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function $(t,e,r){for(var i=(e>>>=0)+r,n=e;t[n]&&!(n>=i);)++n;if(n-e>16&&t.buffer&&W)return W.decode(t.buffer instanceof SharedArrayBuffer?t.slice(e,n):t.subarray(e,n));for(var s="";e>10,56320|1023&u)}}else s+=String.fromCharCode((31&a)<<6|o)}else s+=String.fromCharCode(a)}return s}function q(t,e){return(t>>>=0)?$(i(),t,e):""}function Y(t,e,r,i){if(!(i>0))return 0;for(var n=r>>>=0,s=r+i-1,a=0;a=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++a)),o<=127){if(r>=s)break;e[r++>>>0]=o}else if(o<=2047){if(r+1>=s)break;e[r++>>>0]=192|o>>6,e[r++>>>0]=128|63&o}else if(o<=65535){if(r+2>=s)break;e[r++>>>0]=224|o>>12,e[r++>>>0]=128|o>>6&63,e[r++>>>0]=128|63&o}else{if(r+3>=s)break;e[r++>>>0]=240|o>>18,e[r++>>>0]=128|o>>12&63,e[r++>>>0]=128|o>>6&63,e[r++>>>0]=128|63&o}}return e[r>>>0]=0,r-n}function X(t,e,r){return Y(t,i(),e,r)}function K(t){N=t,h.HEAP8=k=new Int8Array(t),h.HEAP16=P=new Int16Array(t),h.HEAP32=H=new Int32Array(t),h.HEAPU8=C=new Uint8Array(t),h.HEAPU16=V=new Uint16Array(t),h.HEAPU32=j=new Uint32Array(t),h.HEAPF32=new Float32Array(t),h.HEAPF64=z=new Float64Array(t)}v&&(N=h.buffer);var G=h.INITIAL_MEMORY||16777216;if(v)M=h.wasmMemory,N=h.buffer;else if(h.wasmMemory)M=h.wasmMemory;else if(!((M=new WebAssembly.Memory({initial:G/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw E("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),g&&E("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");M&&(N=M.buffer),G=N.byteLength,K(N);var J,Z=[],Q=[],tt=[],et=[];function rt(){return D}function it(){!v&&It(Q)}var nt,st=0,at=null,ot=null;function lt(t){v?postMessage({cmd:"onAbort",arg:t}):h.onAbort&&h.onAbort(t),E(t="Aborted("+t+")"),x=!0,R=1,t+=". Build with -sASSERTIONS for more info.",qe()}function ut(t){return t.startsWith("data:application/octet-stream;base64,")}function ht(t){try{if(t==nt&&F)return new Uint8Array(F);if(c)return c(t);throw"both async and sync fetching of the wasm failed"}catch(t){lt(t)}}h.locateFile?ut(nt="./duckdb-coi.wasm")||(nt=I(nt)):nt=new URL("./duckdb-coi.wasm",bc.url).toString();var dt={};function ct(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function ft(t){var e=wt.pthreads[t];L(e),wt.returnWorkerToPool(e)}function pt(t,e){return i().fill(0,t,t+e),t}function yt(t){var e=wt.getNewWorker();if(!e)return 6;wt.runningWorkers.push(e),wt.pthreads[t.pthread_ptr]=e,e.pthread_ptr=t.pthread_ptr;var r={cmd:"run",start_routine:t.startRoutine,arg:t.arg,pthread_ptr:t.pthread_ptr};return e.runPthread=()=>{r.time=performance.now(),e.postMessage(r,t.transferList)},e.loaded&&(e.runPthread(),delete e.runPthread),0}var bt={varargs:void 0,get:function(){return bt.varargs+=4,s()[bt.varargs-4>>>2]},getStr:function(t){return q(t)}};function _t(t){if(v)return ce(1,1,t);R=t,rt()||(wt.terminateAllThreads(),h.onExit&&h.onExit(t),x=!0),b(t,new ct(t))}function mt(t,e){if(R=t,!e&&v)throw St(t),"unwind";_t(t)}var gt=mt;function vt(t){if(t instanceof ct||"unwind"==t)return R;b(1,t)}var wt={unusedWorkers:[],runningWorkers:[],tlsInitFunctions:[],pthreads:{},init:function(){v?wt.initWorker():wt.initMainThread()},initMainThread:function(){for(var t=4;t--;)wt.allocateUnusedWorker()},initWorker:function(){D=!1},setExitStatus:function(t){R=t},terminateAllThreads:function(){for(var t of Object.values(wt.pthreads))wt.returnWorkerToPool(t);for(var t of wt.unusedWorkers)t.terminate();wt.unusedWorkers=[]},returnWorkerToPool:function(t){var e=t.pthread_ptr;delete wt.pthreads[e],wt.unusedWorkers.push(t),wt.runningWorkers.splice(wt.runningWorkers.indexOf(t),1),t.pthread_ptr=0,ze(e)},receiveObjectTransfer:function(t){},threadInitTLS:function(){wt.tlsInitFunctions.forEach((t=>t()))},loadWasmModuleToWorker:function(t,e){t.onmessage=r=>{var i=r.data,n=i.cmd;if(t.pthread_ptr&&(wt.currentProxiedOperationCallerThread=t.pthread_ptr),i.targetThread&&i.targetThread!=Ne()){var s=wt.pthreads[i.targetThread];return s?s.postMessage(i,i.transferList):E('Internal error! Worker sent a message "'+n+'" to target pthread '+i.targetThread+", but that thread no longer exists!"),void(wt.currentProxiedOperationCallerThread=void 0)}"processProxyingQueue"===n?ue(i.queue):"spawnThread"===n?yt(i):"cleanupThread"===n?ft(i.thread):"killThread"===n?function(t){var e=wt.pthreads[t];delete wt.pthreads[t],e.terminate(),ze(t),wt.runningWorkers.splice(wt.runningWorkers.indexOf(e),1),e.pthread_ptr=0}(i.thread):"cancelThread"===n?function(t){wt.pthreads[t].postMessage({cmd:"cancel"})}(i.thread):"loaded"===n?(t.loaded=!0,e&&e(t),t.runPthread&&(t.runPthread(),delete t.runPthread)):"print"===n?B("Thread "+i.threadId+": "+i.text):"printErr"===n?E("Thread "+i.threadId+": "+i.text):"alert"===n?alert("Thread "+i.threadId+": "+i.text):"setimmediate"===i.target?t.postMessage(i):"onAbort"===n?h.onAbort&&h.onAbort(i.arg):n&&E("worker sent an unknown command "+n),wt.currentProxiedOperationCallerThread=void 0},t.onerror=t=>{throw E("worker sent an error! "+t.filename+":"+t.lineno+": "+t.message),t},g&&(t.on("message",(function(e){t.onmessage({data:e})})),t.on("error",(function(e){t.onerror(e)})),t.on("detachedExit",(function(){}))),t.postMessage({cmd:"load",urlOrBlob:h.mainScriptUrlOrBlob,wasmMemory:M,wasmModule:U})},allocateUnusedWorker:function(){if(h.locateFile){var t=I("duckdb_wasm.worker.js");wt.unusedWorkers.push(new Worker(t))}else wt.unusedWorkers.push(new Worker(new URL("duckdb_wasm.worker.js",bc.url)))},getNewWorker:function(){return 0==wt.unusedWorkers.length&&(wt.allocateUnusedWorker(),wt.loadWasmModuleToWorker(wt.unusedWorkers[0])),wt.unusedWorkers.pop()}};function It(t){for(;t.length>0;)t.shift()(h)}function St(t){if(v)return ce(2,0,t);try{gt(t)}catch(t){vt(t)}}h.PThread=wt,h.establishStackSpace=function(){var t=Ne(),e=s()[t+44>>>2],r=s()[t+48>>>2];Ye(e,e-r),Ke(e)};var At=[];function Tt(t,e,r,i){return v?ce(3,1,t,e,r,i):Ot(t,e,r,i)}function Ot(t,e,r,i){if(typeof SharedArrayBuffer>"u")return E("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var n=[];if(v&&0===n.length)return Tt(t,e,r,i);var s={startRoutine:r,pthread_ptr:t,arg:i,transferList:n};return v?(s.cmd="spawnThread",postMessage(s,n),0):yt(s)}function Ft(t,e,r,i,n){if(v)return ce(4,1,t,e,r,i,n);for(var a=0,o=e?s()[e>>>2]:0,l=e?s()[e+4>>>2]:0,u=r?s()[r>>>2]:0,h=r?s()[r+4>>>2]:0,d=i?s()[i>>>2]:0,c=i?s()[i+4>>>2]:0,f=0,p=0,y=0,b=0,_=0,m=0,g=(e?s()[e>>>2]:0)|(r?s()[r>>>2]:0)|(i?s()[i>>>2]:0),w=(e?s()[e+4>>>2]:0)|(r?s()[r+4>>>2]:0)|(i?s()[i+4>>>2]:0),I=function(t,e,r,i){return t<32?e&i:r&i},S=0;S>>2]=f,s()[e+4>>>2]=p),r&&(s()[r>>>2]=y,s()[r+4>>>2]=b),i&&(s()[i>>>2]=_,s()[i+4>>>2]=m),a}function Bt(){E("missing function: $SOCKFS"),lt(-1)}function Et(){E("missing function: $FS"),lt(-1)}function Dt(t){var e=Bt.getSocket(t);if(!e)throw new Et.ErrnoError(8);return e}function Mt(t){return(255&t)+"."+(t>>8&255)+"."+(t>>16&255)+"."+(t>>24&255)}function Ut(t){var e="",r=0,i=0,n=0,s=0,a=0,o=0,l=[65535&t[0],t[0]>>16,65535&t[1],t[1]>>16,65535&t[2],t[2]>>16,65535&t[3],t[3]>>16],u=!0,h="";for(o=0;o<5;o++)if(0!==l[o]){u=!1;break}if(u){if(h=Mt(l[6]|l[7]<<16),-1===l[5])return(e="::ffff:")+h;if(0===l[5])return"0.0.0.0"===h&&(h=""),"0.0.0.1"===h&&(h="1"),(e="::")+h}for(r=0;r<8;r++)0===l[r]&&(r-n>1&&(a=0),n=r,a++),a>i&&(s=r-(i=a)+1);for(r=0;r<8;r++)i>1&&0===l[r]&&r>=s&&r>>1],a=He((M.buffer!=N&&K(M.buffer),V)[t+2>>>1]);switch(i){case 2:if(16!==e)return{errno:28};r=Mt(r=s()[t+4>>>2]);break;case 10:if(28!==e)return{errno:28};r=Ut(r=[s()[t+8>>>2],s()[t+12>>>2],s()[t+16>>>2],s()[t+20>>>2]]);break;default:return{errno:5}}return{family:i,addr:r,port:a}}function xt(t){for(var e=t.split("."),r=0;r<4;r++){var i=Number(e[r]);if(isNaN(i))return null;e[r]=i}return(e[0]|e[1]<<8|e[2]<<16|e[3]<<24)>>>0}function Lt(t){return parseInt(t)}function Nt(t){var e,r,i,n,s=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(t))return null;if("::"===t)return[0,0,0,0,0,0,0,0];for((t=t.startsWith("::")?t.replace("::","Z:"):t.replace("::",":Z:")).indexOf(".")>0?((e=(t=t.replace(new RegExp("[.]","g"),":")).split(":"))[e.length-4]=Lt(e[e.length-4])+256*Lt(e[e.length-3]),e[e.length-3]=Lt(e[e.length-2])+256*Lt(e[e.length-1]),e=e.slice(0,e.length-2)):e=t.split(":"),i=0,n=0,r=0;r=At.length&&(At.length=t+1),At[t]=e=J.get(t)),e}(t)(e);rt()?wt.setExitStatus(r):We(r)};var kt={address_map:{id:1,addrs:{},names:{}},lookup_name:function(t){var e,r=xt(t);if(null!==r||null!==(r=Nt(t)))return t;if(kt.address_map.addrs[t])e=kt.address_map.addrs[t];else{var i=kt.address_map.id++;L(i<65535,"exceeded max address mappings of 65535"),e="172.29."+(255&i)+"."+(65280&i),kt.address_map.names[e]=t,kt.address_map.addrs[t]=e}return e},lookup_addr:function(t){return kt.address_map.names[t]?kt.address_map.names[t]:null}};function Ct(t,e,r){if(r&&0===t)return null;var i=Rt(t,e);if(i.errno)throw new Et.ErrnoError(i.errno);return i.addr=kt.lookup_addr(i.addr)||i.addr,i}function Pt(t,e,r){if(v)return ce(5,1,t,e,r);var i=Dt(t),n=Ct(e,r);return i.sock_ops.bind(i,n.addr,n.port),0}function Vt(t,e,r){if(v)return ce(6,1,t,e,r);var i=Dt(t),n=Ct(e,r);return i.sock_ops.connect(i,n.addr,n.port),0}function Ht(t,e,r,i){if(v)return ce(7,1,t,e,r,i)}function jt(t,e,r){return v?ce(8,1,t,e,r):(bt.varargs=r,0)}function zt(t,e){if(v)return ce(9,1,t,e)}function Wt(t,e,r){if(v)return ce(10,1,t,e,r)}function $t(t,e,r){if(v)return ce(11,1,t,e,r)}function qt(t,e,r,i,a){switch(e){case 2:r=xt(r),pt(t,16),a&&(s()[a>>>2]=16),n()[t>>>1]=e,s()[t+4>>>2]=r,n()[t+2>>>1]=Pe(i);break;case 10:r=Nt(r),pt(t,28),a&&(s()[a>>>2]=28),s()[t>>>2]=e,s()[t+8>>>2]=r[0],s()[t+12>>>2]=r[1],s()[t+16>>>2]=r[2],s()[t+20>>>2]=r[3],n()[t+2>>>1]=Pe(i);break;default:return 5}return 0}function Yt(t,e,r){if(v)return ce(12,1,t,e,r);var i=Dt(t);return i.daddr?(qt(e,i.family,kt.lookup_name(i.daddr),i.dport,r),0):-53}function Xt(t,e,r,i,n){if(v)return ce(13,1,t,e,r,i,n);var a=Dt(t);return 1===e&&4===r?(s()[i>>>2]=a.error,s()[n>>>2]=4,a.error=null,0):-50}function Kt(t,e,r){return v?ce(14,1,t,e,r):(bt.varargs=r,0)}function Gt(t,e){if(v)return ce(15,1,t,e)}function Jt(t,e,r){if(v)return ce(16,1,t,e,r)}function Zt(t,e,r,i){if(v)return ce(17,1,t,e,r,i)}function Qt(t,e,r,i){if(v)return ce(18,1,t,e,r,i);bt.varargs=i}function te(t,e,r,n,s,a){if(v)return ce(19,1,t,e,r,n,s,a);var o=Dt(t),l=o.sock_ops.recvmsg(o,r);return l?(s&&qt(s,o.family,kt.lookup_name(l.addr),l.port,a),i().set(l.buffer,e>>>0),l.buffer.byteLength):0}function ee(t,e,r,i){if(v)return ce(20,1,t,e,r,i)}function re(t){if(v)return ce(21,1,t)}function ie(t,e,r,i,n,s){if(v)return ce(22,1,t,e,r,i,n,s)}function ne(t,e,r){if(v)return ce(23,1,t,e,r)}function se(t,e){if(v)return ce(24,1,t,e)}function ae(t,e,r){if(v)return ce(25,1,t,e,r)}var oe,le="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function ue(t){Atomics.store(s(),t>>2,1),Ne()&&je(t),Atomics.compareExchange(s(),t>>2,1,0)}function he(t){he.shown||(he.shown={}),he.shown[t]||(he.shown[t]=1,g&&(t="warning: "+t),E(t))}function de(t){var e=Xe(),r=t();return Ke(e),r}function ce(t,e){var r=arguments.length-2,i=arguments;return de((()=>{for(var n=r,s=Ge(8*n),a=s>>3,l=0;l>>0]=u}return Ve(t,n,s,e)}))}h.executeNotifiedProxyingQueue=ue,oe=g?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:v?()=>performance.now()-h.__performance_now_clock_drift:()=>performance.now();var fe=[];function pe(t){try{return M.grow(t-N.byteLength+65535>>>16),K(M.buffer),1}catch(t){}}var ye={};function be(){if(!be.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:y||"./this.program"};for(var e in ye)void 0===ye[e]?delete t[e]:t[e]=ye[e];var r=[];for(var e in t)r.push(e+"="+t[e]);be.strings=r}return be.strings}function _e(t,e){if(v)return ce(26,1,t,e);var i=0;return be().forEach((function(n,s){var o=e+i;a()[t+4*s>>>2]=o,function(t,e,i){for(var n=0;n>>0]=t.charCodeAt(n);r()[e>>>0]=0}(n,o),i+=n.length+1})),0}function me(t,e){if(v)return ce(27,1,t,e);var r=be();a()[t>>>2]=r.length;var i=0;return r.forEach((function(t){i+=t.length+1})),a()[e>>>2]=i,0}function ge(t){return v?ce(28,1,t):52}function ve(t,e,r,i,n,s){return v?ce(29,1,t,e,r,i,n,s):52}function we(t,e,r,i,n,s){return v?ce(30,1,t,e,r,i,n,s):52}function Ie(t,e,r,i){return v?ce(31,1,t,e,r,i):52}function Se(t,e,r,i,n){return v?ce(32,1,t,e,r,i,n):70}function Ae(t){return v?ce(33,1,t):52}var Te=[null,[],[]];function Oe(t,e){var r=Te[t];0===e||10===e?((1===t?B:E)($(r,0)),r.length=0):r.push(e)}function Fe(t,e,r,n){if(v)return ce(34,1,t,e,r,n);for(var s=0,o=0;o>>2],u=a()[e+4>>>2];e+=8;for(var h=0;h>>0]);s+=u}return a()[n>>>2]=s,0}function Be(t,e,r,i){if(v)return ce(35,1,t,e,r,i);var n,o=0,l=0,u=0,h=0,d=0,c=0;function f(t,e,r,i,n,o){var l,u,h;return u=10===t?28:16,n=10===t?Ut(n):Mt(n),L(!qt(l=$e(u),t,n,o)),h=$e(32),s()[h+4>>>2]=t,s()[h+8>>>2]=e,s()[h+12>>>2]=r,s()[h+24>>>2]=i,a()[h+20>>>2]=l,s()[h+16>>>2]=10===t?28:16,s()[h+28>>>2]=0,h}if(r&&(u=s()[r>>>2],h=s()[r+4>>>2],d=s()[r+8>>>2],c=s()[r+12>>>2]),d&&!c&&(c=2===d?17:6),!d&&c&&(d=17===c?2:1),0===c&&(c=6),0===d&&(d=1),!t&&!e)return-2;if(-1088&u||0!==r&&2&s()[r>>>2]&&!t)return-1;if(32&u)return-2;if(0!==d&&1!==d&&2!==d)return-7;if(0!==h&&2!==h&&10!==h)return-6;if(e&&(e=q(e),l=parseInt(e,10),isNaN(l)))return 1024&u?-2:-8;if(!t)return 0===h&&(h=2),0==(1&u)&&(o=2===h?Ce(2130706433):[0,0,0,1]),n=f(h,d,c,null,o,l),a()[i>>>2]=n,0;if(null!==(o=xt(t=q(t))))if(0===h||2===h)h=2;else{if(!(10===h&&8&u))return-2;o=[0,0,Ce(65535),o],h=10}else if(null!==(o=Nt(t))){if(0!==h&&10!==h)return-2;h=10}return null!=o?(n=f(h,d,c,t,o,l),a()[i>>>2]=n,0):4&u?-2:(o=xt(t=kt.lookup_name(t)),0===h?h=2:10===h&&(o=[0,0,Ce(65535),o]),n=f(h,d,c,null,o,l),a()[i>>>2]=n,0)}function Ee(t){return t%4==0&&(t%100!=0||t%400==0)}var De=[31,29,31,30,31,30,31,31,30,31,30,31],Me=[31,28,31,30,31,30,31,31,30,31,30,31];function Ue(t,e){r().set(t,e>>>0)}wt.init();var Re,xe=[null,_t,St,Tt,Ft,Pt,Vt,Ht,jt,zt,Wt,$t,Yt,Xt,Kt,Gt,Jt,Zt,Qt,te,ee,re,ie,ne,se,ae,_e,me,ge,ve,we,Ie,Se,Ae,Fe,Be],Le={b:function(t,e,r,i){lt("Assertion failed: "+q(t)+", at: "+[e?q(e):"unknown filename",r,i?q(i):"unknown function"])},v:function(t){ke(t,!m,1,!_),wt.threadInitTLS()},s:function(t){v?postMessage({cmd:"cleanupThread",thread:t}):ft(t)},ba:Ot,U:Ft,Y:Pt,X:Vt,Q:Ht,c:jt,ja:zt,A:Wt,fa:$t,S:Yt,T:Xt,la:Kt,ga:Gt,ka:Jt,ha:Zt,r:Qt,V:te,O:ee,p:re,W:ie,m:ne,ia:se,q:ae,_:function(t){},o:function(t,e){lt(le)},$:function(t,e){lt(le)},ca:function(){return 2097152},sa:function(){return!0},Z:function(t,e,r,i){if(t==e)setTimeout((()=>ue(i)));else if(v)postMessage({targetThread:t,cmd:"processProxyingQueue",queue:i});else{var n=wt.pthreads[t];if(!n)return;n.postMessage({cmd:"processProxyingQueue",queue:i})}return 1},J:function(t,e,r){return-1},f:function(){lt("")},H:function(t,e){return globalThis.DUCKDB_RUNTIME.createDirectory(h,t,e)},I:function(t,e){return globalThis.DUCKDB_RUNTIME.checkDirectory(h,t,e)},F:function(t,e){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(h,t,e)},G:function(t,e){return globalThis.DUCKDB_RUNTIME.removeDirectory(h,t,e)},k:function(t){return globalThis.DUCKDB_RUNTIME.closeFile(h,t)},D:function(t,e){return globalThis.DUCKDB_RUNTIME.checkFile(h,t,e)},w:function(t){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(h,t)},E:function(t,e,r,i){return globalThis.DUCKDB_RUNTIME.moveFile(h,t,e,r,i)},L:function(t,e){return globalThis.DUCKDB_RUNTIME.openFile(h,t,e)},g:function(t,e,r,i){return globalThis.DUCKDB_RUNTIME.readFile(h,t,e,r,i)},K:function(t,e){return globalThis.DUCKDB_RUNTIME.truncateFile(h,t,e)},h:function(t,e,r,i){return globalThis.DUCKDB_RUNTIME.writeFile(h,t,e,r,i)},M:function(t){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(t)},C:function(t,e){return globalThis.DUCKDB_RUNTIME.glob(h,t,e)},j:function(t){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(h,t)},N:function(t,e,r,i,n,s){return globalThis.DUCKDB_RUNTIME.callScalarUDF(h,t,e,r,i,n,s)},l:function(){g||m||he("Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread")},ta:function(){return Date.now()},ma:function(){return 4294901760},d:oe,ea:function(t,e,r){i().copyWithin(t>>>0,e>>>0,e+r>>>0)},na:function(){return g?lf().cpus().length:navigator.hardwareConcurrency},z:function(t,e,r){fe.length=e;for(var i=r>>3,n=0;n>>0];return(t<0?dt[-t-1]:xe[t]).apply(null,fe)},ra:function(t){var e=i().length;if((t>>>=0)<=e)return!1;var r,n=4294901760;if(t>n)return!1;for(var s=1;s<=4;s*=2){var a=e*(1+.2/s);if(a=Math.min(a,t+100663296),pe(Math.min(n,(r=Math.max(t,a))+(65536-r%65536)%65536)))return!0}return!1},u:function(){throw"unwind"},pa:_e,qa:me,aa:gt,e:ge,y:ve,x:we,t:Ie,B:Se,P:Ae,i:Fe,n:Be,da:function t(e,i){t.randomDevice||(t.randomDevice=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(g)try{var e=ba("crypto");return()=>e.randomBytes(1)[0]}catch(t){}return()=>lt("randomDevice")}());for(var n=0;n>>0]=t.randomDevice();return 0},R:function(t,e,r,i,n,s,a){var o=Rt(t,e);if(o.errno)return-6;var l=o.port,u=o.addr,h=!1;if(r&&i){var d;if(1&a||!(d=kt.lookup_addr(u))){if(8&a)return-2}else u=d;X(u,r,i)+1>=i&&(h=!0)}return n&&s&&X(l=""+l,n,s)+1>=s&&(h=!0),h?-12:0},a:M||h.wasmMemory,oa:function(t,e,r,i,n){return function(t,e,r,i){var n=s()[i+40>>>2],a={tm_sec:s()[i>>>2],tm_min:s()[i+4>>>2],tm_hour:s()[i+8>>>2],tm_mday:s()[i+12>>>2],tm_mon:s()[i+16>>>2],tm_year:s()[i+20>>>2],tm_wday:s()[i+24>>>2],tm_yday:s()[i+28>>>2],tm_isdst:s()[i+32>>>2],tm_gmtoff:s()[i+36>>>2],tm_zone:n?q(n):""},o=q(r),l={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in l)o=o.replace(new RegExp(u,"g"),l[u]);var h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],d=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(t,e,r){for(var i="number"==typeof t?t.toString():t||"";i.length0?1:0}var i;return 0===(i=r(t.getFullYear()-e.getFullYear()))&&0===(i=r(t.getMonth()-e.getMonth()))&&(i=r(t.getDate()-e.getDate())),i}function y(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function b(t){var e=function(t,e){for(var r=new Date(t.getTime());e>0;){var i=Ee(r.getFullYear()),n=r.getMonth(),s=(i?De:Me)[n];if(!(e>s-r.getDate()))return r.setDate(r.getDate()+e),r;e-=s-r.getDate()+1,r.setDate(1),n<11?r.setMonth(n+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}(new Date(t.tm_year+1900,0,1),t.tm_yday),r=new Date(e.getFullYear(),0,4),i=new Date(e.getFullYear()+1,0,4),n=y(r),s=y(i);return p(n,e)<=0?p(s,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var _={"%a":function(t){return h[t.tm_wday].substring(0,3)},"%A":function(t){return h[t.tm_wday]},"%b":function(t){return d[t.tm_mon].substring(0,3)},"%B":function(t){return d[t.tm_mon]},"%C":function(t){return f((t.tm_year+1900)/100|0,2)},"%d":function(t){return f(t.tm_mday,2)},"%e":function(t){return c(t.tm_mday,2," ")},"%g":function(t){return b(t).toString().substring(2)},"%G":function(t){return b(t)},"%H":function(t){return f(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),f(e,2)},"%j":function(t){return f(t.tm_mday+function(t,e){for(var r=0,i=0;i<=e;r+=t[i++]);return r}(Ee(t.tm_year+1900)?De:Me,t.tm_mon-1),3)},"%m":function(t){return f(t.tm_mon+1,2)},"%M":function(t){return f(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return f(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=t.tm_yday+7-t.tm_wday;return f(Math.floor(e/7),2)},"%V":function(t){var e=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&e++,e){if(53==e){var r=(t.tm_wday+371-t.tm_yday)%7;4!=r&&(3!=r||!Ee(t.tm_year))&&(e=1)}}else{e=52;var i=(t.tm_wday+7-t.tm_yday-1)%7;(4==i||5==i&&Ee(t.tm_year%400-1))&&e++}return f(e,2)},"%w":function(t){return t.tm_wday},"%W":function(t){var e=t.tm_yday+7-(t.tm_wday+6)%7;return f(Math.floor(e/7),2)},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var e=t.tm_gmtoff,r=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(r?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var u in o=o.replace(/%%/g,"\0\0"),_)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),_[u](a)));var m=function(t,e,r){var i=function(t){for(var e=0,r=0;r=55296&&i<=57343?(e+=4,++r):e+=3}return e}(t)+1,n=new Array(i);return Y(t,n,0,n.length),n}(o=o.replace(/\0\0/g,"%"));return m.length>e?0:(Ue(m,t),m.length-1)}(t,e,r,i)}},Ne=(function(){var t={a:Le};function e(t,e){var r=t.exports;if(h.asm=r,function(t){wt.tlsInitFunctions.push(t)}(h.asm.hb),J=h.asm.wa,function(t){Q.unshift(t)}(h.asm.ua),U=e,!v){var i=wt.unusedWorkers.length;wt.unusedWorkers.forEach((function(t){wt.loadWasmModuleToWorker(t,(function(){--i||function(t){if(st--,h.monitorRunDependencies&&h.monitorRunDependencies(st),0==st&&(null!==at&&(clearInterval(at),at=null),ot)){var e=ot;ot=null,e()}}()}))}))}}function r(t){e(t.instance,t.module)}function i(e){return(F||!_&&!m||"function"!=typeof fetch?Promise.resolve().then((function(){return ht(nt)})):fetch(nt,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+nt+"'";return t.arrayBuffer()})).catch((function(){return ht(nt)}))).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){E("failed to asynchronously prepare wasm: "+t),lt(t)}))}if(v||(st++,h.monitorRunDependencies&&h.monitorRunDependencies(st)),h.instantiateWasm)try{return h.instantiateWasm(t,e)}catch(t){E("Module.instantiateWasm callback failed with error: "+t),u(t)}(F||"function"!=typeof WebAssembly.instantiateStreaming||ut(nt)||g||"function"!=typeof fetch?i(r):fetch(nt,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return E("wasm streaming compile failed: "+t),E("falling back to ArrayBuffer instantiation"),i(r)}))}))).catch(u)}(),h.___wasm_call_ctors=function(){return(h.___wasm_call_ctors=h.asm.ua).apply(null,arguments)},h._main=function(){return(h._main=h.asm.va).apply(null,arguments)},h._duckdb_web_fs_glob_add_path=function(){return(h._duckdb_web_fs_glob_add_path=h.asm.xa).apply(null,arguments)},h._duckdb_web_clear_response=function(){return(h._duckdb_web_clear_response=h.asm.ya).apply(null,arguments)},h._duckdb_web_fail_with=function(){return(h._duckdb_web_fail_with=h.asm.za).apply(null,arguments)},h._duckdb_web_reset=function(){return(h._duckdb_web_reset=h.asm.Aa).apply(null,arguments)},h._duckdb_web_connect=function(){return(h._duckdb_web_connect=h.asm.Ba).apply(null,arguments)},h._duckdb_web_disconnect=function(){return(h._duckdb_web_disconnect=h.asm.Ca).apply(null,arguments)},h._duckdb_web_flush_files=function(){return(h._duckdb_web_flush_files=h.asm.Da).apply(null,arguments)},h._duckdb_web_flush_file=function(){return(h._duckdb_web_flush_file=h.asm.Ea).apply(null,arguments)},h._duckdb_web_open=function(){return(h._duckdb_web_open=h.asm.Fa).apply(null,arguments)},h._duckdb_web_get_global_file_info=function(){return(h._duckdb_web_get_global_file_info=h.asm.Ga).apply(null,arguments)},h._duckdb_web_collect_file_stats=function(){return(h._duckdb_web_collect_file_stats=h.asm.Ha).apply(null,arguments)},h._duckdb_web_export_file_stats=function(){return(h._duckdb_web_export_file_stats=h.asm.Ia).apply(null,arguments)},h._duckdb_web_fs_drop_file=function(){return(h._duckdb_web_fs_drop_file=h.asm.Ja).apply(null,arguments)},h._duckdb_web_fs_drop_files=function(){return(h._duckdb_web_fs_drop_files=h.asm.Ka).apply(null,arguments)},h._duckdb_web_fs_glob_file_infos=function(){return(h._duckdb_web_fs_glob_file_infos=h.asm.La).apply(null,arguments)},h._duckdb_web_fs_get_file_info_by_id=function(){return(h._duckdb_web_fs_get_file_info_by_id=h.asm.Ma).apply(null,arguments)},h._duckdb_web_fs_get_file_info_by_name=function(){return(h._duckdb_web_fs_get_file_info_by_name=h.asm.Na).apply(null,arguments)},h._duckdb_web_fs_register_file_url=function(){return(h._duckdb_web_fs_register_file_url=h.asm.Oa).apply(null,arguments)},h._duckdb_web_fs_register_file_buffer=function(){return(h._duckdb_web_fs_register_file_buffer=h.asm.Pa).apply(null,arguments)},h._duckdb_web_copy_file_to_buffer=function(){return(h._duckdb_web_copy_file_to_buffer=h.asm.Qa).apply(null,arguments)},h._duckdb_web_copy_file_to_path=function(){return(h._duckdb_web_copy_file_to_path=h.asm.Ra).apply(null,arguments)},h._duckdb_web_get_version=function(){return(h._duckdb_web_get_version=h.asm.Sa).apply(null,arguments)},h._duckdb_web_get_feature_flags=function(){return(h._duckdb_web_get_feature_flags=h.asm.Ta).apply(null,arguments)},h._duckdb_web_tokenize=function(){return(h._duckdb_web_tokenize=h.asm.Ua).apply(null,arguments)},h._duckdb_web_udf_scalar_create=function(){return(h._duckdb_web_udf_scalar_create=h.asm.Va).apply(null,arguments)},h._duckdb_web_prepared_create=function(){return(h._duckdb_web_prepared_create=h.asm.Wa).apply(null,arguments)},h._duckdb_web_prepared_close=function(){return(h._duckdb_web_prepared_close=h.asm.Xa).apply(null,arguments)},h._duckdb_web_prepared_run=function(){return(h._duckdb_web_prepared_run=h.asm.Ya).apply(null,arguments)},h._duckdb_web_prepared_send=function(){return(h._duckdb_web_prepared_send=h.asm.Za).apply(null,arguments)},h._duckdb_web_query_run=function(){return(h._duckdb_web_query_run=h.asm._a).apply(null,arguments)},h._duckdb_web_pending_query_start=function(){return(h._duckdb_web_pending_query_start=h.asm.$a).apply(null,arguments)},h._duckdb_web_pending_query_poll=function(){return(h._duckdb_web_pending_query_poll=h.asm.ab).apply(null,arguments)},h._duckdb_web_pending_query_cancel=function(){return(h._duckdb_web_pending_query_cancel=h.asm.bb).apply(null,arguments)},h._duckdb_web_query_fetch_results=function(){return(h._duckdb_web_query_fetch_results=h.asm.cb).apply(null,arguments)},h._duckdb_web_get_tablenames=function(){return(h._duckdb_web_get_tablenames=h.asm.db).apply(null,arguments)},h._duckdb_web_insert_arrow_from_ipc_stream=function(){return(h._duckdb_web_insert_arrow_from_ipc_stream=h.asm.eb).apply(null,arguments)},h._duckdb_web_insert_csv_from_path=function(){return(h._duckdb_web_insert_csv_from_path=h.asm.fb).apply(null,arguments)},h._duckdb_web_insert_json_from_path=function(){return(h._duckdb_web_insert_json_from_path=h.asm.gb).apply(null,arguments)},h.__emscripten_tls_init=function(){return(h.__emscripten_tls_init=h.asm.hb).apply(null,arguments)},h._pthread_self=function(){return(Ne=h._pthread_self=h.asm.ib).apply(null,arguments)}),ke=h.__emscripten_thread_init=function(){return(ke=h.__emscripten_thread_init=h.asm.jb).apply(null,arguments)},Ce=(h.__emscripten_thread_crashed=function(){return(h.__emscripten_thread_crashed=h.asm.kb).apply(null,arguments)},h._htonl=function(){return(Ce=h._htonl=h.asm.lb).apply(null,arguments)}),Pe=h._htons=function(){return(Pe=h._htons=h.asm.mb).apply(null,arguments)},Ve=h._emscripten_run_in_main_runtime_thread_js=function(){return(Ve=h._emscripten_run_in_main_runtime_thread_js=h.asm.nb).apply(null,arguments)},He=h._ntohs=function(){return(He=h._ntohs=h.asm.ob).apply(null,arguments)},je=h.__emscripten_proxy_execute_task_queue=function(){return(je=h.__emscripten_proxy_execute_task_queue=h.asm.pb).apply(null,arguments)},ze=h.__emscripten_thread_free_data=function(){return(ze=h.__emscripten_thread_free_data=h.asm.qb).apply(null,arguments)},We=h.__emscripten_thread_exit=function(){return(We=h.__emscripten_thread_exit=h.asm.rb).apply(null,arguments)},$e=h._malloc=function(){return($e=h._malloc=h.asm.sb).apply(null,arguments)},qe=(h._free=function(){return(h._free=h.asm.tb).apply(null,arguments)},h.___trap=function(){return(qe=h.___trap=h.asm.ub).apply(null,arguments)}),Ye=h._emscripten_stack_set_limits=function(){return(Ye=h._emscripten_stack_set_limits=h.asm.vb).apply(null,arguments)},Xe=h.stackSave=function(){return(Xe=h.stackSave=h.asm.wb).apply(null,arguments)},Ke=h.stackRestore=function(){return(Ke=h.stackRestore=h.asm.xb).apply(null,arguments)},Ge=h.stackAlloc=function(){return(Ge=h.stackAlloc=h.asm.yb).apply(null,arguments)};function Je(t){if(t=t||p,!(st>0)){if(v)return l(h),it(),void postMessage({cmd:"loaded"});(function(){if(h.preRun)for("function"==typeof h.preRun&&(h.preRun=[h.preRun]);h.preRun.length;)t=h.preRun.shift(),Z.unshift(t);var t;It(Z)})(),st>0||(h.setStatus?(h.setStatus("Running..."),setTimeout((function(){setTimeout((function(){h.setStatus("")}),1),e()}),1)):e())}function e(){Re||(Re=!0,h.calledRun=!0,!x&&(it(),v||It(tt),l(h),h.onRuntimeInitialized&&h.onRuntimeInitialized(),Ze&&function(t){var e=h._main;try{mt(e(0,0),!0)}catch(t){return vt(t)}}(),function(){if(!v){if(h.postRun)for("function"==typeof h.postRun&&(h.postRun=[h.postRun]);h.postRun.length;)t=h.postRun.shift(),et.unshift(t);It(et)}var t}()))}}if(h.keepRuntimeAlive=rt,h.wasmMemory=M,h.ccall=function(t,e,r,i,n){var s={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);X(t,e=Ge(r),r)}return e},array:t=>{var e=Ge(t.length);return Ue(t,e),e}},a=function(t){return h["_"+t]}(t),o=[],l=0;if(i)for(var u=0;u0;)h.preInit.pop()();var Ze=!0;return h.noInitialRun&&(Ze=!1),Je(),e.ready}})(),uf=vy,qo=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),r=Mt.from(e);return console.assert(r.isSync()),console.assert(r.isFile()),new Et(r)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;null==e;)e=await new Promise(((t,e)=>{try{t(this._bindings.pollPendingQuery(this._conn))}catch(t){e(t)}}));let r=new Zo(this._bindings,this._conn,e),i=Mt.from(r);return console.assert(i.isSync()),console.assert(i.isStream()),i}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new gc(this._bindings,this._conn,e)}createScalarFunction(t,e,r){this._bindings.createScalarFunction(this._conn,t,e,r)}insertArrowTable(t,e){let r=Go(t,"stream");this.insertArrowFromIPCStream(r,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},Zo=class{constructor(t,e,r){this.bindings=t,this.conn=e,this.header=r,this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let t=this.bindings.fetchQueryResults(this.conn);return this._depleted=0==t.length,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},gc=class{constructor(t,e,r){this.bindings=t,this.connectionId=e,this.statementId=r}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),r=Mt.from(e);return console.assert(r.isSync()),console.assert(r.isFile()),new Et(r)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),r=new Zo(this.bindings,this.connectionId,e),i=Mt.from(r);return console.assert(i.isSync()),console.assert(i.isStream()),i}},hf=new TextEncoder,df=new TextDecoder("utf-8");function wc(t,e,r){let i=hf.encode(r),n=t._malloc(i.byteLength),s=t.HEAPU8.subarray(n,n+i.byteLength);s.set(i),t.HEAPF64[0+(e>>3)]=1,t.HEAPF64[1+(e>>3)]=n,t.HEAPF64[2+(e>>3)]=s.byteLength}function Sc(t){switch(t){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function vc(t,e,r,i){let n=t.HEAPU8.subarray(e,e+i*Sc(r));switch(r){case"UINT8":return new Uint8Array(n.buffer,n.byteOffset,i);case"INT8":return new Int8Array(n.buffer,n.byteOffset,i);case"INT32":return new Int32Array(n.buffer,n.byteOffset,i);case"FLOAT":return new Float32Array(n.buffer,n.byteOffset,i);case"DOUBLE":case"VARCHAR":return new Float64Array(n.buffer,n.byteOffset,i);default:return new Array(0)}}function ff(t,e,r){let i=t.HEAPU8.subarray(e,e+r);return new Uint8Array(i.buffer,i.byteOffset,r)}function Qo(t,e,r){let i=t.HEAPU8.subarray(e,e+8*r);return new Float64Array(i.buffer,i.byteOffset,r)}function pf(t,e,r,i,n,s,a,o){try{let l=t._udfFunctions.get(i);if(!l)return void wc(e,r,"Unknown UDF with id: "+i);let u=df.decode(e.HEAPU8.subarray(n,n+s)),h=JSON.parse(u),d=Qo(e,a,o/8),c=t=>{var r;let i=null;switch(void 0!==t.validityBuffer&&(i=ff(e,d[t.validityBuffer],h.rows)),t.physicalType){case"VARCHAR":{if(null===t.dataBuffer||void 0===t.dataBuffer)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(null===t.lengthBuffer||void 0===t.lengthBuffer)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let r=vc(e,d[t.dataBuffer],t.physicalType,h.rows),n=[],s=Qo(e,d[t.lengthBuffer],h.rows);for(let t=0;tn[t]}case"STRUCT":{let e={},n=[];for(let i=0;i<((null==(r=t.children)?void 0:r.length)||0);++i){let r=t.children[i],s=c(r);n.push((t=>{e[r.name]=s(t)}))}return null!=i?t=>{if(!i[t])return null;for(let e of n)e(t);return e}:t=>{for(let e of n)e(t);return e}}default:{if(void 0===t.dataBuffer)throw new Error("malformed data view, expected data buffer for argument of type: "+t.physicalType);let r=vc(e,d[t.dataBuffer],t.physicalType,h.rows);return null!=i?t=>i[t]?r[t]:null:t=>r[t]}}},f=[];for(let t=0;t>3)]=0,e.HEAPF64[1+(r>>3)]=S,e.HEAPF64[2+(r>>3)]=0}catch(t){wc(e,r,t.toString())}}function Iy(){let t=new TextDecoder;return e=>(typeof SharedArrayBuffer<"u"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),t.decode(e))}var Ay=Iy();function vr(t,e){console.error(`FAIL WITH: ${e}`),t.ccall("duckdb_web_fail_with",null,["string"],[e])}function Bn(t,e,r){let i=t.HEAPU8.subarray(e,e+r),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function W(t,e,r){return Ay(t.HEAPU8.subarray(e,e+r))}function ot(t,e,r,i){let n=t.stackSave(),s=t.stackAlloc(24);r.unshift("number"),i.unshift(s),t.ccall(e,null,r,i);let a=t.HEAPF64[0+(s>>3)],o=t.HEAPF64[1+(s>>3)],l=t.HEAPF64[2+(s>>3)];return t.stackRestore(n),[a,o,l]}function vt(t){t.ccall("duckdb_web_clear_response",null,[],[])}var ta=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),r=new Uint8Array(new ArrayBuffer(t.byteLength));r.set(t.subarray(56)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=r}getBlockStats(t,e){return(e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0}).file_writes=15&this.blockStats[3*t+0],e.file_reads_cold=this.blockStats[3*t+0]>>4,e.file_reads_ahead=15&this.blockStats[3*t+1],e.file_reads_cached=this.blockStats[3*t+1]>>4,e.page_accesses=15&this.blockStats[3*t+1],e.page_loads=this.blockStats[3*t+1]>>4,e}},Fy=new TextEncoder,ea=class{constructor(t,e){this._instance=null,this._initPromise=null,this._initPromiseResolver=()=>{},this.onInstantiationProgress=[],this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=(t=>{})){return null!=this._instance||(null!=this._initPromise&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise((t=>{this._initPromiseResolver=t})),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter((e=>e!=t))),this}open(t){let[e,r,i]=ot(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(0!==e)throw new Error(W(this.mod,r,i));vt(this.mod)}reset(){let[t,e,r]=ot(this.mod,"duckdb_web_reset",[],[]);if(0!==t)throw new Error(W(this.mod,e,r));vt(this.mod)}getVersion(){let[t,e,r]=ot(this.mod,"duckdb_web_get_version",[],[]);if(0!==t)throw new Error(W(this.mod,e,r));let i=W(this.mod,e,r);return vt(this.mod),i}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,r,i]=ot(this.mod,"duckdb_web_tokenize",["string"],[t]);if(0!==e)throw new Error(W(this.mod,r,i));let n=W(this.mod,r,i);return vt(this.mod),JSON.parse(n)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new qo(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[r,i,n]=ot(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(0!==r)throw new Error(W(this.mod,i,n));let s=Bn(this.mod,i,n);return vt(this.mod),s}startPendingQuery(t,e){let[r,i,n]=ot(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(0!==r)throw new Error(W(this.mod,i,n));if(0==i)return null;let s=Bn(this.mod,i,n);return vt(this.mod),s}pollPendingQuery(t){let[e,r,i]=ot(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(0!==e)throw new Error(W(this.mod,r,i));if(0==r)return null;let n=Bn(this.mod,r,i);return vt(this.mod),n}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,r,i]=ot(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(0!==e)throw new Error(W(this.mod,r,i));let n=Bn(this.mod,r,i);return vt(this.mod),n}getTableNames(t,e){let[r,i,n]=ot(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(0!==r)throw new Error(W(this.mod,i,n));let s=W(this.mod,i,n);return vt(this.mod),JSON.parse(s)}createScalarFunction(t,e,r,i){let n={functionId:this._nextUDFId,name:e,returnType:ii(r)},s={functionId:n.functionId,connectionId:t,name:e,returnType:r,func:i};this._nextUDFId+=1;let[a,o,l]=ot(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(n)]);if(0!==a)throw new Error(W(this.mod,o,l));if(vt(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(s.functionId,s),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"registerUDFFunction",udf:s})}createPrepared(t,e){let[r,i,n]=ot(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(0!==r)throw new Error(W(this.mod,i,n));return vt(this.mod),i}closePrepared(t,e){let[r,i,n]=ot(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(0!==r)throw new Error(W(this.mod,i,n));vt(this.mod)}runPrepared(t,e,r){let[i,n,s]=ot(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(r)]);if(0!==i)throw new Error(W(this.mod,n,s));let a=Bn(this.mod,n,s);return vt(this.mod),a}sendPrepared(t,e,r){let[i,n,s]=ot(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(r)]);if(0!==i)throw new Error(W(this.mod,n,s));let a=Bn(this.mod,n,s);return vt(this.mod),a}insertArrowFromIPCStream(t,e,r){if(0==e.length)return;let i=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(i,i+e.length).set(e);let n=r?JSON.stringify(r):"",[s,a,o]=ot(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,i,e.length,n]);if(0!==s)throw new Error(W(this.mod,a,o))}insertCSVFromPath(t,e,r){if(void 0!==r.columns){r.columnsFlat=[];for(let t in r.columns)r.columnsFlat.push(Ko(t,r.columns[t]))}let i={...r};i.columns=i.columnsFlat,delete i.columnsFlat;let n=JSON.stringify(i),[s,a,o]=ot(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,n]);if(0!==s)throw new Error(W(this.mod,a,o))}insertJSONFromPath(t,e,r){if(void 0!==r.columns){r.columnsFlat=[];for(let t in r.columns)r.columnsFlat.push(Ko(t,r.columns[t]))}let i={...r};i.columns=i.columnsFlat,delete i.columnsFlat;let n=JSON.stringify(i),[s,a,o]=ot(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,n]);if(0!==s)throw new Error(W(this.mod,a,o))}globFiles(t){let[e,r,i]=ot(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(0!==e)throw new Error(W(this.mod,r,i));let n=W(this.mod,r,i);vt(this.mod);let s=JSON.parse(n);return null==s?[]:s}registerFileURL(t,e,r,i=!1){void 0===e&&(e=t);let[n,s,a]=ot(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[t,e,r,i]);if(0!==n)throw new Error(W(this.mod,s,a));vt(this.mod)}registerFileText(t,e){let r=Fy.encode(e);this.registerFileBuffer(t,r)}registerFileBuffer(t,e){let r=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(r,r+e.length).set(e);let[i,n,s]=ot(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,r,e.length]);if(0!==i)throw new Error(W(this.mod,n,s));vt(this.mod)}registerFileHandle(t,e,r,i){let[n,s,a]=ot(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[t,t,r,i]);if(0!==n)throw new Error(W(this.mod,s,a));if(vt(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let r of this.pthread.runningWorkers)r.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let e of this.pthread.unusedWorkers)e.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,r,i]=ot(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(0!==e)throw new Error(W(this.mod,r,i));vt(this.mod)}dropFiles(){let[t,e,r]=ot(this.mod,"duckdb_web_fs_drop_files",[],[]);if(0!==t)throw new Error(W(this.mod,e,r));vt(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[r,i,n]=ot(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(0!==r)throw new Error(W(this.mod,i,n));vt(this.mod)}copyFileToBuffer(t){let[e,r,i]=ot(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(0!==e)throw new Error(W(this.mod,r,i));let n=this.mod.HEAPU8.subarray(r,r+i),s=new Uint8Array(n.length);return s.set(n),vt(this.mod),s}collectFileStatistics(t,e){let[r,i,n]=ot(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(0!==r)throw new Error(W(this.mod,i,n))}exportFileStatistics(t){let[e,r,i]=ot(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(0!==e)throw new Error(W(this.mod,r,i));return new ta(this.mod.HEAPU8.subarray(r,r+i))}},ra=class extends ea{constructor(t,e,r,i){super(t,e),this.mainModuleURL=r,this.pthreadWorkerURL=i}locateFile(t,e){if(t.endsWith(".wasm"))return this.mainModuleURL;if(t.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${e} path=${t}`)}instantiateWasm(t,e){globalThis.DUCKDB_RUNTIME=this._runtime;let r=this.onInstantiationProgress;if(WebAssembly.instantiateStreaming)if("function"==typeof TransformStream){let i=(async()=>{var t;let e=new Request(this.mainModuleURL),i=await fetch(e),n=i.headers.get("content-length"),s=n&&parseInt(n,10)||0,a=new Date,o={startedAt:a,updatedAt:a,bytesTotal:s||0,bytesLoaded:0},l=new TransformStream({transform(t,e){o.bytesLoaded+=t.byteLength;let i=new Date;if(i.getTime()-o.updatedAt.getTime()<20)return o.updatedAt=i,void e.enqueue(t);for(let t of r)t(o);e.enqueue(t)}});return new Response(null==(t=i.body)?void 0:t.pipeThrough(l),i)})();WebAssembly.instantiateStreaming(i,t).then((t=>{e(t.instance,t.module)}))}else{console.warn("instantiating without progress handler since transform streams are unavailable");let r=new Request(this.mainModuleURL);WebAssembly.instantiateStreaming(fetch(r),t).then((t=>{e(t.instance,t.module)}))}else if("function"==typeof XMLHttpRequest){let i=new XMLHttpRequest,n=this.mainModuleURL,s=new Date,a={startedAt:s,updatedAt:s,bytesTotal:0,bytesLoaded:0};i.open("GET",n),i.responseType="arraybuffer",i.onerror=t=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+t}),new Error(t.toString())},i.onprogress=t=>{a.bytesTotal=t.total,a.bytesLoaded=t.loaded;let e=new Date;if(e.getTime()-a.updatedAt.getTime()<20)a.updatedAt=e;else for(let t of r)t(a)},i.onload=()=>{WebAssembly.instantiate(i.response,t).then((t=>{e(t.instance,t.module)})).catch((t=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+t}),new Error(t)}))},i.send()}else console.warn("instantiating with manual fetch since streaming instantiation and xhrs are unavailable"),(async()=>{let r=new Request(this.mainModuleURL),i=await(await fetch(r)).arrayBuffer();WebAssembly.instantiate(i,t).then((t=>{e(t.instance,t.module)}))})();return[]}},na=class extends ra{constructor(t,e,r,i=null){super(t,e,r,i)}instantiateImpl(t){return uf({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}},sn=ql(mf()),_f=function(t,e,r){var i;if(null!=(i=null==t?void 0:t.endpoint)&&i.startsWith("http")){let e=`${null==t?void 0:t.endpoint}`,r=e.indexOf("://")+3;return e.substring(r)}return null!=t&&t.endpoint?`${r}.${null==t?void 0:t.endpoint}`:`${r}.s3.amazonaws.com`};function xy(t,e,r){var i,n,s,a;let o=yf(e);return{url:o.path,query:"",host:_f(t,e,o.bucket),region:null!=(i=null==t?void 0:t.region)?i:"",service:"s3",method:r,accessKeyId:null!=(n=null==t?void 0:t.accessKeyId)?n:"",secretAccessKey:null!=(s=null==t?void 0:t.secretAccessKey)?s:"",sessionToken:null!=(a=null==t?void 0:t.sessionToken)?a:"",dateNow:(new Date).toISOString().replace(/-/g,"").split("T")[0],datetimeNow:(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function Ty(t,e=!1){let r="0123456789ABCDEF",i="";for(let n=0;n="A"&&s<="Z"||s>="a"&&s<="z"||s>="0"&&s<="9"||"_"==s||"-"==s||"~"==s||"."==s?i+=s:"/"==s?i+=e?"%2F":s:(i+="%",i+=r[s.charCodeAt(0)>>4],i+=r[15&s.charCodeAt(0)])}return i}function By(t,e=null){var r;let i=null!=(r=null==e?void 0:e.contentHash)?r:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",n=new Map;n.set("x-amz-date",t.datetimeNow),n.set("x-amz-content-sha256",i),t.sessionToken&&n.set("x-amz-security-token",t.sessionToken);let s="";null!=e&&e.contentType&&(s+="content-type;"),s+="host;x-amz-content-sha256;x-amz-date",t.sessionToken&&(s+=";x-amz-security-token");let a=t.method+"\n"+Ty(t.url)+"\n"+t.query;null!=e&&e.contentType&&(a+="\ncontent-type:"+(null==e?void 0:e.contentType)),a+="\nhost:"+t.host+"\nx-amz-content-sha256:"+i+"\nx-amz-date:"+t.datetimeNow,t.sessionToken&&t.sessionToken.length>0&&(a+="\nx-amz-security-token:"+t.sessionToken),a+="\n\n"+s+"\n"+i;let o=(0,sn.sha256)(a),l="AWS4-HMAC-SHA256\n"+t.datetimeNow+"\n"+t.dateNow+"/"+t.region+"/"+t.service+"/aws4_request\n"+o,u="AWS4"+t.secretAccessKey,h=sn.sha256.hmac.arrayBuffer(u,t.dateNow),d=sn.sha256.hmac.arrayBuffer(h,t.region),c=sn.sha256.hmac.arrayBuffer(d,t.service),f=sn.sha256.hmac.arrayBuffer(c,"aws4_request"),p=sn.sha256.hmac(f,l);return n.set("Authorization","AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+t.dateNow+"/"+t.region+"/"+t.service+"/aws4_request, SignedHeaders="+s+", Signature="+p),n}var Dy=function(t,e,r,i=null,n=null){return By(xy(t,e,r),{contentType:i,contentHash:n?sn.sha256.hex(n):null})};function on(t,e,r,i,n=null,s=null){((null==e?void 0:e.accessKeyId)||(null==e?void 0:e.sessionToken))&&(Dy(e,r,i,n,s).forEach(((e,r)=>{t.setRequestHeader(r,e)})),n&&t.setRequestHeader("content-type",n))}function yf(t){if(0!=t.indexOf("s3://"))throw new Error("URL needs to start with s3://");let e=t.indexOf("/",5);if(-1==e)throw new Error("URL needs to contain a '/' after the host");let r=t.substring(5,e);if(!r)throw new Error("URL needs to contain a bucket name");let i=t.substring(e);if(!i)throw new Error("URL needs to contain key");return{bucket:r,path:i}}function an(t,e){var r;let i=yf(e);return null!=(r=null==t?void 0:t.endpoint)&&r.startsWith("http")?`${null==t?void 0:t.endpoint}/${i.bucket}`+i.path:"https://"+_f(t,e,i.bucket)+i.path}var at={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(t,e){try{let r=at._fileInfoCache.get(e),[i,n,s]=ot(t,"duckdb_web_fs_get_file_info_by_id",["number","number"],[e,(null==r?void 0:r.cacheEpoch)||0]);if(0!==i)return null;if(0===s)return r;let a=W(t,n,s);vt(t);let o=JSON.parse(a);if(null==o)return null;let l={...o,blob:null};return at._fileInfoCache.set(e,l),l}catch(t){return null}},getGlobalFileInfo(t){var e;try{let[r,i,n]=ot(t,"duckdb_web_get_global_file_info",["number"],[(null==(e=at._globalFileInfo)?void 0:e.cacheEpoch)||0]);if(0!==r)return null;if(0===n)return at._globalFileInfo;let s=W(t,i,n);vt(t);let a=JSON.parse(s);return null==a?null:(at._globalFileInfo={...a,blob:null},at._globalFileInfo)}catch(t){return null}},testPlatformFeature:(t,e)=>1===e?typeof BigInt64Array<"u":(console.warn(`test for unknown feature: ${e}`),!1),getDefaultDataProtocol:t=>2,openFile:(t,e,r)=>{var i;try{at._fileInfoCache.delete(e);let n=at.getFileInfo(t,e);switch(null==n?void 0:n.dataProtocol){case 4:case 5:{if(1&r&&2&r)throw new Error(`Opening file ${n.fileName} failed: cannot open file with both read and write flags set`);if(32&r)throw new Error(`Opening file ${n.fileName} failed: appending to HTTP/S3 files is not supported`);if(2&r){let e=new XMLHttpRequest;if(5==n.dataProtocol?(e.open("HEAD",an(n.s3Config,n.dataUrl),!1),on(e,n.s3Config,n.dataUrl,"HEAD")):e.open("HEAD",n.dataUrl,!1),e.send(null),200!=e.status&&404!=e.status)throw new Error(`Opening file ${n.fileName} failed: Unexpected return status from server (${e.status})`);if(404==e.status&&!(8&r||16&r))throw new Error(`Opening file ${n.fileName} failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag.`);let i=t._malloc(1),s=new Uint8Array;t.HEAPU8.set(s,i);let a=t._malloc(16);return t.HEAPF64[0+(a>>3)]=1,t.HEAPF64[1+(a>>3)]=i,a}if(1!=r)throw new Error(`Opening file ${n.fileName} failed: unsupported file flags: ${r}`);let e=null;try{let e=new XMLHttpRequest;5==n.dataProtocol?(e.open("HEAD",an(n.s3Config,n.dataUrl),!1),on(e,n.s3Config,n.dataUrl,"HEAD")):e.open("HEAD",n.dataUrl,!1),e.setRequestHeader("Range","bytes=0-"),e.send(null);let r=e.getResponseHeader("Content-Length");if(206==e.status&&null!==r){let e=t._malloc(16);return t.HEAPF64[0+(e>>3)]=+r,t.HEAPF64[1+(e>>3)]=0,e}}catch(t){e=t,console.warn(`HEAD request with range header failed: ${t}`)}if(n.allowFullHttpReads){console.warn(`falling back to full HTTP read for: ${n.dataUrl}`);let e=new XMLHttpRequest;if(5==n.dataProtocol?(e.open("GET",an(n.s3Config,n.dataUrl),!1),on(e,n.s3Config,n.dataUrl,"GET")):e.open("GET",n.dataUrl,!1),e.responseType="arraybuffer",e.send(null),200==e.status){let r=t._malloc(e.response.byteLength),i=new Uint8Array(e.response,0,e.response.byteLength);t.HEAPU8.set(i,r);let n=t._malloc(16);return t.HEAPF64[0+(n>>3)]=e.response.byteLength,t.HEAPF64[1+(n>>3)]=r,n}}if(null!=e)throw new Error(`Reading file ${n.fileName} failed with error: ${e}`);return 0}case 2:{let e=null==(i=at._files)?void 0:i.get(n.fileName);if(e){let r=t._malloc(16);return t.HEAPF64[0+(r>>3)]=e.size,t.HEAPF64[1+(r>>3)]=0,r}console.warn(`Buffering missing file: ${n.fileName}`);let r=t._malloc(16),s=t._malloc(1);return t.HEAPF64[0+(r>>3)]=1,t.HEAPF64[1+(r>>3)]=s,r}}}catch(e){console.error(e.toString()),vr(t,e.toString())}return 0},glob:(t,e,r)=>{try{let i=W(t,e,r);if(i.startsWith("http")||i.startsWith("s3://")){let e=new XMLHttpRequest;if(i.startsWith("s3://")){let r=at.getGlobalFileInfo(t);e.open("HEAD",an(null==r?void 0:r.s3Config,i),!1),on(e,null==r?void 0:r.s3Config,i,"HEAD")}else e.open("HEAD",i,!1);if(e.send(null),200!=e.status&&206!==e.status)return void vr(t,`HEAD request failed: ${i}`);t.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(e){return vr(t,e.toString()),0}},checkFile:(t,e,r)=>{try{let i=W(t,e,r);if(i.startsWith("http")||i.startsWith("s3://")){let e=new XMLHttpRequest;if(i.startsWith("s3://")){let r=at.getGlobalFileInfo(t);e.open("HEAD",an(null==r?void 0:r.s3Config,i),!1),on(e,null==r?void 0:r.s3Config,i,"HEAD")}else e.open("HEAD",i,!1);return e.send(null),206==e.status||200==e.status}}catch(t){return!1}return!1},syncFile:(t,e)=>{},closeFile:(t,e)=>{var r;let i=at.getFileInfo(t,e);switch(at._fileInfoCache.delete(e),null==i?void 0:i.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let t=null==(r=at._files)?void 0:r.get(i.fileName);if(!t)throw new Error(`No OPFS access handle registered with name: ${i.fileName}`);return t.flush()}}},truncateFile:(t,e,r)=>{var i;let n=at.getFileInfo(t,e);switch(null==n?void 0:n.dataProtocol){case 4:return void vr(t,"Cannot truncate a http file");case 5:return void vr(t,"Cannot truncate an s3 file");case 0:case 1:case 2:return void vr(t,"truncateFile not implemented");case 3:{let t=null==(i=at._files)?void 0:i.get(n.fileName);if(!t)throw new Error(`No OPFS access handle registered with name: ${n.fileName}`);return t.truncate(r)}}return 0},readFile(t,e,r,i,n){var s,a;try{let o=at.getFileInfo(t,e);switch(null==o?void 0:o.dataProtocol){case 4:case 5:if(!o.dataUrl)throw new Error(`Missing data URL for file ${e}`);try{let e=new XMLHttpRequest;if(5==o.dataProtocol?(e.open("GET",an(null==o?void 0:o.s3Config,o.dataUrl),!1),on(e,null==o?void 0:o.s3Config,o.dataUrl,"GET")):e.open("GET",o.dataUrl,!1),e.responseType="arraybuffer",e.setRequestHeader("Range",`bytes=${n}-${n+i-1}`),e.send(null),206==e.status||200==e.status&&i==e.response.byteLength&&0==n){let n=new Uint8Array(e.response,0,Math.min(e.response.byteLength,i));return t.HEAPU8.set(n,r),n.byteLength}throw 200==e.status?new Error(`Range request for ${o.dataUrl} did not return a partial response: ${e.status} "${e.statusText}"`):new Error(`Range request for ${o.dataUrl} did returned non-success status: ${e.status} "${e.statusText}"`)}catch(t){throw new Error(`Range request for ${o.dataUrl} failed with error: ${t}"`)}case 2:{let e=null==(s=at._files)?void 0:s.get(o.fileName);if(!e)throw new Error(`No HTML5 file registered with name: ${o.fileName}`);let a=e.slice(n,n+i),l=new Uint8Array((new FileReaderSync).readAsArrayBuffer(a));return t.HEAPU8.set(l,r),l.byteLength}case 3:{let e=null==(a=at._files)?void 0:a.get(o.fileName);if(!e)throw new Error(`No OPFS access handle registered with name: ${o.fileName}`);let s=t.HEAPU8.subarray(r,r+i);return e.read(s,{at:n})}}return 0}catch(e){return vr(t,e.toString()),0}},writeFile:(t,e,r,i,n)=>{var s;let a=at.getFileInfo(t,e);switch(null==a?void 0:a.dataProtocol){case 4:return vr(t,"Cannot write to HTTP file"),0;case 5:{let e=t.HEAPU8.subarray(r,r+i),n=new XMLHttpRequest;return n.open("PUT",an(null==a?void 0:a.s3Config,a.dataUrl),!1),on(n,null==a?void 0:a.s3Config,a.dataUrl,"PUT","",e),n.send(e),i}case 2:return vr(t,"cannot write using the html5 file reader api"),0;case 3:{let e=null==(s=at._files)?void 0:s.get(a.fileName);if(!e)throw new Error(`No OPFS access handle registered with name: ${a.fileName}`);let o=t.HEAPU8.subarray(r,r+i);return e.write(o,{at:n})}}return 0},getLastFileModificationTime:(t,e)=>{var r;let i=at.getFileInfo(t,e);switch(null==i?void 0:i.dataProtocol){case 2:if(!(null==(r=at._files)?void 0:r.get(i.fileName)))throw Error(`No handle available for file: ${i.fileName}`);return 0;case 4:case 5:return(new Date).getTime()}return 0},checkDirectory:(t,e,r)=>{let i=W(t,e,r);return console.log(`checkDirectory: ${i}`),!1},createDirectory:(t,e,r)=>{let i=W(t,e,r);console.log(`createDirectory: ${i}`)},removeDirectory:(t,e,r)=>{let i=W(t,e,r);console.log(`removeDirectory: ${i}`)},listDirectoryEntries:(t,e,r)=>{let i=W(t,e,r);return console.log(`listDirectoryEntries: ${i}`),!1},moveFile:(t,e,r,i,n)=>{var s,a;let o=W(t,e,r),l=W(t,i,n),u=null==(s=at._files)?void 0:s.get(o);void 0!==u&&(at._files.delete(u),at._files.set(l,u));for(let[t,e]of(null==(a=at._fileInfoCache)?void 0:a.entries())||[])if(e.dataUrl==o){at._fileInfoCache.delete(t);break}return!0},removeFile:(t,e,r)=>{},callScalarUDF:(t,e,r,i,n,s,a)=>{pf(at,t,e,r,i,n,s,a)}},Ic=class extends Jo{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,r){return await new na(this,at,t,e).instantiate(r)}};function bf(){let t=new Ic;globalThis.onmessage=async e=>{await t.onMessage(e.data)}}return bf(),Pp(Ey)})(); \ No newline at end of file diff --git a/static/assets/duckdb-browser-coi.worker.e6966bd37d2ce8c12e34.js.LICENSE.txt b/static/assets/duckdb-browser-coi.worker.e6966bd37d2ce8c12e34.js.LICENSE.txt deleted file mode 100644 index 7bcb1f4c4..000000000 --- a/static/assets/duckdb-browser-coi.worker.e6966bd37d2ce8c12e34.js.LICENSE.txt +++ /dev/null @@ -1,8 +0,0 @@ -/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.9.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2017 - * @license MIT - */ diff --git a/static/assets/duckdb-browser-eh.worker.81d69481e12dff4f2ba1.js b/static/assets/duckdb-browser-eh.worker.81d69481e12dff4f2ba1.js new file mode 100644 index 000000000..a93d83a40 --- /dev/null +++ b/static/assets/duckdb-browser-eh.worker.81d69481e12dff4f2ba1.js @@ -0,0 +1,2 @@ +/*! For license information please see duckdb-browser-eh.worker.81d69481e12dff4f2ba1.js.LICENSE.txt */ +"use strict";var duckdb=(()=>{var zc=Object.create,Pn=Object.defineProperty,jc=Object.getOwnPropertyDescriptor,$c=Object.getOwnPropertyNames,qc=Object.getPrototypeOf,Xc=Object.prototype.hasOwnProperty,ba=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Qc=(e,t,r)=>t in e?Pn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,In=(o=function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(o,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):o),o,pr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mr=(e,t)=>{for(var r in t)Pn(e,r,{get:t[r],enumerable:!0})},ko=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of $c(t))!Xc.call(e,i)&&i!==r&&Pn(e,i,{get:()=>t[i],enumerable:!(n=jc(t,i))||n.enumerable});return e},Bo=(e,t,r)=>(r=null!=e?zc(qc(e)):{},ko(!t&&e&&e.__esModule?r:Pn(r,"default",{value:e,enumerable:!0}),e)),Yc=e=>ko(Pn({},"__esModule",{value:!0}),e),Qe=(e,t,r)=>(Qc(e,"symbol"!=typeof t?t+"":t,r),r),Jc=function(e,t){this[0]=e,this[1]=t},Mr=e=>{var t,r=e[ba("asyncIterator")],n=!1,i={};return null==r?(r=e[ba("iterator")](),t=e=>i[e]=t=>r[e](t)):(r=r.call(e),t=e=>i[e]=t=>{if(n){if(n=!1,"throw"===e)throw t;return t}return n=!0,{done:!1,value:new Jc(new Promise((n=>{var i=r[e](t);if(!(i instanceof Object))throw TypeError("Object expected");n(i)})),1)}}),i[ba("iterator")]=()=>i,t("next"),"throw"in r?t("throw"):i.throw=e=>{throw e},"return"in r&&t("return"),i},Eo=pr((()=>{})),wo=pr((()=>{})),Tc=pr((()=>{})),Lo=pr(((e,t)=>{t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}})),Ic=pr(((exports,module)=>{var DuckDB=(()=>{var o,_scriptName=typeof document<"u"?null==(o=document.currentScript)?void 0:o.src:void 0;return typeof __filename<"u"&&(_scriptName=_scriptName||__filename),function(moduleArg={}){var moduleRtn,Module=moduleArg,readyPromiseResolve,readyPromiseReject,readyPromise=new Promise(((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t})),ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER=typeof WorkerGlobalScope<"u",ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER,moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=Eo(),nodePath=wo();scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,n)=>{fs.readFile(e,t?void 0:"utf8",((e,i)=>{e?n(e):r(t?i.buffer:i)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:typeof document<"u"&&document.currentScript&&(scriptDirectory=document.currentScript.src),_scriptName&&(scriptDirectory=_scriptName),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary=Module.wasmBinary,wasmMemory,ABORT=!1,EXITSTATUS,HEAP,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function assert(e,t){e||abort(t)}function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||16777216;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:65536})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),!Module.noFSInit&&!FS.initialized&&FS.init(),FS.ignorePermissions=!1,TTY.init(),SOCKFS.root=FS.mount(SOCKFS,{},null),PIPEFS.root=FS.mount(PIPEFS,{},null),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPreMain(e){__ATMAIN__.unshift(e)}function addOnExit(e){}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){var t;runDependencies++,null==(t=Module.monitorRunDependencies)||t.call(Module,runDependencies)}function removeRunDependency(e){var t;if(runDependencies--,null==(t=Module.monitorRunDependencies)||t.call(Module,runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var r=dependenciesFulfilled;dependenciesFulfilled=null,r()}}function abort(e){var t;null==(t=Module.onAbort)||t.call(Module,e),err(e="Aborted("+e+")"),ABORT=!0,e+=". Build with -sASSERTIONS for more info.",runtimeInitialized&&___trap();var r=new WebAssembly.RuntimeError(e);throw readyPromiseReject(r),r}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="./duckdb-eh.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err("failed to asynchronously prepare wasm: ".concat(e)),abort(e)}))}function instantiateAsync(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return err("wasm streaming compile failed: ".concat(e)),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,n)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit((wasmExports=applySignatureConversions(wasmExports)).__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){err("Module.instantiateWasm callback failed with error: ".concat(e)),readyPromiseReject(e)}return null!=wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})).catch(readyPromiseReject),{}}var tempDouble,tempI64,ASM_CONSTS={2181432:(e,t)=>{var r="object"==typeof runtime&&runtime&&"function"==typeof runtime.whereToLoad&&runtime.whereToLoad?runtime.whereToLoad(UTF8ToString(e)):UTF8ToString(t),n=lengthBytesUTF8(r)+1,i=_malloc(n);return stringToUTF8(r,i,n),i},2181798:(e,t)=>{var r=UTF8ToString(e);if(typeof XMLHttpRequest>"u"){let e=Tc(),t=wo(),c=Eo();var n=r.split("/"),i=n.length,s=t.join(e.homedir(),".duckdb/extensions/"+n[i-4]+"/"+n[i-3]+"/"+n[i-2]+"/"),a=t.join(s,n[i-1]);try{if(c.existsSync(s)||c.mkdirSync(s,{recursive:!0}),c.existsSync(a))o=c.readFileSync(a);else{let e=new Int32Array(new SharedArrayBuffer(8));var o,l=new(0,In("node:worker_threads").Worker)("const {Worker,isMainThread,parentPort,workerData,} = require('node:worker_threads');var times = 0;var SAB = 23;var Z = 0; async function ZZZ(e) {var x = await fetch(e);var res = await x.arrayBuffer();Atomics.store(SAB, 1, res.byteLength);Atomics.store(SAB, 0, 1);Atomics.notify(SAB, 1);Atomics.notify(SAB, 0);Z = res;};parentPort.on('message', function(event) {if (times == 0) {times++;SAB = event;} else if (times == 1) {times++; ZZZ(event);} else {const a = new Uint8Array(Z);const b = new Uint8Array(event.buffer);var K = Z.byteLength;for (var i = 0; i < K; i++) {b[i] = a[i];}Atomics.notify(event, 0);Atomics.store(SAB, 0, 2);Atomics.notify(SAB, 0);}});",{eval:!0});e[0]=0,e[2]=4,l.postMessage(e),l.postMessage(r),Atomics.wait(e,0,0);let t=new Int32Array(new SharedArrayBuffer(e[1]+3-(e[1]+3)%4));l.postMessage(t),Atomics.wait(e,0,1),o=new Uint8Array(t.buffer,0,e[1]),l.terminate(),c.writeFileSync(a,o)}}catch(e){return console.log("Error fetching module",e),0}}else{let e=new XMLHttpRequest;if(e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),200!=e.status)return 0;o=e.response}WebAssembly.validate(o);for(var c=o.byteLength,u=_malloc(c+4),_=new Uint8Array(o),d=0;d{if(!e)return AL.alcErr=40964,1},2184487:e=>AL.currentCtx?e?void 0:(AL.currentCtx.err=40963,1):(err("alGetProcAddress() called without a valid context"),1)};class ExitStatus{constructor(e){Qe(this,"name","ExitStatus"),this.message="Program terminated with exit(".concat(e,")"),this.status=e}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder=typeof TextDecoder<"u"?new TextDecoder:void 0,UTF8ArrayToString=(e,t=0,r=NaN)=>{for(var n=(t>>>=0)+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,i));for(var s="";t>10,56320|1023&c)}}else s+=String.fromCharCode((31&a)<<6|o)}else s+=String.fromCharCode(a)}return s},getDylinkMetadata=e=>{var t=0,r=0;function n(){for(var r=0,n=1;;){var i=e[t++];if(r+=(127&i)*n,n*=128,!(128&i))break}return r}function i(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function s(e,t){if(e)throw new Error(t)}var a="dylink.0";if(e instanceof WebAssembly.Module){var o=WebAssembly.Module.customSections(e,a);0===o.length&&(a="dylink",o=WebAssembly.Module.customSections(e,a)),s(0===o.length,"need dylink section"),r=(e=new Uint8Array(o[0])).length}else{s(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),s(0!==e[8],"need the dylink section to be first"),t=9;var l=n();r=t+l,a=i()}var c={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==a){c.memorySize=n(),c.memoryAlign=n(),c.tableSize=n(),c.tableAlign=n();for(var u=n(),_=0;_>>0];case"i16":return HEAP16[e>>>1>>>0];case"i32":return HEAP32[e>>>2>>>0];case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return HEAPF32[e>>>2>>>0];case"double":return HEAPF64[e>>>3>>>0];case"*":return HEAPU32[e>>>2>>>0];default:abort("invalid type for getValue: ".concat(t))}}var newDSO=(e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,null!=t&&(LDSO.loadedLibsByHandle[t]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=2322880,alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n{var r=e.slice(0,1),n=e.slice(1),i={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var s=0;s{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push(...r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var i=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(i,{e:{f:e}}).exports.f},wasmTable=new WebAssembly.Table({initial:24617,element:"anyfunc"}),getWasmTableEntry=e=>wasmTable.get(e),updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){throw e instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":e}return wasmTable.length-1},setWasmTableEntry=(e,t)=>wasmTable.set(e,t),addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,i)}return functionsInTableMap.set(e,n),n},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||(GOT[r]=new WebAssembly.Global({value:"i32",mutable:!0})),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err("unhandled export type for '".concat(r,"': ").concat(typeof n)))}},relocateExports=(e,t,r)=>{var n={};for(var i in e){var s=e[i];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[i]=s}return updateGOT(n,r),n},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)&&(r=wasmImports[e]),{sym:r,name:e}},UTF8ToString=(e,t)=>(e>>>=0)?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8>>>0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8>>>0]=1,HEAPU32[handle+12>>>2>>>0]=memoryBase,HEAP32[handle+16>>>2>>>0]=metadata.memorySize,HEAPU32[handle+20>>>2>>>0]=tableBase,HEAP32[handle+24>>>2>>>0]=metadata.tableSize)}else memoryBase=HEAPU32[handle+12>>>2>>>0],tableBase=HEAPU32[handle+20>>>2>>>0];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){if(t.startsWith("invoke_"))return createDyncallWrapper(t.substring(7));switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return t in wasmImports&&!wasmImports[t].stub?wasmImports[t]:(t in e||(e[t]=(...e)=>(r||(r=resolveSymbol(t)),r(...e))),e[t]);var r}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func="(".concat(args,") => { ").concat(body," };");ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start ").concat(body,";");moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,n]of(registerDynCallSymbols(e),Object.entries(e)))isSymbolDefined(i=r)||(wasmImports[i]=n);var i},asyncLoad=(e,t,r,n)=>{var i=n?"":"al ".concat(e);readAsync(e).then((e=>{t(new Uint8Array(e)),i&&removeRunDependency(i)}),(t=>{if(!r)throw'Loading data file "'.concat(e,'" failed.');r()})),i&&addRunDependency(i)},preloadPlugins=Module.preloadPlugins||[],registerWasmPlugin=()=>{var e={promiseChainEnd:Promise.resolve(),canHandle:e=>!Module.noWasmDecoding&&e.endsWith(".so"),handle:(t,r,n,i)=>{e.promiseChainEnd=e.promiseChainEnd.then((()=>loadWebAssemblyModule(t,{loadAsync:!0,nodelete:!0},r,{}))).then((e=>{preloadedWasm[r]=e,n(t)}),(e=>{err("failed to instantiate wasm: ".concat(r,": ").concat(e)),i()}))}};preloadPlugins.push(e)},preloadedWasm={},registerDynCallSymbols=e=>{for(var[t,r]of Object.entries(e))t.startsWith("dynCall_")&&!Module.hasOwnProperty(t)&&(Module[t]=r)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var i=LDSO.loadedLibsByName[e];if(i)return t.global?i.global||(i.global=!0,mergeLibSymbols(i.exports,e)):(r&&Object.assign(r,i.exports),registerDynCallSymbols(i.exports)),t.nodelete&&i.refcount!==1/0&&(i.refcount=1/0),i.refcount++,n&&(LDSO.loadedLibsByHandle[n]=i),!t.loadAsync||Promise.resolve(!0);function s(){if(n){var r=HEAPU32[n+28>>>2>>>0],i=HEAPU32[n+32>>>2>>>0];if(r&&i){var s=HEAP8.slice(r,r+i);return t.loadAsync?Promise.resolve(s):s}}var a=locateFile(e);if(t.loadAsync)return new Promise(((e,t)=>asyncLoad(a,e,t)));if(!readBinary)throw new Error("".concat(a,": file not found, and synchronous loading of external files is not available"));return readBinary(a)}function a(){var i=preloadedWasm[e];return i?t.loadAsync?Promise.resolve(i):i:t.loadAsync?s().then((i=>loadWebAssemblyModule(i,t,e,r,n))):loadWebAssemblyModule(s(),t,e,r,n)}function o(t){i.global?mergeLibSymbols(t,e):r&&(Object.assign(r,t),registerDynCallSymbols(t)),i.exports=t}return(i=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,i.global=t.global,t.loadAsync?a().then((e=>(o(e),!0))):(o(a()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error("bad export type for '".concat(e,"': ").concat(typeof r));t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e>>>0]=t;break;case"i16":HEAP16[e>>>1>>>0]=t;break;case"i32":HEAP32[e>>>2>>>0]=t;break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":HEAPF32[e>>>2>>>0]=t;break;case"double":HEAPF64[e>>>3>>>0]=t;break;case"*":HEAPU32[e>>>2>>>0]=t;break;default:abort("invalid type for setValue: ".concat(r))}}function __ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm(...e){return wasmImports._ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm(...e)}__ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm.stub=!0;var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function ___assert_fail(e,t,r,n){t>>>=0,n>>>=0,abort("Assertion failed: ".concat(UTF8ToString(e>>>=0),", at: ")+[t?UTF8ToString(t):"unknown filename",r,n?UTF8ToString(n):"unknown function"])}___assert_fail.sig="vppip";var ___c_longjmp=new WebAssembly.Tag({parameters:["i32"]});function ___call_sighandler(e,t){return getWasmTableEntry(e>>>=0)(t)}___call_sighandler.sig="vpi";var ___cpp_exception=new WebAssembly.Tag({parameters:["i32"]}),___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=2322880,___stack_low=2257344,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},2322880),PATH={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),r="/"===e.substr(-1);return!(e=PATH.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.splitPath(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=PATH.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:(...e)=>PATH.normalize(e.join("/")),join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(ENVIRONMENT_IS_NODE)try{var e=In("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:(...e)=>{for(var t="",r=!1,n=e.length-1;n>=-1&&!r;n--){var i=n>=0?e[n]:FS.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");if(!i)return"";t=i+"/"+t,r=PATH.isAbs(i)}return(r?"/":"")+(t=PATH.normalizeArray(t.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),s=Math.min(n.length,i.length),a=s,o=0;o{for(var t=0,r=0;r=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var i=r>>>=0,s=r+n-1,a=0;a=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a)),o<=127){if(r>=s)break;t[r++>>>0]=o}else if(o<=2047){if(r+1>=s)break;t[r++>>>0]=192|o>>6,t[r++>>>0]=128|63&o}else if(o<=65535){if(r+2>=s)break;t[r++>>>0]=224|o>>12,t[r++>>>0]=128|o>>6&63,t[r++>>>0]=128|63&o}else{if(r+3>=s)break;t[r++>>>0]=240|o>>18,t[r++>>>0]=128|o>>12&63,t[r++>>>0]=128|o>>6&63,t[r++>>>0]=128|63&o}}return t[r>>>0]=0,r-i};function intArrayFromString(e,t,r){var n=r>0?r:lengthBytesUTF8(e)+1,i=new Array(n),s=stringToUTF8Array(e,i,0,i.length);return t&&(i.length=s),i}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if(ENVIRONMENT_IS_NODE){var t=Buffer.alloc(256),r=0,n=process.stdin.fd;try{r=fs.readSync(n,t,0,256)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}r>0&&(e=t.slice(0,r).toString("utf-8"))}else typeof window<"u"&&"function"==typeof window.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n");if(!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,t){TTY.ttys[e]={input:[],output:[],ops:t},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var t=TTY.ttys[e.node.rdev];if(!t)throw new FS.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,n,i){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var s=0,a=0;aFS_stdin_getChar(),put_char(e,t){null===t||10===t?(out(UTF8ArrayToString(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(e.output)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(err(UTF8ArrayToString(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output)),e.output=[])}}},zeroMemory=(e,t)=>{HEAPU8.fill(0,e,e+t)},mmapAlloc=e=>{e=alignMemory(e,65536);var t=_emscripten_builtin_memalign(65536,e);return t&&zeroMemory(t,e),t},MEMFS={ops_table:null,mount:e=>MEMFS.createNode(null,"/",16895,0),createNode(e,t,r,n){if(FS.isBlkdev(r)||FS.isFIFO(r))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var i=FS.createNode(e,t,r,n);return FS.isDir(i.mode)?(i.node_ops=MEMFS.ops_table.dir.node,i.stream_ops=MEMFS.ops_table.dir.stream,i.contents={}):FS.isFile(i.mode)?(i.node_ops=MEMFS.ops_table.file.node,i.stream_ops=MEMFS.ops_table.file.stream,i.usedBytes=0,i.contents=null):FS.isLink(i.mode)?(i.node_ops=MEMFS.ops_table.link.node,i.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(i.mode)&&(i.node_ops=MEMFS.ops_table.chrdev.node,i.stream_ops=MEMFS.ops_table.chrdev.stream),i.timestamp=Date.now(),e&&(e.contents[t]=i,e.timestamp=i.timestamp),i},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var n=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(n.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=FS.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,FS.isDir(e.mode)?t.size=4096:FS.isFile(e.mode)?t.size=e.usedBytes:FS.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&MEMFS.resizeFileStorage(e,t.size)},lookup(e,t){throw FS.genericErrors[44]},mknod:(e,t,r,n)=>MEMFS.createNode(e,t,r,n),rename(e,t,r){if(FS.isDir(e.mode)){var n;try{n=FS.lookupNode(t,r)}catch(e){}if(n)for(var i in n.contents)throw new FS.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=FS.lookupNode(e,t);for(var n in r.contents)throw new FS.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r of Object.keys(e.contents))t.push(r);return t},symlink(e,t,r){var n=MEMFS.createNode(e,t,41471,0);return n.link=r,n},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,n,i){var s=e.node.contents;if(i>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-i,n);if(a>8&&s.subarray)t.set(s.subarray(i,i+a),r);else for(var o=0;o0||r+t>>0))}else a=!1,s=o.byteOffset;return{ptr:s,allocated:a}},msync:(e,t,r,n,i)=>(MEMFS.stream_ops.write(e,t,0,n,r,!1),0)}},FS_createDataFile=(e,t,r,n,i,s)=>{FS.createDataFile(e,t,r,n,i,s)},FS_handledByPreloadPlugin=(e,t,r,n)=>{typeof Browser<"u"&&Browser.init();var i=!1;return preloadPlugins.forEach((s=>{i||s.canHandle(t)&&(s.handle(e,t,r,n),i=!0)})),i},FS_createPreloadedFile=(e,t,r,n,i,s,a,o,l,c)=>{var u=t?PATH_FS.resolve(PATH.join2(e,t)):e,_="cp ".concat(u);function d(r){function d(r){null==c||c(),o||FS_createDataFile(e,t,r,n,i,l),null==s||s(),removeRunDependency(_)}FS_handledByPreloadPlugin(r,u,d,(()=>{null==a||a(),removeRunDependency(_)}))||d(r)}addRunDependency(_),"string"==typeof r?asyncLoad(r,d,a):d(r)},FS_modeStringToFlags=e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(typeof t>"u")throw new Error("Unknown file open mode: ".concat(e));return t},FS_getMode=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(e){Qe(this,"name","ErrnoError"),this.errno=e}},genericErrors:{},filesystems:null,syncFSRequests:0,readFiles:{},FSStream:class{constructor(){Qe(this,"shared",{})}get object(){return this.node}set object(e){this.node=e}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return 0!=(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{constructor(e,t,r,n){Qe(this,"node_ops",{}),Qe(this,"stream_ops",{}),Qe(this,"readMode",365),Qe(this,"writeMode",146),Qe(this,"mounted",null),e||(e=this),this.parent=e,this.mount=e.mount,this.id=FS.nextInode++,this.name=t,this.mode=r,this.rdev=n}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return FS.isDir(this.mode)}get isDevice(){return FS.isChrdev(this.mode)}},lookupPath(e,t={}){if(!(e=PATH_FS.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new FS.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),n=FS.root,i="/",s=0;s40)throw new FS.ErrnoError(32)}}return{path:i,node:n}},getPath(e){for(var t;;){if(FS.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?"".concat(r,"/").concat(t):r+t:r}t=t?"".concat(e.name,"/").concat(t):e.name,e=e.parent}},hashName(e,t){for(var r=0,n=0;n>>0)%FS.nameTable.length},hashAddNode(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var r=FS.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=FS.mayLookup(e);if(r)throw new FS.ErrnoError(r);for(var n=FS.hashName(e.id,t),i=FS.nameTable[n];i;i=i.name_next){var s=i.name;if(i.parent.id===e.id&&s===t)return i}return FS.lookup(e,t)},createNode(e,t,r,n){var i=new FS.FSNode(e,t,r,n);return FS.hashAddNode(i),i},destroyNode(e){FS.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>FS.ignorePermissions?0:t.includes("r")&&!(292&e.mode)||t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0,mayLookup:e=>FS.isDir(e.mode)?FS.nodePermissions(e,"x")||(e.node_ops.lookup?0:2):54,mayCreate(e,t){try{return FS.lookupNode(e,t),20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete(e,t,r){var n;try{n=FS.lookupNode(e,t)}catch(e){return e.errno}var i=FS.nodePermissions(e,"wx");if(i)return i;if(r){if(!FS.isDir(n.mode))return 54;if(FS.isRoot(n)||FS.getPath(n)===FS.cwd())return 10}else if(FS.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(t)||512&t)?31:FS.nodePermissions(e,FS.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},getStream:e=>FS.streams[e],createStream:(e,t=-1)=>(e=Object.assign(new FS.FSStream,e),-1==t&&(t=FS.nextfd()),e.fd=t,FS.streams[t]=e,e),closeStream(e){FS.streams[e]=null},dupStream(e,t=-1){var r,n,i=FS.createStream(e,t);return null==(n=null==(r=i.stream_ops)?void 0:r.dup)||n.call(r,i),i},chrdev_stream_ops:{open(e){var t,r,n=FS.getDevice(e.node.rdev);e.stream_ops=n.stream_ops,null==(r=(t=e.stream_ops).open)||r.call(t,e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){FS.devices[e]={stream_ops:t}},getDevice:e=>FS.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push(...n.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),FS.syncFSRequests++,FS.syncFSRequests>1&&err("warning: ".concat(FS.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var r=FS.getMounts(FS.root.mount),n=0;function i(e){return FS.syncFSRequests--,t(e)}function s(e){if(e)return s.errored?void 0:(s.errored=!0,i(e));++n>=r.length&&i(null)}r.forEach((t=>{if(!t.type.syncfs)return s(null);t.type.syncfs(t,e,s)}))},mount(e,t,r){var n,i="/"===r,s=!r;if(i&&FS.root)throw new FS.ErrnoError(10);if(!i&&!s){var a=FS.lookupPath(r,{follow_mount:!1});if(r=a.path,n=a.node,FS.isMountpoint(n))throw new FS.ErrnoError(10);if(!FS.isDir(n.mode))throw new FS.ErrnoError(54)}var o={type:e,opts:t,mountpoint:r,mounts:[]},l=e.mount(o);return l.mount=o,o.root=l,i?FS.root=l:n&&(n.mounted=o,n.mount&&n.mount.mounts.push(o)),l},unmount(e){var t=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(t.node))throw new FS.ErrnoError(28);var r=t.node,n=r.mounted,i=FS.getMounts(n);Object.keys(FS.nameTable).forEach((e=>{for(var t=FS.nameTable[e];t;){var r=t.name_next;i.includes(t.mount)&&FS.destroyNode(t),t=r}})),r.mounted=null;var s=r.mount.mounts.indexOf(n);r.mount.mounts.splice(s,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var n=FS.lookupPath(e,{parent:!0}).node,i=PATH.basename(e);if(!i||"."===i||".."===i)throw new FS.ErrnoError(28);var s=FS.mayCreate(n,i);if(s)throw new FS.ErrnoError(s);if(!n.node_ops.mknod)throw new FS.ErrnoError(63);return n.node_ops.mknod(n,i,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,FS.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,FS.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),n="",i=0;i(typeof r>"u"&&(r=t,t=438),t|=8192,FS.mknod(e,t,r)),symlink(e,t){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var r=FS.lookupPath(t,{parent:!0}).node;if(!r)throw new FS.ErrnoError(44);var n=PATH.basename(t),i=FS.mayCreate(r,n);if(i)throw new FS.ErrnoError(i);if(!r.node_ops.symlink)throw new FS.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename(e,t){var r,n,i=PATH.dirname(e),s=PATH.dirname(t),a=PATH.basename(e),o=PATH.basename(t);if(r=FS.lookupPath(e,{parent:!0}).node,n=FS.lookupPath(t,{parent:!0}).node,!r||!n)throw new FS.ErrnoError(44);if(r.mount!==n.mount)throw new FS.ErrnoError(75);var l,c=FS.lookupNode(r,a),u=PATH_FS.relative(e,s);if("."!==u.charAt(0))throw new FS.ErrnoError(28);if("."!==(u=PATH_FS.relative(t,i)).charAt(0))throw new FS.ErrnoError(55);try{l=FS.lookupNode(n,o)}catch(e){}if(c!==l){var _=FS.isDir(c.mode),d=FS.mayDelete(r,a,_);if(d)throw new FS.ErrnoError(d);if(d=l?FS.mayDelete(n,o,_):FS.mayCreate(n,o))throw new FS.ErrnoError(d);if(!r.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(c)||l&&FS.isMountpoint(l))throw new FS.ErrnoError(10);if(n!==r&&(d=FS.nodePermissions(r,"w")))throw new FS.ErrnoError(d);FS.hashRemoveNode(c);try{r.node_ops.rename(c,n,o),c.parent=n}catch(e){throw e}finally{FS.hashAddNode(c)}}},rmdir(e){var t=FS.lookupPath(e,{parent:!0}).node,r=PATH.basename(e),n=FS.lookupNode(t,r),i=FS.mayDelete(t,r,!0);if(i)throw new FS.ErrnoError(i);if(!t.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.rmdir(t,r),FS.destroyNode(n)},readdir(e){var t=FS.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new FS.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=FS.lookupPath(e,{parent:!0}).node;if(!t)throw new FS.ErrnoError(44);var r=PATH.basename(e),n=FS.lookupNode(t,r),i=FS.mayDelete(t,r,!1);if(i)throw new FS.ErrnoError(i);if(!t.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(n))throw new FS.ErrnoError(10);t.node_ops.unlink(t,r),FS.destroyNode(n)},readlink(e){var t=FS.lookupPath(e).node;if(!t)throw new FS.ErrnoError(44);if(!t.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=FS.lookupPath(e,{follow:!t}).node;if(!r)throw new FS.ErrnoError(44);if(!r.node_ops.getattr)throw new FS.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>FS.stat(e,!0),chmod(e,t,r){var n;if(!(n="string"==typeof e?FS.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod(e,t){FS.chmod(e,t,!0)},fchmod(e,t){var r=FS.getStreamChecked(e);FS.chmod(r.node,t)},chown(e,t,r,n){var i;if(!(i="string"==typeof e?FS.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);i.node_ops.setattr(i,{timestamp:Date.now()})},lchown(e,t,r){FS.chown(e,t,r,!0)},fchown(e,t,r){var n=FS.getStreamChecked(e);FS.chown(n.node,t,r)},truncate(e,t){if(t<0)throw new FS.ErrnoError(28);var r;if(!(r="string"==typeof e?FS.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(r.mode))throw new FS.ErrnoError(31);if(!FS.isFile(r.mode))throw new FS.ErrnoError(28);var n=FS.nodePermissions(r,"w");if(n)throw new FS.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=FS.getStreamChecked(e);if(!(2097155&r.flags))throw new FS.ErrnoError(28);FS.truncate(r.node,t)},utime(e,t,r){var n=FS.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new FS.ErrnoError(44);var n;if(r=64&(t="string"==typeof t?FS_modeStringToFlags(t):t)?4095&(r=typeof r>"u"?438:r)|32768:0,"object"==typeof e)n=e;else{e=PATH.normalize(e);try{n=FS.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var i=!1;if(64&t)if(n){if(128&t)throw new FS.ErrnoError(20)}else n=FS.mknod(e,r,0),i=!0;if(!n)throw new FS.ErrnoError(44);if(FS.isChrdev(n.mode)&&(t&=-513),65536&t&&!FS.isDir(n.mode))throw new FS.ErrnoError(54);if(!i){var s=FS.mayOpen(n,t);if(s)throw new FS.ErrnoError(s)}512&t&&!i&&FS.truncate(n,0),t&=-131713;var a=FS.createStream({node:n,path:FS.getPath(n),flags:t,seekable:!0,position:0,stream_ops:n.stream_ops,ungotten:[],error:!1});return a.stream_ops.open&&a.stream_ops.open(a),Module.logReadFiles&&!(1&t)&&(e in FS.readFiles||(FS.readFiles[e]=1)),a},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{FS.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,n,i){if(n<0||i<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(1==(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var s=typeof i<"u";if(s){if(!e.seekable)throw new FS.ErrnoError(70)}else i=e.position;var a=e.stream_ops.read(e,t,r,n,i);return s||(e.position+=a),a},write(e,t,r,n,i,s){if(n<0||i<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var a=typeof i<"u";if(a){if(!e.seekable)throw new FS.ErrnoError(70)}else i=e.position;var o=e.stream_ops.write(e,t,r,n,i,s);return a||(e.position+=o),o},allocate(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(t<0||r<=0)throw new FS.ErrnoError(28);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,n,i){if(2&n&&!(2&i)&&2!=(2097155&e.flags))throw new FS.ErrnoError(2);if(1==(2097155&e.flags))throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);if(!t)throw new FS.ErrnoError(28);return e.stream_ops.mmap(e,t,r,n,i)},msync:(e,t,r,n,i)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,i):0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'.concat(t.encoding,'"'));var r,n=FS.open(e,t.flags),i=FS.stat(e).size,s=new Uint8Array(i);return FS.read(n,s,0,i,0),"utf8"===t.encoding?r=UTF8ArrayToString(s):"binary"===t.encoding&&(r=s),FS.close(n),r},writeFile(e,t,r={}){r.flags=r.flags||577;var n=FS.open(e,r.flags,r.mode);if("string"==typeof t){var i=new Uint8Array(lengthBytesUTF8(t)+1),s=stringToUTF8Array(t,i,0,i.length);FS.write(n,i,0,s,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");FS.write(n,t,0,t.byteLength,void 0,r.canOwn)}FS.close(n)},cwd:()=>FS.currentPath,chdir(e){var t=FS.lookupPath(e,{follow:!0});if(null===t.node)throw new FS.ErrnoError(44);if(!FS.isDir(t.node.mode))throw new FS.ErrnoError(54);var r=FS.nodePermissions(t.node,"x");if(r)throw new FS.ErrnoError(r);FS.currentPath=t.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,t,r,n,i)=>n}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=randomFill(e).byteLength),e[--t]);FS.createDevice("/dev","random",r),FS.createDevice("/dev","urandom",r),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var t=FS.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,n=FS.getStreamChecked(r),i={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return i.parent=i,i}},t}},{},"/proc/self/fd")},createStandardStreams(e,t,r){e?FS.createDevice("/dev","stdin",e):FS.symlink("/dev/tty","/dev/stdin"),t?FS.createDevice("/dev","stdout",null,t):FS.symlink("/dev/tty","/dev/stdout"),r?FS.createDevice("/dev","stderr",null,r):FS.symlink("/dev/tty1","/dev/stderr"),FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},staticInit(){[44].forEach((e=>{FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack=""})),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS}},init(e,t,r){FS.initialized=!0,null!=e||(e=Module.stdin),null!=t||(t=Module.stdout),null!=r||(r=Module.stderr),FS.createStandardStreams(e,t,r)},quit(){FS.initialized=!1;for(var e=0;ethis.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}}setDataGetter(e){this.getter=e}cacheLength(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,n=Number(e.getResponseHeader("Content-length")),i=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,s=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,a=1048576;i||(a=n);var o=this;o.setDataGetter((e=>{var t=e*a,i=(e+1)*a-1;if(i=Math.min(i,n-1),typeof o.chunks[e]>"u"&&(o.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>n-1)throw new Error("only "+n+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",r,!1),n!==a&&i.setRequestHeader("Range","bytes="+e+"-"+t),i.responseType="arraybuffer",i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(i.status>=200&&i.status<300||304===i.status))throw new Error("Couldn't load "+r+". Status: "+i.status);return void 0!==i.response?new Uint8Array(i.response||[]):intArrayFromString(i.responseText||"",!0)})(t,i)),typeof o.chunks[e]>"u")throw new Error("doXHR failed!");return o.chunks[e]})),(s||!n)&&(a=n=1,n=this.getter(0).length,a=n,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=n,this._chunkSize=a,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var a={isDevice:!1,contents:new s}}else a={isDevice:!1,url:r};var o=FS.createFile(e,t,a,n,i);a.contents?o.contents=a.contents:a.url&&(o.contents=null,o.url=a.url),Object.defineProperties(o,{usedBytes:{get:function(){return this.contents.length}}});var l={};function c(e,t,r,n,i){var s=e.node.contents;if(i>=s.length)return 0;var a=Math.min(s.length-i,n);if(s.slice)for(var o=0;o{var t=o.stream_ops[e];l[e]=(...e)=>(FS.forceLoadFile(o),t(...e))})),l.read=(e,t,r,n,i)=>(FS.forceLoadFile(o),c(e,t,r,n,i)),l.mmap=(e,t,r,n,i)=>{FS.forceLoadFile(o);var s=mmapAlloc(t);if(!s)throw new FS.ErrnoError(48);return c(e,HEAP8,s,t,r),{ptr:s,allocated:!0}},o.stream_ops=l,o}},SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(PATH.isAbs(t))return t;var n;if(n=-100===e?FS.cwd():SYSCALLS.getStreamFromFD(e).path,0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat(e,t,r){var n=e(t);HEAP32[r>>>2>>>0]=n.dev,HEAP32[r+4>>>2>>>0]=n.mode,HEAPU32[r+8>>>2>>>0]=n.nlink,HEAP32[r+12>>>2>>>0]=n.uid,HEAP32[r+16>>>2>>>0]=n.gid,HEAP32[r+20>>>2>>>0]=n.rdev,tempI64=[n.size>>>0,(tempDouble=n.size,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+24>>>2>>>0]=tempI64[0],HEAP32[r+28>>>2>>>0]=tempI64[1],HEAP32[r+32>>>2>>>0]=4096,HEAP32[r+36>>>2>>>0]=n.blocks;var i=n.atime.getTime(),s=n.mtime.getTime(),a=n.ctime.getTime();return tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+40>>>2>>>0]=tempI64[0],HEAP32[r+44>>>2>>>0]=tempI64[1],HEAPU32[r+48>>>2>>>0]=i%1e3*1e3*1e3,tempI64=[Math.floor(s/1e3)>>>0,(tempDouble=Math.floor(s/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+56>>>2>>>0]=tempI64[0],HEAP32[r+60>>>2>>>0]=tempI64[1],HEAPU32[r+64>>>2>>>0]=s%1e3*1e3*1e3,tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+72>>>2>>>0]=tempI64[0],HEAP32[r+76>>>2>>>0]=tempI64[1],HEAPU32[r+80>>>2>>>0]=a%1e3*1e3*1e3,tempI64=[n.ino>>>0,(tempDouble=n.ino,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+88>>>2>>>0]=tempI64[0],HEAP32[r+92>>>2>>>0]=tempI64[1],0},doMsync(e,t,r,n,i){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&n)return 0;var s=HEAPU8.slice(e,e+r);FS.msync(t,s,i,r,n)},getStreamFromFD:e=>FS.getStreamChecked(e),varargs:void 0,getStr:e=>UTF8ToString(e)},___syscall__newselect=function(e,t,r,n,i){t>>>=0,r>>>=0,n>>>=0,i>>>=0;try{for(var s=0,a=t?HEAP32[t>>>2>>>0]:0,o=t?HEAP32[t+4>>>2>>>0]:0,l=r?HEAP32[r>>>2>>>0]:0,c=r?HEAP32[r+4>>>2>>>0]:0,u=n?HEAP32[n>>>2>>>0]:0,_=n?HEAP32[n+4>>>2>>>0]:0,d=0,p=0,f=0,m=0,g=0,h=0,v=(t?HEAP32[t>>>2>>>0]:0)|(r?HEAP32[r>>>2>>>0]:0)|(n?HEAP32[n>>>2>>>0]:0),b=(t?HEAP32[t+4>>>2>>>0]:0)|(r?HEAP32[r+4>>>2>>>0]:0)|(n?HEAP32[n+4>>>2>>>0]:0),y=(e,t,r,n)=>e<32?t&n:r&n,S=0;S>>2>>>0]:0)+(t?HEAP32[i+4>>>2>>>0]:0)/1e6)),L=w.stream_ops.poll(w,A)}1&L&&y(S,a,o,E)&&(S<32?d|=E:p|=E,s++),4&L&&y(S,l,c,E)&&(S<32?f|=E:m|=E,s++),2&L&&y(S,u,_,E)&&(S<32?g|=E:h|=E,s++)}}return t&&(HEAP32[t>>>2>>>0]=d,HEAP32[t+4>>>2>>>0]=p),r&&(HEAP32[r>>>2>>>0]=f,HEAP32[r+4>>>2>>>0]=m),n&&(HEAP32[n>>>2>>>0]=g,HEAP32[n+4>>>2>>>0]=h),s}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}};___syscall__newselect.sig="iipppp";var SOCKFS={websocketArgs:{},callbacks:{},on(e,t){SOCKFS.callbacks[e]=t},emit(e,t){var r,n;null==(n=(r=SOCKFS.callbacks)[e])||n.call(r,t)},mount(e){var t;return SOCKFS.websocketArgs=Module.websocket||{},(null!=(t=Module.websocket)?t:Module.websocket={}).on=SOCKFS.on,FS.createNode(null,"/",16895,0)},createSocket(e,t,r){if(1==(t&=-526337)&&r&&6!=r)throw new FS.ErrnoError(66);var n={family:e,type:t,protocol:r,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops},i=SOCKFS.nextname(),s=FS.createNode(SOCKFS.root,i,49152,0);s.sock=n;var a=FS.createStream({path:i,node:s,flags:2,seekable:!1,stream_ops:SOCKFS.stream_ops});return n.stream=a,n},getSocket(e){var t=FS.getStream(e);return t&&FS.isSocket(t.node.mode)?t.node.sock:null},stream_ops:{poll(e){var t=e.node.sock;return t.sock_ops.poll(t)},ioctl(e,t,r){var n=e.node.sock;return n.sock_ops.ioctl(n,t,r)},read(e,t,r,n,i){var s=e.node.sock,a=s.sock_ops.recvmsg(s,n);return a?(t.set(a.buffer,r),a.buffer.length):0},write(e,t,r,n,i){var s=e.node.sock;return s.sock_ops.sendmsg(s,t,r,n)},close(e){var t=e.node.sock;t.sock_ops.close(t)}},nextname:()=>(SOCKFS.nextname.current||(SOCKFS.nextname.current=0),"socket["+SOCKFS.nextname.current+++"]"),websocket_sock_ops:{createPeer(e,t,r){var n;if("object"==typeof t&&(n=t,t=null,r=null),n)if(n._socket)t=n._socket.remoteAddress,r=n._socket.remotePort;else{var i=/ws[s]?:\/\/([^:]+):(\d+)/.exec(n.url);if(!i)throw new Error("WebSocket URL must be in the format ws(s)://address:port");t=i[1],r=parseInt(i[2],10)}else try{var s="ws:#".replace("#","//"),a="binary",o=void 0;if(SOCKFS.websocketArgs.url&&(s=SOCKFS.websocketArgs.url),SOCKFS.websocketArgs.subprotocol?a=SOCKFS.websocketArgs.subprotocol:null===SOCKFS.websocketArgs.subprotocol&&(a="null"),"ws://"===s||"wss://"===s){var l=t.split("/");s=s+l[0]+":"+r+"/"+l.slice(1).join("/")}"null"!==a&&(o=a=a.replace(/^ +| +$/g,"").split(/ *, */)),(n=new(ENVIRONMENT_IS_NODE?Lo():WebSocket)(s,o)).binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(23)}var c={addr:t,port:r,socket:n,msg_send_queue:[]};return SOCKFS.websocket_sock_ops.addPeer(e,c),SOCKFS.websocket_sock_ops.handlePeerEvents(e,c),2===e.type&&typeof e.sport<"u"&&c.msg_send_queue.push(new Uint8Array([255,255,255,255,112,111,114,116,(65280&e.sport)>>8,255&e.sport])),c},getPeer:(e,t,r)=>e.peers[t+":"+r],addPeer(e,t){e.peers[t.addr+":"+t.port]=t},removePeer(e,t){delete e.peers[t.addr+":"+t.port]},handlePeerEvents(e,t){var r=!0,n=function(){e.connecting=!1,SOCKFS.emit("open",e.stream.fd);try{for(var r=t.msg_send_queue.shift();r;)t.socket.send(r),r=t.msg_send_queue.shift()}catch(e){t.socket.close()}};function i(n){if("string"==typeof n)n=(new TextEncoder).encode(n);else{if(assert(void 0!==n.byteLength),0==n.byteLength)return;n=new Uint8Array(n)}var i=r;if(r=!1,i&&10===n.length&&255===n[0]&&255===n[1]&&255===n[2]&&255===n[3]&&112===n[4]&&111===n[5]&&114===n[6]&&116===n[7]){var s=n[8]<<8|n[9];return SOCKFS.websocket_sock_ops.removePeer(e,t),t.port=s,void SOCKFS.websocket_sock_ops.addPeer(e,t)}e.recv_queue.push({addr:t.addr,port:t.port,data:n}),SOCKFS.emit("message",e.stream.fd)}ENVIRONMENT_IS_NODE?(t.socket.on("open",n),t.socket.on("message",(function(e,t){t&&i(new Uint8Array(e).buffer)})),t.socket.on("close",(function(){SOCKFS.emit("close",e.stream.fd)})),t.socket.on("error",(function(t){e.error=14,SOCKFS.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])}))):(t.socket.onopen=n,t.socket.onclose=function(){SOCKFS.emit("close",e.stream.fd)},t.socket.onmessage=function(e){i(e.data)},t.socket.onerror=function(t){e.error=14,SOCKFS.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})},poll(e){if(1===e.type&&e.server)return e.pending.length?65:0;var t=0,r=1===e.type?SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport):null;return(e.recv_queue.length||!r||r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(t|=65),(!r||r&&r.socket.readyState===r.socket.OPEN)&&(t|=4),(r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(e.connecting?t|=4:t|=16),t},ioctl(e,t,r){if(21531===t){var n=0;return e.recv_queue.length&&(n=e.recv_queue[0].data.length),HEAP32[r>>>2>>>0]=n,0}return 28},close(e){if(e.server){try{e.server.close()}catch(e){}e.server=null}for(var t=Object.keys(e.peers),r=0;r{var t=SOCKFS.getSocket(e);if(!t)throw new FS.ErrnoError(8);return t},Sockets={BUFFER_SIZE:10240,MAX_BUFFER_SIZE:10485760,nextFd:1,fds:{},nextport:1,maxport:65535,peer:null,connections:{},portmap:{},localAddr:4261412874,addrPool:[33554442,50331658,67108874,83886090,100663306,117440522,134217738,150994954,167772170,184549386,201326602,218103818,234881034]},inetPton4=e=>{for(var t=e.split("."),r=0;r<4;r++){var n=Number(t[r]);if(isNaN(n))return null;t[r]=n}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0},jstoi_q=e=>parseInt(e),inetPton6=e=>{var t,r,n,i,s=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(e))return null;if("::"===e)return[0,0,0,0,0,0,0,0];for((e=e.startsWith("::")?e.replace("::","Z:"):e.replace("::",":Z:")).indexOf(".")>0?((t=(e=e.replace(new RegExp("[.]","g"),":")).split(":"))[t.length-4]=jstoi_q(t[t.length-4])+256*jstoi_q(t[t.length-3]),t[t.length-3]=jstoi_q(t[t.length-2])+256*jstoi_q(t[t.length-1]),t=t.slice(0,t.length-2)):t=e.split(":"),n=0,i=0,r=0;r{switch(t){case 2:r=inetPton4(r),zeroMemory(e,16),i&&(HEAP32[i>>>2>>>0]=16),HEAP16[e>>>1>>>0]=t,HEAP32[e+4>>>2>>>0]=r,HEAP16[e+2>>>1>>>0]=_htons(n);break;case 10:r=inetPton6(r),zeroMemory(e,28),i&&(HEAP32[i>>>2>>>0]=28),HEAP32[e>>>2>>>0]=t,HEAP32[e+8>>>2>>>0]=r[0],HEAP32[e+12>>>2>>>0]=r[1],HEAP32[e+16>>>2>>>0]=r[2],HEAP32[e+20>>>2>>>0]=r[3],HEAP16[e+2>>>1>>>0]=_htons(n);break;default:return 5}return 0},DNS={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var t,r=inetPton4(e);if(null!==r||null!==(r=inetPton6(e)))return e;if(DNS.address_map.addrs[e])t=DNS.address_map.addrs[e];else{var n=DNS.address_map.id++;assert(n<65535,"exceeded max address mappings of 65535"),t="172.29."+(255&n)+"."+(65280&n),DNS.address_map.names[t]=e,DNS.address_map.addrs[e]=t}return t},lookup_addr:e=>DNS.address_map.names[e]?DNS.address_map.names[e]:null};function ___syscall_accept4(e,t,r,n,i,s){t>>>=0,r>>>=0;try{var a=getSocketFromFD(e),o=a.sock_ops.accept(a);return t&&writeSockaddr(t,o.family,DNS.lookup_name(o.daddr),o.dport,r),o.stream.fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_accept4.sig="iippiii";var inetNtop4=e=>(255&e)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),inetNtop6=e=>{var t="",r=0,n=0,i=0,s=0,a=0,o=0,l=[65535&e[0],e[0]>>16,65535&e[1],e[1]>>16,65535&e[2],e[2]>>16,65535&e[3],e[3]>>16],c=!0,u="";for(o=0;o<5;o++)if(0!==l[o]){c=!1;break}if(c){if(u=inetNtop4(l[6]|l[7]<<16),-1===l[5])return(t="::ffff:")+u;if(0===l[5])return"0.0.0.0"===u&&(u=""),"0.0.0.1"===u&&(u="1"),(t="::")+u}for(r=0;r<8;r++)0===l[r]&&(r-i>1&&(a=0),i=r,a++),a>n&&(s=r-(n=a)+1);for(r=0;r<8;r++)n>1&&0===l[r]&&r>=s&&r{var r,n=HEAP16[e>>>1>>>0],i=_ntohs(HEAPU16[e+2>>>1>>>0]);switch(n){case 2:if(16!==t)return{errno:28};r=HEAP32[e+4>>>2>>>0],r=inetNtop4(r);break;case 10:if(28!==t)return{errno:28};r=[HEAP32[e+8>>>2>>>0],HEAP32[e+12>>>2>>>0],HEAP32[e+16>>>2>>>0],HEAP32[e+20>>>2>>>0]],r=inetNtop6(r);break;default:return{errno:5}}return{family:n,addr:r,port:i}},getSocketAddress=(e,t)=>{var r=readSockaddr(e,t);if(r.errno)throw new FS.ErrnoError(r.errno);return r.addr=DNS.lookup_addr(r.addr)||r.addr,r};function ___syscall_bind(e,t,r,n,i,s){t>>>=0,r>>>=0;try{var a=getSocketFromFD(e),o=getSocketAddress(t,r);return a.sock_ops.bind(a,o.addr,o.port),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_chdir(e){e>>>=0;try{return e=SYSCALLS.getStr(e),FS.chdir(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_chmod(e,t){e>>>=0;try{return e=SYSCALLS.getStr(e),FS.chmod(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_connect(e,t,r,n,i,s){t>>>=0,r>>>=0;try{var a=getSocketFromFD(e),o=getSocketAddress(t,r);return a.sock_ops.connect(a,o.addr,o.port),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_dup(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.dupStream(t).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_dup3(e,t,r){try{var n=SYSCALLS.getStreamFromFD(e);if(n.fd===t)return-28;if(t<0||t>=FS.MAX_OPEN_FDS)return-8;var i=FS.getStream(t);return i&&FS.close(i),FS.dupStream(n,t).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_faccessat(e,t,r,n){t>>>=0;try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),-8&r)return-28;var i=FS.lookupPath(t,{follow:!0}).node;if(!i)return-44;var s="";return 4&r&&(s+="r"),2&r&&(s+="w"),1&r&&(s+="x"),s&&FS.nodePermissions(i,s)?-2:0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_bind.sig="iippiii",___syscall_chdir.sig="ip",___syscall_chmod.sig="ipi",___syscall_connect.sig="iippiii",___syscall_dup.sig="ii",___syscall_dup3.sig="iiii",___syscall_faccessat.sig="iipii";var ___syscall_fadvise64=(e,t,r,n)=>0;function ___syscall_fallocate(e,t,r,n,i,s){var a=convertI32PairToI53Checked(r,n),o=convertI32PairToI53Checked(i,s);try{if(isNaN(a))return 61;var l=SYSCALLS.getStreamFromFD(e);return FS.allocate(l,a,o),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchdir(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.chdir(t.path),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchmod(e,t){try{return FS.fchmod(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchmodat2(e,t,r,n){t>>>=0;try{var i=256&n;return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),FS.chmod(t,r,i),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchown32(e,t,r){try{return FS.fchown(e,t,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchownat(e,t,r,n,i){t>>>=0;try{t=SYSCALLS.getStr(t);var s=256&i;return i&=-257,t=SYSCALLS.calculateAt(e,t),(s?FS.lchown:FS.chown)(t,r,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_fadvise64.sig="iiiiiii",___syscall_fallocate.sig="iiiiiii",___syscall_fchdir.sig="ii",___syscall_fchmod.sig="iii",___syscall_fchmodat2.sig="iipii",___syscall_fchown32.sig="iiii",___syscall_fchownat.sig="iipiii";var syscallGetVarargI=()=>{var e=HEAP32[+SYSCALLS.varargs>>>2>>>0];return SYSCALLS.varargs+=4,e},syscallGetVarargP=syscallGetVarargI;function ___syscall_fcntl64(e,t,r){r>>>=0,SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 0:if((i=syscallGetVarargI())<0)return-28;for(;FS.streams[i];)i++;return FS.dupStream(n,i).fd;case 1:case 2:case 13:case 14:return 0;case 3:return n.flags;case 4:var i=syscallGetVarargI();return n.flags|=i,0;case 12:return i=syscallGetVarargP(),HEAP16[i+0>>>1>>>0]=2,0}return-28}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fdatasync(e){try{return SYSCALLS.getStreamFromFD(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstat64(e,t){t>>>=0;try{var r=SYSCALLS.getStreamFromFD(e);return SYSCALLS.doStat(FS.stat,r.path,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_statfs64(e,t,r){e>>>=0,r>>>=0;try{return e=SYSCALLS.getStr(e),HEAP32[r+4>>>2>>>0]=4096,HEAP32[r+40>>>2>>>0]=4096,HEAP32[r+8>>>2>>>0]=1e6,HEAP32[r+12>>>2>>>0]=5e5,HEAP32[r+16>>>2>>>0]=5e5,HEAP32[r+20>>>2>>>0]=FS.nextInode,HEAP32[r+24>>>2>>>0]=1e6,HEAP32[r+28>>>2>>>0]=42,HEAP32[r+44>>>2>>>0]=2,HEAP32[r+36>>>2>>>0]=255,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstatfs64(e,t,r){t>>>=0,r>>>=0;try{return SYSCALLS.getStreamFromFD(e),___syscall_statfs64(0,t,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ftruncate64(e,t,r){var n=convertI32PairToI53Checked(t,r);try{return isNaN(n)?61:(FS.ftruncate(e,n),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_fcntl64.sig="iiip",___syscall_fdatasync.sig="ii",___syscall_fstat64.sig="iip",___syscall_statfs64.sig="ippp",___syscall_fstatfs64.sig="iipp",___syscall_ftruncate64.sig="iiii";var stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r);function ___syscall_getcwd(e,t){e>>>=0,t>>>=0;try{if(0===t)return-28;var r=FS.cwd(),n=lengthBytesUTF8(r)+1;return t"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getdents64(e,t,r){t>>>=0,r>>>=0;try{var n=SYSCALLS.getStreamFromFD(e);n.getdents||(n.getdents=FS.readdir(n.path));for(var i=280,s=0,a=FS.llseek(n,0,1),o=Math.floor(a/i);o>>0,(tempDouble=l,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+s>>>2>>>0]=tempI64[0],HEAP32[t+s+4>>>2>>>0]=tempI64[1],tempI64=[(o+1)*i>>>0,(tempDouble=(o+1)*i,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+s+8>>>2>>>0]=tempI64[0],HEAP32[t+s+12>>>2>>>0]=tempI64[1],HEAP16[t+s+16>>>1>>>0]=280,HEAP8[t+s+18>>>0]=c,stringToUTF8(u,t+s+19,256),s+=i,o+=1}return FS.llseek(n,o*i,0),s}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getpeername(e,t,r,n,i,s){t>>>=0,r>>>=0;try{var a=getSocketFromFD(e);return a.daddr?(writeSockaddr(t,a.family,DNS.lookup_name(a.daddr),a.dport,r),0):-53}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getsockname(e,t,r,n,i,s){t>>>=0,r>>>=0;try{var a=getSocketFromFD(e);return writeSockaddr(t,a.family,DNS.lookup_name(a.saddr||"0.0.0.0"),a.sport,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getsockopt(e,t,r,n,i,s){n>>>=0,i>>>=0;try{var a=getSocketFromFD(e);return 1===t&&4===r?(HEAP32[n>>>2>>>0]=a.error,HEAP32[i>>>2>>>0]=4,a.error=null,0):-50}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ioctl(e,t,r){r>>>=0,SYSCALLS.varargs=r;try{var n=SYSCALLS.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.tty?0:-59;case 21505:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcgets){var i=n.tty.ops.ioctl_tcgets(n),s=syscallGetVarargP();HEAP32[s>>>2>>>0]=i.c_iflag||0,HEAP32[s+4>>>2>>>0]=i.c_oflag||0,HEAP32[s+8>>>2>>>0]=i.c_cflag||0,HEAP32[s+12>>>2>>>0]=i.c_lflag||0;for(var a=0;a<32;a++)HEAP8[s+a+17>>>0]=i.c_cc[a]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!n.tty)return-59;if(n.tty.ops.ioctl_tcsets){s=syscallGetVarargP();var o=HEAP32[s>>>2>>>0],l=HEAP32[s+4>>>2>>>0],c=HEAP32[s+8>>>2>>>0],u=HEAP32[s+12>>>2>>>0],_=[];for(a=0;a<32;a++)_.push(HEAP8[s+a+17>>>0]);return n.tty.ops.ioctl_tcsets(n.tty,t,{c_iflag:o,c_oflag:l,c_cflag:c,c_lflag:u,c_cc:_})}return 0;case 21519:return n.tty?(s=syscallGetVarargP(),HEAP32[s>>>2>>>0]=0,0):-59;case 21520:return n.tty?-28:-59;case 21531:return s=syscallGetVarargP(),FS.ioctl(n,t,s);case 21523:if(!n.tty)return-59;if(n.tty.ops.ioctl_tiocgwinsz){var d=n.tty.ops.ioctl_tiocgwinsz(n.tty);s=syscallGetVarargP(),HEAP16[s>>>1>>>0]=d[0],HEAP16[s+2>>>1>>>0]=d[1]}return 0;default:return-28}}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_listen(e,t){try{var r=getSocketFromFD(e);return r.sock_ops.listen(r,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_lstat64(e,t){e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.lstat,e,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mkdirat(e,t,r){t>>>=0;try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),"/"===(t=PATH.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),FS.mkdir(t,r,0),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mknodat(e,t,r,n){t>>>=0;try{switch(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),61440&r){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return FS.mknod(t,r,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_newfstatat(e,t,r,n){t>>>=0,r>>>=0;try{t=SYSCALLS.getStr(t);var i=256&n,s=4096&n;return n&=-6401,t=SYSCALLS.calculateAt(e,t,s),SYSCALLS.doStat(i?FS.lstat:FS.stat,t,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_openat(e,t,r,n){t>>>=0,n>>>=0,SYSCALLS.varargs=n;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t);var i=n?syscallGetVarargI():0;return FS.open(t,r,i).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_getcwd.sig="ipp",___syscall_getdents64.sig="iipp",___syscall_getpeername.sig="iippiii",___syscall_getsockname.sig="iippiii",___syscall_getsockopt.sig="iiiippi",___syscall_ioctl.sig="iiip",___syscall_listen.sig="iiiiiii",___syscall_lstat64.sig="ipp",___syscall_mkdirat.sig="iipi",___syscall_mknodat.sig="iipii",___syscall_newfstatat.sig="iippi",___syscall_openat.sig="iipip";var PIPEFS={BUCKET_BUFFER_SIZE:8192,mount:e=>FS.createNode(null,"/",16895,0),createPipe(){var e={buckets:[],refcnt:2};e.buckets.push({buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var t=PIPEFS.nextname(),r=PIPEFS.nextname(),n=FS.createNode(PIPEFS.root,t,4096,0),i=FS.createNode(PIPEFS.root,r,4096,0);n.pipe=e,i.pipe=e;var s=FS.createStream({path:t,node:n,flags:0,seekable:!1,stream_ops:PIPEFS.stream_ops});n.stream=s;var a=FS.createStream({path:r,node:i,flags:1,seekable:!1,stream_ops:PIPEFS.stream_ops});return i.stream=a,{readable_fd:s.fd,writable_fd:a.fd}},stream_ops:{poll(e){var t=e.node.pipe;if(1==(2097155&e.flags))return 260;if(t.buckets.length>0)for(var r=0;r0)return 65}return 0},ioctl:(e,t,r)=>28,fsync:e=>28,read(e,t,r,n,i){for(var s=e.node.pipe,a=0,o=0;o=o)return l.buffer.set(a,l.offset),l.offset+=o,o;c>0&&(l.buffer.set(a.subarray(0,c),l.offset),l.offset+=c,a=a.subarray(c,a.byteLength));for(var u=a.byteLength/PIPEFS.BUCKET_BUFFER_SIZE|0,_=a.byteLength%PIPEFS.BUCKET_BUFFER_SIZE,d=0;d0&&(p={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:a.byteLength,roffset:0},s.buckets.push(p),p.buffer.set(a)),o},close(e){var t=e.node.pipe;t.refcnt--,0===t.refcnt&&(t.buckets=null)}},nextname:()=>(PIPEFS.nextname.current||(PIPEFS.nextname.current=0),"pipe["+PIPEFS.nextname.current+++"]")};function ___syscall_pipe(e){e>>>=0;try{if(0==e)throw new FS.ErrnoError(21);var t=PIPEFS.createPipe();return HEAP32[e>>>2>>>0]=t.readable_fd,HEAP32[e+4>>>2>>>0]=t.writable_fd,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_poll(e,t,r){e>>>=0;try{for(var n=0,i=0;i>>2>>>0],o=HEAP16[s+4>>>1>>>0],l=32,c=FS.getStream(a);c&&(l=SYSCALLS.DEFAULT_POLLMASK,c.stream_ops.poll&&(l=c.stream_ops.poll(c,-1))),(l&=24|o)&&n++,HEAP16[s+6>>>1>>>0]=l}return n}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_readlinkat(e,t,r,n){t>>>=0,r>>>=0,n>>>=0;try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),n<=0)return-28;var i=FS.readlink(t),s=Math.min(n,lengthBytesUTF8(i)),a=HEAP8[r+s>>>0];return stringToUTF8(i,r,n+1),HEAP8[r+s>>>0]=a,s}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_recvfrom(e,t,r,n,i,s){t>>>=0,r>>>=0,i>>>=0,s>>>=0;try{var a=getSocketFromFD(e),o=a.sock_ops.recvmsg(a,r);return o?(i&&writeSockaddr(i,a.family,DNS.lookup_name(o.addr),o.port,s),HEAPU8.set(o.buffer,t>>>0),o.buffer.byteLength):0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_recvmsg(e,t,r,n,i,s){t>>>=0;try{for(var a=getSocketFromFD(e),o=HEAPU32[t+8>>>2>>>0],l=HEAP32[t+12>>>2>>>0],c=0,u=0;u>>2>>>0];var _=a.sock_ops.recvmsg(a,c);if(!_)return 0;var d=HEAPU32[t>>>2>>>0];d&&writeSockaddr(d,a.family,DNS.lookup_name(_.addr),_.port);var p=0,f=_.buffer.byteLength;for(u=0;f>0&&u>>2>>>0],g=HEAP32[o+(8*u+4)>>>2>>>0];if(g){var h=Math.min(g,f),v=_.buffer.subarray(p,p+h);HEAPU8.set(v,m+p>>>0),p+=h,f-=h}}return p}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_renameat(e,t,r,n){t>>>=0,n>>>=0;try{return t=SYSCALLS.getStr(t),n=SYSCALLS.getStr(n),t=SYSCALLS.calculateAt(e,t),n=SYSCALLS.calculateAt(r,n),FS.rename(t,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_rmdir(e){e>>>=0;try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_sendmsg(e,t,r,n,i,s){t>>>=0;try{var a,o,l=getSocketFromFD(e),c=HEAPU32[t+8>>>2>>>0],u=HEAP32[t+12>>>2>>>0],_=HEAPU32[t>>>2>>>0],d=HEAP32[t+4>>>2>>>0];if(_){var p=getSocketAddress(_,d);o=p.port,a=p.addr}for(var f=0,m=0;m>>2>>>0];var g=new Uint8Array(f),h=0;for(m=0;m>>2>>>0],b=HEAP32[c+(8*m+4)>>>2>>>0],y=0;y>>0];return l.sock_ops.sendmsg(l,g,0,f,a,o)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_sendto(e,t,r,n,i,s){t>>>=0,r>>>=0,i>>>=0,s>>>=0;try{var a=getSocketFromFD(e);if(!i)return FS.write(a.stream,HEAP8,t,r);var o=getSocketAddress(i,s);return a.sock_ops.sendmsg(a,HEAP8,t,r,o.addr,o.port)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_socket(e,t,r){try{return SOCKFS.createSocket(e,t,r).stream.fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_stat64(e,t){e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.stat,e,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_symlink(e,t){e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),t=SYSCALLS.getStr(t),FS.symlink(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_symlinkat(e,t,r){e>>>=0,r>>>=0;try{return r=SYSCALLS.calculateAt(t,r),FS.symlink(e,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_truncate64(e,t,r){e>>>=0;var n=convertI32PairToI53Checked(t,r);try{return isNaN(n)?61:(e=SYSCALLS.getStr(e),FS.truncate(e,n),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_unlinkat(e,t,r){t>>>=0;try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),0===r?FS.unlink(t):512===r?FS.rmdir(t):abort("Invalid flags passed to unlinkat"),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_pipe.sig="ip",___syscall_poll.sig="ipii",___syscall_readlinkat.sig="iippp",___syscall_recvfrom.sig="iippipp",___syscall_recvmsg.sig="iipiiii",___syscall_renameat.sig="iipip",___syscall_rmdir.sig="ip",___syscall_sendmsg.sig="iipippi",___syscall_sendto.sig="iippipp",___syscall_socket.sig="iiiiiii",___syscall_stat64.sig="ipp",___syscall_symlink.sig="ipp",___syscall_symlinkat.sig="ipip",___syscall_truncate64.sig="ipii",___syscall_unlinkat.sig="iipi";var readI53FromI64=e=>HEAPU32[e>>>2>>>0]+4294967296*HEAP32[e+4>>>2>>>0];function ___syscall_utimensat(e,t,r,n){t>>>=0,r>>>=0;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t,!0);var i,s,a=Date.now();if(r){var o=readI53FromI64(r),l=HEAP32[r+8>>>2>>>0];i=1073741823==l?a:1073741822==l?-1:1e3*o+l/1e6,o=readI53FromI64(r+=16),s=1073741823==(l=HEAP32[r+8>>>2>>>0])?a:1073741822==l?-1:1e3*o+l/1e6}else i=a,s=a;return(-1!=s||-1!=i)&&FS.utime(t,i,s),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_utimensat.sig="iippi";var ___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var ENV={},stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),dlSetError=e=>{var t=stackSave(),r=stringToUTF8OnStack(e);___dl_seterr(r,0),stackRestore(t)},dlopenInternal=(e,t)=>{var r=UTF8ToString(e+36),n=HEAP32[e+4>>>2>>>0];r=PATH.normalize(r);var i=!!(256&n),s=i?null:{},a={global:i,nodelete:!!(4096&n),loadAsync:t.loadAsync};if(t.loadAsync)return loadDynamicLibrary(r,a,s,e);try{return loadDynamicLibrary(r,a,s,e)}catch(e){return dlSetError("Could not load dynamic lib: ".concat(r,"\n").concat(e)),0}};function __dlopen_js(e){return dlopenInternal(e>>>=0,{loadAsync:!1})}function __dlsym_js(e,t,r){e>>>=0,r>>>=0,t=UTF8ToString(t>>>=0);var n,i,s=LDSO.loadedLibsByHandle[e];if(!s.exports.hasOwnProperty(t)||s.exports[t].stub)return dlSetError('Tried to lookup unknown symbol "'.concat(t,'" in dynamic lib: ').concat(s.name)),0;i=Object.keys(s.exports).indexOf(t);var a="orig$"+t;if((n=s.exports[a])?i=Object.keys(s.exports).indexOf(a):n=s.exports[t],"function"==typeof n){var o=getFunctionAddress(n);o?n=o:(n=addFunction(n,n.sig),HEAPU32[r>>>2>>>0]=i)}return n}function __embind_register_bigint(e,t,r,n,i){}__dlopen_js.sig="pp",__dlsym_js.sig="pppp",__embind_register_bigint.sig="vpppiiii";var embind_init_charCodes=()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);embind_charCodes=e},embind_charCodes,readLatin1String=e=>{for(var t="",r=e;HEAPU8[r>>>0];)t+=embind_charCodes[HEAPU8[r++>>>0]];return t},awaitingDependencies={},registeredTypes={},typeDependencies={},BindingError,throwBindingError=e=>{throw new BindingError(e)},InternalError,throwInternalError=e=>{throw new InternalError(e)},whenDependentTypesAreResolved=(e,t,r)=>{function n(t){var n=r(t);n.length!==e.length&&throwInternalError("Mismatched type converter count");for(var i=0;itypeDependencies[e]=t));var i=new Array(t.length),s=[],a=0;t.forEach(((e,t)=>{registeredTypes.hasOwnProperty(e)?i[t]=registeredTypes[e]:(s.push(e),awaitingDependencies.hasOwnProperty(e)||(awaitingDependencies[e]=[]),awaitingDependencies[e].push((()=>{i[t]=registeredTypes[e],++a===s.length&&n(i)})))})),0===s.length&&n(i)};function sharedRegisterType(e,t,r={}){var n=t.name;if(e||throwBindingError('type "'.concat(n,'" must have a positive integer typeid pointer')),registeredTypes.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;throwBindingError("Cannot register type '".concat(n,"' twice"))}if(registeredTypes[e]=t,delete typeDependencies[e],awaitingDependencies.hasOwnProperty(e)){var i=awaitingDependencies[e];delete awaitingDependencies[e],i.forEach((e=>e()))}}function registerType(e,t,r={}){return sharedRegisterType(e,t,r)}var GenericWireTypeSize=8;function __embind_register_bool(e,t,r,n){registerType(e>>>=0,{name:t=readLatin1String(t>>>=0),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:n},argPackAdvance:GenericWireTypeSize,readValueFromPointer:function(e){return this.fromWireType(HEAPU8[e>>>0])},destructorFunction:null})}__embind_register_bool.sig="vppii";var emval_freelist=[],emval_handles=[];function __emval_decref(e){(e>>>=0)>9&&0==--emval_handles[e+1]&&(emval_handles[e]=void 0,emval_freelist.push(e))}__emval_decref.sig="vp";var count_emval_handles=()=>emval_handles.length/2-5-emval_freelist.length,init_emval=()=>{emval_handles.push(0,1,void 0,1,null,1,!0,1,!1,1),Module.count_emval_handles=count_emval_handles},Emval={toValue:e=>(e||throwBindingError("Cannot use deleted val. handle = "+e),emval_handles[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let t=emval_freelist.pop()||emval_handles.length;return emval_handles[t]=e,emval_handles[t+1]=1,t}}}};function readPointer(e){return this.fromWireType(HEAPU32[e>>>2>>>0])}var EmValType={name:"emscripten::val",fromWireType:e=>{var t=Emval.toValue(e);return __emval_decref(e),t},toWireType:(e,t)=>Emval.toHandle(t),argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:null};function __embind_register_emval(e){return registerType(e>>>=0,EmValType)}__embind_register_emval.sig="vp";var embindRepr=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},floatReadValueFromPointer=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(HEAPF32[e>>>2>>>0])};case 8:return function(e){return this.fromWireType(HEAPF64[e>>>3>>>0])};default:throw new TypeError("invalid float width (".concat(t,"): ").concat(e))}},__embind_register_float=function(e,t,r){r>>>=0,registerType(e>>>=0,{name:t=readLatin1String(t>>>=0),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:GenericWireTypeSize,readValueFromPointer:floatReadValueFromPointer(t,r),destructorFunction:null})};__embind_register_float.sig="vppp";var integerReadValueFromPointer=(e,t,r)=>{switch(t){case 1:return r?e=>HEAP8[e>>>0]:e=>HEAPU8[e>>>0];case 2:return r?e=>HEAP16[e>>>1>>>0]:e=>HEAPU16[e>>>1>>>0];case 4:return r?e=>HEAP32[e>>>2>>>0]:e=>HEAPU32[e>>>2>>>0];default:throw new TypeError("invalid integer width (".concat(t,"): ").concat(e))}};function __embind_register_integer(e,t,r,n,i){e>>>=0,r>>>=0,t=readLatin1String(t>>>=0),-1===i&&(i=4294967295);var s=e=>e;if(0===n){var a=32-8*r;s=e=>e<>>a}var o=t.includes("unsigned");registerType(e,{name:t,fromWireType:s,toWireType:o?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:GenericWireTypeSize,readValueFromPointer:integerReadValueFromPointer(t,r,0!==n),destructorFunction:null})}function __embind_register_memory_view(e,t,r){r>>>=0;var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=HEAPU32[e>>>2>>>0],r=HEAPU32[e+4>>>2>>>0];return new n(HEAP8.buffer,r,t)}registerType(e>>>=0,{name:r=readLatin1String(r),fromWireType:i,argPackAdvance:GenericWireTypeSize,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})}function __embind_register_std_string(e,t){e>>>=0;var r="std::string"===(t=readLatin1String(t>>>=0));registerType(e,{name:t,fromWireType(e){var t,n=HEAPU32[e>>>2>>>0],i=e+4;if(r)for(var s=i,a=0;a<=n;++a){var o=i+a;if(a==n||0==HEAPU8[o>>>0]){var l=UTF8ToString(s,o-s);void 0===t?t=l:(t+="\0",t+=l),s=o+1}}else{var c=new Array(n);for(a=0;a>>0]);t=c.join("")}return _free(e),t},toWireType(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n,i="string"==typeof t;i||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||throwBindingError("Cannot pass non-string to std::string"),n=r&&i?lengthBytesUTF8(t):t.length;var s=_malloc(4+n+1),a=s+4;if(HEAPU32[s>>>2>>>0]=n,r&&i)stringToUTF8(t,a,n+1);else if(i)for(var o=0;o255&&(_free(a),throwBindingError("String has UTF-16 code units that do not fit in 8 bits")),HEAPU8[a+o>>>0]=l}else for(o=0;o>>0]=t[o];return null!==e&&e.push(_free,s),s},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(e){_free(e)}})}__embind_register_integer.sig="vpppii",__embind_register_memory_view.sig="vpip",__embind_register_std_string.sig="vpp";var UTF16Decoder=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,UTF16ToString=(e,t)=>{for(var r=e,n=r>>1,i=n+t/2;!(n>=i)&&HEAPU16[n>>>0];)++n;if((r=n<<1)-e>32&&UTF16Decoder)return UTF16Decoder.decode(HEAPU8.subarray(e>>>0,r>>>0));for(var s="",a=0;!(a>=t/2);++a){var o=HEAP16[e+2*a>>>1>>>0];if(0==o)break;s+=String.fromCharCode(o)}return s},stringToUTF16=(e,t,r)=>{if(null!=r||(r=2147483647),r<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,s=0;s>>1>>>0]=a,t+=2}return HEAP16[t>>>1>>>0]=0,t-n},lengthBytesUTF16=e=>2*e.length,UTF32ToString=(e,t)=>{for(var r=0,n="";!(r>=t/4);){var i=HEAP32[e+4*r>>>2>>>0];if(0==i)break;if(++r,i>=65536){var s=i-65536;n+=String.fromCharCode(55296|s>>10,56320|1023&s)}else n+=String.fromCharCode(i)}return n},stringToUTF32=(e,t,r)=>{if(null!=r||(r=2147483647),r<4)return 0;for(var n=t>>>=0,i=n+r-4,s=0;s=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++s)),HEAP32[t>>>2>>>0]=a,(t+=4)+4>i)break}return HEAP32[t>>>2>>>0]=0,t-n},lengthBytesUTF32=e=>{for(var t=0,r=0;r=55296&&n<=57343&&++r,t+=4}return t},__embind_register_std_wstring=function(e,t,r){var n,i,s,a;e>>>=0,t>>>=0,r=readLatin1String(r>>>=0),2===t?(n=UTF16ToString,i=stringToUTF16,a=lengthBytesUTF16,s=e=>HEAPU16[e>>>1>>>0]):4===t&&(n=UTF32ToString,i=stringToUTF32,a=lengthBytesUTF32,s=e=>HEAPU32[e>>>2>>>0]),registerType(e,{name:r,fromWireType:e=>{for(var r,i=HEAPU32[e>>>2>>>0],a=e+4,o=0;o<=i;++o){var l=e+4+o*t;if(o==i||0==s(l)){var c=n(a,l-a);void 0===r?r=c:(r+="\0",r+=c),a=l+t}}return _free(e),r},toWireType:(e,n)=>{"string"!=typeof n&&throwBindingError("Cannot pass non-string to C++ string type ".concat(r));var s=a(n),o=_malloc(4+s+t);return HEAPU32[o>>>2>>>0]=s/t,i(n,o+4,s+t),null!==e&&e.push(_free,o),o},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(e){_free(e)}})};__embind_register_std_wstring.sig="vppp";var __embind_register_void=function(e,t){registerType(e>>>=0,{isVoid:!0,name:t=readLatin1String(t>>>=0),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})};__embind_register_void.sig="vpp";var handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{var t;EXITSTATUS=e,keepRuntimeAlive()||(null==(t=Module.onExit)||t.call(Module,e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},_exit=exitJS;_exit.sig="vi";var maybeExit=()=>{if(!keepRuntimeAlive())try{_exit(EXITSTATUS)}catch(e){handleException(e)}},callUserCallback=e=>{if(!ABORT)try{e(),maybeExit()}catch(e){handleException(e)}};function __emscripten_dlopen_js(e,t,r,n){function i(t){var i=UTF8ToString(e+36);dlSetError("'Could not load dynamic lib: ".concat(i,"\n").concat(t)),callUserCallback((()=>getWasmTableEntry(r)(e,n)))}t>>>=0,r>>>=0,n>>>=0;var s=dlopenInternal(e>>>=0,{loadAsync:!0});s?s.then((function(){callUserCallback((()=>getWasmTableEntry(t)(e,n)))}),i):i()}__emscripten_dlopen_js.sig="vpppp";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var getExecutableName=()=>thisProgram||"./this.program";function __emscripten_get_progname(e,t){e>>>=0,stringToUTF8(getExecutableName(),e,t)}function __emscripten_lookup_name(e){var t=UTF8ToString(e>>>=0);return inetPton4(DNS.lookup_name(t))}function __emscripten_memcpy_js(e,t,r){return e>>>=0,t>>>=0,r>>>=0,HEAPU8.copyWithin(e>>>0,t>>>0,t+r>>>0)}__emscripten_get_progname.sig="vpi",__emscripten_lookup_name.sig="ip",__emscripten_memcpy_js.sig="vppp";var __emscripten_runtime_keepalive_clear=()=>{noExitRuntime=!1,runtimeKeepaliveCounter=0};function __emscripten_set_offscreencanvas_size(e,t,r){return-1}function __emscripten_system(e){if(e>>>=0,ENVIRONMENT_IS_NODE){if(!e)return 1;var t=UTF8ToString(e);if(!t.length)return 0;var r=["child_process"].map(In).spawnSync(t,[],{shell:!0,stdio:"inherit"}),n=(e,t)=>e<<8|t;return null===r.status?n(0,(e=>{switch(e){case"SIGHUP":return 1;case"SIGQUIT":return 3;case"SIGFPE":return 8;case"SIGKILL":return 9;case"SIGALRM":return 14;case"SIGTERM":return 15;default:return 2}})(r.signal)):n(r.status,0)}return e?-52:0}function __gmtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t);r>>>=0;var i=new Date(1e3*n);HEAP32[r>>>2>>>0]=i.getUTCSeconds(),HEAP32[r+4>>>2>>>0]=i.getUTCMinutes(),HEAP32[r+8>>>2>>>0]=i.getUTCHours(),HEAP32[r+12>>>2>>>0]=i.getUTCDate(),HEAP32[r+16>>>2>>>0]=i.getUTCMonth(),HEAP32[r+20>>>2>>>0]=i.getUTCFullYear()-1900,HEAP32[r+24>>>2>>>0]=i.getUTCDay();var s=Date.UTC(i.getUTCFullYear(),0,1,0,0,0,0),a=(i.getTime()-s)/864e5|0;HEAP32[r+28>>>2>>>0]=a}__emscripten_runtime_keepalive_clear.sig="v",__emscripten_set_offscreencanvas_size.sig="ipii",__emscripten_system.sig="ip",__gmtime_js.sig="viip";var isLeapYear=e=>e%4==0&&(e%100!=0||e%400==0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>(isLeapYear(e.getFullYear())?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE)[e.getMonth()]+e.getDate()-1;function __localtime_js(e,t,r){var n=convertI32PairToI53Checked(e,t);r>>>=0;var i=new Date(1e3*n);HEAP32[r>>>2>>>0]=i.getSeconds(),HEAP32[r+4>>>2>>>0]=i.getMinutes(),HEAP32[r+8>>>2>>>0]=i.getHours(),HEAP32[r+12>>>2>>>0]=i.getDate(),HEAP32[r+16>>>2>>>0]=i.getMonth(),HEAP32[r+20>>>2>>>0]=i.getFullYear()-1900,HEAP32[r+24>>>2>>>0]=i.getDay();var s=0|ydayFromDate(i);HEAP32[r+28>>>2>>>0]=s,HEAP32[r+36>>>2>>>0]=-60*i.getTimezoneOffset();var a=new Date(i.getFullYear(),0,1),o=new Date(i.getFullYear(),6,1).getTimezoneOffset(),l=a.getTimezoneOffset(),c=0|(o!=l&&i.getTimezoneOffset()==Math.min(l,o));HEAP32[r+32>>>2>>>0]=c}__localtime_js.sig="viip";var setTempRet0=e=>__emscripten_tempret_set(e),_setTempRet0=setTempRet0;Module._setTempRet0=_setTempRet0;var __mktime_js=function(e){e>>>=0;var t=(()=>{var t=new Date(HEAP32[e+20>>>2>>>0]+1900,HEAP32[e+16>>>2>>>0],HEAP32[e+12>>>2>>>0],HEAP32[e+8>>>2>>>0],HEAP32[e+4>>>2>>>0],HEAP32[e>>>2>>>0],0),r=HEAP32[e+32>>>2>>>0],n=t.getTimezoneOffset(),i=new Date(t.getFullYear(),0,1),s=new Date(t.getFullYear(),6,1).getTimezoneOffset(),a=i.getTimezoneOffset(),o=Math.min(a,s);if(r<0)HEAP32[e+32>>>2>>>0]=+(s!=a&&o==n);else if(r>0!=(o==n)){var l=Math.max(a,s),c=r>0?o:l;t.setTime(t.getTime()+6e4*(c-n))}HEAP32[e+24>>>2>>>0]=t.getDay();var u=0|ydayFromDate(t);HEAP32[e+28>>>2>>>0]=u,HEAP32[e>>>2>>>0]=t.getSeconds(),HEAP32[e+4>>>2>>>0]=t.getMinutes(),HEAP32[e+8>>>2>>>0]=t.getHours(),HEAP32[e+12>>>2>>>0]=t.getDate(),HEAP32[e+16>>>2>>>0]=t.getMonth(),HEAP32[e+20>>>2>>>0]=t.getYear();var _=t.getTime();return isNaN(_)?-1:_/1e3})();return setTempRet0((tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),t>>>0};function __mmap_js(e,t,r,n,i,s,a,o){e>>>=0;var l=convertI32PairToI53Checked(i,s);a>>>=0,o>>>=0;try{if(isNaN(l))return 61;var c=SYSCALLS.getStreamFromFD(n),u=FS.mmap(c,e,l,t,r),_=u.ptr;return HEAP32[a>>>2>>>0]=u.allocated,HEAPU32[o>>>2>>>0]=_,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __msync_js(e,t,r,n,i,s,a){e>>>=0,t>>>=0;var o=convertI32PairToI53Checked(s,a);try{return isNaN(o)?61:(SYSCALLS.doMsync(e,SYSCALLS.getStreamFromFD(i),t,n,o),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __munmap_js(e,t,r,n,i,s,a){e>>>=0,t>>>=0;var o=convertI32PairToI53Checked(s,a);try{var l=SYSCALLS.getStreamFromFD(i);2&r&&SYSCALLS.doMsync(e,l,t,n,o)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}__mktime_js.sig="ip",__mmap_js.sig="ipiiiiipp",__msync_js.sig="ippiiiii",__munmap_js.sig="ippiiiii";var timers={},_emscripten_get_now=()=>performance.now();_emscripten_get_now.sig="d";var __setitimer_js=(e,t)=>{if(timers[e]&&(clearTimeout(timers[e].id),delete timers[e]),!t)return 0;var r=setTimeout((()=>{delete timers[e],callUserCallback((()=>__emscripten_timeout(e,_emscripten_get_now())))}),t);return timers[e]={id:r,timeout_ms:t},0};__setitimer_js.sig="iid";var __timegm_js=function(e){e>>>=0;var t=(()=>{var t=Date.UTC(HEAP32[e+20>>>2>>>0]+1900,HEAP32[e+16>>>2>>>0],HEAP32[e+12>>>2>>>0],HEAP32[e+8>>>2>>>0],HEAP32[e+4>>>2>>>0],HEAP32[e>>>2>>>0],0),r=new Date(t);HEAP32[e+24>>>2>>>0]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),i=(r.getTime()-n)/864e5|0;return HEAP32[e+28>>>2>>>0]=i,r.getTime()/1e3})();return setTempRet0((tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),t>>>0};__timegm_js.sig="ip";var __tzset_js=function(e,t,r,n){e>>>=0,t>>>=0,r>>>=0,n>>>=0;var i=(new Date).getFullYear(),s=new Date(i,0,1),a=new Date(i,6,1),o=s.getTimezoneOffset(),l=a.getTimezoneOffset(),c=Math.max(o,l);HEAPU32[e>>>2>>>0]=60*c,HEAP32[t>>>2>>>0]=+(o!=l);var u=e=>{var t=e>=0?"-":"+",r=Math.abs(e),n=String(Math.floor(r/60)).padStart(2,"0"),i=String(r%60).padStart(2,"0");return"UTC".concat(t).concat(n).concat(i)},_=u(o),d=u(l);l{if(MainLoop.timingMode=e,MainLoop.timingValue=t,!MainLoop.func)return 1;if(MainLoop.running||(MainLoop.running=!0),0==e)MainLoop.scheduler=function(){var e=0|Math.max(0,MainLoop.tickStartTime+t-_emscripten_get_now());setTimeout(MainLoop.runner,e)},MainLoop.method="timeout";else if(1==e)MainLoop.scheduler=function(){MainLoop.requestAnimationFrame(MainLoop.runner)},MainLoop.method="rAF";else if(2==e){if(typeof MainLoop.setImmediate>"u")if(typeof setImmediate>"u"){var r=[],n="setimmediate";addEventListener("message",(e=>{(e.data===n||e.data.target===n)&&(e.stopPropagation(),r.shift()())}),!0),MainLoop.setImmediate=e=>{r.push(e),ENVIRONMENT_IS_WORKER?(null!=Module.setImmediates||(Module.setImmediates=[]),Module.setImmediates.push(e),postMessage({target:n})):postMessage(n,"*")}}else MainLoop.setImmediate=setImmediate;MainLoop.scheduler=function(){MainLoop.setImmediate(MainLoop.runner)},MainLoop.method="immediate"}return 0};_emscripten_set_main_loop_timing.sig="iii";var setMainLoop=(e,t,r,n,i)=>{MainLoop.func=e,MainLoop.arg=n;var s=MainLoop.currentlyRunningMainloop;function a(){return!(s0){Date.now();var t=MainLoop.queue.shift();if(t.func(t.arg),MainLoop.remainingBlockers){var r=MainLoop.remainingBlockers,n=r%1==0?r-1:Math.floor(r);t.counted?MainLoop.remainingBlockers=n:(n+=.5,MainLoop.remainingBlockers=(8*r+n)/9)}if(MainLoop.updateStatus(),!a())return;return void setTimeout(MainLoop.runner,0)}if(a()){if(MainLoop.currentFrameNumber=MainLoop.currentFrameNumber+1|0,1==MainLoop.timingMode&&MainLoop.timingValue>1&&MainLoop.currentFrameNumber%MainLoop.timingValue!=0)return void MainLoop.scheduler();0==MainLoop.timingMode&&(MainLoop.tickStartTime=_emscripten_get_now()),MainLoop.runIter(e),a()&&MainLoop.scheduler()}}},i||(t&&t>0?_emscripten_set_main_loop_timing(0,1e3/t):_emscripten_set_main_loop_timing(1,1),MainLoop.scheduler()),r)throw"unwind"},MainLoop={running:!1,scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],preMainLoop:[],postMainLoop:[],pause(){MainLoop.scheduler=null,MainLoop.currentlyRunningMainloop++},resume(){MainLoop.currentlyRunningMainloop++;var e=MainLoop.timingMode,t=MainLoop.timingValue,r=MainLoop.func;MainLoop.func=null,setMainLoop(r,0,!1,MainLoop.arg,!0),_emscripten_set_main_loop_timing(e,t),MainLoop.scheduler()},updateStatus(){var e,t;if(Module.setStatus){var r=Module.statusMessage||"Please wait...",n=null!=(e=MainLoop.remainingBlockers)?e:0,i=null!=(t=MainLoop.expectedBlockers)?t:0;n?n=MainLoop.nextRAF;)MainLoop.nextRAF+=1e3/60;var r=Math.max(MainLoop.nextRAF-t,0);setTimeout(e,r)},requestAnimationFrame(e){"function"!=typeof requestAnimationFrame?(0,MainLoop.fakeRequestAnimationFrame)(e):requestAnimationFrame(e)}},AL={QUEUE_INTERVAL:25,QUEUE_LOOKAHEAD:.1,DEVICE_NAME:"Emscripten OpenAL",CAPTURE_DEVICE_NAME:"Emscripten OpenAL capture",ALC_EXTENSIONS:{ALC_SOFT_pause_device:!0,ALC_SOFT_HRTF:!0},AL_EXTENSIONS:{AL_EXT_float32:!0,AL_SOFT_loop_points:!0,AL_SOFT_source_length:!0,AL_EXT_source_distance_model:!0,AL_SOFT_source_spatialize:!0},_alcErr:0,alcErr:0,deviceRefCounts:{},alcStringCache:{},paused:!1,stringCache:{},contexts:{},currentCtx:null,buffers:{0:{id:0,refCount:0,audioBuf:null,frequency:0,bytesPerSample:2,channels:1,length:0}},paramArray:[],_nextId:1,newId:()=>AL.freeIds.length>0?AL.freeIds.pop():AL._nextId++,freeIds:[],scheduleContextAudio:e=>{if(1!==MainLoop.timingMode||"visible"==document.visibilityState)for(var t in e.sources)AL.scheduleSourceAudio(e.sources[t])},scheduleSourceAudio:(e,t)=>{if((1!==MainLoop.timingMode||"visible"==document.visibilityState)&&4114===e.state){for(var r=AL.updateSourceTime(e),n=e.bufStartTime,i=e.bufOffset,s=e.bufsProcessed,a=0;a=e.bufQueue.length){if(!e.looping)break;s%=e.bufQueue.length}var c=e.bufQueue[s%e.bufQueue.length];if(0===c.length){if(++l===e.bufQueue.length)break}else{var u;(u=e.context.audioCtx.createBufferSource()).buffer=c.audioBuf,u.playbackRate.value=e.playbackRate,(c.audioBuf._loopStart||c.audioBuf._loopEnd)&&(u.loopStart=c.audioBuf._loopStart,u.loopEnd=c.audioBuf._loopEnd);var _=0;4136===e.type&&e.looping?(_=Number.POSITIVE_INFINITY,u.loop=!0,c.audioBuf._loopStart&&(u.loopStart=c.audioBuf._loopStart),c.audioBuf._loopEnd&&(u.loopEnd=c.audioBuf._loopEnd)):_=(c.audioBuf.duration-i)/e.playbackRate,u._startOffset=i,u._duration=_,u._skipCount=l,l=0,u.connect(e.gain),typeof u.start<"u"?(n=Math.max(n,e.context.audioCtx.currentTime),u.start(n,i)):typeof u.noteOn<"u"&&(n=Math.max(n,e.context.audioCtx.currentTime),u.noteOn(n)),u._startTime=n,e.audioQueue.push(u),n+=_}i=0,s++}}},updateSourceTime:e=>{var t=e.context.audioCtx.currentTime;if(4114!==e.state)return t;isFinite(e.bufStartTime)||(e.bufStartTime=t-e.bufOffset/e.playbackRate,e.bufOffset=0);for(var r=0;e.audioQueue.length;){var n=e.audioQueue[0];if(e.bufsProcessed+=n._skipCount,t<(r=n._startTime+n._duration))break;e.audioQueue.shift(),e.bufStartTime=r,e.bufOffset=0,e.bufsProcessed++}if(e.bufsProcessed>=e.bufQueue.length&&!e.looping)AL.setSourceState(e,4116);else if(4136===e.type&&e.looping)if(0===(c=e.bufQueue[0]).length)e.bufOffset=0;else{var i=(t-e.bufStartTime)*e.playbackRate,s=c.audioBuf._loopStart||0,a=c.audioBuf._loopEnd||c.audioBuf.duration;a<=s&&(a=c.audioBuf.duration),e.bufOffset=i0&&(e.bufStartTime+=Math.floor((t-e.bufStartTime)/o)*o)}for(var l=0;l=e.bufQueue.length){if(!e.looping){AL.setSourceState(e,4116);break}e.bufsProcessed%=e.bufQueue.length}var c;if((c=e.bufQueue[e.bufsProcessed]).length>0){if(t<(r=e.bufStartTime+c.audioBuf.duration/e.playbackRate)){e.bufOffset=(t-e.bufStartTime)*e.playbackRate;break}e.bufStartTime=r}e.bufOffset=0,e.bufsProcessed++}}return t},cancelPendingSourceAudio:e=>{AL.updateSourceTime(e);for(var t=1;t1&&(e.audioQueue.length=1)},stopSourceAudio:e=>{for(var t=0;t{4114===t?((4114===e.state||4116==e.state)&&(e.bufsProcessed=0,e.bufOffset=0),AL.stopSourceAudio(e),e.state=4114,e.bufStartTime=Number.NEGATIVE_INFINITY,AL.scheduleSourceAudio(e)):4115===t?4114===e.state&&(AL.updateSourceTime(e),AL.stopSourceAudio(e),e.state=4115):4116===t?4113!==e.state&&(e.state=4116,e.bufsProcessed=e.bufQueue.length,e.bufStartTime=Number.NEGATIVE_INFINITY,e.bufOffset=0,AL.stopSourceAudio(e)):4113===t&&4113!==e.state&&(e.state=4113,e.bufsProcessed=0,e.bufStartTime=Number.NEGATIVE_INFINITY,e.bufOffset=0,AL.stopSourceAudio(e))},initSourcePanner:e=>{if(4144!==e.type){for(var t=AL.buffers[0],r=0;r{for(var t in e.sources)AL.updateSourceGlobal(e.sources[t])},updateSourceGlobal:e=>{var t=e.panner;if(t)switch(t.refDistance=e.refDistance,t.maxDistance=e.maxDistance,t.rolloffFactor=e.rolloffFactor,t.panningModel=e.context.hrtf?"HRTF":"equalpower",e.context.sourceDistanceModel?e.distanceModel:e.context.distanceModel){case 0:t.distanceModel="inverse",t.refDistance=340282e33;break;case 53249:case 53250:t.distanceModel="inverse";break;case 53251:case 53252:t.distanceModel="linear";break;case 53253:case 53254:t.distanceModel="exponential"}},updateListenerSpace:e=>{var t=e.audioCtx.listener;for(var r in t.positionX?(t.positionX.value=e.listener.position[0],t.positionY.value=e.listener.position[1],t.positionZ.value=e.listener.position[2]):t.setPosition(e.listener.position[0],e.listener.position[1],e.listener.position[2]),t.forwardX?(t.forwardX.value=e.listener.direction[0],t.forwardY.value=e.listener.direction[1],t.forwardZ.value=e.listener.direction[2],t.upX.value=e.listener.up[0],t.upY.value=e.listener.up[1],t.upZ.value=e.listener.up[2]):t.setOrientation(e.listener.direction[0],e.listener.direction[1],e.listener.direction[2],e.listener.up[0],e.listener.up[1],e.listener.up[2]),e.sources)AL.updateSourceSpace(e.sources[r])},updateSourceSpace:e=>{if(e.panner){var t=e.panner,r=e.position[0],n=e.position[1],i=e.position[2],s=e.direction[0],a=e.direction[1],o=e.direction[2],l=e.context.listener,c=l.position[0],u=l.position[1],_=l.position[2];if(e.relative){var d=-l.direction[0],p=-l.direction[1],f=-l.direction[2],m=l.up[0],g=l.up[1],h=l.up[2],v=(e,t,r)=>{var n=Math.sqrt(e*e+t*t+r*r);return n{if(4114===e.state){AL.cancelPendingSourceAudio(e);var t,r=e.audioQueue[0];if(!r)return;t=4136===e.type&&e.looping?Number.POSITIVE_INFINITY:(r.buffer.duration-r._startOffset)/e.playbackRate,r._duration=t,r.playbackRate.value=e.playbackRate,AL.scheduleSourceAudio(e)}},sourceDuration:e=>{for(var t=0,r=0;r{AL.updateSourceTime(e);for(var t=0,r=0;r{var r=4114==e.state;if(r&&AL.setSourceState(e,4113),null!==e.bufQueue[e.bufsProcessed].audioBuf){for(e.bufsProcessed=0;t>e.bufQueue[e.bufsProcessed].audioBuf.duration;)t-=e.bufQueue[e.bufsProcessed].audioBuf.duration,e.bufsProcessed++;e.bufOffset=t}r&&AL.setSourceState(e,4114)},getGlobalParam:(e,t)=>{if(!AL.currentCtx)return null;switch(t){case 49152:return AL.currentCtx.dopplerFactor;case 49155:return AL.currentCtx.speedOfSound;case 53248:return AL.currentCtx.distanceModel;default:return AL.currentCtx.err=40962,null}},setGlobalParam:(e,t,r)=>{if(AL.currentCtx)switch(t){case 49152:if(!Number.isFinite(r)||r<0)return void(AL.currentCtx.err=40963);AL.currentCtx.dopplerFactor=r,AL.updateListenerSpace(AL.currentCtx);break;case 49155:if(!Number.isFinite(r)||r<=0)return void(AL.currentCtx.err=40963);AL.currentCtx.speedOfSound=r,AL.updateListenerSpace(AL.currentCtx);break;case 53248:switch(r){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:AL.currentCtx.distanceModel=r,AL.updateContextGlobal(AL.currentCtx);break;default:return void(AL.currentCtx.err=40963)}break;default:return void(AL.currentCtx.err=40962)}},getListenerParam:(e,t)=>{if(!AL.currentCtx)return null;switch(t){case 4100:return AL.currentCtx.listener.position;case 4102:return AL.currentCtx.listener.velocity;case 4111:return AL.currentCtx.listener.direction.concat(AL.currentCtx.listener.up);case 4106:return AL.currentCtx.gain.gain.value;default:return AL.currentCtx.err=40962,null}},setListenerParam:(e,t,r)=>{if(AL.currentCtx){if(null===r)return void(AL.currentCtx.err=40962);var n=AL.currentCtx.listener;switch(t){case 4100:if(!Number.isFinite(r[0])||!Number.isFinite(r[1])||!Number.isFinite(r[2]))return void(AL.currentCtx.err=40963);n.position[0]=r[0],n.position[1]=r[1],n.position[2]=r[2],AL.updateListenerSpace(AL.currentCtx);break;case 4102:if(!Number.isFinite(r[0])||!Number.isFinite(r[1])||!Number.isFinite(r[2]))return void(AL.currentCtx.err=40963);n.velocity[0]=r[0],n.velocity[1]=r[1],n.velocity[2]=r[2],AL.updateListenerSpace(AL.currentCtx);break;case 4106:if(!Number.isFinite(r)||r<0)return void(AL.currentCtx.err=40963);AL.currentCtx.gain.gain.value=r;break;case 4111:if(!(Number.isFinite(r[0])&&Number.isFinite(r[1])&&Number.isFinite(r[2])&&Number.isFinite(r[3])&&Number.isFinite(r[4])&&Number.isFinite(r[5])))return void(AL.currentCtx.err=40963);n.direction[0]=r[0],n.direction[1]=r[1],n.direction[2]=r[2],n.up[0]=r[3],n.up[1]=r[4],n.up[2]=r[5],AL.updateListenerSpace(AL.currentCtx);break;default:return void(AL.currentCtx.err=40962)}}},getBufferParam:(e,t,r)=>{if(AL.currentCtx){var n=AL.buffers[t];if(!n||0===t)return void(AL.currentCtx.err=40961);switch(r){case 8193:return n.frequency;case 8194:return 8*n.bytesPerSample;case 8195:return n.channels;case 8196:return n.length*n.bytesPerSample*n.channels;case 8213:return 0===n.length?[0,0]:[(n.audioBuf._loopStart||0)*n.frequency,(n.audioBuf._loopEnd||n.length)*n.frequency];default:return AL.currentCtx.err=40962,null}}},setBufferParam:(e,t,r,n)=>{if(AL.currentCtx){var i=AL.buffers[t];if(!i||0===t)return void(AL.currentCtx.err=40961);if(null===n)return void(AL.currentCtx.err=40962);switch(r){case 8196:if(0!==n)return void(AL.currentCtx.err=40963);break;case 8213:if(n[0]<0||n[0]>i.length||n[1]<0||n[1]>i.Length||n[0]>=n[1])return void(AL.currentCtx.err=40963);if(i.refCount>0)return void(AL.currentCtx.err=40964);i.audioBuf&&(i.audioBuf._loopStart=n[0]/i.frequency,i.audioBuf._loopEnd=n[1]/i.frequency);break;default:return void(AL.currentCtx.err=40962)}}},getSourceParam:(e,t,r)=>{if(!AL.currentCtx)return null;var n=AL.currentCtx.sources[t];if(!n)return AL.currentCtx.err=40961,null;switch(r){case 514:return n.relative;case 4097:return n.coneInnerAngle;case 4098:return n.coneOuterAngle;case 4099:return n.pitch;case 4100:return n.position;case 4101:return n.direction;case 4102:return n.velocity;case 4103:return n.looping;case 4105:return 4136===n.type?n.bufQueue[0].id:0;case 4106:return n.gain.gain.value;case 4109:return n.minGain;case 4110:return n.maxGain;case 4112:return n.state;case 4117:return 1===n.bufQueue.length&&0===n.bufQueue[0].id?0:n.bufQueue.length;case 4118:return 1===n.bufQueue.length&&0===n.bufQueue[0].id||n.looping?0:n.bufsProcessed;case 4128:return n.refDistance;case 4129:return n.rolloffFactor;case 4130:return n.coneOuterGain;case 4131:return n.maxDistance;case 4132:return AL.sourceTell(n);case 4133:return(i=AL.sourceTell(n))>0&&(i*=n.bufQueue[0].frequency),i;case 4134:var i;return(i=AL.sourceTell(n))>0&&(i*=n.bufQueue[0].frequency*n.bufQueue[0].bytesPerSample),i;case 4135:return n.type;case 4628:return n.spatialize;case 8201:for(var s=0,a=0,o=0;o{if(AL.currentCtx){var i=AL.currentCtx.sources[t];if(!i)return void(AL.currentCtx.err=40961);if(null===n)return void(AL.currentCtx.err=40962);switch(r){case 514:if(1===n)i.relative=!0,AL.updateSourceSpace(i);else{if(0!==n)return void(AL.currentCtx.err=40963);i.relative=!1,AL.updateSourceSpace(i)}break;case 4097:if(!Number.isFinite(n))return void(AL.currentCtx.err=40963);i.coneInnerAngle=n,i.panner&&(i.panner.coneInnerAngle=n%360);break;case 4098:if(!Number.isFinite(n))return void(AL.currentCtx.err=40963);i.coneOuterAngle=n,i.panner&&(i.panner.coneOuterAngle=n%360);break;case 4099:if(!Number.isFinite(n)||n<=0)return void(AL.currentCtx.err=40963);if(i.pitch===n)break;i.pitch=n,AL.updateSourceRate(i);break;case 4100:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);i.position[0]=n[0],i.position[1]=n[1],i.position[2]=n[2],AL.updateSourceSpace(i);break;case 4101:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);i.direction[0]=n[0],i.direction[1]=n[1],i.direction[2]=n[2],AL.updateSourceSpace(i);break;case 4102:if(!Number.isFinite(n[0])||!Number.isFinite(n[1])||!Number.isFinite(n[2]))return void(AL.currentCtx.err=40963);i.velocity[0]=n[0],i.velocity[1]=n[1],i.velocity[2]=n[2],AL.updateSourceSpace(i);break;case 4103:if(1===n)i.looping=!0,AL.updateSourceTime(i),4136===i.type&&i.audioQueue.length>0&&((s=i.audioQueue[0]).loop=!0,s._duration=Number.POSITIVE_INFINITY);else{if(0!==n)return void(AL.currentCtx.err=40963);i.looping=!1;var s,a=AL.updateSourceTime(i);4136===i.type&&i.audioQueue.length>0&&((s=i.audioQueue[0]).loop=!1,s._duration=i.bufQueue[0].audioBuf.duration/i.playbackRate,s._startTime=a-i.bufOffset/i.playbackRate)}break;case 4105:if(4114===i.state||4115===i.state)return void(AL.currentCtx.err=40964);if(0===n){for(var o in i.bufQueue)i.bufQueue[o].refCount--;i.bufQueue.length=1,i.bufQueue[0]=AL.buffers[0],i.bufsProcessed=0,i.type=4144}else{if(!(d=AL.buffers[n]))return void(AL.currentCtx.err=40963);for(var o in i.bufQueue)i.bufQueue[o].refCount--;i.bufQueue.length=0,d.refCount++,i.bufQueue=[d],i.bufsProcessed=0,i.type=4136}AL.initSourcePanner(i),AL.scheduleSourceAudio(i);break;case 4106:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);i.gain.gain.value=n;break;case 4109:if(!Number.isFinite(n)||n<0||n>Math.min(i.maxGain,1))return void(AL.currentCtx.err=40963);i.minGain=n;break;case 4110:if(!Number.isFinite(n)||n1)return void(AL.currentCtx.err=40963);i.maxGain=n;break;case 4128:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);i.refDistance=n,i.panner&&(i.panner.refDistance=n);break;case 4129:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);i.rolloffFactor=n,i.panner&&(i.panner.rolloffFactor=n);break;case 4130:if(!Number.isFinite(n)||n<0||n>1)return void(AL.currentCtx.err=40963);i.coneOuterGain=n,i.panner&&(i.panner.coneOuterGain=n);break;case 4131:if(!Number.isFinite(n)||n<0)return void(AL.currentCtx.err=40963);i.maxDistance=n,i.panner&&(i.panner.maxDistance=n);break;case 4132:if(n<0||n>AL.sourceDuration(i))return void(AL.currentCtx.err=40963);AL.sourceSeek(i,n);break;case 4133:if((u=AL.sourceDuration(i))>0){var l;for(var c in i.bufQueue)if(c){l=i.bufQueue[c].frequency;break}n/=l}if(n<0||n>u)return void(AL.currentCtx.err=40963);AL.sourceSeek(i,n);break;case 4134:var u;if((u=AL.sourceDuration(i))>0){var _;for(var c in i.bufQueue)if(c){var d;_=(d=i.bufQueue[c]).frequency*d.bytesPerSample*d.channels;break}n/=_}if(n<0||n>u)return void(AL.currentCtx.err=40963);AL.sourceSeek(i,n);break;case 4628:if(0!==n&&1!==n&&2!==n)return void(AL.currentCtx.err=40963);i.spatialize=n,AL.initSourcePanner(i);break;case 8201:case 8202:case 8203:AL.currentCtx.err=40964;break;case 53248:switch(n){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:i.distanceModel=n,AL.currentCtx.sourceDistanceModel&&AL.updateContextGlobal(AL.currentCtx);break;default:return void(AL.currentCtx.err=40963)}break;default:return void(AL.currentCtx.err=40962)}}},captures:{},sharedCaptureAudioCtx:null,requireValidCaptureDevice:(e,t)=>{if(0===e)return AL.alcErr=40961,null;var r=AL.captures[e];return r?r.mediaStreamError?(AL.alcErr=40961,null):r:(AL.alcErr=40961,null)}},_alBuffer3f=(e,t,r,n,i)=>{AL.setBufferParam("alBuffer3f",e,t,null)};_alBuffer3f.sig="viifff";var _alBuffer3i=(e,t,r,n,i)=>{AL.setBufferParam("alBuffer3i",e,t,null)};function _alBufferData(e,t,r,n,i){if(r>>>=0,AL.currentCtx){var s=AL.buffers[e];if(!s)return void(AL.currentCtx.err=40963);if(i<=0)return void(AL.currentCtx.err=40963);var a=null;try{switch(t){case 4352:if(n>0)for(var o=(a=AL.currentCtx.audioCtx.createBuffer(1,n,i)).getChannelData(0),l=0;l>>0]-1;s.bytesPerSample=1,s.channels=1,s.length=n;break;case 4353:if(n>0)for(o=(a=AL.currentCtx.audioCtx.createBuffer(1,n>>1,i)).getChannelData(0),r>>=1,l=0;l>1;++l)o[l]=30517578125e-15*HEAP16[r++>>>0];s.bytesPerSample=2,s.channels=1,s.length=n>>1;break;case 4354:if(n>0){o=(a=AL.currentCtx.audioCtx.createBuffer(2,n>>1,i)).getChannelData(0);var c=a.getChannelData(1);for(l=0;l>1;++l)o[l]=.0078125*HEAPU8[r++>>>0]-1,c[l]=.0078125*HEAPU8[r++>>>0]-1}s.bytesPerSample=1,s.channels=2,s.length=n>>1;break;case 4355:if(n>0)for(o=(a=AL.currentCtx.audioCtx.createBuffer(2,n>>2,i)).getChannelData(0),c=a.getChannelData(1),r>>=1,l=0;l>2;++l)o[l]=30517578125e-15*HEAP16[r++>>>0],c[l]=30517578125e-15*HEAP16[r++>>>0];s.bytesPerSample=2,s.channels=2,s.length=n>>2;break;case 65552:if(n>0)for(o=(a=AL.currentCtx.audioCtx.createBuffer(1,n>>2,i)).getChannelData(0),r>>=2,l=0;l>2;++l)o[l]=HEAPF32[r++>>>0];s.bytesPerSample=4,s.channels=1,s.length=n>>2;break;case 65553:if(n>0)for(o=(a=AL.currentCtx.audioCtx.createBuffer(2,n>>3,i)).getChannelData(0),c=a.getChannelData(1),r>>=2,l=0;l>3;++l)o[l]=HEAPF32[r++>>>0],c[l]=HEAPF32[r++>>>0];s.bytesPerSample=4,s.channels=2,s.length=n>>3;break;default:return void(AL.currentCtx.err=40963)}s.frequency=i,s.audioBuf=a}catch(e){return void(AL.currentCtx.err=40963)}}}_alBuffer3i.sig="viiiii",_alBufferData.sig="viipii";var _alBufferf=(e,t,r)=>{AL.setBufferParam("alBufferf",e,t,null)};function _alBufferfv(e,t,r){if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);AL.setBufferParam("alBufferfv",e,t,null)}}_alBufferf.sig="viif",_alBufferfv.sig="viip";var _alBufferi=(e,t,r)=>{AL.setBufferParam("alBufferi",e,t,null)};function _alBufferiv(e,t,r){if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);8213===t?(AL.paramArray[0]=HEAP32[r>>>2>>>0],AL.paramArray[1]=HEAP32[r+4>>>2>>>0],AL.setBufferParam("alBufferiv",e,t,AL.paramArray)):AL.setBufferParam("alBufferiv",e,t,null)}}function _alDeleteBuffers(e,t){if(t>>>=0,AL.currentCtx){for(var r=0;r>>2>>>0])){if(!AL.buffers[n])return void(AL.currentCtx.err=40961);if(AL.buffers[n].refCount)return void(AL.currentCtx.err=40964)}for(r=0;r>>2>>>0])&&(AL.deviceRefCounts[AL.buffers[n].deviceId]--,delete AL.buffers[n],AL.freeIds.push(n))}}}_alBufferi.sig="viii",_alBufferiv.sig="viip",_alDeleteBuffers.sig="vip";var _alSourcei=(e,t,r)=>{switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:AL.setSourceParam("alSourcei",e,t,r);break;default:AL.setSourceParam("alSourcei",e,t,null)}};function _alDeleteSources(e,t){if(t>>>=0,AL.currentCtx){for(var r=0;r>>2>>>0];if(!AL.currentCtx.sources[n])return void(AL.currentCtx.err=40961)}for(r=0;r>>2>>>0],AL.setSourceState(AL.currentCtx.sources[n],4116),_alSourcei(n,4105,0),delete AL.currentCtx.sources[n],AL.freeIds.push(n)}}_alSourcei.sig="viii",_alDeleteSources.sig="vip";var _alDisable=e=>{if(AL.currentCtx){if(512!==e)return void(AL.currentCtx.err=40962);AL.currentCtx.sourceDistanceModel=!1,AL.updateContextGlobal(AL.currentCtx)}};_alDisable.sig="vi";var _alDistanceModel=e=>{AL.setGlobalParam("alDistanceModel",53248,e)};_alDistanceModel.sig="vi";var _alDopplerFactor=e=>{AL.setGlobalParam("alDopplerFactor",49152,e)};_alDopplerFactor.sig="vf";var _alDopplerVelocity=e=>{warnOnce("alDopplerVelocity() is deprecated, and only kept for compatibility with OpenAL 1.0. Use alSpeedOfSound() instead."),AL.currentCtx&&e<=0&&(AL.currentCtx.err=40963)};_alDopplerVelocity.sig="vf";var _alEnable=e=>{if(AL.currentCtx){if(512!==e)return void(AL.currentCtx.err=40962);AL.currentCtx.sourceDistanceModel=!0,AL.updateContextGlobal(AL.currentCtx)}};function _alGenBuffers(e,t){if(t>>>=0,AL.currentCtx)for(var r=0;r>>2>>>0]=n.id}}function _alGenSources(e,t){if(t>>>=0,AL.currentCtx)for(var r=0;r>>2>>>0]=i.id}}_alEnable.sig="vi",_alGenBuffers.sig="vip",_alGenSources.sig="vip";var _alGetBoolean=e=>{var t=AL.getGlobalParam("alGetBoolean",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return 0!==t?1:0;default:return AL.currentCtx.err=40962,0}};function _alGetBooleanv(e,t){t>>>=0;var r=AL.getGlobalParam("alGetBooleanv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:HEAP8[t>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetBuffer3f(e,t,r,n,i){if(r>>>=0,n>>>=0,i>>>=0,null!==AL.getBufferParam("alGetBuffer3f",e,t)){if(!r||!n||!i)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBuffer3i(e,t,r,n,i){if(r>>>=0,n>>>=0,i>>>=0,null!==AL.getBufferParam("alGetBuffer3i",e,t)){if(!r||!n||!i)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferf(e,t,r){if(r>>>=0,null!==AL.getBufferParam("alGetBufferf",e,t)){if(!r)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferfv(e,t,r){if(r>>>=0,null!==AL.getBufferParam("alGetBufferfv",e,t)){if(!r)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferi(e,t,r){r>>>=0;var n=AL.getBufferParam("alGetBufferi",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 8193:case 8194:case 8195:case 8196:HEAP32[r>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetBufferiv(e,t,r){r>>>=0;var n=AL.getBufferParam("alGetBufferiv",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 8193:case 8194:case 8195:case 8196:HEAP32[r>>>2>>>0]=n;break;case 8213:HEAP32[r>>>2>>>0]=n[0],HEAP32[r+4>>>2>>>0]=n[1];break;default:return void(AL.currentCtx.err=40962)}}}_alGetBoolean.sig="ii",_alGetBooleanv.sig="vip",_alGetBuffer3f.sig="viippp",_alGetBuffer3i.sig="viippp",_alGetBufferf.sig="viip",_alGetBufferfv.sig="viip",_alGetBufferi.sig="viip",_alGetBufferiv.sig="viip";var _alGetDouble=e=>{var t=AL.getGlobalParam("alGetDouble",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return AL.currentCtx.err=40962,0}};function _alGetDoublev(e,t){t>>>=0;var r=AL.getGlobalParam("alGetDoublev",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:HEAPF64[t>>>3>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetEnumValue(e){if(e>>>=0,!AL.currentCtx)return 0;if(!e)return AL.currentCtx.err=40963,0;switch(UTF8ToString(e)){case"AL_BITS":return 8194;case"AL_BUFFER":return 4105;case"AL_BUFFERS_PROCESSED":return 4118;case"AL_BUFFERS_QUEUED":return 4117;case"AL_BYTE_OFFSET":return 4134;case"AL_CHANNELS":return 8195;case"AL_CONE_INNER_ANGLE":return 4097;case"AL_CONE_OUTER_ANGLE":return 4098;case"AL_CONE_OUTER_GAIN":return 4130;case"AL_DIRECTION":return 4101;case"AL_DISTANCE_MODEL":return 53248;case"AL_DOPPLER_FACTOR":return 49152;case"AL_DOPPLER_VELOCITY":return 49153;case"AL_EXPONENT_DISTANCE":return 53253;case"AL_EXPONENT_DISTANCE_CLAMPED":return 53254;case"AL_EXTENSIONS":return 45060;case"AL_FORMAT_MONO16":return 4353;case"AL_FORMAT_MONO8":return 4352;case"AL_FORMAT_STEREO16":return 4355;case"AL_FORMAT_STEREO8":return 4354;case"AL_FREQUENCY":return 8193;case"AL_GAIN":return 4106;case"AL_INITIAL":return 4113;case"AL_INVALID":return-1;case"AL_ILLEGAL_ENUM":case"AL_INVALID_ENUM":return 40962;case"AL_INVALID_NAME":return 40961;case"AL_ILLEGAL_COMMAND":case"AL_INVALID_OPERATION":return 40964;case"AL_INVALID_VALUE":return 40963;case"AL_INVERSE_DISTANCE":return 53249;case"AL_INVERSE_DISTANCE_CLAMPED":return 53250;case"AL_LINEAR_DISTANCE":return 53251;case"AL_LINEAR_DISTANCE_CLAMPED":return 53252;case"AL_LOOPING":return 4103;case"AL_MAX_DISTANCE":return 4131;case"AL_MAX_GAIN":return 4110;case"AL_MIN_GAIN":return 4109;case"AL_NONE":case"AL_NO_ERROR":return 0;case"AL_ORIENTATION":return 4111;case"AL_OUT_OF_MEMORY":return 40965;case"AL_PAUSED":return 4115;case"AL_PENDING":return 8209;case"AL_PITCH":return 4099;case"AL_PLAYING":return 4114;case"AL_POSITION":return 4100;case"AL_PROCESSED":return 8210;case"AL_REFERENCE_DISTANCE":return 4128;case"AL_RENDERER":return 45059;case"AL_ROLLOFF_FACTOR":return 4129;case"AL_SAMPLE_OFFSET":return 4133;case"AL_SEC_OFFSET":return 4132;case"AL_SIZE":return 8196;case"AL_SOURCE_RELATIVE":return 514;case"AL_SOURCE_STATE":return 4112;case"AL_SOURCE_TYPE":return 4135;case"AL_SPEED_OF_SOUND":return 49155;case"AL_STATIC":return 4136;case"AL_STOPPED":return 4116;case"AL_STREAMING":return 4137;case"AL_UNDETERMINED":return 4144;case"AL_UNUSED":return 8208;case"AL_VELOCITY":return 4102;case"AL_VENDOR":return 45057;case"AL_VERSION":return 45058;case"AL_AUTO_SOFT":return 2;case"AL_SOURCE_DISTANCE_MODEL":return 512;case"AL_SOURCE_SPATIALIZE_SOFT":return 4628;case"AL_LOOP_POINTS_SOFT":return 8213;case"AL_BYTE_LENGTH_SOFT":return 8201;case"AL_SAMPLE_LENGTH_SOFT":return 8202;case"AL_SEC_LENGTH_SOFT":return 8203;case"AL_FORMAT_MONO_FLOAT32":return 65552;case"AL_FORMAT_STEREO_FLOAT32":return 65553;default:return AL.currentCtx.err=40963,0}}_alGetDouble.sig="di",_alGetDoublev.sig="vip",_alGetEnumValue.sig="ip";var _alGetError=()=>{if(!AL.currentCtx)return 40964;var e=AL.currentCtx.err;return AL.currentCtx.err=0,e};_alGetError.sig="i";var _alGetFloat=e=>{var t=AL.getGlobalParam("alGetFloat",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return 0}};function _alGetFloatv(e,t){t>>>=0;var r=AL.getGlobalParam("alGetFloatv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:HEAPF32[t>>>2>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}_alGetFloat.sig="fi",_alGetFloatv.sig="vip";var _alGetInteger=e=>{var t=AL.getGlobalParam("alGetInteger",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return AL.currentCtx.err=40962,0}};function _alGetIntegerv(e,t){t>>>=0;var r=AL.getGlobalParam("alGetIntegerv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:HEAP32[t>>>2>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetListener3f(e,t,r,n){t>>>=0,r>>>=0,n>>>=0;var i=AL.getListenerParam("alGetListener3f",e);if(null!==i){if(!t||!r||!n)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:HEAPF32[t>>>2>>>0]=i[0],HEAPF32[r>>>2>>>0]=i[1],HEAPF32[n>>>2>>>0]=i[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListener3i(e,t,r,n){t>>>=0,r>>>=0,n>>>=0;var i=AL.getListenerParam("alGetListener3i",e);if(null!==i){if(!t||!r||!n)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:HEAP32[t>>>2>>>0]=i[0],HEAP32[r>>>2>>>0]=i[1],HEAP32[n>>>2>>>0]=i[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListenerf(e,t){t>>>=0;var r=AL.getListenerParam("alGetListenerf",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);if(4106!==e)return void(AL.currentCtx.err=40962);HEAPF32[t>>>2>>>0]=r}}function _alGetListenerfv(e,t){t>>>=0;var r=AL.getListenerParam("alGetListenerfv",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:HEAPF32[t>>>2>>>0]=r[0],HEAPF32[t+4>>>2>>>0]=r[1],HEAPF32[t+8>>>2>>>0]=r[2];break;case 4111:HEAPF32[t>>>2>>>0]=r[0],HEAPF32[t+4>>>2>>>0]=r[1],HEAPF32[t+8>>>2>>>0]=r[2],HEAPF32[t+12>>>2>>>0]=r[3],HEAPF32[t+16>>>2>>>0]=r[4],HEAPF32[t+20>>>2>>>0]=r[5];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListeneri(e,t){if(t>>>=0,null!==AL.getListenerParam("alGetListeneri",e)){if(!t)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetListeneriv(e,t){t>>>=0;var r=AL.getListenerParam("alGetListeneriv",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:HEAP32[t>>>2>>>0]=r[0],HEAP32[t+4>>>2>>>0]=r[1],HEAP32[t+8>>>2>>>0]=r[2];break;case 4111:HEAP32[t>>>2>>>0]=r[0],HEAP32[t+4>>>2>>>0]=r[1],HEAP32[t+8>>>2>>>0]=r[2],HEAP32[t+12>>>2>>>0]=r[3],HEAP32[t+16>>>2>>>0]=r[4],HEAP32[t+20>>>2>>>0]=r[5];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSource3f(e,t,r,n,i){r>>>=0,n>>>=0,i>>>=0;var s=AL.getSourceParam("alGetSource3f",e,t);if(null!==s){if(!r||!n||!i)return void(AL.currentCtx.err=40963);switch(t){case 4100:case 4101:case 4102:HEAPF32[r>>>2>>>0]=s[0],HEAPF32[n>>>2>>>0]=s[1],HEAPF32[i>>>2>>>0]=s[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSource3i(e,t,r,n,i){r>>>=0,n>>>=0,i>>>=0;var s=AL.getSourceParam("alGetSource3i",e,t);if(null!==s){if(!r||!n||!i)return void(AL.currentCtx.err=40963);switch(t){case 4100:case 4101:case 4102:HEAP32[r>>>2>>>0]=s[0],HEAP32[n>>>2>>>0]=s[1],HEAP32[i>>>2>>>0]=s[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcef(e,t,r){r>>>=0;var n=AL.getSourceParam("alGetSourcef",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:HEAPF32[r>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcefv(e,t,r){r>>>=0;var n=AL.getSourceParam("alGetSourcefv",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:HEAPF32[r>>>2>>>0]=n[0];break;case 4100:case 4101:case 4102:HEAPF32[r>>>2>>>0]=n[0],HEAPF32[r+4>>>2>>>0]=n[1],HEAPF32[r+8>>>2>>>0]=n[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcei(e,t,r){r>>>=0;var n=AL.getSourceParam("alGetSourcei",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:HEAP32[r>>>2>>>0]=n;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourceiv(e,t,r){r>>>=0;var n=AL.getSourceParam("alGetSourceiv",e,t);if(null!==n){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:HEAP32[r>>>2>>>0]=n;break;case 4100:case 4101:case 4102:HEAP32[r>>>2>>>0]=n[0],HEAP32[r+4>>>2>>>0]=n[1],HEAP32[r+8>>>2>>>0]=n[2];break;default:return void(AL.currentCtx.err=40962)}}}_alGetInteger.sig="ii",_alGetIntegerv.sig="vip",_alGetListener3f.sig="vippp",_alGetListener3i.sig="vippp",_alGetListenerf.sig="vip",_alGetListenerfv.sig="vip",_alGetListeneri.sig="vip",_alGetListeneriv.sig="vip",_alGetSource3f.sig="viippp",_alGetSource3i.sig="viippp",_alGetSourcef.sig="viip",_alGetSourcefv.sig="viip",_alGetSourcei.sig="viip",_alGetSourceiv.sig="viip";var stringToNewUTF8=e=>{var t=lengthBytesUTF8(e)+1,r=_malloc(t);return r&&stringToUTF8(e,r,t),r};function _alGetString(e){if(AL.stringCache[e])return AL.stringCache[e];var t;switch(e){case 0:t="No Error";break;case 40961:t="Invalid Name";break;case 40962:t="Invalid Enum";break;case 40963:t="Invalid Value";break;case 40964:t="Invalid Operation";break;case 40965:t="Out of Memory";break;case 45057:t="Emscripten";break;case 45058:t="1.1";break;case 45059:t="WebAudio";break;case 45060:t=Object.keys(AL.AL_EXTENSIONS).join(" ");break;default:return AL.currentCtx&&(AL.currentCtx.err=40962),0}return t=stringToNewUTF8(t),AL.stringCache[e]=t,t}_alGetString.sig="pi";var _alIsBuffer=e=>!(!AL.currentCtx||e>AL.buffers.length||!AL.buffers[e]);_alIsBuffer.sig="ii";var _alIsEnabled=e=>AL.currentCtx?512===e?AL.currentCtx.sourceDistanceModel?0:1:(AL.currentCtx.err=40962,0):0;function _alIsExtensionPresent(e){var t=UTF8ToString(e>>>=0);return AL.AL_EXTENSIONS[t]?1:0}_alIsEnabled.sig="ii",_alIsExtensionPresent.sig="ip";var _alIsSource=e=>!(!AL.currentCtx||!AL.currentCtx.sources[e]);_alIsSource.sig="ii";var _alListener3f=(e,t,r,n)=>{switch(e){case 4100:case 4102:AL.paramArray[0]=t,AL.paramArray[1]=r,AL.paramArray[2]=n,AL.setListenerParam("alListener3f",e,AL.paramArray);break;default:AL.setListenerParam("alListener3f",e,null)}};_alListener3f.sig="vifff";var _alListener3i=(e,t,r,n)=>{switch(e){case 4100:case 4102:AL.paramArray[0]=t,AL.paramArray[1]=r,AL.paramArray[2]=n,AL.setListenerParam("alListener3i",e,AL.paramArray);break;default:AL.setListenerParam("alListener3i",e,null)}};_alListener3i.sig="viiii";var _alListenerf=(e,t)=>{4106===e?AL.setListenerParam("alListenerf",e,t):AL.setListenerParam("alListenerf",e,null)};function _alListenerfv(e,t){if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:AL.paramArray[0]=HEAPF32[t>>>2>>>0],AL.paramArray[1]=HEAPF32[t+4>>>2>>>0],AL.paramArray[2]=HEAPF32[t+8>>>2>>>0],AL.setListenerParam("alListenerfv",e,AL.paramArray);break;case 4111:AL.paramArray[0]=HEAPF32[t>>>2>>>0],AL.paramArray[1]=HEAPF32[t+4>>>2>>>0],AL.paramArray[2]=HEAPF32[t+8>>>2>>>0],AL.paramArray[3]=HEAPF32[t+12>>>2>>>0],AL.paramArray[4]=HEAPF32[t+16>>>2>>>0],AL.paramArray[5]=HEAPF32[t+20>>>2>>>0],AL.setListenerParam("alListenerfv",e,AL.paramArray);break;default:AL.setListenerParam("alListenerfv",e,null)}}}_alListenerf.sig="vif",_alListenerfv.sig="vip";var _alListeneri=(e,t)=>{AL.setListenerParam("alListeneri",e,null)};function _alListeneriv(e,t){if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:AL.paramArray[0]=HEAP32[t>>>2>>>0],AL.paramArray[1]=HEAP32[t+4>>>2>>>0],AL.paramArray[2]=HEAP32[t+8>>>2>>>0],AL.setListenerParam("alListeneriv",e,AL.paramArray);break;case 4111:AL.paramArray[0]=HEAP32[t>>>2>>>0],AL.paramArray[1]=HEAP32[t+4>>>2>>>0],AL.paramArray[2]=HEAP32[t+8>>>2>>>0],AL.paramArray[3]=HEAP32[t+12>>>2>>>0],AL.paramArray[4]=HEAP32[t+16>>>2>>>0],AL.paramArray[5]=HEAP32[t+20>>>2>>>0],AL.setListenerParam("alListeneriv",e,AL.paramArray);break;default:AL.setListenerParam("alListeneriv",e,null)}}}_alListeneri.sig="vii",_alListeneriv.sig="vip";var _alSource3f=(e,t,r,n,i)=>{switch(t){case 4100:case 4101:case 4102:AL.paramArray[0]=r,AL.paramArray[1]=n,AL.paramArray[2]=i,AL.setSourceParam("alSource3f",e,t,AL.paramArray);break;default:AL.setSourceParam("alSource3f",e,t,null)}};_alSource3f.sig="viifff";var _alSource3i=(e,t,r,n,i)=>{switch(t){case 4100:case 4101:case 4102:AL.paramArray[0]=r,AL.paramArray[1]=n,AL.paramArray[2]=i,AL.setSourceParam("alSource3i",e,t,AL.paramArray);break;default:AL.setSourceParam("alSource3i",e,t,null)}};_alSource3i.sig="viiiii";var _alSourcePause=e=>{if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4115)}};function _alSourcePausev(e,t){if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4115)}}}_alSourcePause.sig="vi",_alSourcePausev.sig="vip";var _alSourcePlay=e=>{if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4114)}};function _alSourcePlayv(e,t){if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4114)}}}function _alSourceQueueBuffers(e,t,r){if(r>>>=0,AL.currentCtx){var n=AL.currentCtx.sources[e];if(!n)return void(AL.currentCtx.err=40961);if(4136===n.type)return void(AL.currentCtx.err=40964);if(0!==t){for(var i=AL.buffers[0],s=0;s>>2>>>0];if(!(o=AL.buffers[a]))return void(AL.currentCtx.err=40961);0!==i.id&&(o.frequency!==i.frequency||o.bytesPerSample!==i.bytesPerSample||o.channels!==i.channels)&&(AL.currentCtx.err=40964)}for(1===n.bufQueue.length&&0===n.bufQueue[0].id&&(n.bufQueue.length=0),n.type=4137,s=0;s>>2>>>0],(o=AL.buffers[a]).refCount++,n.bufQueue.push(o)}n.looping&&AL.cancelPendingSourceAudio(n),AL.initSourcePanner(n),AL.scheduleSourceAudio(n)}}}_alSourcePlay.sig="vi",_alSourcePlayv.sig="vip",_alSourceQueueBuffers.sig="viip";var _alSourceRewind=e=>{if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4116),AL.setSourceState(t,4113)}};function _alSourceRewindv(e,t){if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4113)}}}_alSourceRewind.sig="vi",_alSourceRewindv.sig="vip";var _alSourceStop=e=>{if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4116)}};function _alSourceStopv(e,t){if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[n],4116)}}}function _alSourceUnqueueBuffers(e,t,r){if(r>>>=0,AL.currentCtx){var n=AL.currentCtx.sources[e];if(!n)return void(AL.currentCtx.err=40961);if(t>(1===n.bufQueue.length&&0===n.bufQueue[0].id?0:n.bufsProcessed))return void(AL.currentCtx.err=40963);if(0!==t){for(var i=0;i>>2>>>0]=s.id,n.bufsProcessed--}0===n.bufQueue.length&&n.bufQueue.push(AL.buffers[0]),AL.initSourcePanner(n),AL.scheduleSourceAudio(n)}}}_alSourceStop.sig="vi",_alSourceStopv.sig="vip",_alSourceUnqueueBuffers.sig="viip";var _alSourcef=(e,t,r)=>{switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:AL.setSourceParam("alSourcef",e,t,r);break;default:AL.setSourceParam("alSourcef",e,t,null)}};function _alSourcefv(e,t,r){if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:var n=HEAPF32[r>>>2>>>0];AL.setSourceParam("alSourcefv",e,t,n);break;case 4100:case 4101:case 4102:AL.paramArray[0]=HEAPF32[r>>>2>>>0],AL.paramArray[1]=HEAPF32[r+4>>>2>>>0],AL.paramArray[2]=HEAPF32[r+8>>>2>>>0],AL.setSourceParam("alSourcefv",e,t,AL.paramArray);break;default:AL.setSourceParam("alSourcefv",e,t,null)}}}function _alSourceiv(e,t,r){if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:var n=HEAP32[r>>>2>>>0];AL.setSourceParam("alSourceiv",e,t,n);break;case 4100:case 4101:case 4102:AL.paramArray[0]=HEAP32[r>>>2>>>0],AL.paramArray[1]=HEAP32[r+4>>>2>>>0],AL.paramArray[2]=HEAP32[r+8>>>2>>>0],AL.setSourceParam("alSourceiv",e,t,AL.paramArray);break;default:AL.setSourceParam("alSourceiv",e,t,null)}}}_alSourcef.sig="viif",_alSourcefv.sig="viip",_alSourceiv.sig="viip";var _alSpeedOfSound=e=>{AL.setGlobalParam("alSpeedOfSound",49155,e)};_alSpeedOfSound.sig="vf";var _alcCaptureCloseDevice=function(e){var t,r,n,i;e>>>=0;var s=AL.requireValidCaptureDevice(e,"alcCaptureCloseDevice");return!!s&&(delete AL.captures[e],AL.freeIds.push(e),null==(t=s.mediaStreamSourceNode)||t.disconnect(),null==(r=s.mergerNode)||r.disconnect(),null==(n=s.splitterNode)||n.disconnect(),null==(i=s.scriptProcessorNode)||i.disconnect(),s.mediaStream&&s.mediaStream.getTracks().forEach((e=>e.stop())),delete s.buffers,s.capturedFrameCount=0,s.isCapturing=!1,!0)};_alcCaptureCloseDevice.sig="ip";var listenOnce=(e,t,r)=>{e.addEventListener(t,r,{once:!0})},autoResumeAudioContext=(e,t)=>{t||(t=[document,document.getElementById("canvas")]),["keydown","mousedown","touchstart"].forEach((r=>{t.forEach((t=>{t&&listenOnce(t,r,(()=>{"suspended"===e.state&&e.resume()}))}))}))};function _alcCaptureOpenDevice(e,t,r,n){var i;e>>>=0;var s=AL.CAPTURE_DEVICE_NAME;if(0!==e&&(s=UTF8ToString(e))!==AL.CAPTURE_DEVICE_NAME)return AL.alcErr=40965,0;if(n<0)return AL.alcErr=40964,0;if(navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,!(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return AL.alcErr=40965,0;var a,o,l,c=window.AudioContext||window.webkitAudioContext;if(!AL.sharedCaptureAudioCtx)try{AL.sharedCaptureAudioCtx=new c}catch(e){return AL.alcErr=40965,0}switch(autoResumeAudioContext(AL.sharedCaptureAudioCtx),r){case 65552:case 4353:case 4352:a=1;break;case 65553:case 4355:case 4354:a=2;break;default:return AL.alcErr=40964,0}switch(r){case 65552:case 65553:o="f32",l=function(e){return new Float32Array(e)};break;case 4353:case 4355:o="i16",l=function(e){return new Int16Array(e)};break;case 4352:case 4354:o="u8",l=function(e){return new Uint8Array(e)}}var u=[];try{for(var _=0;_{d.mediaStreamError=e},f=e=>{d.mediaStreamSourceNode=d.audioCtx.createMediaStreamSource(e),d.mediaStream=e;var t=1;switch(d.mediaStreamSourceNode.channelCountMode){case"max":t=a;break;case"clamped-max":t=Math.min(a,d.mediaStreamSourceNode.channelCount);break;case"explicit":t=d.mediaStreamSourceNode.channelCount}d.inputChannelCount=t,d.scriptProcessorNode=d.audioCtx.createScriptProcessor(512,t,a),t>a?(d.mergerNode=d.audioCtx.createChannelMerger(t),d.mediaStreamSourceNode.connect(d.mergerNode),d.mergerNode.connect(d.scriptProcessorNode)):t{if(d.isCapturing){var t=d,n=e.inputBuffer;switch(r){case 65552:for(var i=n.getChannelData(0),s=0;s>>=0,t>>>=0;var n=AL.requireValidCaptureDevice(e,"alcCaptureSamples");if(n){var i=n.requestedSampleRate,s=n.audioCtx.sampleRate/i;if(r<0||r>n.capturedFrameCount/s)AL.alcErr=40964;else{var a;switch(n.requestedSampleType){case"f32":a=function(e,r){HEAPF32[t+4*e>>>2>>>0]=r};break;case"i16":a=function(e,r){HEAP16[t+2*e>>>1>>>0]=r};break;case"u8":a=function(e,r){HEAP8[t+e>>>0]=r};break;default:return}if(Math.floor(s)==s)for(var o=0,l=0;l>>=0;var t=AL.requireValidCaptureDevice(e,"alcCaptureStart");t&&(t.isCapturing||(t.isCapturing=!0,t.capturedFrameCount=0,t.capturePlayhead=0))}function _alcCaptureStop(e){e>>>=0;var t=AL.requireValidCaptureDevice(e,"alcCaptureStop");t&&(t.isCapturing=!1)}function _alcCloseDevice(e){return!((e>>>=0)in AL.deviceRefCounts)||AL.deviceRefCounts[e]>0?0:(delete AL.deviceRefCounts[e],AL.freeIds.push(e),1)}function _alcCreateContext(e,t){if(t>>>=0,!((e>>>=0)in AL.deviceRefCounts))return AL.alcErr=40961,0;var r=null,n=[],i=null;if(t>>=2)for(var s=0,a=0;s=HEAP32[t++>>>0],n.push(s),0!==s;)switch(a=HEAP32[t++>>>0],n.push(a),s){case 4103:r||(r={}),r.sampleRate=a;break;case 4112:case 4113:break;case 6546:switch(a){case 0:i=!1;break;case 1:i=!0;break;case 2:break;default:return AL.alcErr=40964,0}break;case 6550:if(0!==a)return AL.alcErr=40964,0;break;default:return AL.alcErr=40964,0}var o=window.AudioContext||window.webkitAudioContext,l=null;try{l=r?new o(r):new o}catch(e){return"NotSupportedError"===e.name?AL.alcErr=40964:AL.alcErr=40961,0}autoResumeAudioContext(l),typeof l.createGain>"u"&&(l.createGain=l.createGainNode);var c=l.createGain();c.connect(l.destination);var u={deviceId:e,id:AL.newId(),attrs:n,audioCtx:l,listener:{position:[0,0,0],velocity:[0,0,0],direction:[0,0,0],up:[0,0,0]},sources:[],interval:setInterval((()=>AL.scheduleContextAudio(u)),AL.QUEUE_INTERVAL),gain:c,distanceModel:53250,speedOfSound:343.3,dopplerFactor:1,sourceDistanceModel:!1,hrtf:i||!1,_err:0,get err(){return this._err},set err(e){(0===this._err||0===e)&&(this._err=e)}};if(AL.deviceRefCounts[e]++,AL.contexts[u.id]=u,null!==i)for(var _ in AL.contexts){var d=AL.contexts[_];d.deviceId===e&&(d.hrtf=i,AL.updateContextGlobal(d))}return u.id}function _alcDestroyContext(e){e>>>=0;var t=AL.contexts[e];AL.currentCtx!==t?(AL.contexts[e].interval&&clearInterval(AL.contexts[e].interval),AL.deviceRefCounts[t.deviceId]--,delete AL.contexts[e],AL.freeIds.push(e)):AL.alcErr=40962}function _alcGetContextsDevice(e){return(e>>>=0)in AL.contexts?AL.contexts[e].deviceId:0}function _alcGetCurrentContext(){return null!==AL.currentCtx?AL.currentCtx.id:0}function _alcGetEnumValue(e,t){if(t>>>=0,0!=(e>>>=0)&&!(e in AL.deviceRefCounts))return 0;if(!t)return AL.alcErr=40964,0;switch(UTF8ToString(t)){case"ALC_NO_ERROR":case"ALC_HRTF_DISABLED_SOFT":return 0;case"ALC_INVALID_DEVICE":return 40961;case"ALC_INVALID_CONTEXT":return 40962;case"ALC_INVALID_ENUM":return 40963;case"ALC_INVALID_VALUE":return 40964;case"ALC_OUT_OF_MEMORY":return 40965;case"ALC_MAJOR_VERSION":return 4096;case"ALC_MINOR_VERSION":return 4097;case"ALC_ATTRIBUTES_SIZE":return 4098;case"ALC_ALL_ATTRIBUTES":return 4099;case"ALC_DEFAULT_DEVICE_SPECIFIER":return 4100;case"ALC_DEVICE_SPECIFIER":return 4101;case"ALC_EXTENSIONS":return 4102;case"ALC_FREQUENCY":return 4103;case"ALC_REFRESH":return 4104;case"ALC_SYNC":return 4105;case"ALC_MONO_SOURCES":return 4112;case"ALC_STEREO_SOURCES":return 4113;case"ALC_CAPTURE_DEVICE_SPECIFIER":return 784;case"ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER":return 785;case"ALC_CAPTURE_SAMPLES":return 786;case"ALC_HRTF_SOFT":return 6546;case"ALC_HRTF_ID_SOFT":return 6550;case"ALC_DONT_CARE_SOFT":case"ALC_HRTF_DENIED_SOFT":return 2;case"ALC_HRTF_STATUS_SOFT":return 6547;case"ALC_NUM_HRTF_SPECIFIERS_SOFT":return 6548;case"ALC_HRTF_SPECIFIER_SOFT":return 6549;case"ALC_HRTF_ENABLED_SOFT":return 1;case"ALC_HRTF_REQUIRED_SOFT":return 3;case"ALC_HRTF_HEADPHONES_DETECTED_SOFT":return 4;case"ALC_HRTF_UNSUPPORTED_FORMAT_SOFT":return 5;default:return AL.alcErr=40964,0}}function _alcGetError(e){var t=AL.alcErr;return AL.alcErr=0,t}function _alcGetIntegerv(e,t,r,n){if(e>>>=0,n>>>=0,0!==r&&n)switch(t){case 4096:case 4097:HEAP32[n>>>2>>>0]=1;break;case 4098:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);HEAP32[n>>>2>>>0]=AL.currentCtx.attrs.length;break;case 4099:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);for(var i=0;i>>2>>>0]=AL.currentCtx.attrs[i];break;case 4103:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);HEAP32[n>>>2>>>0]=AL.currentCtx.audioCtx.sampleRate;break;case 4112:case 4113:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);HEAP32[n>>>2>>>0]=2147483647;break;case 6546:case 6547:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);var s=0;for(var a in AL.contexts){var o=AL.contexts[a];o.deviceId===e&&(s=o.hrtf?1:0)}HEAP32[n>>>2>>>0]=s;break;case 6548:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);HEAP32[n>>>2>>>0]=1;break;case 131075:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);HEAP32[n>>>2>>>0]=1;case 786:var l=AL.requireValidCaptureDevice(e,"alcGetIntegerv");if(!l)return;var c=l.capturedFrameCount,u=l.requestedSampleRate,_=l.audioCtx.sampleRate,d=Math.floor(c*(u/_));HEAP32[n>>>2>>>0]=d;break;default:return void(AL.alcErr=40963)}}function _alcGetString(e,t){if(e>>>=0,AL.alcStringCache[t])return AL.alcStringCache[t];var r;switch(t){case 0:r="No Error";break;case 40961:r="Invalid Device";break;case 40962:r="Invalid Context";break;case 40963:r="Invalid Enum";break;case 40964:r="Invalid Value";break;case 40965:r="Out of Memory";break;case 4100:if(!(typeof AudioContext<"u"||typeof webkitAudioContext<"u"))return 0;r=AL.DEVICE_NAME;break;case 4101:r=typeof AudioContext<"u"||typeof webkitAudioContext<"u"?AL.DEVICE_NAME+"\0":"\0";break;case 785:r=AL.CAPTURE_DEVICE_NAME;break;case 784:if(0===e)r=AL.CAPTURE_DEVICE_NAME+"\0";else{var n=AL.requireValidCaptureDevice(e,"alcGetString");if(!n)return 0;r=n.deviceName}break;case 4102:if(!e)return AL.alcErr=40961,0;r=Object.keys(AL.ALC_EXTENSIONS).join(" ");break;default:return AL.alcErr=40963,0}return r=stringToNewUTF8(r),AL.alcStringCache[t]=r,r}function _alcIsExtensionPresent(e,t){var r=UTF8ToString(t>>>=0);return AL.ALC_EXTENSIONS[r]?1:0}function _alcMakeContextCurrent(e){return e>>>=0,AL.currentCtx=0===e?null:AL.contexts[e],1}function _alcOpenDevice(e){if((e>>>=0)&&UTF8ToString(e)!==AL.DEVICE_NAME)return 0;if(typeof AudioContext<"u"||typeof webkitAudioContext<"u"){var t=AL.newId();return AL.deviceRefCounts[t]=0,t}return 0}function _alcProcessContext(e){}function _alcSuspendContext(e){}function _duckdb_web_fs_directory_create(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.createDirectory(Module,e,t)}function _duckdb_web_fs_directory_exists(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkDirectory(Module,e,t)}function _duckdb_web_fs_directory_list_files(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.listDirectoryEntries(Module,e,t)}function _duckdb_web_fs_directory_remove(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.removeDirectory(Module,e,t)}function _duckdb_web_fs_file_close(e){return globalThis.DUCKDB_RUNTIME.closeFile(Module,e)}function _duckdb_web_fs_file_exists(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkFile(Module,e,t)}function _duckdb_web_fs_file_get_last_modified_time(e){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(Module,e)}function _duckdb_web_fs_file_move(e,t,r,n){return e>>>=0,r>>>=0,globalThis.DUCKDB_RUNTIME.moveFile(Module,e,t,r,n)}function _duckdb_web_fs_file_open(e,t){return globalThis.DUCKDB_RUNTIME.openFile(Module,e,t)}function _duckdb_web_fs_file_read(e,t,r,n){return t>>>=0,globalThis.DUCKDB_RUNTIME.readFile(Module,e,t,r,n)}function _duckdb_web_fs_file_truncate(e,t){return globalThis.DUCKDB_RUNTIME.truncateFile(Module,e,t)}function _duckdb_web_fs_file_write(e,t,r,n){return t>>>=0,globalThis.DUCKDB_RUNTIME.writeFile(Module,e,t,r,n)}function _duckdb_web_fs_get_default_data_protocol(e){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(e)}function _duckdb_web_fs_glob(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.glob(Module,e,t)}function _duckdb_web_test_platform_feature(e){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(Module,e)}function _duckdb_web_udf_scalar_call(e,t,r,n,i,s){return e>>>=0,r>>>=0,i>>>=0,globalThis.DUCKDB_RUNTIME.callScalarUDF(Module,e,t,r,n,i,s)}_alcCaptureOpenDevice.sig="ppiii",_alcCaptureSamples.sig="vppi",_alcCaptureStart.sig="vp",_alcCaptureStop.sig="vp",_alcCloseDevice.sig="ip",_alcCreateContext.sig="ppp",_alcDestroyContext.sig="vp",_alcGetContextsDevice.sig="pp",_alcGetCurrentContext.sig="p",_alcGetEnumValue.sig="ipp",_alcGetError.sig="ip",_alcGetIntegerv.sig="vpiip",_alcGetString.sig="ppi",_alcIsExtensionPresent.sig="ipp",_alcMakeContextCurrent.sig="ip",_alcOpenDevice.sig="pp",_alcProcessContext.sig="vp",_alcSuspendContext.sig="vp",_duckdb_web_fs_directory_create.sig="vpi",_duckdb_web_fs_directory_exists.sig="ipi",_duckdb_web_fs_directory_list_files.sig="ipi",_duckdb_web_fs_directory_remove.sig="vpi",_duckdb_web_fs_file_close.sig="vi",_duckdb_web_fs_file_exists.sig="ipi",_duckdb_web_fs_file_get_last_modified_time.sig="ii",_duckdb_web_fs_file_move.sig="vpipi",_duckdb_web_fs_file_open.sig="pii",_duckdb_web_fs_file_read.sig="iipid",_duckdb_web_fs_file_truncate.sig="vid",_duckdb_web_fs_file_write.sig="iipid",_duckdb_web_fs_get_default_data_protocol.sig="i",_duckdb_web_fs_glob.sig="vpi",_duckdb_web_test_platform_feature.sig="ii",_duckdb_web_udf_scalar_call.sig="vpipipi";var _emscripten_alcDevicePauseSOFT=e=>{if(e in AL.deviceRefCounts){if(!AL.paused)for(var t in AL.paused=!0,AL.contexts){var r=AL.contexts[t];r.deviceId===e&&(r.audioCtx.suspend(),clearInterval(r.interval),r.interval=null)}}else AL.alcErr=40961};_emscripten_alcDevicePauseSOFT.sig="vi";var _emscripten_alcDeviceResumeSOFT=e=>{if(e in AL.deviceRefCounts){if(AL.paused)for(var t in AL.paused=!1,AL.contexts){var r=AL.contexts[t];r.deviceId===e&&(r.interval=setInterval((()=>AL.scheduleContextAudio(r)),AL.QUEUE_INTERVAL),r.audioCtx.resume())}}else AL.alcErr=40961};_emscripten_alcDeviceResumeSOFT.sig="vi";var _emscripten_alcGetStringiSOFT=(e,t,r)=>{return e in AL.deviceRefCounts?AL.alcStringCache[t]?AL.alcStringCache[t]:6549!==t?0!==r?(AL.alcErr=40963,0):_alcGetString(e,t):0!==r?(AL.alcErr=40964,0):(n=stringToNewUTF8(n="Web Audio HRTF"),AL.alcStringCache[t]=n,n):(AL.alcErr=40961,0);var n};_emscripten_alcGetStringiSOFT.sig="iiii";var _emscripten_alcResetDeviceSOFT=(e,t)=>{if(!(e in AL.deviceRefCounts))return AL.alcErr=40961,0;var r=null;if(t>>=2)for(var n=0,i=0;0!==(n=HEAP32[t++>>>0]);)6546===(i=HEAP32[t++>>>0],n)&&(1===i?r=!0:0===i&&(r=!1));if(null!==r)for(var s in AL.contexts){var a=AL.contexts[s];a.deviceId===e&&(a.hrtf=r,AL.updateContextGlobal(a))}return 1};_emscripten_alcResetDeviceSOFT.sig="iii";var readEmAsmArgsArray=[],readEmAsmArgs=(e,t)=>{readEmAsmArgsArray.length=0;for(var r;r=HEAPU8[e++>>>0];){var n=105!=r;t+=(n&=112!=r)&&t%8?4:0,readEmAsmArgsArray.push(112==r?HEAPU32[t>>>2>>>0]:105==r?HEAP32[t>>>2>>>0]:HEAPF64[t>>>3>>>0]),t+=n?8:4}return readEmAsmArgsArray},runEmAsmFunction=(e,t,r)=>{var n=readEmAsmArgs(t,r);return ASM_CONSTS[e](...n)};function _emscripten_asm_const_int(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}function _emscripten_asm_const_ptr(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}function _emscripten_console_error(e){e>>>=0,console.error(UTF8ToString(e))}function _emscripten_console_log(e){e>>>=0,console.log(UTF8ToString(e))}function _emscripten_console_trace(e){e>>>=0,console.trace(UTF8ToString(e))}function _emscripten_console_warn(e){e>>>=0,console.warn(UTF8ToString(e))}_emscripten_asm_const_int.sig="ippp",_emscripten_asm_const_ptr.sig="pppp",_emscripten_console_error.sig="vp",_emscripten_console_log.sig="vp",_emscripten_console_trace.sig="vp",_emscripten_console_warn.sig="vp";var _emscripten_date_now=()=>Date.now();function _emscripten_err(e){return err(UTF8ToString(e>>>=0))}_emscripten_date_now.sig="d",_emscripten_err.sig="vp";var getHeapMax=()=>4294901760;function _emscripten_get_heap_max(){return getHeapMax()}_emscripten_get_heap_max.sig="p";var _emscripten_get_now_res=()=>ENVIRONMENT_IS_NODE?1:1e3;_emscripten_get_now_res.sig="d";var GLctx,webgl_enable_ANGLE_instanced_arrays=e=>{var t=e.getExtension("ANGLE_instanced_arrays");if(t)return e.vertexAttribDivisor=(e,r)=>t.vertexAttribDivisorANGLE(e,r),e.drawArraysInstanced=(e,r,n,i)=>t.drawArraysInstancedANGLE(e,r,n,i),e.drawElementsInstanced=(e,r,n,i,s)=>t.drawElementsInstancedANGLE(e,r,n,i,s),1},webgl_enable_OES_vertex_array_object=e=>{var t=e.getExtension("OES_vertex_array_object");if(t)return e.createVertexArray=()=>t.createVertexArrayOES(),e.deleteVertexArray=e=>t.deleteVertexArrayOES(e),e.bindVertexArray=e=>t.bindVertexArrayOES(e),e.isVertexArray=e=>t.isVertexArrayOES(e),1},webgl_enable_WEBGL_draw_buffers=e=>{var t=e.getExtension("WEBGL_draw_buffers");if(t)return e.drawBuffers=(e,r)=>t.drawBuffersWEBGL(e,r),1},webgl_enable_EXT_polygon_offset_clamp=e=>!!(e.extPolygonOffsetClamp=e.getExtension("EXT_polygon_offset_clamp")),webgl_enable_EXT_clip_control=e=>!!(e.extClipControl=e.getExtension("EXT_clip_control")),webgl_enable_WEBGL_polygon_mode=e=>!!(e.webglPolygonMode=e.getExtension("WEBGL_polygon_mode")),webgl_enable_WEBGL_multi_draw=e=>!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw")),getEmscriptenSupportedExtensions=e=>{var t=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_disjoint_timer_query","EXT_frag_depth","EXT_shader_texture_lod","EXT_sRGB","OES_element_index_uint","OES_fbo_render_mipmap","OES_standard_derivatives","OES_texture_float","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_depth_texture","WEBGL_draw_buffers","EXT_clip_control","EXT_color_buffer_half_float","EXT_depth_clamp","EXT_float_blend","EXT_polygon_offset_clamp","EXT_texture_compression_bptc","EXT_texture_compression_rgtc","EXT_texture_filter_anisotropic","KHR_parallel_shader_compile","OES_texture_float_linear","WEBGL_blend_func_extended","WEBGL_compressed_texture_astc","WEBGL_compressed_texture_etc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_debug_renderer_info","WEBGL_debug_shaders","WEBGL_lose_context","WEBGL_multi_draw","WEBGL_polygon_mode"];return(e.getSupportedExtensions()||[]).filter((e=>t.includes(e)))},GL={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],stringCache:{},unpackAlignment:4,unpackRowLength:0,recordError:e=>{GL.lastError||(GL.lastError=e)},getNewId:e=>{for(var t=GL.counter++,r=e.length;r{for(var i=0;i>>2>>>0]=a}},getSource:(e,t,r,n)=>{for(var i="",s=0;s>>2>>>0]:void 0;i+=UTF8ToString(HEAPU32[r+4*s>>>2>>>0],a)}return i},createContext:(e,t)=>{if(!e.getContextSafariWebGL2Fixed){let t=function(t,r){var n=e.getContextSafariWebGL2Fixed(t,r);return"webgl"==t==n instanceof WebGLRenderingContext?n:null};e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=t}var r=e.getContext("webgl",t);return r?GL.registerContext(r,t):0},registerContext:(e,t)=>{var r=GL.getNewId(GL.contexts),n={handle:r,attributes:t,version:t.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),GL.contexts[r]=n,(typeof t.enableExtensionsByDefault>"u"||t.enableExtensionsByDefault)&&GL.initExtensions(n),r},makeContextCurrent:e=>{var t;return GL.currentContext=GL.contexts[e],Module.ctx=GLctx=null==(t=GL.currentContext)?void 0:t.GLctx,!(e&&!GLctx)},getContext:e=>GL.contexts[e],deleteContext:e=>{GL.currentContext===GL.contexts[e]&&(GL.currentContext=null),"object"==typeof JSEvents&&JSEvents.removeAllHandlersOnTarget(GL.contexts[e].GLctx.canvas),GL.contexts[e]&&GL.contexts[e].GLctx.canvas&&(GL.contexts[e].GLctx.canvas.GLctxObject=void 0),GL.contexts[e]=null},initExtensions:e=>{if(e||(e=GL.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var t=e.GLctx;webgl_enable_WEBGL_multi_draw(t),webgl_enable_EXT_polygon_offset_clamp(t),webgl_enable_EXT_clip_control(t),webgl_enable_WEBGL_polygon_mode(t),webgl_enable_ANGLE_instanced_arrays(t),webgl_enable_OES_vertex_array_object(t),webgl_enable_WEBGL_draw_buffers(t),t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query"),getEmscriptenSupportedExtensions(t).forEach((e=>{!e.includes("lose_context")&&!e.includes("debug")&&t.getExtension(e)}))}}},_glActiveTexture=e=>GLctx.activeTexture(e);_glActiveTexture.sig="vi";var _emscripten_glActiveTexture=_glActiveTexture;_emscripten_glActiveTexture.sig="vi";var _glAttachShader=(e,t)=>{GLctx.attachShader(GL.programs[e],GL.shaders[t])};_glAttachShader.sig="vii";var _emscripten_glAttachShader=_glAttachShader;_emscripten_glAttachShader.sig="vii";var _glBeginQueryEXT=(e,t)=>{GLctx.disjointTimerQueryExt.beginQueryEXT(e,GL.queries[t])};_glBeginQueryEXT.sig="vii";var _emscripten_glBeginQueryEXT=_glBeginQueryEXT;function _glBindAttribLocation(e,t,r){r>>>=0,GLctx.bindAttribLocation(GL.programs[e],t,UTF8ToString(r))}_glBindAttribLocation.sig="viip";var _emscripten_glBindAttribLocation=_glBindAttribLocation;_emscripten_glBindAttribLocation.sig="viip";var _glBindBuffer=(e,t)=>{GLctx.bindBuffer(e,GL.buffers[t])};_glBindBuffer.sig="vii";var _emscripten_glBindBuffer=_glBindBuffer;_emscripten_glBindBuffer.sig="vii";var _glBindFramebuffer=(e,t)=>{GLctx.bindFramebuffer(e,GL.framebuffers[t])};_glBindFramebuffer.sig="vii";var _emscripten_glBindFramebuffer=_glBindFramebuffer;_emscripten_glBindFramebuffer.sig="vii";var _glBindRenderbuffer=(e,t)=>{GLctx.bindRenderbuffer(e,GL.renderbuffers[t])};_glBindRenderbuffer.sig="vii";var _emscripten_glBindRenderbuffer=_glBindRenderbuffer;_emscripten_glBindRenderbuffer.sig="vii";var _glBindTexture=(e,t)=>{GLctx.bindTexture(e,GL.textures[t])};_glBindTexture.sig="vii";var _emscripten_glBindTexture=_glBindTexture;_emscripten_glBindTexture.sig="vii";var _glBindVertexArray=e=>{GLctx.bindVertexArray(GL.vaos[e])};_glBindVertexArray.sig="vi";var _glBindVertexArrayOES=_glBindVertexArray;_glBindVertexArrayOES.sig="vi";var _emscripten_glBindVertexArrayOES=_glBindVertexArrayOES;_emscripten_glBindVertexArrayOES.sig="vi";var _glBlendColor=(e,t,r,n)=>GLctx.blendColor(e,t,r,n);_glBlendColor.sig="vffff";var _emscripten_glBlendColor=_glBlendColor;_emscripten_glBlendColor.sig="vffff";var _glBlendEquation=e=>GLctx.blendEquation(e);_glBlendEquation.sig="vi";var _emscripten_glBlendEquation=_glBlendEquation;_emscripten_glBlendEquation.sig="vi";var _glBlendEquationSeparate=(e,t)=>GLctx.blendEquationSeparate(e,t);_glBlendEquationSeparate.sig="vii";var _emscripten_glBlendEquationSeparate=_glBlendEquationSeparate;_emscripten_glBlendEquationSeparate.sig="vii";var _glBlendFunc=(e,t)=>GLctx.blendFunc(e,t);_glBlendFunc.sig="vii";var _emscripten_glBlendFunc=_glBlendFunc;_emscripten_glBlendFunc.sig="vii";var _glBlendFuncSeparate=(e,t,r,n)=>GLctx.blendFuncSeparate(e,t,r,n);_glBlendFuncSeparate.sig="viiii";var _emscripten_glBlendFuncSeparate=_glBlendFuncSeparate;function _glBufferData(e,t,r,n){t>>>=0,r>>>=0,GLctx.bufferData(e,r?HEAPU8.subarray(r>>>0,r+t>>>0):t,n)}_emscripten_glBlendFuncSeparate.sig="viiii",_glBufferData.sig="vippi";var _emscripten_glBufferData=_glBufferData;function _glBufferSubData(e,t,r,n){t>>>=0,r>>>=0,n>>>=0,GLctx.bufferSubData(e,t,HEAPU8.subarray(n>>>0,n+r>>>0))}_emscripten_glBufferData.sig="vippi",_glBufferSubData.sig="vippp";var _emscripten_glBufferSubData=_glBufferSubData;_emscripten_glBufferSubData.sig="vippp";var _glCheckFramebufferStatus=e=>GLctx.checkFramebufferStatus(e);_glCheckFramebufferStatus.sig="ii";var _emscripten_glCheckFramebufferStatus=_glCheckFramebufferStatus;_emscripten_glCheckFramebufferStatus.sig="ii";var _glClear=e=>GLctx.clear(e);_glClear.sig="vi";var _emscripten_glClear=_glClear;_emscripten_glClear.sig="vi";var _glClearColor=(e,t,r,n)=>GLctx.clearColor(e,t,r,n);_glClearColor.sig="vffff";var _emscripten_glClearColor=_glClearColor;_emscripten_glClearColor.sig="vffff";var _glClearDepthf=e=>GLctx.clearDepth(e);_glClearDepthf.sig="vf";var _emscripten_glClearDepthf=_glClearDepthf;_emscripten_glClearDepthf.sig="vf";var _glClearStencil=e=>GLctx.clearStencil(e);_glClearStencil.sig="vi";var _emscripten_glClearStencil=_glClearStencil;_emscripten_glClearStencil.sig="vi";var _glClipControlEXT=(e,t)=>{GLctx.extClipControl.clipControlEXT(e,t)};_glClipControlEXT.sig="vii";var _emscripten_glClipControlEXT=_glClipControlEXT,_glColorMask=(e,t,r,n)=>{GLctx.colorMask(!!e,!!t,!!r,!!n)};_glColorMask.sig="viiii";var _emscripten_glColorMask=_glColorMask;_emscripten_glColorMask.sig="viiii";var _glCompileShader=e=>{GLctx.compileShader(GL.shaders[e])};_glCompileShader.sig="vi";var _emscripten_glCompileShader=_glCompileShader;function _glCompressedTexImage2D(e,t,r,n,i,s,a,o){o>>>=0,GLctx.compressedTexImage2D(e,t,r,n,i,s,HEAPU8.subarray(o>>>0,o+a>>>0))}_emscripten_glCompileShader.sig="vi",_glCompressedTexImage2D.sig="viiiiiiip";var _emscripten_glCompressedTexImage2D=_glCompressedTexImage2D;function _glCompressedTexSubImage2D(e,t,r,n,i,s,a,o,l){l>>>=0,GLctx.compressedTexSubImage2D(e,t,r,n,i,s,a,HEAPU8.subarray(l>>>0,l+o>>>0))}_emscripten_glCompressedTexImage2D.sig="viiiiiiip",_glCompressedTexSubImage2D.sig="viiiiiiiip";var _emscripten_glCompressedTexSubImage2D=_glCompressedTexSubImage2D;_emscripten_glCompressedTexSubImage2D.sig="viiiiiiiip";var _glCopyTexImage2D=(e,t,r,n,i,s,a,o)=>GLctx.copyTexImage2D(e,t,r,n,i,s,a,o);_glCopyTexImage2D.sig="viiiiiiii";var _emscripten_glCopyTexImage2D=_glCopyTexImage2D;_emscripten_glCopyTexImage2D.sig="viiiiiiii";var _glCopyTexSubImage2D=(e,t,r,n,i,s,a,o)=>GLctx.copyTexSubImage2D(e,t,r,n,i,s,a,o);_glCopyTexSubImage2D.sig="viiiiiiii";var _emscripten_glCopyTexSubImage2D=_glCopyTexSubImage2D;_emscripten_glCopyTexSubImage2D.sig="viiiiiiii";var _glCreateProgram=()=>{var e=GL.getNewId(GL.programs),t=GLctx.createProgram();return t.name=e,t.maxUniformLength=t.maxAttributeLength=t.maxUniformBlockNameLength=0,t.uniformIdCounter=1,GL.programs[e]=t,e};_glCreateProgram.sig="i";var _emscripten_glCreateProgram=_glCreateProgram;_emscripten_glCreateProgram.sig="i";var _glCreateShader=e=>{var t=GL.getNewId(GL.shaders);return GL.shaders[t]=GLctx.createShader(e),t};_glCreateShader.sig="ii";var _emscripten_glCreateShader=_glCreateShader;_emscripten_glCreateShader.sig="ii";var _glCullFace=e=>GLctx.cullFace(e);_glCullFace.sig="vi";var _emscripten_glCullFace=_glCullFace;function _glDeleteBuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.buffers[n];i&&(GLctx.deleteBuffer(i),i.name=0,GL.buffers[n]=null)}}_emscripten_glCullFace.sig="vi",_glDeleteBuffers.sig="vip";var _emscripten_glDeleteBuffers=_glDeleteBuffers;function _glDeleteFramebuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.framebuffers[n];i&&(GLctx.deleteFramebuffer(i),i.name=0,GL.framebuffers[n]=null)}}_emscripten_glDeleteBuffers.sig="vip",_glDeleteFramebuffers.sig="vip";var _emscripten_glDeleteFramebuffers=_glDeleteFramebuffers;_emscripten_glDeleteFramebuffers.sig="vip";var _glDeleteProgram=e=>{if(e){var t=GL.programs[e];if(!t)return void GL.recordError(1281);GLctx.deleteProgram(t),t.name=0,GL.programs[e]=null}};_glDeleteProgram.sig="vi";var _emscripten_glDeleteProgram=_glDeleteProgram;function _glDeleteQueriesEXT(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.queries[n];i&&(GLctx.disjointTimerQueryExt.deleteQueryEXT(i),GL.queries[n]=null)}}_emscripten_glDeleteProgram.sig="vi",_glDeleteQueriesEXT.sig="vip";var _emscripten_glDeleteQueriesEXT=_glDeleteQueriesEXT;function _glDeleteRenderbuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.renderbuffers[n];i&&(GLctx.deleteRenderbuffer(i),i.name=0,GL.renderbuffers[n]=null)}}_glDeleteRenderbuffers.sig="vip";var _emscripten_glDeleteRenderbuffers=_glDeleteRenderbuffers;_emscripten_glDeleteRenderbuffers.sig="vip";var _glDeleteShader=e=>{if(e){var t=GL.shaders[e];if(!t)return void GL.recordError(1281);GLctx.deleteShader(t),GL.shaders[e]=null}};_glDeleteShader.sig="vi";var _emscripten_glDeleteShader=_glDeleteShader;function _glDeleteTextures(e,t){t>>>=0;for(var r=0;r>>2>>>0],i=GL.textures[n];i&&(GLctx.deleteTexture(i),i.name=0,GL.textures[n]=null)}}_emscripten_glDeleteShader.sig="vi",_glDeleteTextures.sig="vip";var _emscripten_glDeleteTextures=_glDeleteTextures;function _glDeleteVertexArrays(e,t){t>>>=0;for(var r=0;r>>2>>>0];GLctx.deleteVertexArray(GL.vaos[n]),GL.vaos[n]=null}}_emscripten_glDeleteTextures.sig="vip",_glDeleteVertexArrays.sig="vip";var _glDeleteVertexArraysOES=_glDeleteVertexArrays;_glDeleteVertexArraysOES.sig="vip";var _emscripten_glDeleteVertexArraysOES=_glDeleteVertexArraysOES;_emscripten_glDeleteVertexArraysOES.sig="vip";var _glDepthFunc=e=>GLctx.depthFunc(e);_glDepthFunc.sig="vi";var _emscripten_glDepthFunc=_glDepthFunc;_emscripten_glDepthFunc.sig="vi";var _glDepthMask=e=>{GLctx.depthMask(!!e)};_glDepthMask.sig="vi";var _emscripten_glDepthMask=_glDepthMask;_emscripten_glDepthMask.sig="vi";var _glDepthRangef=(e,t)=>GLctx.depthRange(e,t);_glDepthRangef.sig="vff";var _emscripten_glDepthRangef=_glDepthRangef;_emscripten_glDepthRangef.sig="vff";var _glDetachShader=(e,t)=>{GLctx.detachShader(GL.programs[e],GL.shaders[t])};_glDetachShader.sig="vii";var _emscripten_glDetachShader=_glDetachShader;_emscripten_glDetachShader.sig="vii";var _glDisable=e=>GLctx.disable(e);_glDisable.sig="vi";var _emscripten_glDisable=_glDisable;_emscripten_glDisable.sig="vi";var _glDisableVertexAttribArray=e=>{GLctx.disableVertexAttribArray(e)};_glDisableVertexAttribArray.sig="vi";var _emscripten_glDisableVertexAttribArray=_glDisableVertexAttribArray;_emscripten_glDisableVertexAttribArray.sig="vi";var _glDrawArrays=(e,t,r)=>{GLctx.drawArrays(e,t,r)};_glDrawArrays.sig="viii";var _emscripten_glDrawArrays=_glDrawArrays;_emscripten_glDrawArrays.sig="viii";var _glDrawArraysInstanced=(e,t,r,n)=>{GLctx.drawArraysInstanced(e,t,r,n)};_glDrawArraysInstanced.sig="viiii";var _glDrawArraysInstancedANGLE=_glDrawArraysInstanced,_emscripten_glDrawArraysInstancedANGLE=_glDrawArraysInstancedANGLE,tempFixedLengthArray=[];function _glDrawBuffers(e,t){t>>>=0;for(var r=tempFixedLengthArray[e],n=0;n>>2>>>0];GLctx.drawBuffers(r)}_glDrawBuffers.sig="vip";var _glDrawBuffersWEBGL=_glDrawBuffers,_emscripten_glDrawBuffersWEBGL=_glDrawBuffersWEBGL;function _glDrawElements(e,t,r,n){n>>>=0,GLctx.drawElements(e,t,r,n)}_glDrawElements.sig="viiip";var _emscripten_glDrawElements=_glDrawElements;function _glDrawElementsInstanced(e,t,r,n,i){n>>>=0,GLctx.drawElementsInstanced(e,t,r,n,i)}_emscripten_glDrawElements.sig="viiip",_glDrawElementsInstanced.sig="viiipi";var _glDrawElementsInstancedANGLE=_glDrawElementsInstanced,_emscripten_glDrawElementsInstancedANGLE=_glDrawElementsInstancedANGLE,_glEnable=e=>GLctx.enable(e);_glEnable.sig="vi";var _emscripten_glEnable=_glEnable;_emscripten_glEnable.sig="vi";var _glEnableVertexAttribArray=e=>{GLctx.enableVertexAttribArray(e)};_glEnableVertexAttribArray.sig="vi";var _emscripten_glEnableVertexAttribArray=_glEnableVertexAttribArray;_emscripten_glEnableVertexAttribArray.sig="vi";var _glEndQueryEXT=e=>{GLctx.disjointTimerQueryExt.endQueryEXT(e)};_glEndQueryEXT.sig="vi";var _emscripten_glEndQueryEXT=_glEndQueryEXT,_glFinish=()=>GLctx.finish();_glFinish.sig="v";var _emscripten_glFinish=_glFinish;_emscripten_glFinish.sig="v";var _glFlush=()=>GLctx.flush();_glFlush.sig="v";var _emscripten_glFlush=_glFlush;_emscripten_glFlush.sig="v";var _glFramebufferRenderbuffer=(e,t,r,n)=>{GLctx.framebufferRenderbuffer(e,t,r,GL.renderbuffers[n])};_glFramebufferRenderbuffer.sig="viiii";var _emscripten_glFramebufferRenderbuffer=_glFramebufferRenderbuffer;_emscripten_glFramebufferRenderbuffer.sig="viiii";var _glFramebufferTexture2D=(e,t,r,n,i)=>{GLctx.framebufferTexture2D(e,t,r,GL.textures[n],i)};_glFramebufferTexture2D.sig="viiiii";var _emscripten_glFramebufferTexture2D=_glFramebufferTexture2D;_emscripten_glFramebufferTexture2D.sig="viiiii";var _glFrontFace=e=>GLctx.frontFace(e);_glFrontFace.sig="vi";var _emscripten_glFrontFace=_glFrontFace;function _glGenBuffers(e,t){t>>>=0,GL.genObject(e,t,"createBuffer",GL.buffers)}_emscripten_glFrontFace.sig="vi",_glGenBuffers.sig="vip";var _emscripten_glGenBuffers=_glGenBuffers;function _glGenFramebuffers(e,t){t>>>=0,GL.genObject(e,t,"createFramebuffer",GL.framebuffers)}_emscripten_glGenBuffers.sig="vip",_glGenFramebuffers.sig="vip";var _emscripten_glGenFramebuffers=_glGenFramebuffers;function _glGenQueriesEXT(e,t){t>>>=0;for(var r=0;r>>2>>>0]=0;return}var i=GL.getNewId(GL.queries);n.name=i,GL.queries[i]=n,HEAP32[t+4*r>>>2>>>0]=i}}_emscripten_glGenFramebuffers.sig="vip",_glGenQueriesEXT.sig="vip";var _emscripten_glGenQueriesEXT=_glGenQueriesEXT;function _glGenRenderbuffers(e,t){t>>>=0,GL.genObject(e,t,"createRenderbuffer",GL.renderbuffers)}_glGenRenderbuffers.sig="vip";var _emscripten_glGenRenderbuffers=_glGenRenderbuffers;function _glGenTextures(e,t){t>>>=0,GL.genObject(e,t,"createTexture",GL.textures)}_emscripten_glGenRenderbuffers.sig="vip",_glGenTextures.sig="vip";var _emscripten_glGenTextures=_glGenTextures;function _glGenVertexArrays(e,t){t>>>=0,GL.genObject(e,t,"createVertexArray",GL.vaos)}_emscripten_glGenTextures.sig="vip",_glGenVertexArrays.sig="vip";var _glGenVertexArraysOES=_glGenVertexArrays;_glGenVertexArraysOES.sig="vip";var _emscripten_glGenVertexArraysOES=_glGenVertexArraysOES;_emscripten_glGenVertexArraysOES.sig="vip";var _glGenerateMipmap=e=>GLctx.generateMipmap(e);_glGenerateMipmap.sig="vi";var _emscripten_glGenerateMipmap=_glGenerateMipmap;_emscripten_glGenerateMipmap.sig="vi";var __glGetActiveAttribOrUniform=(e,t,r,n,i,s,a,o)=>{t=GL.programs[t];var l=GLctx[e](t,r);if(l){var c=o&&stringToUTF8(l.name,o,n);i&&(HEAP32[i>>>2>>>0]=c),s&&(HEAP32[s>>>2>>>0]=l.size),a&&(HEAP32[a>>>2>>>0]=l.type)}};function _glGetActiveAttrib(e,t,r,n,i,s,a){__glGetActiveAttribOrUniform("getActiveAttrib",e,t,r,n>>>=0,i>>>=0,s>>>=0,a>>>=0)}_glGetActiveAttrib.sig="viiipppp";var _emscripten_glGetActiveAttrib=_glGetActiveAttrib;function _glGetActiveUniform(e,t,r,n,i,s,a){__glGetActiveAttribOrUniform("getActiveUniform",e,t,r,n>>>=0,i>>>=0,s>>>=0,a>>>=0)}_emscripten_glGetActiveAttrib.sig="viiipppp",_glGetActiveUniform.sig="viiipppp";var _emscripten_glGetActiveUniform=_glGetActiveUniform;function _glGetAttachedShaders(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getAttachedShaders(GL.programs[e]),s=i.length;s>t&&(s=t),HEAP32[r>>>2>>>0]=s;for(var a=0;a>>2>>>0]=o}}_emscripten_glGetActiveUniform.sig="viiipppp",_glGetAttachedShaders.sig="viipp";var _emscripten_glGetAttachedShaders=_glGetAttachedShaders;function _glGetAttribLocation(e,t){return t>>>=0,GLctx.getAttribLocation(GL.programs[e],UTF8ToString(t))}_emscripten_glGetAttachedShaders.sig="viipp",_glGetAttribLocation.sig="iip";var _emscripten_glGetAttribLocation=_glGetAttribLocation;_emscripten_glGetAttribLocation.sig="iip";var writeI53ToI64=(e,t)=>{HEAPU32[e>>>2>>>0]=t;var r=HEAPU32[e>>>2>>>0];HEAPU32[e+4>>>2>>>0]=(t-r)/4294967296},emscriptenWebGLGet=(e,t,r)=>{if(t){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=r&&1!=r&&GL.recordError(1280));case 36345:n=0;break;case 34466:var i=GLctx.getParameter(34467);n=i?i.length:0}if(void 0===n){var s=GLctx.getParameter(e);switch(typeof s){case"number":n=s;break;case"boolean":n=s?1:0;break;case"string":return void GL.recordError(1280);case"object":if(null===s)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 34068:n=0;break;default:return void GL.recordError(1280)}else{if(s instanceof Float32Array||s instanceof Uint32Array||s instanceof Int32Array||s instanceof Array){for(var a=0;a>>2>>>0]=s[a];break;case 2:HEAPF32[t+4*a>>>2>>>0]=s[a];break;case 4:HEAP8[t+a>>>0]=s[a]?1:0}return}try{n=0|s.name}catch(t){return GL.recordError(1280),void err("GL_INVALID_ENUM in glGet".concat(r,"v: Unknown object returned from WebGL getParameter(").concat(e,")! (error: ").concat(t,")"))}}break;default:return GL.recordError(1280),void err("GL_INVALID_ENUM in glGet".concat(r,"v: Native code calling glGet").concat(r,"v(").concat(e,") and it returns ").concat(s," of type ").concat(typeof s,"!"))}}switch(r){case 1:writeI53ToI64(t,n);break;case 0:HEAP32[t>>>2>>>0]=n;break;case 2:HEAPF32[t>>>2>>>0]=n;break;case 4:HEAP8[t>>>0]=n?1:0}}else GL.recordError(1281)};function _glGetBooleanv(e,t){return emscriptenWebGLGet(e,t>>>=0,4)}_glGetBooleanv.sig="vip";var _emscripten_glGetBooleanv=_glGetBooleanv;function _glGetBufferParameteriv(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.getBufferParameter(e,t):GL.recordError(1281)}_emscripten_glGetBooleanv.sig="vip",_glGetBufferParameteriv.sig="viip";var _emscripten_glGetBufferParameteriv=_glGetBufferParameteriv;_emscripten_glGetBufferParameteriv.sig="viip";var _glGetError=()=>{var e=GLctx.getError()||GL.lastError;return GL.lastError=0,e};_glGetError.sig="i";var _emscripten_glGetError=_glGetError;function _glGetFloatv(e,t){return emscriptenWebGLGet(e,t>>>=0,2)}_emscripten_glGetError.sig="i",_glGetFloatv.sig="vip";var _emscripten_glGetFloatv=_glGetFloatv;function _glGetFramebufferAttachmentParameteriv(e,t,r,n){n>>>=0;var i=GLctx.getFramebufferAttachmentParameter(e,t,r);(i instanceof WebGLRenderbuffer||i instanceof WebGLTexture)&&(i=0|i.name),HEAP32[n>>>2>>>0]=i}_emscripten_glGetFloatv.sig="vip",_glGetFramebufferAttachmentParameteriv.sig="viiip";var _emscripten_glGetFramebufferAttachmentParameteriv=_glGetFramebufferAttachmentParameteriv;function _glGetIntegerv(e,t){return emscriptenWebGLGet(e,t>>>=0,0)}_emscripten_glGetFramebufferAttachmentParameteriv.sig="viiip",_glGetIntegerv.sig="vip";var _emscripten_glGetIntegerv=_glGetIntegerv;function _glGetProgramInfoLog(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getProgramInfoLog(GL.programs[e]);null===i&&(i="(unknown error)");var s=t>0&&n?stringToUTF8(i,n,t):0;r&&(HEAP32[r>>>2>>>0]=s)}_emscripten_glGetIntegerv.sig="vip",_glGetProgramInfoLog.sig="viipp";var _emscripten_glGetProgramInfoLog=_glGetProgramInfoLog;function _glGetProgramiv(e,t,r){if(r>>>=0)if(e>=GL.counter)GL.recordError(1281);else if(e=GL.programs[e],35716==t){var n=GLctx.getProgramInfoLog(e);null===n&&(n="(unknown error)"),HEAP32[r>>>2>>>0]=n.length+1}else if(35719==t){if(!e.maxUniformLength)for(var i=GLctx.getProgramParameter(e,35718),s=0;s>>2>>>0]=e.maxUniformLength}else if(35722==t){if(!e.maxAttributeLength){var a=GLctx.getProgramParameter(e,35721);for(s=0;s>>2>>>0]=e.maxAttributeLength}else if(35381==t){if(!e.maxUniformBlockNameLength){var o=GLctx.getProgramParameter(e,35382);for(s=0;s>>2>>>0]=e.maxUniformBlockNameLength}else HEAP32[r>>>2>>>0]=GLctx.getProgramParameter(e,t);else GL.recordError(1281)}_emscripten_glGetProgramInfoLog.sig="viipp",_glGetProgramiv.sig="viip";var _emscripten_glGetProgramiv=_glGetProgramiv;function _glGetQueryObjecti64vEXT(e,t,r){if(r>>>=0){var n,i=GL.queries[e];n=GLctx.disjointTimerQueryExt.getQueryObjectEXT(i,t),writeI53ToI64(r,"boolean"==typeof n?n?1:0:n)}else GL.recordError(1281)}_emscripten_glGetProgramiv.sig="viip",_glGetQueryObjecti64vEXT.sig="viip";var _emscripten_glGetQueryObjecti64vEXT=_glGetQueryObjecti64vEXT;function _glGetQueryObjectivEXT(e,t,r){if(r>>>=0){var n,i=GL.queries[e],s=GLctx.disjointTimerQueryExt.getQueryObjectEXT(i,t);n="boolean"==typeof s?s?1:0:s,HEAP32[r>>>2>>>0]=n}else GL.recordError(1281)}_glGetQueryObjectivEXT.sig="viip";var _emscripten_glGetQueryObjectivEXT=_glGetQueryObjectivEXT,_glGetQueryObjectui64vEXT=_glGetQueryObjecti64vEXT,_emscripten_glGetQueryObjectui64vEXT=_glGetQueryObjectui64vEXT,_glGetQueryObjectuivEXT=_glGetQueryObjectivEXT,_emscripten_glGetQueryObjectuivEXT=_glGetQueryObjectuivEXT;function _glGetQueryivEXT(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.disjointTimerQueryExt.getQueryEXT(e,t):GL.recordError(1281)}_glGetQueryivEXT.sig="viip";var _emscripten_glGetQueryivEXT=_glGetQueryivEXT;function _glGetRenderbufferParameteriv(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.getRenderbufferParameter(e,t):GL.recordError(1281)}_glGetRenderbufferParameteriv.sig="viip";var _emscripten_glGetRenderbufferParameteriv=_glGetRenderbufferParameteriv;function _glGetShaderInfoLog(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getShaderInfoLog(GL.shaders[e]);null===i&&(i="(unknown error)");var s=t>0&&n?stringToUTF8(i,n,t):0;r&&(HEAP32[r>>>2>>>0]=s)}_emscripten_glGetRenderbufferParameteriv.sig="viip",_glGetShaderInfoLog.sig="viipp";var _emscripten_glGetShaderInfoLog=_glGetShaderInfoLog;function _glGetShaderPrecisionFormat(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getShaderPrecisionFormat(e,t);HEAP32[r>>>2>>>0]=i.rangeMin,HEAP32[r+4>>>2>>>0]=i.rangeMax,HEAP32[n>>>2>>>0]=i.precision}_emscripten_glGetShaderInfoLog.sig="viipp",_glGetShaderPrecisionFormat.sig="viipp";var _emscripten_glGetShaderPrecisionFormat=_glGetShaderPrecisionFormat;function _glGetShaderSource(e,t,r,n){r>>>=0,n>>>=0;var i=GLctx.getShaderSource(GL.shaders[e]);if(i){var s=t>0&&n?stringToUTF8(i,n,t):0;r&&(HEAP32[r>>>2>>>0]=s)}}_emscripten_glGetShaderPrecisionFormat.sig="viipp",_glGetShaderSource.sig="viipp";var _emscripten_glGetShaderSource=_glGetShaderSource;function _glGetShaderiv(e,t,r){if(r>>>=0)if(35716==t){var n=GLctx.getShaderInfoLog(GL.shaders[e]);null===n&&(n="(unknown error)");var i=n?n.length+1:0;HEAP32[r>>>2>>>0]=i}else if(35720==t){var s=GLctx.getShaderSource(GL.shaders[e]),a=s?s.length+1:0;HEAP32[r>>>2>>>0]=a}else HEAP32[r>>>2>>>0]=GLctx.getShaderParameter(GL.shaders[e],t);else GL.recordError(1281)}_emscripten_glGetShaderSource.sig="viipp",_glGetShaderiv.sig="viip";var _emscripten_glGetShaderiv=_glGetShaderiv;_emscripten_glGetShaderiv.sig="viip";var webglGetExtensions=function(){var e=getEmscriptenSupportedExtensions(GLctx);return e.concat(e.map((e=>"GL_"+e)))};function _glGetString(e){var t=GL.stringCache[e];if(!t){switch(e){case 7939:t=stringToNewUTF8(webglGetExtensions().join(" "));break;case 7936:case 7937:case 37445:case 37446:var r=GLctx.getParameter(e);r||GL.recordError(1280),t=r?stringToNewUTF8(r):0;break;case 7938:var n=GLctx.getParameter(7938),i="OpenGL ES 2.0 (".concat(n,")");t=stringToNewUTF8(i);break;case 35724:var s=GLctx.getParameter(35724),a=s.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==a&&(3==a[1].length&&(a[1]=a[1]+"0"),s="OpenGL ES GLSL ES ".concat(a[1]," (").concat(s,")")),t=stringToNewUTF8(s);break;default:GL.recordError(1280)}GL.stringCache[e]=t}return t}_glGetString.sig="pi";var _emscripten_glGetString=_glGetString;function _glGetTexParameterfv(e,t,r){(r>>>=0)?HEAPF32[r>>>2>>>0]=GLctx.getTexParameter(e,t):GL.recordError(1281)}_emscripten_glGetString.sig="pi",_glGetTexParameterfv.sig="viip";var _emscripten_glGetTexParameterfv=_glGetTexParameterfv;function _glGetTexParameteriv(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.getTexParameter(e,t):GL.recordError(1281)}_emscripten_glGetTexParameterfv.sig="viip",_glGetTexParameteriv.sig="viip";var _emscripten_glGetTexParameteriv=_glGetTexParameteriv;_emscripten_glGetTexParameteriv.sig="viip";var webglGetLeftBracePos=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),webglPrepareUniformLocationsBeforeFirstUse=e=>{var t,r,n=e.uniformLocsById,i=e.uniformSizeAndIdsByName;if(!n){e.uniformLocsById=n={},e.uniformArrayNamesById={};var s=GLctx.getProgramParameter(e,35718);for(t=0;t0?o.slice(0,c):o,_=e.uniformIdCounter;for(e.uniformIdCounter+=l,i[u]=[l,_],r=0;r>>=0),e=GL.programs[e]){webglPrepareUniformLocationsBeforeFirstUse(e);var r=e.uniformLocsById,n=0,i=t,s=webglGetLeftBracePos(t);s>0&&(n=jstoi_q(t.slice(s+1))>>>0,i=t.slice(0,s));var a=e.uniformSizeAndIdsByName[i];if(a&&n{var t=GLctx.currentProgram;if(t){var r=t.uniformLocsById[e];return"number"==typeof r&&(t.uniformLocsById[e]=r=GLctx.getUniformLocation(t,t.uniformArrayNamesById[e]+(r>0?"[".concat(r,"]"):""))),r}GL.recordError(1282)},emscriptenWebGLGetUniform=(e,t,r,n)=>{if(r){e=GL.programs[e],webglPrepareUniformLocationsBeforeFirstUse(e);var i=GLctx.getUniform(e,webglGetUniformLocation(t));if("number"==typeof i||"boolean"==typeof i)switch(n){case 0:HEAP32[r>>>2>>>0]=i;break;case 2:HEAPF32[r>>>2>>>0]=i}else for(var s=0;s>>2>>>0]=i[s];break;case 2:HEAPF32[r+4*s>>>2>>>0]=i[s]}}else GL.recordError(1281)};function _glGetUniformfv(e,t,r){emscriptenWebGLGetUniform(e,t,r>>>=0,2)}_glGetUniformfv.sig="viip";var _emscripten_glGetUniformfv=_glGetUniformfv;function _glGetUniformiv(e,t,r){emscriptenWebGLGetUniform(e,t,r>>>=0,0)}_emscripten_glGetUniformfv.sig="viip",_glGetUniformiv.sig="viip";var _emscripten_glGetUniformiv=_glGetUniformiv;function _glGetVertexAttribPointerv(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.getVertexAttribOffset(e,t):GL.recordError(1281)}_emscripten_glGetUniformiv.sig="viip",_glGetVertexAttribPointerv.sig="viip";var _emscripten_glGetVertexAttribPointerv=_glGetVertexAttribPointerv;_emscripten_glGetVertexAttribPointerv.sig="viip";var emscriptenWebGLGetVertexAttrib=(e,t,r,n)=>{if(r){var i=GLctx.getVertexAttrib(e,t);if(34975==t)HEAP32[r>>>2>>>0]=i&&i.name;else if("number"==typeof i||"boolean"==typeof i)switch(n){case 0:HEAP32[r>>>2>>>0]=i;break;case 2:HEAPF32[r>>>2>>>0]=i;break;case 5:HEAP32[r>>>2>>>0]=Math.fround(i)}else for(var s=0;s>>2>>>0]=i[s];break;case 2:HEAPF32[r+4*s>>>2>>>0]=i[s];break;case 5:HEAP32[r+4*s>>>2>>>0]=Math.fround(i[s])}}else GL.recordError(1281)};function _glGetVertexAttribfv(e,t,r){emscriptenWebGLGetVertexAttrib(e,t,r>>>=0,2)}_glGetVertexAttribfv.sig="viip";var _emscripten_glGetVertexAttribfv=_glGetVertexAttribfv;function _glGetVertexAttribiv(e,t,r){emscriptenWebGLGetVertexAttrib(e,t,r>>>=0,5)}_emscripten_glGetVertexAttribfv.sig="viip",_glGetVertexAttribiv.sig="viip";var _emscripten_glGetVertexAttribiv=_glGetVertexAttribiv;_emscripten_glGetVertexAttribiv.sig="viip";var _glHint=(e,t)=>GLctx.hint(e,t);_glHint.sig="vii";var _emscripten_glHint=_glHint;_emscripten_glHint.sig="vii";var _glIsBuffer=e=>{var t=GL.buffers[e];return t?GLctx.isBuffer(t):0};_glIsBuffer.sig="ii";var _emscripten_glIsBuffer=_glIsBuffer;_emscripten_glIsBuffer.sig="ii";var _glIsEnabled=e=>GLctx.isEnabled(e);_glIsEnabled.sig="ii";var _emscripten_glIsEnabled=_glIsEnabled;_emscripten_glIsEnabled.sig="ii";var _glIsFramebuffer=e=>{var t=GL.framebuffers[e];return t?GLctx.isFramebuffer(t):0};_glIsFramebuffer.sig="ii";var _emscripten_glIsFramebuffer=_glIsFramebuffer;_emscripten_glIsFramebuffer.sig="ii";var _glIsProgram=e=>(e=GL.programs[e])?GLctx.isProgram(e):0;_glIsProgram.sig="ii";var _emscripten_glIsProgram=_glIsProgram;_emscripten_glIsProgram.sig="ii";var _glIsQueryEXT=e=>{var t=GL.queries[e];return t?GLctx.disjointTimerQueryExt.isQueryEXT(t):0};_glIsQueryEXT.sig="ii";var _emscripten_glIsQueryEXT=_glIsQueryEXT,_glIsRenderbuffer=e=>{var t=GL.renderbuffers[e];return t?GLctx.isRenderbuffer(t):0};_glIsRenderbuffer.sig="ii";var _emscripten_glIsRenderbuffer=_glIsRenderbuffer;_emscripten_glIsRenderbuffer.sig="ii";var _glIsShader=e=>{var t=GL.shaders[e];return t?GLctx.isShader(t):0};_glIsShader.sig="ii";var _emscripten_glIsShader=_glIsShader;_emscripten_glIsShader.sig="ii";var _glIsTexture=e=>{var t=GL.textures[e];return t?GLctx.isTexture(t):0};_glIsTexture.sig="ii";var _emscripten_glIsTexture=_glIsTexture;_emscripten_glIsTexture.sig="ii";var _glIsVertexArray=e=>{var t=GL.vaos[e];return t?GLctx.isVertexArray(t):0};_glIsVertexArray.sig="ii";var _glIsVertexArrayOES=_glIsVertexArray;_glIsVertexArrayOES.sig="ii";var _emscripten_glIsVertexArrayOES=_glIsVertexArrayOES;_emscripten_glIsVertexArrayOES.sig="ii";var _glLineWidth=e=>GLctx.lineWidth(e);_glLineWidth.sig="vf";var _emscripten_glLineWidth=_glLineWidth;_emscripten_glLineWidth.sig="vf";var _glLinkProgram=e=>{e=GL.programs[e],GLctx.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}};_glLinkProgram.sig="vi";var _emscripten_glLinkProgram=_glLinkProgram;_emscripten_glLinkProgram.sig="vi";var _glPixelStorei=(e,t)=>{3317==e?GL.unpackAlignment=t:3314==e&&(GL.unpackRowLength=t),GLctx.pixelStorei(e,t)};_glPixelStorei.sig="vii";var _emscripten_glPixelStorei=_glPixelStorei;_emscripten_glPixelStorei.sig="vii";var _glPolygonModeWEBGL=(e,t)=>{GLctx.webglPolygonMode.polygonModeWEBGL(e,t)};_glPolygonModeWEBGL.sig="vii";var _emscripten_glPolygonModeWEBGL=_glPolygonModeWEBGL,_glPolygonOffset=(e,t)=>GLctx.polygonOffset(e,t);_glPolygonOffset.sig="vff";var _emscripten_glPolygonOffset=_glPolygonOffset;_emscripten_glPolygonOffset.sig="vff";var _glPolygonOffsetClampEXT=(e,t,r)=>{GLctx.extPolygonOffsetClamp.polygonOffsetClampEXT(e,t,r)};_glPolygonOffsetClampEXT.sig="vfff";var _emscripten_glPolygonOffsetClampEXT=_glPolygonOffsetClampEXT,_glQueryCounterEXT=(e,t)=>{GLctx.disjointTimerQueryExt.queryCounterEXT(GL.queries[e],t)};_glQueryCounterEXT.sig="vii";var _emscripten_glQueryCounterEXT=_glQueryCounterEXT,computeUnpackAlignedImageSize=(e,t,r)=>{var n;return t*((GL.unpackRowLength||e)*r+(n=GL.unpackAlignment)-1&-n)},colorChannelsInGlTextureFormat=e=>({5:3,6:4,8:2,29502:3,29504:4}[e-6402]||1),heapObjectForWebGLType=e=>1==(e-=5120)?HEAPU8:4==e?HEAP32:6==e?HEAPF32:5==e||28922==e?HEAPU32:HEAPU16,toTypedArrayIndex=(e,t)=>e>>>31-Math.clz32(t.BYTES_PER_ELEMENT),emscriptenWebGLGetTexPixelData=(e,t,r,n,i,s)=>{var a=heapObjectForWebGLType(e),o=colorChannelsInGlTextureFormat(t)*a.BYTES_PER_ELEMENT,l=computeUnpackAlignedImageSize(r,n,o);return a.subarray(toTypedArrayIndex(i,a)>>>0,toTypedArrayIndex(i+l,a)>>>0)};function _glReadPixels(e,t,r,n,i,s,a){var o=emscriptenWebGLGetTexPixelData(s,i,r,n,a>>>=0,i);o?GLctx.readPixels(e,t,r,n,i,s,o):GL.recordError(1280)}_glReadPixels.sig="viiiiiip";var _emscripten_glReadPixels=_glReadPixels;_emscripten_glReadPixels.sig="viiiiiip";var _glReleaseShaderCompiler=()=>{};_glReleaseShaderCompiler.sig="v";var _emscripten_glReleaseShaderCompiler=_glReleaseShaderCompiler;_emscripten_glReleaseShaderCompiler.sig="v";var _glRenderbufferStorage=(e,t,r,n)=>GLctx.renderbufferStorage(e,t,r,n);_glRenderbufferStorage.sig="viiii";var _emscripten_glRenderbufferStorage=_glRenderbufferStorage;_emscripten_glRenderbufferStorage.sig="viiii";var _glSampleCoverage=(e,t)=>{GLctx.sampleCoverage(e,!!t)};_glSampleCoverage.sig="vfi";var _emscripten_glSampleCoverage=_glSampleCoverage;_emscripten_glSampleCoverage.sig="vfi";var _glScissor=(e,t,r,n)=>GLctx.scissor(e,t,r,n);_glScissor.sig="viiii";var _emscripten_glScissor=_glScissor;function _glShaderBinary(e,t,r,n,i){GL.recordError(1280)}_emscripten_glScissor.sig="viiii",_glShaderBinary.sig="vipipi";var _emscripten_glShaderBinary=_glShaderBinary;function _glShaderSource(e,t,r,n){r>>>=0,n>>>=0;var i=GL.getSource(e,t,r,n);GLctx.shaderSource(GL.shaders[e],i)}_emscripten_glShaderBinary.sig="vipipi",_glShaderSource.sig="viipp";var _emscripten_glShaderSource=_glShaderSource;_emscripten_glShaderSource.sig="viipp";var _glStencilFunc=(e,t,r)=>GLctx.stencilFunc(e,t,r);_glStencilFunc.sig="viii";var _emscripten_glStencilFunc=_glStencilFunc;_emscripten_glStencilFunc.sig="viii";var _glStencilFuncSeparate=(e,t,r,n)=>GLctx.stencilFuncSeparate(e,t,r,n);_glStencilFuncSeparate.sig="viiii";var _emscripten_glStencilFuncSeparate=_glStencilFuncSeparate;_emscripten_glStencilFuncSeparate.sig="viiii";var _glStencilMask=e=>GLctx.stencilMask(e);_glStencilMask.sig="vi";var _emscripten_glStencilMask=_glStencilMask;_emscripten_glStencilMask.sig="vi";var _glStencilMaskSeparate=(e,t)=>GLctx.stencilMaskSeparate(e,t);_glStencilMaskSeparate.sig="vii";var _emscripten_glStencilMaskSeparate=_glStencilMaskSeparate;_emscripten_glStencilMaskSeparate.sig="vii";var _glStencilOp=(e,t,r)=>GLctx.stencilOp(e,t,r);_glStencilOp.sig="viii";var _emscripten_glStencilOp=_glStencilOp;_emscripten_glStencilOp.sig="viii";var _glStencilOpSeparate=(e,t,r,n)=>GLctx.stencilOpSeparate(e,t,r,n);_glStencilOpSeparate.sig="viiii";var _emscripten_glStencilOpSeparate=_glStencilOpSeparate;function _glTexImage2D(e,t,r,n,i,s,a,o,l){var c=(l>>>=0)?emscriptenWebGLGetTexPixelData(o,a,n,i,l,r):null;GLctx.texImage2D(e,t,r,n,i,s,a,o,c)}_emscripten_glStencilOpSeparate.sig="viiii",_glTexImage2D.sig="viiiiiiiip";var _emscripten_glTexImage2D=_glTexImage2D;_emscripten_glTexImage2D.sig="viiiiiiiip";var _glTexParameterf=(e,t,r)=>GLctx.texParameterf(e,t,r);_glTexParameterf.sig="viif";var _emscripten_glTexParameterf=_glTexParameterf;function _glTexParameterfv(e,t,r){var n=HEAPF32[(r>>>=0)>>>2>>>0];GLctx.texParameterf(e,t,n)}_emscripten_glTexParameterf.sig="viif",_glTexParameterfv.sig="viip";var _emscripten_glTexParameterfv=_glTexParameterfv;_emscripten_glTexParameterfv.sig="viip";var _glTexParameteri=(e,t,r)=>GLctx.texParameteri(e,t,r);_glTexParameteri.sig="viii";var _emscripten_glTexParameteri=_glTexParameteri;function _glTexParameteriv(e,t,r){var n=HEAP32[(r>>>=0)>>>2>>>0];GLctx.texParameteri(e,t,n)}_emscripten_glTexParameteri.sig="viii",_glTexParameteriv.sig="viip";var _emscripten_glTexParameteriv=_glTexParameteriv;function _glTexSubImage2D(e,t,r,n,i,s,a,o,l){var c=(l>>>=0)?emscriptenWebGLGetTexPixelData(o,a,i,s,l,0):null;GLctx.texSubImage2D(e,t,r,n,i,s,a,o,c)}_emscripten_glTexParameteriv.sig="viip",_glTexSubImage2D.sig="viiiiiiiip";var _emscripten_glTexSubImage2D=_glTexSubImage2D;_emscripten_glTexSubImage2D.sig="viiiiiiiip";var _glUniform1f=(e,t)=>{GLctx.uniform1f(webglGetUniformLocation(e),t)};_glUniform1f.sig="vif";var _emscripten_glUniform1f=_glUniform1f;_emscripten_glUniform1f.sig="vif";var miniTempWebGLFloatBuffers=[];function _glUniform1fv(e,t,r){if(r>>>=0,t<=288)for(var n=miniTempWebGLFloatBuffers[t],i=0;i>>2>>>0];else n=HEAPF32.subarray(r>>>2>>>0,r+4*t>>>2>>>0);GLctx.uniform1fv(webglGetUniformLocation(e),n)}_glUniform1fv.sig="viip";var _emscripten_glUniform1fv=_glUniform1fv;_emscripten_glUniform1fv.sig="viip";var _glUniform1i=(e,t)=>{GLctx.uniform1i(webglGetUniformLocation(e),t)};_glUniform1i.sig="vii";var _emscripten_glUniform1i=_glUniform1i;_emscripten_glUniform1i.sig="vii";var miniTempWebGLIntBuffers=[];function _glUniform1iv(e,t,r){if(r>>>=0,t<=288)for(var n=miniTempWebGLIntBuffers[t],i=0;i>>2>>>0];else n=HEAP32.subarray(r>>>2>>>0,r+4*t>>>2>>>0);GLctx.uniform1iv(webglGetUniformLocation(e),n)}_glUniform1iv.sig="viip";var _emscripten_glUniform1iv=_glUniform1iv;_emscripten_glUniform1iv.sig="viip";var _glUniform2f=(e,t,r)=>{GLctx.uniform2f(webglGetUniformLocation(e),t,r)};_glUniform2f.sig="viff";var _emscripten_glUniform2f=_glUniform2f;function _glUniform2fv(e,t,r){if(r>>>=0,t<=144)for(var n=miniTempWebGLFloatBuffers[t*=2],i=0;i>>2>>>0],n[i+1]=HEAPF32[r+(4*i+4)>>>2>>>0];else n=HEAPF32.subarray(r>>>2>>>0,r+8*t>>>2>>>0);GLctx.uniform2fv(webglGetUniformLocation(e),n)}_emscripten_glUniform2f.sig="viff",_glUniform2fv.sig="viip";var _emscripten_glUniform2fv=_glUniform2fv;_emscripten_glUniform2fv.sig="viip";var _glUniform2i=(e,t,r)=>{GLctx.uniform2i(webglGetUniformLocation(e),t,r)};_glUniform2i.sig="viii";var _emscripten_glUniform2i=_glUniform2i;function _glUniform2iv(e,t,r){if(r>>>=0,t<=144)for(var n=miniTempWebGLIntBuffers[t*=2],i=0;i>>2>>>0],n[i+1]=HEAP32[r+(4*i+4)>>>2>>>0];else n=HEAP32.subarray(r>>>2>>>0,r+8*t>>>2>>>0);GLctx.uniform2iv(webglGetUniformLocation(e),n)}_emscripten_glUniform2i.sig="viii",_glUniform2iv.sig="viip";var _emscripten_glUniform2iv=_glUniform2iv;_emscripten_glUniform2iv.sig="viip";var _glUniform3f=(e,t,r,n)=>{GLctx.uniform3f(webglGetUniformLocation(e),t,r,n)};_glUniform3f.sig="vifff";var _emscripten_glUniform3f=_glUniform3f;function _glUniform3fv(e,t,r){if(r>>>=0,t<=96)for(var n=miniTempWebGLFloatBuffers[t*=3],i=0;i>>2>>>0],n[i+1]=HEAPF32[r+(4*i+4)>>>2>>>0],n[i+2]=HEAPF32[r+(4*i+8)>>>2>>>0];else n=HEAPF32.subarray(r>>>2>>>0,r+12*t>>>2>>>0);GLctx.uniform3fv(webglGetUniformLocation(e),n)}_emscripten_glUniform3f.sig="vifff",_glUniform3fv.sig="viip";var _emscripten_glUniform3fv=_glUniform3fv;_emscripten_glUniform3fv.sig="viip";var _glUniform3i=(e,t,r,n)=>{GLctx.uniform3i(webglGetUniformLocation(e),t,r,n)};_glUniform3i.sig="viiii";var _emscripten_glUniform3i=_glUniform3i;function _glUniform3iv(e,t,r){if(r>>>=0,t<=96)for(var n=miniTempWebGLIntBuffers[t*=3],i=0;i>>2>>>0],n[i+1]=HEAP32[r+(4*i+4)>>>2>>>0],n[i+2]=HEAP32[r+(4*i+8)>>>2>>>0];else n=HEAP32.subarray(r>>>2>>>0,r+12*t>>>2>>>0);GLctx.uniform3iv(webglGetUniformLocation(e),n)}_emscripten_glUniform3i.sig="viiii",_glUniform3iv.sig="viip";var _emscripten_glUniform3iv=_glUniform3iv;_emscripten_glUniform3iv.sig="viip";var _glUniform4f=(e,t,r,n,i)=>{GLctx.uniform4f(webglGetUniformLocation(e),t,r,n,i)};_glUniform4f.sig="viffff";var _emscripten_glUniform4f=_glUniform4f;function _glUniform4fv(e,t,r){if(r>>>=0,t<=72){var n=miniTempWebGLFloatBuffers[4*t],i=HEAPF32;r>>>=2,t*=4;for(var s=0;s>>0],n[s+1]=i[a+1>>>0],n[s+2]=i[a+2>>>0],n[s+3]=i[a+3>>>0]}}else n=HEAPF32.subarray(r>>>2>>>0,r+16*t>>>2>>>0);GLctx.uniform4fv(webglGetUniformLocation(e),n)}_emscripten_glUniform4f.sig="viffff",_glUniform4fv.sig="viip";var _emscripten_glUniform4fv=_glUniform4fv;_emscripten_glUniform4fv.sig="viip";var _glUniform4i=(e,t,r,n,i)=>{GLctx.uniform4i(webglGetUniformLocation(e),t,r,n,i)};_glUniform4i.sig="viiiii";var _emscripten_glUniform4i=_glUniform4i;function _glUniform4iv(e,t,r){if(r>>>=0,t<=72)for(var n=miniTempWebGLIntBuffers[t*=4],i=0;i>>2>>>0],n[i+1]=HEAP32[r+(4*i+4)>>>2>>>0],n[i+2]=HEAP32[r+(4*i+8)>>>2>>>0],n[i+3]=HEAP32[r+(4*i+12)>>>2>>>0];else n=HEAP32.subarray(r>>>2>>>0,r+16*t>>>2>>>0);GLctx.uniform4iv(webglGetUniformLocation(e),n)}_emscripten_glUniform4i.sig="viiiii",_glUniform4iv.sig="viip";var _emscripten_glUniform4iv=_glUniform4iv;function _glUniformMatrix2fv(e,t,r,n){if(n>>>=0,t<=72)for(var i=miniTempWebGLFloatBuffers[t*=4],s=0;s>>2>>>0],i[s+1]=HEAPF32[n+(4*s+4)>>>2>>>0],i[s+2]=HEAPF32[n+(4*s+8)>>>2>>>0],i[s+3]=HEAPF32[n+(4*s+12)>>>2>>>0];else i=HEAPF32.subarray(n>>>2>>>0,n+16*t>>>2>>>0);GLctx.uniformMatrix2fv(webglGetUniformLocation(e),!!r,i)}_emscripten_glUniform4iv.sig="viip",_glUniformMatrix2fv.sig="viiip";var _emscripten_glUniformMatrix2fv=_glUniformMatrix2fv;function _glUniformMatrix3fv(e,t,r,n){if(n>>>=0,t<=32)for(var i=miniTempWebGLFloatBuffers[t*=9],s=0;s>>2>>>0],i[s+1]=HEAPF32[n+(4*s+4)>>>2>>>0],i[s+2]=HEAPF32[n+(4*s+8)>>>2>>>0],i[s+3]=HEAPF32[n+(4*s+12)>>>2>>>0],i[s+4]=HEAPF32[n+(4*s+16)>>>2>>>0],i[s+5]=HEAPF32[n+(4*s+20)>>>2>>>0],i[s+6]=HEAPF32[n+(4*s+24)>>>2>>>0],i[s+7]=HEAPF32[n+(4*s+28)>>>2>>>0],i[s+8]=HEAPF32[n+(4*s+32)>>>2>>>0];else i=HEAPF32.subarray(n>>>2>>>0,n+36*t>>>2>>>0);GLctx.uniformMatrix3fv(webglGetUniformLocation(e),!!r,i)}_emscripten_glUniformMatrix2fv.sig="viiip",_glUniformMatrix3fv.sig="viiip";var _emscripten_glUniformMatrix3fv=_glUniformMatrix3fv;function _glUniformMatrix4fv(e,t,r,n){if(n>>>=0,t<=18){var i=miniTempWebGLFloatBuffers[16*t],s=HEAPF32;n>>>=2,t*=16;for(var a=0;a>>0],i[a+1]=s[o+1>>>0],i[a+2]=s[o+2>>>0],i[a+3]=s[o+3>>>0],i[a+4]=s[o+4>>>0],i[a+5]=s[o+5>>>0],i[a+6]=s[o+6>>>0],i[a+7]=s[o+7>>>0],i[a+8]=s[o+8>>>0],i[a+9]=s[o+9>>>0],i[a+10]=s[o+10>>>0],i[a+11]=s[o+11>>>0],i[a+12]=s[o+12>>>0],i[a+13]=s[o+13>>>0],i[a+14]=s[o+14>>>0],i[a+15]=s[o+15>>>0]}}else i=HEAPF32.subarray(n>>>2>>>0,n+64*t>>>2>>>0);GLctx.uniformMatrix4fv(webglGetUniformLocation(e),!!r,i)}_emscripten_glUniformMatrix3fv.sig="viiip",_glUniformMatrix4fv.sig="viiip";var _emscripten_glUniformMatrix4fv=_glUniformMatrix4fv;_emscripten_glUniformMatrix4fv.sig="viiip";var _glUseProgram=e=>{e=GL.programs[e],GLctx.useProgram(e),GLctx.currentProgram=e};_glUseProgram.sig="vi";var _emscripten_glUseProgram=_glUseProgram;_emscripten_glUseProgram.sig="vi";var _glValidateProgram=e=>{GLctx.validateProgram(GL.programs[e])};_glValidateProgram.sig="vi";var _emscripten_glValidateProgram=_glValidateProgram;_emscripten_glValidateProgram.sig="vi";var _glVertexAttrib1f=(e,t)=>GLctx.vertexAttrib1f(e,t);_glVertexAttrib1f.sig="vif";var _emscripten_glVertexAttrib1f=_glVertexAttrib1f;function _glVertexAttrib1fv(e,t){t>>>=0,GLctx.vertexAttrib1f(e,HEAPF32[t>>>2])}_emscripten_glVertexAttrib1f.sig="vif",_glVertexAttrib1fv.sig="vip";var _emscripten_glVertexAttrib1fv=_glVertexAttrib1fv;_emscripten_glVertexAttrib1fv.sig="vip";var _glVertexAttrib2f=(e,t,r)=>GLctx.vertexAttrib2f(e,t,r);_glVertexAttrib2f.sig="viff";var _emscripten_glVertexAttrib2f=_glVertexAttrib2f;function _glVertexAttrib2fv(e,t){t>>>=0,GLctx.vertexAttrib2f(e,HEAPF32[t>>>2],HEAPF32[t+4>>>2])}_emscripten_glVertexAttrib2f.sig="viff",_glVertexAttrib2fv.sig="vip";var _emscripten_glVertexAttrib2fv=_glVertexAttrib2fv;_emscripten_glVertexAttrib2fv.sig="vip";var _glVertexAttrib3f=(e,t,r,n)=>GLctx.vertexAttrib3f(e,t,r,n);_glVertexAttrib3f.sig="vifff";var _emscripten_glVertexAttrib3f=_glVertexAttrib3f;function _glVertexAttrib3fv(e,t){t>>>=0,GLctx.vertexAttrib3f(e,HEAPF32[t>>>2],HEAPF32[t+4>>>2],HEAPF32[t+8>>>2])}_emscripten_glVertexAttrib3f.sig="vifff",_glVertexAttrib3fv.sig="vip";var _emscripten_glVertexAttrib3fv=_glVertexAttrib3fv;_emscripten_glVertexAttrib3fv.sig="vip";var _glVertexAttrib4f=(e,t,r,n,i)=>GLctx.vertexAttrib4f(e,t,r,n,i);_glVertexAttrib4f.sig="viffff";var _emscripten_glVertexAttrib4f=_glVertexAttrib4f;function _glVertexAttrib4fv(e,t){t>>>=0,GLctx.vertexAttrib4f(e,HEAPF32[t>>>2],HEAPF32[t+4>>>2],HEAPF32[t+8>>>2],HEAPF32[t+12>>>2])}_emscripten_glVertexAttrib4f.sig="viffff",_glVertexAttrib4fv.sig="vip";var _emscripten_glVertexAttrib4fv=_glVertexAttrib4fv;_emscripten_glVertexAttrib4fv.sig="vip";var _glVertexAttribDivisor=(e,t)=>{GLctx.vertexAttribDivisor(e,t)};_glVertexAttribDivisor.sig="vii";var _glVertexAttribDivisorANGLE=_glVertexAttribDivisor,_emscripten_glVertexAttribDivisorANGLE=_glVertexAttribDivisorANGLE;function _glVertexAttribPointer(e,t,r,n,i,s){s>>>=0,GLctx.vertexAttribPointer(e,t,r,!!n,i,s)}_glVertexAttribPointer.sig="viiiiip";var _emscripten_glVertexAttribPointer=_glVertexAttribPointer;_emscripten_glVertexAttribPointer.sig="viiiiip";var _glViewport=(e,t,r,n)=>GLctx.viewport(e,t,r,n);_glViewport.sig="viiii";var _emscripten_glViewport=_glViewport;function _emscripten_out(e){return out(UTF8ToString(e>>>=0))}_emscripten_glViewport.sig="viiii",_emscripten_out.sig="vp";class HandleAllocator{constructor(){Qe(this,"allocated",[void 0]),Qe(this,"freelist",[])}get(e){return this.allocated[e]}has(e){return void 0!==this.allocated[e]}allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t}free(e){this.allocated[e]=void 0,this.freelist.push(e)}}var promiseMap=new HandleAllocator,makePromise=()=>{var e={};return e.promise=new Promise(((t,r)=>{e.reject=r,e.resolve=t})),e.id=promiseMap.allocate(e),e};function _emscripten_promise_create(){return makePromise().id}function _emscripten_promise_destroy(e){e>>>=0,promiseMap.free(e)}_emscripten_promise_create.sig="p",_emscripten_promise_destroy.sig="vp";var getPromise=e=>promiseMap.get(e).promise;function _emscripten_promise_resolve(e,t,r){e>>>=0,r>>>=0;var n=promiseMap.get(e);switch(t){case 0:return void n.resolve(r);case 1:return void n.resolve(getPromise(r));case 2:return n.resolve(getPromise(r)),void _emscripten_promise_destroy(r);case 3:return void n.reject(r)}}_emscripten_promise_resolve.sig="vpip";var growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}};function _emscripten_resize_heap(e){e>>>=0;var t=HEAPU8.length,r=getHeapMax();if(e>r)return!1;for(var n=1;n<=4;n*=2){var i=t*(1+.2/n);i=Math.min(i,e+100663296);var s=Math.min(r,alignMemory(Math.max(e,i),65536));if(growMemory(s))return!0}return!1}function _emscripten_wget_data(e,t,r,n){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_wget_data"}_emscripten_resize_heap.sig="ip",_emscripten_wget_data.sig="vpppp";var getEnvStrings=()=>{if(!getEnvStrings.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:getExecutableName()};for(var t in ENV)void 0===ENV[t]?delete e[t]:e[t]=ENV[t];var r=[];for(var t in e)r.push("".concat(t,"=").concat(e[t]));getEnvStrings.strings=r}return getEnvStrings.strings},stringToAscii=(e,t)=>{for(var r=0;r>>0]=e.charCodeAt(r);HEAP8[t>>>0]=0},_environ_get=function(e,t){e>>>=0,t>>>=0;var r=0;return getEnvStrings().forEach(((n,i)=>{var s=t+r;HEAPU32[e+4*i>>>2>>>0]=s,stringToAscii(n,s),r+=n.length+1})),0};_environ_get.sig="ipp";var _environ_sizes_get=function(e,t){e>>>=0,t>>>=0;var r=getEnvStrings();HEAPU32[e>>>2>>>0]=r.length;var n=0;return r.forEach((e=>n+=e.length+1)),HEAPU32[t>>>2>>>0]=n,0};function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_fdstat_get(e,t){t>>>=0;try{var r=SYSCALLS.getStreamFromFD(e),n=r.tty?2:FS.isDir(r.mode)?3:FS.isLink(r.mode)?7:4;return HEAP8[t>>>0]=n,HEAP16[t+2>>>1>>>0]=0,tempI64=[0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+8>>>2>>>0]=tempI64[0],HEAP32[t+12>>>2>>>0]=tempI64[1],tempI64=[0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+16>>>2>>>0]=tempI64[0],HEAP32[t+20>>>2>>>0]=tempI64[1],0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_environ_sizes_get.sig="ipp",_fd_close.sig="ii",_fd_fdstat_get.sig="iip";var doReadv=(e,t,r,n)=>{for(var i=0,s=0;s>>2>>>0],o=HEAPU32[t+4>>>2>>>0];t+=8;var l=FS.read(e,HEAP8,a,o,n);if(l<0)return-1;if(i+=l,l>>=0,r>>>=0;var a=convertI32PairToI53Checked(n,i);s>>>=0;try{if(isNaN(a))return 61;var o=SYSCALLS.getStreamFromFD(e),l=doReadv(o,t,r,a);return HEAPU32[s>>>2>>>0]=l,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_fd_pread.sig="iippiip";var doWritev=(e,t,r,n)=>{for(var i=0,s=0;s>>2>>>0],o=HEAPU32[t+4>>>2>>>0];t+=8;var l=FS.write(e,HEAP8,a,o,n);if(l<0)return-1;if(i+=l,l>>=0,r>>>=0;var a=convertI32PairToI53Checked(n,i);s>>>=0;try{if(isNaN(a))return 61;var o=SYSCALLS.getStreamFromFD(e),l=doWritev(o,t,r,a);return HEAPU32[s>>>2>>>0]=l,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_read(e,t,r,n){t>>>=0,r>>>=0,n>>>=0;try{var i=SYSCALLS.getStreamFromFD(e),s=doReadv(i,t,r);return HEAPU32[n>>>2>>>0]=s,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_seek(e,t,r,n,i){var s=convertI32PairToI53Checked(t,r);i>>>=0;try{if(isNaN(s))return 61;var a=SYSCALLS.getStreamFromFD(e);return FS.llseek(a,s,n),tempI64=[a.position>>>0,(tempDouble=a.position,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[i>>>2>>>0]=tempI64[0],HEAP32[i+4>>>2>>>0]=tempI64[1],a.getdents&&0===s&&0===n&&(a.getdents=null),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_sync(e){var t;try{var r=SYSCALLS.getStreamFromFD(e);return null!=(t=r.stream_ops)&&t.fsync?r.stream_ops.fsync(r):0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_write(e,t,r,n){t>>>=0,r>>>=0,n>>>=0;try{var i=SYSCALLS.getStreamFromFD(e),s=doWritev(i,t,r);return HEAPU32[n>>>2>>>0]=s,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _getaddrinfo(e,t,r,n){e>>>=0,t>>>=0,n>>>=0;var i,s=0,a=0,o=0,l=0,c=0,u=0;function _(e,t,r,n,i,s){var a,o,l;return o=10===e?28:16,i=10===e?inetNtop6(i):inetNtop4(i),a=_malloc(o),assert(!writeSockaddr(a,e,i,s)),l=_malloc(32),HEAP32[l+4>>>2>>>0]=e,HEAP32[l+8>>>2>>>0]=t,HEAP32[l+12>>>2>>>0]=r,HEAPU32[l+24>>>2>>>0]=n,HEAPU32[l+20>>>2>>>0]=a,HEAP32[l+16>>>2>>>0]=10===e?28:16,HEAP32[l+28>>>2>>>0]=0,l}if((r>>>=0)&&(o=HEAP32[r>>>2>>>0],l=HEAP32[r+4>>>2>>>0],c=HEAP32[r+8>>>2>>>0],u=HEAP32[r+12>>>2>>>0]),c&&!u&&(u=2===c?17:6),!c&&u&&(c=17===u?2:1),0===u&&(u=6),0===c&&(c=1),!e&&!t)return-2;if(-1088&o||0!==r&&2&HEAP32[r>>>2>>>0]&&!e)return-1;if(32&o)return-2;if(0!==c&&1!==c&&2!==c)return-7;if(0!==l&&2!==l&&10!==l)return-6;if(t&&(t=UTF8ToString(t),a=parseInt(t,10),isNaN(a)))return 1024&o?-2:-8;if(!e)return 0===l&&(l=2),1&o||(s=2===l?_htonl(2130706433):[0,0,0,_htonl(1)]),i=_(l,c,u,null,s,a),HEAPU32[n>>>2>>>0]=i,0;if(e=UTF8ToString(e),null!==(s=inetPton4(e)))if(0===l||2===l)l=2;else{if(!(10===l&&8&o))return-2;s=[0,0,_htonl(65535),s],l=10}else if(null!==(s=inetPton6(e))){if(0!==l&&10!==l)return-2;l=10}return null!=s?(i=_(l,c,u,e,s,a),HEAPU32[n>>>2>>>0]=i,0):4&o?-2:(e=DNS.lookup_name(e),s=inetPton4(e),0===l?l=2:10===l&&(s=[0,0,_htonl(65535),s]),i=_(l,c,u,null,s,a),HEAPU32[n>>>2>>>0]=i,0)}function _getnameinfo(e,t,r,n,i,s,a){r>>>=0,i>>>=0;var o=readSockaddr(e>>>=0,t);if(o.errno)return-6;var l=o.port,c=o.addr,u=!1;if(r&&n){var _;if(1&a||!(_=DNS.lookup_addr(c))){if(8&a)return-2}else c=_;stringToUTF8(c,r,n)+1>=n&&(u=!0)}return i&&s&&stringToUTF8(l=""+l,i,s)+1>=s&&(u=!0),u?-12:0}function _pthread_kill(...e){return wasmImports.pthread_kill(...e)}function _random_get(e,t){e>>>=0,t>>>=0;try{return randomFill(HEAPU8.subarray(e>>>0,e+t>>>0)),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_fd_pwrite.sig="iippiip",_fd_read.sig="iippp",_fd_seek.sig="iiiiip",_fd_sync.sig="ii",_fd_write.sig="iippp",_getaddrinfo.sig="ipppp",_getnameinfo.sig="ipipipii",_pthread_kill.stub=!0,_random_get.sig="ipp";var arraySum=(e,t)=>{for(var r=0,n=0;n<=t;r+=e[n++]);return r},MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],addDays=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var n=isLeapYear(r.getFullYear()),i=r.getMonth(),s=(n?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[i];if(!(t>s-r.getDate()))return r.setDate(r.getDate()+t),r;t-=s-r.getDate()+1,r.setDate(1),i<11?r.setMonth(i+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r};function _strptime(e,t,r){e>>>=0,r>>>=0;for(var n=UTF8ToString(t>>>=0),i="\\!@#$^&*()+=-[]/{}|:<>?,.",s=0;s<25;++s)n=n.replace(new RegExp("\\"+i[s],"g"),"\\"+i[s]);var a={A:"%a",B:"%b",c:"%a %b %d %H:%M:%S %Y",D:"%m\\/%d\\/%y",e:"%d",F:"%Y-%m-%d",h:"%b",R:"%H\\:%M",r:"%I\\:%M\\:%S\\s%p",T:"%H\\:%M\\:%S",x:"%m\\/%d\\/(?:%y|%Y)",X:"%H\\:%M\\:%S"},o={a:"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)",b:"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)",C:"\\d\\d",d:"0[1-9]|[1-9](?!\\d)|1\\d|2\\d|30|31",H:"\\d(?!\\d)|[0,1]\\d|20|21|22|23",I:"\\d(?!\\d)|0\\d|10|11|12",j:"00[1-9]|0?[1-9](?!\\d)|0?[1-9]\\d(?!\\d)|[1,2]\\d\\d|3[0-6]\\d",m:"0[1-9]|[1-9](?!\\d)|10|11|12",M:"0\\d|\\d(?!\\d)|[1-5]\\d",n:" ",p:"AM|am|PM|pm|A\\.M\\.|a\\.m\\.|P\\.M\\.|p\\.m\\.",S:"0\\d|\\d(?!\\d)|[1-5]\\d|60",U:"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53",W:"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53",w:"[0-6]",y:"\\d\\d",Y:"\\d\\d\\d\\d",t:" ",z:"Z|(?:[\\+\\-]\\d\\d:?(?:\\d\\d)?)"},l=[],c=n.replace(/%(.)/g,((e,t)=>a[t]||e)).replace(/%(.)/g,((e,t)=>{let r=o[t];return r?(l.push(t),"(".concat(r,")")):t})).replace(/\s+/g,"\\s*"),u=new RegExp("^"+c,"i").exec(UTF8ToString(e));if(u){var _,d=function(){function e(e,t,r){return"number"!=typeof e||isNaN(e)?t:e>=t?e<=r?e:r:t}return{year:e(HEAP32[r+20>>>2>>>0]+1900,1970,9999),month:e(HEAP32[r+16>>>2>>>0],0,11),day:e(HEAP32[r+12>>>2>>>0],1,31),hour:e(HEAP32[r+8>>>2>>>0],0,23),min:e(HEAP32[r+4>>>2>>>0],0,59),sec:e(HEAP32[r>>>2>>>0],0,59),gmtoff:0}}(),p=e=>{var t=l.indexOf(e);if(t>=0)return u[t+1]};if((_=p("S"))&&(d.sec=jstoi_q(_)),(_=p("M"))&&(d.min=jstoi_q(_)),_=p("H"))d.hour=jstoi_q(_);else if(_=p("I")){var f=jstoi_q(_);(_=p("p"))&&(f+="P"===_.toUpperCase()[0]?12:0),d.hour=f}if(_=p("Y"))d.year=jstoi_q(_);else if(_=p("y")){var m=jstoi_q(_);(_=p("C"))?m+=100*jstoi_q(_):m+=m<69?2e3:1900,d.year=m}if((_=p("m"))?d.month=jstoi_q(_)-1:(_=p("b"))&&(d.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[_.substring(0,3).toUpperCase()]||0),_=p("d"))d.day=jstoi_q(_);else if(_=p("j"))for(var g=jstoi_q(_),h=isLeapYear(d.year),v=0;v<12;++v){var b=arraySum(h?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,v-1);g<=b+(h?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[v]&&(d.day=g-b)}else if(_=p("a")){var y=_.substring(0,3).toUpperCase();if(_=p("U")){var S={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[y],E=jstoi_q(_);L=0===(w=new Date(d.year,0,1)).getDay()?addDays(w,S+7*(E-1)):addDays(w,7-w.getDay()+S+7*(E-1)),d.day=L.getDate(),d.month=L.getMonth()}else if(_=p("W")){var w,L;S={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[y],E=jstoi_q(_),L=1===(w=new Date(d.year,0,1)).getDay()?addDays(w,S+7*(E-1)):addDays(w,7-w.getDay()+1+S+7*(E-1)),d.day=L.getDate(),d.month=L.getMonth()}}if(_=p("z"))if("z"===_.toLowerCase())d.gmtoff=0;else{var A=_.match(/^((?:\-|\+)\d\d):?(\d\d)?/);d.gmtoff=3600*A[1],A[2]&&(d.gmtoff+=d.gmtoff>0?60*A[2]:60*-A[2])}var D=new Date(d.year,d.month,d.day,d.hour,d.min,d.sec,0);return HEAP32[r>>>2>>>0]=D.getSeconds(),HEAP32[r+4>>>2>>>0]=D.getMinutes(),HEAP32[r+8>>>2>>>0]=D.getHours(),HEAP32[r+12>>>2>>>0]=D.getDate(),HEAP32[r+16>>>2>>>0]=D.getMonth(),HEAP32[r+20>>>2>>>0]=D.getFullYear()-1900,HEAP32[r+24>>>2>>>0]=D.getDay(),HEAP32[r+28>>>2>>>0]=arraySum(isLeapYear(D.getFullYear())?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,D.getMonth()-1)+D.getDate()-1,HEAP32[r+32>>>2>>>0]=0,HEAP32[r+36>>>2>>>0]=d.gmtoff,e+intArrayFromString(u[0]).length-1}return 0}_strptime.sig="pppp";var getCFunc=e=>Module["_"+e],writeArrayToMemory=(e,t)=>{HEAP8.set(e,t>>>0)},ccall=(e,t,r,n,i)=>{var s={string:e=>{var t=0;return null!=e&&0!==e&&(t=stringToUTF8OnStack(e)),t},array:e=>{var t=stackAlloc(e.length);return writeArrayToMemory(e,t),t}},a=getCFunc(e),o=[],l=0;if(n)for(var c=0;c{t>0x8000000000000000?(HEAPU32[e>>>2>>>0]=4294967295,HEAPU32[e+4>>>2>>>0]=2147483647):t<-0x8000000000000000?(HEAPU32[e>>>2>>>0]=0,HEAPU32[e+4>>>2>>>0]=2147483648):writeI53ToI64(e,t)},writeI53ToI64Signaling=(e,t)=>{if(t>0x8000000000000000||t<-0x8000000000000000)throw"RangeError: ".concat(t);writeI53ToI64(e,t)},writeI53ToU64Clamped=(e,t)=>{t>0x10000000000000000?(HEAPU32[e>>>2>>>0]=4294967295,HEAPU32[e+4>>>2>>>0]=4294967295):t<0?(HEAPU32[e>>>2>>>0]=0,HEAPU32[e+4>>>2>>>0]=0):writeI53ToI64(e,t)},writeI53ToU64Signaling=(e,t)=>{if(t<0||t>0x10000000000000000)throw"RangeError: ".concat(t);writeI53ToI64(e,t)},readI53FromU64=e=>HEAPU32[e>>>2>>>0]+4294967296*HEAPU32[e+4>>>2>>>0],convertI32PairToI53=(e,t)=>(e>>>0)+4294967296*t,convertU32PairToI53=(e,t)=>(e>>>0)+4294967296*(t>>>0),getTempRet0=e=>__emscripten_tempret_get(),_stackAlloc=stackAlloc,_stackSave=stackSave,_stackRestore=stackSave,_getTempRet0=getTempRet0;Module._getTempRet0=_getTempRet0;var ptrToString=e=>"0x"+e.toString(16).padStart(8,"0");function _emscripten_notify_memory_growth(e){updateMemoryViews()}_emscripten_notify_memory_growth.sig="vp";var withStackSave=e=>{var t=stackSave(),r=e();return stackRestore(t),r},ERRNO_CODES={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},strError=e=>UTF8ToString(_strerror(e)),Protocols={list:[],map:{}},_setprotoent=e=>{function t(e,t,r){var n=_malloc(e.length+1);stringToAscii(e,n);for(var i=0,s=r.length,a=_malloc(4*(s+1)),o=0;o>>2>>>0]=c}HEAPU32[a+i>>>2>>>0]=0;var u=_malloc(12);return HEAPU32[u>>>2>>>0]=n,HEAPU32[u+4>>>2>>>0]=a,HEAP32[u+8>>>2>>>0]=t,u}var r=Protocols.list,n=Protocols.map;if(0===r.length){var i=t("tcp",6,["TCP"]);r.push(i),n.tcp=n[6]=i,i=t("udp",17,["UDP"]),r.push(i),n.udp=n[17]=i}_setprotoent.index=0};_setprotoent.sig="vi";var _endprotoent=()=>{};function _getprotoent(e){return _setprotoent.index===Protocols.list.length?0:Protocols.list[_setprotoent.index++]}function _getprotobyname(e){return e=UTF8ToString(e>>>=0),_setprotoent(!0),Protocols.map[e]}function _getprotobynumber(e){return _setprotoent(!0),Protocols.map[e]}function _emscripten_run_script(ptr){ptr>>>=0,eval(UTF8ToString(ptr))}function _emscripten_run_script_int(ptr){return ptr>>>=0,0|eval(UTF8ToString(ptr))}function _emscripten_run_script_string(ptr){ptr>>>=0;var s=eval(UTF8ToString(ptr));if(null==s)return 0;s+="";var me=_emscripten_run_script_string,len=lengthBytesUTF8(s);return(!me.bufferSize||me.bufferSizeMath.random();_emscripten_random.sig="f";var warnOnce=e=>{warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,ENVIRONMENT_IS_NODE&&(e="warning: "+e),err(e))},jsStackTrace=()=>(new Error).stack.toString(),getCallstack=e=>{var t=jsStackTrace(),r=t.lastIndexOf("_emscripten_log"),n=t.lastIndexOf("_emscripten_get_callstack"),i=t.indexOf("\n",Math.max(r,n))+1;t=t.slice(i),8&e&&typeof emscripten_source_map>"u"&&(warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var s=t.split("\n");t="";var a=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),o=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),l=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var c in s){var u=s[c],_="",d="",p=0,f=0,m=l.exec(u);if(m&&5==m.length)_=m[1],d=m[2],p=m[3],f=m[4];else{if(!((m=a.exec(u)||o.exec(u))&&m.length>=4)){t+=u+"\n";continue}_=m[1],d=m[2],p=m[3],f=0|m[4]}var g=!1;if(8&e){var h=emscripten_source_map.originalPositionFor({line:p,column:f});(g=null==h?void 0:h.source)&&(64&e&&(h.source=h.source.substring(h.source.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=" at ".concat(_," (").concat(h.source,":").concat(h.line,":").concat(h.column,")\n"))}(16&e||!g)&&(64&e&&(d=d.substring(d.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=(g?" = ".concat(_):" at ".concat(_))+" (".concat(d,":").concat(p,":").concat(f,")\n"))}return t.replace(/\s+$/,"")},emscriptenLog=(e,t)=>{24&e&&(t=t.replace(/\s+$/,""),t+=(t.length>0?"\n":"")+getCallstack(e)),1&e?4&e?console.error(t):2&e?console.warn(t):512&e?console.info(t):256&e?console.debug(t):console.log(t):6&e?err(t):out(t)},reallyNegative=e=>e<0||0===e&&1/e==-1/0,reSign=(e,t)=>{if(e<=0)return e;var r=t<=32?Math.abs(1<=r&&(t<=32||e>r)&&(e=-2*r+e),e},unSign=(e,t)=>e>=0?e:t<=32?2*Math.abs(1<{for(var t=e;HEAPU8[t>>>0];)++t;return t-e},formatString=(e,t)=>{var r=e,n=t;function i(e){var t;return n=function(e,t){return("double"===t||"i64"===t)&&7&e&&(e+=4),e}(n,e),"double"===e?(t=HEAPF64[n>>>3>>>0],n+=8):"i64"==e?(t=[HEAP32[n>>>2>>>0],HEAP32[n+4>>>2>>>0]],n+=8):(e="i32",t=HEAP32[n>>>2>>>0],n+=4),t}for(var s,a,o,l=[];;){var c=r;if(0===(s=HEAP8[r>>>0]))break;if(a=HEAP8[r+1>>>0],37==s){var u=!1,_=!1,d=!1,p=!1,f=!1;e:for(;;){switch(a){case 43:u=!0;break;case 45:_=!0;break;case 35:d=!0;break;case 48:if(p)break e;p=!0;break;case 32:f=!0;break;default:break e}r++,a=HEAP8[r+1>>>0]}var m=0;if(42==a)m=i("i32"),r++,a=HEAP8[r+1>>>0];else for(;a>=48&&a<=57;)m=10*m+(a-48),r++,a=HEAP8[r+1>>>0];var g,h=!1,v=-1;if(46==a){if(v=0,h=!0,r++,42==(a=HEAP8[r+1>>>0]))v=i("i32"),r++;else for(;;){var b=HEAP8[r+1>>>0];if(b<48||b>57)break;v=10*v+(b-48),r++}a=HEAP8[r+1>>>0]}switch(v<0&&(v=6,h=!1),String.fromCharCode(a)){case"h":104==HEAP8[r+2>>>0]?(r++,g=1):g=2;break;case"l":108==HEAP8[r+2>>>0]?(r++,g=8):g=4;break;case"L":case"q":case"j":g=8;break;case"z":case"t":case"I":g=4;break;default:g=null}switch(g&&r++,a=HEAP8[r+1>>>0],String.fromCharCode(a)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var y=100==a||105==a;if(o=i("i"+8*(g=g||4)),8==g&&(o=117==a?convertU32PairToI53(o[0],o[1]):convertI32PairToI53(o[0],o[1])),g<=4){var S=Math.pow(256,g)-1;o=(y?reSign:unSign)(o&S,8*g)}var E=Math.abs(o),w="";if(100==a||105==a)D=reSign(o,8*g).toString(10);else if(117==a)D=unSign(o,8*g).toString(10),o=Math.abs(o);else if(111==a)D=(d?"0":"")+E.toString(8);else if(120==a||88==a){if(w=d&&0!=o?"0x":"",o<0){o=-o,D=(E-1).toString(16);for(var L=[],A=0;A=0&&(u?w="+"+w:f&&(w=" "+w)),"-"==D.charAt(0)&&(w="-"+w,D=D.substr(1));w.length+D.lengthl.push(e.charCodeAt(0))));break;case"f":case"F":case"e":case"E":case"g":case"G":var D;if(o=i("double"),isNaN(o))D="nan",p=!1;else if(isFinite(o)){var T=!1,F=Math.min(v,20);if(103==a||71==a){T=!0,v=v||1;var x=parseInt(o.toExponential(F).split("e")[1],10);v>x&&x>=-4?(a=(103==a?"f":"F").charCodeAt(0),v-=x+1):(a=(103==a?"e":"E").charCodeAt(0),v--),F=Math.min(v,20)}101==a||69==a?(D=o.toExponential(F),/[eE][-+]\d$/.test(D)&&(D=D.slice(0,-1)+"0"+D.slice(-1))):(102==a||70==a)&&(D=o.toFixed(F),0===o&&reallyNegative(o)&&(D="-"+D));var P=D.split("e");if(T&&!d)for(;P[0].length>1&&P[0].includes(".")&&("0"==P[0].slice(-1)||"."==P[0].slice(-1));)P[0]=P[0].slice(0,-1);else for(d&&-1==D.indexOf(".")&&(P[0]+=".");v>F++;)P[0]+="0";D=P[0]+(P.length>1?"e"+P[1]:""),69==a&&(D=D.toUpperCase()),o>=0&&(u?D="+"+D:f&&(D=" "+D))}else D=(o<0?"-":"")+"inf",p=!1;for(;D.lengthl.push(e.charCodeAt(0))));break;case"s":var k=i("i8*"),C=k?strLen(k):6;if(h&&(C=Math.min(C,v)),!_)for(;C>>0]);else l=l.concat(intArrayFromString("(null)".substr(0,C),!0));if(_)for(;C0;)l.push(32);_||l.push(i("i8"));break;case"n":var I=i("i32*");HEAP32[I>>>2>>>0]=l.length;break;case"%":l.push(s);break;default:for(A=c;A>>0])}r+=2}else l.push(s),r+=1}return l};function _emscripten_log(e,t,r){var n=formatString(t>>>=0,r>>>=0),i=UTF8ArrayToString(n);emscriptenLog(e,i)}function _emscripten_get_compiler_setting(e){throw"You must build with -sRETAIN_COMPILER_SETTINGS for getCompilerSetting or emscripten_get_compiler_setting to work"}_emscripten_log.sig="vipp",_emscripten_get_compiler_setting.sig="pp";var _emscripten_has_asyncify=()=>0;_emscripten_has_asyncify.sig="i";var _emscripten_debugger=()=>{};function _emscripten_print_double(e,t,r){var n=e+"";return(t>>>=0)?stringToUTF8(n,t,r):lengthBytesUTF8(n)}function _emscripten_asm_const_double(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}_emscripten_debugger.sig="v",_emscripten_print_double.sig="idpi",_emscripten_asm_const_double.sig="dppp";var runMainThreadEmAsm=(e,t,r,n)=>{var i=readEmAsmArgs(t,r);return ASM_CONSTS[e](...i)};function _emscripten_asm_const_int_sync_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,1)}function _emscripten_asm_const_ptr_sync_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,1)}_emscripten_asm_const_int_sync_on_main_thread.sig="ippp",_emscripten_asm_const_ptr_sync_on_main_thread.sig="pppp";var _emscripten_asm_const_double_sync_on_main_thread=_emscripten_asm_const_int_sync_on_main_thread;function _emscripten_asm_const_async_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,0)}_emscripten_asm_const_double_sync_on_main_thread.sig="dppp",_emscripten_asm_const_async_on_main_thread.sig="vppp";var jstoi_s=Number;function __Unwind_Backtrace(e,t){e>>>=0,t>>>=0;for(var r=getCallstack().split("\n"),n=0;n>>=0,err("Warning: _Unwind_RaiseException is not correctly implemented"),___cxa_throw(e,0,0)}function __Unwind_DeleteException(e){err("TODO: Unwind_DeleteException")}__Unwind_Backtrace.sig="ipp",__Unwind_GetIPInfo.sig="ppp",__Unwind_FindEnclosingFunction.sig="pp",Module.__Unwind_RaiseException=__Unwind_RaiseException,__Unwind_RaiseException.sig="ip",Module.__Unwind_DeleteException=__Unwind_DeleteException,__Unwind_DeleteException.sig="vp";var createDyncallWrapper=e=>{var t=[];t.push([0,97,115,109,1,0,0,0]);var r=[e[0].replace("j","i"),"i",e.slice(1).replace(/j/g,"ii")].join(""),n=[3];generateFuncType(r,n),generateFuncType(e,n),generateFuncType("vi",n);var i=[1];uleb128Encode(n.length,i),i.push(...n),t.push(i),t.push([2,15,2,1,101,1,116,1,112,0,0,1,101,1,114,0,2]),t.push([3,2,1,0]),t.push([7,5,1,1,102,0,1]);var s=[];function a(e){s.push(32),uleb128Encode(e,s)}"j"===e[0]?s=[1,1,126]:s.push(0);for(var o=1,l=1;l("dynCall_"+(e=e.replace(/p/g,"i"))in Module||(Module["dynCall_"+e]=createDyncallWrapper(e)),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>{if(e.includes("j"))return dynCallLegacy(e,t,r);var n=getWasmTableEntry(t)(...r);return"p"==e[0]?n>>>0:n},getDynCaller=(e,t)=>(...r)=>dynCall(e,t,r),_emscripten_exit_with_live_runtime=()=>{throw"unwind"};_emscripten_exit_with_live_runtime.sig="v";var _emscripten_force_exit=e=>{__emscripten_runtime_keepalive_clear(),_exit(e)};function _emscripten_outn(e,t){return out(UTF8ToString(e>>>=0,t>>>=0))}function _emscripten_errn(e,t){return err(UTF8ToString(e>>>=0,t>>>=0))}_emscripten_force_exit.sig="vi",_emscripten_outn.sig="vpp",_emscripten_errn.sig="vpp";var _emscripten_throw_number=e=>{throw e};function _emscripten_throw_string(e){throw UTF8ToString(e>>>=0)}_emscripten_throw_number.sig="vd",_emscripten_throw_string.sig="vp";var runtimeKeepalivePush=()=>{runtimeKeepaliveCounter+=1};runtimeKeepalivePush.sig="v";var runtimeKeepalivePop=()=>{runtimeKeepaliveCounter-=1};runtimeKeepalivePop.sig="v";var _emscripten_runtime_keepalive_push=runtimeKeepalivePush;_emscripten_runtime_keepalive_push.sig="v";var _emscripten_runtime_keepalive_pop=runtimeKeepalivePop;_emscripten_runtime_keepalive_pop.sig="v";var _emscripten_runtime_keepalive_check=keepRuntimeAlive;_emscripten_runtime_keepalive_check.sig="i";var asmjsMangle=e=>("__main_argc_argv"==e&&(e="main"),e.startsWith("dynCall_")?e:"_"+e),___global_base=1024;function __emscripten_fs_load_embedded_files(e){e>>>=0;do{var t=HEAPU32[e>>>2>>>0],r=HEAPU32[(e+=4)>>>2>>>0],n=HEAPU32[(e+=4)>>>2>>>0];e+=4;var i=UTF8ToString(t);FS.createPath("/",PATH.dirname(i),!0,!0),FS.createDataFile(i,null,HEAP8.subarray(n>>>0,n+r>>>0),!0,!0,!0)}while(HEAPU32[e>>>2>>>0])}__emscripten_fs_load_embedded_files.sig="vp";var POINTER_SIZE=4;function getNativeTypeSize(e){switch(e){case"i1":case"i8":case"u8":return 1;case"i16":case"u16":return 2;case"i32":case"u32":case"float":return 4;case"i64":case"u64":case"double":return 8;default:if("*"===e[e.length-1])return POINTER_SIZE;if("i"===e[0]){let t=Number(e.substr(1));return assert(t%8==0,"getNativeTypeSize invalid bits ".concat(t,", ").concat(e," type")),t/8}return 0}}var STACK_SIZE=65536,STACK_ALIGN=16,ASSERTIONS=0,cwrap=(e,t,r,n)=>{var i=!r||r.every((e=>"number"===e||"boolean"===e));return"string"!==t&&i&&!n?getCFunc(e):(...i)=>ccall(e,t,r,i,n)},removeFunction=e=>{functionsInTableMap.delete(getWasmTableEntry(e)),setWasmTableEntry(e,null),freeTableIndexes.push(e)},_emscripten_math_cbrt=Math.cbrt;_emscripten_math_cbrt.sig="dd";var _emscripten_math_pow=Math.pow;_emscripten_math_pow.sig="ddd";var _emscripten_math_random=Math.random;_emscripten_math_random.sig="d";var _emscripten_math_sign=Math.sign;_emscripten_math_sign.sig="dd";var _emscripten_math_sqrt=Math.sqrt;_emscripten_math_sqrt.sig="dd";var _emscripten_math_exp=Math.exp;_emscripten_math_exp.sig="dd";var _emscripten_math_expm1=Math.expm1;_emscripten_math_expm1.sig="dd";var _emscripten_math_fmod=(e,t)=>e%t;_emscripten_math_fmod.sig="ddd";var _emscripten_math_log=Math.log;_emscripten_math_log.sig="dd";var _emscripten_math_log1p=Math.log1p;_emscripten_math_log1p.sig="dd";var _emscripten_math_log10=Math.log10;_emscripten_math_log10.sig="dd";var _emscripten_math_log2=Math.log2;_emscripten_math_log2.sig="dd";var _emscripten_math_round=Math.round;_emscripten_math_round.sig="dd";var _emscripten_math_acos=Math.acos;_emscripten_math_acos.sig="dd";var _emscripten_math_acosh=Math.acosh;_emscripten_math_acosh.sig="dd";var _emscripten_math_asin=Math.asin;_emscripten_math_asin.sig="dd";var _emscripten_math_asinh=Math.asinh;_emscripten_math_asinh.sig="dd";var _emscripten_math_atan=Math.atan;_emscripten_math_atan.sig="dd";var _emscripten_math_atanh=Math.atanh;_emscripten_math_atanh.sig="dd";var _emscripten_math_atan2=Math.atan2;_emscripten_math_atan2.sig="ddd";var _emscripten_math_cos=Math.cos;_emscripten_math_cos.sig="dd";var _emscripten_math_cosh=Math.cosh;function _emscripten_math_hypot(e,t){t>>>=0;for(var r=[],n=0;n>>3>>>0]);return Math.hypot(...r)}_emscripten_math_cosh.sig="dd",_emscripten_math_hypot.sig="dip";var _emscripten_math_sin=Math.sin;_emscripten_math_sin.sig="dd";var _emscripten_math_sinh=Math.sinh;_emscripten_math_sinh.sig="dd";var _emscripten_math_tan=Math.tan;_emscripten_math_tan.sig="dd";var _emscripten_math_tanh=Math.tanh;function intArrayToString(e){for(var t=[],r=0;r255&&(n&=255),t.push(String.fromCharCode(n))}return t.join("")}_emscripten_math_tanh.sig="dd";var AsciiToString=e=>{e>>>=0;for(var t="";;){var r=HEAPU8[e++>>>0];if(!r)return t;t+=String.fromCharCode(r)}},JSEvents={removeAllEventListeners(){for(;JSEvents.eventHandlers.length;)JSEvents._removeHandler(JSEvents.eventHandlers.length-1);JSEvents.deferredCalls=[]},inEventHandler:0,deferredCalls:[],deferCall(e,t,r){function n(e,t){if(e.length!=t.length)return!1;for(var r in e)if(e[r]!=t[r])return!1;return!0}for(var i of JSEvents.deferredCalls)if(i.targetFunction==e&&n(i.argsList,r))return;JSEvents.deferredCalls.push({targetFunction:e,precedence:t,argsList:r}),JSEvents.deferredCalls.sort(((e,t)=>e.precedencet.targetFunction!=e))},canPerformEventHandlerRequests:()=>navigator.userActivation?navigator.userActivation.isActive:JSEvents.inEventHandler&&JSEvents.currentEventHandler.allowsDeferredCalls,runDeferredCalls(){if(JSEvents.canPerformEventHandlerRequests()){var e=JSEvents.deferredCalls;for(var t of(JSEvents.deferredCalls=[],e))t.targetFunction(...t.argsList)}},eventHandlers:[],removeAllHandlersOnTarget:(e,t)=>{for(var r=0;re?e==window?"#window":e==screen?"#screen":(null==e?void 0:e.nodeName)||"":"",fullscreenEnabled:()=>document.fullscreenEnabled||document.webkitFullscreenEnabled},maybeCStringToJsString=e=>e>2?UTF8ToString(e):e,specialHTMLTargets=[0,typeof document<"u"?document:0,typeof window<"u"?window:0],findEventTarget=e=>(e=maybeCStringToJsString(e),specialHTMLTargets[e]||(typeof document<"u"?document.querySelector(e):void 0)),registerKeyEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.keyEvent||(JSEvents.keyEvent=_malloc(160));var o={target:findEventTarget(e),eventTypeString:s,callbackfunc:n,handlerFunc:e=>{var r=JSEvents.keyEvent;HEAPF64[r>>>3>>>0]=e.timeStamp;var s=r>>>2;HEAP32[s+2>>>0]=e.location,HEAP8[r+12>>>0]=e.ctrlKey,HEAP8[r+13>>>0]=e.shiftKey,HEAP8[r+14>>>0]=e.altKey,HEAP8[r+15>>>0]=e.metaKey,HEAP8[r+16>>>0]=e.repeat,HEAP32[s+5>>>0]=e.charCode,HEAP32[s+6>>>0]=e.keyCode,HEAP32[s+7>>>0]=e.which,stringToUTF8(e.key||"",r+32,32),stringToUTF8(e.code||"",r+64,32),stringToUTF8(e.char||"",r+96,32),stringToUTF8(e.locale||"",r+128,32),getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)},findCanvasEventTarget=findEventTarget;function _emscripten_set_keypress_callback_on_thread(e,t,r,n,i){return registerKeyEventCallback(e>>>=0,t>>>=0,r,n>>>=0,1,"keypress",i>>>=0)}function _emscripten_set_keydown_callback_on_thread(e,t,r,n,i){return registerKeyEventCallback(e>>>=0,t>>>=0,r,n>>>=0,2,"keydown",i>>>=0)}function _emscripten_set_keyup_callback_on_thread(e,t,r,n,i){return registerKeyEventCallback(e>>>=0,t>>>=0,r,n>>>=0,3,"keyup",i>>>=0)}_emscripten_set_keypress_callback_on_thread.sig="ippipp",_emscripten_set_keydown_callback_on_thread.sig="ippipp",_emscripten_set_keyup_callback_on_thread.sig="ippipp";var getBoundingClientRect=e=>specialHTMLTargets.indexOf(e)<0?e.getBoundingClientRect():{left:0,top:0},fillMouseEventData=(e,t,r)=>{HEAPF64[e>>>3>>>0]=t.timeStamp;var n=e>>>2;HEAP32[n+2>>>0]=t.screenX,HEAP32[n+3>>>0]=t.screenY,HEAP32[n+4>>>0]=t.clientX,HEAP32[n+5>>>0]=t.clientY,HEAP8[e+24>>>0]=t.ctrlKey,HEAP8[e+25>>>0]=t.shiftKey,HEAP8[e+26>>>0]=t.altKey,HEAP8[e+27>>>0]=t.metaKey,HEAP16[2*n+14>>>0]=t.button,HEAP16[2*n+15>>>0]=t.buttons,HEAP32[n+8>>>0]=t.movementX,HEAP32[n+9>>>0]=t.movementY;var i=getBoundingClientRect(r);HEAP32[n+10>>>0]=t.clientX-(0|i.left),HEAP32[n+11>>>0]=t.clientY-(0|i.top)},registerMouseEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.mouseEvent||(JSEvents.mouseEvent=_malloc(64));var o={target:e=findEventTarget(e),allowsDeferredCalls:"mousemove"!=s&&"mouseenter"!=s&&"mouseleave"!=s,eventTypeString:s,callbackfunc:n,handlerFunc:(r=event)=>{fillMouseEventData(JSEvents.mouseEvent,r,e),getWasmTableEntry(n)(i,JSEvents.mouseEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_click_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,4,"click",i>>>=0)}function _emscripten_set_mousedown_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,5,"mousedown",i>>>=0)}function _emscripten_set_mouseup_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,6,"mouseup",i>>>=0)}function _emscripten_set_dblclick_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,7,"dblclick",i>>>=0)}function _emscripten_set_mousemove_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,8,"mousemove",i>>>=0)}function _emscripten_set_mouseenter_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,33,"mouseenter",i>>>=0)}function _emscripten_set_mouseleave_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,34,"mouseleave",i>>>=0)}function _emscripten_set_mouseover_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,35,"mouseover",i>>>=0)}function _emscripten_set_mouseout_callback_on_thread(e,t,r,n,i){return registerMouseEventCallback(e>>>=0,t>>>=0,r,n>>>=0,36,"mouseout",i>>>=0)}function _emscripten_get_mouse_status(e){return e>>>=0,JSEvents.mouseEvent?(HEAP8.set(HEAP8.subarray(JSEvents.mouseEvent>>>0,JSEvents.mouseEvent+64>>>0),e>>>0),0):-7}_emscripten_set_click_callback_on_thread.sig="ippipp",_emscripten_set_mousedown_callback_on_thread.sig="ippipp",_emscripten_set_mouseup_callback_on_thread.sig="ippipp",_emscripten_set_dblclick_callback_on_thread.sig="ippipp",_emscripten_set_mousemove_callback_on_thread.sig="ippipp",_emscripten_set_mouseenter_callback_on_thread.sig="ippipp",_emscripten_set_mouseleave_callback_on_thread.sig="ippipp",_emscripten_set_mouseover_callback_on_thread.sig="ippipp",_emscripten_set_mouseout_callback_on_thread.sig="ippipp",_emscripten_get_mouse_status.sig="ip";var registerWheelEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.wheelEvent||(JSEvents.wheelEvent=_malloc(96));var o={target:e,allowsDeferredCalls:!0,eventTypeString:s,callbackfunc:n,handlerFunc:(r=event)=>{var s=JSEvents.wheelEvent;fillMouseEventData(s,r,e),HEAPF64[s+64>>>3>>>0]=r.deltaX,HEAPF64[s+72>>>3>>>0]=r.deltaY,HEAPF64[s+80>>>3>>>0]=r.deltaZ,HEAP32[s+88>>>2>>>0]=r.deltaMode,getWasmTableEntry(n)(i,s,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_wheel_callback_on_thread(e,t,r,n,i){return t>>>=0,n>>>=0,i>>>=0,(e=findEventTarget(e>>>=0))?typeof e.onwheel<"u"?registerWheelEventCallback(e,t,r,n,9,"wheel",i):-1:-4}_emscripten_set_wheel_callback_on_thread.sig="ippipp";var registerUiEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.uiEvent||(JSEvents.uiEvent=_malloc(36));var o={target:e=findEventTarget(e),eventTypeString:s,callbackfunc:n,handlerFunc:(r=event)=>{if(r.target==e){var s=document.body;if(s){var a=JSEvents.uiEvent;HEAP32[a>>>2>>>0]=0,HEAP32[a+4>>>2>>>0]=s.clientWidth,HEAP32[a+8>>>2>>>0]=s.clientHeight,HEAP32[a+12>>>2>>>0]=innerWidth,HEAP32[a+16>>>2>>>0]=innerHeight,HEAP32[a+20>>>2>>>0]=outerWidth,HEAP32[a+24>>>2>>>0]=outerHeight,HEAP32[a+28>>>2>>>0]=0|pageXOffset,HEAP32[a+32>>>2>>>0]=0|pageYOffset,getWasmTableEntry(n)(i,a,t)&&r.preventDefault()}}},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_resize_callback_on_thread(e,t,r,n,i){return registerUiEventCallback(e>>>=0,t>>>=0,r,n>>>=0,10,"resize",i>>>=0)}function _emscripten_set_scroll_callback_on_thread(e,t,r,n,i){return registerUiEventCallback(e>>>=0,t>>>=0,r,n>>>=0,11,"scroll",i>>>=0)}_emscripten_set_resize_callback_on_thread.sig="ippipp",_emscripten_set_scroll_callback_on_thread.sig="ippipp";var registerFocusEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.focusEvent||(JSEvents.focusEvent=_malloc(256));var o={target:findEventTarget(e),eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{var r=JSEvents.getNodeNameForTarget(e.target),s=e.target.id?e.target.id:"",a=JSEvents.focusEvent;stringToUTF8(r,a+0,128),stringToUTF8(s,a+128,128),getWasmTableEntry(n)(i,a,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_blur_callback_on_thread(e,t,r,n,i){return registerFocusEventCallback(e>>>=0,t>>>=0,r,n>>>=0,12,"blur",i>>>=0)}function _emscripten_set_focus_callback_on_thread(e,t,r,n,i){return registerFocusEventCallback(e>>>=0,t>>>=0,r,n>>>=0,13,"focus",i>>>=0)}function _emscripten_set_focusin_callback_on_thread(e,t,r,n,i){return registerFocusEventCallback(e>>>=0,t>>>=0,r,n>>>=0,14,"focusin",i>>>=0)}function _emscripten_set_focusout_callback_on_thread(e,t,r,n,i){return registerFocusEventCallback(e>>>=0,t>>>=0,r,n>>>=0,15,"focusout",i>>>=0)}_emscripten_set_blur_callback_on_thread.sig="ippipp",_emscripten_set_focus_callback_on_thread.sig="ippipp",_emscripten_set_focusin_callback_on_thread.sig="ippipp",_emscripten_set_focusout_callback_on_thread.sig="ippipp";var fillDeviceOrientationEventData=(e,t,r)=>{HEAPF64[e>>>3>>>0]=t.alpha,HEAPF64[e+8>>>3>>>0]=t.beta,HEAPF64[e+16>>>3>>>0]=t.gamma,HEAP8[e+24>>>0]=t.absolute},registerDeviceOrientationEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.deviceOrientationEvent||(JSEvents.deviceOrientationEvent=_malloc(32));var o={target:findEventTarget(e),eventTypeString:s,callbackfunc:n,handlerFunc:(r=event)=>{fillDeviceOrientationEventData(JSEvents.deviceOrientationEvent,r,e),getWasmTableEntry(n)(i,JSEvents.deviceOrientationEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_deviceorientation_callback_on_thread(e,t,r,n){return registerDeviceOrientationEventCallback(2,e>>>=0,t,r>>>=0,16,"deviceorientation",n>>>=0)}function _emscripten_get_deviceorientation_status(e){return e>>>=0,JSEvents.deviceOrientationEvent?(HEAP32.set(HEAP32.subarray(JSEvents.deviceOrientationEvent>>>0,32),e>>>0),0):-7}_emscripten_set_deviceorientation_callback_on_thread.sig="ipipp",_emscripten_get_deviceorientation_status.sig="ip";var fillDeviceMotionEventData=(e,t,r)=>{var n=t.acceleration,i=t.accelerationIncludingGravity,s=t.rotationRate;n=n||{},i=i||{},s=s||{},HEAPF64[e>>>3>>>0]=n.x,HEAPF64[e+8>>>3>>>0]=n.y,HEAPF64[e+16>>>3>>>0]=n.z,HEAPF64[e+24>>>3>>>0]=i.x,HEAPF64[e+32>>>3>>>0]=i.y,HEAPF64[e+40>>>3>>>0]=i.z,HEAPF64[e+48>>>3>>>0]=s.alpha,HEAPF64[e+56>>>3>>>0]=s.beta,HEAPF64[e+64>>>3>>>0]=s.gamma},registerDeviceMotionEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.deviceMotionEvent||(JSEvents.deviceMotionEvent=_malloc(80));var o={target:findEventTarget(e),eventTypeString:s,callbackfunc:n,handlerFunc:(r=event)=>{fillDeviceMotionEventData(JSEvents.deviceMotionEvent,r,e),getWasmTableEntry(n)(i,JSEvents.deviceMotionEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_devicemotion_callback_on_thread(e,t,r,n){return registerDeviceMotionEventCallback(2,e>>>=0,t,r>>>=0,17,"devicemotion",n>>>=0)}function _emscripten_get_devicemotion_status(e){return e>>>=0,JSEvents.deviceMotionEvent?(HEAP32.set(HEAP32.subarray(JSEvents.deviceMotionEvent>>>0,80),e>>>0),0):-7}_emscripten_set_devicemotion_callback_on_thread.sig="ipipp",_emscripten_get_devicemotion_status.sig="ip";var screenOrientation=()=>{if(window.screen)return screen.orientation||screen.mozOrientation||screen.webkitOrientation},fillOrientationChangeEventData=e=>{var t=0,r=0,n=screenOrientation();"object"==typeof n?((t=["portrait-primary","portrait-secondary","landscape-primary","landscape-secondary"].indexOf(n.type))<0&&(t=["portrait","portrait","landscape","landscape"].indexOf(n.type)),t>=0&&(t=1<>>2>>>0]=t,HEAP32[e+4>>>2>>>0]=r},registerOrientationChangeEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.orientationChangeEvent||(JSEvents.orientationChangeEvent=_malloc(8));var o={target:e,eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{var r=JSEvents.orientationChangeEvent;fillOrientationChangeEventData(r),getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_orientationchange_callback_on_thread(e,t,r,n){return e>>>=0,r>>>=0,n>>>=0,window.screen&&screen.orientation?registerOrientationChangeEventCallback(screen.orientation,e,t,r,18,"change",n):-1}function _emscripten_get_orientation_status(e){return e>>>=0,!screenOrientation()&&typeof orientation>"u"?-1:(fillOrientationChangeEventData(e),0)}_emscripten_set_orientationchange_callback_on_thread.sig="ipipp",_emscripten_get_orientation_status.sig="ip";var _emscripten_lock_orientation=e=>{var t,r=[];if(1&e&&r.push("portrait-primary"),2&e&&r.push("portrait-secondary"),4&e&&r.push("landscape-primary"),8&e&&r.push("landscape-secondary"),screen.lockOrientation)t=screen.lockOrientation(r);else if(screen.mozLockOrientation)t=screen.mozLockOrientation(r);else{if(!screen.webkitLockOrientation)return-1;t=screen.webkitLockOrientation(r)}return t?0:-6};_emscripten_lock_orientation.sig="ii";var _emscripten_unlock_orientation=()=>{if(screen.unlockOrientation)screen.unlockOrientation();else if(screen.mozUnlockOrientation)screen.mozUnlockOrientation();else{if(!screen.webkitUnlockOrientation)return-1;screen.webkitUnlockOrientation()}return 0};_emscripten_unlock_orientation.sig="i";var fillFullscreenChangeEventData=e=>{var t=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement,r=!!t;HEAP8[e>>>0]=r,HEAP8[e+1>>>0]=JSEvents.fullscreenEnabled();var n=r?t:JSEvents.previousFullscreenElement,i=JSEvents.getNodeNameForTarget(n),s=(null==n?void 0:n.id)||"";stringToUTF8(i,e+2,128),stringToUTF8(s,e+130,128),HEAP32[e+260>>>2>>>0]=n?n.clientWidth:0,HEAP32[e+264>>>2>>>0]=n?n.clientHeight:0,HEAP32[e+268>>>2>>>0]=screen.width,HEAP32[e+272>>>2>>>0]=screen.height,r&&(JSEvents.previousFullscreenElement=t)},registerFullscreenChangeEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.fullscreenChangeEvent||(JSEvents.fullscreenChangeEvent=_malloc(276));var o={target:e,eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{var r=JSEvents.fullscreenChangeEvent;fillFullscreenChangeEventData(r),getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_fullscreenchange_callback_on_thread(e,t,r,n,i){return e>>>=0,t>>>=0,n>>>=0,i>>>=0,JSEvents.fullscreenEnabled()?(e=findEventTarget(e))?(registerFullscreenChangeEventCallback(e,t,r,n,19,"webkitfullscreenchange",i),registerFullscreenChangeEventCallback(e,t,r,n,19,"fullscreenchange",i)):-4:-1}function _emscripten_get_fullscreen_status(e){return e>>>=0,JSEvents.fullscreenEnabled()?(fillFullscreenChangeEventData(e),0):-1}function _emscripten_get_canvas_element_size(e,t,r){t>>>=0,r>>>=0;var n=findCanvasEventTarget(e>>>=0);if(!n)return-4;HEAP32[t>>>2>>>0]=n.width,HEAP32[r>>>2>>>0]=n.height}_emscripten_set_fullscreenchange_callback_on_thread.sig="ippipp",_emscripten_get_fullscreen_status.sig="ip",_emscripten_get_canvas_element_size.sig="ippp";var getCanvasElementSize=e=>{var t=stackSave(),r=stackAlloc(8),n=r+4,i=(_emscripten_get_canvas_element_size(stringToUTF8OnStack(e.id),r,n),[HEAP32[r>>>2>>>0],HEAP32[n>>>2>>>0]]);return stackRestore(t),i};function _emscripten_set_canvas_element_size(e,t,r){var n=findCanvasEventTarget(e>>>=0);return n?(n.width=t,n.height=r,0):-4}_emscripten_set_canvas_element_size.sig="ipii";var setCanvasElementSize=(e,t,r)=>{if(e.controlTransferredOffscreen){var n=stackSave();_emscripten_set_canvas_element_size(stringToUTF8OnStack(e.id),t,r),stackRestore(n)}else e.width=t,e.height=r},registerRestoreOldStyle=e=>{var t=getCanvasElementSize(e),r=t[0],n=t[1],i=e.style.width,s=e.style.height,a=e.style.backgroundColor,o=document.body.style.backgroundColor,l=e.style.paddingLeft,c=e.style.paddingRight,u=e.style.paddingTop,_=e.style.paddingBottom,d=e.style.marginLeft,p=e.style.marginRight,f=e.style.marginTop,m=e.style.marginBottom,g=document.body.style.margin,h=document.documentElement.style.overflow,v=document.body.scroll,b=e.style.imageRendering;function y(){document.fullscreenElement||document.webkitFullscreenElement||(document.removeEventListener("fullscreenchange",y),document.removeEventListener("webkitfullscreenchange",y),setCanvasElementSize(e,r,n),e.style.width=i,e.style.height=s,e.style.backgroundColor=a,o||(document.body.style.backgroundColor="white"),document.body.style.backgroundColor=o,e.style.paddingLeft=l,e.style.paddingRight=c,e.style.paddingTop=u,e.style.paddingBottom=_,e.style.marginLeft=d,e.style.marginRight=p,e.style.marginTop=f,e.style.marginBottom=m,document.body.style.margin=g,document.documentElement.style.overflow=h,document.body.scroll=v,e.style.imageRendering=b,e.GLctxObject&&e.GLctxObject.GLctx.viewport(0,0,r,n),currentFullscreenStrategy.canvasResizedCallback&&getWasmTableEntry(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData))}return document.addEventListener("fullscreenchange",y),document.addEventListener("webkitfullscreenchange",y),y},setLetterbox=(e,t,r)=>{e.style.paddingLeft=e.style.paddingRight=r+"px",e.style.paddingTop=e.style.paddingBottom=t+"px"},JSEvents_resizeCanvasForFullscreen=(e,t)=>{var r,n,i=registerRestoreOldStyle(e),s=t.softFullscreen?innerWidth:screen.width,a=t.softFullscreen?innerHeight:screen.height,o=getBoundingClientRect(e),l=o.width,c=o.height,u=getCanvasElementSize(e),_=u[0],d=u[1];if(3==t.scaleMode)setLetterbox(e,(a-c)/2,(s-l)/2),s=l,a=c;else if(2==t.scaleMode)if(s*d<_*a){var p=d*s/_;setLetterbox(e,(a-p)/2,0),a=p}else{var f=_*a/d;setLetterbox(e,0,(s-f)/2),s=f}(r=e.style).backgroundColor||(r.backgroundColor="black"),(n=document.body.style).backgroundColor||(n.backgroundColor="black"),e.style.width=s+"px",e.style.height=a+"px",1==t.filteringMode&&(e.style.imageRendering="optimizeSpeed",e.style.imageRendering="-moz-crisp-edges",e.style.imageRendering="-o-crisp-edges",e.style.imageRendering="-webkit-optimize-contrast",e.style.imageRendering="optimize-contrast",e.style.imageRendering="crisp-edges",e.style.imageRendering="pixelated");var m=2==t.canvasResolutionScaleMode?devicePixelRatio:1;if(0!=t.canvasResolutionScaleMode){var g=s*m|0,h=a*m|0;setCanvasElementSize(e,g,h),e.GLctxObject&&e.GLctxObject.GLctx.viewport(0,0,g,h)}return i},JSEvents_requestFullscreen=(e,t)=>{if((0!=t.scaleMode||0!=t.canvasResolutionScaleMode)&&JSEvents_resizeCanvasForFullscreen(e,t),e.requestFullscreen)e.requestFullscreen();else{if(!e.webkitRequestFullscreen)return JSEvents.fullscreenEnabled()?-3:-1;e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}return currentFullscreenStrategy=t,t.canvasResizedCallback&&getWasmTableEntry(t.canvasResizedCallback)(37,0,t.canvasResizedCallbackUserData),0},hideEverythingExceptGivenElement=e=>{for(var t=e,r=t.parentNode,n=[];t!=document.body;){for(var i=r.children,s=0;s{for(var t of e)t.node.style.display=t.displayState},currentFullscreenStrategy={},restoreOldWindowedStyle=null,softFullscreenResizeWebGLRenderTarget=()=>{var e,t=devicePixelRatio,r=2==currentFullscreenStrategy.canvasResolutionScaleMode,n=2==currentFullscreenStrategy.scaleMode,i=0!=currentFullscreenStrategy.canvasResolutionScaleMode,s=3==currentFullscreenStrategy.scaleMode,a=r?Math.round(innerWidth*t):innerWidth,o=r?Math.round(innerHeight*t):innerHeight,l=a,c=o,u=currentFullscreenStrategy.target,_=getCanvasElementSize(u),d=_[0],p=_[1];if(n&&(l*pd*c&&(l=c*d/p|0),e=(o-c)/2|0),i&&(setCanvasElementSize(u,l,c),u.GLctxObject&&u.GLctxObject.GLctx.viewport(0,0,l,c)),r&&(e/=t,l/=t,c/=t,l=Math.round(1e4*l)/1e4,c=Math.round(1e4*c)/1e4,e=Math.round(1e4*e)/1e4),s){var f=(innerHeight-jstoi_q(u.style.height))/2,m=(innerWidth-jstoi_q(u.style.width))/2;setLetterbox(u,f,m)}else u.style.width=l+"px",u.style.height=c+"px",m=(innerWidth-l)/2,setLetterbox(u,e,m);!s&¤tFullscreenStrategy.canvasResizedCallback&&getWasmTableEntry(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData)},doRequestFullscreen=(e,t)=>JSEvents.fullscreenEnabled()?(e=findEventTarget(e))?e.requestFullscreen||e.webkitRequestFullscreen?JSEvents.canPerformEventHandlerRequests()?JSEvents_requestFullscreen(e,t):t.deferUntilInEventHandler?(JSEvents.deferCall(JSEvents_requestFullscreen,1,[e,t]),1):-2:-3:-4:-1;function _emscripten_request_fullscreen(e,t){return doRequestFullscreen(e>>>=0,{scaleMode:0,canvasResolutionScaleMode:0,filteringMode:0,deferUntilInEventHandler:t,canvasResizedCallbackTargetThread:2})}function _emscripten_request_fullscreen_strategy(e,t,r){e>>>=0;var n={scaleMode:HEAP32[(r>>>=0)>>>2>>>0],canvasResolutionScaleMode:HEAP32[r+4>>>2>>>0],filteringMode:HEAP32[r+8>>>2>>>0],deferUntilInEventHandler:t,canvasResizedCallback:HEAP32[r+12>>>2>>>0],canvasResizedCallbackUserData:HEAP32[r+16>>>2>>>0]};return doRequestFullscreen(e,n)}function _emscripten_enter_soft_fullscreen(e,t){if(t>>>=0,!(e=findEventTarget(e>>>=0)))return-4;var r={scaleMode:HEAP32[t>>>2>>>0],canvasResolutionScaleMode:HEAP32[t+4>>>2>>>0],filteringMode:HEAP32[t+8>>>2>>>0],canvasResizedCallback:HEAP32[t+12>>>2>>>0],canvasResizedCallbackUserData:HEAP32[t+16>>>2>>>0],target:e,softFullscreen:!0},n=JSEvents_resizeCanvasForFullscreen(e,r);document.documentElement.style.overflow="hidden",document.body.scroll="no",document.body.style.margin="0px";var i=hideEverythingExceptGivenElement(e);return restoreOldWindowedStyle=function(){n(),restoreHiddenElements(i),removeEventListener("resize",softFullscreenResizeWebGLRenderTarget),r.canvasResizedCallback&&getWasmTableEntry(r.canvasResizedCallback)(37,0,r.canvasResizedCallbackUserData),currentFullscreenStrategy=0},currentFullscreenStrategy=r,addEventListener("resize",softFullscreenResizeWebGLRenderTarget),r.canvasResizedCallback&&getWasmTableEntry(r.canvasResizedCallback)(37,0,r.canvasResizedCallbackUserData),0}_emscripten_request_fullscreen.sig="ipi",_emscripten_request_fullscreen_strategy.sig="ipip",_emscripten_enter_soft_fullscreen.sig="ipp";var _emscripten_exit_soft_fullscreen=()=>(null==restoreOldWindowedStyle||restoreOldWindowedStyle(),restoreOldWindowedStyle=null,0);_emscripten_exit_soft_fullscreen.sig="i";var _emscripten_exit_fullscreen=()=>{if(!JSEvents.fullscreenEnabled())return-1;JSEvents.removeDeferredCalls(JSEvents_requestFullscreen);var e=specialHTMLTargets[1];if(e.exitFullscreen)e.fullscreenElement&&e.exitFullscreen();else{if(!e.webkitExitFullscreen)return-1;e.webkitFullscreenElement&&e.webkitExitFullscreen()}return 0};_emscripten_exit_fullscreen.sig="i";var fillPointerlockChangeEventData=e=>{var t=document.pointerLockElement||document.mozPointerLockElement||document.webkitPointerLockElement||document.msPointerLockElement,r=!!t;HEAP8[e>>>0]=r;var n=JSEvents.getNodeNameForTarget(t),i=(null==t?void 0:t.id)||"";stringToUTF8(n,e+1,128),stringToUTF8(i,e+129,128)},registerPointerlockChangeEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.pointerlockChangeEvent||(JSEvents.pointerlockChangeEvent=_malloc(257));var o={target:e,eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{var r=JSEvents.pointerlockChangeEvent;fillPointerlockChangeEventData(r),getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_pointerlockchange_callback_on_thread(e,t,r,n,i){return e>>>=0,t>>>=0,n>>>=0,i>>>=0,document&&document.body&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?(e=findEventTarget(e))?(registerPointerlockChangeEventCallback(e,t,r,n,20,"mozpointerlockchange",i),registerPointerlockChangeEventCallback(e,t,r,n,20,"webkitpointerlockchange",i),registerPointerlockChangeEventCallback(e,t,r,n,20,"mspointerlockchange",i),registerPointerlockChangeEventCallback(e,t,r,n,20,"pointerlockchange",i)):-4:-1}_emscripten_set_pointerlockchange_callback_on_thread.sig="ippipp";var registerPointerlockErrorEventCallback=(e,t,r,n,i,s,a)=>{var o={target:e,eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{getWasmTableEntry(n)(i,0,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_pointerlockerror_callback_on_thread(e,t,r,n,i){return e>>>=0,t>>>=0,n>>>=0,i>>>=0,document&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?(e=findEventTarget(e))?(registerPointerlockErrorEventCallback(e,t,r,n,38,"mozpointerlockerror",i),registerPointerlockErrorEventCallback(e,t,r,n,38,"webkitpointerlockerror",i),registerPointerlockErrorEventCallback(e,t,r,n,38,"mspointerlockerror",i),registerPointerlockErrorEventCallback(e,t,r,n,38,"pointerlockerror",i)):-4:-1}function _emscripten_get_pointerlock_status(e){return(e>>>=0)&&fillPointerlockChangeEventData(e),document.body&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?0:-1}_emscripten_set_pointerlockerror_callback_on_thread.sig="ippipp",_emscripten_get_pointerlock_status.sig="ip";var requestPointerLock=e=>e.requestPointerLock?(e.requestPointerLock(),0):document.body.requestPointerLock?-3:-1;function _emscripten_request_pointerlock(e,t){return(e=findEventTarget(e>>>=0))?e.requestPointerLock?JSEvents.canPerformEventHandlerRequests()?requestPointerLock(e):t?(JSEvents.deferCall(requestPointerLock,2,[e]),1):-2:-1:-4}_emscripten_request_pointerlock.sig="ipi";var _emscripten_exit_pointerlock=()=>(JSEvents.removeDeferredCalls(requestPointerLock),document.exitPointerLock?(document.exitPointerLock(),0):-1);_emscripten_exit_pointerlock.sig="i";var _emscripten_vibrate=e=>navigator.vibrate?(navigator.vibrate(e),0):-1;function _emscripten_vibrate_pattern(e,t){if(e>>>=0,!navigator.vibrate)return-1;for(var r=[],n=0;n>>2>>>0];r.push(i)}return navigator.vibrate(r),0}_emscripten_vibrate.sig="ii",_emscripten_vibrate_pattern.sig="ipi";var fillVisibilityChangeEventData=e=>{var t=["hidden","visible","prerender","unloaded"].indexOf(document.visibilityState);HEAP8[e>>>0]=document.hidden,HEAP32[e+4>>>2>>>0]=t},registerVisibilityChangeEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.visibilityChangeEvent||(JSEvents.visibilityChangeEvent=_malloc(8));var o={target:e,eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{var r=JSEvents.visibilityChangeEvent;fillVisibilityChangeEventData(r),getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_visibilitychange_callback_on_thread(e,t,r,n){return e>>>=0,r>>>=0,n>>>=0,specialHTMLTargets[1]?registerVisibilityChangeEventCallback(specialHTMLTargets[1],e,t,r,21,"visibilitychange",n):-4}function _emscripten_get_visibility_status(e){return e>>>=0,typeof document.visibilityState>"u"&&typeof document.hidden>"u"?-1:(fillVisibilityChangeEventData(e),0)}_emscripten_set_visibilitychange_callback_on_thread.sig="ipipp",_emscripten_get_visibility_status.sig="ip";var registerTouchEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.touchEvent||(JSEvents.touchEvent=_malloc(1552));var o={target:e=findEventTarget(e),allowsDeferredCalls:"touchstart"==s||"touchend"==s,eventTypeString:s,callbackfunc:n,handlerFunc:r=>{var s={},a=r.touches;for(let e of a)e.isChanged=e.onTarget=0,s[e.identifier]=e;for(let e of r.changedTouches)e.isChanged=1,s[e.identifier]=e;for(let e of r.targetTouches)s[e.identifier].onTarget=1;var o=JSEvents.touchEvent;HEAPF64[o>>>3>>>0]=r.timeStamp,HEAP8[o+12>>>0]=r.ctrlKey,HEAP8[o+13>>>0]=r.shiftKey,HEAP8[o+14>>>0]=r.altKey,HEAP8[o+15>>>0]=r.metaKey;var l=o+16,c=getBoundingClientRect(e),u=0;for(let e of Object.values(s)){var _=l>>>2;if(HEAP32[_+0>>>0]=e.identifier,HEAP32[_+1>>>0]=e.screenX,HEAP32[_+2>>>0]=e.screenY,HEAP32[_+3>>>0]=e.clientX,HEAP32[_+4>>>0]=e.clientY,HEAP32[_+5>>>0]=e.pageX,HEAP32[_+6>>>0]=e.pageY,HEAP8[l+28>>>0]=e.isChanged,HEAP8[l+29>>>0]=e.onTarget,HEAP32[_+8>>>0]=e.clientX-(0|c.left),HEAP32[_+9>>>0]=e.clientY-(0|c.top),l+=48,++u>31)break}HEAP32[o+8>>>2>>>0]=u,getWasmTableEntry(n)(i,o,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_touchstart_callback_on_thread(e,t,r,n,i){return registerTouchEventCallback(e>>>=0,t>>>=0,r,n>>>=0,22,"touchstart",i>>>=0)}function _emscripten_set_touchend_callback_on_thread(e,t,r,n,i){return registerTouchEventCallback(e>>>=0,t>>>=0,r,n>>>=0,23,"touchend",i>>>=0)}function _emscripten_set_touchmove_callback_on_thread(e,t,r,n,i){return registerTouchEventCallback(e>>>=0,t>>>=0,r,n>>>=0,24,"touchmove",i>>>=0)}function _emscripten_set_touchcancel_callback_on_thread(e,t,r,n,i){return registerTouchEventCallback(e>>>=0,t>>>=0,r,n>>>=0,25,"touchcancel",i>>>=0)}_emscripten_set_touchstart_callback_on_thread.sig="ippipp",_emscripten_set_touchend_callback_on_thread.sig="ippipp",_emscripten_set_touchmove_callback_on_thread.sig="ippipp",_emscripten_set_touchcancel_callback_on_thread.sig="ippipp";var fillGamepadEventData=(e,t)=>{HEAPF64[e>>>3>>>0]=t.timestamp;for(var r=0;r>>3>>>0]=t.axes[r];for(r=0;r>>3>>>0]=t.buttons[r].value:HEAPF64[e+8*r+528>>>3>>>0]=t.buttons[r];for(r=0;r>>0]=t.buttons[r].pressed:HEAP8[e+r+1040>>>0]=1==t.buttons[r];HEAP8[e+1104>>>0]=t.connected,HEAP32[e+1108>>>2>>>0]=t.index,HEAP32[e+8>>>2>>>0]=t.axes.length,HEAP32[e+12>>>2>>>0]=t.buttons.length,stringToUTF8(t.id,e+1112,64),stringToUTF8(t.mapping,e+1176,64)},registerGamepadEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.gamepadEvent||(JSEvents.gamepadEvent=_malloc(1240));var o={target:findEventTarget(e),allowsDeferredCalls:!0,eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{var r=JSEvents.gamepadEvent;fillGamepadEventData(r,e.gamepad),getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)},_emscripten_sample_gamepad_data=()=>{try{if(navigator.getGamepads)return(JSEvents.lastGamepadState=navigator.getGamepads())?0:-1}catch(e){navigator.getGamepads=null}return-1};function _emscripten_set_gamepadconnected_callback_on_thread(e,t,r,n){return e>>>=0,r>>>=0,n>>>=0,_emscripten_sample_gamepad_data()?-1:registerGamepadEventCallback(2,e,t,r,26,"gamepadconnected",n)}function _emscripten_set_gamepaddisconnected_callback_on_thread(e,t,r,n){return e>>>=0,r>>>=0,n>>>=0,_emscripten_sample_gamepad_data()?-1:registerGamepadEventCallback(2,e,t,r,27,"gamepaddisconnected",n)}_emscripten_sample_gamepad_data.sig="i",_emscripten_set_gamepadconnected_callback_on_thread.sig="ipipp",_emscripten_set_gamepaddisconnected_callback_on_thread.sig="ipipp";var _emscripten_get_num_gamepads=()=>JSEvents.lastGamepadState.length;function _emscripten_get_gamepad_status(e,t){return t>>>=0,e<0||e>=JSEvents.lastGamepadState.length?-5:JSEvents.lastGamepadState[e]?(fillGamepadEventData(t,JSEvents.lastGamepadState[e]),0):-7}_emscripten_get_num_gamepads.sig="i",_emscripten_get_gamepad_status.sig="iip";var registerBeforeUnloadEventCallback=(e,t,r,n,i,s)=>{var a={target:findEventTarget(e),eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{var r=getWasmTableEntry(n)(i,0,t);if(r&&(r=UTF8ToString(r)),r)return e.preventDefault(),e.returnValue=r,r},useCapture:r};return JSEvents.registerOrRemoveHandler(a)};function _emscripten_set_beforeunload_callback_on_thread(e,t,r){return typeof onbeforeunload>"u"?-1:1!=(r>>>=0)?-5:registerBeforeUnloadEventCallback(2,e>>>=0,!0,t>>>=0,28,"beforeunload")}_emscripten_set_beforeunload_callback_on_thread.sig="ippp";var fillBatteryEventData=(e,t)=>{HEAPF64[e>>>3>>>0]=t.chargingTime,HEAPF64[e+8>>>3>>>0]=t.dischargingTime,HEAPF64[e+16>>>3>>>0]=t.level,HEAP8[e+24>>>0]=t.charging},battery=()=>navigator.battery||navigator.mozBattery||navigator.webkitBattery,registerBatteryEventCallback=(e,t,r,n,i,s,a)=>{JSEvents.batteryEvent||(JSEvents.batteryEvent=_malloc(32));var o={target:findEventTarget(e),eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{var r=JSEvents.batteryEvent;fillBatteryEventData(r,battery()),getWasmTableEntry(n)(i,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_batterychargingchange_callback_on_thread(e,t,r){return e>>>=0,t>>>=0,r>>>=0,battery()?registerBatteryEventCallback(battery(),e,!0,t,29,"chargingchange",r):-1}function _emscripten_set_batterylevelchange_callback_on_thread(e,t,r){return e>>>=0,t>>>=0,r>>>=0,battery()?registerBatteryEventCallback(battery(),e,!0,t,30,"levelchange",r):-1}function _emscripten_get_battery_status(e){return e>>>=0,battery()?(fillBatteryEventData(e,battery()),0):-1}function _emscripten_set_element_css_size(e,t,r){return(e=findEventTarget(e>>>=0))?(e.style.width=t+"px",e.style.height=r+"px",0):-4}function _emscripten_get_element_css_size(e,t,r){if(t>>>=0,r>>>=0,!(e=findEventTarget(e>>>=0)))return-4;var n=getBoundingClientRect(e);return HEAPF64[t>>>3>>>0]=n.width,HEAPF64[r>>>3>>>0]=n.height,0}_emscripten_set_batterychargingchange_callback_on_thread.sig="ippp",_emscripten_set_batterylevelchange_callback_on_thread.sig="ippp",_emscripten_get_battery_status.sig="ip",_emscripten_set_element_css_size.sig="ipdd",_emscripten_get_element_css_size.sig="ippp";var _emscripten_html5_remove_all_event_listeners=()=>JSEvents.removeAllEventListeners();_emscripten_html5_remove_all_event_listeners.sig="v";var _emscripten_request_animation_frame=function(e,t){return e>>>=0,t>>>=0,requestAnimationFrame((r=>getWasmTableEntry(e)(r,t)))};_emscripten_request_animation_frame.sig="ipp";var _emscripten_cancel_animation_frame=e=>cancelAnimationFrame(e);function _emscripten_request_animation_frame_loop(e,t){return e>>>=0,t>>>=0,requestAnimationFrame((function r(n){getWasmTableEntry(e)(n,t)&&requestAnimationFrame(r)}))}_emscripten_cancel_animation_frame.sig="vi",_emscripten_request_animation_frame_loop.sig="vpp";var _emscripten_performance_now=()=>performance.now();_emscripten_performance_now.sig="d";var _emscripten_get_device_pixel_ratio=()=>"number"==typeof devicePixelRatio&&devicePixelRatio||1;function _emscripten_get_callstack(e,t,r){t>>>=0;var n=getCallstack(e);return!t||r<=0?lengthBytesUTF8(n)+1:stringToUTF8(n,t,r)+1}_emscripten_get_device_pixel_ratio.sig="d",_emscripten_get_callstack.sig="iipi";var convertFrameToPC=e=>(abort("Cannot use convertFrameToPC (needed by __builtin_return_address) without -sUSE_OFFSET_CONVERTER"),0);function _emscripten_return_address(e){var t=jsStackTrace().split("\n");"Error"==t[0]&&t.shift();var r=t[e+3];return convertFrameToPC(r)}_emscripten_return_address.sig="pi";var UNWIND_CACHE={},saveInUnwindCache=e=>{e.forEach((e=>{var t=convertFrameToPC(e);t&&(UNWIND_CACHE[t]=e)}))};function _emscripten_stack_snapshot(){var e=jsStackTrace().split("\n");return"Error"==e[0]&&e.shift(),saveInUnwindCache(e),UNWIND_CACHE.last_addr=convertFrameToPC(e[3]),UNWIND_CACHE.last_stack=e,UNWIND_CACHE.last_addr}function _emscripten_stack_unwind_buffer(e,t,r){var n;e>>>=0,t>>>=0,UNWIND_CACHE.last_addr==e?n=UNWIND_CACHE.last_stack:("Error"==(n=jsStackTrace().split("\n"))[0]&&n.shift(),saveInUnwindCache(n));for(var i=3;n[i]&&convertFrameToPC(n[i])!=e;)++i;for(var s=0;s>>2>>>0]=convertFrameToPC(n[s+i]);return s}function _emscripten_pc_get_function(e){return abort("Cannot use emscripten_pc_get_function without -sUSE_OFFSET_CONVERTER"),0}_emscripten_stack_snapshot.sig="p",_emscripten_stack_unwind_buffer.sig="ippi",_emscripten_pc_get_function.sig="pp";var convertPCtoSourceLocation=e=>{if(UNWIND_CACHE.last_get_source_pc==e)return UNWIND_CACHE.last_source;var t,r;if(!r){var n=UNWIND_CACHE[e];if(!n)return null;((t=/\((.*):(\d+):(\d+)\)$/.exec(n))||(t=/@(.*):(\d+):(\d+)/.exec(n)))&&(r={file:t[1],line:t[2],column:t[3]})}return UNWIND_CACHE.last_get_source_pc=e,UNWIND_CACHE.last_source=r,r};function _emscripten_pc_get_file(e){var t=convertPCtoSourceLocation(e>>>=0);return t?(_emscripten_pc_get_file.ret&&_free(_emscripten_pc_get_file.ret),_emscripten_pc_get_file.ret=stringToNewUTF8(t.file),_emscripten_pc_get_file.ret):0}function _emscripten_pc_get_line(e){var t=convertPCtoSourceLocation(e>>>=0);return t?t.line:0}function _emscripten_pc_get_column(e){var t=convertPCtoSourceLocation(e>>>=0);return t&&t.column||0}_emscripten_pc_get_file.sig="pp",_emscripten_pc_get_line.sig="ip",_emscripten_pc_get_column.sig="ip";var _sched_yield=()=>0;Module._sched_yield=_sched_yield,_sched_yield.sig="i";var checkWasiClock=e=>0==e||1==e||2==e||3==e;function _clock_time_get(e,t,r,n){var i;if(convertI32PairToI53Checked(t,r),n>>>=0,!checkWasiClock(e))return 28;if(0===e)i=Date.now();else{if(!nowIsMonotonic)return 52;i=_emscripten_get_now()}var s=Math.round(1e3*i*1e3);return HEAP32[n>>>2>>>0]=s>>>0,HEAP32[n+4>>>2>>>0]=s/Math.pow(2,32)>>>0,0}function _clock_res_get(e,t){if(t>>>=0,!checkWasiClock(e))return 28;var r;if(0===e)r=1e6;else{if(!nowIsMonotonic)return 52;r=_emscripten_get_now_res()}return HEAP32[t>>>2>>>0]=r>>>0,HEAP32[t+4>>>2>>>0]=r/Math.pow(2,32)>>>0,0}_clock_time_get.sig="iiiip",_clock_res_get.sig="iip";var wasiRightsToMuslOFlags=e=>{if(2&e&&64&e)return 2;if(2&e)return 0;if(64&e)return 1;throw new FS.ErrnoError(28)},wasiOFlagsToMuslOFlags=e=>{var t=0;return 1&e&&(t|=64),8&e&&(t|=512),2&e&&(t|=65536),4&e&&(t|=128),t},_emscripten_unwind_to_js_event_loop=()=>{throw"unwind"};_emscripten_unwind_to_js_event_loop.sig="v";var safeSetTimeout=(e,t)=>setTimeout((()=>{callUserCallback(e)}),t),setImmediateWrapped=e=>{setImmediateWrapped.mapping||(setImmediateWrapped.mapping=[]);var t=setImmediateWrapped.mapping.length;return setImmediateWrapped.mapping[t]=setImmediate((()=>{setImmediateWrapped.mapping[t]=void 0,e()})),t},clearImmediateWrapped=e=>{clearImmediate(setImmediateWrapped.mapping[e]),setImmediateWrapped.mapping[e]=void 0},polyfillSetImmediate=()=>{},_emscripten_set_immediate=function(e,t){return e>>>=0,t>>>=0,emSetImmediate((()=>{callUserCallback((()=>getWasmTableEntry(e)(t)))}))};_emscripten_set_immediate.sig="ipp";var _emscripten_clear_immediate=e=>{emClearImmediate(e)};_emscripten_clear_immediate.sig="vi";var _emscripten_set_immediate_loop=function(e,t){e>>>=0,t>>>=0,emSetImmediate((function r(){callUserCallback((()=>{getWasmTableEntry(e)(t)&&emSetImmediate(r)}))}))};_emscripten_set_immediate_loop.sig="vpp";var _emscripten_set_timeout=function(e,t,r){return e>>>=0,r>>>=0,safeSetTimeout((()=>getWasmTableEntry(e)(r)),t)};_emscripten_set_timeout.sig="ipdp";var _emscripten_clear_timeout=clearTimeout;_emscripten_clear_timeout.sig="vi";var _emscripten_set_timeout_loop=function(e,t,r){return e>>>=0,r>>>=0,setTimeout((function n(){var i=_emscripten_get_now(),s=i+t;callUserCallback((()=>{getWasmTableEntry(e)(i,r)&&setTimeout(n,s-_emscripten_get_now())}))}),0)};_emscripten_set_timeout_loop.sig="vpdp";var _emscripten_set_interval=function(e,t,r){return e>>>=0,r>>>=0,setInterval((()=>{callUserCallback((()=>getWasmTableEntry(e)(r)))}),t)};_emscripten_set_interval.sig="ipdp";var _emscripten_clear_interval=e=>{clearInterval(e)};_emscripten_clear_interval.sig="vi";var registerPostMainLoop=e=>{typeof MainLoop<"u"&&MainLoop.postMainLoop.push(e)},registerPreMainLoop=e=>{typeof MainLoop<"u"&&MainLoop.preMainLoop.push(e)};function _emscripten_get_main_loop_timing(e,t){t>>>=0,(e>>>=0)&&(HEAP32[e>>>2>>>0]=MainLoop.timingMode),t&&(HEAP32[t>>>2>>>0]=MainLoop.timingValue)}function _emscripten_set_main_loop(e,t,r){var n=getWasmTableEntry(e>>>=0);setMainLoop(n,t,r)}_emscripten_get_main_loop_timing.sig="vpp",_emscripten_set_main_loop.sig="vpii";var _emscripten_set_main_loop_arg=function(e,t,r,n){e>>>=0,setMainLoop((()=>getWasmTableEntry(e)(t)),r,n,t>>>=0)};_emscripten_set_main_loop_arg.sig="vppii";var _emscripten_cancel_main_loop=()=>{MainLoop.pause(),MainLoop.func=null};_emscripten_cancel_main_loop.sig="v";var _emscripten_pause_main_loop=()=>{MainLoop.pause()};_emscripten_pause_main_loop.sig="v";var _emscripten_resume_main_loop=()=>{MainLoop.resume()};_emscripten_resume_main_loop.sig="v";var __emscripten_push_main_loop_blocker=function(e,t,r){e>>>=0,t>>>=0,r>>>=0,MainLoop.queue.push({func:()=>{getWasmTableEntry(e)(t)},name:UTF8ToString(r),counted:!0}),MainLoop.updateStatus()};__emscripten_push_main_loop_blocker.sig="vppp";var __emscripten_push_uncounted_main_loop_blocker=function(e,t,r){e>>>=0,t>>>=0,r>>>=0,MainLoop.queue.push({func:()=>{getWasmTableEntry(e)(t)},name:UTF8ToString(r),counted:!1}),MainLoop.updateStatus()};__emscripten_push_uncounted_main_loop_blocker.sig="vppp";var _emscripten_set_main_loop_expected_blockers=e=>{MainLoop.expectedBlockers=e,MainLoop.remainingBlockers=e,MainLoop.updateStatus()};_emscripten_set_main_loop_expected_blockers.sig="vi";var idsToPromises=(e,t)=>{for(var r=[],n=0;n>>2>>>0];r[n]=getPromise(i)}return r},makePromiseCallback=(e,t)=>r=>{var n=stackSave(),i=stackAlloc(POINTER_SIZE);HEAPU32[i>>>2>>>0]=0;try{var s=getWasmTableEntry(e)(i,t,r),a=HEAPU32[i>>>2>>>0]}catch(e){throw"number"!=typeof e?0:e}finally{stackRestore(n)}switch(s){case 0:return a;case 1:return getPromise(a);case 2:var o=getPromise(a);return _emscripten_promise_destroy(a),o;case 3:throw a}};function _emscripten_promise_then(e,t,r,n){t>>>=0,r>>>=0,n>>>=0;var i=getPromise(e>>>=0);return promiseMap.allocate({promise:i.then(makePromiseCallback(t,n),makePromiseCallback(r,n))})}_emscripten_promise_then.sig="ppppp";var _emscripten_promise_all=function(e,t,r){t>>>=0;var n=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.all(n).then((e=>{if(t)for(var n=0;n>>2>>>0]=i}return t}))})};_emscripten_promise_all.sig="pppp";var setPromiseResult=(e,t,r)=>{var n=t?0:3;HEAP32[e>>>2>>>0]=n,HEAPU32[e+4>>>2>>>0]=r},_emscripten_promise_all_settled=function(e,t,r){t>>>=0;var n=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.allSettled(n).then((e=>{if(t)for(var n=t,i=0;i>>=0;var n=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.any(n).catch((e=>{if(t)for(var n=0;n>>2>>>0]=e.errors[n];throw t}))})};function _emscripten_promise_race(e,t){var r=idsToPromises(e>>>=0,t>>>=0);return promiseMap.allocate({promise:Promise.race(r)})}function _emscripten_promise_await(e,t){abort("emscripten_promise_await is only available with ASYNCIFY")}_emscripten_promise_any.sig="pppp",_emscripten_promise_race.sig="ppp",_emscripten_promise_await.sig="vpp";var getExceptionMessageCommon=e=>{var t=stackSave(),r=stackAlloc(4),n=stackAlloc(4);___get_exception_message(e,r,n);var i,s=HEAPU32[r>>>2>>>0],a=HEAPU32[n>>>2>>>0],o=UTF8ToString(s);return _free(s),a&&(i=UTF8ToString(a),_free(a)),stackRestore(t),[o,i]},getCppExceptionTag=()=>___cpp_exception,getCppExceptionThrownObjectFromWebAssemblyException=e=>{var t=e.getArg(getCppExceptionTag(),0);return ___thrown_object_from_unwind_exception(t)},incrementExceptionRefcount=e=>{var t=getCppExceptionThrownObjectFromWebAssemblyException(e);___cxa_increment_exception_refcount(t)},decrementExceptionRefcount=e=>{var t=getCppExceptionThrownObjectFromWebAssemblyException(e);___cxa_decrement_exception_refcount(t)},getExceptionMessage=e=>{var t=getCppExceptionThrownObjectFromWebAssemblyException(e);return getExceptionMessageCommon(t)},Browser={useWebGL:!1,isFullscreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init(){if(!Browser.initted){Browser.initted=!0;var e={canHandle:function(e){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp|webp)$/i.test(e)},handle:function(e,t,r,n){var i=new Blob([e],{type:Browser.getMimetype(t)});i.size!==e.length&&(i=new Blob([new Uint8Array(e).buffer],{type:Browser.getMimetype(t)}));var s=URL.createObjectURL(i),a=new Image;a.onload=()=>{var n=document.createElement("canvas");n.width=a.width,n.height=a.height,n.getContext("2d").drawImage(a,0,0),preloadedImages[t]=n,URL.revokeObjectURL(s),null==r||r(e)},a.onerror=e=>{err("Image ".concat(s," could not be decoded")),null==n||n()},a.src=s}};preloadPlugins.push(e);var t={canHandle:function(e){return!Module.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,r,n){var i=!1;function s(n){i||(i=!0,preloadedAudios[t]=n,null==r||r(e))}var a=new Blob([e],{type:Browser.getMimetype(t)}),o=URL.createObjectURL(a),l=new Audio;l.addEventListener("canplaythrough",(()=>s(l)),!1),l.onerror=function(r){i||(err("warning: browser could not fully decode audio ".concat(t,", trying slower base64 approach")),l.src="data:audio/x-"+t.substr(-3)+";base64,"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",n=0,i=0,s=0;s=6;){var a=n>>i-6&63;i-=6,r+=t[a]}return 2==i?(r+=t[(3&n)<<4],r+="=="):4==i&&(r+=t[(15&n)<<2],r+="="),r}(e),s(l))},l.src=o,safeSetTimeout((()=>{s(l)}),1e4)}};preloadPlugins.push(t);var r=Module.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||(()=>{}),r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),r.exitPointerLock=r.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),document.addEventListener("mspointerlockchange",n,!1),Module.elementPointerLock&&r.addEventListener("click",(e=>{!Browser.pointerLock&&Module.canvas.requestPointerLock&&(Module.canvas.requestPointerLock(),e.preventDefault())}),!1))}function n(){Browser.pointerLock=document.pointerLockElement===Module.canvas||document.mozPointerLockElement===Module.canvas||document.webkitPointerLockElement===Module.canvas||document.msPointerLockElement===Module.canvas}},createContext(e,t,r,n){if(t&&Module.ctx&&e==Module.canvas)return Module.ctx;var i,s;if(t){var a={antialias:!1,alpha:!1,majorVersion:1};if(n)for(var o in n)a[o]=n[o];typeof GL<"u"&&(s=GL.createContext(e,a))&&(i=GL.getContext(s).GLctx)}else i=e.getContext("2d");return i?(r&&(Module.ctx=i,t&&GL.makeContextCurrent(s),Browser.useWebGL=t,Browser.moduleContextCreatedCallbacks.forEach((e=>e())),Browser.init()),i):null},fullscreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullscreen(e,t){Browser.lockPointer=e,Browser.resizeCanvas=t,typeof Browser.lockPointer>"u"&&(Browser.lockPointer=!0),typeof Browser.resizeCanvas>"u"&&(Browser.resizeCanvas=!1);var r=Module.canvas;function n(){var e,t;Browser.isFullscreen=!1;var n=r.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===n?(r.exitFullscreen=Browser.exitFullscreen,Browser.lockPointer&&r.requestPointerLock(),Browser.isFullscreen=!0,Browser.resizeCanvas?Browser.setFullscreenCanvasSize():Browser.updateCanvasDimensions(r)):(n.parentNode.insertBefore(r,n),n.parentNode.removeChild(n),Browser.resizeCanvas?Browser.setWindowedCanvasSize():Browser.updateCanvasDimensions(r)),null==(e=Module.onFullScreen)||e.call(Module,Browser.isFullscreen),null==(t=Module.onFullscreen)||t.call(Module,Browser.isFullscreen)}Browser.fullscreenHandlersInstalled||(Browser.fullscreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1));var i=document.createElement("div");r.parentNode.insertBefore(i,r),i.appendChild(r),i.requestFullscreen=i.requestFullscreen||i.mozRequestFullScreen||i.msRequestFullscreen||(i.webkitRequestFullscreen?()=>i.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(i.webkitRequestFullScreen?()=>i.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),i.requestFullscreen()},exitFullscreen:()=>!!Browser.isFullscreen&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0),safeSetTimeout:(e,t)=>safeSetTimeout(e,t),getMimetype:e=>({jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]),getUserMedia(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:e=>e.movementX||e.mozMovementX||e.webkitMovementX||0,getMovementY:e=>e.movementY||e.mozMovementY||e.webkitMovementY||0,getMouseWheelDelta(e){var t=0;switch(e.type){case"DOMMouseScroll":t=e.detail/3;break;case"mousewheel":t=e.wheelDelta/120;break;case"wheel":switch(t=e.deltaY,e.deltaMode){case 0:t/=100;break;case 1:t/=3;break;case 2:t*=80;break;default:throw"unrecognized mouse wheel delta mode: "+e.deltaMode}break;default:throw"unrecognized mouse wheel event: "+e.type}return t},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseCoords(e,t){var r=Module.canvas.getBoundingClientRect(),n=Module.canvas.width,i=Module.canvas.height,s=typeof window.scrollX<"u"?window.scrollX:window.pageXOffset,a=typeof window.scrollY<"u"?window.scrollY:window.pageYOffset,o=e-(s+r.left),l=t-(a+r.top);return{x:o*=n/r.width,y:l*=i/r.height}},setMouseCoords(e,t){let{x:r,y:n}=Browser.calculateMouseCoords(e,t);Browser.mouseMovementX=r-Browser.mouseX,Browser.mouseMovementY=n-Browser.mouseY,Browser.mouseX=r,Browser.mouseY=n},calculateMouseEvent(e){if(Browser.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?Browser.mouseMovementX=Browser.mouseMovementY=0:(Browser.mouseMovementX=Browser.getMovementX(e),Browser.mouseMovementY=Browser.getMovementY(e)),Browser.mouseX+=Browser.mouseMovementX,Browser.mouseY+=Browser.mouseMovementY;else{if("touchstart"===e.type||"touchend"===e.type||"touchmove"===e.type){var t=e.touch;if(void 0===t)return;var r=Browser.calculateMouseCoords(t.pageX,t.pageY);if("touchstart"===e.type)Browser.lastTouches[t.identifier]=r,Browser.touches[t.identifier]=r;else if("touchend"===e.type||"touchmove"===e.type){var n=Browser.touches[t.identifier];n||(n=r),Browser.lastTouches[t.identifier]=n,Browser.touches[t.identifier]=r}return}Browser.setMouseCoords(e.pageX,e.pageY)}},resizeListeners:[],updateResizeListeners(){var e=Module.canvas;Browser.resizeListeners.forEach((t=>t(e.width,e.height)))},setCanvasSize(e,t,r){var n=Module.canvas;Browser.updateCanvasDimensions(n,e,t),r||Browser.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize(){if(typeof SDL<"u"){var e=HEAPU32[SDL.screen>>>2>>>0];e|=8388608,HEAP32[SDL.screen>>>2>>>0]=e}Browser.updateCanvasDimensions(Module.canvas),Browser.updateResizeListeners()},setWindowedCanvasSize(){if(typeof SDL<"u"){var e=HEAPU32[SDL.screen>>>2>>>0];e&=-8388609,HEAP32[SDL.screen>>>2>>>0]=e}Browser.updateCanvasDimensions(Module.canvas),Browser.updateResizeListeners()},updateCanvasDimensions(e,t,r){t&&r?(e.widthNative=t,e.heightNative=r):(t=e.widthNative,r=e.heightNative);var n=t,i=r;if(Module.forcedAspectRatio&&Module.forcedAspectRatio>0&&(n/i>>=0,r>>>=0;var n=UTF8ToString(e>>>=0),i=FS.analyzePath(n);return i.exists?(FS.createPreloadedFile(PATH.dirname(n),PATH.basename(n),new Uint8Array(i.object.contents),!0,!0,(()=>{t&&getWasmTableEntry(t)(e)}),(()=>{r&&getWasmTableEntry(r)(e)}),!0),0):-1};_emscripten_run_preload_plugins.sig="ippp";var Browser_asyncPrepareDataCounter=0,_emscripten_run_preload_plugins_data=function(e,t,r,n,i,s){e>>>=0,n>>>=0,i>>>=0,s>>>=0;var a=UTF8ToString(r>>>=0),o="prepare_data_"+Browser_asyncPrepareDataCounter+++"."+a,l=stringToNewUTF8(o);FS.createPreloadedFile("/",o,HEAPU8.subarray(e>>>0,e+t>>>0),!0,!0,(()=>{i&&getWasmTableEntry(i)(n,l)}),(()=>{s&&getWasmTableEntry(s)(n)}),!0)};_emscripten_run_preload_plugins_data.sig="vpipppp";var _emscripten_async_run_script=function(e,t){e>>>=0,safeSetTimeout((()=>_emscripten_run_script(e)),t)};_emscripten_async_run_script.sig="vpi";var _emscripten_async_load_script=function(url,onload,onerror){url>>>=0,onload>>>=0,onerror>>>=0,url=UTF8ToString(url);var loadDone=()=>{if(onload){var e=()=>callUserCallback(getWasmTableEntry(onload));runDependencies>0?dependenciesFulfilled=e:e()}},loadError=()=>{onerror&&callUserCallback(getWasmTableEntry(onerror))};if(ENVIRONMENT_IS_NODE)readAsync(url,!1).then((data=>{eval(data),loadDone()}),loadError);else{var script=document.createElement("script");script.onload=loadDone,script.onerror=loadError,script.src=url,document.body.appendChild(script)}};_emscripten_async_load_script.sig="vppp";var safeRequestAnimationFrame=e=>MainLoop.requestAnimationFrame((()=>{callUserCallback(e)}));function _emscripten_async_call(e,t,r){function n(){getWasmTableEntry(e)(t)}e>>>=0,t>>>=0,r>=0||ENVIRONMENT_IS_NODE?safeSetTimeout(n,r):safeRequestAnimationFrame(n)}function _emscripten_get_window_title(){return _emscripten_get_window_title.buffer||(_emscripten_get_window_title.buffer=_malloc(256)),stringToUTF8(document.title,_emscripten_get_window_title.buffer,256),_emscripten_get_window_title.buffer}function _emscripten_set_window_title(e){return e>>>=0,document.title=UTF8ToString(e)}function _emscripten_get_screen_size(e,t){t>>>=0,HEAP32[(e>>>=0)>>>2>>>0]=screen.width,HEAP32[t>>>2>>>0]=screen.height}_emscripten_async_call.sig="vppi",_emscripten_get_window_title.sig="p",_emscripten_set_window_title.sig="vp",_emscripten_get_screen_size.sig="vpp";var _emscripten_hide_mouse=()=>{for(var e=document.styleSheets[0],t=e.cssRules,r=0;r{Browser.setCanvasSize(e,t)};function _emscripten_get_canvas_size(e,t,r){e>>>=0,t>>>=0,r>>>=0;var n=Module.canvas;HEAP32[e>>>2>>>0]=n.width,HEAP32[t>>>2>>>0]=n.height,HEAP32[r>>>2>>>0]=Browser.isFullscreen?1:0}function _emscripten_create_worker(e){e=UTF8ToString(e>>>=0);var t=Browser.workers.length,r={worker:new Worker(e),callbacks:[],awaited:0,buffer:0,bufferSize:0};return r.worker.onmessage=function(e){if(!ABORT){var r=Browser.workers[t];if(r){var n=e.data.callbackId,i=r.callbacks[n];if(i){e.data.finalResponse&&(r.awaited--,r.callbacks[n]=null);var s=e.data.data;s?(s.byteLength||(s=new Uint8Array(s)),(!r.buffer||r.bufferSize>>0),i.func(r.buffer,s.length,i.arg)):i.func(0,0,i.arg)}}}},Browser.workers.push(r),t}_emscripten_set_canvas_size.sig="vii",_emscripten_get_canvas_size.sig="vppp",_emscripten_create_worker.sig="ip";var _emscripten_destroy_worker=e=>{var t=Browser.workers[e];t.worker.terminate(),t.buffer&&_free(t.buffer),Browser.workers[e]=null};function _emscripten_call_worker(e,t,r,n,i,s){r>>>=0,i>>>=0,s>>>=0,t=UTF8ToString(t>>>=0);var a=Browser.workers[e],o=-1;i&&(o=a.callbacks.length,a.callbacks.push({func:getWasmTableEntry(i),arg:s}),a.awaited++);var l={funcName:t,callbackId:o,data:r?new Uint8Array(HEAPU8.subarray(r>>>0,r+n>>>0)):0};r?a.worker.postMessage(l,[l.data.buffer]):a.worker.postMessage(l)}_emscripten_destroy_worker.sig="vi",_emscripten_call_worker.sig="vippipp";var _emscripten_get_worker_queue_size=e=>{var t=Browser.workers[e];return t?t.awaited:-1};_emscripten_get_worker_queue_size.sig="ii";var getPreloadedImageData=(e,t,r)=>{e=PATH_FS.resolve(e);var n=preloadedImages[e];if(!n)return 0;var i=n.getContext("2d").getImageData(0,0,n.width,n.height),s=_malloc(n.width*n.height*4);return HEAPU8.set(i.data,s>>>0),HEAP32[t>>>2>>>0]=n.width,HEAP32[r>>>2>>>0]=n.height,s};function _emscripten_get_preloaded_image_data(e,t,r){return t>>>=0,r>>>=0,getPreloadedImageData(UTF8ToString(e>>>=0),t,r)}_emscripten_get_preloaded_image_data.sig="pppp";var getPreloadedImageData__data=["$PATH_FS","malloc"];function _emscripten_get_preloaded_image_data_from_FILE(e,t,r){t>>>=0,r>>>=0;var n=_fileno(e>>>=0),i=FS.getStream(n);return i?getPreloadedImageData(i.path,t,r):0}_emscripten_get_preloaded_image_data_from_FILE.sig="pppp";var wget={wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle(){var e=wget.nextWgetRequestHandle;return wget.nextWgetRequestHandle++,e}},FS_mkdirTree=(e,t)=>FS.mkdirTree(e,t),FS_unlink=e=>FS.unlink(e),_emscripten_async_wget=function(e,t,r,n){t>>>=0,r>>>=0,n>>>=0;var i=UTF8ToString(e>>>=0),s=UTF8ToString(t);function a(e){e&&callUserCallback((()=>{var t=stackSave();getWasmTableEntry(e)(stringToUTF8OnStack(s)),stackRestore(t)}))}s=PATH_FS.resolve(s);var o=PATH.dirname(s);FS_createPreloadedFile(o,PATH.basename(s),i,!0,!0,(()=>a(r)),(()=>a(n)),!1,!1,(()=>{try{FS_unlink(s)}catch(e){}FS_mkdirTree(o)}))};_emscripten_async_wget.sig="vpppp";var _emscripten_async_wget_data=function(e,t,r,n){t>>>=0,r>>>=0,n>>>=0,asyncLoad(UTF8ToString(e>>>=0),(e=>{callUserCallback((()=>{var n=_malloc(e.length);HEAPU8.set(e,n>>>0),getWasmTableEntry(r)(t,n,e.length),_free(n)}))}),(()=>{n&&callUserCallback((()=>{getWasmTableEntry(n)(t)}))}),!0)};_emscripten_async_wget_data.sig="vpppp";var _emscripten_async_wget2=function(e,t,r,n,i,s,a,o){t>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,a>>>=0,o>>>=0;var l=UTF8ToString(e>>>=0),c=UTF8ToString(t);c=PATH_FS.resolve(c);var u=UTF8ToString(r),_=UTF8ToString(n),d=c.lastIndexOf("/"),p=new XMLHttpRequest;p.open(u,l,!0),p.responseType="arraybuffer";var f=wget.getNextWgetRequestHandle(),m=PATH.dirname(c);return p.onload=e=>{if(p.status>=200&&p.status<300){try{FS.unlink(c)}catch(e){}if(FS.mkdirTree(m),FS.createDataFile(c.substr(0,d),c.substr(d+1),new Uint8Array(p.response),!0,!0,!1),s){var t=stackSave();getWasmTableEntry(s)(f,i,stringToUTF8OnStack(c)),stackRestore(t)}}else a&&getWasmTableEntry(a)(f,i,p.status);delete wget.wgetRequests[f]},p.onerror=e=>{a&&getWasmTableEntry(a)(f,i,p.status),delete wget.wgetRequests[f]},p.onprogress=e=>{if(e.lengthComputable||void 0===e.lengthComputable&&0!=e.total){var t=e.loaded/e.total*100;o&&getWasmTableEntry(o)(f,i,t)}},p.onabort=e=>{delete wget.wgetRequests[f]},"POST"==u?(p.setRequestHeader("Content-type","application/x-www-form-urlencoded"),p.send(_)):p.send(null),wget.wgetRequests[f]=p,f};function _emscripten_async_wget2_data(e,t,r,n,i,s,a,o){t>>>=0,r>>>=0,n>>>=0,s>>>=0,a>>>=0,o>>>=0;var l=UTF8ToString(e>>>=0),c=UTF8ToString(t),u=UTF8ToString(r),_=new XMLHttpRequest;_.open(c,l,!0),_.responseType="arraybuffer";var d=wget.getNextWgetRequestHandle();function p(){if(a){var e=stackSave(),t=0;_.statusText&&(t=stringToUTF8OnStack(_.statusText)),getWasmTableEntry(a)(d,n,_.status,t),stackRestore(e)}}return _.onload=e=>{if(_.status>=200&&_.status<300||0===_.status&&"http"!=l.substr(0,4).toLowerCase()){var t=new Uint8Array(_.response),r=_malloc(t.length);HEAPU8.set(t,r>>>0),s&&getWasmTableEntry(s)(d,n,r,t.length),i&&_free(r)}else p();delete wget.wgetRequests[d]},_.onerror=e=>{p(),delete wget.wgetRequests[d]},_.onprogress=e=>{o&&getWasmTableEntry(o)(d,n,e.loaded,e.lengthComputable||void 0===e.lengthComputable?e.total:0)},_.onabort=e=>{delete wget.wgetRequests[d]},"POST"==c?(_.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_.send(u)):_.send(null),wget.wgetRequests[d]=_,d}_emscripten_async_wget2.sig="ipppppppp",_emscripten_async_wget2_data.sig="ippppippp";var _emscripten_async_wget2_abort=e=>{var t=wget.wgetRequests[e];null==t||t.abort()};function ___asctime_r(e,t){t>>>=0;var r=HEAP32[(e>>>=0)>>>2>>>0],n=HEAP32[e+4>>>2>>>0],i=HEAP32[e+8>>>2>>>0],s=HEAP32[e+12>>>2>>>0],a=HEAP32[e+16>>>2>>>0],o=HEAP32[e+20>>>2>>>0],l=HEAP32[e+24>>>2>>>0];return stringToUTF8(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l]+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][a]+(s<10?" ":" ")+s+(i<10?" 0":" ")+i+(n<10?":0":":")+n+(r<10?":0":":")+r+" "+(1900+o)+"\n",t,26),t}function _strptime_l(e,t,r,n){return _strptime(e>>>=0,t>>>=0,r>>>=0)}function ___syscall_shutdown(e,t){try{return getSocketFromFD(e),-52}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __dlsym_catchup_js(e,t){e>>>=0;var r=LDSO.loadedLibsByHandle[e].exports,n=r[Object.keys(r)[t]];return addFunction(n,n.sig)}_emscripten_async_wget2_abort.sig="vi",___asctime_r.sig="ppp",_strptime_l.sig="ppppp",Module.___syscall_shutdown=___syscall_shutdown,___syscall_shutdown.sig="iiiiiii",__dlsym_catchup_js.sig="ppi";var FS_createPath=FS.createPath,FS_createDevice=FS.createDevice,FS_readFile=FS.readFile,FS_createLazyFile=FS.createLazyFile,_setNetworkCallback=(e,t,r)=>{SOCKFS.on(e,r?function(n){try{if("error"===e){var i=stackSave(),s=stringToUTF8OnStack(n[2]);getWasmTableEntry(r)(n[0],n[1],s,t),stackRestore(i)}else getWasmTableEntry(r)(n,t)}catch(e){if(!(e instanceof ExitStatus))throw e&&"object"==typeof e&&e.stack&&err("exception thrown: "+[e,e.stack]),e}}:null)};function _emscripten_set_socket_error_callback(e,t){_setNetworkCallback("error",e>>>=0,t>>>=0)}function _emscripten_set_socket_open_callback(e,t){_setNetworkCallback("open",e>>>=0,t>>>=0)}function _emscripten_set_socket_listen_callback(e,t){_setNetworkCallback("listen",e>>>=0,t>>>=0)}function _emscripten_set_socket_connection_callback(e,t){_setNetworkCallback("connection",e>>>=0,t>>>=0)}function _emscripten_set_socket_message_callback(e,t){_setNetworkCallback("message",e>>>=0,t>>>=0)}function _emscripten_set_socket_close_callback(e,t){_setNetworkCallback("close",e>>>=0,t>>>=0)}function _emscripten_webgl_enable_ANGLE_instanced_arrays(e){return e>>>=0,webgl_enable_ANGLE_instanced_arrays(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_OES_vertex_array_object(e){return e>>>=0,webgl_enable_OES_vertex_array_object(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_draw_buffers(e){return e>>>=0,webgl_enable_WEBGL_draw_buffers(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_multi_draw(e){return e>>>=0,webgl_enable_WEBGL_multi_draw(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_EXT_polygon_offset_clamp(e){return e>>>=0,webgl_enable_EXT_polygon_offset_clamp(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_EXT_clip_control(e){return e>>>=0,webgl_enable_EXT_clip_control(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_polygon_mode(e){return e>>>=0,webgl_enable_WEBGL_polygon_mode(GL.contexts[e].GLctx)}function _glVertexPointer(e,t,r,n){throw"Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."}_emscripten_set_socket_error_callback.sig="vpp",_emscripten_set_socket_open_callback.sig="vpp",_emscripten_set_socket_listen_callback.sig="vpp",_emscripten_set_socket_connection_callback.sig="vpp",_emscripten_set_socket_message_callback.sig="vpp",_emscripten_set_socket_close_callback.sig="vpp",_emscripten_webgl_enable_ANGLE_instanced_arrays.sig="ip",_emscripten_webgl_enable_OES_vertex_array_object.sig="ip",_emscripten_webgl_enable_WEBGL_draw_buffers.sig="ip",_emscripten_webgl_enable_WEBGL_multi_draw.sig="ip",_emscripten_webgl_enable_EXT_polygon_offset_clamp.sig="ip",_emscripten_webgl_enable_EXT_clip_control.sig="ip",_emscripten_webgl_enable_WEBGL_polygon_mode.sig="ip",_glVertexPointer.sig="viiip";var _glMatrixMode=()=>{throw"Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glMatrixMode.sig="vi";var _glBegin=()=>{throw"Legacy GL function (glBegin) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glBegin.sig="vi";var _glLoadIdentity=()=>{throw"Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glLoadIdentity.sig="v";var _glVertexAttribDivisorNV=_glVertexAttribDivisor,_glDrawArraysInstancedNV=_glDrawArraysInstanced,_glDrawElementsInstancedNV=_glDrawElementsInstanced,_glVertexAttribDivisorEXT=_glVertexAttribDivisor,_glDrawArraysInstancedEXT=_glDrawArraysInstanced,_glDrawElementsInstancedEXT=_glDrawElementsInstanced,_glVertexAttribDivisorARB=_glVertexAttribDivisor,_glDrawArraysInstancedARB=_glDrawArraysInstanced,_glDrawElementsInstancedARB=_glDrawElementsInstanced,_glDrawBuffersEXT=_glDrawBuffers;function _glMultiDrawArraysWEBGL(e,t,r,n){t>>>=0,r>>>=0,GLctx.multiDrawWebgl.multiDrawArraysWEBGL(e,HEAP32,t>>>2,HEAP32,r>>>2,n)}_glMultiDrawArraysWEBGL.sig="vippi";var _glMultiDrawArrays=_glMultiDrawArraysWEBGL;_glMultiDrawArrays.sig="vippi";var _glMultiDrawArraysANGLE=_glMultiDrawArraysWEBGL;function _glMultiDrawArraysInstancedWEBGL(e,t,r,n,i){t>>>=0,r>>>=0,n>>>=0,GLctx.multiDrawWebgl.multiDrawArraysInstancedWEBGL(e,HEAP32,t>>>2,HEAP32,r>>>2,HEAP32,n>>>2,i)}_glMultiDrawArraysInstancedWEBGL.sig="vipppi";var _glMultiDrawArraysInstancedANGLE=_glMultiDrawArraysInstancedWEBGL;function _glMultiDrawElementsWEBGL(e,t,r,n,i){t>>>=0,n>>>=0,GLctx.multiDrawWebgl.multiDrawElementsWEBGL(e,HEAP32,t>>>2,r,HEAP32,n>>>2,i)}_glMultiDrawElementsWEBGL.sig="vipipi";var _glMultiDrawElements=_glMultiDrawElementsWEBGL;_glMultiDrawElements.sig="vipipi";var _glMultiDrawElementsANGLE=_glMultiDrawElementsWEBGL;function _glMultiDrawElementsInstancedWEBGL(e,t,r,n,i,s){t>>>=0,n>>>=0,i>>>=0,GLctx.multiDrawWebgl.multiDrawElementsInstancedWEBGL(e,HEAP32,t>>>2,r,HEAP32,n>>>2,HEAP32,i>>>2,s)}_glMultiDrawElementsInstancedWEBGL.sig="vipippi";var _glMultiDrawElementsInstancedANGLE=_glMultiDrawElementsInstancedWEBGL,_glClearDepth=e=>GLctx.clearDepth(e);_glClearDepth.sig="vd";var _glDepthRange=(e,t)=>GLctx.depthRange(e,t);_glDepthRange.sig="vdd";var _emscripten_glGenVertexArrays=_glGenVertexArrays;_emscripten_glGenVertexArrays.sig="vip";var _emscripten_glDeleteVertexArrays=_glDeleteVertexArrays;_emscripten_glDeleteVertexArrays.sig="vip";var _emscripten_glBindVertexArray=_glBindVertexArray;_emscripten_glBindVertexArray.sig="vi";var _emscripten_glIsVertexArray=_glIsVertexArray;_emscripten_glIsVertexArray.sig="ii";var _emscripten_glVertexPointer=_glVertexPointer;_emscripten_glVertexPointer.sig="viiip";var _emscripten_glMatrixMode=_glMatrixMode;_emscripten_glMatrixMode.sig="vi";var _emscripten_glBegin=_glBegin;_emscripten_glBegin.sig="vi";var _emscripten_glLoadIdentity=_glLoadIdentity;_emscripten_glLoadIdentity.sig="v";var _emscripten_glVertexAttribDivisor=_glVertexAttribDivisor;_emscripten_glVertexAttribDivisor.sig="vii";var _emscripten_glDrawArraysInstanced=_glDrawArraysInstanced;_emscripten_glDrawArraysInstanced.sig="viiii";var _emscripten_glDrawElementsInstanced=_glDrawElementsInstanced;_emscripten_glDrawElementsInstanced.sig="viiipi";var _emscripten_glVertexAttribDivisorNV=_glVertexAttribDivisorNV,_emscripten_glDrawArraysInstancedNV=_glDrawArraysInstancedNV,_emscripten_glDrawElementsInstancedNV=_glDrawElementsInstancedNV,_emscripten_glVertexAttribDivisorEXT=_glVertexAttribDivisorEXT,_emscripten_glDrawArraysInstancedEXT=_glDrawArraysInstancedEXT,_emscripten_glDrawElementsInstancedEXT=_glDrawElementsInstancedEXT,_emscripten_glVertexAttribDivisorARB=_glVertexAttribDivisorARB,_emscripten_glDrawArraysInstancedARB=_glDrawArraysInstancedARB,_emscripten_glDrawElementsInstancedARB=_glDrawElementsInstancedARB,_emscripten_glDrawBuffers=_glDrawBuffers;_emscripten_glDrawBuffers.sig="vip";var _emscripten_glDrawBuffersEXT=_glDrawBuffersEXT,_emscripten_glMultiDrawArrays=_glMultiDrawArrays;_emscripten_glMultiDrawArrays.sig="vippi";var _emscripten_glMultiDrawArraysANGLE=_glMultiDrawArraysANGLE,_emscripten_glMultiDrawArraysWEBGL=_glMultiDrawArraysWEBGL,_emscripten_glMultiDrawArraysInstancedANGLE=_glMultiDrawArraysInstancedANGLE,_emscripten_glMultiDrawArraysInstancedWEBGL=_glMultiDrawArraysInstancedWEBGL,_emscripten_glMultiDrawElements=_glMultiDrawElements;_emscripten_glMultiDrawElements.sig="vipipi";var _emscripten_glMultiDrawElementsANGLE=_glMultiDrawElementsANGLE,_emscripten_glMultiDrawElementsWEBGL=_glMultiDrawElementsWEBGL,_emscripten_glMultiDrawElementsInstancedANGLE=_glMultiDrawElementsInstancedANGLE,_emscripten_glMultiDrawElementsInstancedWEBGL=_glMultiDrawElementsInstancedWEBGL,_emscripten_glClearDepth=_glClearDepth;_emscripten_glClearDepth.sig="vd";var _emscripten_glDepthRange=_glDepthRange;_emscripten_glDepthRange.sig="vdd";var writeGLArray=(e,t,r,n)=>{var i=e.length,s=r>>=2;for(var o=0;o>>0]=e[o];return i},webglPowerPreferences=["default","low-power","high-performance"];function _emscripten_webgl_do_create_context(e,t){e>>>=0;var r=(t>>>=0)>>>2,n=HEAP32[r+2>>>0],i={alpha:!!HEAP8[t+0>>>0],depth:!!HEAP8[t+1>>>0],stencil:!!HEAP8[t+2>>>0],antialias:!!HEAP8[t+3>>>0],premultipliedAlpha:!!HEAP8[t+4>>>0],preserveDrawingBuffer:!!HEAP8[t+5>>>0],powerPreference:webglPowerPreferences[n],failIfMajorPerformanceCaveat:!!HEAP8[t+12>>>0],majorVersion:HEAP32[r+4>>>0],minorVersion:HEAP32[r+5>>>0],enableExtensionsByDefault:HEAP8[t+24>>>0],explicitSwapControl:HEAP8[t+25>>>0],proxyContextToMainThread:HEAP32[r+7>>>0],renderViaOffscreenBackBuffer:HEAP8[t+32>>>0]},s=findCanvasEventTarget(e);return!s||i.explicitSwapControl?0:GL.createContext(s,i)}_emscripten_webgl_do_create_context.sig="ppp";var _emscripten_webgl_create_context=_emscripten_webgl_do_create_context;function _emscripten_webgl_do_get_current_context(){return GL.currentContext?GL.currentContext.handle:0}_emscripten_webgl_create_context.sig="ppp",_emscripten_webgl_do_get_current_context.sig="p";var _emscripten_webgl_get_current_context=_emscripten_webgl_do_get_current_context;_emscripten_webgl_get_current_context.sig="p";var _emscripten_webgl_do_commit_frame=()=>GL.currentContext&&GL.currentContext.GLctx&&GL.currentContext.attributes.explicitSwapControl?0:-3;_emscripten_webgl_do_commit_frame.sig="i";var _emscripten_webgl_commit_frame=_emscripten_webgl_do_commit_frame;function _emscripten_webgl_make_context_current(e){return e>>>=0,GL.makeContextCurrent(e)?0:-5}function _emscripten_webgl_get_drawing_buffer_size(e,t,r){e>>>=0,t>>>=0,r>>>=0;var n=GL.getContext(e);return n&&n.GLctx&&t&&r?(HEAP32[t>>>2>>>0]=n.GLctx.drawingBufferWidth,HEAP32[r>>>2>>>0]=n.GLctx.drawingBufferHeight,0):-5}function _emscripten_webgl_get_context_attributes(e,t){if(e>>>=0,!(t>>>=0))return-5;if(!(e=GL.contexts[e]))return-3;var r=e.GLctx;if(!r)return-3;r=r.getContextAttributes(),HEAP8[t>>>0]=r.alpha,HEAP8[t+1>>>0]=r.depth,HEAP8[t+2>>>0]=r.stencil,HEAP8[t+3>>>0]=r.antialias,HEAP8[t+4>>>0]=r.premultipliedAlpha,HEAP8[t+5>>>0]=r.preserveDrawingBuffer;var n=r.powerPreference&&webglPowerPreferences.indexOf(r.powerPreference);return HEAP32[t+8>>>2>>>0]=n,HEAP8[t+12>>>0]=r.failIfMajorPerformanceCaveat,HEAP32[t+16>>>2>>>0]=e.version,HEAP32[t+20>>>2>>>0]=0,HEAP8[t+24>>>0]=e.attributes.enableExtensionsByDefault,0}function _emscripten_webgl_destroy_context(e){e>>>=0,GL.currentContext==e&&(GL.currentContext=0),GL.deleteContext(e)}function _emscripten_webgl_enable_extension(e,t){e>>>=0,t>>>=0;var r=GL.getContext(e),n=UTF8ToString(t);return n.startsWith("GL_")&&(n=n.substr(3)),"ANGLE_instanced_arrays"==n&&webgl_enable_ANGLE_instanced_arrays(GLctx),"OES_vertex_array_object"==n&&webgl_enable_OES_vertex_array_object(GLctx),"WEBGL_draw_buffers"==n&&webgl_enable_WEBGL_draw_buffers(GLctx),"WEBGL_multi_draw"==n&&webgl_enable_WEBGL_multi_draw(GLctx),"EXT_polygon_offset_clamp"==n&&webgl_enable_EXT_polygon_offset_clamp(GLctx),"EXT_clip_control"==n&&webgl_enable_EXT_clip_control(GLctx),"WEBGL_polygon_mode"==n&&webgl_enable_WEBGL_polygon_mode(GLctx),!!r.GLctx.getExtension(n)}_emscripten_webgl_commit_frame.sig="i",_emscripten_webgl_make_context_current.sig="ip",_emscripten_webgl_get_drawing_buffer_size.sig="ippp",_emscripten_webgl_get_context_attributes.sig="ipp",_emscripten_webgl_destroy_context.sig="ip",_emscripten_webgl_enable_extension.sig="ipp";var _emscripten_supports_offscreencanvas=()=>0;_emscripten_supports_offscreencanvas.sig="i";var registerWebGlEventCallback=(e,t,r,n,i,s,a)=>{var o={target:findEventTarget(e),eventTypeString:s,callbackfunc:n,handlerFunc:(e=event)=>{getWasmTableEntry(n)(i,0,t)&&e.preventDefault()},useCapture:r};JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_webglcontextlost_callback_on_thread(e,t,r,n,i){return registerWebGlEventCallback(e>>>=0,t>>>=0,r,n>>>=0,31,"webglcontextlost",i>>>=0),0}function _emscripten_set_webglcontextrestored_callback_on_thread(e,t,r,n,i){return registerWebGlEventCallback(e>>>=0,t>>>=0,r,n>>>=0,32,"webglcontextrestored",i>>>=0),0}function _emscripten_is_webgl_context_lost(e){return e>>>=0,!GL.contexts[e]||GL.contexts[e].GLctx.isContextLost()}function _emscripten_webgl_get_supported_extensions(){return stringToNewUTF8(GLctx.getSupportedExtensions().join(" "))}_emscripten_set_webglcontextlost_callback_on_thread.sig="ippipp",_emscripten_set_webglcontextrestored_callback_on_thread.sig="ippipp",_emscripten_is_webgl_context_lost.sig="ip",_emscripten_webgl_get_supported_extensions.sig="p";var _emscripten_webgl_get_program_parameter_d=(e,t)=>GLctx.getProgramParameter(GL.programs[e],t);function _emscripten_webgl_get_program_info_log_utf8(e){return stringToNewUTF8(GLctx.getProgramInfoLog(GL.programs[e]))}_emscripten_webgl_get_program_parameter_d.sig="dii",_emscripten_webgl_get_program_info_log_utf8.sig="pi";var _emscripten_webgl_get_shader_parameter_d=(e,t)=>GLctx.getShaderParameter(GL.shaders[e],t);function _emscripten_webgl_get_shader_info_log_utf8(e){return stringToNewUTF8(GLctx.getShaderInfoLog(GL.shaders[e]))}function _emscripten_webgl_get_shader_source_utf8(e){return stringToNewUTF8(GLctx.getShaderSource(GL.shaders[e]))}_emscripten_webgl_get_shader_parameter_d.sig="dii",_emscripten_webgl_get_shader_info_log_utf8.sig="pi",_emscripten_webgl_get_shader_source_utf8.sig="pi";var _emscripten_webgl_get_vertex_attrib_d=(e,t)=>GLctx.getVertexAttrib(e,t);_emscripten_webgl_get_vertex_attrib_d.sig="dii";var _emscripten_webgl_get_vertex_attrib_o=(e,t)=>{var r=GLctx.getVertexAttrib(e,t);return null==r?void 0:r.name};function _emscripten_webgl_get_vertex_attrib_v(e,t,r,n,i){return r>>>=0,writeGLArray(GLctx.getVertexAttrib(e,t),r,n,i)}_emscripten_webgl_get_vertex_attrib_o.sig="iii",_emscripten_webgl_get_vertex_attrib_v.sig="iiipii";var _emscripten_webgl_get_uniform_d=(e,t)=>GLctx.getUniform(GL.programs[e],webglGetUniformLocation(t));function _emscripten_webgl_get_uniform_v(e,t,r,n,i){return r>>>=0,writeGLArray(GLctx.getUniform(GL.programs[e],webglGetUniformLocation(t)),r,n,i)}function _emscripten_webgl_get_parameter_v(e,t,r,n){return t>>>=0,writeGLArray(GLctx.getParameter(e),t,r,n)}_emscripten_webgl_get_uniform_d.sig="dii",_emscripten_webgl_get_uniform_v.sig="iiipii",_emscripten_webgl_get_parameter_v.sig="iipii";var _emscripten_webgl_get_parameter_d=e=>GLctx.getParameter(e);_emscripten_webgl_get_parameter_d.sig="di";var _emscripten_webgl_get_parameter_o=e=>{var t=GLctx.getParameter(e);return null==t?void 0:t.name};function _emscripten_webgl_get_parameter_utf8(e){return stringToNewUTF8(GLctx.getParameter(e))}function _emscripten_webgl_get_parameter_i64v(e,t){return writeI53ToI64(t>>>=0,GLctx.getParameter(e))}_emscripten_webgl_get_parameter_o.sig="ii",_emscripten_webgl_get_parameter_utf8.sig="pi",_emscripten_webgl_get_parameter_i64v.sig="vip";var _glutPostRedisplay=()=>{GLUT.displayFunc&&!GLUT.requestedAnimationFrame&&(GLUT.requestedAnimationFrame=!0,MainLoop.requestAnimationFrame((()=>{GLUT.requestedAnimationFrame=!1,MainLoop.runIter((()=>getWasmTableEntry(GLUT.displayFunc)()))})))};_glutPostRedisplay.sig="v";var GLUT={initTime:null,idleFunc:null,displayFunc:null,keyboardFunc:null,keyboardUpFunc:null,specialFunc:null,specialUpFunc:null,reshapeFunc:null,motionFunc:null,passiveMotionFunc:null,mouseFunc:null,buttons:0,modifiers:0,initWindowWidth:256,initWindowHeight:256,initDisplayMode:18,windowX:0,windowY:0,windowWidth:0,windowHeight:0,requestedAnimationFrame:!1,saveModifiers:e=>{GLUT.modifiers=0,e.shiftKey&&(GLUT.modifiers+=1),e.ctrlKey&&(GLUT.modifiers+=2),e.altKey&&(GLUT.modifiers+=4)},onMousemove:e=>{var t=Browser.mouseX,r=Browser.mouseY;Browser.calculateMouseEvent(e);var n=Browser.mouseX,i=Browser.mouseY;n==t&&i==r||(0==GLUT.buttons&&e.target==Module.canvas&&GLUT.passiveMotionFunc?(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.passiveMotionFunc)(t,r)):0!=GLUT.buttons&&GLUT.motionFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.motionFunc)(t,r)))},getSpecialKey:e=>{var t=null;switch(e){case 8:t=120;break;case 46:t=111;break;case 112:t=1;break;case 113:t=2;break;case 114:t=3;break;case 115:t=4;break;case 116:t=5;break;case 117:t=6;break;case 118:t=7;break;case 119:t=8;break;case 120:t=9;break;case 121:t=10;break;case 122:t=11;break;case 123:t=12;break;case 37:t=100;break;case 38:t=101;break;case 39:t=102;break;case 40:t=103;break;case 33:t=104;break;case 34:t=105;break;case 36:t=106;break;case 35:t=107;break;case 45:t=108;break;case 16:case 5:t=112;break;case 6:t=113;break;case 17:case 3:t=114;break;case 4:t=115;break;case 18:case 2:t=116;break;case 1:t=117}return t},getASCIIKey:e=>{if(e.ctrlKey||e.altKey||e.metaKey)return null;var t=e.keyCode;if(48<=t&&t<=57)return t;if(65<=t&&t<=90)return e.shiftKey?t:t+32;if(96<=t&&t<=105)return t-48;if(106<=t&&t<=111)return t-106+42;switch(t){case 9:case 13:case 27:case 32:case 61:return t}var r=e.shiftKey;switch(t){case 186:return r?58:59;case 187:return r?43:61;case 188:return r?60:44;case 189:return r?95:45;case 190:return r?62:46;case 191:return r?63:47;case 219:return r?123:91;case 220:return r?124:47;case 221:return r?125:93;case 222:return r?34:39}return null},onKeydown:e=>{if(GLUT.specialFunc||GLUT.keyboardFunc){var t=GLUT.getSpecialKey(e.keyCode);null!==t?GLUT.specialFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.specialFunc)(t,Browser.mouseX,Browser.mouseY)):null!==(t=GLUT.getASCIIKey(e))&&GLUT.keyboardFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.keyboardFunc)(t,Browser.mouseX,Browser.mouseY))}},onKeyup:e=>{if(GLUT.specialUpFunc||GLUT.keyboardUpFunc){var t=GLUT.getSpecialKey(e.keyCode);null!==t?GLUT.specialUpFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.specialUpFunc)(t,Browser.mouseX,Browser.mouseY)):null!==(t=GLUT.getASCIIKey(e))&&GLUT.keyboardUpFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.keyboardUpFunc)(t,Browser.mouseX,Browser.mouseY))}},touchHandler:e=>{if(e.target==Module.canvas){var t=e.changedTouches[0],r="";switch(e.type){case"touchstart":r="mousedown";break;case"touchmove":r="mousemove";break;case"touchend":r="mouseup";break;default:return}var n=document.createEvent("MouseEvent");n.initMouseEvent(r,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(n),e.preventDefault()}},onMouseButtonDown:e=>{if(Browser.calculateMouseEvent(e),GLUT.buttons|=1<{Browser.calculateMouseEvent(e),GLUT.buttons&=~(1<{Browser.calculateMouseEvent(e),window.event;var t=-Browser.getMouseWheelDelta(e),r=3;(t=0==t?0:t>0?Math.max(t,1):Math.min(t,-1))<0&&(r=4),GLUT.mouseFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.mouseFunc)(r,0,Browser.mouseX,Browser.mouseY))},onFullscreenEventChange:e=>{var t,r;document.fullscreen||document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen?(t=screen.width,r=screen.height):(t=GLUT.windowWidth,r=GLUT.windowHeight,document.removeEventListener("fullscreenchange",GLUT.onFullscreenEventChange,!0),document.removeEventListener("mozfullscreenchange",GLUT.onFullscreenEventChange,!0),document.removeEventListener("webkitfullscreenchange",GLUT.onFullscreenEventChange,!0)),Browser.setCanvasSize(t,r,!0),GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(t,r),_glutPostRedisplay()}},_glutGetModifiers=()=>GLUT.modifiers;function _glutInit(e,t){GLUT.initTime=Date.now();var r="ontouchstart"in document.documentElement;r&&(window.addEventListener("touchmove",GLUT.touchHandler,!0),window.addEventListener("touchstart",GLUT.touchHandler,!0),window.addEventListener("touchend",GLUT.touchHandler,!0)),window.addEventListener("keydown",GLUT.onKeydown,!0),window.addEventListener("keyup",GLUT.onKeyup,!0),window.addEventListener("mousemove",GLUT.onMousemove,!0),window.addEventListener("mousedown",GLUT.onMouseButtonDown,!0),window.addEventListener("mouseup",GLUT.onMouseButtonUp,!0),window.addEventListener("mousewheel",GLUT.onMouseWheel,!0),window.addEventListener("DOMMouseScroll",GLUT.onMouseWheel,!0),Browser.resizeListeners.push(((e,t)=>{GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(e,t)})),__ATEXIT__.push((()=>{r&&(window.removeEventListener("touchmove",GLUT.touchHandler,!0),window.removeEventListener("touchstart",GLUT.touchHandler,!0),window.removeEventListener("touchend",GLUT.touchHandler,!0)),window.removeEventListener("keydown",GLUT.onKeydown,!0),window.removeEventListener("keyup",GLUT.onKeyup,!0),window.removeEventListener("mousemove",GLUT.onMousemove,!0),window.removeEventListener("mousedown",GLUT.onMouseButtonDown,!0),window.removeEventListener("mouseup",GLUT.onMouseButtonUp,!0),window.removeEventListener("mousewheel",GLUT.onMouseWheel,!0),window.removeEventListener("DOMMouseScroll",GLUT.onMouseWheel,!0),Module.canvas.width=Module.canvas.height=1}))}_glutGetModifiers.sig="i",_glutInit.sig="vpp";var _glutInitWindowSize=(e,t)=>{Browser.setCanvasSize(GLUT.initWindowWidth=e,GLUT.initWindowHeight=t)};_glutInitWindowSize.sig="vii";var _glutInitWindowPosition=(e,t)=>{};_glutInitWindowPosition.sig="vii";var _glutGet=e=>{switch(e){case 100:case 101:case 500:case 501:return 0;case 102:case 200:return Module.canvas.width;case 103:case 201:return Module.canvas.height;case 502:return GLUT.initWindowWidth;case 503:return GLUT.initWindowHeight;case 700:return Date.now()-GLUT.initTime;case 105:return Module.ctx.getContextAttributes().stencil?8:0;case 106:return Module.ctx.getContextAttributes().depth?8:0;case 110:return Module.ctx.getContextAttributes().alpha?8:0;case 120:return Module.ctx.getContextAttributes().antialias?1:0;default:throw"glutGet("+e+") not implemented yet"}};function _glutIdleFunc(e){e>>>=0,GLUT.idleFunc||safeSetTimeout((function e(){GLUT.idleFunc&&(getWasmTableEntry(GLUT.idleFunc)(),safeSetTimeout(e,4))}),0),GLUT.idleFunc=e}_glutGet.sig="ii",_glutIdleFunc.sig="vp";var _glutTimerFunc=function(e,t,r){return t>>>=0,safeSetTimeout((()=>getWasmTableEntry(t)(r)),e)};function _glutDisplayFunc(e){e>>>=0,GLUT.displayFunc=e}function _glutKeyboardFunc(e){e>>>=0,GLUT.keyboardFunc=e}function _glutKeyboardUpFunc(e){e>>>=0,GLUT.keyboardUpFunc=e}function _glutSpecialFunc(e){e>>>=0,GLUT.specialFunc=e}function _glutSpecialUpFunc(e){e>>>=0,GLUT.specialUpFunc=e}function _glutReshapeFunc(e){e>>>=0,GLUT.reshapeFunc=e}function _glutMotionFunc(e){e>>>=0,GLUT.motionFunc=e}function _glutPassiveMotionFunc(e){e>>>=0,GLUT.passiveMotionFunc=e}function _glutMouseFunc(e){e>>>=0,GLUT.mouseFunc=e}_glutTimerFunc.sig="vipi",_glutDisplayFunc.sig="vp",_glutKeyboardFunc.sig="vp",_glutKeyboardUpFunc.sig="vp",_glutSpecialFunc.sig="vp",_glutSpecialUpFunc.sig="vp",_glutReshapeFunc.sig="vp",_glutMotionFunc.sig="vp",_glutPassiveMotionFunc.sig="vp",_glutMouseFunc.sig="vp";var _glutSetCursor=e=>{var t="auto";switch(e){case 0:case 1:case 3:case 5:case 6:case 100:break;case 2:t="pointer";break;case 4:t="help";break;case 7:t="wait";break;case 8:t="text";break;case 9:case 102:t="crosshair";break;case 10:t="ns-resize";break;case 11:t="ew-resize";break;case 12:t="n-resize";break;case 13:t="s-resize";break;case 14:t="w-resize";break;case 15:t="e-resize";break;case 16:t="nw-resize";break;case 17:t="ne-resize";break;case 18:t="se-resize";break;case 19:t="sw-resize";break;case 101:t="none";break;default:throw"glutSetCursor: Unknown cursor type: "+e}Module.canvas.style.cursor=t};function _glutCreateWindow(e){var t={antialias:0!=(128&GLUT.initDisplayMode),depth:0!=(16&GLUT.initDisplayMode),stencil:0!=(32&GLUT.initDisplayMode),alpha:0!=(8&GLUT.initDisplayMode)};return Module.ctx=Browser.createContext(Module.canvas,!0,!0,t),Module.ctx?1:0}_glutSetCursor.sig="vi",_glutCreateWindow.sig="ip";var _glutDestroyWindow=e=>(delete Module.ctx,1);_glutDestroyWindow.sig="vi";var _glutReshapeWindow=(e,t)=>{Browser.exitFullscreen(),Browser.setCanvasSize(e,t,!0),GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(e,t),_glutPostRedisplay()};_glutReshapeWindow.sig="vii";var _glutPositionWindow=(e,t)=>{Browser.exitFullscreen(),_glutPostRedisplay()};_glutPositionWindow.sig="vii";var _glutFullScreen=()=>{GLUT.windowX=0,GLUT.windowY=0,GLUT.windowWidth=Module.canvas.width,GLUT.windowHeight=Module.canvas.height,document.addEventListener("fullscreenchange",GLUT.onFullscreenEventChange,!0),document.addEventListener("mozfullscreenchange",GLUT.onFullscreenEventChange,!0),document.addEventListener("webkitfullscreenchange",GLUT.onFullscreenEventChange,!0),Browser.requestFullscreen(!1,!1)};_glutFullScreen.sig="v";var _glutInitDisplayMode=e=>GLUT.initDisplayMode=e;_glutInitDisplayMode.sig="vi";var _glutSwapBuffers=()=>{};_glutSwapBuffers.sig="v";var _glutMainLoop=()=>{throw _glutReshapeWindow(Module.canvas.width,Module.canvas.height),_glutPostRedisplay(),"unwind"};function _XOpenDisplay(e){return 1}function _XCreateWindow(e,t,r,n,i,s,a,o,l,c,u,_){return Browser.setCanvasSize(i,s),2}function _XChangeWindowAttributes(e,t,r,n){}function _XSetWMHints(e,t,r){}function _XMapWindow(e,t){}function _XStoreName(e,t,r){}function _XInternAtom(e,t,r){return 0}function _XSendEvent(e,t,r,n,i){}function _XPending(e){return 0}_glutMainLoop.sig="v",_XOpenDisplay.sig="pp",_XCreateWindow.sig="pppiiiiiiippp",_XChangeWindowAttributes.sig="ipppp",_XSetWMHints.sig="ippp",_XMapWindow.sig="ipp",_XStoreName.sig="ippp",_XInternAtom.sig="pppi",_XSendEvent.sig="ippipp",_XPending.sig="ip";var EGL={errorCode:12288,defaultDisplayInitialized:!1,currentContext:0,currentReadSurface:0,currentDrawSurface:0,contextAttributes:{alpha:!1,depth:!1,stencil:!1,antialias:!1},stringCache:{},setErrorCode(e){EGL.errorCode=e},chooseConfig(e,t,r,n,i){if(62e3!=e)return EGL.setErrorCode(12296),0;if(t)for(;;){var s=HEAP32[t>>>2>>>0];if(12321==s){var a=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.alpha=a>0}else if(12325==s){var o=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.depth=o>0}else if(12326==s){var l=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.stencil=l>0}else if(12337==s){var c=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.antialias=c>0}else if(12338==s)c=HEAP32[t+4>>>2>>>0],EGL.contextAttributes.antialias=1==c;else if(12544==s){var u=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.lowLatency=12547!=u}else if(12344==s)break;t+=8}return r&&n||i?(i&&(HEAP32[i>>>2>>>0]=1),r&&n>0&&(HEAPU32[r>>>2>>>0]=62002),EGL.setErrorCode(12288),1):(EGL.setErrorCode(12300),0)}};function _eglGetDisplay(e){return e>>>=0,EGL.setErrorCode(12288),0!=e&&1!=e?0:62e3}function _eglInitialize(e,t,r){return t>>>=0,r>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(t&&(HEAP32[t>>>2>>>0]=1),r&&(HEAP32[r>>>2>>>0]=4),EGL.defaultDisplayInitialized=!0,EGL.setErrorCode(12288),1)}function _eglTerminate(e){return 62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(EGL.currentContext=0,EGL.currentReadSurface=0,EGL.currentDrawSurface=0,EGL.defaultDisplayInitialized=!1,EGL.setErrorCode(12288),1)}function _eglGetConfigs(e,t,r,n){return e>>>=0,t>>>=0,n>>>=0,EGL.chooseConfig(e,0,t,r,n)}function _eglChooseConfig(e,t,r,n,i){return e>>>=0,t>>>=0,r>>>=0,i>>>=0,EGL.chooseConfig(e,t,r,n,i)}function _eglGetConfigAttrib(e,t,r,n){if(t>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62002!=t)return EGL.setErrorCode(12293),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12320:return HEAP32[n>>>2>>>0]=EGL.contextAttributes.alpha?32:24,1;case 12321:return HEAP32[n>>>2>>>0]=EGL.contextAttributes.alpha?8:0,1;case 12322:case 12323:case 12324:return HEAP32[n>>>2>>>0]=8,1;case 12325:return HEAP32[n>>>2>>>0]=EGL.contextAttributes.depth?24:0,1;case 12326:return HEAP32[n>>>2>>>0]=EGL.contextAttributes.stencil?8:0,1;case 12327:case 12335:case 12340:return HEAP32[n>>>2>>>0]=12344,1;case 12328:return HEAP32[n>>>2>>>0]=62002,1;case 12329:case 12333:case 12334:case 12345:case 12346:case 12347:case 12349:case 12350:case 12354:return HEAP32[n>>>2>>>0]=0,1;case 12330:case 12332:return HEAP32[n>>>2>>>0]=4096,1;case 12331:return HEAP32[n>>>2>>>0]=16777216,1;case 12337:return HEAP32[n>>>2>>>0]=EGL.contextAttributes.antialias?4:0,1;case 12338:return HEAP32[n>>>2>>>0]=EGL.contextAttributes.antialias?1:0,1;case 12339:case 12352:return HEAP32[n>>>2>>>0]=4,1;case 12341:case 12342:case 12343:return HEAP32[n>>>2>>>0]=-1,1;case 12348:return HEAP32[n>>>2>>>0]=1,1;case 12351:return HEAP32[n>>>2>>>0]=12430,1;default:return EGL.setErrorCode(12292),0}}function _eglCreateWindowSurface(e,t,r,n){return t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62002!=t?(EGL.setErrorCode(12293),0):(EGL.setErrorCode(12288),62006)}function _eglDestroySurface(e,t){return t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62006!=t?(EGL.setErrorCode(12301),1):(EGL.currentReadSurface==t&&(EGL.currentReadSurface=0),EGL.currentDrawSurface==t&&(EGL.currentDrawSurface=0),EGL.setErrorCode(12288),1)}function _eglCreateContext(e,t,r,n){if(n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;for(var i=1;;){var s=HEAP32[n>>>2>>>0];if(12440!=s){if(12344==s)break;return EGL.setErrorCode(12292),0}i=HEAP32[n+4>>>2>>>0],n+=8}return 2!=i?(EGL.setErrorCode(12293),0):(EGL.contextAttributes.majorVersion=i-1,EGL.contextAttributes.minorVersion=0,EGL.context=GL.createContext(Module.canvas,EGL.contextAttributes),0!=EGL.context?(EGL.setErrorCode(12288),GL.makeContextCurrent(EGL.context),Browser.useWebGL=!0,Browser.moduleContextCreatedCallbacks.forEach((e=>e())),GL.makeContextCurrent(null),62004):(EGL.setErrorCode(12297),0))}function _eglDestroyContext(e,t){return t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62004!=t?(EGL.setErrorCode(12294),0):(GL.deleteContext(EGL.context),EGL.setErrorCode(12288),EGL.currentContext==t&&(EGL.currentContext=0),1)}function _eglQuerySurface(e,t,r,n){if(t>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62006!=t)return EGL.setErrorCode(12301),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12328:return HEAP32[n>>>2>>>0]=62002,1;case 12376:case 12416:case 12417:case 12418:case 12419:return 1;case 12375:return HEAP32[n>>>2>>>0]=Module.canvas.width,1;case 12374:return HEAP32[n>>>2>>>0]=Module.canvas.height,1;case 12432:case 12433:case 12434:return HEAP32[n>>>2>>>0]=-1,1;case 12422:return HEAP32[n>>>2>>>0]=12420,1;case 12441:return HEAP32[n>>>2>>>0]=12442,1;case 12435:return HEAP32[n>>>2>>>0]=12437,1;default:return EGL.setErrorCode(12292),0}}function _eglQueryContext(e,t,r,n){if(t>>>=0,n>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62004!=t)return EGL.setErrorCode(12294),0;if(!n)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12328:return HEAP32[n>>>2>>>0]=62002,1;case 12439:return HEAP32[n>>>2>>>0]=12448,1;case 12440:return HEAP32[n>>>2>>>0]=EGL.contextAttributes.majorVersion+1,1;case 12422:return HEAP32[n>>>2>>>0]=12420,1;default:return EGL.setErrorCode(12292),0}}_eglGetDisplay.sig="pp",_eglInitialize.sig="ippp",_eglTerminate.sig="ip",_eglGetConfigs.sig="ippip",_eglChooseConfig.sig="ipppip",_eglGetConfigAttrib.sig="ippip",_eglCreateWindowSurface.sig="pppip",_eglDestroySurface.sig="ipp",_eglCreateContext.sig="ppppp",_eglDestroyContext.sig="ipp",_eglQuerySurface.sig="ippip",_eglQueryContext.sig="ippip";var _eglGetError=()=>EGL.errorCode;function _eglQueryString(e,t){if(62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(EGL.setErrorCode(12288),EGL.stringCache[t])return EGL.stringCache[t];var r;switch(t){case 12371:r=stringToNewUTF8("Emscripten");break;case 12372:r=stringToNewUTF8("1.4 Emscripten EGL");break;case 12373:r=stringToNewUTF8("");break;case 12429:r=stringToNewUTF8("OpenGL_ES");break;default:return EGL.setErrorCode(12300),0}return EGL.stringCache[t]=r,r}_eglGetError.sig="i",_eglQueryString.sig="ppi";var _eglBindAPI=e=>12448==e?(EGL.setErrorCode(12288),1):(EGL.setErrorCode(12300),0);_eglBindAPI.sig="ii";var _eglQueryAPI=()=>(EGL.setErrorCode(12288),12448);_eglQueryAPI.sig="i";var _eglWaitClient=()=>(EGL.setErrorCode(12288),1);_eglWaitClient.sig="i";var _eglWaitNative=e=>(EGL.setErrorCode(12288),1);_eglWaitNative.sig="ii";var _eglWaitGL=_eglWaitClient;function _eglSwapInterval(e,t){return 62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(0==t?_emscripten_set_main_loop_timing(0,0):_emscripten_set_main_loop_timing(1,t),EGL.setErrorCode(12288),1)}function _eglMakeCurrent(e,t,r,n){return t>>>=0,r>>>=0,n>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):0!=n&&62004!=n?(EGL.setErrorCode(12294),0):0!=r&&62006!=r||0!=t&&62006!=t?(EGL.setErrorCode(12301),0):(GL.makeContextCurrent(n?EGL.context:null),EGL.currentContext=n,EGL.currentDrawSurface=t,EGL.currentReadSurface=r,EGL.setErrorCode(12288),1)}function _eglGetCurrentContext(){return EGL.currentContext}function _eglGetCurrentSurface(e){return 12378==e?EGL.currentReadSurface:12377==e?EGL.currentDrawSurface:(EGL.setErrorCode(12300),0)}function _eglGetCurrentDisplay(){return EGL.currentContext?62e3:0}function _eglSwapBuffers(e,t){if(EGL.defaultDisplayInitialized)if(Module.ctx){if(!Module.ctx.isContextLost())return EGL.setErrorCode(12288),1;EGL.setErrorCode(12302)}else EGL.setErrorCode(12290);else EGL.setErrorCode(12289);return 0}_eglWaitGL.sig="i",_eglSwapInterval.sig="ipi",_eglMakeCurrent.sig="ipppp",_eglGetCurrentContext.sig="p",_eglGetCurrentSurface.sig="pi",_eglGetCurrentDisplay.sig="p",_eglSwapBuffers.sig="ipp";var _eglReleaseThread=()=>(EGL.currentContext=0,EGL.currentReadSurface=0,EGL.currentDrawSurface=0,EGL.setErrorCode(12288),1);function _uuid_clear(e){return zeroMemory(e>>>=0,16)}function _uuid_compare(e,t){return _memcmp(e>>>=0,t>>>=0,16)}function _uuid_copy(e,t){return _memcpy(e>>>=0,t>>>=0,16)}function _uuid_generate(e){e>>>=0;var t=null;if(ENVIRONMENT_IS_NODE)try{t=(0,In("crypto").randomBytes)(16)}catch(e){}else ENVIRONMENT_IS_WEB&&typeof window.crypto<"u"&&typeof window.crypto.getRandomValues<"u"&&(t=new Uint8Array(16),window.crypto.getRandomValues(t));if(!t){t=new Array(16);for(var r=(new Date).getTime(),n=0;n<16;n++){var i=(r+256*Math.random())%256|0;r=r/256|0,t[n]=i}}t[6]=15&t[6]|64,t[8]=63&t[8]|128,writeArrayToMemory(t,e)}function _uuid_is_null(e){e>>>=0;for(var t=0;t<4;t++,e=e+4|0)if(HEAP32[e>>>2>>>0])return 0;return 1}function _uuid_parse(e,t){if(t>>>=0,36===(e=UTF8ToString(e>>>=0)).length){var r=0,n=new Array(16);return e.toLowerCase().replace(/[0-9a-f]{2}/g,(function(e){r<16&&(n[r++]=parseInt(e,16))})),r<16?-1:(writeArrayToMemory(n,t),0)}return-1}function _uuid_unparse(e,t,r){e>>>=0,t>>>=0;var n=0,i="xxxx-xx-xx-xx-xxxxxx".replace(/[x]/g,(function(t){var i=r?HEAPU8[e+n>>>0].toString(16).toUpperCase():HEAPU8[e+n>>>0].toString(16);return i=1===i.length?"0"+i:i,n++,i}));stringToUTF8(i,t,37)}function _uuid_unparse_lower(e,t){_uuid_unparse(e>>>=0,t>>>=0)}function _uuid_unparse_upper(e,t){_uuid_unparse(e>>>=0,t>>>=0,!0)}function _uuid_type(e){return 4}function _uuid_variant(e){return 1}_eglReleaseThread.sig="i",_uuid_clear.sig="vp",_uuid_compare.sig="ipp",_uuid_copy.sig="vpp",_uuid_generate.sig="vp",_uuid_is_null.sig="ip",_uuid_parse.sig="ipp",_uuid_unparse.sig="vpp",_uuid_unparse_lower.sig="vpp",_uuid_unparse_upper.sig="vpp",_uuid_type.sig="ip",_uuid_variant.sig="ip";var GLEW={isLinaroFork:1,extensions:null,error:{0:null,1:null,2:null,3:null,4:null,5:null,6:null,7:null,8:null},version:{1:null,2:null,3:null,4:null},errorStringConstantFromCode(e){if(GLEW.isLinaroFork)switch(e){case 4:return"OpenGL ES lib expected, found OpenGL lib";case 5:return"OpenGL lib expected, found OpenGL ES lib";case 6:return"Missing EGL version";case 7:return"EGL 1.1 and up are supported"}switch(e){case 0:return"No error";case 1:return"Missing GL version";case 2:return"GL 1.1 and up are supported";case 3:return"GLX 1.2 and up are supported";default:return null}},errorString(e){if(!GLEW.error[e]){var t=GLEW.errorStringConstantFromCode(e);t||(t="Unknown error",e=8),GLEW.error[e]=stringToNewUTF8(t)}return GLEW.error[e]},versionStringConstantFromCode(e){switch(e){case 1:return"1.10.0";case 2:return"1";case 3:return"10";case 4:return"0";default:return null}},versionString(e){if(!GLEW.version[e]){var t=GLEW.versionStringConstantFromCode(e);if(!t)return 0;GLEW.version[e]=stringToNewUTF8(t)}return GLEW.version[e]},extensionIsSupported:e=>(GLEW.extensions||(GLEW.extensions=webglGetExtensions()),GLEW.extensions.includes(e)?1:GLEW.extensions.includes("GL_"+e))},_glewInit=()=>0;function _glewIsSupported(e){for(var t=UTF8ToString(e>>>=0).split(" "),r=0;r>>=0,GLEW.extensionIsSupported(UTF8ToString(e))}function _glewGetErrorString(e){return GLEW.errorString(e)}function _glewGetString(e){return GLEW.versionString(e)}_glewInit.sig="i",_glewIsSupported.sig="ip",_glewGetExtension.sig="ip",_glewGetErrorString.sig="pi",_glewGetString.sig="pi";var IDBStore={indexedDB(){if(typeof indexedDB<"u")return indexedDB;var e=null;return"object"==typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),assert(e,"IDBStore used, but indexedDB not supported"),e},DB_VERSION:22,DB_STORE_NAME:"FILE_DATA",dbs:{},blobs:[0],getDB(e,t){var r,n=IDBStore.dbs[e];if(n)return t(null,n);try{r=IDBStore.indexedDB().open(e,IDBStore.DB_VERSION)}catch(e){return t(e)}r.onupgradeneeded=e=>{var t=e.target.result,r=e.target.transaction;t.objectStoreNames.contains(IDBStore.DB_STORE_NAME)?r.objectStore(IDBStore.DB_STORE_NAME):t.createObjectStore(IDBStore.DB_STORE_NAME)},r.onsuccess=()=>{n=r.result,IDBStore.dbs[e]=n,t(null,n)},r.onerror=function(e){t(e.target.error||"unknown error"),e.preventDefault()}},getStore(e,t,r){IDBStore.getDB(e,((e,n)=>{if(e)return r(e);var i=n.transaction([IDBStore.DB_STORE_NAME],t);i.onerror=e=>{r(e.target.error||"unknown error"),e.preventDefault()};var s=i.objectStore(IDBStore.DB_STORE_NAME);r(null,s)}))},getFile(e,t,r){IDBStore.getStore(e,"readonly",((e,n)=>{if(e)return r(e);var i=n.get(t);i.onsuccess=e=>{var n=e.target.result;return n?r(null,n):r("file ".concat(t," not found"))},i.onerror=r}))},setFile(e,t,r,n){IDBStore.getStore(e,"readwrite",((e,i)=>{if(e)return n(e);var s=i.put(r,t);s.onsuccess=e=>n(),s.onerror=n}))},deleteFile(e,t,r){IDBStore.getStore(e,"readwrite",((e,n)=>{if(e)return r(e);var i=n.delete(t);i.onsuccess=e=>r(),i.onerror=r}))},existsFile(e,t,r){IDBStore.getStore(e,"readonly",((e,n)=>{if(e)return r(e);var i=n.count(t);i.onsuccess=e=>r(null,e.target.result>0),i.onerror=r}))},clearStore(e,t){IDBStore.getStore(e,"readwrite",((e,r)=>{if(e)return t(e);var n=r.clear();n.onsuccess=e=>t(),n.onerror=t}))}},_emscripten_idb_async_load=function(e,t,r,n,i){e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,IDBStore.getFile(UTF8ToString(e),UTF8ToString(t),((e,t)=>{callUserCallback((()=>{if(e)i&&getWasmTableEntry(i)(r);else{var s=_malloc(t.length);HEAPU8.set(t,s>>>0),getWasmTableEntry(n)(r,s,t.length),_free(s)}}))}))};_emscripten_idb_async_load.sig="vppppp";var _emscripten_idb_async_store=function(e,t,r,n,i,s,a){e>>>=0,t>>>=0,r>>>=0,i>>>=0,s>>>=0,a>>>=0,IDBStore.setFile(UTF8ToString(e),UTF8ToString(t),new Uint8Array(HEAPU8.subarray(r>>>0,r+n>>>0)),(e=>{callUserCallback((()=>{e?a&&getWasmTableEntry(a)(i):s&&getWasmTableEntry(s)(i)}))}))};_emscripten_idb_async_store.sig="vpppippp";var _emscripten_idb_async_delete=function(e,t,r,n,i){e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,IDBStore.deleteFile(UTF8ToString(e),UTF8ToString(t),(e=>{callUserCallback((()=>{e?i&&getWasmTableEntry(i)(r):n&&getWasmTableEntry(n)(r)}))}))};_emscripten_idb_async_delete.sig="vppppp";var _emscripten_idb_async_exists=function(e,t,r,n,i){e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,IDBStore.existsFile(UTF8ToString(e),UTF8ToString(t),((e,t)=>{callUserCallback((()=>{e?i&&getWasmTableEntry(i)(r):n&&getWasmTableEntry(n)(r,t)}))}))};_emscripten_idb_async_exists.sig="vppppp";var _emscripten_idb_async_clear=function(e,t,r,n){e>>>=0,t>>>=0,r>>>=0,n>>>=0,IDBStore.clearStore(UTF8ToString(e),(e=>{callUserCallback((()=>{e?n&&getWasmTableEntry(n)(t):r&&getWasmTableEntry(r)(t)}))}))};function _emscripten_idb_load(e,t,r,n,i){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_load, etc."}function _emscripten_idb_store(e,t,r,n,i){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_store, etc."}function _emscripten_idb_delete(e,t,r){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_delete, etc."}function _emscripten_idb_exists(e,t,r,n){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_exists, etc."}function _emscripten_idb_clear(e,t){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_clear, etc."}_emscripten_idb_async_clear.sig="vpppp",_emscripten_idb_load.sig="vppppp",_emscripten_idb_store.sig="vpppip",_emscripten_idb_delete.sig="vppp",_emscripten_idb_exists.sig="vpppp",_emscripten_idb_clear.sig="vpp";var runAndAbortIfError=e=>{try{return e()}catch(e){abort(e)}},_emscripten_sleep=()=>{throw"Please compile your program with async support in order to use asynchronous operations like emscripten_sleep"};function _emscripten_wget(e,t){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_wget"}function _emscripten_scan_registers(e){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_scan_registers"}function _emscripten_fiber_swap(e,t){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_fiber_swap"}_emscripten_sleep.sig="vi",Module._emscripten_wget=_emscripten_wget,_emscripten_wget.sig="ipp",_emscripten_scan_registers.sig="vp",_emscripten_fiber_swap.sig="vpp";var _SDL_GetTicks=()=>Date.now()-SDL.startTime|0;function _SDL_LockSurface(e){e>>>=0;var t=SDL.surfaces[e];if(t.locked++,t.locked>1||(t.buffer||(t.buffer=_malloc(t.width*t.height*4),HEAPU32[e+20>>>2>>>0]=t.buffer),HEAPU32[e+20>>>2>>>0]=t.buffer,e==SDL.screen&&Module.screenIsReadOnly&&t.image))return 0;if(SDL.defaults.discardOnLock){if(t.image||(t.image=t.ctx.createImageData(t.width,t.height)),!SDL.defaults.opaqueFrontBuffer)return}else t.image=t.ctx.getImageData(0,0,t.width,t.height);if(e==SDL.screen&&SDL.defaults.opaqueFrontBuffer)for(var r=t.image.data,n=r.length,i=0;i>>0)}return 0}_SDL_GetTicks.sig="i",_SDL_LockSurface.sig="ip";var SDL={defaults:{width:320,height:200,copyOnLock:!0,discardOnLock:!1,opaqueFrontBuffer:!0},version:null,surfaces:{},canvasPool:[],events:[],fonts:[null],audios:[null],rwops:[null],music:{audio:null,volume:1},mixerFrequency:22050,mixerFormat:32784,mixerNumChannels:2,mixerChunkSize:1024,channelMinimumNumber:0,GL:!1,glAttributes:{0:3,1:3,2:2,3:0,4:0,5:1,6:16,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:1,16:0,17:0,18:0},keyboardState:null,keyboardMap:{},canRequestFullscreen:!1,isRequestingFullscreen:!1,textInput:!1,unicode:!1,ttfContext:null,audio:null,startTime:null,initFlags:0,buttonState:0,modState:0,DOMButtons:[0,0,0],DOMEventToSDLEvent:{},TOUCH_DEFAULT_ID:0,eventHandler:null,eventHandlerContext:null,eventHandlerTemp:0,keyCodes:{16:1249,17:1248,18:1250,20:1081,33:1099,34:1102,35:1101,36:1098,37:1104,38:1106,39:1103,40:1105,44:316,45:1097,46:127,91:1251,93:1125,96:1122,97:1113,98:1114,99:1115,100:1116,101:1117,102:1118,103:1119,104:1120,105:1121,106:1109,107:1111,109:1110,110:1123,111:1108,112:1082,113:1083,114:1084,115:1085,116:1086,117:1087,118:1088,119:1089,120:1090,121:1091,122:1092,123:1093,124:1128,125:1129,126:1130,127:1131,128:1132,129:1133,130:1134,131:1135,132:1136,133:1137,134:1138,135:1139,144:1107,160:94,161:33,162:34,163:35,164:36,165:37,166:38,167:95,168:40,169:41,170:42,171:43,172:124,173:45,174:123,175:125,176:126,181:127,182:129,183:128,188:44,190:46,191:47,192:96,219:91,220:92,221:93,222:39,224:1251},scanCodes:{8:42,9:43,13:40,27:41,32:44,35:204,39:53,44:54,46:55,47:56,48:39,49:30,50:31,51:32,52:33,53:34,54:35,55:36,56:37,57:38,58:203,59:51,61:46,91:47,92:49,93:48,96:52,97:4,98:5,99:6,100:7,101:8,102:9,103:10,104:11,105:12,106:13,107:14,108:15,109:16,110:17,111:18,112:19,113:20,114:21,115:22,116:23,117:24,118:25,119:26,120:27,121:28,122:29,127:76,305:224,308:226,316:70},loadRect:e=>({x:HEAP32[e>>>2>>>0],y:HEAP32[e+4>>>2>>>0],w:HEAP32[e+8>>>2>>>0],h:HEAP32[e+12>>>2>>>0]}),updateRect(e,t){HEAP32[e>>>2>>>0]=t.x,HEAP32[e+4>>>2>>>0]=t.y,HEAP32[e+8>>>2>>>0]=t.w,HEAP32[e+12>>>2>>>0]=t.h},intersectionOfRects(e,t){var r=Math.max(e.x,t.x),n=Math.max(e.y,t.y),i=Math.min(e.x+e.w,t.x+t.w),s=Math.min(e.y+e.h,t.y+t.h);return{x:r,y:n,w:Math.max(r,i)-r,h:Math.max(n,s)-n}},checkPixelFormat(e){},loadColorToCSSRGB(e){var t=HEAP32[e>>>2>>>0];return"rgb("+(255&t)+","+(t>>8&255)+","+(t>>16&255)+")"},loadColorToCSSRGBA(e){var t=HEAP32[e>>>2>>>0];return"rgba("+(255&t)+","+(t>>8&255)+","+(t>>16&255)+","+(t>>24&255)/255+")"},translateColorToCSSRGBA:e=>"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>>24)/255+")",translateRGBAToCSSRGBA:(e,t,r,n)=>"rgba("+(255&e)+","+(255&t)+","+(255&r)+","+(255&n)/255+")",translateRGBAToColor:(e,t,r,n)=>e|t<<8|r<<16|n<<24,makeSurface(e,t,r,n,i,s,a,o,l){var c,u=1&r,_=2097152&r,d=67108864&r,p=_malloc(60),f=_malloc(44),m=_?1:4,g=0;!u&&!d&&(g=_malloc(e*t*4)),HEAP32[p>>>2>>>0]=r,HEAPU32[p+4>>>2>>>0]=f,HEAP32[p+8>>>2>>>0]=e,HEAP32[p+12>>>2>>>0]=t,HEAP32[p+16>>>2>>>0]=e*m,HEAPU32[p+20>>>2>>>0]=g,HEAP32[p+36>>>2>>>0]=0,HEAP32[p+40>>>2>>>0]=0,HEAP32[p+44>>>2>>>0]=Module.canvas.width,HEAP32[p+48>>>2>>>0]=Module.canvas.height,HEAP32[p+56>>>2>>>0]=1,HEAP32[f>>>2>>>0]=-2042224636,HEAP32[f+4>>>2>>>0]=0,HEAP8[f+8>>>0]=8*m,HEAP8[f+9>>>0]=m,HEAP32[f+12>>>2>>>0]=s||255,HEAP32[f+16>>>2>>>0]=a||65280,HEAP32[f+20>>>2>>>0]=o||16711680,HEAP32[f+24>>>2>>>0]=l||4278190080,SDL.GL=SDL.GL||d,n?c=Module.canvas:((c=SDL.canvasPool.length>0?SDL.canvasPool.pop():document.createElement("canvas")).width=e,c.height=t);var h={antialias:0!=SDL.glAttributes[13]&&SDL.glAttributes[14]>1,depth:SDL.glAttributes[6]>0,stencil:SDL.glAttributes[7]>0,alpha:SDL.glAttributes[3]>0},v=Browser.createContext(c,d,n,h);return SDL.surfaces[p]={width:e,height:t,canvas:c,ctx:v,surf:p,buffer:g,pixelFormat:f,alpha:255,flags:r,locked:0,usePageCanvas:n,source:i,isFlagSet:e=>r&e},p},copyIndexedColorData(e,t,r,n,i){if(e.colors){var s=Module.canvas.width,a=Module.canvas.height,o=t||0,l=r||0,c=(n||s-o)+o,u=(i||a-l)+l,_=e.buffer;e.image.data32||(e.image.data32=new Uint32Array(e.image.data.buffer));for(var d=e.image.data32,p=e.colors32,f=l;f>>0]]}},freeSurface(e){var t=e+56,r=HEAP32[t>>>2>>>0];if(r>1)HEAP32[t>>>2>>>0]=r-1;else{var n=SDL.surfaces[e];!n.usePageCanvas&&n.canvas&&SDL.canvasPool.push(n.canvas),n.buffer&&_free(n.buffer),_free(n.pixelFormat),_free(e),SDL.surfaces[e]=null,e===SDL.screen&&(SDL.screen=null)}},blitSurface(e,t,r,n,i){var s,a,o,l,c=SDL.surfaces[e],u=SDL.surfaces[r];if(s=t?SDL.loadRect(t):{x:0,y:0,w:c.width,h:c.height},a=n?SDL.loadRect(n):{x:0,y:0,w:c.width,h:c.height},u.clipRect){var _=i&&0!==s.w?s.w/a.w:1,d=i&&0!==s.h?s.h/a.h:1;a=SDL.intersectionOfRects(u.clipRect,a),s.w=a.w*_,s.h=a.h*d,n&&SDL.updateRect(n,a)}if(i?(o=a.w,l=a.h):(o=s.w,l=s.h),0===s.w||0===s.h||0===o||0===l)return 0;var p=u.ctx.globalAlpha;return u.ctx.globalAlpha=c.alpha/255,u.ctx.drawImage(c.canvas,s.x,s.y,s.w,s.h,a.x,a.y,o,l),u.ctx.globalAlpha=p,r!=SDL.screen&&(warnOnce("WARNING: copying canvas data to memory for compatibility"),_SDL_LockSurface(r),u.locked--),0},downFingers:{},savedKeydown:null,receiveEvent(e){function t(){for(var e in SDL.keyboardMap)SDL.events.push({type:"keyup",keyCode:SDL.keyboardMap[e]})}switch(e.type){case"touchstart":case"touchmove":e.preventDefault();var r=[];if("touchstart"===e.type)for(var n=0;n0?Math.max(l,1):Math.min(l,-1))>0?3:4;SDL.events.push({type:"mousedown",button:c,pageX:e.pageX,pageY:e.pageY}),SDL.events.push({type:"mouseup",button:c,pageX:e.pageX,pageY:e.pageY}),SDL.events.push({type:"wheel",deltaX:0,deltaY:l}),e.preventDefault();break;case"mousemove":if(1===SDL.DOMButtons[0]&&SDL.events.push({type:"touchmove",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}}),Browser.pointerLock&&("mozMovementX"in e&&(e.movementX=e.mozMovementX,e.movementY=e.mozMovementY),0==e.movementX&&0==e.movementY))return void e.preventDefault();case"keydown":case"keyup":case"keypress":case"mousedown":case"mouseup":if(("keydown"!==e.type||!SDL.unicode&&!SDL.textInput||8===e.keyCode||9===e.keyCode)&&e.preventDefault(),"mousedown"==e.type)SDL.DOMButtons[e.button]=1,SDL.events.push({type:"touchstart",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}});else if("mouseup"==e.type){if(!SDL.DOMButtons[e.button])return;SDL.events.push({type:"touchend",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}}),SDL.DOMButtons[e.button]=0}"keydown"===e.type||"mousedown"===e.type?SDL.canRequestFullscreen=!0:("keyup"===e.type||"mouseup"===e.type)&&(SDL.isRequestingFullscreen&&(Module.requestFullscreen(!0,!0),SDL.isRequestingFullscreen=!1),SDL.canRequestFullscreen=!1),"keypress"===e.type&&SDL.savedKeydown?(SDL.savedKeydown.keypressCharCode=e.charCode,SDL.savedKeydown=null):"keydown"===e.type&&(SDL.savedKeydown=e),("keypress"!==e.type||SDL.textInput)&&SDL.events.push(e);break;case"mouseout":for(n=0;n<3;n++)SDL.DOMButtons[n]&&(SDL.events.push({type:"mouseup",button:n,pageX:e.pageX,pageY:e.pageY}),SDL.DOMButtons[n]=0);e.preventDefault();break;case"focus":SDL.events.push(e),e.preventDefault();break;case"blur":SDL.events.push(e),t(),e.preventDefault();break;case"visibilitychange":SDL.events.push({type:"visibilitychange",visible:!document.hidden}),t(),e.preventDefault();break;case"unload":return void(MainLoop.runner&&(SDL.events.push(e),MainLoop.runner()));case"resize":SDL.events.push(e),e.preventDefault&&e.preventDefault()}SDL.events.length>=1e4&&(err("SDL event queue full, dropping events"),SDL.events=SDL.events.slice(0,1e4)),SDL.flushEventsToHandler()},lookupKeyCodeForEvent(e){var t=e.keyCode;return t>=65&&t<=90?t+=32:(t=SDL.keyCodes[e.keyCode]||e.keyCode,2===e.location&&t>=1248&&t<=1251&&(t+=4)),t},handleEvent(e){if(!e.handled)switch(e.handled=!0,e.type){case"touchstart":case"touchend":case"touchmove":Browser.calculateMouseEvent(e);break;case"keydown":case"keyup":var t="keydown"===e.type,r=SDL.lookupKeyCodeForEvent(e);HEAP8[SDL.keyboardState+r>>>0]=t,SDL.modState=(HEAP8[SDL.keyboardState+1248>>>0]?64:0)|(HEAP8[SDL.keyboardState+1249>>>0]?1:0)|(HEAP8[SDL.keyboardState+1250>>>0]?256:0)|(HEAP8[SDL.keyboardState+1252>>>0]?128:0)|(HEAP8[SDL.keyboardState+1253>>>0]?2:0)|(HEAP8[SDL.keyboardState+1254>>>0]?512:0),t?SDL.keyboardMap[r]=e.keyCode:delete SDL.keyboardMap[r];break;case"mousedown":case"mouseup":"mousedown"==e.type?SDL.buttonState|=1<0;)if(!1!==SDL.makeCEvent(SDL.events.shift(),e))return 1;return 0}return SDL.events.length>0},makeCEvent(e,t){if("number"==typeof e)return _memcpy(t,e,28),void _free(e);switch(SDL.handleEvent(e),e.type){case"keydown":case"keyup":var r,n="keydown"===e.type,i=SDL.lookupKeyCodeForEvent(e);r=i>=1024?i-1024:SDL.scanCodes[i]||i,HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP8[t+8>>>0]=n?1:0,HEAP8[t+9>>>0]=0,HEAP32[t+12>>>2>>>0]=r,HEAP32[t+16>>>2>>>0]=i,HEAP16[t+20>>>1>>>0]=SDL.modState,HEAP32[t+24>>>2>>>0]=e.keypressCharCode||i;break;case"keypress":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type];for(var s=intArrayFromString(String.fromCharCode(e.charCode)),a=0;a>>0]=s[a];break;case"mousedown":case"mouseup":case"mousemove":"mousemove"!=e.type?(n="mousedown"===e.type,HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP32[t+8>>>2>>>0]=0,HEAP32[t+12>>>2>>>0]=0,HEAP8[t+16>>>0]=e.button+1,HEAP8[t+17>>>0]=n?1:0,HEAP32[t+20>>>2>>>0]=Browser.mouseX,HEAP32[t+24>>>2>>>0]=Browser.mouseY):(HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP32[t+8>>>2>>>0]=0,HEAP32[t+12>>>2>>>0]=0,HEAP32[t+16>>>2>>>0]=SDL.buttonState,HEAP32[t+20>>>2>>>0]=Browser.mouseX,HEAP32[t+24>>>2>>>0]=Browser.mouseY,HEAP32[t+28>>>2>>>0]=Browser.mouseMovementX,HEAP32[t+32>>>2>>>0]=Browser.mouseMovementY);break;case"wheel":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+16>>>2>>>0]=e.deltaX,HEAP32[t+20>>>2>>>0]=e.deltaY;break;case"touchstart":case"touchend":case"touchmove":var o=e.touch;if(!Browser.touches[o.identifier])break;var l=Module.canvas.width,c=Module.canvas.height,u=Browser.touches[o.identifier].x/l,_=Browser.touches[o.identifier].y/c,d=u-Browser.lastTouches[o.identifier].x/l,p=_-Browser.lastTouches[o.identifier].y/c;if(void 0===o.deviceID&&(o.deviceID=SDL.TOUCH_DEFAULT_ID),0===d&&0===p&&"touchmove"===e.type)return!1;HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=_SDL_GetTicks(),tempI64=[o.deviceID>>>0,(tempDouble=o.deviceID,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+8>>>2>>>0]=tempI64[0],HEAP32[t+12>>>2>>>0]=tempI64[1],tempI64=[o.identifier>>>0,(tempDouble=o.identifier,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+16>>>2>>>0]=tempI64[0],HEAP32[t+20>>>2>>>0]=tempI64[1],HEAPF32[t+24>>>2>>>0]=u,HEAPF32[t+28>>>2>>>0]=_,HEAPF32[t+32>>>2>>>0]=d,HEAPF32[t+36>>>2>>>0]=p,void 0!==o.force?HEAPF32[t+40>>>2>>>0]=o.force:HEAPF32[t+40>>>2>>>0]="touchend"==e.type?0:1;break;case"unload":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type];break;case"resize":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=e.w,HEAP32[t+8>>>2>>>0]=e.h;break;case"joystick_button_up":case"joystick_button_down":var f="joystick_button_up"===e.type?0:1;HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP8[t+4>>>0]=e.index,HEAP8[t+5>>>0]=e.button,HEAP8[t+6>>>0]=f;break;case"joystick_axis_motion":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP8[t+4>>>0]=e.index,HEAP8[t+5>>>0]=e.axis,HEAP32[t+8>>>2>>>0]=SDL.joystickAxisValueConversion(e.value);break;case"focus":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP8[t+8>>>0]=12;break;case"blur":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP8[t+8>>>0]=13;break;case"visibilitychange":var m=e.visible?1:2;HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP8[t+8>>>0]=m;break;default:throw"Unhandled SDL event: "+e.type}},makeFontString:(e,t)=>("'"!=t.charAt(0)&&'"'!=t.charAt(0)&&(t='"'+t+'"'),e+"px "+t+", serif"),estimateTextWidth(e,t){var r=e.size,n=SDL.makeFontString(r,e.name),i=SDL.ttfContext;return i.font=n,0|i.measureText(t).width},allocateChannels(e){if(!(SDL.numChannels&&SDL.numChannels>=e&&0!=e)){SDL.numChannels=e,SDL.channels=[];for(var t=0;t{e.paused||SDL.playWebAudio(e)}));e.webAudioNode=SDL.audioContext.createBufferSource(),e.webAudioNode.buffer=t.decodedBuffer,e.webAudioNode.loop=e.loop,e.webAudioNode.onended=e.onended,e.webAudioPannerNode=SDL.audioContext.createPanner(),e.webAudioPannerNode.setPosition(0,0,-.5),e.webAudioPannerNode.panningModel="equalpower",e.webAudioGainNode=SDL.audioContext.createGain(),e.webAudioGainNode.gain.value=e.volume,e.webAudioNode.connect(e.webAudioPannerNode),e.webAudioPannerNode.connect(e.webAudioGainNode),e.webAudioGainNode.connect(SDL.audioContext.destination),e.webAudioNode.start(0,e.currentPosition),e.startTime=SDL.audioContext.currentTime-e.currentPosition}catch(e){err("playWebAudio failed: ".concat(e))}},pauseWebAudio(e){if(e){if(e.webAudioNode)try{e.currentPosition=(SDL.audioContext.currentTime-e.startTime)%e.resource.webAudio.decodedBuffer.duration,e.webAudioNode.onended=void 0,e.webAudioNode.stop(0),e.webAudioNode=void 0}catch(e){err("pauseWebAudio failed: ".concat(e))}e.paused=!0}},openAudioContext(){SDL.audioContext||(typeof AudioContext<"u"?SDL.audioContext=new AudioContext:typeof webkitAudioContext<"u"&&(SDL.audioContext=new webkitAudioContext))},webAudioAvailable:()=>!!SDL.audioContext,fillWebAudioBufferFromHeap(e,t,r){for(var n=SDL.audio,i=n.channels,s=0;s>>1>>>0]/32768;else if(8==n.format)for(o=0;o>>0];a[o]=(l>=0?l-128:l+128)/128}else{if(33056!=n.format)throw"Invalid SDL audio format "+n.format+"!";for(o=0;o>>2>>>0]}}},joystickEventState:1,lastJoystickState:{},joystickNamePool:{},recordJoystickState(e,t){for(var r=new Array(t.buttons.length),n=0;n"object"==typeof e?e.pressed:e>0,queryJoysticks(){for(var e in SDL.lastJoystickState){var t=SDL.getGamepad(e-1),r=SDL.lastJoystickState[e];if(typeof t>"u"||null===t)return;if("number"!=typeof t.timestamp||t.timestamp!=r.timestamp||!t.timestamp){var n;for(n=0;n(e=Math.min(1,Math.max(e,-1)),Math.ceil(32767.5*(e+1)-32768)),getGamepads(){var e=navigator.getGamepads||navigator.webkitGamepads||navigator.mozGamepads||navigator.gamepads||navigator.webkitGetGamepads;return void 0!==e?e.apply(navigator):[]},getGamepad(e){var t=SDL.getGamepads();return t.length>e&&e>=0?t[e]:null}};function _SDL_Linked_Version(){return null===SDL.version&&(SDL.version=_malloc(3),HEAP8[SDL.version>>>0]=1,HEAP8[SDL.version+1>>>0]=3,HEAP8[SDL.version+2>>>0]=0),SDL.version}_SDL_Linked_Version.sig="p";var _SDL_Init=e=>{if(SDL.startTime=Date.now(),SDL.initFlags=e,!Module.doNotCaptureKeyboard){var t=Module.keyboardListeningElement||document;t.addEventListener("keydown",SDL.receiveEvent),t.addEventListener("keyup",SDL.receiveEvent),t.addEventListener("keypress",SDL.receiveEvent),window.addEventListener("focus",SDL.receiveEvent),window.addEventListener("blur",SDL.receiveEvent),document.addEventListener("visibilitychange",SDL.receiveEvent)}return window.addEventListener("unload",SDL.receiveEvent),SDL.keyboardState=_calloc(65536,1),SDL.DOMEventToSDLEvent.keydown=768,SDL.DOMEventToSDLEvent.keyup=769,SDL.DOMEventToSDLEvent.keypress=771,SDL.DOMEventToSDLEvent.mousedown=1025,SDL.DOMEventToSDLEvent.mouseup=1026,SDL.DOMEventToSDLEvent.mousemove=1024,SDL.DOMEventToSDLEvent.wheel=1027,SDL.DOMEventToSDLEvent.touchstart=1792,SDL.DOMEventToSDLEvent.touchend=1793,SDL.DOMEventToSDLEvent.touchmove=1794,SDL.DOMEventToSDLEvent.unload=256,SDL.DOMEventToSDLEvent.resize=28673,SDL.DOMEventToSDLEvent.visibilitychange=512,SDL.DOMEventToSDLEvent.focus=512,SDL.DOMEventToSDLEvent.blur=512,SDL.DOMEventToSDLEvent.joystick_axis_motion=1536,SDL.DOMEventToSDLEvent.joystick_button_down=1539,SDL.DOMEventToSDLEvent.joystick_button_up=1540,0};_SDL_Init.sig="ii";var _SDL_WasInit=e=>(null===SDL.startTime&&_SDL_Init(0),1);function _SDL_GetVideoInfo(){var e=_calloc(20,1);return HEAP32[e+12>>>2>>>0]=Module.canvas.width,HEAP32[e+16>>>2>>>0]=Module.canvas.height,e}function _SDL_ListModes(e,t){return-1}_SDL_WasInit.sig="ii",_SDL_GetVideoInfo.sig="p",_SDL_ListModes.sig="ppi";var _SDL_VideoModeOK=(e,t,r,n)=>r;function _SDL_VideoDriverName(e,t){if(e>>>=0,null===SDL.startTime)return 0;var r=[101,109,115,99,114,105,112,116,101,110,95,115,100,108,95,100,114,105,118,101,114],n=0,i=r.length;for(t<=i&&(i=t-1);n>>0]=s,n++}return HEAP8[e+n>>>0]=0,e}_SDL_VideoModeOK.sig="iiiii",_SDL_VideoDriverName.sig="ppi";var _SDL_AudioDriverName=_SDL_VideoDriverName;_SDL_AudioDriverName.sig="ppi";var _SDL_SetVideoMode=function(e,t,r,n){["touchstart","touchend","touchmove","mousedown","mouseup","mousemove","mousewheel","wheel","mouseout","DOMMouseScroll"].forEach((e=>Module.canvas.addEventListener(e,SDL.receiveEvent,!0)));var i=Module.canvas;return 0==e&&0==t&&(e=i.width,t=i.height),SDL.addedResizeListener||(SDL.addedResizeListener=!0,Browser.resizeListeners.push(((e,t)=>{SDL.settingVideoMode||SDL.receiveEvent({type:"resize",w:e,h:t})}))),SDL.settingVideoMode=!0,Browser.setCanvasSize(e,t),SDL.settingVideoMode=!1,SDL.screen&&(SDL.freeSurface(SDL.screen),assert(!SDL.screen)),SDL.GL&&(n|=67108864),SDL.screen=SDL.makeSurface(e,t,n,!0,"screen"),SDL.screen};function _SDL_GetVideoSurface(){return SDL.screen}_SDL_SetVideoMode.sig="piiii",_SDL_GetVideoSurface.sig="p";var _SDL_AudioQuit=()=>{for(var e=0;eout("SDL_VideoQuit called (and ignored)");_SDL_VideoQuit.sig="v";var _SDL_QuitSubSystem=e=>out("SDL_QuitSubSystem called (and ignored)");_SDL_QuitSubSystem.sig="vi";var _SDL_Quit=()=>{_SDL_AudioQuit(),out("SDL_Quit called (and ignored)")};function _SDL_UnlockSurface(e){e>>>=0,assert(!SDL.GL);var t=SDL.surfaces[e];if(t.locked&&!(--t.locked>0)){if(t.isFlagSet(2097152))SDL.copyIndexedColorData(t);else if(t.colors)for(var r=Module.canvas.width,n=Module.canvas.height,i=t.buffer,s=t.image.data,a=t.colors,o=0;o>>0],_=l+4*c;s[_]=a[u],s[_+1]=a[u+1],s[_+2]=a[u+2]}i+=3*r}else{s=t.image.data;var d=t.buffer;assert(d%4==0,"Invalid buffer offset: "+d);var p,f=d>>>2,m=0,g=e==SDL.screen;if(typeof CanvasPixelArray<"u"&&s instanceof CanvasPixelArray)for(p=s.length;m>>0],s[m]=255&u,s[m+1]=u>>8&255,s[m+2]=u>>16&255,s[m+3]=g?255:u>>24&255,f++,m+=4;else{var h=new Uint32Array(s.buffer);if(g&&SDL.defaults.opaqueFrontBuffer){p=h.length,h.set(HEAP32.subarray(f>>>0,f+p>>>0));var v=new Uint8Array(s.buffer),b=3,y=b+4*p;if(p%8==0)for(;b>>0,f+h.length>>>0))}}t.ctx.putImageData(t.image,0,0)}}function _SDL_Flip(e){}function _SDL_UpdateRect(e,t,r,n,i){}function _SDL_UpdateRects(e,t,r){}_SDL_Quit.sig="v",_SDL_UnlockSurface.sig="vp",_SDL_Flip.sig="ip",_SDL_UpdateRect.sig="vpiiii",_SDL_UpdateRects.sig="vpip";var _SDL_Delay=e=>{ENVIRONMENT_IS_WORKER||abort("SDL_Delay called on the main thread! Potential infinite loop, quitting. (consider building with async support like ASYNCIFY)");for(var t=Date.now();Date.now()-t>>=0,(e>>>=0)&&_emscripten_set_window_title(e),t&&(t=UTF8ToString(t))}_SDL_Delay.sig="vi",_SDL_WM_SetCaption.sig="vpp";var _SDL_EnableKeyRepeat=(e,t)=>{};function _SDL_GetKeyboardState(e){return(e>>>=0)&&(HEAP32[e>>>2>>>0]=65536),SDL.keyboardState}_SDL_EnableKeyRepeat.sig="iii",_SDL_GetKeyboardState.sig="pp";var _SDL_GetKeyState=()=>_SDL_GetKeyboardState(0);function _SDL_GetKeyName(e){return SDL.keyName||(SDL.keyName=stringToNewUTF8("unknown key")),SDL.keyName}_SDL_GetKeyName.sig="pi";var _SDL_GetModState=()=>SDL.modState;function _SDL_GetMouseState(e,t){return t>>>=0,(e>>>=0)&&(HEAP32[e>>>2>>>0]=Browser.mouseX),t&&(HEAP32[t>>>2>>>0]=Browser.mouseY),SDL.buttonState}_SDL_GetModState.sig="i",_SDL_GetMouseState.sig="ipp";var _SDL_WarpMouse=(e,t)=>{};_SDL_WarpMouse.sig="vii";var _SDL_ShowCursor=e=>{switch(e){case 0:return Browser.isFullscreen?(Module.canvas.requestPointerLock(),0):1;case 1:return Module.canvas.exitPointerLock(),1;case-1:return!Browser.pointerLock;default:err("SDL_ShowCursor called with unknown toggle parameter value: ".concat(e))}};function _SDL_GetError(){return SDL.errorMessage||(SDL.errorMessage=stringToNewUTF8("unknown SDL-emscripten error")),SDL.errorMessage}function _SDL_SetError(e,t){}function _SDL_CreateRGBSurface(e,t,r,n,i,s,a,o){return SDL.makeSurface(t,r,e,!1,"CreateRGBSurface",i,s,a,o)}function _SDL_CreateRGBSurfaceFrom(e,t,r,n,i,s,a,o,l){e>>>=0;var c=SDL.makeSurface(t,r,0,!1,"CreateRGBSurfaceFrom",s,a,o,l);if(32!==n)return err("TODO: Partially unimplemented SDL_CreateRGBSurfaceFrom called!"),c;for(var u=SDL.surfaces[c],_=u.ctx.createImageData(t,r),d=4*t,p=0;p>>0];return u.ctx.putImageData(_,0,0),c}function _SDL_ConvertSurface(e,t,r){e>>>=0,(t>>>=0)&&SDL.checkPixelFormat(t);var n=SDL.surfaces[e],i=SDL.makeSurface(n.width,n.height,n.flags,!1,"copy:"+n.source),s=SDL.surfaces[i];return s.ctx.globalCompositeOperation="copy",s.ctx.drawImage(n.canvas,0,0),s.ctx.globalCompositeOperation=n.ctx.globalCompositeOperation,i}function _SDL_DisplayFormatAlpha(e){return _SDL_ConvertSurface(e>>>=0,0,0)}function _SDL_FreeSurface(e){(e>>>=0)&&SDL.freeSurface(e)}function _SDL_UpperBlit(e,t,r,n){return e>>>=0,t>>>=0,r>>>=0,n>>>=0,SDL.blitSurface(e,t,r,n,!1)}function _SDL_UpperBlitScaled(e,t,r,n){return e>>>=0,t>>>=0,r>>>=0,n>>>=0,SDL.blitSurface(e,t,r,n,!0)}_SDL_ShowCursor.sig="ii",_SDL_GetError.sig="p",_SDL_SetError.sig="vpp",_SDL_CreateRGBSurface.sig="piiiiiiii",_SDL_CreateRGBSurfaceFrom.sig="ppiiiiiiii",_SDL_ConvertSurface.sig="pppi",_SDL_DisplayFormatAlpha.sig="pp",_SDL_FreeSurface.sig="vp",_SDL_UpperBlit.sig="ipppp",_SDL_UpperBlitScaled.sig="ipppp";var _SDL_LowerBlit=_SDL_UpperBlit;_SDL_LowerBlit.sig="ipppp";var _SDL_LowerBlitScaled=_SDL_UpperBlitScaled;function _SDL_GetClipRect(e,t){e>>>=0,assert(t>>>=0);var r=SDL.surfaces[e],n=r.clipRect||{x:0,y:0,w:r.width,h:r.height};SDL.updateRect(t,n)}function _SDL_SetClipRect(e,t){e>>>=0,t>>>=0;var r=SDL.surfaces[e];t?r.clipRect=SDL.intersectionOfRects({x:0,y:0,w:r.width,h:r.height},SDL.loadRect(t)):delete r.clipRect}function _SDL_FillRect(e,t,r){e>>>=0,t>>>=0;var n=SDL.surfaces[e];assert(!n.locked),n.isFlagSet(2097152)&&(r=n.colors32[r]);var i=t?SDL.loadRect(t):{x:0,y:0,w:n.width,h:n.height};return n.clipRect&&(i=SDL.intersectionOfRects(n.clipRect,i),t&&SDL.updateRect(t,i)),n.ctx.save(),n.ctx.fillStyle=SDL.translateColorToCSSRGBA(r),n.ctx.fillRect(i.x,i.y,i.w,i.h),n.ctx.restore(),0}function _zoomSurface(e,t,r,n){e>>>=0;var i=SDL.surfaces[e],s=i.width*t,a=i.height*r,o=SDL.makeSurface(Math.abs(s),Math.abs(a),i.flags,!1,"zoomSurface"),l=SDL.surfaces[o];return t>=0&&r>=0?l.ctx.drawImage(i.canvas,0,0,s,a):(l.ctx.save(),l.ctx.scale(t<0?-1:1,r<0?-1:1),l.ctx.drawImage(i.canvas,s<0?s:0,a<0?a:0,Math.abs(s),Math.abs(a)),l.ctx.restore()),o}function _rotozoomSurface(e,t,r,n){if(e>>>=0,t%360==0)return _zoomSurface(e,r,r,n);var i=SDL.surfaces[e],s=i.width*r,a=i.height*r,o=Math.ceil(Math.sqrt(Math.pow(s,2)+Math.pow(a,2))),l=SDL.makeSurface(o,o,i.flags,!1,"rotozoomSurface"),c=SDL.surfaces[l];return c.ctx.translate(o/2,o/2),c.ctx.rotate(-t*Math.PI/180),c.ctx.drawImage(i.canvas,-s/2,-a/2,s,a),l}function _SDL_SetAlpha(e,t,r){e>>>=0;var n=SDL.surfaces[e];n.alpha=r,65536&t||(n.alpha=255)}function _SDL_SetColorKey(e,t,r){return warnOnce("SDL_SetColorKey is a no-op for performance reasons"),0}function _SDL_PollEvent(e){return e>>>=0,SDL.pollEvent(e)}function _SDL_PushEvent(e){e>>>=0;var t=_malloc(28);return _memcpy(t,e,28),SDL.events.push(t),0}function _SDL_PeepEvents(e,t,r,n,i){if(2===(e>>>=0,r)){assert(1==t);for(var s=0,a=0;sSDL.events.forEach(SDL.handleEvent);function _emscripten_SDL_SetEventHandler(e,t){e>>>=0,t>>>=0,SDL.eventHandler=e,SDL.eventHandlerContext=t,SDL.eventHandlerTemp||(SDL.eventHandlerTemp=_malloc(28))}function _SDL_SetColors(e,t,r,n){e>>>=0,t>>>=0;var i=SDL.surfaces[e];if(!i.colors){var s=new ArrayBuffer(1024);i.colors=new Uint8Array(s),i.colors32=new Uint32Array(s)}for(var a=0;a>>0],i.colors[o+1]=HEAPU8[t+(4*a+1)>>>0],i.colors[o+2]=HEAPU8[t+(4*a+2)>>>0],i.colors[o+3]=255}return 1}function _SDL_SetPalette(e,t,r,n,i){return _SDL_SetColors(e>>>=0,r>>>=0,n,i)}function _SDL_MapRGB(e,t,r,n){return e>>>=0,SDL.checkPixelFormat(e),255&t|(255&r)<<8|(255&n)<<16|4278190080}function _SDL_MapRGBA(e,t,r,n,i){return e>>>=0,SDL.checkPixelFormat(e),255&t|(255&r)<<8|(255&n)<<16|(255&i)<<24}function _SDL_GetRGB(e,t,r,n,i){t>>>=0,r>>>=0,n>>>=0,i>>>=0,SDL.checkPixelFormat(t),r&&(HEAP8[r>>>0]=255&e),n&&(HEAP8[n>>>0]=e>>8&255),i&&(HEAP8[i>>>0]=e>>16&255)}function _SDL_GetRGBA(e,t,r,n,i,s){t>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,SDL.checkPixelFormat(t),r&&(HEAP8[r>>>0]=255&e),n&&(HEAP8[n>>>0]=e>>8&255),i&&(HEAP8[i>>>0]=e>>16&255),s&&(HEAP8[s>>>0]=e>>24&255)}_SDL_PumpEvents.sig="v",_emscripten_SDL_SetEventHandler.sig="vpp",_SDL_SetColors.sig="ippii",_SDL_SetPalette.sig="ipipii",_SDL_MapRGB.sig="ipiii",_SDL_MapRGBA.sig="ipiiii",_SDL_GetRGB.sig="vipppp",_SDL_GetRGBA.sig="vippppp";var _SDL_GetAppState=()=>{var e=0;return Browser.pointerLock&&(e|=1),document.hasFocus()&&(e|=2),4|e};_SDL_GetAppState.sig="i";var _SDL_WM_GrabInput=()=>{};function _SDL_WM_ToggleFullScreen(e){return Browser.exitFullscreen()?1:SDL.canRequestFullscreen?(SDL.isRequestingFullscreen=!0,1):0}_SDL_WM_GrabInput.sig="ii",_SDL_WM_ToggleFullScreen.sig="ip";var _IMG_Init=e=>e;function _SDL_FreeRW(e){for(e>>>=0,SDL.rwops[e]=null;SDL.rwops.length>0&&null===SDL.rwops[SDL.rwops.length-1];)SDL.rwops.pop()}_IMG_Init.sig="ii",_SDL_FreeRW.sig="vp";var _IMG_Load_RW=function(e,t){e>>>=0;var r=stackSave();try{var n=()=>{stackRestore(r),i&&t&&_SDL_FreeRW(e)},i=SDL.rwops[e];if(void 0===i)return 0;var s,a=i.filename;if(void 0===a)return warnOnce("Only file names that have been preloaded are supported for IMG_Load_RW. Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins"),0;if(!s){if(a=PATH_FS.resolve(a),!(s=preloadedImages[a]))return null===s&&err("Trying to reuse preloaded image, but freePreloadedMediaOnUse is set!"),warnOnce("Cannot find preloaded image "+a),warnOnce("Cannot find preloaded image "+a+". Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins"),0;Module.freePreloadedMediaOnUse&&(preloadedImages[a]=null)}var o=SDL.makeSurface(s.width,s.height,0,!1,"load:"+a),l=SDL.surfaces[o];if(l.ctx.globalCompositeOperation="copy",s.rawData){var c=l.ctx.getImageData(0,0,l.width,l.height);if(4==s.bpp)c.data.set(HEAPU8.subarray(s.data>>>0,s.data+s.size>>>0));else if(3==s.bpp)for(var u=s.size/3,_=c.data,d=s.data,p=0,f=0;f>>0],_[p++]=HEAPU8[d++>>>0],_[p++]=HEAPU8[d++>>>0],_[p++]=255;else if(2==s.bpp)for(u=s.size,_=c.data,d=s.data,p=0,f=0;f>>0],g=HEAPU8[d++>>>0];_[p++]=m,_[p++]=m,_[p++]=m,_[p++]=g}else{if(1!=s.bpp)return err("cannot handle bpp ".concat(s.bpp)),0;for(u=s.size,_=c.data,d=s.data,p=0,f=0;f>>0];_[p++]=h,_[p++]=h,_[p++]=h,_[p++]=255}}l.ctx.putImageData(c,0,0)}else l.ctx.drawImage(s,0,0,s.width,s.height,0,0,s.width,s.height);return l.ctx.globalCompositeOperation="source-over",_SDL_LockSurface(o),l.locked--,SDL.GL&&(l.canvas=l.ctx=null),o}finally{n()}};_IMG_Load_RW.sig="ppi";var _SDL_LoadBMP_RW=_IMG_Load_RW;function _SDL_RWFromFile(e,t){e>>>=0;var r=SDL.rwops.length,n=UTF8ToString(e);return SDL.rwops.push({filename:n,mimetype:Browser.getMimetype(n)}),r}function _IMG_Load(e){var t=_SDL_RWFromFile(e>>>=0,0);return _IMG_Load_RW(t,1)}_SDL_LoadBMP_RW.sig="ppi",_SDL_RWFromFile.sig="ppp",_IMG_Load.sig="pp";var _IMG_Quit=()=>out("IMG_Quit called (and ignored)");function _SDL_OpenAudio(e,t){e>>>=0,t>>>=0;try{if(SDL.audio={freq:HEAPU32[e>>>2>>>0],format:HEAPU16[e+4>>>1>>>0],channels:HEAPU8[e+6>>>0],samples:HEAPU16[e+8>>>1>>>0],callback:HEAPU32[e+16>>>2>>>0],userdata:HEAPU32[e+20>>>2>>>0],paused:!0,timer:null},8==SDL.audio.format)SDL.audio.silence=128;else if(32784==SDL.audio.format)SDL.audio.silence=0;else{if(33056!=SDL.audio.format)throw"Invalid SDL audio format "+SDL.audio.format+"!";SDL.audio.silence=0}if(SDL.audio.freq<=0)throw"Unsupported sound frequency "+SDL.audio.freq+"!";if(SDL.audio.freq<=22050)SDL.audio.freq=22050;else if(SDL.audio.freq<=32e3)SDL.audio.freq=32e3;else if(SDL.audio.freq<=44100)SDL.audio.freq=44100;else if(SDL.audio.freq<=48e3)SDL.audio.freq=48e3;else{if(!(SDL.audio.freq<=96e3))throw"Unsupported sound frequency ".concat(SDL.audio.freq,"!");SDL.audio.freq=96e3}if(0==SDL.audio.channels)SDL.audio.channels=1;else{if(SDL.audio.channels<0||SDL.audio.channels>32)throw"Unsupported number of audio channels for SDL audio: ".concat(SDL.audio.channels,"!");1!=SDL.audio.channels&&2!=SDL.audio.channels&&out("Warning: Using untested number of audio channels ".concat(SDL.audio.channels))}if(SDL.audio.samples<128||SDL.audio.samples>524288)throw"Unsupported audio callback buffer size ".concat(SDL.audio.samples,"!");if(SDL.audio.samples&SDL.audio.samples-1)throw"Audio callback buffer size ".concat(SDL.audio.samples," must be a power-of-two!");var r=SDL.audio.samples*SDL.audio.channels;if(8==SDL.audio.format)SDL.audio.bytesPerSample=1;else if(32784==SDL.audio.format)SDL.audio.bytesPerSample=2;else{if(33056!=SDL.audio.format)throw"Invalid SDL audio format ".concat(SDL.audio.format,"!");SDL.audio.bytesPerSample=4}if(SDL.audio.bufferSize=r*SDL.audio.bytesPerSample,SDL.audio.bufferDurationSecs=SDL.audio.bufferSize/SDL.audio.bytesPerSample/SDL.audio.channels/SDL.audio.freq,SDL.audio.bufferingDelay=.05,SDL.audio.buffer=_malloc(SDL.audio.bufferSize),SDL.audio.numSimultaneouslyQueuedBuffers=Module.SDL_numSimultaneouslyQueuedBuffers||5,SDL.audio.queueNewAudioData=()=>{if(SDL.audio)for(var e=0;e=SDL.audio.bufferingDelay+SDL.audio.bufferDurationSecs*SDL.audio.numSimultaneouslyQueuedBuffers)return;getWasmTableEntry(SDL.audio.callback)(SDL.audio.userdata,SDL.audio.buffer,SDL.audio.bufferSize),SDL.audio.pushAudio(SDL.audio.buffer,SDL.audio.bufferSize)}},SDL.audio.caller=()=>{if(SDL.audio){--SDL.audio.numAudioTimersPending,SDL.audio.queueNewAudioData();var e=SDL.audio.nextPlayTime-SDL.audioContext.currentTime,t=SDL.audio.bufferDurationSecs/2;SDL.audio.numAudioTimersPending{try{if(SDL.audio.paused)return;var r=t/SDL.audio.bytesPerSample/SDL.audio.channels;if(r!=SDL.audio.samples)throw"Received mismatching audio buffer size!";var n=SDL.audioContext.createBufferSource(),i=SDL.audioContext.createBuffer(SDL.audio.channels,r,SDL.audio.freq);n.connect(SDL.audioContext.destination),SDL.fillWebAudioBufferFromHeap(e,r,i),n.buffer=i;var s=SDL.audioContext.currentTime,a=Math.max(s+SDL.audio.bufferingDelay,SDL.audio.nextPlayTime);typeof n.start<"u"?n.start(a):typeof n.noteOn<"u"&&n.noteOn(a),SDL.audio.nextPlayTime=a+SDL.audio.bufferDurationSecs}catch(e){err("Web Audio API error playing back audio: ".concat(e.toString()))}},t&&(HEAP32[t>>>2>>>0]=SDL.audio.freq,HEAP16[t+4>>>1>>>0]=SDL.audio.format,HEAP8[t+6>>>0]=SDL.audio.channels,HEAP8[t+7>>>0]=SDL.audio.silence,HEAP16[t+8>>>1>>>0]=SDL.audio.samples,HEAPU32[t+16>>>2>>>0]=SDL.audio.callback,HEAPU32[t+20>>>2>>>0]=SDL.audio.userdata),SDL.allocateChannels(32)}catch(e){err('Initializing SDL audio threw an exception: "'.concat(e.toString(),'"! Continuing without audio')),SDL.audio=null,SDL.allocateChannels(0),t&&(HEAP32[t>>>2>>>0]=0,HEAP16[t+4>>>1>>>0]=0,HEAP8[t+6>>>0]=0,HEAP8[t+7>>>0]=0,HEAP16[t+8>>>1>>>0]=0,HEAPU32[t+16>>>2>>>0]=0,HEAPU32[t+20>>>2>>>0]=0)}return SDL.audio?0:-1}_IMG_Quit.sig="v",_SDL_OpenAudio.sig="ipp";var _SDL_PauseAudio=e=>{SDL.audio&&(e?void 0!==SDL.audio.timer&&(clearTimeout(SDL.audio.timer),SDL.audio.numAudioTimersPending=0,SDL.audio.timer=void 0):SDL.audio.timer||(SDL.audio.numAudioTimersPending=1,SDL.audio.timer=safeSetTimeout(SDL.audio.caller,1)),SDL.audio.paused=e)};_SDL_PauseAudio.sig="vi";var _SDL_CloseAudio=()=>{SDL.audio&&(SDL.audio.callbackRemover&&(SDL.audio.callbackRemover(),SDL.audio.callbackRemover=null),_SDL_PauseAudio(1),_free(SDL.audio.buffer),SDL.audio=null,SDL.allocateChannels(0))};_SDL_CloseAudio.sig="v";var _SDL_LockAudio=()=>{};_SDL_LockAudio.sig="v";var _SDL_UnlockAudio=()=>{};function _SDL_CreateMutex(){return 0}function _SDL_mutexP(e){return 0}function _SDL_mutexV(e){return 0}function _SDL_DestroyMutex(e){}function _SDL_CreateCond(){return 0}function _SDL_CondSignal(e){}function _SDL_CondWait(e,t){}function _SDL_DestroyCond(e){}_SDL_UnlockAudio.sig="v",_SDL_CreateMutex.sig="p",_SDL_mutexP.sig="ip",_SDL_mutexV.sig="ip",_SDL_DestroyMutex.sig="vp",_SDL_CreateCond.sig="p",_SDL_CondSignal.sig="ip",_SDL_CondWait.sig="ipp",_SDL_DestroyCond.sig="vp";var _SDL_StartTextInput=()=>{SDL.textInput=!0};_SDL_StartTextInput.sig="v";var _SDL_StopTextInput=()=>{SDL.textInput=!1};_SDL_StopTextInput.sig="v";var _Mix_Init=e=>e?8:0;_Mix_Init.sig="ii";var _Mix_Quit=()=>{};_Mix_Quit.sig="v";var _Mix_OpenAudio=(e,t,r,n)=>(SDL.openAudioContext(),autoResumeAudioContext(SDL.audioContext),SDL.allocateChannels(32),SDL.mixerFrequency=e,SDL.mixerFormat=t,SDL.mixerNumChannels=r,SDL.mixerChunkSize=n,0);_Mix_OpenAudio.sig="iiiii";var _Mix_CloseAudio=_SDL_CloseAudio;_Mix_CloseAudio.sig="v";var _Mix_AllocateChannels=e=>(SDL.allocateChannels(e),e);function _Mix_ChannelFinished(e){e>>>=0,SDL.channelFinished=e}_Mix_AllocateChannels.sig="ii",_Mix_ChannelFinished.sig="vp";var _Mix_Volume=(e,t)=>{if(-1==e){for(var r=0;r(t/=255,r/=255,SDL.setPannerPosition(SDL.channels[e],r-t,0,.1),1);function _Mix_LoadWAV_RW(e,t){e>>>=0;var r=SDL.rwops[e];if(void 0===r)return 0;var n,i,s,a="";if(void 0!==r.filename){a=PATH_FS.resolve(r.filename);var o=preloadedAudios[a];if(!o){null===o&&err("Trying to reuse preloaded audio, but freePreloadedMediaOnUse is set!"),Module.noAudioDecoding||warnOnce("Cannot find preloaded audio "+a);try{s=FS.readFile(a)}catch(e){return err("Couldn't find file for: ".concat(a)),0}}Module.freePreloadedMediaOnUse&&(preloadedAudios[a]=null),n=o}else{if(void 0===r.bytes)return 0;s=SDL.webAudioAvailable()?HEAPU8.buffer.slice(r.bytes,r.bytes+r.count):HEAPU8.subarray(r.bytes>>>0,r.bytes+r.count>>>0)}var l=s&&(s.buffer||s),c=void 0===Module.SDL_canPlayWithWebAudio||Module.SDL_canPlayWithWebAudio(a,l);if(void 0!==s&&SDL.webAudioAvailable()&&c)n=void 0,(i={}).onDecodeComplete=[],SDL.audioContext.decodeAudioData(l,(e=>{i.decodedBuffer=e,i.onDecodeComplete.forEach((e=>e())),i.onDecodeComplete=void 0}));else if(void 0===n&&s){var u=new Blob([s],{type:r.mimetype}),_=URL.createObjectURL(u);(n=new Audio).src=_,n.mozAudioChannelType="content"}var d=SDL.audios.length;return SDL.audios.push({source:a,audio:n,webAudio:i}),d}function _Mix_LoadWAV(e){var t=_SDL_RWFromFile(e>>>=0,0),r=_Mix_LoadWAV_RW(t,0);return _SDL_FreeRW(t),r}function _Mix_QuickLoad_RAW(e,t){e>>>=0;for(var r,n,i=t>>1,s=new Float32Array(i),a=0;a>>1>>>0]/32768;SDL.webAudioAvailable()?(n={}).decodedBuffer=s:((r=new Audio).mozAudioChannelType="content",r.numChannels=SDL.mixerNumChannels,r.frequency=SDL.mixerFrequency);var o=SDL.audios.length;return SDL.audios.push({source:"",audio:r,webAudio:n,buffer:s}),o}function _Mix_FreeChunk(e){e>>>=0,SDL.audios[e]=null}_Mix_SetPanning.sig="iiii",_Mix_LoadWAV_RW.sig="ppi",_Mix_LoadWAV.sig="pp",_Mix_QuickLoad_RAW.sig="ppi",_Mix_FreeChunk.sig="vp";var _Mix_ReserveChannels=e=>{SDL.channelMinimumNumber=e};_Mix_ReserveChannels.sig="ii";var _Mix_HaltChannel=e=>{function t(e){var t=SDL.channels[e];t.audio&&(t.audio.pause(),t.audio=null),SDL.channelFinished&&getWasmTableEntry(SDL.channelFinished)(e)}if(-1!=e)t(e);else for(var r=0;r>>=0,assert(-1==n);var i=SDL.audios[t];if(!i||!i.audio&&!i.webAudio)return-1;if(-1==e){for(var s=SDL.channelMinimumNumber;s0;_Mix_FadingChannel.sig="ii";var _Mix_HaltMusic=()=>{var e=SDL.music.audio;return e&&(e.src=e.src,e.currentPosition=0,e.pause()),SDL.music.audio=null,SDL.hookMusicFinished&&getWasmTableEntry(SDL.hookMusicFinished)(),0};function _Mix_HookMusicFinished(e){e>>>=0,SDL.hookMusicFinished=e,SDL.music.audio&&(SDL.music.audio.onended=_Mix_HaltMusic)}_Mix_HaltMusic.sig="i",_Mix_HookMusicFinished.sig="vp";var _Mix_VolumeMusic=e=>SDL.setGetVolume(SDL.music,e);function _Mix_LoadMUS_RW(e){return _Mix_LoadWAV_RW(e>>>=0,0)}function _Mix_LoadMUS(e){var t=_SDL_RWFromFile(e>>>=0,0),r=_Mix_LoadMUS_RW(t);return _SDL_FreeRW(t),r}_Mix_VolumeMusic.sig="ii",_Mix_LoadMUS_RW.sig="pp",_Mix_LoadMUS.sig="pp";var _Mix_FreeMusic=_Mix_FreeChunk;function _Mix_PlayMusic(e,t){e>>>=0,SDL.music.audio&&(SDL.music.audio.paused||err("Music is already playing. ".concat(SDL.music.source)),SDL.music.audio.pause());var r,n=SDL.audios[e];return n.webAudio?((r={}).resource=n,r.paused=!1,r.currentPosition=0,r.play=function(){SDL.playWebAudio(this)},r.pause=function(){SDL.pauseWebAudio(this)}):n.audio&&(r=n.audio),r.onended=function(){var e;(SDL.music.audio===this||(null==(e=SDL.music.audio)?void 0:e.webAudioNode)===this)&&_Mix_HaltMusic()},r.loop=0!=t&&1!=t,r.volume=SDL.music.volume,SDL.music.audio=r,r.play(),0}_Mix_FreeMusic.sig="vp",_Mix_PlayMusic.sig="ipi";var _Mix_PauseMusic=()=>{var e=SDL.music.audio;null==e||e.pause()};_Mix_PauseMusic.sig="v";var _Mix_ResumeMusic=()=>{var e=SDL.music.audio;null==e||e.play()};_Mix_ResumeMusic.sig="v";var _Mix_FadeInMusicPos=_Mix_PlayMusic;_Mix_FadeInMusicPos.sig="ipiid";var _Mix_FadeOutMusic=_Mix_HaltMusic;_Mix_FadeOutMusic.sig="ii";var _Mix_PlayingMusic=()=>SDL.music.audio&&!SDL.music.audio.paused?1:0;_Mix_PlayingMusic.sig="i";var _Mix_Playing=e=>{if(-1===e){for(var t=0,r=0;r{if(-1!==e){var t=SDL.channels[e];null!=t&&t.audio&&t.audio.pause()}else for(var r=0;r{var t;if(-1===e){for(var r=0,n=0;n{var e;return null!=(e=SDL.music.audio)&&e.paused?1:0};_Mix_PausedMusic.sig="i";var _Mix_Resume=e=>{if(-1!==e){var t=SDL.channels[e];null!=t&&t.audio&&t.audio.play()}else for(var r=0;r{try{var e=new OffscreenCanvas(0,0);if(SDL.ttfContext=e.getContext("2d"),"function"!=typeof SDL.ttfContext.measureText)throw"bad context"}catch(e){var t=document.createElement("canvas");SDL.ttfContext=t.getContext("2d")}return 0};function _TTF_OpenFont(e,t){e>>>=0,e=PATH.normalize(UTF8ToString(e));var r=SDL.fonts.length;return SDL.fonts.push({name:e,size:t}),r}function _TTF_CloseFont(e){e>>>=0,SDL.fonts[e]=null}function _TTF_RenderText_Solid(e,t,r){e>>>=0,r>>>=0,t=UTF8ToString(t>>>=0)||" ";var n=SDL.fonts[e],i=SDL.estimateTextWidth(n,t),s=n.size;r=SDL.loadColorToCSSRGB(r);var a=SDL.makeFontString(s,n.name),o=SDL.makeSurface(i,s,0,!1,"text:"+t),l=SDL.surfaces[o];return l.ctx.save(),l.ctx.fillStyle=r,l.ctx.font=a,l.ctx.textBaseline="bottom",l.ctx.fillText(t,0,0|s),l.ctx.restore(),o}_TTF_Init.sig="i",_TTF_OpenFont.sig="ppi",_TTF_CloseFont.sig="vp",_TTF_RenderText_Solid.sig="pppp";var _TTF_RenderText_Blended=_TTF_RenderText_Solid;_TTF_RenderText_Blended.sig="pppp";var _TTF_RenderText_Shaded=_TTF_RenderText_Solid;_TTF_RenderText_Shaded.sig="ppppp";var _TTF_RenderUTF8_Solid=_TTF_RenderText_Solid;function _TTF_SizeText(e,t,r,n){e>>>=0,t>>>=0,r>>>=0,n>>>=0;var i=SDL.fonts[e];return r&&(HEAP32[r>>>2>>>0]=SDL.estimateTextWidth(i,UTF8ToString(t))),n&&(HEAP32[n>>>2>>>0]=i.size),0}_TTF_RenderUTF8_Solid.sig="pppp",_TTF_SizeText.sig="ipppp";var _TTF_SizeUTF8=_TTF_SizeText;function _TTF_GlyphMetrics(e,t,r,n,i,s,a){e>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,a>>>=0;var o=SDL.fonts[e],l=SDL.estimateTextWidth(o,String.fromCharCode(t));a&&(HEAP32[a>>>2>>>0]=l),r&&(HEAP32[r>>>2>>>0]=0),n&&(HEAP32[n>>>2>>>0]=l),i&&(HEAP32[i>>>2>>>0]=0),s&&(HEAP32[s>>>2>>>0]=o.size)}function _TTF_FontAscent(e){return e>>>=0,.98*SDL.fonts[e].size|0}function _TTF_FontDescent(e){return e>>>=0,.02*SDL.fonts[e].size|0}function _TTF_FontHeight(e){return e>>>=0,SDL.fonts[e].size}_TTF_SizeUTF8.sig="ipppp",_TTF_GlyphMetrics.sig="ipippppp",_TTF_FontAscent.sig="ip",_TTF_FontDescent.sig="ip",_TTF_FontHeight.sig="ip";var _TTF_FontLineSkip=_TTF_FontHeight;_TTF_FontLineSkip.sig="ip";var _TTF_Quit=()=>out("TTF_Quit called (and ignored)");_TTF_Quit.sig="v";var SDL_gfx={drawRectangle:(e,t,r,n,i,s,a)=>{t=t<<16>>16,r=r<<16>>16,n=n<<16>>16,i=i<<16>>16;var o=SDL.surfaces[e];assert(!o.locked);var l=t{t=t<<16>>16,r=r<<16>>16,n=n<<16>>16,i=i<<16>>16;var a=SDL.surfaces[e];assert(!a.locked),a.ctx.save(),a.ctx.strokeStyle=s,a.ctx.beginPath(),a.ctx.moveTo(t,r),a.ctx.lineTo(n,i),a.ctx.stroke(),a.ctx.restore()},drawEllipse:(e,t,r,n,i,s,a)=>{t=t<<16>>16,r=r<<16>>16,n=n<<16>>16,i=i<<16>>16;var o=SDL.surfaces[e];assert(!o.locked),o.ctx.save(),o.ctx.beginPath(),o.ctx.translate(t,r),o.ctx.scale(n,i),o.ctx.arc(0,0,1,0,2*Math.PI),o.ctx.restore(),o.ctx.save(),o.ctx[s+"Style"]=a,o.ctx[s](),o.ctx.restore()},translateColorToCSSRGBA:e=>"rgba(".concat(e>>>24,",").concat(e>>16&255,",").concat(e>>8&255,",").concat(255&e,")")};function _boxColor(e,t,r,n,i,s){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,n,i,"fill",SDL_gfx.translateColorToCSSRGBA(s))}function _boxRGBA(e,t,r,n,i,s,a,o,l){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,n,i,"fill",SDL.translateRGBAToCSSRGBA(s,a,o,l))}function _rectangleColor(e,t,r,n,i,s){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,n,i,"stroke",SDL_gfx.translateColorToCSSRGBA(s))}function _rectangleRGBA(e,t,r,n,i,s,a,o,l){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,n,i,"stroke",SDL.translateRGBAToCSSRGBA(s,a,o,l))}function _ellipseColor(e,t,r,n,i,s){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,n,i,"stroke",SDL_gfx.translateColorToCSSRGBA(s))}function _ellipseRGBA(e,t,r,n,i,s,a,o,l){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,n,i,"stroke",SDL.translateRGBAToCSSRGBA(s,a,o,l))}function _filledEllipseColor(e,t,r,n,i,s){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,n,i,"fill",SDL_gfx.translateColorToCSSRGBA(s))}function _filledEllipseRGBA(e,t,r,n,i,s,a,o,l){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,n,i,"fill",SDL.translateRGBAToCSSRGBA(s,a,o,l))}function _lineColor(e,t,r,n,i,s){return e>>>=0,SDL_gfx.drawLine(e,t,r,n,i,SDL_gfx.translateColorToCSSRGBA(s))}function _lineRGBA(e,t,r,n,i,s,a,o,l){return e>>>=0,SDL_gfx.drawLine(e,t,r,n,i,SDL.translateRGBAToCSSRGBA(s,a,o,l))}function _pixelRGBA(e,t,r,n,i,s,a){return _boxRGBA(e>>>=0,t,r,t,r,n,i,s,a)}_boxColor.sig="ipiiiii",_boxRGBA.sig="ipiiiiiiii",_rectangleColor.sig="ipiiiii",_rectangleRGBA.sig="ipiiiiiiii",_ellipseColor.sig="ipiiiii",_ellipseRGBA.sig="ipiiiiiiii",_filledEllipseColor.sig="ipiiiii",_filledEllipseRGBA.sig="ipiiiiiiii",_lineColor.sig="ipiiiii",_lineRGBA.sig="ipiiiiiiii",_pixelRGBA.sig="ipiiiiii";var _SDL_GL_SetAttribute=(e,t)=>{e in SDL.glAttributes||abort("Unknown SDL GL attribute ("+e+"). Please check if your SDL version is supported."),SDL.glAttributes[e]=t};function _SDL_GL_GetAttribute(e,t){return t>>>=0,e in SDL.glAttributes||abort("Unknown SDL GL attribute ("+e+"). Please check if your SDL version is supported."),t&&(HEAP32[t>>>2>>>0]=SDL.glAttributes[e]),0}_SDL_GL_SetAttribute.sig="iii",_SDL_GL_GetAttribute.sig="iip";var _SDL_GL_SwapBuffers=()=>{var e;null==(e=Browser.doSwapBuffers)||e.call(Browser)};function _SDL_GL_ExtensionSupported(e){return e>>>=0,0|Module.ctx.getExtension(e)}function _SDL_DestroyWindow(e){}function _SDL_DestroyRenderer(e){}function _SDL_GetWindowFlags(e){return Browser.isFullscreen?1:0}function _SDL_GL_SwapWindow(e){}function _SDL_GL_MakeCurrent(e,t){}function _SDL_GL_DeleteContext(e){}_SDL_GL_SwapBuffers.sig="v",_SDL_GL_ExtensionSupported.sig="ip",_SDL_DestroyWindow.sig="vp",_SDL_DestroyRenderer.sig="vp",_SDL_GetWindowFlags.sig="ip",_SDL_GL_SwapWindow.sig="vp",_SDL_GL_MakeCurrent.sig="ipp",_SDL_GL_DeleteContext.sig="vp";var _SDL_GL_GetSwapInterval=()=>1==MainLoop.timingMode?MainLoop.timingValue:0;_SDL_GL_GetSwapInterval.sig="i";var _SDL_GL_SetSwapInterval=e=>{_emscripten_set_main_loop_timing(1,e)};function _SDL_SetWindowTitle(e,t){(t>>>=0)&&(document.title=UTF8ToString(t))}function _SDL_GetWindowSize(e,t,r){t>>>=0,r>>>=0;var n=Module.canvas.width,i=Module.canvas.height;t&&(HEAP32[t>>>2>>>0]=n),r&&(HEAP32[r>>>2>>>0]=i)}function _SDL_LogSetOutputFunction(e,t){}function _SDL_SetWindowFullscreen(e,t){return Browser.isFullscreen?(Module.canvas.exitFullscreen(),1):0}_SDL_GL_SetSwapInterval.sig="ii",_SDL_SetWindowTitle.sig="vpp",_SDL_GetWindowSize.sig="vppp",_SDL_LogSetOutputFunction.sig="vpp",_SDL_SetWindowFullscreen.sig="ipi";var _SDL_ClearError=()=>{};_SDL_ClearError.sig="v";var _SDL_SetGamma=(e,t,r)=>-1;function _SDL_SetGammaRamp(e,t,r){return-1}_SDL_SetGamma.sig="ifff",_SDL_SetGammaRamp.sig="ippp";var _SDL_NumJoysticks=()=>{for(var e=0,t=SDL.getGamepads(),r=0;rSDL.lastJoystickState.hasOwnProperty(e+1)?1:0;function _SDL_JoystickIndex(e){return(e>>>=0)-1}function _SDL_JoystickNumAxes(e){e>>>=0;var t=SDL.getGamepad(e-1);return t?t.axes.length:0}function _SDL_JoystickNumBalls(e){return 0}function _SDL_JoystickNumHats(e){return 0}function _SDL_JoystickNumButtons(e){e>>>=0;var t=SDL.getGamepad(e-1);return t?t.buttons.length:0}_SDL_JoystickOpened.sig="ii",_SDL_JoystickIndex.sig="ip",_SDL_JoystickNumAxes.sig="ip",_SDL_JoystickNumBalls.sig="ip",_SDL_JoystickNumHats.sig="ip",_SDL_JoystickNumButtons.sig="ip";var _SDL_JoystickUpdate=()=>SDL.queryJoysticks();_SDL_JoystickUpdate.sig="v";var _SDL_JoystickEventState=e=>e<0?SDL.joystickEventState:SDL.joystickEventState=e;function _SDL_JoystickGetAxis(e,t){e>>>=0;var r=SDL.getGamepad(e-1);return r&&r.axes.length>t?SDL.joystickAxisValueConversion(r.axes[t]):0}function _SDL_JoystickGetHat(e,t){return 0}function _SDL_JoystickGetBall(e,t,r,n){return-1}function _SDL_JoystickGetButton(e,t){e>>>=0;var r=SDL.getGamepad(e-1);return r&&r.buttons.length>t&&SDL.getJoystickButtonState(r.buttons[t])?1:0}function _SDL_JoystickClose(e){e>>>=0,delete SDL.lastJoystickState[e]}_SDL_JoystickEventState.sig="ii",_SDL_JoystickGetAxis.sig="ipi",_SDL_JoystickGetHat.sig="ipi",_SDL_JoystickGetBall.sig="ipipp",_SDL_JoystickGetButton.sig="ipi",_SDL_JoystickClose.sig="vp";var _SDL_InitSubSystem=e=>0;function _SDL_RWFromConstMem(e,t){e>>>=0;var r=SDL.rwops.length;return SDL.rwops.push({bytes:e,count:t}),r}_SDL_InitSubSystem.sig="ii",_SDL_RWFromConstMem.sig="ppi";var _SDL_RWFromMem=_SDL_RWFromConstMem;_SDL_RWFromMem.sig="ppi";var _SDL_GetNumAudioDrivers=()=>1;function _SDL_GetCurrentAudioDriver(){return stringToNewUTF8("Emscripten Audio")}_SDL_GetNumAudioDrivers.sig="i",_SDL_GetCurrentAudioDriver.sig="p";var _SDL_GetScancodeFromKey=e=>SDL.scanCodes[e];function _SDL_GetAudioDriver(e){return _SDL_GetCurrentAudioDriver()}_SDL_GetScancodeFromKey.sig="ii",_SDL_GetAudioDriver.sig="pi";var _SDL_EnableUNICODE=e=>{var t=SDL.unicode||0;return SDL.unicode=e,t};_SDL_EnableUNICODE.sig="ii";var _SDL_AddTimer=function(e,t,r){return t>>>=0,r>>>=0,safeSetTimeout((()=>getWasmTableEntry(t)(e,r)),e)};_SDL_AddTimer.sig="iipp";var _SDL_RemoveTimer=e=>(clearTimeout(e),!0);function _SDL_CreateThread(e,t,r,n){throw"SDL threads cannot be supported in the web platform because they assume shared state. See emscripten_create_worker etc. for a message-passing concurrency model that does let you run code in another thread."}function _SDL_WaitThread(e,t){throw"SDL_WaitThread"}function _SDL_GetThreadID(e){throw"SDL_GetThreadID"}function _SDL_ThreadID(){return 0}function _SDL_AllocRW(){throw"SDL_AllocRW: TODO"}function _SDL_CondBroadcast(e){throw"SDL_CondBroadcast: TODO"}function _SDL_CondWaitTimeout(e,t,r){throw"SDL_CondWaitTimeout: TODO"}_SDL_RemoveTimer.sig="ii",_SDL_CreateThread.sig="ppp",_SDL_WaitThread.sig="vpp",_SDL_GetThreadID.sig="pp",_SDL_ThreadID.sig="p",_SDL_AllocRW.sig="p",_SDL_CondBroadcast.sig="ip",_SDL_CondWaitTimeout.sig="ippi";var _SDL_WM_IconifyWindow=()=>{throw"SDL_WM_IconifyWindow TODO"};function _Mix_SetPostMix(e,t){return warnOnce("Mix_SetPostMix: TODO")}function _Mix_VolumeChunk(e,t){throw"Mix_VolumeChunk: TODO"}_SDL_WM_IconifyWindow.sig="i",_Mix_SetPostMix.sig="vpp",_Mix_VolumeChunk.sig="ipi";var _Mix_SetPosition=(e,t,r)=>{throw"Mix_SetPosition: TODO"};function _Mix_QuerySpec(e,t,r){throw"Mix_QuerySpec: TODO"}function _Mix_FadeInChannelTimed(e,t,r,n,i){throw"Mix_FadeInChannelTimed"}_Mix_SetPosition.sig="iiii",_Mix_QuerySpec.sig="ippp",_Mix_FadeInChannelTimed.sig="iipiii";var _Mix_FadeOutChannel=()=>{throw"Mix_FadeOutChannel"};function _Mix_Linked_Version(){throw"Mix_Linked_Version: TODO"}function _SDL_SaveBMP_RW(e,t,r){throw"SDL_SaveBMP_RW: TODO"}function _SDL_WM_SetIcon(e,t){}_Mix_FadeOutChannel.sig="iii",_Mix_Linked_Version.sig="p",_SDL_SaveBMP_RW.sig="ippi",_SDL_WM_SetIcon.sig="vpp";var _SDL_HasRDTSC=()=>0;_SDL_HasRDTSC.sig="i";var _SDL_HasMMX=()=>0;_SDL_HasMMX.sig="i";var _SDL_HasMMXExt=()=>0;_SDL_HasMMXExt.sig="i";var _SDL_Has3DNow=()=>0;_SDL_Has3DNow.sig="i";var _SDL_Has3DNowExt=()=>0;_SDL_Has3DNowExt.sig="i";var _SDL_HasSSE=()=>0;_SDL_HasSSE.sig="i";var _SDL_HasSSE2=()=>0;_SDL_HasSSE2.sig="i";var _SDL_HasAltiVec=()=>0;_SDL_HasAltiVec.sig="i";var ALLOC_NORMAL=0,ALLOC_STACK=1,allocate=(e,t)=>{var r;return r=t==ALLOC_STACK?stackAlloc(e.length):_malloc(e.length),!e.subarray&&!e.slice&&(e=new Uint8Array(e)),HEAPU8.set(e,r>>>0),r},writeStringToMemory=(e,t,r)=>{var n,i;warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!"),r&&(i=t+lengthBytesUTF8(e),n=HEAP8[i>>>0]),stringToUTF8(e,t,1/0),r&&(HEAP8[i>>>0]=n)},writeAsciiToMemory=(e,t,r)=>{for(var n=0;n>>0]=e.charCodeAt(n);r||(HEAP8[t>>>0]=0)},allocateUTF8=stringToNewUTF8,allocateUTF8OnStack=stringToUTF8OnStack,setErrNo=e=>(HEAP32[___errno_location()>>>2>>>0]=e,e),demangle=e=>(demangle.recursionGuard=1+(0|demangle.recursionGuard),demangle.recursionGuard>1?e:withStackSave((()=>{try{var t=e;t.startsWith("__Z")&&(t=t.substr(1));var r=stringToUTF8OnStack(t),n=stackAlloc(4),i=___cxa_demangle(r,0,0,n);if(0===HEAP32[n>>>2>>>0]&&i)return UTF8ToString(i)}catch(e){}finally{_free(i),demangle.recursionGuard<2&&--demangle.recursionGuard}return e}))),stackTrace=()=>{var e=jsStackTrace();return Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace()),e},print=out,printErr=err,_emscripten_is_main_browser_thread=()=>!ENVIRONMENT_IS_WORKER,tupleRegistrations={},structRegistrations={},getTypeName=e=>{var t=___getTypeName(e),r=readLatin1String(t);return _free(t),r},getFunctionName=e=>{let t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},getFunctionArgsName=e=>{let t=(e=e.trim()).indexOf("(")+1;return 0!==t?e.substr(t,e.length-t-1).replaceAll(" ","").split(",").filter((e=>e.length)):[]},heap32VectorToArray=(e,t)=>{for(var r=[],n=0;n>>2>>>0]);return r},requireRegisteredType=(e,t)=>{var r=registeredTypes[e];return void 0===r&&throwBindingError("".concat(t," has unknown type ").concat(getTypeName(e))),r};function usesDestructorStack(e){for(var t=1;tr){var s=t==r?t:"".concat(t," to ").concat(r);i("function ".concat(n," called with ").concat(e," arguments, expected ").concat(s))}}function getRequiredArgCount(e){for(var t=e.length-2,r=e.length-1;r>=2&&e[r].optional;--r)t--;return t}function createJsInvoker(e,t,r,n){var i=usesDestructorStack(e),s=e.length-2,a=[],o=["fn"];t&&o.push("thisWired");for(var l=0;lObject.defineProperty(t,"name",{value:e}),extendError=(e,t)=>{var r=createNamedFunction(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},r},UnboundTypeError,PureVirtualError,EmValOptionalType=Object.assign({optional:!0},EmValType),throwUnboundTypeError=(e,t)=>{var r=[],n={};throw t.forEach((function e(t){if(!n[t]&&!registeredTypes[t]){if(typeDependencies[t])return void typeDependencies[t].forEach(e);r.push(t),n[t]=!0}})),new UnboundTypeError("".concat(e,": ")+r.map(getTypeName).join([", "]))},ensureOverloadTable=(e,t,r)=>{if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(...n){return e[t].overloadTable.hasOwnProperty(n.length)||throwBindingError("Function '".concat(r,"' called with an invalid number of arguments (").concat(n.length,") - expects one of (").concat(e[t].overloadTable,")!")),e[t].overloadTable[n.length].apply(this,n)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}},exposePublicSymbol=(e,t,r)=>{Module.hasOwnProperty(e)?((void 0===r||void 0!==Module[e].overloadTable&&void 0!==Module[e].overloadTable[r])&&throwBindingError("Cannot register public name '".concat(e,"' twice")),ensureOverloadTable(Module,e,e),Module[e].overloadTable.hasOwnProperty(r)&&throwBindingError("Cannot register multiple overloads of a function with the same number of arguments (".concat(r,")!")),Module[e].overloadTable[r]=t):(Module[e]=t,Module[e].argCount=r)},replacePublicSymbol=(e,t,r)=>{Module.hasOwnProperty(e)||throwInternalError("Replacing nonexistent public symbol"),void 0!==Module[e].overloadTable&&void 0!==r?Module[e].overloadTable[r]=t:(Module[e]=t,Module[e].argCount=r)},registeredInstances={},getBasestPointer=(e,t)=>{for(void 0===t&&throwBindingError("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},registerInheritedInstance=(e,t,r)=>{t=getBasestPointer(e,t),registeredInstances.hasOwnProperty(t)?throwBindingError("Tried to register registered instance: ".concat(t)):registeredInstances[t]=r},unregisterInheritedInstance=(e,t)=>{t=getBasestPointer(e,t),registeredInstances.hasOwnProperty(t)?delete registeredInstances[t]:throwBindingError("Tried to unregister unregistered instance: ".concat(t))},getInheritedInstance=(e,t)=>(t=getBasestPointer(e,t),registeredInstances[t]),getInheritedInstanceCount=()=>Object.keys(registeredInstances).length,getLiveInheritedInstances=()=>{var e=[];for(var t in registeredInstances)registeredInstances.hasOwnProperty(t)&&e.push(registeredInstances[t]);return e},registeredPointers={},enumReadValueFromPointer=(e,t,r)=>{switch(t){case 1:return r?function(e){return this.fromWireType(HEAP8[e>>>0])}:function(e){return this.fromWireType(HEAPU8[e>>>0])};case 2:return r?function(e){return this.fromWireType(HEAP16[e>>>1>>>0])}:function(e){return this.fromWireType(HEAPU16[e>>>1>>>0])};case 4:return r?function(e){return this.fromWireType(HEAP32[e>>>2>>>0])}:function(e){return this.fromWireType(HEAPU32[e>>>2>>>0])};default:throw new TypeError("invalid integer width (".concat(t,"): ").concat(e))}};function __embind_register_user_type(e,t){__embind_register_emval(e>>>=0)}function __embind_register_optional(e,t){registerType(e>>>=0,EmValOptionalType)}__embind_register_user_type.sig="vpp",__embind_register_optional.sig="vpp";var runDestructors=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function newFunc(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type ".concat(typeof e," which is not a function"));var r=createNamedFunction(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}function craftInvokerFunction(e,t,r,n,i,s){var a=t.length;a<2&&throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var o=null!==t[1]&&null!==r,l=usesDestructorStack(t),c="void"!==t[0].name,u=[e,throwBindingError,n,i,runDestructors,t[0],t[1]],_=0;_{var r=(e=readLatin1String(e)).includes("j")||e.includes("p")?getDynCaller(e,t):getWasmTableEntry(t);return"function"!=typeof r&&throwBindingError("unknown function pointer with signature ".concat(e,": ").concat(t)),r};function __embind_register_function(e,t,r,n,i,s,a,o){e>>>=0,n>>>=0,i>>>=0,s>>>=0;var l=heap32VectorToArray(t,r>>>=0);e=readLatin1String(e),e=getFunctionName(e),i=embind__requireFunction(n,i),exposePublicSymbol(e,(function(){throwUnboundTypeError("Cannot call ".concat(e," due to unbound types"),l)}),t-1),whenDependentTypesAreResolved([],l,(r=>{var n=[r[0],null].concat(r.slice(1));return replacePublicSymbol(e,craftInvokerFunction(e,n,null,i,s,a),t-1),[]}))}function __embind_register_value_array(e,t,r,n,i,s){t>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,tupleRegistrations[e>>>=0]={name:readLatin1String(t),rawConstructor:embind__requireFunction(r,n),rawDestructor:embind__requireFunction(i,s),elements:[]}}function __embind_register_value_array_element(e,t,r,n,i,s,a,o,l){t>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,a>>>=0,o>>>=0,l>>>=0,tupleRegistrations[e>>>=0].elements.push({getterReturnType:t,getter:embind__requireFunction(r,n),getterContext:i,setterArgumentType:s,setter:embind__requireFunction(a,o),setterContext:l})}__embind_register_function.sig="vpippppii",__embind_register_value_array.sig="vpppppp",__embind_register_value_array_element.sig="vppppppppp";var __embind_finalize_value_array=function(e){var t=tupleRegistrations[e>>>=0];delete tupleRegistrations[e];var r=t.elements,n=r.length,i=r.map((e=>e.getterReturnType)).concat(r.map((e=>e.setterArgumentType))),s=t.rawConstructor,a=t.rawDestructor;whenDependentTypesAreResolved([e],i,(e=>(r.forEach(((t,r)=>{var i=e[r],s=t.getter,a=t.getterContext,o=e[r+n],l=t.setter,c=t.setterContext;t.read=e=>i.fromWireType(s(a,e)),t.write=(e,t)=>{var r=[];l(c,e,o.toWireType(r,t)),runDestructors(r)}})),[{name:t.name,fromWireType:e=>{for(var t=new Array(n),i=0;i{if(n!==i.length)throw new TypeError("Incorrect number of tuple elements for ".concat(t.name,": expected=").concat(n,", actual=").concat(i.length));for(var o=s(),l=0;l>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,structRegistrations[e>>>=0]={name:readLatin1String(t),rawConstructor:embind__requireFunction(r,n),rawDestructor:embind__requireFunction(i,s),fields:[]}}function __embind_register_value_object_field(e,t,r,n,i,s,a,o,l,c){t>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,a>>>=0,o>>>=0,l>>>=0,c>>>=0,structRegistrations[e>>>=0].fields.push({fieldName:readLatin1String(t),getterReturnType:r,getter:embind__requireFunction(n,i),getterContext:s,setterArgumentType:a,setter:embind__requireFunction(o,l),setterContext:c})}__embind_finalize_value_array.sig="vp",__embind_register_value_object.sig="vpppppp",__embind_register_value_object_field.sig="vpppppppppp";var __embind_finalize_value_object=function(e){var t=structRegistrations[e>>>=0];delete structRegistrations[e];var r=t.rawConstructor,n=t.rawDestructor,i=t.fields,s=i.map((e=>e.getterReturnType)).concat(i.map((e=>e.setterArgumentType)));whenDependentTypesAreResolved([e],s,(e=>{var s={};return i.forEach(((t,r)=>{var n=t.fieldName,a=e[r],o=t.getter,l=t.getterContext,c=e[r+i.length],u=t.setter,_=t.setterContext;s[n]={read:e=>a.fromWireType(o(l,e)),write:(e,t)=>{var r=[];u(_,e,c.toWireType(r,t)),runDestructors(r)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var r in s)t[r]=s[r].read(e);return n(e),t},toWireType:(e,t)=>{for(var i in s)if(!(i in t))throw new TypeError('Missing field: "'.concat(i,'"'));var a=r();for(i in s)s[i].write(a,t[i]);return null!==e&&e.push(n,a),a},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:n}]}))};__embind_finalize_value_object.sig="vp";var upcastPointer=(e,t,r)=>{for(;t!==r;)t.upcast||throwBindingError("Expected null or instance of ".concat(r.name,", got an instance of ").concat(t.name)),e=t.upcast(e),t=t.baseClass;return e};function genericPointerToWireType(e,t){var r;if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;(!t||!t.$$)&&throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&t.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type ".concat(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name," to parameter type ").concat(this.name));var n=t.$$.ptrType.registeredClass;if(r=upcastPointer(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&throwBindingError("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:throwBindingError("Cannot convert argument of type ".concat(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,Emval.toHandle((()=>i.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:throwBindingError("Unsupporting sharing policy")}return r}function constNoSmartPtrRawPointerToWireType(e,t){if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),0;t.$$||throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name));var r=t.$$.ptrType.registeredClass;return upcastPointer(t.$$.ptr,r,this.registeredClass)}function nonConstNoSmartPtrRawPointerToWireType(e,t){if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),0;t.$$||throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name)),t.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type ".concat(t.$$.ptrType.name," to parameter type ").concat(this.name));var r=t.$$.ptrType.registeredClass;return upcastPointer(t.$$.ptr,r,this.registeredClass)}function RegisteredPointer(e,t,r,n,i,s,a,o,l,c,u){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=s,this.sharingPolicy=a,this.rawGetPointee=o,this.rawConstructor=l,this.rawShare=c,this.rawDestructor=u,i||void 0!==t.baseClass?this.toWireType=genericPointerToWireType:n?(this.toWireType=constNoSmartPtrRawPointerToWireType,this.destructorFunction=null):(this.toWireType=nonConstNoSmartPtrRawPointerToWireType,this.destructorFunction=null)}var downcastPointer=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var n=downcastPointer(e,t,r.baseClass);return null===n?null:r.downcast(n)},finalizationRegistry=!1,detachFinalizer=e=>{},runDestructor=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},releaseClassHandle=e=>{e.count.value-=1,0===e.count.value&&runDestructor(e)},attachFinalizer=e=>typeof FinalizationRegistry>"u"?(attachFinalizer=e=>e,e):(finalizationRegistry=new FinalizationRegistry((e=>{releaseClassHandle(e.$$)})),detachFinalizer=e=>finalizationRegistry.unregister(e),(attachFinalizer=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};finalizationRegistry.register(e,r,e)}return e})(e)),makeClassHandle=(e,t)=>((!t.ptrType||!t.ptr)&&throwInternalError("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&throwInternalError("Both smartPtrType and smartPtr must be specified"),t.count={value:1},attachFinalizer(Object.create(e,{$$:{value:t,writable:!0}})));function RegisteredPointer_fromWireType(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=getInheritedInstance(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var s,a=this.registeredClass.getActualType(t),o=registeredPointers[a];if(!o)return i.call(this);s=this.isConst?o.constPointerType:o.pointerType;var l=downcastPointer(t,this.registeredClass,s.registeredClass);return null===l?i.call(this):this.isSmartPointer?makeClassHandle(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:e}):makeClassHandle(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var init_RegisteredPointer=()=>{Object.assign(RegisteredPointer.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var t;null==(t=this.rawDestructor)||t.call(this,e)},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,fromWireType:RegisteredPointer_fromWireType})},detachFinalizer_deps=["$finalizationRegistry"];function ClassHandle(){}var shallowCopyInternalPointer=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),throwInstanceAlreadyDeleted=e=>{throwBindingError(e.$$.ptrType.registeredClass.name+" instance already deleted")},deletionQueue=[],flushPendingDeletes=()=>{for(;deletionQueue.length;){var e=deletionQueue.pop();e.$$.deleteScheduled=!1,e.delete()}},delayFunction,init_ClassHandle=()=>{Object.assign(ClassHandle.prototype,{isAliasOf(e){if(!(this instanceof ClassHandle&&e instanceof ClassHandle))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i},clone(){if(this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),detachFinalizer(this),releaseClassHandle(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),deletionQueue.push(this),1===deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes),this.$$.deleteScheduled=!0,this}})},setDelayFunction=e=>{delayFunction=e,deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes)};function RegisteredClass(e,t,r,n,i,s,a,o){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=s,this.upcast=a,this.downcast=o,this.pureVirtualFunctions=[]}var char_0=48,char_9=57,makeLegalFunctionName=e=>{var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=char_0&&t<=char_9?"_".concat(e):e};function __embind_register_class(e,t,r,n,i,s,a,o,l,c,u,_,d){e>>>=0,t>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,a>>>=0,o>>>=0,l>>>=0,c>>>=0,_>>>=0,d>>>=0,u=readLatin1String(u>>>=0),s=embind__requireFunction(i,s),o&&(o=embind__requireFunction(a,o)),c&&(c=embind__requireFunction(l,c)),d=embind__requireFunction(_,d);var p=makeLegalFunctionName(u);exposePublicSymbol(p,(function(){throwUnboundTypeError("Cannot construct ".concat(u," due to unbound types"),[n])})),whenDependentTypesAreResolved([e,t,r],n?[n]:[],(t=>{var r,i,a;t=t[0],a=n?(i=t.registeredClass).instancePrototype:ClassHandle.prototype;var l=createNamedFunction(u,(function(...e){if(Object.getPrototypeOf(this)!==_)throw new BindingError("Use 'new' to construct "+u);if(void 0===f.constructor_body)throw new BindingError(u+" has no accessible constructor");var t=f.constructor_body[e.length];if(void 0===t)throw new BindingError("Tried to invoke ctor of ".concat(u," with invalid number of parameters (").concat(e.length,") - expected (").concat(Object.keys(f.constructor_body).toString(),") parameters instead!"));return t.apply(this,e)})),_=Object.create(a,{constructor:{value:l}});l.prototype=_;var f=new RegisteredClass(u,l,_,d,i,s,o,c);f.baseClass&&(null!=(r=f.baseClass).__derivedClasses||(r.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new RegisteredPointer(u,f,!0,!1,!1),g=new RegisteredPointer(u+"*",f,!1,!1,!1),h=new RegisteredPointer(u+" const*",f,!1,!0,!1);return registeredPointers[e]={pointerType:g,constPointerType:h},replacePublicSymbol(p,l),[m,g,h]}))}__embind_register_class.sig="vppppppppppppp";var __embind_register_class_constructor=function(e,t,r,n,i,s){e>>>=0,n>>>=0,i>>>=0,s>>>=0;var a=heap32VectorToArray(t,r>>>=0);i=embind__requireFunction(n,i),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var r="constructor ".concat(e.name);if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new BindingError("Cannot register multiple constructors with identical number of parameters (".concat(t-1,") for class '").concat(e.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return e.registeredClass.constructor_body[t-1]=()=>{throwUnboundTypeError("Cannot construct ".concat(e.name," due to unbound types"),a)},whenDependentTypesAreResolved([],a,(n=>(n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=craftInvokerFunction(r,n,null,i,s),[]))),[]}))};__embind_register_class_constructor.sig="vpipppp";var validateThis=(e,t,r)=>(e instanceof Object||throwBindingError("".concat(r,' with invalid "this": ').concat(e)),e instanceof t.registeredClass.constructor||throwBindingError("".concat(r,' incompatible with "this" of type ').concat(e.constructor.name)),e.$$.ptr||throwBindingError("cannot call emscripten binding method ".concat(r," on deleted object")),upcastPointer(e.$$.ptr,e.$$.ptrType.registeredClass,t.registeredClass)),__embind_register_class_function=function(e,t,r,n,i,s,a,o,l,c){e>>>=0,t>>>=0,i>>>=0,s>>>=0,a>>>=0;var u=heap32VectorToArray(r,n>>>=0);t=readLatin1String(t),t=getFunctionName(t),s=embind__requireFunction(i,s),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(t);function i(){throwUnboundTypeError("Cannot call ".concat(n," due to unbound types"),u)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),o&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,_=c[t];return void 0===_||void 0===_.overloadTable&&_.className!==e.name&&_.argCount===r-2?(i.argCount=r-2,i.className=e.name,c[t]=i):(ensureOverloadTable(c,t,n),c[t].overloadTable[r-2]=i),whenDependentTypesAreResolved([],u,(i=>{var o=craftInvokerFunction(n,i,e,s,a,l);return void 0===c[t].overloadTable?(o.argCount=r-2,c[t]=o):c[t].overloadTable[r-2]=o,[]})),[]}))};__embind_register_class_function.sig="vppippppiii";var __embind_register_class_property=function(e,t,r,n,i,s,a,o,l,c){e>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,a>>>=0,o>>>=0,l>>>=0,c>>>=0,t=readLatin1String(t>>>=0),i=embind__requireFunction(n,i),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(t),u={get(){throwUnboundTypeError("Cannot access ".concat(n," due to unbound types"),[r,a])},enumerable:!0,configurable:!0};return u.set=l?()=>throwUnboundTypeError("Cannot access ".concat(n," due to unbound types"),[r,a]):e=>throwBindingError(n+" is a read-only property"),Object.defineProperty(e.registeredClass.instancePrototype,t,u),whenDependentTypesAreResolved([],l?[r,a]:[r],(r=>{var a=r[0],u={get(){var t=validateThis(this,e,n+" getter");return a.fromWireType(i(s,t))},enumerable:!0};if(l){l=embind__requireFunction(o,l);var _=r[1];u.set=function(t){var r=validateThis(this,e,n+" setter"),i=[];l(c,r,_.toWireType(i,t)),runDestructors(i)}}return Object.defineProperty(e.registeredClass.instancePrototype,t,u),[]})),[]}))};__embind_register_class_property.sig="vpppppppppp";var __embind_register_class_class_function=function(e,t,r,n,i,s,a,o,l){e>>>=0,t>>>=0,i>>>=0,s>>>=0,a>>>=0;var c=heap32VectorToArray(r,n>>>=0);t=readLatin1String(t),t=getFunctionName(t),s=embind__requireFunction(i,s),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(t);function i(){throwUnboundTypeError("Cannot call ".concat(n," due to unbound types"),c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var l=e.registeredClass.constructor;return void 0===l[t]?(i.argCount=r-1,l[t]=i):(ensureOverloadTable(l,t,n),l[t].overloadTable[r-1]=i),whenDependentTypesAreResolved([],c,(i=>{var c=[i[0],null].concat(i.slice(1)),u=craftInvokerFunction(n,c,null,s,a,o);if(void 0===l[t].overloadTable?(u.argCount=r-1,l[t]=u):l[t].overloadTable[r-1]=u,e.registeredClass.__derivedClasses)for(let r of e.registeredClass.__derivedClasses)r.constructor.hasOwnProperty(t)||(r.constructor[t]=u);return[]})),[]}))};__embind_register_class_class_function.sig="vppippppii";var __embind_register_class_class_property=function(e,t,r,n,i,s,a,o){e>>>=0,r>>>=0,n>>>=0,i>>>=0,s>>>=0,a>>>=0,o>>>=0,t=readLatin1String(t>>>=0),s=embind__requireFunction(i,s),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var i="".concat(e.name,".").concat(t),l={get(){throwUnboundTypeError("Cannot access ".concat(i," due to unbound types"),[r])},enumerable:!0,configurable:!0};return l.set=o?()=>{throwUnboundTypeError("Cannot access ".concat(i," due to unbound types"),[r])}:e=>{throwBindingError("".concat(i," is a read-only property"))},Object.defineProperty(e.registeredClass.constructor,t,l),whenDependentTypesAreResolved([],[r],(r=>{r=r[0];var i={get:()=>r.fromWireType(s(n)),enumerable:!0};return o&&(o=embind__requireFunction(a,o),i.set=e=>{var t=[];o(n,r.toWireType(t,e)),runDestructors(t)}),Object.defineProperty(e.registeredClass.constructor,t,i),[]})),[]}))};function __embind_create_inheriting_constructor(e,t,r){t>>>=0,r>>>=0,e=readLatin1String(e>>>=0),t=requireRegisteredType(t,"wrapper"),r=Emval.toValue(r);var n=t.registeredClass,i=n.instancePrototype,s=n.baseClass.instancePrototype,a=n.baseClass.constructor,o=createNamedFunction(e,(function(...e){n.baseClass.pureVirtualFunctions.forEach(function(e){if(this[e]===s[e])throw new PureVirtualError("Pure virtual function ".concat(e," must be implemented in JavaScript"))}.bind(this)),Object.defineProperty(this,"__parent",{value:i}),this.__construct(...e)}));return i.__construct=function(...e){this===i&&throwBindingError("Pass correct 'this' to __construct");var t=a.implement(this,...e);detachFinalizer(t);var r=t.$$;t.notifyOnDestruction(),r.preservePointerOnDelete=!0,Object.defineProperties(this,{$$:{value:r}}),attachFinalizer(this),registerInheritedInstance(n,r.ptr,this)},i.__destruct=function(){this===i&&throwBindingError("Pass correct 'this' to __destruct"),detachFinalizer(this),unregisterInheritedInstance(n,this.$$.ptr)},o.prototype=Object.create(i),Object.assign(o.prototype,r),Emval.toHandle(o)}__embind_register_class_class_property.sig="vpppppppp",__embind_create_inheriting_constructor.sig="pppp";var __embind_register_smart_ptr=function(e,t,r,n,i,s,a,o,l,c,u,_){e>>>=0,t>>>=0,i>>>=0,s>>>=0,a>>>=0,o>>>=0,l>>>=0,c>>>=0,u>>>=0,_>>>=0,r=readLatin1String(r>>>=0),s=embind__requireFunction(i,s),o=embind__requireFunction(a,o),c=embind__requireFunction(l,c),_=embind__requireFunction(u,_),whenDependentTypesAreResolved([e],[t],(e=>(e=e[0],[new RegisteredPointer(r,e.registeredClass,!1,!1,!0,e,n,s,o,c,_)])))};function __embind_register_enum(e,t,r,n){function i(){}e>>>=0,r>>>=0,t=readLatin1String(t>>>=0),i.values={},registerType(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:GenericWireTypeSize,readValueFromPointer:enumReadValueFromPointer(t,r,n),destructorFunction:null}),exposePublicSymbol(t,i)}function __embind_register_enum_value(e,t,r){t>>>=0;var n=requireRegisteredType(e>>>=0,"enum");t=readLatin1String(t);var i=n.constructor,s=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:createNamedFunction("".concat(n.name,"_").concat(t),(function(){}))}});i.values[r]=s,i[t]=s}__embind_register_smart_ptr.sig="vpppipppppppp",__embind_register_enum.sig="vpppi",__embind_register_enum_value.sig="vppi";var __embind_register_constant=function(e,t,r){t>>>=0,e=readLatin1String(e>>>=0),whenDependentTypesAreResolved([],[t],(t=>(t=t[0],Module[e]=t.fromWireType(r),[])))};__embind_register_constant.sig="vppd";var emval_symbols={};function __emval_register_symbol(e){emval_symbols[e>>>=0]=readLatin1String(e)}__emval_register_symbol.sig="vp";var getStringOrSymbol=e=>{var t=emval_symbols[e];return void 0===t?readLatin1String(e):t};function __emval_incref(e){(e>>>=0)>9&&(emval_handles[e+1]+=1)}function __emval_run_destructors(e){e>>>=0;var t=Emval.toValue(e);runDestructors(t),__emval_decref(e)}function __emval_new_array(){return Emval.toHandle([])}function __emval_new_array_from_memory_view(e){e>>>=0,e=Emval.toValue(e);for(var t=new Array(e.length),r=0;r>>=0,Emval.toHandle(getStringOrSymbol(e))}function __emval_new_u8string(e){return e>>>=0,Emval.toHandle(UTF8ToString(e))}function __emval_new_u16string(e){return e>>>=0,Emval.toHandle(UTF16ToString(e))}function __emval_take_value(e,t){t>>>=0;var r=(e=requireRegisteredType(e>>>=0,"_emval_take_value")).readValueFromPointer(t);return Emval.toHandle(r)}__emval_incref.sig="vp",__emval_run_destructors.sig="vp",__emval_new_array.sig="p",__emval_new_array_from_memory_view.sig="pp",__emval_new_object.sig="p",__emval_new_cstring.sig="pp",__emval_new_u8string.sig="pp",__emval_new_u16string.sig="pp",__emval_take_value.sig="ppp";var emval_get_global=()=>"object"==typeof globalThis?globalThis:Function("return this")();function __emval_get_global(e){return 0==(e>>>=0)?Emval.toHandle(emval_get_global()):(e=getStringOrSymbol(e),Emval.toHandle(emval_get_global()[e]))}function __emval_get_module_property(e){return e=getStringOrSymbol(e>>>=0),Emval.toHandle(Module[e])}function __emval_get_property(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),t=Emval.toValue(t),Emval.toHandle(e[t])}function __emval_set_property(e,t,r){e>>>=0,t>>>=0,r>>>=0,e=Emval.toValue(e),t=Emval.toValue(t),r=Emval.toValue(r),e[t]=r}__emval_get_global.sig="pp",__emval_get_module_property.sig="pp",__emval_get_property.sig="ppp",__emval_set_property.sig="vppp";var emval_returnValue=(e,t,r)=>{var n=[],i=e.toWireType(n,r);return n.length&&(HEAPU32[t>>>2>>>0]=Emval.toHandle(n)),i};function __emval_as(e,t,r){return e>>>=0,t>>>=0,r>>>=0,e=Emval.toValue(e),t=requireRegisteredType(t,"emval::as"),emval_returnValue(t,r,e)}function __emval_as_int64(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),(t=requireRegisteredType(t,"emval::as")).toWireType(null,e)}function __emval_as_uint64(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),(t=requireRegisteredType(t,"emval::as")).toWireType(null,e)}function __emval_equals(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))==Emval.toValue(t)}function __emval_strictly_equals(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))===Emval.toValue(t)}function __emval_greater_than(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))>Emval.toValue(t)}function __emval_less_than(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))>>=0,!(e=Emval.toValue(e))}__emval_as.sig="dppp",__emval_as_int64.sig="ipp",__emval_as_uint64.sig="ipp",__emval_equals.sig="ipp",__emval_strictly_equals.sig="ipp",__emval_greater_than.sig="ipp",__emval_less_than.sig="ipp",__emval_not.sig="ip";var emval_methodCallers=[];function __emval_call(e,t,r,n){return t>>>=0,r>>>=0,n>>>=0,(e=emval_methodCallers[e>>>=0])(null,t=Emval.toValue(t),r,n)}__emval_call.sig="dpppp";var emval_lookupTypes=(e,t)=>{for(var r=new Array(e),n=0;n>>2>>>0],"parameter "+n);return r},emval_addMethodCaller=e=>{var t=emval_methodCallers.length;return emval_methodCallers.push(e),t},reflectConstruct=Reflect.construct;function __emval_get_method_caller(e,t,r){var n=emval_lookupTypes(e,t>>>=0),i=n.shift();e--;var s="return function (obj, func, destructorsRef, args) {\n",a=0,o=[];0===r&&o.push("obj");for(var l=["retType"],c=[i],u=0;ue.name)).join(", "),") => ").concat(i.name,">");return emval_addMethodCaller(createNamedFunction(d,_))}function __emval_call_method(e,t,r,n,i){return t>>>=0,r>>>=0,n>>>=0,i>>>=0,(e=emval_methodCallers[e>>>=0])(t=Emval.toValue(t),t[r=getStringOrSymbol(r)],n,i)}function __emval_typeof(e){return e>>>=0,e=Emval.toValue(e),Emval.toHandle(typeof e)}function __emval_instanceof(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))instanceof Emval.toValue(t)}function __emval_is_number(e){return e>>>=0,"number"==typeof(e=Emval.toValue(e))}function __emval_is_string(e){return e>>>=0,"string"==typeof(e=Emval.toValue(e))}function __emval_in(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))in Emval.toValue(t)}function __emval_delete(e,t){return e>>>=0,t>>>=0,delete(e=Emval.toValue(e))[t=Emval.toValue(t)]}function __emval_throw(e){throw e>>>=0,Emval.toValue(e)}function __emval_iter_begin(e){return e>>>=0,e=Emval.toValue(e),Emval.toHandle(e[Symbol.iterator]())}function __emval_iter_next(e){e>>>=0;var t=(e=Emval.toValue(e)).next();return t.done?0:Emval.toHandle(t.value)}__emval_get_method_caller.sig="pipi",__emval_call_method.sig="dppppp",__emval_typeof.sig="pp",__emval_instanceof.sig="ipp",__emval_is_number.sig="ip",__emval_is_string.sig="ip",__emval_in.sig="ipp",__emval_delete.sig="ipp",__emval_throw.sig="ip",__emval_iter_begin.sig="pp",__emval_iter_next.sig="pp";var __emval_coro_suspend=function(e,t){e>>>=0,t>>>=0,Emval.toValue(e).then((e=>{__emval_coro_resume(t,Emval.toHandle(e))}))};__emval_coro_suspend.sig="vpp";var __emval_coro_make_promise=function(e,t){return e>>>=0,t>>>=0,Emval.toHandle(new Promise(((r,n)=>{HEAPU32[e>>>2>>>0]=Emval.toHandle(r),HEAPU32[t>>>2>>>0]=Emval.toHandle((()=>{try{___cxa_rethrow()}catch(e){n(e)}}))})))},emSetImmediate,emClearImmediate;function _duckdb_web_fs_file_sync(e){return globalThis.DUCKDB_RUNTIME.syncFile(Module,e)}function _duckdb_web_fs_file_remove(e,t){return globalThis.DUCKDB_RUNTIME.removeFile(Module,e,t)}__emval_coro_make_promise.sig="ppp",_duckdb_web_fs_file_sync.sig="vi",registerWasmPlugin(),FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit(),embind_init_charCodes(),BindingError=Module.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},InternalError=Module.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},init_emval(),Module.requestAnimationFrame=MainLoop.requestAnimationFrame,Module.pauseMainLoop=MainLoop.pause,Module.resumeMainLoop=MainLoop.resume,MainLoop.init();for(var i=0;i<32;++i)tempFixedLengthArray.push(new Array(i));for(var miniTempWebGLFloatBuffersStorage=new Float32Array(288),i=0;i<=288;++i)miniTempWebGLFloatBuffers[i]=miniTempWebGLFloatBuffersStorage.subarray(0,i);for(var miniTempWebGLIntBuffersStorage=new Int32Array(288),i=0;i<=288;++i)miniTempWebGLIntBuffers[i]=miniTempWebGLIntBuffersStorage.subarray(0,i);if(typeof setImmediate<"u")emSetImmediate=setImmediateWrapped,emClearImmediate=clearImmediateWrapped;else if("function"==typeof addEventListener){var __setImmediate_id_counter=0,__setImmediate_queue=[],__setImmediate_message_id="_si",__setImmediate_cb=e=>{e.data===__setImmediate_message_id&&(e.stopPropagation(),__setImmediate_queue.shift()(),++__setImmediate_id_counter)};addEventListener("message",__setImmediate_cb,!0),emSetImmediate=e=>(postMessage(__setImmediate_message_id,"*"),__setImmediate_id_counter+__setImmediate_queue.push(e)-1),emClearImmediate=e=>{var t=e-__setImmediate_id_counter;t>=0&&t<__setImmediate_queue.length&&(__setImmediate_queue[t]=()=>{})}}Module.requestFullscreen=Browser.requestFullscreen,Module.setCanvasSize=Browser.setCanvasSize,Module.getUserMedia=Browser.getUserMedia,Module.createContext=Browser.createContext;var preloadedImages={},preloadedAudios={};registerPostMainLoop((()=>{var e,t;return null==(t=null==(e=SDL.audio)?void 0:e.queueNewAudioData)?void 0:t.call(e)})),UnboundTypeError=Module.UnboundTypeError=extendError(Error,"UnboundTypeError"),PureVirtualError=Module.PureVirtualError=extendError(Error,"PureVirtualError"),init_RegisteredPointer(),init_ClassHandle();var wasmImports={IMG_Init:_IMG_Init,IMG_Load:_IMG_Load,IMG_Load_RW:_IMG_Load_RW,IMG_Quit:_IMG_Quit,Mix_AllocateChannels:_Mix_AllocateChannels,Mix_ChannelFinished:_Mix_ChannelFinished,Mix_CloseAudio:_Mix_CloseAudio,Mix_FadeInChannelTimed:_Mix_FadeInChannelTimed,Mix_FadeInMusicPos:_Mix_FadeInMusicPos,Mix_FadeOutChannel:_Mix_FadeOutChannel,Mix_FadeOutMusic:_Mix_FadeOutMusic,Mix_FadingChannel:_Mix_FadingChannel,Mix_FreeChunk:_Mix_FreeChunk,Mix_FreeMusic:_Mix_FreeMusic,Mix_HaltChannel:_Mix_HaltChannel,Mix_HaltMusic:_Mix_HaltMusic,Mix_HookMusicFinished:_Mix_HookMusicFinished,Mix_Init:_Mix_Init,Mix_Linked_Version:_Mix_Linked_Version,Mix_LoadMUS:_Mix_LoadMUS,Mix_LoadMUS_RW:_Mix_LoadMUS_RW,Mix_LoadWAV:_Mix_LoadWAV,Mix_LoadWAV_RW:_Mix_LoadWAV_RW,Mix_OpenAudio:_Mix_OpenAudio,Mix_Pause:_Mix_Pause,Mix_PauseMusic:_Mix_PauseMusic,Mix_Paused:_Mix_Paused,Mix_PausedMusic:_Mix_PausedMusic,Mix_PlayChannelTimed:_Mix_PlayChannelTimed,Mix_PlayMusic:_Mix_PlayMusic,Mix_Playing:_Mix_Playing,Mix_PlayingMusic:_Mix_PlayingMusic,Mix_QuerySpec:_Mix_QuerySpec,Mix_QuickLoad_RAW:_Mix_QuickLoad_RAW,Mix_Quit:_Mix_Quit,Mix_ReserveChannels:_Mix_ReserveChannels,Mix_Resume:_Mix_Resume,Mix_ResumeMusic:_Mix_ResumeMusic,Mix_SetPanning:_Mix_SetPanning,Mix_SetPosition:_Mix_SetPosition,Mix_SetPostMix:_Mix_SetPostMix,Mix_Volume:_Mix_Volume,Mix_VolumeChunk:_Mix_VolumeChunk,Mix_VolumeMusic:_Mix_VolumeMusic,SDL_AddTimer:_SDL_AddTimer,SDL_AllocRW:_SDL_AllocRW,SDL_AudioDriverName:_SDL_AudioDriverName,SDL_AudioQuit:_SDL_AudioQuit,SDL_ClearError:_SDL_ClearError,SDL_CloseAudio:_SDL_CloseAudio,SDL_CondBroadcast:_SDL_CondBroadcast,SDL_CondSignal:_SDL_CondSignal,SDL_CondWait:_SDL_CondWait,SDL_CondWaitTimeout:_SDL_CondWaitTimeout,SDL_ConvertSurface:_SDL_ConvertSurface,SDL_CreateCond:_SDL_CreateCond,SDL_CreateMutex:_SDL_CreateMutex,SDL_CreateRGBSurface:_SDL_CreateRGBSurface,SDL_CreateRGBSurfaceFrom:_SDL_CreateRGBSurfaceFrom,SDL_CreateThread:_SDL_CreateThread,SDL_Delay:_SDL_Delay,SDL_DestroyCond:_SDL_DestroyCond,SDL_DestroyMutex:_SDL_DestroyMutex,SDL_DestroyRenderer:_SDL_DestroyRenderer,SDL_DestroyWindow:_SDL_DestroyWindow,SDL_DisplayFormatAlpha:_SDL_DisplayFormatAlpha,SDL_EnableKeyRepeat:_SDL_EnableKeyRepeat,SDL_EnableUNICODE:_SDL_EnableUNICODE,SDL_FillRect:_SDL_FillRect,SDL_Flip:_SDL_Flip,SDL_FreeRW:_SDL_FreeRW,SDL_FreeSurface:_SDL_FreeSurface,SDL_GL_DeleteContext:_SDL_GL_DeleteContext,SDL_GL_ExtensionSupported:_SDL_GL_ExtensionSupported,SDL_GL_GetAttribute:_SDL_GL_GetAttribute,SDL_GL_GetSwapInterval:_SDL_GL_GetSwapInterval,SDL_GL_MakeCurrent:_SDL_GL_MakeCurrent,SDL_GL_SetAttribute:_SDL_GL_SetAttribute,SDL_GL_SetSwapInterval:_SDL_GL_SetSwapInterval,SDL_GL_SwapBuffers:_SDL_GL_SwapBuffers,SDL_GL_SwapWindow:_SDL_GL_SwapWindow,SDL_GetAppState:_SDL_GetAppState,SDL_GetAudioDriver:_SDL_GetAudioDriver,SDL_GetClipRect:_SDL_GetClipRect,SDL_GetCurrentAudioDriver:_SDL_GetCurrentAudioDriver,SDL_GetError:_SDL_GetError,SDL_GetKeyName:_SDL_GetKeyName,SDL_GetKeyState:_SDL_GetKeyState,SDL_GetKeyboardState:_SDL_GetKeyboardState,SDL_GetModState:_SDL_GetModState,SDL_GetMouseState:_SDL_GetMouseState,SDL_GetNumAudioDrivers:_SDL_GetNumAudioDrivers,SDL_GetRGB:_SDL_GetRGB,SDL_GetRGBA:_SDL_GetRGBA,SDL_GetScancodeFromKey:_SDL_GetScancodeFromKey,SDL_GetThreadID:_SDL_GetThreadID,SDL_GetTicks:_SDL_GetTicks,SDL_GetVideoInfo:_SDL_GetVideoInfo,SDL_GetVideoSurface:_SDL_GetVideoSurface,SDL_GetWindowFlags:_SDL_GetWindowFlags,SDL_GetWindowSize:_SDL_GetWindowSize,SDL_Has3DNow:_SDL_Has3DNow,SDL_Has3DNowExt:_SDL_Has3DNowExt,SDL_HasAltiVec:_SDL_HasAltiVec,SDL_HasMMX:_SDL_HasMMX,SDL_HasMMXExt:_SDL_HasMMXExt,SDL_HasRDTSC:_SDL_HasRDTSC,SDL_HasSSE:_SDL_HasSSE,SDL_HasSSE2:_SDL_HasSSE2,SDL_Init:_SDL_Init,SDL_InitSubSystem:_SDL_InitSubSystem,SDL_JoystickClose:_SDL_JoystickClose,SDL_JoystickEventState:_SDL_JoystickEventState,SDL_JoystickGetAxis:_SDL_JoystickGetAxis,SDL_JoystickGetBall:_SDL_JoystickGetBall,SDL_JoystickGetButton:_SDL_JoystickGetButton,SDL_JoystickGetHat:_SDL_JoystickGetHat,SDL_JoystickIndex:_SDL_JoystickIndex,SDL_JoystickName:_SDL_JoystickName,SDL_JoystickNumAxes:_SDL_JoystickNumAxes,SDL_JoystickNumBalls:_SDL_JoystickNumBalls,SDL_JoystickNumButtons:_SDL_JoystickNumButtons,SDL_JoystickNumHats:_SDL_JoystickNumHats,SDL_JoystickOpen:_SDL_JoystickOpen,SDL_JoystickOpened:_SDL_JoystickOpened,SDL_JoystickUpdate:_SDL_JoystickUpdate,SDL_Linked_Version:_SDL_Linked_Version,SDL_ListModes:_SDL_ListModes,SDL_LoadBMP_RW:_SDL_LoadBMP_RW,SDL_LockAudio:_SDL_LockAudio,SDL_LockSurface:_SDL_LockSurface,SDL_LogSetOutputFunction:_SDL_LogSetOutputFunction,SDL_LowerBlit:_SDL_LowerBlit,SDL_LowerBlitScaled:_SDL_LowerBlitScaled,SDL_MapRGB:_SDL_MapRGB,SDL_MapRGBA:_SDL_MapRGBA,SDL_NumJoysticks:_SDL_NumJoysticks,SDL_OpenAudio:_SDL_OpenAudio,SDL_PauseAudio:_SDL_PauseAudio,SDL_PeepEvents:_SDL_PeepEvents,SDL_PollEvent:_SDL_PollEvent,SDL_PumpEvents:_SDL_PumpEvents,SDL_PushEvent:_SDL_PushEvent,SDL_Quit:_SDL_Quit,SDL_QuitSubSystem:_SDL_QuitSubSystem,SDL_RWFromConstMem:_SDL_RWFromConstMem,SDL_RWFromFile:_SDL_RWFromFile,SDL_RWFromMem:_SDL_RWFromMem,SDL_RemoveTimer:_SDL_RemoveTimer,SDL_SaveBMP_RW:_SDL_SaveBMP_RW,SDL_SetAlpha:_SDL_SetAlpha,SDL_SetClipRect:_SDL_SetClipRect,SDL_SetColorKey:_SDL_SetColorKey,SDL_SetColors:_SDL_SetColors,SDL_SetError:_SDL_SetError,SDL_SetGamma:_SDL_SetGamma,SDL_SetGammaRamp:_SDL_SetGammaRamp,SDL_SetPalette:_SDL_SetPalette,SDL_SetVideoMode:_SDL_SetVideoMode,SDL_SetWindowFullscreen:_SDL_SetWindowFullscreen,SDL_SetWindowTitle:_SDL_SetWindowTitle,SDL_ShowCursor:_SDL_ShowCursor,SDL_StartTextInput:_SDL_StartTextInput,SDL_StopTextInput:_SDL_StopTextInput,SDL_ThreadID:_SDL_ThreadID,SDL_UnlockAudio:_SDL_UnlockAudio,SDL_UnlockSurface:_SDL_UnlockSurface,SDL_UpdateRect:_SDL_UpdateRect,SDL_UpdateRects:_SDL_UpdateRects,SDL_UpperBlit:_SDL_UpperBlit,SDL_UpperBlitScaled:_SDL_UpperBlitScaled,SDL_VideoDriverName:_SDL_VideoDriverName,SDL_VideoModeOK:_SDL_VideoModeOK,SDL_VideoQuit:_SDL_VideoQuit,SDL_WM_GrabInput:_SDL_WM_GrabInput,SDL_WM_IconifyWindow:_SDL_WM_IconifyWindow,SDL_WM_SetCaption:_SDL_WM_SetCaption,SDL_WM_SetIcon:_SDL_WM_SetIcon,SDL_WM_ToggleFullScreen:_SDL_WM_ToggleFullScreen,SDL_WaitThread:_SDL_WaitThread,SDL_WarpMouse:_SDL_WarpMouse,SDL_WasInit:_SDL_WasInit,SDL_mutexP:_SDL_mutexP,SDL_mutexV:_SDL_mutexV,TTF_CloseFont:_TTF_CloseFont,TTF_FontAscent:_TTF_FontAscent,TTF_FontDescent:_TTF_FontDescent,TTF_FontHeight:_TTF_FontHeight,TTF_FontLineSkip:_TTF_FontLineSkip,TTF_GlyphMetrics:_TTF_GlyphMetrics,TTF_Init:_TTF_Init,TTF_OpenFont:_TTF_OpenFont,TTF_Quit:_TTF_Quit,TTF_RenderText_Blended:_TTF_RenderText_Blended,TTF_RenderText_Shaded:_TTF_RenderText_Shaded,TTF_RenderText_Solid:_TTF_RenderText_Solid,TTF_RenderUTF8_Solid:_TTF_RenderUTF8_Solid,TTF_SizeText:_TTF_SizeText,TTF_SizeUTF8:_TTF_SizeUTF8,XChangeWindowAttributes:_XChangeWindowAttributes,XCreateWindow:_XCreateWindow,XInternAtom:_XInternAtom,XMapWindow:_XMapWindow,XOpenDisplay:_XOpenDisplay,XPending:_XPending,XSendEvent:_XSendEvent,XSetWMHints:_XSetWMHints,XStoreName:_XStoreName,_Unwind_Backtrace:__Unwind_Backtrace,_Unwind_FindEnclosingFunction:__Unwind_FindEnclosingFunction,_Unwind_GetIPInfo:__Unwind_GetIPInfo,_ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm:__ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm,__asctime_r:___asctime_r,__assert_fail:___assert_fail,__c_longjmp:___c_longjmp,__call_sighandler:___call_sighandler,__cpp_exception:___cpp_exception,__global_base:___global_base,__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__syscall__newselect:___syscall__newselect,__syscall_accept4:___syscall_accept4,__syscall_bind:___syscall_bind,__syscall_chdir:___syscall_chdir,__syscall_chmod:___syscall_chmod,__syscall_connect:___syscall_connect,__syscall_dup:___syscall_dup,__syscall_dup3:___syscall_dup3,__syscall_faccessat:___syscall_faccessat,__syscall_fadvise64:___syscall_fadvise64,__syscall_fallocate:___syscall_fallocate,__syscall_fchdir:___syscall_fchdir,__syscall_fchmod:___syscall_fchmod,__syscall_fchmodat2:___syscall_fchmodat2,__syscall_fchown32:___syscall_fchown32,__syscall_fchownat:___syscall_fchownat,__syscall_fcntl64:___syscall_fcntl64,__syscall_fdatasync:___syscall_fdatasync,__syscall_fstat64:___syscall_fstat64,__syscall_fstatfs64:___syscall_fstatfs64,__syscall_ftruncate64:___syscall_ftruncate64,__syscall_getcwd:___syscall_getcwd,__syscall_getdents64:___syscall_getdents64,__syscall_getpeername:___syscall_getpeername,__syscall_getsockname:___syscall_getsockname,__syscall_getsockopt:___syscall_getsockopt,__syscall_ioctl:___syscall_ioctl,__syscall_listen:___syscall_listen,__syscall_lstat64:___syscall_lstat64,__syscall_mkdirat:___syscall_mkdirat,__syscall_mknodat:___syscall_mknodat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_pipe:___syscall_pipe,__syscall_poll:___syscall_poll,__syscall_readlinkat:___syscall_readlinkat,__syscall_recvfrom:___syscall_recvfrom,__syscall_recvmsg:___syscall_recvmsg,__syscall_renameat:___syscall_renameat,__syscall_rmdir:___syscall_rmdir,__syscall_sendmsg:___syscall_sendmsg,__syscall_sendto:___syscall_sendto,__syscall_socket:___syscall_socket,__syscall_stat64:___syscall_stat64,__syscall_statfs64:___syscall_statfs64,__syscall_symlink:___syscall_symlink,__syscall_symlinkat:___syscall_symlinkat,__syscall_truncate64:___syscall_truncate64,__syscall_unlinkat:___syscall_unlinkat,__syscall_utimensat:___syscall_utimensat,__table_base:___table_base,_abort_js:__abort_js,_dlopen_js:__dlopen_js,_dlsym_catchup_js:__dlsym_catchup_js,_dlsym_js:__dlsym_js,_embind_create_inheriting_constructor:__embind_create_inheriting_constructor,_embind_finalize_value_array:__embind_finalize_value_array,_embind_finalize_value_object:__embind_finalize_value_object,_embind_register_bigint:__embind_register_bigint,_embind_register_bool:__embind_register_bool,_embind_register_class:__embind_register_class,_embind_register_class_class_function:__embind_register_class_class_function,_embind_register_class_class_property:__embind_register_class_class_property,_embind_register_class_constructor:__embind_register_class_constructor,_embind_register_class_function:__embind_register_class_function,_embind_register_class_property:__embind_register_class_property,_embind_register_constant:__embind_register_constant,_embind_register_emval:__embind_register_emval,_embind_register_enum:__embind_register_enum,_embind_register_enum_value:__embind_register_enum_value,_embind_register_float:__embind_register_float,_embind_register_function:__embind_register_function,_embind_register_integer:__embind_register_integer,_embind_register_memory_view:__embind_register_memory_view,_embind_register_optional:__embind_register_optional,_embind_register_smart_ptr:__embind_register_smart_ptr,_embind_register_std_string:__embind_register_std_string,_embind_register_std_wstring:__embind_register_std_wstring,_embind_register_user_type:__embind_register_user_type,_embind_register_value_array:__embind_register_value_array,_embind_register_value_array_element:__embind_register_value_array_element,_embind_register_value_object:__embind_register_value_object,_embind_register_value_object_field:__embind_register_value_object_field,_embind_register_void:__embind_register_void,_emscripten_dlopen_js:__emscripten_dlopen_js,_emscripten_fs_load_embedded_files:__emscripten_fs_load_embedded_files,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_get_progname:__emscripten_get_progname,_emscripten_lookup_name:__emscripten_lookup_name,_emscripten_memcpy_js:__emscripten_memcpy_js,_emscripten_push_main_loop_blocker:__emscripten_push_main_loop_blocker,_emscripten_push_uncounted_main_loop_blocker:__emscripten_push_uncounted_main_loop_blocker,_emscripten_runtime_keepalive_clear:__emscripten_runtime_keepalive_clear,_emscripten_set_offscreencanvas_size:__emscripten_set_offscreencanvas_size,_emscripten_system:__emscripten_system,_emval_as:__emval_as,_emval_as_int64:__emval_as_int64,_emval_as_uint64:__emval_as_uint64,_emval_call:__emval_call,_emval_call_method:__emval_call_method,_emval_coro_make_promise:__emval_coro_make_promise,_emval_coro_suspend:__emval_coro_suspend,_emval_decref:__emval_decref,_emval_delete:__emval_delete,_emval_equals:__emval_equals,_emval_get_global:__emval_get_global,_emval_get_method_caller:__emval_get_method_caller,_emval_get_module_property:__emval_get_module_property,_emval_get_property:__emval_get_property,_emval_greater_than:__emval_greater_than,_emval_in:__emval_in,_emval_incref:__emval_incref,_emval_instanceof:__emval_instanceof,_emval_is_number:__emval_is_number,_emval_is_string:__emval_is_string,_emval_iter_begin:__emval_iter_begin,_emval_iter_next:__emval_iter_next,_emval_less_than:__emval_less_than,_emval_new_array:__emval_new_array,_emval_new_array_from_memory_view:__emval_new_array_from_memory_view,_emval_new_cstring:__emval_new_cstring,_emval_new_object:__emval_new_object,_emval_new_u16string:__emval_new_u16string,_emval_new_u8string:__emval_new_u8string,_emval_not:__emval_not,_emval_register_symbol:__emval_register_symbol,_emval_run_destructors:__emval_run_destructors,_emval_set_property:__emval_set_property,_emval_strictly_equals:__emval_strictly_equals,_emval_take_value:__emval_take_value,_emval_throw:__emval_throw,_emval_typeof:__emval_typeof,_glGetActiveAttribOrUniform:__glGetActiveAttribOrUniform,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_mktime_js:__mktime_js,_mmap_js:__mmap_js,_msync_js:__msync_js,_munmap_js:__munmap_js,_setitimer_js:__setitimer_js,_timegm_js:__timegm_js,_tzset_js:__tzset_js,alBuffer3f:_alBuffer3f,alBuffer3i:_alBuffer3i,alBufferData:_alBufferData,alBufferf:_alBufferf,alBufferfv:_alBufferfv,alBufferi:_alBufferi,alBufferiv:_alBufferiv,alDeleteBuffers:_alDeleteBuffers,alDeleteSources:_alDeleteSources,alDisable:_alDisable,alDistanceModel:_alDistanceModel,alDopplerFactor:_alDopplerFactor,alDopplerVelocity:_alDopplerVelocity,alEnable:_alEnable,alGenBuffers:_alGenBuffers,alGenSources:_alGenSources,alGetBoolean:_alGetBoolean,alGetBooleanv:_alGetBooleanv,alGetBuffer3f:_alGetBuffer3f,alGetBuffer3i:_alGetBuffer3i,alGetBufferf:_alGetBufferf,alGetBufferfv:_alGetBufferfv,alGetBufferi:_alGetBufferi,alGetBufferiv:_alGetBufferiv,alGetDouble:_alGetDouble,alGetDoublev:_alGetDoublev,alGetEnumValue:_alGetEnumValue,alGetError:_alGetError,alGetFloat:_alGetFloat,alGetFloatv:_alGetFloatv,alGetInteger:_alGetInteger,alGetIntegerv:_alGetIntegerv,alGetListener3f:_alGetListener3f,alGetListener3i:_alGetListener3i,alGetListenerf:_alGetListenerf,alGetListenerfv:_alGetListenerfv,alGetListeneri:_alGetListeneri,alGetListeneriv:_alGetListeneriv,alGetSource3f:_alGetSource3f,alGetSource3i:_alGetSource3i,alGetSourcef:_alGetSourcef,alGetSourcefv:_alGetSourcefv,alGetSourcei:_alGetSourcei,alGetSourceiv:_alGetSourceiv,alGetString:_alGetString,alIsBuffer:_alIsBuffer,alIsEnabled:_alIsEnabled,alIsExtensionPresent:_alIsExtensionPresent,alIsSource:_alIsSource,alListener3f:_alListener3f,alListener3i:_alListener3i,alListenerf:_alListenerf,alListenerfv:_alListenerfv,alListeneri:_alListeneri,alListeneriv:_alListeneriv,alSource3f:_alSource3f,alSource3i:_alSource3i,alSourcePause:_alSourcePause,alSourcePausev:_alSourcePausev,alSourcePlay:_alSourcePlay,alSourcePlayv:_alSourcePlayv,alSourceQueueBuffers:_alSourceQueueBuffers,alSourceRewind:_alSourceRewind,alSourceRewindv:_alSourceRewindv,alSourceStop:_alSourceStop,alSourceStopv:_alSourceStopv,alSourceUnqueueBuffers:_alSourceUnqueueBuffers,alSourcef:_alSourcef,alSourcefv:_alSourcefv,alSourcei:_alSourcei,alSourceiv:_alSourceiv,alSpeedOfSound:_alSpeedOfSound,alcCaptureCloseDevice:_alcCaptureCloseDevice,alcCaptureOpenDevice:_alcCaptureOpenDevice,alcCaptureSamples:_alcCaptureSamples,alcCaptureStart:_alcCaptureStart,alcCaptureStop:_alcCaptureStop,alcCloseDevice:_alcCloseDevice,alcCreateContext:_alcCreateContext,alcDestroyContext:_alcDestroyContext,alcGetContextsDevice:_alcGetContextsDevice,alcGetCurrentContext:_alcGetCurrentContext,alcGetEnumValue:_alcGetEnumValue,alcGetError:_alcGetError,alcGetIntegerv:_alcGetIntegerv,alcGetString:_alcGetString,alcIsExtensionPresent:_alcIsExtensionPresent,alcMakeContextCurrent:_alcMakeContextCurrent,alcOpenDevice:_alcOpenDevice,alcProcessContext:_alcProcessContext,alcSuspendContext:_alcSuspendContext,boxColor:_boxColor,boxRGBA:_boxRGBA,clock_res_get:_clock_res_get,clock_time_get:_clock_time_get,duckdb_web_fs_directory_create:_duckdb_web_fs_directory_create,duckdb_web_fs_directory_exists:_duckdb_web_fs_directory_exists,duckdb_web_fs_directory_list_files:_duckdb_web_fs_directory_list_files,duckdb_web_fs_directory_remove:_duckdb_web_fs_directory_remove,duckdb_web_fs_file_close:_duckdb_web_fs_file_close,duckdb_web_fs_file_exists:_duckdb_web_fs_file_exists,duckdb_web_fs_file_get_last_modified_time:_duckdb_web_fs_file_get_last_modified_time,duckdb_web_fs_file_move:_duckdb_web_fs_file_move,duckdb_web_fs_file_open:_duckdb_web_fs_file_open,duckdb_web_fs_file_read:_duckdb_web_fs_file_read,duckdb_web_fs_file_remove:_duckdb_web_fs_file_remove,duckdb_web_fs_file_sync:_duckdb_web_fs_file_sync,duckdb_web_fs_file_truncate:_duckdb_web_fs_file_truncate,duckdb_web_fs_file_write:_duckdb_web_fs_file_write,duckdb_web_fs_get_default_data_protocol:_duckdb_web_fs_get_default_data_protocol,duckdb_web_fs_glob:_duckdb_web_fs_glob,duckdb_web_test_platform_feature:_duckdb_web_test_platform_feature,duckdb_web_udf_scalar_call:_duckdb_web_udf_scalar_call,eglBindAPI:_eglBindAPI,eglChooseConfig:_eglChooseConfig,eglCreateContext:_eglCreateContext,eglCreateWindowSurface:_eglCreateWindowSurface,eglDestroyContext:_eglDestroyContext,eglDestroySurface:_eglDestroySurface,eglGetConfigAttrib:_eglGetConfigAttrib,eglGetConfigs:_eglGetConfigs,eglGetCurrentContext:_eglGetCurrentContext,eglGetCurrentDisplay:_eglGetCurrentDisplay,eglGetCurrentSurface:_eglGetCurrentSurface,eglGetDisplay:_eglGetDisplay,eglGetError:_eglGetError,eglInitialize:_eglInitialize,eglMakeCurrent:_eglMakeCurrent,eglQueryAPI:_eglQueryAPI,eglQueryContext:_eglQueryContext,eglQueryString:_eglQueryString,eglQuerySurface:_eglQuerySurface,eglReleaseThread:_eglReleaseThread,eglSwapBuffers:_eglSwapBuffers,eglSwapInterval:_eglSwapInterval,eglTerminate:_eglTerminate,eglWaitClient:_eglWaitClient,eglWaitGL:_eglWaitGL,eglWaitNative:_eglWaitNative,ellipseColor:_ellipseColor,ellipseRGBA:_ellipseRGBA,emscripten_SDL_SetEventHandler:_emscripten_SDL_SetEventHandler,emscripten_alcDevicePauseSOFT:_emscripten_alcDevicePauseSOFT,emscripten_alcDeviceResumeSOFT:_emscripten_alcDeviceResumeSOFT,emscripten_alcGetStringiSOFT:_emscripten_alcGetStringiSOFT,emscripten_alcResetDeviceSOFT:_emscripten_alcResetDeviceSOFT,emscripten_asm_const_async_on_main_thread:_emscripten_asm_const_async_on_main_thread,emscripten_asm_const_double:_emscripten_asm_const_double,emscripten_asm_const_double_sync_on_main_thread:_emscripten_asm_const_double_sync_on_main_thread,emscripten_asm_const_int:_emscripten_asm_const_int,emscripten_asm_const_int_sync_on_main_thread:_emscripten_asm_const_int_sync_on_main_thread,emscripten_asm_const_ptr:_emscripten_asm_const_ptr,emscripten_asm_const_ptr_sync_on_main_thread:_emscripten_asm_const_ptr_sync_on_main_thread,emscripten_async_call:_emscripten_async_call,emscripten_async_load_script:_emscripten_async_load_script,emscripten_async_run_script:_emscripten_async_run_script,emscripten_async_wget:_emscripten_async_wget,emscripten_async_wget2:_emscripten_async_wget2,emscripten_async_wget2_abort:_emscripten_async_wget2_abort,emscripten_async_wget2_data:_emscripten_async_wget2_data,emscripten_async_wget_data:_emscripten_async_wget_data,emscripten_call_worker:_emscripten_call_worker,emscripten_cancel_animation_frame:_emscripten_cancel_animation_frame,emscripten_cancel_main_loop:_emscripten_cancel_main_loop,emscripten_clear_immediate:_emscripten_clear_immediate,emscripten_clear_interval:_emscripten_clear_interval,emscripten_clear_timeout:_emscripten_clear_timeout,emscripten_console_error:_emscripten_console_error,emscripten_console_log:_emscripten_console_log,emscripten_console_trace:_emscripten_console_trace,emscripten_console_warn:_emscripten_console_warn,emscripten_create_worker:_emscripten_create_worker,emscripten_date_now:_emscripten_date_now,emscripten_debugger:_emscripten_debugger,emscripten_destroy_worker:_emscripten_destroy_worker,emscripten_enter_soft_fullscreen:_emscripten_enter_soft_fullscreen,emscripten_err:_emscripten_err,emscripten_errn:_emscripten_errn,emscripten_exit_fullscreen:_emscripten_exit_fullscreen,emscripten_exit_pointerlock:_emscripten_exit_pointerlock,emscripten_exit_soft_fullscreen:_emscripten_exit_soft_fullscreen,emscripten_exit_with_live_runtime:_emscripten_exit_with_live_runtime,emscripten_fiber_swap:_emscripten_fiber_swap,emscripten_force_exit:_emscripten_force_exit,emscripten_get_battery_status:_emscripten_get_battery_status,emscripten_get_callstack:_emscripten_get_callstack,emscripten_get_canvas_element_size:_emscripten_get_canvas_element_size,emscripten_get_canvas_size:_emscripten_get_canvas_size,emscripten_get_compiler_setting:_emscripten_get_compiler_setting,emscripten_get_device_pixel_ratio:_emscripten_get_device_pixel_ratio,emscripten_get_devicemotion_status:_emscripten_get_devicemotion_status,emscripten_get_deviceorientation_status:_emscripten_get_deviceorientation_status,emscripten_get_element_css_size:_emscripten_get_element_css_size,emscripten_get_fullscreen_status:_emscripten_get_fullscreen_status,emscripten_get_gamepad_status:_emscripten_get_gamepad_status,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_main_loop_timing:_emscripten_get_main_loop_timing,emscripten_get_mouse_status:_emscripten_get_mouse_status,emscripten_get_now:_emscripten_get_now,emscripten_get_now_res:_emscripten_get_now_res,emscripten_get_num_gamepads:_emscripten_get_num_gamepads,emscripten_get_orientation_status:_emscripten_get_orientation_status,emscripten_get_pointerlock_status:_emscripten_get_pointerlock_status,emscripten_get_preloaded_image_data:_emscripten_get_preloaded_image_data,emscripten_get_preloaded_image_data_from_FILE:_emscripten_get_preloaded_image_data_from_FILE,emscripten_get_screen_size:_emscripten_get_screen_size,emscripten_get_visibility_status:_emscripten_get_visibility_status,emscripten_get_window_title:_emscripten_get_window_title,emscripten_get_worker_queue_size:_emscripten_get_worker_queue_size,emscripten_glActiveTexture:_emscripten_glActiveTexture,emscripten_glAttachShader:_emscripten_glAttachShader,emscripten_glBegin:_emscripten_glBegin,emscripten_glBeginQueryEXT:_emscripten_glBeginQueryEXT,emscripten_glBindAttribLocation:_emscripten_glBindAttribLocation,emscripten_glBindBuffer:_emscripten_glBindBuffer,emscripten_glBindFramebuffer:_emscripten_glBindFramebuffer,emscripten_glBindRenderbuffer:_emscripten_glBindRenderbuffer,emscripten_glBindTexture:_emscripten_glBindTexture,emscripten_glBindVertexArray:_emscripten_glBindVertexArray,emscripten_glBindVertexArrayOES:_emscripten_glBindVertexArrayOES,emscripten_glBlendColor:_emscripten_glBlendColor,emscripten_glBlendEquation:_emscripten_glBlendEquation,emscripten_glBlendEquationSeparate:_emscripten_glBlendEquationSeparate,emscripten_glBlendFunc:_emscripten_glBlendFunc,emscripten_glBlendFuncSeparate:_emscripten_glBlendFuncSeparate,emscripten_glBufferData:_emscripten_glBufferData,emscripten_glBufferSubData:_emscripten_glBufferSubData,emscripten_glCheckFramebufferStatus:_emscripten_glCheckFramebufferStatus,emscripten_glClear:_emscripten_glClear,emscripten_glClearColor:_emscripten_glClearColor,emscripten_glClearDepth:_emscripten_glClearDepth,emscripten_glClearDepthf:_emscripten_glClearDepthf,emscripten_glClearStencil:_emscripten_glClearStencil,emscripten_glClipControlEXT:_emscripten_glClipControlEXT,emscripten_glColorMask:_emscripten_glColorMask,emscripten_glCompileShader:_emscripten_glCompileShader,emscripten_glCompressedTexImage2D:_emscripten_glCompressedTexImage2D,emscripten_glCompressedTexSubImage2D:_emscripten_glCompressedTexSubImage2D,emscripten_glCopyTexImage2D:_emscripten_glCopyTexImage2D,emscripten_glCopyTexSubImage2D:_emscripten_glCopyTexSubImage2D,emscripten_glCreateProgram:_emscripten_glCreateProgram,emscripten_glCreateShader:_emscripten_glCreateShader,emscripten_glCullFace:_emscripten_glCullFace,emscripten_glDeleteBuffers:_emscripten_glDeleteBuffers,emscripten_glDeleteFramebuffers:_emscripten_glDeleteFramebuffers,emscripten_glDeleteProgram:_emscripten_glDeleteProgram,emscripten_glDeleteQueriesEXT:_emscripten_glDeleteQueriesEXT,emscripten_glDeleteRenderbuffers:_emscripten_glDeleteRenderbuffers,emscripten_glDeleteShader:_emscripten_glDeleteShader,emscripten_glDeleteTextures:_emscripten_glDeleteTextures,emscripten_glDeleteVertexArrays:_emscripten_glDeleteVertexArrays,emscripten_glDeleteVertexArraysOES:_emscripten_glDeleteVertexArraysOES,emscripten_glDepthFunc:_emscripten_glDepthFunc,emscripten_glDepthMask:_emscripten_glDepthMask,emscripten_glDepthRange:_emscripten_glDepthRange,emscripten_glDepthRangef:_emscripten_glDepthRangef,emscripten_glDetachShader:_emscripten_glDetachShader,emscripten_glDisable:_emscripten_glDisable,emscripten_glDisableVertexAttribArray:_emscripten_glDisableVertexAttribArray,emscripten_glDrawArrays:_emscripten_glDrawArrays,emscripten_glDrawArraysInstanced:_emscripten_glDrawArraysInstanced,emscripten_glDrawArraysInstancedANGLE:_emscripten_glDrawArraysInstancedANGLE,emscripten_glDrawArraysInstancedARB:_emscripten_glDrawArraysInstancedARB,emscripten_glDrawArraysInstancedEXT:_emscripten_glDrawArraysInstancedEXT,emscripten_glDrawArraysInstancedNV:_emscripten_glDrawArraysInstancedNV,emscripten_glDrawBuffers:_emscripten_glDrawBuffers,emscripten_glDrawBuffersEXT:_emscripten_glDrawBuffersEXT,emscripten_glDrawBuffersWEBGL:_emscripten_glDrawBuffersWEBGL,emscripten_glDrawElements:_emscripten_glDrawElements,emscripten_glDrawElementsInstanced:_emscripten_glDrawElementsInstanced,emscripten_glDrawElementsInstancedANGLE:_emscripten_glDrawElementsInstancedANGLE,emscripten_glDrawElementsInstancedARB:_emscripten_glDrawElementsInstancedARB,emscripten_glDrawElementsInstancedEXT:_emscripten_glDrawElementsInstancedEXT,emscripten_glDrawElementsInstancedNV:_emscripten_glDrawElementsInstancedNV,emscripten_glEnable:_emscripten_glEnable,emscripten_glEnableVertexAttribArray:_emscripten_glEnableVertexAttribArray,emscripten_glEndQueryEXT:_emscripten_glEndQueryEXT,emscripten_glFinish:_emscripten_glFinish,emscripten_glFlush:_emscripten_glFlush,emscripten_glFramebufferRenderbuffer:_emscripten_glFramebufferRenderbuffer,emscripten_glFramebufferTexture2D:_emscripten_glFramebufferTexture2D,emscripten_glFrontFace:_emscripten_glFrontFace,emscripten_glGenBuffers:_emscripten_glGenBuffers,emscripten_glGenFramebuffers:_emscripten_glGenFramebuffers,emscripten_glGenQueriesEXT:_emscripten_glGenQueriesEXT,emscripten_glGenRenderbuffers:_emscripten_glGenRenderbuffers,emscripten_glGenTextures:_emscripten_glGenTextures,emscripten_glGenVertexArrays:_emscripten_glGenVertexArrays,emscripten_glGenVertexArraysOES:_emscripten_glGenVertexArraysOES,emscripten_glGenerateMipmap:_emscripten_glGenerateMipmap,emscripten_glGetActiveAttrib:_emscripten_glGetActiveAttrib,emscripten_glGetActiveUniform:_emscripten_glGetActiveUniform,emscripten_glGetAttachedShaders:_emscripten_glGetAttachedShaders,emscripten_glGetAttribLocation:_emscripten_glGetAttribLocation,emscripten_glGetBooleanv:_emscripten_glGetBooleanv,emscripten_glGetBufferParameteriv:_emscripten_glGetBufferParameteriv,emscripten_glGetError:_emscripten_glGetError,emscripten_glGetFloatv:_emscripten_glGetFloatv,emscripten_glGetFramebufferAttachmentParameteriv:_emscripten_glGetFramebufferAttachmentParameteriv,emscripten_glGetIntegerv:_emscripten_glGetIntegerv,emscripten_glGetProgramInfoLog:_emscripten_glGetProgramInfoLog,emscripten_glGetProgramiv:_emscripten_glGetProgramiv,emscripten_glGetQueryObjecti64vEXT:_emscripten_glGetQueryObjecti64vEXT,emscripten_glGetQueryObjectivEXT:_emscripten_glGetQueryObjectivEXT,emscripten_glGetQueryObjectui64vEXT:_emscripten_glGetQueryObjectui64vEXT,emscripten_glGetQueryObjectuivEXT:_emscripten_glGetQueryObjectuivEXT,emscripten_glGetQueryivEXT:_emscripten_glGetQueryivEXT,emscripten_glGetRenderbufferParameteriv:_emscripten_glGetRenderbufferParameteriv,emscripten_glGetShaderInfoLog:_emscripten_glGetShaderInfoLog,emscripten_glGetShaderPrecisionFormat:_emscripten_glGetShaderPrecisionFormat,emscripten_glGetShaderSource:_emscripten_glGetShaderSource,emscripten_glGetShaderiv:_emscripten_glGetShaderiv,emscripten_glGetString:_emscripten_glGetString,emscripten_glGetTexParameterfv:_emscripten_glGetTexParameterfv,emscripten_glGetTexParameteriv:_emscripten_glGetTexParameteriv,emscripten_glGetUniformLocation:_emscripten_glGetUniformLocation,emscripten_glGetUniformfv:_emscripten_glGetUniformfv,emscripten_glGetUniformiv:_emscripten_glGetUniformiv,emscripten_glGetVertexAttribPointerv:_emscripten_glGetVertexAttribPointerv,emscripten_glGetVertexAttribfv:_emscripten_glGetVertexAttribfv,emscripten_glGetVertexAttribiv:_emscripten_glGetVertexAttribiv,emscripten_glHint:_emscripten_glHint,emscripten_glIsBuffer:_emscripten_glIsBuffer,emscripten_glIsEnabled:_emscripten_glIsEnabled,emscripten_glIsFramebuffer:_emscripten_glIsFramebuffer,emscripten_glIsProgram:_emscripten_glIsProgram,emscripten_glIsQueryEXT:_emscripten_glIsQueryEXT,emscripten_glIsRenderbuffer:_emscripten_glIsRenderbuffer,emscripten_glIsShader:_emscripten_glIsShader,emscripten_glIsTexture:_emscripten_glIsTexture,emscripten_glIsVertexArray:_emscripten_glIsVertexArray,emscripten_glIsVertexArrayOES:_emscripten_glIsVertexArrayOES,emscripten_glLineWidth:_emscripten_glLineWidth,emscripten_glLinkProgram:_emscripten_glLinkProgram,emscripten_glLoadIdentity:_emscripten_glLoadIdentity,emscripten_glMatrixMode:_emscripten_glMatrixMode,emscripten_glMultiDrawArrays:_emscripten_glMultiDrawArrays,emscripten_glMultiDrawArraysANGLE:_emscripten_glMultiDrawArraysANGLE,emscripten_glMultiDrawArraysInstancedANGLE:_emscripten_glMultiDrawArraysInstancedANGLE,emscripten_glMultiDrawArraysInstancedWEBGL:_emscripten_glMultiDrawArraysInstancedWEBGL,emscripten_glMultiDrawArraysWEBGL:_emscripten_glMultiDrawArraysWEBGL,emscripten_glMultiDrawElements:_emscripten_glMultiDrawElements,emscripten_glMultiDrawElementsANGLE:_emscripten_glMultiDrawElementsANGLE,emscripten_glMultiDrawElementsInstancedANGLE:_emscripten_glMultiDrawElementsInstancedANGLE,emscripten_glMultiDrawElementsInstancedWEBGL:_emscripten_glMultiDrawElementsInstancedWEBGL,emscripten_glMultiDrawElementsWEBGL:_emscripten_glMultiDrawElementsWEBGL,emscripten_glPixelStorei:_emscripten_glPixelStorei,emscripten_glPolygonModeWEBGL:_emscripten_glPolygonModeWEBGL,emscripten_glPolygonOffset:_emscripten_glPolygonOffset,emscripten_glPolygonOffsetClampEXT:_emscripten_glPolygonOffsetClampEXT,emscripten_glQueryCounterEXT:_emscripten_glQueryCounterEXT,emscripten_glReadPixels:_emscripten_glReadPixels,emscripten_glReleaseShaderCompiler:_emscripten_glReleaseShaderCompiler,emscripten_glRenderbufferStorage:_emscripten_glRenderbufferStorage,emscripten_glSampleCoverage:_emscripten_glSampleCoverage,emscripten_glScissor:_emscripten_glScissor,emscripten_glShaderBinary:_emscripten_glShaderBinary,emscripten_glShaderSource:_emscripten_glShaderSource,emscripten_glStencilFunc:_emscripten_glStencilFunc,emscripten_glStencilFuncSeparate:_emscripten_glStencilFuncSeparate,emscripten_glStencilMask:_emscripten_glStencilMask,emscripten_glStencilMaskSeparate:_emscripten_glStencilMaskSeparate,emscripten_glStencilOp:_emscripten_glStencilOp,emscripten_glStencilOpSeparate:_emscripten_glStencilOpSeparate,emscripten_glTexImage2D:_emscripten_glTexImage2D,emscripten_glTexParameterf:_emscripten_glTexParameterf,emscripten_glTexParameterfv:_emscripten_glTexParameterfv,emscripten_glTexParameteri:_emscripten_glTexParameteri,emscripten_glTexParameteriv:_emscripten_glTexParameteriv,emscripten_glTexSubImage2D:_emscripten_glTexSubImage2D,emscripten_glUniform1f:_emscripten_glUniform1f,emscripten_glUniform1fv:_emscripten_glUniform1fv,emscripten_glUniform1i:_emscripten_glUniform1i,emscripten_glUniform1iv:_emscripten_glUniform1iv,emscripten_glUniform2f:_emscripten_glUniform2f,emscripten_glUniform2fv:_emscripten_glUniform2fv,emscripten_glUniform2i:_emscripten_glUniform2i,emscripten_glUniform2iv:_emscripten_glUniform2iv,emscripten_glUniform3f:_emscripten_glUniform3f,emscripten_glUniform3fv:_emscripten_glUniform3fv,emscripten_glUniform3i:_emscripten_glUniform3i,emscripten_glUniform3iv:_emscripten_glUniform3iv,emscripten_glUniform4f:_emscripten_glUniform4f,emscripten_glUniform4fv:_emscripten_glUniform4fv,emscripten_glUniform4i:_emscripten_glUniform4i,emscripten_glUniform4iv:_emscripten_glUniform4iv,emscripten_glUniformMatrix2fv:_emscripten_glUniformMatrix2fv,emscripten_glUniformMatrix3fv:_emscripten_glUniformMatrix3fv,emscripten_glUniformMatrix4fv:_emscripten_glUniformMatrix4fv,emscripten_glUseProgram:_emscripten_glUseProgram,emscripten_glValidateProgram:_emscripten_glValidateProgram,emscripten_glVertexAttrib1f:_emscripten_glVertexAttrib1f,emscripten_glVertexAttrib1fv:_emscripten_glVertexAttrib1fv,emscripten_glVertexAttrib2f:_emscripten_glVertexAttrib2f,emscripten_glVertexAttrib2fv:_emscripten_glVertexAttrib2fv,emscripten_glVertexAttrib3f:_emscripten_glVertexAttrib3f,emscripten_glVertexAttrib3fv:_emscripten_glVertexAttrib3fv,emscripten_glVertexAttrib4f:_emscripten_glVertexAttrib4f,emscripten_glVertexAttrib4fv:_emscripten_glVertexAttrib4fv,emscripten_glVertexAttribDivisor:_emscripten_glVertexAttribDivisor,emscripten_glVertexAttribDivisorANGLE:_emscripten_glVertexAttribDivisorANGLE,emscripten_glVertexAttribDivisorARB:_emscripten_glVertexAttribDivisorARB,emscripten_glVertexAttribDivisorEXT:_emscripten_glVertexAttribDivisorEXT,emscripten_glVertexAttribDivisorNV:_emscripten_glVertexAttribDivisorNV,emscripten_glVertexAttribPointer:_emscripten_glVertexAttribPointer,emscripten_glVertexPointer:_emscripten_glVertexPointer,emscripten_glViewport:_emscripten_glViewport,emscripten_has_asyncify:_emscripten_has_asyncify,emscripten_hide_mouse:_emscripten_hide_mouse,emscripten_html5_remove_all_event_listeners:_emscripten_html5_remove_all_event_listeners,emscripten_idb_async_clear:_emscripten_idb_async_clear,emscripten_idb_async_delete:_emscripten_idb_async_delete,emscripten_idb_async_exists:_emscripten_idb_async_exists,emscripten_idb_async_load:_emscripten_idb_async_load,emscripten_idb_async_store:_emscripten_idb_async_store,emscripten_idb_clear:_emscripten_idb_clear,emscripten_idb_delete:_emscripten_idb_delete,emscripten_idb_exists:_emscripten_idb_exists,emscripten_idb_load:_emscripten_idb_load,emscripten_idb_store:_emscripten_idb_store,emscripten_is_main_browser_thread:_emscripten_is_main_browser_thread,emscripten_is_webgl_context_lost:_emscripten_is_webgl_context_lost,emscripten_lock_orientation:_emscripten_lock_orientation,emscripten_log:_emscripten_log,emscripten_math_acos:_emscripten_math_acos,emscripten_math_acosh:_emscripten_math_acosh,emscripten_math_asin:_emscripten_math_asin,emscripten_math_asinh:_emscripten_math_asinh,emscripten_math_atan:_emscripten_math_atan,emscripten_math_atan2:_emscripten_math_atan2,emscripten_math_atanh:_emscripten_math_atanh,emscripten_math_cbrt:_emscripten_math_cbrt,emscripten_math_cos:_emscripten_math_cos,emscripten_math_cosh:_emscripten_math_cosh,emscripten_math_exp:_emscripten_math_exp,emscripten_math_expm1:_emscripten_math_expm1,emscripten_math_fmod:_emscripten_math_fmod,emscripten_math_hypot:_emscripten_math_hypot,emscripten_math_log:_emscripten_math_log,emscripten_math_log10:_emscripten_math_log10,emscripten_math_log1p:_emscripten_math_log1p,emscripten_math_log2:_emscripten_math_log2,emscripten_math_pow:_emscripten_math_pow,emscripten_math_random:_emscripten_math_random,emscripten_math_round:_emscripten_math_round,emscripten_math_sign:_emscripten_math_sign,emscripten_math_sin:_emscripten_math_sin,emscripten_math_sinh:_emscripten_math_sinh,emscripten_math_sqrt:_emscripten_math_sqrt,emscripten_math_tan:_emscripten_math_tan,emscripten_math_tanh:_emscripten_math_tanh,emscripten_notify_memory_growth:_emscripten_notify_memory_growth,emscripten_out:_emscripten_out,emscripten_outn:_emscripten_outn,emscripten_pause_main_loop:_emscripten_pause_main_loop,emscripten_pc_get_column:_emscripten_pc_get_column,emscripten_pc_get_file:_emscripten_pc_get_file,emscripten_pc_get_function:_emscripten_pc_get_function,emscripten_pc_get_line:_emscripten_pc_get_line,emscripten_performance_now:_emscripten_performance_now,emscripten_print_double:_emscripten_print_double,emscripten_promise_all:_emscripten_promise_all,emscripten_promise_all_settled:_emscripten_promise_all_settled,emscripten_promise_any:_emscripten_promise_any,emscripten_promise_await:_emscripten_promise_await,emscripten_promise_create:_emscripten_promise_create,emscripten_promise_destroy:_emscripten_promise_destroy,emscripten_promise_race:_emscripten_promise_race,emscripten_promise_resolve:_emscripten_promise_resolve,emscripten_promise_then:_emscripten_promise_then,emscripten_random:_emscripten_random,emscripten_request_animation_frame:_emscripten_request_animation_frame,emscripten_request_animation_frame_loop:_emscripten_request_animation_frame_loop,emscripten_request_fullscreen:_emscripten_request_fullscreen,emscripten_request_fullscreen_strategy:_emscripten_request_fullscreen_strategy,emscripten_request_pointerlock:_emscripten_request_pointerlock,emscripten_resize_heap:_emscripten_resize_heap,emscripten_resume_main_loop:_emscripten_resume_main_loop,emscripten_return_address:_emscripten_return_address,emscripten_run_preload_plugins:_emscripten_run_preload_plugins,emscripten_run_preload_plugins_data:_emscripten_run_preload_plugins_data,emscripten_run_script:_emscripten_run_script,emscripten_run_script_int:_emscripten_run_script_int,emscripten_run_script_string:_emscripten_run_script_string,emscripten_runtime_keepalive_check:_emscripten_runtime_keepalive_check,emscripten_runtime_keepalive_pop:_emscripten_runtime_keepalive_pop,emscripten_runtime_keepalive_push:_emscripten_runtime_keepalive_push,emscripten_sample_gamepad_data:_emscripten_sample_gamepad_data,emscripten_scan_registers:_emscripten_scan_registers,emscripten_set_batterychargingchange_callback_on_thread:_emscripten_set_batterychargingchange_callback_on_thread,emscripten_set_batterylevelchange_callback_on_thread:_emscripten_set_batterylevelchange_callback_on_thread,emscripten_set_beforeunload_callback_on_thread:_emscripten_set_beforeunload_callback_on_thread,emscripten_set_blur_callback_on_thread:_emscripten_set_blur_callback_on_thread,emscripten_set_canvas_element_size:_emscripten_set_canvas_element_size,emscripten_set_canvas_size:_emscripten_set_canvas_size,emscripten_set_click_callback_on_thread:_emscripten_set_click_callback_on_thread,emscripten_set_dblclick_callback_on_thread:_emscripten_set_dblclick_callback_on_thread,emscripten_set_devicemotion_callback_on_thread:_emscripten_set_devicemotion_callback_on_thread,emscripten_set_deviceorientation_callback_on_thread:_emscripten_set_deviceorientation_callback_on_thread,emscripten_set_element_css_size:_emscripten_set_element_css_size,emscripten_set_focus_callback_on_thread:_emscripten_set_focus_callback_on_thread,emscripten_set_focusin_callback_on_thread:_emscripten_set_focusin_callback_on_thread,emscripten_set_focusout_callback_on_thread:_emscripten_set_focusout_callback_on_thread,emscripten_set_fullscreenchange_callback_on_thread:_emscripten_set_fullscreenchange_callback_on_thread,emscripten_set_gamepadconnected_callback_on_thread:_emscripten_set_gamepadconnected_callback_on_thread,emscripten_set_gamepaddisconnected_callback_on_thread:_emscripten_set_gamepaddisconnected_callback_on_thread,emscripten_set_immediate:_emscripten_set_immediate,emscripten_set_immediate_loop:_emscripten_set_immediate_loop,emscripten_set_interval:_emscripten_set_interval,emscripten_set_keydown_callback_on_thread:_emscripten_set_keydown_callback_on_thread,emscripten_set_keypress_callback_on_thread:_emscripten_set_keypress_callback_on_thread,emscripten_set_keyup_callback_on_thread:_emscripten_set_keyup_callback_on_thread,emscripten_set_main_loop:_emscripten_set_main_loop,emscripten_set_main_loop_arg:_emscripten_set_main_loop_arg,emscripten_set_main_loop_expected_blockers:_emscripten_set_main_loop_expected_blockers,emscripten_set_main_loop_timing:_emscripten_set_main_loop_timing,emscripten_set_mousedown_callback_on_thread:_emscripten_set_mousedown_callback_on_thread,emscripten_set_mouseenter_callback_on_thread:_emscripten_set_mouseenter_callback_on_thread,emscripten_set_mouseleave_callback_on_thread:_emscripten_set_mouseleave_callback_on_thread,emscripten_set_mousemove_callback_on_thread:_emscripten_set_mousemove_callback_on_thread,emscripten_set_mouseout_callback_on_thread:_emscripten_set_mouseout_callback_on_thread,emscripten_set_mouseover_callback_on_thread:_emscripten_set_mouseover_callback_on_thread,emscripten_set_mouseup_callback_on_thread:_emscripten_set_mouseup_callback_on_thread,emscripten_set_orientationchange_callback_on_thread:_emscripten_set_orientationchange_callback_on_thread,emscripten_set_pointerlockchange_callback_on_thread:_emscripten_set_pointerlockchange_callback_on_thread,emscripten_set_pointerlockerror_callback_on_thread:_emscripten_set_pointerlockerror_callback_on_thread,emscripten_set_resize_callback_on_thread:_emscripten_set_resize_callback_on_thread,emscripten_set_scroll_callback_on_thread:_emscripten_set_scroll_callback_on_thread,emscripten_set_socket_close_callback:_emscripten_set_socket_close_callback,emscripten_set_socket_connection_callback:_emscripten_set_socket_connection_callback,emscripten_set_socket_error_callback:_emscripten_set_socket_error_callback,emscripten_set_socket_listen_callback:_emscripten_set_socket_listen_callback,emscripten_set_socket_message_callback:_emscripten_set_socket_message_callback,emscripten_set_socket_open_callback:_emscripten_set_socket_open_callback,emscripten_set_timeout:_emscripten_set_timeout,emscripten_set_timeout_loop:_emscripten_set_timeout_loop,emscripten_set_touchcancel_callback_on_thread:_emscripten_set_touchcancel_callback_on_thread,emscripten_set_touchend_callback_on_thread:_emscripten_set_touchend_callback_on_thread,emscripten_set_touchmove_callback_on_thread:_emscripten_set_touchmove_callback_on_thread,emscripten_set_touchstart_callback_on_thread:_emscripten_set_touchstart_callback_on_thread,emscripten_set_visibilitychange_callback_on_thread:_emscripten_set_visibilitychange_callback_on_thread,emscripten_set_webglcontextlost_callback_on_thread:_emscripten_set_webglcontextlost_callback_on_thread,emscripten_set_webglcontextrestored_callback_on_thread:_emscripten_set_webglcontextrestored_callback_on_thread,emscripten_set_wheel_callback_on_thread:_emscripten_set_wheel_callback_on_thread,emscripten_set_window_title:_emscripten_set_window_title,emscripten_sleep:_emscripten_sleep,emscripten_stack_snapshot:_emscripten_stack_snapshot,emscripten_stack_unwind_buffer:_emscripten_stack_unwind_buffer,emscripten_supports_offscreencanvas:_emscripten_supports_offscreencanvas,emscripten_throw_number:_emscripten_throw_number,emscripten_throw_string:_emscripten_throw_string,emscripten_unlock_orientation:_emscripten_unlock_orientation,emscripten_unwind_to_js_event_loop:_emscripten_unwind_to_js_event_loop,emscripten_vibrate:_emscripten_vibrate,emscripten_vibrate_pattern:_emscripten_vibrate_pattern,emscripten_webgl_commit_frame:_emscripten_webgl_commit_frame,emscripten_webgl_create_context:_emscripten_webgl_create_context,emscripten_webgl_destroy_context:_emscripten_webgl_destroy_context,emscripten_webgl_do_commit_frame:_emscripten_webgl_do_commit_frame,emscripten_webgl_do_create_context:_emscripten_webgl_do_create_context,emscripten_webgl_do_get_current_context:_emscripten_webgl_do_get_current_context,emscripten_webgl_enable_ANGLE_instanced_arrays:_emscripten_webgl_enable_ANGLE_instanced_arrays,emscripten_webgl_enable_EXT_clip_control:_emscripten_webgl_enable_EXT_clip_control,emscripten_webgl_enable_EXT_polygon_offset_clamp:_emscripten_webgl_enable_EXT_polygon_offset_clamp,emscripten_webgl_enable_OES_vertex_array_object:_emscripten_webgl_enable_OES_vertex_array_object,emscripten_webgl_enable_WEBGL_draw_buffers:_emscripten_webgl_enable_WEBGL_draw_buffers,emscripten_webgl_enable_WEBGL_multi_draw:_emscripten_webgl_enable_WEBGL_multi_draw,emscripten_webgl_enable_WEBGL_polygon_mode:_emscripten_webgl_enable_WEBGL_polygon_mode,emscripten_webgl_enable_extension:_emscripten_webgl_enable_extension,emscripten_webgl_get_context_attributes:_emscripten_webgl_get_context_attributes,emscripten_webgl_get_current_context:_emscripten_webgl_get_current_context,emscripten_webgl_get_drawing_buffer_size:_emscripten_webgl_get_drawing_buffer_size,emscripten_webgl_get_parameter_d:_emscripten_webgl_get_parameter_d,emscripten_webgl_get_parameter_i64v:_emscripten_webgl_get_parameter_i64v,emscripten_webgl_get_parameter_o:_emscripten_webgl_get_parameter_o,emscripten_webgl_get_parameter_utf8:_emscripten_webgl_get_parameter_utf8,emscripten_webgl_get_parameter_v:_emscripten_webgl_get_parameter_v,emscripten_webgl_get_program_info_log_utf8:_emscripten_webgl_get_program_info_log_utf8,emscripten_webgl_get_program_parameter_d:_emscripten_webgl_get_program_parameter_d,emscripten_webgl_get_shader_info_log_utf8:_emscripten_webgl_get_shader_info_log_utf8,emscripten_webgl_get_shader_parameter_d:_emscripten_webgl_get_shader_parameter_d,emscripten_webgl_get_shader_source_utf8:_emscripten_webgl_get_shader_source_utf8,emscripten_webgl_get_supported_extensions:_emscripten_webgl_get_supported_extensions,emscripten_webgl_get_uniform_d:_emscripten_webgl_get_uniform_d,emscripten_webgl_get_uniform_v:_emscripten_webgl_get_uniform_v,emscripten_webgl_get_vertex_attrib_d:_emscripten_webgl_get_vertex_attrib_d,emscripten_webgl_get_vertex_attrib_o:_emscripten_webgl_get_vertex_attrib_o,emscripten_webgl_get_vertex_attrib_v:_emscripten_webgl_get_vertex_attrib_v,emscripten_webgl_make_context_current:_emscripten_webgl_make_context_current,emscripten_wget_data:_emscripten_wget_data,endprotoent:_endprotoent,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,exit:_exit,fd_close:_fd_close,fd_fdstat_get:_fd_fdstat_get,fd_pread:_fd_pread,fd_pwrite:_fd_pwrite,fd_read:_fd_read,fd_seek:_fd_seek,fd_sync:_fd_sync,fd_write:_fd_write,filledEllipseColor:_filledEllipseColor,filledEllipseRGBA:_filledEllipseRGBA,getaddrinfo:_getaddrinfo,getnameinfo:_getnameinfo,getprotobyname:_getprotobyname,getprotobynumber:_getprotobynumber,getprotoent:_getprotoent,glActiveTexture:_glActiveTexture,glAttachShader:_glAttachShader,glBegin:_glBegin,glBeginQueryEXT:_glBeginQueryEXT,glBindAttribLocation:_glBindAttribLocation,glBindBuffer:_glBindBuffer,glBindFramebuffer:_glBindFramebuffer,glBindRenderbuffer:_glBindRenderbuffer,glBindTexture:_glBindTexture,glBindVertexArray:_glBindVertexArray,glBindVertexArrayOES:_glBindVertexArrayOES,glBlendColor:_glBlendColor,glBlendEquation:_glBlendEquation,glBlendEquationSeparate:_glBlendEquationSeparate,glBlendFunc:_glBlendFunc,glBlendFuncSeparate:_glBlendFuncSeparate,glBufferData:_glBufferData,glBufferSubData:_glBufferSubData,glCheckFramebufferStatus:_glCheckFramebufferStatus,glClear:_glClear,glClearColor:_glClearColor,glClearDepth:_glClearDepth,glClearDepthf:_glClearDepthf,glClearStencil:_glClearStencil,glClipControlEXT:_glClipControlEXT,glColorMask:_glColorMask,glCompileShader:_glCompileShader,glCompressedTexImage2D:_glCompressedTexImage2D,glCompressedTexSubImage2D:_glCompressedTexSubImage2D,glCopyTexImage2D:_glCopyTexImage2D,glCopyTexSubImage2D:_glCopyTexSubImage2D,glCreateProgram:_glCreateProgram,glCreateShader:_glCreateShader,glCullFace:_glCullFace,glDeleteBuffers:_glDeleteBuffers,glDeleteFramebuffers:_glDeleteFramebuffers,glDeleteProgram:_glDeleteProgram,glDeleteQueriesEXT:_glDeleteQueriesEXT,glDeleteRenderbuffers:_glDeleteRenderbuffers,glDeleteShader:_glDeleteShader,glDeleteTextures:_glDeleteTextures,glDeleteVertexArrays:_glDeleteVertexArrays,glDeleteVertexArraysOES:_glDeleteVertexArraysOES,glDepthFunc:_glDepthFunc,glDepthMask:_glDepthMask,glDepthRange:_glDepthRange,glDepthRangef:_glDepthRangef,glDetachShader:_glDetachShader,glDisable:_glDisable,glDisableVertexAttribArray:_glDisableVertexAttribArray,glDrawArrays:_glDrawArrays,glDrawArraysInstanced:_glDrawArraysInstanced,glDrawArraysInstancedANGLE:_glDrawArraysInstancedANGLE,glDrawArraysInstancedARB:_glDrawArraysInstancedARB,glDrawArraysInstancedEXT:_glDrawArraysInstancedEXT,glDrawArraysInstancedNV:_glDrawArraysInstancedNV,glDrawBuffers:_glDrawBuffers,glDrawBuffersEXT:_glDrawBuffersEXT,glDrawBuffersWEBGL:_glDrawBuffersWEBGL,glDrawElements:_glDrawElements,glDrawElementsInstanced:_glDrawElementsInstanced,glDrawElementsInstancedANGLE:_glDrawElementsInstancedANGLE,glDrawElementsInstancedARB:_glDrawElementsInstancedARB,glDrawElementsInstancedEXT:_glDrawElementsInstancedEXT,glDrawElementsInstancedNV:_glDrawElementsInstancedNV,glEnable:_glEnable,glEnableVertexAttribArray:_glEnableVertexAttribArray,glEndQueryEXT:_glEndQueryEXT,glFinish:_glFinish,glFlush:_glFlush,glFramebufferRenderbuffer:_glFramebufferRenderbuffer,glFramebufferTexture2D:_glFramebufferTexture2D,glFrontFace:_glFrontFace,glGenBuffers:_glGenBuffers,glGenFramebuffers:_glGenFramebuffers,glGenQueriesEXT:_glGenQueriesEXT,glGenRenderbuffers:_glGenRenderbuffers,glGenTextures:_glGenTextures,glGenVertexArrays:_glGenVertexArrays,glGenVertexArraysOES:_glGenVertexArraysOES,glGenerateMipmap:_glGenerateMipmap,glGetActiveAttrib:_glGetActiveAttrib,glGetActiveUniform:_glGetActiveUniform,glGetAttachedShaders:_glGetAttachedShaders,glGetAttribLocation:_glGetAttribLocation,glGetBooleanv:_glGetBooleanv,glGetBufferParameteriv:_glGetBufferParameteriv,glGetError:_glGetError,glGetFloatv:_glGetFloatv,glGetFramebufferAttachmentParameteriv:_glGetFramebufferAttachmentParameteriv,glGetIntegerv:_glGetIntegerv,glGetProgramInfoLog:_glGetProgramInfoLog,glGetProgramiv:_glGetProgramiv,glGetQueryObjecti64vEXT:_glGetQueryObjecti64vEXT,glGetQueryObjectivEXT:_glGetQueryObjectivEXT,glGetQueryObjectui64vEXT:_glGetQueryObjectui64vEXT,glGetQueryObjectuivEXT:_glGetQueryObjectuivEXT,glGetQueryivEXT:_glGetQueryivEXT,glGetRenderbufferParameteriv:_glGetRenderbufferParameteriv,glGetShaderInfoLog:_glGetShaderInfoLog,glGetShaderPrecisionFormat:_glGetShaderPrecisionFormat,glGetShaderSource:_glGetShaderSource,glGetShaderiv:_glGetShaderiv,glGetString:_glGetString,glGetTexParameterfv:_glGetTexParameterfv,glGetTexParameteriv:_glGetTexParameteriv,glGetUniformLocation:_glGetUniformLocation,glGetUniformfv:_glGetUniformfv,glGetUniformiv:_glGetUniformiv,glGetVertexAttribPointerv:_glGetVertexAttribPointerv,glGetVertexAttribfv:_glGetVertexAttribfv,glGetVertexAttribiv:_glGetVertexAttribiv,glHint:_glHint,glIsBuffer:_glIsBuffer,glIsEnabled:_glIsEnabled,glIsFramebuffer:_glIsFramebuffer,glIsProgram:_glIsProgram,glIsQueryEXT:_glIsQueryEXT,glIsRenderbuffer:_glIsRenderbuffer,glIsShader:_glIsShader,glIsTexture:_glIsTexture,glIsVertexArray:_glIsVertexArray,glIsVertexArrayOES:_glIsVertexArrayOES,glLineWidth:_glLineWidth,glLinkProgram:_glLinkProgram,glLoadIdentity:_glLoadIdentity,glMatrixMode:_glMatrixMode,glMultiDrawArrays:_glMultiDrawArrays,glMultiDrawArraysANGLE:_glMultiDrawArraysANGLE,glMultiDrawArraysInstancedANGLE:_glMultiDrawArraysInstancedANGLE,glMultiDrawArraysInstancedWEBGL:_glMultiDrawArraysInstancedWEBGL,glMultiDrawArraysWEBGL:_glMultiDrawArraysWEBGL,glMultiDrawElements:_glMultiDrawElements,glMultiDrawElementsANGLE:_glMultiDrawElementsANGLE,glMultiDrawElementsInstancedANGLE:_glMultiDrawElementsInstancedANGLE,glMultiDrawElementsInstancedWEBGL:_glMultiDrawElementsInstancedWEBGL,glMultiDrawElementsWEBGL:_glMultiDrawElementsWEBGL,glPixelStorei:_glPixelStorei,glPolygonModeWEBGL:_glPolygonModeWEBGL,glPolygonOffset:_glPolygonOffset,glPolygonOffsetClampEXT:_glPolygonOffsetClampEXT,glQueryCounterEXT:_glQueryCounterEXT,glReadPixels:_glReadPixels,glReleaseShaderCompiler:_glReleaseShaderCompiler,glRenderbufferStorage:_glRenderbufferStorage,glSampleCoverage:_glSampleCoverage,glScissor:_glScissor,glShaderBinary:_glShaderBinary,glShaderSource:_glShaderSource,glStencilFunc:_glStencilFunc,glStencilFuncSeparate:_glStencilFuncSeparate,glStencilMask:_glStencilMask,glStencilMaskSeparate:_glStencilMaskSeparate,glStencilOp:_glStencilOp,glStencilOpSeparate:_glStencilOpSeparate,glTexImage2D:_glTexImage2D,glTexParameterf:_glTexParameterf,glTexParameterfv:_glTexParameterfv,glTexParameteri:_glTexParameteri,glTexParameteriv:_glTexParameteriv,glTexSubImage2D:_glTexSubImage2D,glUniform1f:_glUniform1f,glUniform1fv:_glUniform1fv,glUniform1i:_glUniform1i,glUniform1iv:_glUniform1iv,glUniform2f:_glUniform2f,glUniform2fv:_glUniform2fv,glUniform2i:_glUniform2i,glUniform2iv:_glUniform2iv,glUniform3f:_glUniform3f,glUniform3fv:_glUniform3fv,glUniform3i:_glUniform3i,glUniform3iv:_glUniform3iv,glUniform4f:_glUniform4f,glUniform4fv:_glUniform4fv,glUniform4i:_glUniform4i,glUniform4iv:_glUniform4iv,glUniformMatrix2fv:_glUniformMatrix2fv,glUniformMatrix3fv:_glUniformMatrix3fv,glUniformMatrix4fv:_glUniformMatrix4fv,glUseProgram:_glUseProgram,glValidateProgram:_glValidateProgram,glVertexAttrib1f:_glVertexAttrib1f,glVertexAttrib1fv:_glVertexAttrib1fv,glVertexAttrib2f:_glVertexAttrib2f,glVertexAttrib2fv:_glVertexAttrib2fv,glVertexAttrib3f:_glVertexAttrib3f,glVertexAttrib3fv:_glVertexAttrib3fv,glVertexAttrib4f:_glVertexAttrib4f,glVertexAttrib4fv:_glVertexAttrib4fv,glVertexAttribDivisor:_glVertexAttribDivisor,glVertexAttribDivisorANGLE:_glVertexAttribDivisorANGLE,glVertexAttribDivisorARB:_glVertexAttribDivisorARB,glVertexAttribDivisorEXT:_glVertexAttribDivisorEXT,glVertexAttribDivisorNV:_glVertexAttribDivisorNV,glVertexAttribPointer:_glVertexAttribPointer,glVertexPointer:_glVertexPointer,glViewport:_glViewport,glewGetErrorString:_glewGetErrorString,glewGetExtension:_glewGetExtension,glewGetString:_glewGetString,glewInit:_glewInit,glewIsSupported:_glewIsSupported,glutCreateWindow:_glutCreateWindow,glutDestroyWindow:_glutDestroyWindow,glutDisplayFunc:_glutDisplayFunc,glutFullScreen:_glutFullScreen,glutGet:_glutGet,glutGetModifiers:_glutGetModifiers,glutIdleFunc:_glutIdleFunc,glutInit:_glutInit,glutInitDisplayMode:_glutInitDisplayMode,glutInitWindowPosition:_glutInitWindowPosition,glutInitWindowSize:_glutInitWindowSize,glutKeyboardFunc:_glutKeyboardFunc,glutKeyboardUpFunc:_glutKeyboardUpFunc,glutMainLoop:_glutMainLoop,glutMotionFunc:_glutMotionFunc,glutMouseFunc:_glutMouseFunc,glutPassiveMotionFunc:_glutPassiveMotionFunc,glutPositionWindow:_glutPositionWindow,glutPostRedisplay:_glutPostRedisplay,glutReshapeFunc:_glutReshapeFunc,glutReshapeWindow:_glutReshapeWindow,glutSetCursor:_glutSetCursor,glutSpecialFunc:_glutSpecialFunc,glutSpecialUpFunc:_glutSpecialUpFunc,glutSwapBuffers:_glutSwapBuffers,glutTimerFunc:_glutTimerFunc,lineColor:_lineColor,lineRGBA:_lineRGBA,memory:wasmMemory,pixelRGBA:_pixelRGBA,proc_exit:_proc_exit,pthread_kill:_pthread_kill,random_get:_random_get,rectangleColor:_rectangleColor,rectangleRGBA:_rectangleRGBA,rotozoomSurface:_rotozoomSurface,setNetworkCallback:_setNetworkCallback,setprotoent:_setprotoent,stackAlloc:_stackAlloc,stackRestore:_stackRestore,stackSave:_stackSave,strptime:_strptime,strptime_l:_strptime_l,uuid_clear:_uuid_clear,uuid_compare:_uuid_compare,uuid_copy:_uuid_copy,uuid_generate:_uuid_generate,uuid_is_null:_uuid_is_null,uuid_parse:_uuid_parse,uuid_type:_uuid_type,uuid_unparse:_uuid_unparse,uuid_unparse_lower:_uuid_unparse_lower,uuid_unparse_upper:_uuid_unparse_upper,uuid_variant:_uuid_variant,zoomSurface:_zoomSurface},wasmExports=createWasm(),__emval_coro_resume=(e,t)=>(__emval_coro_resume=wasmExports._emval_coro_resume)(e,t),_main=Module._main=(e,t)=>(_main=Module._main=wasmExports.main)(e,t),_duckdb_web_fs_glob_add_path=Module._duckdb_web_fs_glob_add_path=e=>(_duckdb_web_fs_glob_add_path=Module._duckdb_web_fs_glob_add_path=wasmExports.duckdb_web_fs_glob_add_path)(e),_duckdb_web_clear_response=Module._duckdb_web_clear_response=()=>(_duckdb_web_clear_response=Module._duckdb_web_clear_response=wasmExports.duckdb_web_clear_response)(),_duckdb_web_fail_with=Module._duckdb_web_fail_with=e=>(_duckdb_web_fail_with=Module._duckdb_web_fail_with=wasmExports.duckdb_web_fail_with)(e),_duckdb_web_reset=Module._duckdb_web_reset=e=>(_duckdb_web_reset=Module._duckdb_web_reset=wasmExports.duckdb_web_reset)(e),_duckdb_web_connect=Module._duckdb_web_connect=()=>(_duckdb_web_connect=Module._duckdb_web_connect=wasmExports.duckdb_web_connect)(),_duckdb_web_disconnect=Module._duckdb_web_disconnect=e=>(_duckdb_web_disconnect=Module._duckdb_web_disconnect=wasmExports.duckdb_web_disconnect)(e),_duckdb_web_flush_files=Module._duckdb_web_flush_files=()=>(_duckdb_web_flush_files=Module._duckdb_web_flush_files=wasmExports.duckdb_web_flush_files)(),_duckdb_web_flush_file=Module._duckdb_web_flush_file=e=>(_duckdb_web_flush_file=Module._duckdb_web_flush_file=wasmExports.duckdb_web_flush_file)(e),_duckdb_web_open=Module._duckdb_web_open=(e,t)=>(_duckdb_web_open=Module._duckdb_web_open=wasmExports.duckdb_web_open)(e,t),_duckdb_web_get_global_file_info=Module._duckdb_web_get_global_file_info=(e,t)=>(_duckdb_web_get_global_file_info=Module._duckdb_web_get_global_file_info=wasmExports.duckdb_web_get_global_file_info)(e,t),_duckdb_web_collect_file_stats=Module._duckdb_web_collect_file_stats=(e,t,r)=>(_duckdb_web_collect_file_stats=Module._duckdb_web_collect_file_stats=wasmExports.duckdb_web_collect_file_stats)(e,t,r),_duckdb_web_export_file_stats=Module._duckdb_web_export_file_stats=(e,t)=>(_duckdb_web_export_file_stats=Module._duckdb_web_export_file_stats=wasmExports.duckdb_web_export_file_stats)(e,t),_duckdb_web_fs_drop_file=Module._duckdb_web_fs_drop_file=(e,t)=>(_duckdb_web_fs_drop_file=Module._duckdb_web_fs_drop_file=wasmExports.duckdb_web_fs_drop_file)(e,t),_duckdb_web_fs_drop_files=Module._duckdb_web_fs_drop_files=e=>(_duckdb_web_fs_drop_files=Module._duckdb_web_fs_drop_files=wasmExports.duckdb_web_fs_drop_files)(e),_duckdb_web_fs_glob_file_infos=Module._duckdb_web_fs_glob_file_infos=(e,t)=>(_duckdb_web_fs_glob_file_infos=Module._duckdb_web_fs_glob_file_infos=wasmExports.duckdb_web_fs_glob_file_infos)(e,t),_duckdb_web_fs_get_file_info_by_id=Module._duckdb_web_fs_get_file_info_by_id=(e,t,r)=>(_duckdb_web_fs_get_file_info_by_id=Module._duckdb_web_fs_get_file_info_by_id=wasmExports.duckdb_web_fs_get_file_info_by_id)(e,t,r),_duckdb_web_fs_get_file_info_by_name=Module._duckdb_web_fs_get_file_info_by_name=(e,t,r)=>(_duckdb_web_fs_get_file_info_by_name=Module._duckdb_web_fs_get_file_info_by_name=wasmExports.duckdb_web_fs_get_file_info_by_name)(e,t,r),_duckdb_web_fs_register_file_url=Module._duckdb_web_fs_register_file_url=(e,t,r,n,i)=>(_duckdb_web_fs_register_file_url=Module._duckdb_web_fs_register_file_url=wasmExports.duckdb_web_fs_register_file_url)(e,t,r,n,i),_duckdb_web_fs_register_file_buffer=Module._duckdb_web_fs_register_file_buffer=(e,t,r,n)=>(_duckdb_web_fs_register_file_buffer=Module._duckdb_web_fs_register_file_buffer=wasmExports.duckdb_web_fs_register_file_buffer)(e,t,r,n),_duckdb_web_copy_file_to_buffer=Module._duckdb_web_copy_file_to_buffer=(e,t)=>(_duckdb_web_copy_file_to_buffer=Module._duckdb_web_copy_file_to_buffer=wasmExports.duckdb_web_copy_file_to_buffer)(e,t),_duckdb_web_copy_file_to_path=Module._duckdb_web_copy_file_to_path=(e,t,r)=>(_duckdb_web_copy_file_to_path=Module._duckdb_web_copy_file_to_path=wasmExports.duckdb_web_copy_file_to_path)(e,t,r),_duckdb_web_get_version=Module._duckdb_web_get_version=e=>(_duckdb_web_get_version=Module._duckdb_web_get_version=wasmExports.duckdb_web_get_version)(e),_duckdb_web_get_feature_flags=Module._duckdb_web_get_feature_flags=()=>(_duckdb_web_get_feature_flags=Module._duckdb_web_get_feature_flags=wasmExports.duckdb_web_get_feature_flags)(),_duckdb_web_tokenize=Module._duckdb_web_tokenize=(e,t)=>(_duckdb_web_tokenize=Module._duckdb_web_tokenize=wasmExports.duckdb_web_tokenize)(e,t),_duckdb_web_tokenize_buffer=Module._duckdb_web_tokenize_buffer=(e,t,r)=>(_duckdb_web_tokenize_buffer=Module._duckdb_web_tokenize_buffer=wasmExports.duckdb_web_tokenize_buffer)(e,t,r),_duckdb_web_udf_scalar_create=Module._duckdb_web_udf_scalar_create=(e,t,r)=>(_duckdb_web_udf_scalar_create=Module._duckdb_web_udf_scalar_create=wasmExports.duckdb_web_udf_scalar_create)(e,t,r),_duckdb_web_prepared_create=Module._duckdb_web_prepared_create=(e,t,r)=>(_duckdb_web_prepared_create=Module._duckdb_web_prepared_create=wasmExports.duckdb_web_prepared_create)(e,t,r),_duckdb_web_prepared_create_buffer=Module._duckdb_web_prepared_create_buffer=(e,t,r,n)=>(_duckdb_web_prepared_create_buffer=Module._duckdb_web_prepared_create_buffer=wasmExports.duckdb_web_prepared_create_buffer)(e,t,r,n),_duckdb_web_prepared_close=Module._duckdb_web_prepared_close=(e,t,r)=>(_duckdb_web_prepared_close=Module._duckdb_web_prepared_close=wasmExports.duckdb_web_prepared_close)(e,t,r),_duckdb_web_prepared_run=Module._duckdb_web_prepared_run=(e,t,r,n)=>(_duckdb_web_prepared_run=Module._duckdb_web_prepared_run=wasmExports.duckdb_web_prepared_run)(e,t,r,n),_duckdb_web_prepared_send=Module._duckdb_web_prepared_send=(e,t,r,n)=>(_duckdb_web_prepared_send=Module._duckdb_web_prepared_send=wasmExports.duckdb_web_prepared_send)(e,t,r,n),_duckdb_web_query_run=Module._duckdb_web_query_run=(e,t,r)=>(_duckdb_web_query_run=Module._duckdb_web_query_run=wasmExports.duckdb_web_query_run)(e,t,r),_duckdb_web_query_run_buffer=Module._duckdb_web_query_run_buffer=(e,t,r,n)=>(_duckdb_web_query_run_buffer=Module._duckdb_web_query_run_buffer=wasmExports.duckdb_web_query_run_buffer)(e,t,r,n),_duckdb_web_pending_query_start=Module._duckdb_web_pending_query_start=(e,t,r,n)=>(_duckdb_web_pending_query_start=Module._duckdb_web_pending_query_start=wasmExports.duckdb_web_pending_query_start)(e,t,r,n),_duckdb_web_pending_query_start_buffer=Module._duckdb_web_pending_query_start_buffer=(e,t,r,n,i)=>(_duckdb_web_pending_query_start_buffer=Module._duckdb_web_pending_query_start_buffer=wasmExports.duckdb_web_pending_query_start_buffer)(e,t,r,n,i),_duckdb_web_pending_query_poll=Module._duckdb_web_pending_query_poll=(e,t,r)=>(_duckdb_web_pending_query_poll=Module._duckdb_web_pending_query_poll=wasmExports.duckdb_web_pending_query_poll)(e,t,r),_duckdb_web_pending_query_cancel=Module._duckdb_web_pending_query_cancel=(e,t)=>(_duckdb_web_pending_query_cancel=Module._duckdb_web_pending_query_cancel=wasmExports.duckdb_web_pending_query_cancel)(e,t),_duckdb_web_query_fetch_results=Module._duckdb_web_query_fetch_results=(e,t)=>(_duckdb_web_query_fetch_results=Module._duckdb_web_query_fetch_results=wasmExports.duckdb_web_query_fetch_results)(e,t),_duckdb_web_get_tablenames=Module._duckdb_web_get_tablenames=(e,t,r)=>(_duckdb_web_get_tablenames=Module._duckdb_web_get_tablenames=wasmExports.duckdb_web_get_tablenames)(e,t,r),_duckdb_web_get_tablenames_buffer=Module._duckdb_web_get_tablenames_buffer=(e,t,r,n)=>(_duckdb_web_get_tablenames_buffer=Module._duckdb_web_get_tablenames_buffer=wasmExports.duckdb_web_get_tablenames_buffer)(e,t,r,n),_duckdb_web_insert_arrow_from_ipc_stream=Module._duckdb_web_insert_arrow_from_ipc_stream=(e,t,r,n,i)=>(_duckdb_web_insert_arrow_from_ipc_stream=Module._duckdb_web_insert_arrow_from_ipc_stream=wasmExports.duckdb_web_insert_arrow_from_ipc_stream)(e,t,r,n,i),_duckdb_web_insert_csv_from_path=Module._duckdb_web_insert_csv_from_path=(e,t,r,n)=>(_duckdb_web_insert_csv_from_path=Module._duckdb_web_insert_csv_from_path=wasmExports.duckdb_web_insert_csv_from_path)(e,t,r,n),_duckdb_web_insert_json_from_path=Module._duckdb_web_insert_json_from_path=(e,t,r,n)=>(_duckdb_web_insert_json_from_path=Module._duckdb_web_insert_json_from_path=wasmExports.duckdb_web_insert_json_from_path)(e,t,r,n),___dl_seterr=(e,t)=>(___dl_seterr=wasmExports.__dl_seterr)(e,t),__emscripten_timeout=(e,t)=>(__emscripten_timeout=wasmExports._emscripten_timeout)(e,t),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_emscripten_builtin_memalign=(e,t)=>(_emscripten_builtin_memalign=wasmExports.emscripten_builtin_memalign)(e,t),__emscripten_tempret_set=e=>(__emscripten_tempret_set=wasmExports._emscripten_tempret_set)(e),__emscripten_tempret_get=()=>(__emscripten_tempret_get=wasmExports._emscripten_tempret_get)(),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),calledRun;function applySignatureConversions(e){var t,r=e=>t=>e(t)>>>0,n=e=>()=>e()>>>0,i=e=>(t,r)=>e(t,r)>>>0;return(e=Object.assign({},e)).__getTypeName=r(e.__getTypeName),e.pthread_self=n(e.pthread_self),e.memcpy=(t=e.memcpy,(e,r,n)=>t(e,r,n)>>>0),e.malloc=r(e.malloc),e.calloc=i(e.calloc),e.__errno_location=n(e.__errno_location),e.strerror=(e=>t=>e(t)>>>0)(e.strerror),e.emscripten_builtin_malloc=r(e.emscripten_builtin_malloc),e.emscripten_stack_get_base=n(e.emscripten_stack_get_base),e.emscripten_stack_get_end=n(e.emscripten_stack_get_end),e.emscripten_builtin_memalign=i(e.emscripten_builtin_memalign),e.emscripten_stack_get_current=n(e.emscripten_stack_get_current),e.emscripten_main_runtime_thread_id=n(e.emscripten_main_runtime_thread_id),e.sbrk=(e=>t=>e(t)>>>0)(e.sbrk),e.memalign=i(e.memalign),e.emscripten_builtin_calloc=i(e.emscripten_builtin_calloc),e._emscripten_stack_alloc=r(e._emscripten_stack_alloc),e.__cxa_get_exception_ptr=r(e.__cxa_get_exception_ptr),e}function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc(4*(r+1)),i=n;e.forEach((e=>{HEAPU32[i>>>2>>>0]=stringToUTF8OnStack(e),i+=4})),HEAPU32[i>>>2>>>0]=0;try{var s=t(r,n);return exitJS(s,!0),s}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){var t;calledRun||(calledRun=!0,Module.calledRun=!0,!ABORT&&(initRuntime(),preMain(),readyPromiseResolve(Module),null==(t=Module.onRuntimeInitialized)||t.call(Module),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0)||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>Module.setStatus("")),1),t()}),1)):t())}if(Module.stackSave=stackSave,Module.stackRestore=stackRestore,Module.stackAlloc=stackAlloc,Module.ccall=ccall,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;return Module.noInitialRun&&(shouldRunNow=!1),run(),moduleRtn=readyPromise,moduleRtn}})();"object"==typeof exports&&"object"==typeof module?module.exports=DuckDB:"function"==typeof define&&define.amd&&define([],(()=>DuckDB))})),Uc=pr((()=>{})),Oc=pr((()=>{})),Rc=pr(((e,t)=>{!function(){var e="input is invalid type",r="object"==typeof window,n=r?window:{};n.JS_SHA256_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self,s=!n.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;s?n=global:i&&(n=self);var a=!n.JS_SHA256_NO_COMMON_JS&&"object"==typeof t&&t.exports,o="function"==typeof define&&define.amd,l=!n.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),u=[-2147483648,8388608,32768,128],_=[24,16,8,0],d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=["hex","array","digest","arrayBuffer"],f=[];(n.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),l&&(n.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var m=function(e,t){return function(r){return new y(t,!0).update(r)[e]()}},g=function(e){var t=m("hex",e);s&&(t=h(t,e)),t.create=function(){return new y(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r>>6,o[u++]=128|63&a):a<55296||a>=57344?(o[u++]=224|a>>>12,o[u++]=128|a>>>6&63,o[u++]=128|63&a):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++i)),o[u++]=240|a>>>18,o[u++]=128|a>>>12&63,o[u++]=128|a>>>6&63,o[u++]=128|63&a);t=o}else{if("object"!==s)throw new Error(e);if(null===t)throw new Error(e);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(e)}t.length>64&&(t=new y(r,!0).update(t).array());var _=[],d=[];for(i=0;i<64;++i){var p=t[i]||0;_[i]=92^p,d[i]=54^p}y.call(this,r,n),this.update(d),this.oKeyPad=_,this.inner=!0,this.sharedMemory=n}y.prototype.update=function(t){if(!this.finalized){var r,n=typeof t;if("string"!==n){if("object"!==n)throw new Error(e);if(null===t)throw new Error(e);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var i,s,a=0,o=t.length,c=this.blocks;a>>2]|=t[a]<<_[3&s++];else for(s=this.start;a>>2]|=i<<_[3&s++]:i<2048?(c[s>>>2]|=(192|i>>>6)<<_[3&s++],c[s>>>2]|=(128|63&i)<<_[3&s++]):i<55296||i>=57344?(c[s>>>2]|=(224|i>>>12)<<_[3&s++],c[s>>>2]|=(128|i>>>6&63)<<_[3&s++],c[s>>>2]|=(128|63&i)<<_[3&s++]):(i=65536+((1023&i)<<10|1023&t.charCodeAt(++a)),c[s>>>2]|=(240|i>>>18)<<_[3&s++],c[s>>>2]|=(128|i>>>12&63)<<_[3&s++],c[s>>>2]|=(128|i>>>6&63)<<_[3&s++],c[s>>>2]|=(128|63&i)<<_[3&s++]);this.lastByteIndex=s,this.bytes+=s-this.start,s>=64?(this.block=c[16],this.start=s-64,this.hash(),this.hashed=!0):this.start=s}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},y.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=u[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},y.prototype.hash=function(){var e,t,r,n,i,s,a,o,l,c=this.h0,u=this.h1,_=this.h2,p=this.h3,f=this.h4,m=this.h5,g=this.h6,h=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((i=v[e-15])>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,r=((i=v[e-2])>>>17|i<<15)^(i>>>19|i<<13)^i>>>10,v[e]=v[e-16]+t+v[e-7]+r<<0;for(l=u&_,e=0;e<64;e+=4)this.first?(this.is224?(s=300032,h=(i=v[0]-1413257819)-150054599<<0,p=i+24177077<<0):(s=704751109,h=(i=v[0]-210244248)-1521486534<<0,p=i+143694565<<0),this.first=!1):(t=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),n=(s=c&u)^c&_^l,h=p+(i=h+(r=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&m^~f&g)+d[e]+v[e])<<0,p=i+(t+n)<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),n=(a=p&c)^p&u^s,g=_+(i=g+(r=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&f^~h&m)+d[e+1]+v[e+1])<<0,t=((_=i+(t+n)<<0)>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10),n=(o=_&p)^_&c^a,m=u+(i=m+(r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&h^~g&f)+d[e+2]+v[e+2])<<0,t=((u=i+(t+n)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),n=(l=u&_)^u&p^o,f=c+(i=f+(r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&g^~m&h)+d[e+3]+v[e+3])<<0,c=i+(t+n)<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+c<<0,this.h1=this.h1+u<<0,this.h2=this.h2+_<<0,this.h3=this.h3+p<<0,this.h4=this.h4+f<<0,this.h5=this.h5+m<<0,this.h6=this.h6+g<<0,this.h7=this.h7+h<<0},y.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4,s=this.h5,a=this.h6,o=this.h7,l=c[e>>>28&15]+c[e>>>24&15]+c[e>>>20&15]+c[e>>>16&15]+c[e>>>12&15]+c[e>>>8&15]+c[e>>>4&15]+c[15&e]+c[t>>>28&15]+c[t>>>24&15]+c[t>>>20&15]+c[t>>>16&15]+c[t>>>12&15]+c[t>>>8&15]+c[t>>>4&15]+c[15&t]+c[r>>>28&15]+c[r>>>24&15]+c[r>>>20&15]+c[r>>>16&15]+c[r>>>12&15]+c[r>>>8&15]+c[r>>>4&15]+c[15&r]+c[n>>>28&15]+c[n>>>24&15]+c[n>>>20&15]+c[n>>>16&15]+c[n>>>12&15]+c[n>>>8&15]+c[n>>>4&15]+c[15&n]+c[i>>>28&15]+c[i>>>24&15]+c[i>>>20&15]+c[i>>>16&15]+c[i>>>12&15]+c[i>>>8&15]+c[i>>>4&15]+c[15&i]+c[s>>>28&15]+c[s>>>24&15]+c[s>>>20&15]+c[s>>>16&15]+c[s>>>12&15]+c[s>>>8&15]+c[s>>>4&15]+c[15&s]+c[a>>>28&15]+c[a>>>24&15]+c[a>>>20&15]+c[a>>>16&15]+c[a>>>12&15]+c[a>>>8&15]+c[a>>>4&15]+c[15&a];return this.is224||(l+=c[o>>>28&15]+c[o>>>24&15]+c[o>>>20&15]+c[o>>>16&15]+c[o>>>12&15]+c[o>>>8&15]+c[o>>>4&15]+c[15&o]),l},y.prototype.toString=y.prototype.hex,y.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,n=this.h3,i=this.h4,s=this.h5,a=this.h6,o=this.h7,l=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,r>>>24&255,r>>>16&255,r>>>8&255,255&r,n>>>24&255,n>>>16&255,n>>>8&255,255&n,i>>>24&255,i>>>16&255,i>>>8&255,255&i,s>>>24&255,s>>>16&255,s>>>8&255,255&s,a>>>24&255,a>>>16&255,a>>>8&255,255&a];return this.is224||l.push(o>>>24&255,o>>>16&255,o>>>8&255,255&o),l},y.prototype.array=y.prototype.digest,y.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},S.prototype=new y,S.prototype.finalize=function(){if(y.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();y.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),y.prototype.finalize.call(this)}};var E=g();E.sha256=E,E.sha224=g(!0),E.sha256.hmac=b(),E.sha224.hmac=b(!0),a?t.exports=E:(n.sha256=E.sha256,n.sha224=E.sha224,o&&define((function(){return E})))}()})),Ld={};function Uo(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e){return this instanceof ee?(this.v=e,this):new ee(e)}function Ye(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),s=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise((function(r,n){s.push([e,t,r,n])>1||o(e,t)}))})}function o(e,t){try{!function(e){e.value instanceof ee?Promise.resolve(e.value.v).then(l,c):u(s[0][2],e)}(i[e](t))}catch(e){u(s[0][3],e)}}function l(e){o("next",e)}function c(e){o("throw",e)}function u(e,t){e(t),s.shift(),s.length&&o(s[0][0],s[0][1])}}function tn(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:ee(e[n](t)),done:!1}:i?i(t):t}:i}}function _t(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof Go?Go(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,i,(t=e[r](t)).done,t.value)}))}}}mr(Ld,{registerWorker:()=>Vc});var Aa={};mr(Aa,{compareArrayLike:()=>La,joinUint8Arrays:()=>Je,memcpy:()=>kn,rebaseValueOffsets:()=>Oi,toArrayBufferView:()=>re,toArrayBufferViewAsyncIterator:()=>pt,toArrayBufferViewIterator:()=>It,toBigInt64Array:()=>Ui,toBigUint64Array:()=>au,toFloat32Array:()=>ou,toFloat32ArrayAsyncIterator:()=>wu,toFloat32ArrayIterator:()=>mu,toFloat64Array:()=>lu,toFloat64ArrayAsyncIterator:()=>Lu,toFloat64ArrayIterator:()=>gu,toInt16Array:()=>nu,toInt16ArrayAsyncIterator:()=>bu,toInt16ArrayIterator:()=>_u,toInt32Array:()=>kr,toInt32ArrayAsyncIterator:()=>yu,toInt32ArrayIterator:()=>du,toInt8Array:()=>ru,toInt8ArrayAsyncIterator:()=>vu,toInt8ArrayIterator:()=>uu,toUint16Array:()=>iu,toUint16ArrayAsyncIterator:()=>Su,toUint16ArrayIterator:()=>fu,toUint32Array:()=>su,toUint32ArrayAsyncIterator:()=>Eu,toUint32ArrayIterator:()=>pu,toUint8Array:()=>j,toUint8ArrayAsyncIterator:()=>wa,toUint8ArrayIterator:()=>Ea,toUint8ClampedArray:()=>cu,toUint8ClampedArrayAsyncIterator:()=>Au,toUint8ClampedArrayIterator:()=>hu});var Kc=new TextDecoder("utf-8"),Cn=e=>Kc.decode(e),Zc=new TextEncoder,Pt=e=>Zc.encode(e),eu=e=>"number"==typeof e,Oo=e=>"boolean"==typeof e,Pe=e=>"function"==typeof e,He=e=>null!=e&&Object(e)===e,dt=e=>He(e)&&Pe(e.then),ft=e=>He(e)&&Pe(e[Symbol.iterator]),nt=e=>He(e)&&Pe(e[Symbol.asyncIterator]),Ii=e=>He(e)&&He(e.schema),Ci=e=>He(e)&&"done"in e&&"value"in e,Mi=e=>He(e)&&Pe(e.stat)&&eu(e.fd),ki=e=>He(e)&&Mn(e.body),Bi=e=>"_getDOMStream"in e&&"_getNodeStream"in e,Ro=e=>He(e)&&Pe(e.abort)&&Pe(e.getWriter)&&!Bi(e),Mn=e=>He(e)&&Pe(e.cancel)&&Pe(e.getReader)&&!Bi(e),Ho=e=>He(e)&&Pe(e.end)&&Pe(e.write)&&Oo(e.writable)&&!Bi(e),Gi=e=>He(e)&&Pe(e.read)&&Pe(e.pipe)&&Oo(e.readable)&&!Bi(e),No=e=>He(e)&&Pe(e.clear)&&Pe(e.bytes)&&Pe(e.position)&&Pe(e.setPosition)&&Pe(e.capacity)&&Pe(e.getBufferIdentifier)&&Pe(e.createLong),Sa=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function tu(e){let t,r,n,i,s=e[0]?[e[0]]:[];for(let a,o,l=0,c=0,u=e.length;++le+t.byteLength),0),o=0,l=-1,c=Math.min(t||Number.POSITIVE_INFINITY,a);for(let e=s.length;++lre(Int8Array,e),nu=e=>re(Int16Array,e),kr=e=>re(Int32Array,e),Ui=e=>re(BigInt64Array,e),j=e=>re(Uint8Array,e),iu=e=>re(Uint16Array,e),su=e=>re(Uint32Array,e),au=e=>re(BigUint64Array,e),ou=e=>re(Float32Array,e),lu=e=>re(Float64Array,e),cu=e=>re(Uint8ClampedArray,e),ya=e=>(e.next(),e);function*It(e,t){let r=function*(e){yield e},n="string"==typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Sa?r(t):ft(t)?t:r(t);return yield*Mr(ya(function*(t){let r=null;do{r=t.next(yield re(e,r))}while(!r.done)}(n[Symbol.iterator]()))),new e}var uu=e=>It(Int8Array,e),_u=e=>It(Int16Array,e),du=e=>It(Int32Array,e),Ea=e=>It(Uint8Array,e),fu=e=>It(Uint16Array,e),pu=e=>It(Uint32Array,e),mu=e=>It(Float32Array,e),gu=e=>It(Float64Array,e),hu=e=>It(Uint8ClampedArray,e);function pt(e,t){return Ye(this,arguments,(function*(){if(dt(t))return yield ee(yield ee(yield*Mr(tn(_t(pt(e,yield ee(t)))))));let r=function(e){return Ye(this,arguments,(function*(){yield yield ee(yield ee(e))}))},n="string"==typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Sa?r(t):ft(t)?function(e){return Ye(this,arguments,(function*(){yield ee(yield*Mr(tn(_t(ya(function*(e){let t=null;do{t=e.next(yield null==t?void 0:t.value)}while(!t.done)}(e[Symbol.iterator]()))))))}))}(t):nt(t)?t:r(t);return yield ee(yield*Mr(tn(_t(ya(function(t){return Ye(this,arguments,(function*(){let r=null;do{r=yield ee(t.next(yield yield ee(re(e,r))))}while(!r.done)}))}(n[Symbol.asyncIterator]())))))),yield ee(new e)}))}var vu=e=>pt(Int8Array,e),bu=e=>pt(Int16Array,e),yu=e=>pt(Int32Array,e),wa=e=>pt(Uint8Array,e),Su=e=>pt(Uint16Array,e),Eu=e=>pt(Uint32Array,e),wu=e=>pt(Float32Array,e),Lu=e=>pt(Float64Array,e),Au=e=>pt(Uint8ClampedArray,e);function Oi(e,t,r){if(0!==e)for(let n=-1,i=(r=r.slice(0,t)).length;++n0)do{if(e[r]!==t[r])return!1}while(++rRi(Du(e)),fromAsyncIterable:e=>Ri(Fu(e)),fromDOMStream:e=>Ri(xu(e)),fromNodeStream:e=>Ri(Tu(e)),toDOMStream(e,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(e,t){throw new Error('"toNodeStream" not available in this environment')}},Ri=e=>(e.next(),e);function*Du(e){let t,r,n,i,s=!1,a=[],o=0;({cmd:n,size:i}=(yield null)||{cmd:"read",size:0});let l=Ea(e)[Symbol.iterator]();try{do{if(({done:t,value:r}=Number.isNaN(i-o)?l.next():l.next(i-o)),!t&&r.byteLength>0&&(a.push(r),o+=r.byteLength),t||i<=o)do{({cmd:n,size:i}=yield"peek"===n?Je(a,i)[0]:([r,a,o]=Je(a,i),r))}while(i0&&(a.push(r),o+=r.byteLength),t||i<=o)do{({cmd:n,size:i}=yield yield ee("peek"===n?Je(a,i)[0]:([r,a,o]=Je(a,i),r)))}while(i0&&(a.push(j(t)),o+=t.byteLength),i||n<=o)do{({cmd:r,size:n}=yield yield ee("peek"===r?Je(a,n)[0]:([t,a,o]=Je(a,n),t)))}while(n{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return B(this,void 0,void 0,(function*(){let{reader:t,source:r}=this;t&&(yield t.cancel(e).catch((()=>{}))),r&&r.locked&&this.releaseLock()}))}read(e){return B(this,void 0,void 0,(function*(){if(0===e)return{done:null==this.reader,value:new Uint8Array(0)};let t=yield this.reader.read();return!t.done&&(t.value=j(t)),t}))}},Da=(e,t)=>{let r,n=e=>r([t,e]);return[t,n,new Promise((i=>(r=i)&&e.once(t,n)))]},ue,ge,pe,Ae,U,Ie;function Tu(e){return Ye(this,arguments,(function*(){let t,r,n,i=[],s="error",a=!1,o=null,l=0,c=[];if(({cmd:t,size:r}=(yield yield ee(null))||{cmd:"read",size:0}),e.isTTY)return yield yield ee(new Uint8Array(0)),yield ee(null);try{i[0]=Da(e,"end"),i[1]=Da(e,"error");do{if(i[2]=Da(e,"readable"),[s,o]=yield ee(Promise.race(i.map((e=>e[2])))),"error"===s)break;if((a="end"===s)||(Number.isFinite(r-l)?(n=j(e.read(r-l)),n.byteLength0&&(c.push(n),l+=n.byteLength)),a||r<=l)do{({cmd:t,size:r}=yield yield ee("peek"===t?Je(c,r)[0]:([n,c,l]=Je(c,r),n)))}while(r{for(let[t,r]of u)e.off(t,r);try{let t=e.destroy;t&&t.call(e,_),_=void 0}catch(e){_=e||_}finally{null!=_?r(_):t()}}))))}var u,_;return yield ee(null)}))}!function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"}(ue||(ue={})),function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(ge||(ge={})),function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}(pe||(pe={})),function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(Ae||(Ae={})),function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(U||(U={})),function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(Ie||(Ie={}));var Ct=new Int32Array(2),Hi=new Float32Array(Ct.buffer),Ni=new Float64Array(Ct.buffer),rn=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],Bn;!function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"}(Bn||(Bn={}));var Ke=class e{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new e(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){Hi[0]=t,this.writeInt32(e,Ct[0])}writeFloat64(e,t){Ni[0]=t,this.writeInt32(e,Ct[rn?0:1]),this.writeInt32(e+4,Ct[rn?1:0])}getBufferIdentifier(){if(this.bytes_.lengththis.minalign&&(this.minalign=t);let n=1+~(this.bb.capacity()-this.space+r)&t-1;for(;this.space=0&&0==this.vtable[t];t--);let r=t+1;for(;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);let n=2*(r+2);this.addInt16(n);let i=0,s=this.space;e:for(t=0;t=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+n),this.addOffset(e),n&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){let r=this.bb.capacity()-e,n=r-this.bb.readInt32(r);if(!(t=0;r--)e.addInt32(t[r]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(t,r,n){return e.startUnion(t),e.addMode(t,r),e.addTypeIds(t,n),e.endUnion(t)}},$n=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(t){return e.startUtf8(t),e.endUtf8(t)}},he;!function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.FloatingPoint=3]="FloatingPoint",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct_=13]="Struct_",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.LargeList=21]="LargeList",e[e.RunEndEncoded=22]="RunEndEncoded"}(he||(he={}));var Re=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):he.NONE}type(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){let t=this.bb.__offset(this.bb_pos,12);return t?(e||new Mt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(t,r){let n=this.bb.__offset(this.bb_pos,14);return n?(r||new e).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*t),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,16);return r?(t||new Ce).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,he.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}},ze=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):gr.Little}fields(e,t){let r=this.bb.__offset(this.bb_pos,6);return r?(t||new Re).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new Ce).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,gr.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addInt64(t[r]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(t,r,n,i,s){return e.startSchema(t),e.addEndianness(t,r),e.addFields(t,n),e.addCustomMetadata(t,i),e.addFeatures(t,s),e.endSchema(t)}},ie,v,st;!function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"}(ie||(ie={})),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth",e[e.DurationSecond=-27]="DurationSecond",e[e.DurationMillisecond=-28]="DurationMillisecond",e[e.DurationMicrosecond=-29]="DurationMicrosecond",e[e.DurationNanosecond=-30]="DurationNanosecond"}(v||(v={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(st||(st={}));var qa={};mr(qa,{clampRange:()=>Yn,createElementComparator:()=>Fr,wrapIndex:()=>Gr});var xa={};function vt(e){if(null===e)return"null";if(void 0===e)return"undefined";switch(typeof e){case"number":case"bigint":return"".concat(e);case"string":return'"'.concat(e,'"')}return"function"==typeof e[Symbol.toPrimitive]?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?"[".concat([...e].map((e=>vt(e))),"]"):"[".concat(e,"]"):ArrayBuffer.isView(e)?"[".concat(e,"]"):JSON.stringify(e,((e,t)=>"bigint"==typeof t?"".concat(t):t))}mr(xa,{valueToString:()=>vt});var Ca={};function ae(e){if("bigint"==typeof e&&(eNumber.MAX_SAFE_INTEGER))throw new TypeError("".concat(e," is not safe to convert to a number."));return Number(e)}function Ta(e,t){return ae(e/t)+ae(e%t)/ae(t)}mr(Ca,{BN:()=>Xn,bigNumToBigInt:()=>Vo,bigNumToNumber:()=>Ia,bigNumToString:()=>ln,isArrowBigNumSymbol:()=>Wo});var Wo=Symbol.for("isArrowBigNum");function bt(e,...t){return 0===t.length?Object.setPrototypeOf(re(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}function an(...e){return bt.apply(this,e)}function on(...e){return bt.apply(this,e)}function qn(...e){return bt.apply(this,e)}bt.prototype[Wo]=!0,bt.prototype.toJSON=function(){return'"'.concat(ln(this),'"')},bt.prototype.valueOf=function(e){return Ia(this,e)},bt.prototype.toString=function(){return ln(this)},bt.prototype[Symbol.toPrimitive]=function(e="default"){switch(e){case"number":return Ia(this);case"string":return ln(this);case"default":return Vo(this)}return ln(this)},Object.setPrototypeOf(an.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(on.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(qn.prototype,Object.create(Uint32Array.prototype)),Object.assign(an.prototype,bt.prototype,{constructor:an,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(on.prototype,bt.prototype,{constructor:on,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(qn.prototype,bt.prototype,{constructor:qn,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});var Pu=BigInt(4294967296)*BigInt(4294967296),Iu=Pu-BigInt(1);function Ia(e,t){let{buffer:r,byteOffset:n,byteLength:i,signed:s}=e,a=new BigUint64Array(r,n,i/8),o=s&&a.at(-1)&BigInt(1)<=0)return Pa(e);t=t.slice();let r=1;for(let e=0;e(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]="DataType"))(G.prototype);var Ne=class extends G{constructor(){super(v.Null)}toString(){return"Null"}};jo=Symbol.toStringTag,Ne[jo]=(e=>e[Symbol.toStringTag]="Null")(Ne.prototype);var Me=class extends G{constructor(e,t){super(v.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}toString(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}};$o=Symbol.toStringTag,Me[$o]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(Me.prototype);var zi=class extends Me{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},ji=class extends Me{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},Bt=class extends Me{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},$i=class extends Me{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},qi=class extends Me{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Xi=class extends Me{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Qi=class extends Me{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Yi=class extends Me{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(zi.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(ji.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(Bt.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty($i.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(qi.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(Xi.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Qi.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Yi.prototype,"ArrayType",{value:BigUint64Array});var at=class extends G{constructor(e){super(v.Float),this.precision=e}get ArrayType(){switch(this.precision){case pe.HALF:return Uint16Array;case pe.SINGLE:return Float32Array;case pe.DOUBLE:return Float64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}toString(){return"Float".concat(this.precision<<5||16)}};qo=Symbol.toStringTag,at[qo]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(at.prototype);var Ji=class extends at{constructor(){super(pe.HALF)}},Ki=class extends at{constructor(){super(pe.SINGLE)}},Zi=class extends at{constructor(){super(pe.DOUBLE)}};Object.defineProperty(Ji.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Ki.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(Zi.prototype,"ArrayType",{value:Float64Array});var zt=class extends G{constructor(){super(v.Binary)}toString(){return"Binary"}};Xo=Symbol.toStringTag,zt[Xo]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(zt.prototype);var jt=class extends G{constructor(){super(v.LargeBinary)}toString(){return"LargeBinary"}};Qo=Symbol.toStringTag,jt[Qo]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeBinary"))(jt.prototype);var $t=class extends G{constructor(){super(v.Utf8)}toString(){return"Utf8"}};Yo=Symbol.toStringTag,$t[Yo]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))($t.prototype);var qt=class extends G{constructor(){super(v.LargeUtf8)}toString(){return"LargeUtf8"}};Jo=Symbol.toStringTag,qt[Jo]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeUtf8"))(qt.prototype);var Xt=class extends G{constructor(){super(v.Bool)}toString(){return"Bool"}};Ko=Symbol.toStringTag,Xt[Ko]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(Xt.prototype);var Qt=class extends G{constructor(e,t,r=128){super(v.Decimal),this.scale=e,this.precision=t,this.bitWidth=r}toString(){return"Decimal[".concat(this.precision,"e").concat(this.scale>0?"+":"").concat(this.scale,"]")}};Zo=Symbol.toStringTag,Qt[Zo]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(Qt.prototype);var Yt=class extends G{constructor(e){super(v.Date),this.unit=e}toString(){return"Date".concat(32*(this.unit+1),"<").concat(Ae[this.unit],">")}get ArrayType(){return this.unit===Ae.DAY?Int32Array:BigInt64Array}};el=Symbol.toStringTag,Yt[el]=(e=>(e.unit=null,e[Symbol.toStringTag]="Date"))(Yt.prototype);var Jt=class extends G{constructor(e,t){super(v.Time),this.unit=e,this.bitWidth=t}toString(){return"Time".concat(this.bitWidth,"<").concat(U[this.unit],">")}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}};tl=Symbol.toStringTag,Jt[tl]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(Jt.prototype);var Kt=class extends G{constructor(e,t){super(v.Timestamp),this.unit=e,this.timezone=t}toString(){return"Timestamp<".concat(U[this.unit]).concat(this.timezone?", ".concat(this.timezone):"",">")}};rl=Symbol.toStringTag,Kt[rl]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Timestamp"))(Kt.prototype);var Zt=class extends G{constructor(e){super(v.Interval),this.unit=e}toString(){return"Interval<".concat(Ie[this.unit],">")}};nl=Symbol.toStringTag,Zt[nl]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(Zt.prototype);var er=class extends G{constructor(e){super(v.Duration),this.unit=e}toString(){return"Duration<".concat(U[this.unit],">")}};il=Symbol.toStringTag,er[il]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Duration"))(er.prototype);var yt=class extends G{constructor(e){super(v.List),this.children=[e]}toString(){return"List<".concat(this.valueType,">")}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};sl=Symbol.toStringTag,yt[sl]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(yt.prototype);var ve=class extends G{constructor(e){super(v.Struct),this.children=e}toString(){return"Struct<{".concat(this.children.map((e=>"".concat(e.name,":").concat(e.type))).join(", "),"}>")}};al=Symbol.toStringTag,ve[al]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(ve.prototype);var St=class extends G{constructor(e,t,r){super(v.Union),this.mode=e,this.children=r,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce(((e,t,r)=>(e[t]=r)&&e||e),Object.create(null))}toString(){return"".concat(this[Symbol.toStringTag],"<").concat(this.children.map((e=>"".concat(e.type))).join(" | "),">")}};ol=Symbol.toStringTag,St[ol]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(St.prototype);var tr=class extends G{constructor(e){super(v.FixedSizeBinary),this.byteWidth=e}toString(){return"FixedSizeBinary[".concat(this.byteWidth,"]")}};ll=Symbol.toStringTag,tr[ll]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(tr.prototype);var Et=class extends G{constructor(e,t){super(v.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}};cl=Symbol.toStringTag,Et[cl]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(Et.prototype);var wt=class extends G{constructor(e,t=!1){var r,n,i;if(super(v.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",null!==(r=null==e?void 0:e.type)&&void 0!==r&&r.children)){let t=null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.children[0];t&&(t.name="key");let r=null===(i=null==e?void 0:e.type)||void 0===i?void 0:i.children[1];r&&(r.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return"Map<{".concat(this.children[0].type.children.map((e=>"".concat(e.name,":").concat(e.type))).join(", "),"}>")}};ul=Symbol.toStringTag,wt[ul]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(wt.prototype);var Cu=(e=>()=>++e)(-1),et=class extends G{constructor(e,t,r,n){super(v.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=n||!1,this.id=null==r?Cu():ae(r)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return"Dictionary<".concat(this.indices,", ").concat(this.dictionary,">")}};function tt(e){let t=e;switch(e.typeId){case v.Decimal:return e.bitWidth/32;case v.Interval:return 1+t.unit;case v.FixedSizeList:return t.listSize;case v.FixedSizeBinary:return t.byteWidth;default:return 1}}_l=Symbol.toStringTag,et[_l]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(et.prototype);var R=class{visitMany(e,...t){return e.map(((e,r)=>this.visit(e,...t.map((e=>e[r])))))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Mu(this,e,t)}getVisitFnByTypeId(e,t=!0){return cn(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function Mu(e,t,r=!0){return"number"==typeof t?cn(e,t,r):"string"==typeof t&&t in v?cn(e,v[t],r):t&&t instanceof G?cn(e,dl(t),r):null!=t&&t.type&&t.type instanceof G?cn(e,dl(t.type),r):cn(e,v.NONE,r)}function cn(e,t,r=!0){let n=null;switch(t){case v.Null:n=e.visitNull;break;case v.Bool:n=e.visitBool;break;case v.Int:n=e.visitInt;break;case v.Int8:n=e.visitInt8||e.visitInt;break;case v.Int16:n=e.visitInt16||e.visitInt;break;case v.Int32:n=e.visitInt32||e.visitInt;break;case v.Int64:n=e.visitInt64||e.visitInt;break;case v.Uint8:n=e.visitUint8||e.visitInt;break;case v.Uint16:n=e.visitUint16||e.visitInt;break;case v.Uint32:n=e.visitUint32||e.visitInt;break;case v.Uint64:n=e.visitUint64||e.visitInt;break;case v.Float:n=e.visitFloat;break;case v.Float16:n=e.visitFloat16||e.visitFloat;break;case v.Float32:n=e.visitFloat32||e.visitFloat;break;case v.Float64:n=e.visitFloat64||e.visitFloat;break;case v.Utf8:n=e.visitUtf8;break;case v.LargeUtf8:n=e.visitLargeUtf8;break;case v.Binary:n=e.visitBinary;break;case v.LargeBinary:n=e.visitLargeBinary;break;case v.FixedSizeBinary:n=e.visitFixedSizeBinary;break;case v.Date:n=e.visitDate;break;case v.DateDay:n=e.visitDateDay||e.visitDate;break;case v.DateMillisecond:n=e.visitDateMillisecond||e.visitDate;break;case v.Timestamp:n=e.visitTimestamp;break;case v.TimestampSecond:n=e.visitTimestampSecond||e.visitTimestamp;break;case v.TimestampMillisecond:n=e.visitTimestampMillisecond||e.visitTimestamp;break;case v.TimestampMicrosecond:n=e.visitTimestampMicrosecond||e.visitTimestamp;break;case v.TimestampNanosecond:n=e.visitTimestampNanosecond||e.visitTimestamp;break;case v.Time:n=e.visitTime;break;case v.TimeSecond:n=e.visitTimeSecond||e.visitTime;break;case v.TimeMillisecond:n=e.visitTimeMillisecond||e.visitTime;break;case v.TimeMicrosecond:n=e.visitTimeMicrosecond||e.visitTime;break;case v.TimeNanosecond:n=e.visitTimeNanosecond||e.visitTime;break;case v.Decimal:n=e.visitDecimal;break;case v.List:n=e.visitList;break;case v.Struct:n=e.visitStruct;break;case v.Union:n=e.visitUnion;break;case v.DenseUnion:n=e.visitDenseUnion||e.visitUnion;break;case v.SparseUnion:n=e.visitSparseUnion||e.visitUnion;break;case v.Dictionary:n=e.visitDictionary;break;case v.Interval:n=e.visitInterval;break;case v.IntervalDayTime:n=e.visitIntervalDayTime||e.visitInterval;break;case v.IntervalYearMonth:n=e.visitIntervalYearMonth||e.visitInterval;break;case v.Duration:n=e.visitDuration;break;case v.DurationSecond:n=e.visitDurationSecond||e.visitDuration;break;case v.DurationMillisecond:n=e.visitDurationMillisecond||e.visitDuration;break;case v.DurationMicrosecond:n=e.visitDurationMicrosecond||e.visitDuration;break;case v.DurationNanosecond:n=e.visitDurationNanosecond||e.visitDuration;break;case v.FixedSizeList:n=e.visitFixedSizeList;break;case v.Map:n=e.visitMap}if("function"==typeof n)return n;if(!r)return()=>null;throw new Error("Unrecognized type '".concat(v[t],"'"))}function dl(e){switch(e.typeId){case v.Null:return v.Null;case v.Int:{let{bitWidth:t,isSigned:r}=e;switch(t){case 8:return r?v.Int8:v.Uint8;case 16:return r?v.Int16:v.Uint16;case 32:return r?v.Int32:v.Uint32;case 64:return r?v.Int64:v.Uint64}return v.Int}case v.Float:switch(e.precision){case pe.HALF:return v.Float16;case pe.SINGLE:return v.Float32;case pe.DOUBLE:return v.Float64}return v.Float;case v.Binary:return v.Binary;case v.LargeBinary:return v.LargeBinary;case v.Utf8:return v.Utf8;case v.LargeUtf8:return v.LargeUtf8;case v.Bool:return v.Bool;case v.Decimal:return v.Decimal;case v.Time:switch(e.unit){case U.SECOND:return v.TimeSecond;case U.MILLISECOND:return v.TimeMillisecond;case U.MICROSECOND:return v.TimeMicrosecond;case U.NANOSECOND:return v.TimeNanosecond}return v.Time;case v.Timestamp:switch(e.unit){case U.SECOND:return v.TimestampSecond;case U.MILLISECOND:return v.TimestampMillisecond;case U.MICROSECOND:return v.TimestampMicrosecond;case U.NANOSECOND:return v.TimestampNanosecond}return v.Timestamp;case v.Date:switch(e.unit){case Ae.DAY:return v.DateDay;case Ae.MILLISECOND:return v.DateMillisecond}return v.Date;case v.Interval:switch(e.unit){case Ie.DAY_TIME:return v.IntervalDayTime;case Ie.YEAR_MONTH:return v.IntervalYearMonth}return v.Interval;case v.Duration:switch(e.unit){case U.SECOND:return v.DurationSecond;case U.MILLISECOND:return v.DurationMillisecond;case U.MICROSECOND:return v.DurationMicrosecond;case U.NANOSECOND:return v.DurationNanosecond}return v.Duration;case v.Map:return v.Map;case v.List:return v.List;case v.Struct:return v.Struct;case v.Union:switch(e.mode){case ge.Dense:return v.DenseUnion;case ge.Sparse:return v.SparseUnion}return v.Union;case v.FixedSizeBinary:return v.FixedSizeBinary;case v.FixedSizeList:return v.FixedSizeList;case v.Dictionary:return v.Dictionary}throw new Error("Unrecognized type '".concat(v[e.typeId],"'"))}R.prototype.visitInt8=null,R.prototype.visitInt16=null,R.prototype.visitInt32=null,R.prototype.visitInt64=null,R.prototype.visitUint8=null,R.prototype.visitUint16=null,R.prototype.visitUint32=null,R.prototype.visitUint64=null,R.prototype.visitFloat16=null,R.prototype.visitFloat32=null,R.prototype.visitFloat64=null,R.prototype.visitDateDay=null,R.prototype.visitDateMillisecond=null,R.prototype.visitTimestampSecond=null,R.prototype.visitTimestampMillisecond=null,R.prototype.visitTimestampMicrosecond=null,R.prototype.visitTimestampNanosecond=null,R.prototype.visitTimeSecond=null,R.prototype.visitTimeMillisecond=null,R.prototype.visitTimeMicrosecond=null,R.prototype.visitTimeNanosecond=null,R.prototype.visitDenseUnion=null,R.prototype.visitSparseUnion=null,R.prototype.visitIntervalDayTime=null,R.prototype.visitIntervalYearMonth=null,R.prototype.visitDuration=null,R.prototype.visitDurationSecond=null,R.prototype.visitDurationMillisecond=null,R.prototype.visitDurationMicrosecond=null,R.prototype.visitDurationNanosecond=null;var Ma={};mr(Ma,{float64ToUint16:()=>Qn,uint16ToFloat64:()=>es});var fl=new Float64Array(1),un=new Uint32Array(fl.buffer);function es(e){let t=(31744&e)>>10,r=(1023&e)/1024,n=Math.pow(-1,(32768&e)>>15);switch(t){case 31:return n*(r?Number.NaN:1/0);case 0:return n*(r?6103515625e-14*r:0)}return n*Math.pow(2,t-15)*(1+r)}function Qn(e){if(e!=e)return 32256;fl[0]=e;let t=(2147483648&un[1])>>16&65535,r=2146435072&un[1],n=0;return r>=1089470464?un[0]>0?r=31744:(r=(2080374784&r)>>16,n=(1048575&un[1])>>10):r<=1056964608?(n=1048576+(1048575&un[1]),n=1048576+(n<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,n=512+(1048575&un[1])>>10),t|r|65535&n}var z=class extends R{};function Y(e){return(t,r,n)=>{if(t.setValid(r,null!=n))return e(t,r,n)}}var ku=(e,t,r)=>{e[t]=Math.floor(r/864e5)},pl=(e,t,r,n)=>{if(r+1{let i=e+r;n?t[i>>3]|=1<>3]&=~(1<{e[t]=r},ka=({values:e},t,r)=>{e[t]=r},ml=({values:e},t,r)=>{e[t]=Qn(r)},Gu=(e,t,r)=>{switch(e.type.precision){case pe.HALF:return ml(e,t,r);case pe.SINGLE:case pe.DOUBLE:return ka(e,t,r)}},ts=({values:e},t,r)=>{ku(e,t,r.valueOf())},rs=({values:e},t,r)=>{e[t]=BigInt(r)},Ba=({stride:e,values:t},r,n)=>{t.set(n.subarray(0,e),e*r)},gl=({values:e,valueOffsets:t},r,n)=>pl(e,t,r,n),hl=({values:e,valueOffsets:t},r,n)=>pl(e,t,r,Pt(n)),Ga=(e,t,r)=>{e.type.unit===Ae.DAY?ts(e,t,r):rs(e,t,r)},ns=({values:e},t,r)=>{e[t]=BigInt(r/1e3)},is=({values:e},t,r)=>{e[t]=BigInt(r)},ss=({values:e},t,r)=>{e[t]=BigInt(1e3*r)},as=({values:e},t,r)=>{e[t]=BigInt(1e6*r)},Ua=(e,t,r)=>{switch(e.type.unit){case U.SECOND:return ns(e,t,r);case U.MILLISECOND:return is(e,t,r);case U.MICROSECOND:return ss(e,t,r);case U.NANOSECOND:return as(e,t,r)}},os=({values:e},t,r)=>{e[t]=r},ls=({values:e},t,r)=>{e[t]=r},cs=({values:e},t,r)=>{e[t]=r},us=({values:e},t,r)=>{e[t]=r},Oa=(e,t,r)=>{switch(e.type.unit){case U.SECOND:return os(e,t,r);case U.MILLISECOND:return ls(e,t,r);case U.MICROSECOND:return cs(e,t,r);case U.NANOSECOND:return us(e,t,r)}},Ra=({values:e,stride:t},r,n)=>{e.set(n.subarray(0,t),t*r)},Uu=(e,t,r)=>{let n=e.children[0],i=e.valueOffsets,s=Ge.getVisitFn(n);if(Array.isArray(r))for(let e=-1,a=i[t],o=i[t+1];a{let n=e.children[0],{valueOffsets:i}=e,s=Ge.getVisitFn(n),{[t]:a,[t+1]:o}=i,l=r instanceof Map?r.entries():Object.entries(r);for(let e of l)if(s(n,a,e),++a>=o)break},Ru=(e,t)=>(r,n,i,s)=>n&&r(n,e,t[s]),Hu=(e,t)=>(r,n,i,s)=>n&&r(n,e,t.get(s)),Nu=(e,t)=>(r,n,i,s)=>n&&r(n,e,t.get(i.name)),Wu=(e,t)=>(r,n,i,s)=>n&&r(n,e,t[i.name]),Vu=(e,t,r)=>{let n=e.type.children.map((e=>Ge.getVisitFn(e.type))),i=r instanceof Map?Nu(t,r):r instanceof se?Hu(t,r):Array.isArray(r)?Ru(t,r):Wu(t,r);e.type.children.forEach(((t,r)=>i(n[r],e.children[r],t,r)))},zu=(e,t,r)=>{e.type.mode===ge.Dense?vl(e,t,r):bl(e,t,r)},vl=(e,t,r)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[n];Ge.visit(i,e.valueOffsets[t],r)},bl=(e,t,r)=>{let n=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[n];Ge.visit(i,t,r)},ju=(e,t,r)=>{var n;null===(n=e.dictionary)||void 0===n||n.set(e.values[t],r)},Ha=(e,t,r)=>{e.type.unit===Ie.DAY_TIME?_s(e,t,r):ds(e,t,r)},_s=({values:e},t,r)=>{e.set(r.subarray(0,2),2*t)},ds=({values:e},t,r)=>{e[t]=12*r[0]+r[1]%12},ps=({values:e},t,r)=>{e[t]=r},ms=({values:e},t,r)=>{e[t]=r},gs=({values:e},t,r)=>{e[t]=r},hs=({values:e},t,r)=>{e[t]=r},Na=(e,t,r)=>{switch(e.type.unit){case U.SECOND:return ps(e,t,r);case U.MILLISECOND:return ms(e,t,r);case U.MICROSECOND:return gs(e,t,r);case U.NANOSECOND:return hs(e,t,r)}},$u=(e,t,r)=>{let{stride:n}=e,i=e.children[0],s=Ge.getVisitFn(i);if(Array.isArray(r))for(let e=-1,a=t*n;++e"".concat(vt(e),": ").concat(vt(t)))).join(", "),"}")}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Wa(this[Lt],this[_n])}},Wa=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return ee.name))}has(e,t){return-1!==e[Lt].type.children.findIndex((e=>e.name===t))}getOwnPropertyDescriptor(e,t){if(-1!==e[Lt].type.children.findIndex((e=>e.name===t)))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let r=e[Lt].type.children.findIndex((e=>e.name===t));if(-1!==r){let n=xe.visit(e[Lt].children[r],e[_n]);return Reflect.set(e,t,n),n}}set(e,t,r){let n=e[Lt].type.children.findIndex((e=>e.name===t));return-1!==n?(Ge.visit(e[Lt].children[n],e[_n],r),Reflect.set(e,t,r)):!(!Reflect.has(e,t)&&"symbol"!=typeof t)&&Reflect.set(e,t,r)}},H=class extends R{};function $(e){return(t,r)=>t.getValid(r)?e(t,r):null}var qu=(e,t)=>864e5*e[t],Xu=(e,t)=>null,yl=(e,t,r)=>{if(r+1>=t.length)return null;let n=ae(t[r]),i=ae(t[r+1]);return e.subarray(n,i)},Qu=({offset:e,values:t},r)=>{let n=e+r;return 0!=(t[n>>3]&1<qu(e,t),El=({values:e},t)=>ae(e[t]),Ar=({stride:e,values:t},r)=>t[e*r],Yu=({stride:e,values:t},r)=>es(t[e*r]),wl=({values:e},t)=>e[t],Ju=({stride:e,values:t},r)=>t.subarray(e*r,e*(r+1)),Ll=({values:e,valueOffsets:t},r)=>yl(e,t,r),Al=({values:e,valueOffsets:t},r)=>{let n=yl(e,t,r);return null!==n?Cn(n):null},Ku=({values:e},t)=>e[t],Zu=({type:e,values:t},r)=>e.precision!==pe.HALF?t[r]:es(t[r]),e_=(e,t)=>e.type.unit===Ae.DAY?Sl(e,t):El(e,t),Dl=({values:e},t)=>1e3*ae(e[t]),Fl=({values:e},t)=>ae(e[t]),xl=({values:e},t)=>Ta(e[t],BigInt(1e3)),Tl=({values:e},t)=>Ta(e[t],BigInt(1e6)),t_=(e,t)=>{switch(e.type.unit){case U.SECOND:return Dl(e,t);case U.MILLISECOND:return Fl(e,t);case U.MICROSECOND:return xl(e,t);case U.NANOSECOND:return Tl(e,t)}},Pl=({values:e},t)=>e[t],Il=({values:e},t)=>e[t],Cl=({values:e},t)=>e[t],Ml=({values:e},t)=>e[t],r_=(e,t)=>{switch(e.type.unit){case U.SECOND:return Pl(e,t);case U.MILLISECOND:return Il(e,t);case U.MICROSECOND:return Cl(e,t);case U.NANOSECOND:return Ml(e,t)}},n_=({values:e,stride:t},r)=>Xn.decimal(e.subarray(t*r,t*(r+1))),i_=(e,t)=>{let{valueOffsets:r,stride:n,children:i}=e,{[t*n]:s,[t*n+1]:a}=r,o=i[0].slice(s,a-s);return new se([o])},s_=(e,t)=>{let{valueOffsets:r,children:n}=e,{[t]:i,[t+1]:s}=r,a=n[0];return new Gt(a.slice(i,s-i))},a_=(e,t)=>new Lr(e,t),o_=(e,t)=>e.type.mode===ge.Dense?kl(e,t):Bl(e,t),kl=(e,t)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],n=e.children[r];return xe.visit(n,e.valueOffsets[t])},Bl=(e,t)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],n=e.children[r];return xe.visit(n,t)},l_=(e,t)=>{var r;return null===(r=e.dictionary)||void 0===r?void 0:r.get(e.values[t])},c_=(e,t)=>e.type.unit===Ie.DAY_TIME?Gl(e,t):Ul(e,t),Gl=({values:e},t)=>e.subarray(2*t,2*(t+1)),Ul=({values:e},t)=>{let r=e[t],n=new Int32Array(2);return n[0]=Math.trunc(r/12),n[1]=Math.trunc(r%12),n},Ol=({values:e},t)=>e[t],Rl=({values:e},t)=>e[t],Hl=({values:e},t)=>e[t],Nl=({values:e},t)=>e[t],u_=(e,t)=>{switch(e.type.unit){case U.SECOND:return Ol(e,t);case U.MILLISECOND:return Rl(e,t);case U.MICROSECOND:return Hl(e,t);case U.NANOSECOND:return Nl(e,t)}},__=(e,t)=>{let{stride:r,children:n}=e,i=n[0].slice(t*r,r);return new se([i])};H.prototype.visitNull=$(Xu),H.prototype.visitBool=$(Qu),H.prototype.visitInt=$(Ku),H.prototype.visitInt8=$(Ar),H.prototype.visitInt16=$(Ar),H.prototype.visitInt32=$(Ar),H.prototype.visitInt64=$(wl),H.prototype.visitUint8=$(Ar),H.prototype.visitUint16=$(Ar),H.prototype.visitUint32=$(Ar),H.prototype.visitUint64=$(wl),H.prototype.visitFloat=$(Zu),H.prototype.visitFloat16=$(Yu),H.prototype.visitFloat32=$(Ar),H.prototype.visitFloat64=$(Ar),H.prototype.visitUtf8=$(Al),H.prototype.visitLargeUtf8=$(Al),H.prototype.visitBinary=$(Ll),H.prototype.visitLargeBinary=$(Ll),H.prototype.visitFixedSizeBinary=$(Ju),H.prototype.visitDate=$(e_),H.prototype.visitDateDay=$(Sl),H.prototype.visitDateMillisecond=$(El),H.prototype.visitTimestamp=$(t_),H.prototype.visitTimestampSecond=$(Dl),H.prototype.visitTimestampMillisecond=$(Fl),H.prototype.visitTimestampMicrosecond=$(xl),H.prototype.visitTimestampNanosecond=$(Tl),H.prototype.visitTime=$(r_),H.prototype.visitTimeSecond=$(Pl),H.prototype.visitTimeMillisecond=$(Il),H.prototype.visitTimeMicrosecond=$(Cl),H.prototype.visitTimeNanosecond=$(Ml),H.prototype.visitDecimal=$(n_),H.prototype.visitList=$(i_),H.prototype.visitStruct=$(a_),H.prototype.visitUnion=$(o_),H.prototype.visitDenseUnion=$(kl),H.prototype.visitSparseUnion=$(Bl),H.prototype.visitDictionary=$(l_),H.prototype.visitInterval=$(c_),H.prototype.visitIntervalDayTime=$(Gl),H.prototype.visitIntervalYearMonth=$(Ul),H.prototype.visitDuration=$(u_),H.prototype.visitDurationSecond=$(Ol),H.prototype.visitDurationMillisecond=$(Rl),H.prototype.visitDurationMicrosecond=$(Hl),H.prototype.visitDurationNanosecond=$(Nl),H.prototype.visitFixedSizeList=$(__),H.prototype.visitMap=$(s_);var xe=new H,Dr=Symbol.for("keys"),fn=Symbol.for("vals"),dn=Symbol.for("kKeysAsStrings"),za=Symbol.for("_kKeysAsStrings"),Gt=class{constructor(e){return this[Dr]=new se([e.children[0]]).memoize(),this[fn]=e.children[1],new Proxy(this,new $a)}get[dn](){return this[za]||(this[za]=Array.from(this[Dr].toArray(),String))}[Symbol.iterator](){return new ja(this[Dr],this[fn])}get size(){return this[Dr].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Dr],t=this[fn],r={};for(let n=-1,i=e.length;++n"".concat(vt(e),": ").concat(vt(t)))).join(", "),"}")}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},ja=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),xe.visit(this.vals,e)]})}},$a=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[dn]}has(e,t){return e[dn].includes(t)}getOwnPropertyDescriptor(e,t){if(-1!==e[dn].indexOf(t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let r=e[dn].indexOf(t);if(-1!==r){let n=xe.visit(Reflect.get(e,fn),r);return Reflect.set(e,t,n),n}}set(e,t,r){let n=e[dn].indexOf(t);return-1!==n?(Ge.visit(Reflect.get(e,fn),n,r),Reflect.set(e,t,r)):!!Reflect.has(e,t)&&Reflect.set(e,t,r)}},Wl;function Yn(e,t,r,n){let{length:i=0}=e,s="number"!=typeof t?0:t,a="number"!=typeof r?i:r;return s<0&&(s=(s%i+i)%i),a<0&&(a=(a%i+i)%i),ai&&(a=i),n?n(e,s,a):[s,a]}Object.defineProperties(Gt.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Dr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[fn]:{writable:!0,enumerable:!1,configurable:!1,value:null},[za]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var Gr=(e,t)=>e<0?t+e:e,Vl=e=>e!=e;function Fr(e){if("object"!=typeof e||null===e)return Vl(e)?Vl:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date&&e.valueOf()===t}return ArrayBuffer.isView(e)?t=>!!t&&La(e,t):e instanceof Map?f_(e):Array.isArray(e)?d_(e):e instanceof se?p_(e):m_(e,!0)}function d_(e){let t=[];for(let r=-1,n=e.length;++r!1;let n=[];for(let t=-1,i=r.length;++t{if(!r||"object"!=typeof r)return!1;switch(r.constructor){case Array:return g_(e,r);case Map:return zl(e,r,r.keys());case Gt:case Lr:case Object:case void 0:return zl(e,r,t||Object.keys(r))}return r instanceof se&&h_(e,r)}}function g_(e,t){let r=e.length;if(t.length!==r)return!1;for(let n=-1;++n>n}function v_(e,t,r){return r?!!(e[t>>3]|=1<>3]&=~(1<0||r.byteLength>3):Rr(new Ur(r,e,t,null,ys)).subarray(0,n)),i}return r}function Rr(e){let t=[],r=0,n=0,i=0;for(let s of e)s&&(i|=1<0)&&(t[r++]=i);let s=new Uint8Array(t.length+7&-8);return s.set(t),s}mr(Xa,{BitIterator:()=>Ur,getBit:()=>jl,getBool:()=>ys,packBools:()=>Rr,popcnt_array:()=>$l,popcnt_bit_range:()=>Jn,popcnt_uint32:()=>bs,setBool:()=>v_,truncateBitmap:()=>Or});var Ur=class{constructor(e,t,r,n,i){this.bytes=e,this.length=r,this.context=n,this.get=i,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index>3<<3,i=t+(t%8==0?0:8-t%8);return Jn(e,t,i)+Jn(e,n,r)+$l(e,i>>3,n-i>>3)}function $l(e,t,r){let n=0,i=Math.trunc(t),s=new DataView(e.buffer,e.byteOffset,e.byteLength),a=void 0===r?e.byteLength:i+r;for(;a-i>=4;)n+=bs(s.getUint32(i)),i+=4;for(;a-i>=2;)n+=bs(s.getUint16(i)),i+=2;for(;a-i>=1;)n+=bs(s.getUint8(i)),i+=1;return n}function bs(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(858993459&t)+(t>>>2&858993459),16843009*(t+(t>>>4)&252645135)>>>24}var b_=-1,ce=class e{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(0!==this._nullCount){let{type:e}=this;return G.isSparseUnion(e)||G.isDenseUnion(e)?this.children.some((e=>e.nullable)):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:r,nullBitmap:n,typeIds:i}=this;return t&&(e+=t.byteLength),r&&(e+=r.byteLength),n&&(e+=n.byteLength),i&&(e+=i.byteLength),this.children.reduce(((e,t)=>e+t.byteLength),e)}get nullCount(){if(G.isUnion(this.type))return this.children.reduce(((e,t)=>e+t.nullCount),0);let e,t=this._nullCount;return t<=b_&&(e=this.nullBitmap)&&(this._nullCount=t=0===e.length?0:this.length-Jn(e,this.offset,this.offset+this.length)),t}constructor(t,r,n,i,s,a=[],o){let l;this.type=t,this.children=a,this.dictionary=o,this.offset=Math.floor(Math.max(r||0,0)),this.length=Math.floor(Math.max(n||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),s instanceof e?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=tt(t),s&&((l=s[0])&&(this.valueOffsets=l),(l=s[1])&&(this.values=l),(l=s[2])&&(this.nullBitmap=l),(l=s[3])&&(this.typeIds=l)))}getValid(e){let{type:t}=this;if(G.isUnion(t)){let r=t,n=this.children[r.typeIdToChildIndex[this.typeIds[e]]],i=r.mode===ge.Dense?this.valueOffsets[e]:e;return n.getValid(i)}if(this.nullable&&this.nullCount>0){let t=this.offset+e;return 0!=(this.nullBitmap[t>>3]&1<>3;(!n||n.byteLength<=l)&&(n=new Uint8Array((i+s+63&-64)>>3).fill(255),this.nullCount>0?(n.set(Or(i,s,this.nullBitmap),0),Object.assign(this,{nullBitmap:n})):Object.assign(this,{nullBitmap:n,_nullCount:0}));let c=n[l];r=0!=(c&o),n[l]=t?c|o:c&~o}return r!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,r=this.offset,n=this.length,i=this._nullCount,s=this,a=this.children){return new e(t,r,n,i,s,a,this.dictionary)}slice(e,t){let{stride:r,typeId:n,children:i}=this,s=+(0===this._nullCount)-1,a=16===n?r:1,o=this._sliceBuffers(e,t,r,n);return this.clone(this.type,this.offset+e,t,s,o,0===i.length||this.valueOffsets?i:this._sliceChildren(i,a*e,a*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===v.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:r}=this,n=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);n[t>>3]=(1<0&&n.set(Or(this.offset,t,this.nullBitmap),0);let i=this.buffers;return i[st.VALIDITY]=n,this.clone(this.type,0,e,r+(e-t),i)}_sliceBuffers(e,t,r,n){let i,{buffers:s}=this;return(i=s[st.TYPE])&&(s[st.TYPE]=i.subarray(e,e+t)),(i=s[st.OFFSET])&&(s[st.OFFSET]=i.subarray(e,e+t+1))||(i=s[st.DATA])&&(s[st.DATA]=6===n?i:i.subarray(r*e,r*(e+t))),s}_sliceChildren(e,t,r){return e.map((e=>e.slice(t,r)))}};ce.prototype.children=Object.freeze([]);var Qa=class e extends R{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:r=0,length:n=0}=e;return new ce(t,r,n,n)}visitBool(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length>>3,nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitInt(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length,nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitFloat(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length,nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitUtf8(e){let{type:t,offset:r=0}=e,n=j(e.data),i=j(e.nullBitmap),s=kr(e.valueOffsets),{length:a=s.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new ce(t,r,a,o,[s,n,i])}visitLargeUtf8(e){let{type:t,offset:r=0}=e,n=j(e.data),i=j(e.nullBitmap),s=Ui(e.valueOffsets),{length:a=s.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new ce(t,r,a,o,[s,n,i])}visitBinary(e){let{type:t,offset:r=0}=e,n=j(e.data),i=j(e.nullBitmap),s=kr(e.valueOffsets),{length:a=s.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new ce(t,r,a,o,[s,n,i])}visitLargeBinary(e){let{type:t,offset:r=0}=e,n=j(e.data),i=j(e.nullBitmap),s=Ui(e.valueOffsets),{length:a=s.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new ce(t,r,a,o,[s,n,i])}visitFixedSizeBinary(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length/tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitDate(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length/tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitTimestamp(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length/tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitTime(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length/tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitDecimal(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length/tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitList(e){let{type:t,offset:r=0,child:n}=e,i=j(e.nullBitmap),s=kr(e.valueOffsets),{length:a=s.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new ce(t,r,a,o,[s,void 0,i],[n])}visitStruct(e){let{type:t,offset:r=0,children:n=[]}=e,i=j(e.nullBitmap),{length:s=n.reduce(((e,{length:t})=>Math.max(e,t)),0),nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,void 0,i],n)}visitUnion(e){let{type:t,offset:r=0,children:n=[]}=e,i=re(t.ArrayType,e.typeIds),{length:s=i.length,nullCount:a=-1}=e;if(G.isSparseUnion(t))return new ce(t,r,s,a,[void 0,void 0,void 0,i],n);let o=kr(e.valueOffsets);return new ce(t,r,s,a,[o,void 0,void 0,i],n)}visitDictionary(t){let{type:r,offset:n=0}=t,i=j(t.nullBitmap),s=re(r.indices.ArrayType,t.data),{dictionary:a=new se([(new e).visit({type:r.dictionary})])}=t,{length:o=s.length,nullCount:l=(t.nullBitmap?-1:0)}=t;return new ce(r,n,o,l,[void 0,s,i],[],a)}visitInterval(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length/tt(t),nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitDuration(e){let{type:t,offset:r=0}=e,n=j(e.nullBitmap),i=re(t.ArrayType,e.data),{length:s=i.length,nullCount:a=(e.nullBitmap?-1:0)}=e;return new ce(t,r,s,a,[void 0,i,n])}visitFixedSizeList(t){let{type:r,offset:n=0,child:i=(new e).visit({type:r.valueType})}=t,s=j(t.nullBitmap),{length:a=i.length/tt(r),nullCount:o=(t.nullBitmap?-1:0)}=t;return new ce(r,n,a,o,[void 0,void 0,s],[i])}visitMap(t){let{type:r,offset:n=0,child:i=(new e).visit({type:r.childType})}=t,s=j(t.nullBitmap),a=kr(t.valueOffsets),{length:o=a.length-1,nullCount:l=(t.nullBitmap?-1:0)}=t;return new ce(r,n,o,l,[a,void 0,s],[i])}},y_=new Qa;function J(e){return y_.visit(e)}var Kn=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndexe.nullable))}function Ss(e){return e.reduce(((e,t)=>e+t.nullCount),0)}function Es(e){return e.reduce(((e,t,r)=>(e[r+1]=e[r]+t.length,e)),new Uint32Array(e.length+1))}function ws(e,t,r,n){let i=[];for(let s=-1,a=e.length;++s=n)break;if(r>=o+l)continue;if(o>=r&&o+l<=n){i.push(a);continue}let c=Math.max(0,r-o),u=Math.min(n-o,l);i.push(a.slice(c,u-c))}return 0===i.length&&i.push(e[0].slice(0,0)),i}function Ya(e,t,r,n){let i=0,s=0,a=t.length-1;do{if(i>=a-1)return r0?0:-1}function E_(e,t){let{nullBitmap:r}=e;if(!r||e.nullCount<=0)return-1;let n=0;for(let i of new Ur(r,e.offset+(t||0),e.length,r,ys)){if(!i)return n;++n}return-1}function K(e,t,r){if(void 0===t)return-1;if(null===t)switch(e.typeId){case v.Union:case v.Dictionary:break;default:return E_(e,r)}let n=xe.getVisitFn(e),i=Fr(t);for(let t=(r||0)-1,s=e.length;++t{let r=e.data[t];return r.values.subarray(0,r.length)[Symbol.iterator]()}));let r=0;return new Kn(e.data.length,(t=>{let n=e.data[t].length,i=e.slice(r,r+n);return r+=n,new Ja(i)}))}var Ja=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data)):t;if(0===s.length||s.some((e=>!(e instanceof ce))))throw new TypeError("Vector constructor expects an Array of Data instances.");let a=null===(r=s[0])||void 0===r?void 0:r.type;switch(s.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:r}=Yl[a.typeId],n=s[0];this.isValid=e=>Zn(n,e),this.get=t=>e(n,t),this.set=(e,r)=>t(n,e,r),this.indexOf=e=>r(n,e),this._offsets=[0,n.length];break}default:Object.setPrototypeOf(this,Jl[a.typeId]),this._offsets=Es(s)}this.data=s,this.type=a,this.stride=tt(a),this.numChildren=null!==(i=null===(n=a.children)||void 0===n?void 0:n.length)&&void 0!==i?i:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce(((e,t)=>e+t.byteLength),0)}get nullable(){return ql(this.data)}get nullCount(){return Ss(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return"".concat(this.VectorName,"<").concat(this.type[Symbol.toStringTag],">")}get VectorName(){return"".concat(v[this.type.typeId],"Vector")}isValid(e){return!1}get(e){return null}at(e){return this.get(Gr(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return mn.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap((e=>e.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,r){return new e(Yn(this,t,r,(({data:e,_offsets:t},r,n)=>ws(e,t,r,n))))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:r,stride:n,ArrayType:i}=this;switch(e.typeId){case v.Int:case v.Float:case v.Decimal:case v.Time:case v.Timestamp:switch(t.length){case 0:return new i;case 1:return t[0].values.subarray(0,r*n);default:return t.reduce(((e,{values:t,length:r})=>(e.array.set(t.subarray(0,r*n),e.offset),e.offset+=r*n,e)),{array:new i(r*n),offset:0}).array}}return[...this]}toString(){return"[".concat([...this].join(","),"]")}getChild(e){var t;return this.getChildAt(null===(t=this.type.children)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(t){return t>-1&&te[t]))):null}get isMemoized(){return!!G.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(G.isDictionary(this.type)){let t=new Ds(this.data[0].dictionary),r=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new e(r)}return new Ds(this)}unmemoize(){if(G.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),r=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new e(r)}return this}};Ql=Symbol.toStringTag,se[Ql]=(e=>{e.type=G.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(v).map((e=>v[e])).filter((e=>"number"==typeof e&&e!==v.NONE));for(let r of t){let t=xe.getVisitFnByTypeId(r),n=Ge.getVisitFnByTypeId(r),i=Hr.getVisitFnByTypeId(r);Yl[r]={get:t,set:n,indexOf:i},Jl[r]=Object.create(e,{isValid:{value:pn(Zn)},get:{value:pn(xe.getVisitFnByTypeId(r))},set:{value:Ls(Ge.getVisitFnByTypeId(r))},indexOf:{value:As(Hr.getVisitFnByTypeId(r))}})}return"Vector"})(se.prototype);var Ds=class e extends se{constructor(t){super(t.data);let r=this.get,n=this.set,i=this.slice,s=new Array(this.length);Object.defineProperty(this,"get",{value(e){let t=s[e];if(void 0!==t)return t;let n=r.call(this,e);return s[e]=n,n}}),Object.defineProperty(this,"set",{value(e,t){n.call(this,e,t),s[e]=t}}),Object.defineProperty(this,"slice",{value:(t,r)=>new e(i.call(this,t,r))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new se(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}};function Kl(e){if(!e||e.length<=0)return function(e){return!0};let t="",r=e.filter((e=>e==e));return r.length>0&&(t="\n switch (x) {".concat(r.map((e=>"\n case ".concat(w_(e),":"))).join(""),"\n return false;\n }")),e.length!==r.length&&(t="if (x !== x) return false;\n".concat(t)),new Function("x","".concat(t,"\nreturn true;"))}function w_(e){return"bigint"!=typeof e?vt(e):"".concat(vt(e),"n")}function Ka(e,t){let r=Math.ceil(e)*t-1;return(r-r%64+64||64)/t}function Zl(e,t=0){return e.length>=t?e.subarray(0,t):kn(new e.constructor(t),e,0)}var At=class{constructor(e,t=0,r=1){this.length=Math.ceil(t/r),this.buffer=new e(this.length),this.stride=r,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e}get byteLength(){return Math.ceil(this.length*this.stride)*this.BYTES_PER_ELEMENT}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(e,t){return this}append(e){return this.set(this.length,e)}reserve(e){if(e>0){this.length+=e;let t=this.stride,r=this.length*t,n=this.buffer.length;r>=n&&this._resize(Ka(0===n?1*r:2*r,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=Ka(e*this.stride,this.BYTES_PER_ELEMENT);let t=Zl(this.buffer,e);return this.clear(),t}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(e){return this.buffer=Zl(this.buffer,e)}},nr=class extends At{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,t){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=t,this}},gn=class extends nr{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(e){return this.buffer[e>>3]>>e%8&1}set(e,t){let{buffer:r}=this.reserve(e-this.length+1),n=e>>3,i=e%8,s=r[n]>>i&1;return t?0===s&&(r[n]|=1<=0&&n.fill(n[r],r,e),n[e]=n[e-1]+t,this}flush(e=this.length-1){return e>this.length&&this.set(e-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(e+1)}},Se=class{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e){throw new Error('"throughDOM" not available in this environment')}constructor({type:e,nullValues:t}){this.length=0,this.finished=!1,this.type=e,this.children=[],this.nullValues=t,this.stride=tt(e),this._nulls=new gn,t&&t.length>0&&(this._isValid=Kl(t))}toVector(){return new se([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let e=0,{_offsets:t,_values:r,_nulls:n,_typeIds:i,children:s}=this;return t&&(e+=t.byteLength),r&&(e+=r.byteLength),n&&(e+=n.byteLength),i&&(e+=i.byteLength),s.reduce(((e,t)=>e+t.byteLength),e)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce(((e,t)=>e+t.reservedByteLength),e)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(e){return this.set(this.length,e)}isValid(e){return this._isValid(e)}set(e,t){return this.setValid(e,this.isValid(t))&&this.setValue(e,t),this}setValue(e,t){this._setValue(this,e,t)}setValid(e,t){return this.length=this._nulls.set(e,+t).length,t}addChild(e,t="".concat(this.numChildren)){throw new Error('Cannot append children to non-nested type "'.concat(this.type,'"'))}getChildAt(e){return this.children[e]||null}flush(){let e,t,r,n,{type:i,length:s,nullCount:a,_typeIds:o,_offsets:l,_values:c,_nulls:u}=this;(t=null==o?void 0:o.flush(s))?n=null==l?void 0:l.flush(s):e=(n=null==l?void 0:l.flush(s))?null==c?void 0:c.flush(l.last()):null==c?void 0:c.flush(s),a>0&&(r=null==u?void 0:u.flush(s));let _=this.children.map((e=>e.flush()));return this.clear(),J({type:i,length:s,nullCount:a,children:_,child:_[0],data:e,typeIds:t,nullBitmap:r,valueOffsets:n})}finish(){this.finished=!0;for(let e of this.children)e.finish();return this}clear(){var e,t,r,n;this.length=0,null===(e=this._nulls)||void 0===e||e.clear(),null===(t=this._values)||void 0===t||t.clear(),null===(r=this._offsets)||void 0===r||r.clear(),null===(n=this._typeIds)||void 0===n||n.clear();for(let e of this.children)e.clear();return this}};Se.prototype.length=1,Se.prototype.stride=1,Se.prototype.children=null,Se.prototype.finished=!1,Se.prototype.nullValues=null,Se.prototype._isValid=()=>!0;var Te=class extends Se{constructor(e){super(e),this._values=new nr(this.ArrayType,0,this.stride)}setValue(e,t){let r=this._values;return r.reserve(e-r.length+1),super.setValue(e,t)}},je=class extends Se{constructor(e){super(e),this._pendingLength=0,this._offsets=new hn(e.type)}setValue(e,t){let r=this._pending||(this._pending=new Map),n=r.get(e);n&&(this._pendingLength-=n.length),this._pendingLength+=t instanceof Gt?t[Dr].length:t.length,r.set(e,t)}setValid(e,t){return!!super.setValid(e,t)||((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let e=this._pending,t=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,t),this}},Nr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,r,n){return e.prep(8,24),e.writeInt64(BigInt(null!=n?n:0)),e.pad(4),e.writeInt32(r),e.writeInt64(BigInt(null!=t?t:0)),e.offset()}},rt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ue.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new ze).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new Nr).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){let r=this.bb.__offset(this.bb_pos,10);return r?(t||new Nr).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,12);return r?(t||new Ce).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,ue.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}},de=class e{constructor(e=[],t,r,n=ue.V5){this.fields=e||[],this.metadata=t||new Map,r||(r=Za(this.fields)),this.dictionaries=r,this.metadataVersion=n}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((e=>e.name))}toString(){return"Schema<{ ".concat(this.fields.map(((e,t)=>"".concat(t,": ").concat(e))).join(", ")," }>")}select(t){let r=new Set(t),n=this.fields.filter((e=>r.has(e.name)));return new e(n,this.metadata)}selectAt(t){let r=t.map((e=>this.fields[e])).filter(Boolean);return new e(r,this.metadata)}assign(...t){let r=t[0]instanceof e?t[0]:Array.isArray(t[0])?new e(t[0]):new e(t),n=[...this.fields],i=Fs(Fs(new Map,this.metadata),r.metadata),s=r.fields.filter((e=>{let t=n.findIndex((t=>t.name===e.name));return!~t||(n[t]=e.clone({metadata:Fs(Fs(new Map,n[t].metadata),e.metadata)}))&&!1})),a=Za(s,new Map);return new e([...n,...s],i,new Map([...this.dictionaries,...a]))}};de.prototype.fields=null,de.prototype.metadata=null,de.prototype.dictionaries=null;var ne=class e{static new(...t){let[r,n,i,s]=t;return t[0]&&"object"==typeof t[0]&&(({name:r}=t[0]),void 0===n&&(n=t[0].type),void 0===i&&(i=t[0].nullable),void 0===s&&(s=t[0].metadata)),new e("".concat(r),n,i,s)}constructor(e,t,r=!1,n){this.name=e,this.type=t,this.nullable=r,this.metadata=n||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return"".concat(this.name,": ").concat(this.type)}clone(...t){let[r,n,i,s]=t;return t[0]&&"object"==typeof t[0]?({name:r=this.name,type:n=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=t[0]):[r=this.name,n=this.type,i=this.nullable,s=this.metadata]=t,e.new(r,n,i,s)}};function Fs(e,t){return new Map([...e||new Map,...t||new Map])}function Za(e,t=new Map){for(let r=-1,n=e.length;++r0&&Za(n.children,t)}return t}ne.prototype.type=null,ne.prototype.name=null,ne.prototype.nullable=null,ne.prototype.metadata=null;var L_=Br,A_=Ke,ir=class{static decode(e){e=new A_(j(e));let t=rt.getRootAsFooter(e),r=de.decode(t.schema(),new Map,t.version());return new eo(r,t)}static encode(e){let t=new L_,r=de.encode(t,e.schema);rt.startRecordBatchesVector(t,e.numRecordBatches);for(let r of[...e.recordBatches()].slice().reverse())sr.encode(t,r);let n=t.endVector();rt.startDictionariesVector(t,e.numDictionaries);for(let r of[...e.dictionaryBatches()].slice().reverse())sr.encode(t,r);let i=t.endVector();return rt.startFooter(t),rt.addSchema(t,r),rt.addVersion(t,ue.V5),rt.addRecordBatches(t,n),rt.addDictionaries(t,i),rt.finishFooterBuffer(t,rt.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=ue.V5,r,n){this.schema=e,this.version=t,r&&(this._recordBatches=r),n&&(this._dictionaryBatches=n)}*recordBatches(){for(let e,t=-1,r=this.numRecordBatches;++t=0&&e=0&&e=0&&e=0&&ethis._closedPromiseResolve=e))}get closed(){return this._closedPromise}cancel(e){return B(this,void 0,void 0,(function*(){yield this.return(e)}))}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(be);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Be.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Be.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return B(this,void 0,void 0,(function*(){return yield this.abort(e),be}))}return(e){return B(this,void 0,void 0,(function*(){return yield this.close(),be}))}read(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((e,t)=>{this.resolvers.push({resolve:e,reject:t})})):Promise.resolve(be)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}},Ut=class extends xs{write(e){if((e=j(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Cn(this.toUint8Array(!0)):this.toUint8Array(!1).then(Cn)}toUint8Array(e=!1){return e?Je(this._values)[0]:B(this,void 0,void 0,(function*(){var e,t,r,n;let i=[],s=0;try{for(var a,o=!0,l=_t(this);!(e=(a=yield l.next()).done);o=!0){n=a.value,o=!1;let e=n;i.push(e),s+=e.byteLength}}catch(e){t={error:e}}finally{try{!o&&!e&&(r=l.return)&&(yield r.call(l))}finally{if(t)throw t.error}}return Je(i,s)[0]}))}},Ot=class{constructor(e){e&&(this.source=new to(Be.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},ot=class e{constructor(t){t instanceof e?this.source=t.source:t instanceof Ut?this.source=new ar(Be.fromAsyncIterable(t)):Gi(t)?this.source=new ar(Be.fromNodeStream(t)):Mn(t)?this.source=new ar(Be.fromDOMStream(t)):ki(t)?this.source=new ar(Be.fromDOMStream(t.body)):ft(t)?this.source=new ar(Be.fromIterable(t)):(dt(t)||nt(t))&&(this.source=new ar(Be.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},to=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,t="read"){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||be)}return(e){return Object.create(this.source.return&&this.source.return(e)||be)}},ar=class{constructor(e){this.source=e,this._closedPromise=new Promise((e=>this._closedPromiseResolve=e))}cancel(e){return B(this,void 0,void 0,(function*(){yield this.return(e)}))}get closed(){return this._closedPromise}read(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(e){return B(this,arguments,void 0,(function*(e,t="read"){return yield this.source.next({cmd:t,size:e})}))}throw(e){return B(this,void 0,void 0,(function*(){let t=this.source.throw&&(yield this.source.throw(e))||be;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}return(e){return B(this,void 0,void 0,(function*(){let t=this.source.return&&(yield this.source.return(e))||be;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}},ti=class extends Ot{constructor(e,t){super(),this.position=0,this.buffer=j(e),this.size=void 0===t?this.buffer.byteLength:t}readInt32(e){let{buffer:t,byteOffset:r}=this.readAt(e,4);return new DataView(t,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),eri,Int128:()=>ni,Int64:()=>or,Uint64:()=>Le});var bn=8,ro=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],ri=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let t=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),r=new Uint32Array([e.buffer[1]>>>16,65535&e.buffer[1],e.buffer[0]>>>16,65535&e.buffer[0]]),n=t[3]*r[3];this.buffer[0]=65535&n;let i=n>>>16;return n=t[2]*r[3],i+=n,n=t[3]*r[2]>>>0,i+=n,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0>>16,this.buffer[1]+=t[1]*r[3]+t[2]*r[2]+t[3]*r[1],this.buffer[1]+=t[0]*r[3]+t[1]*r[2]+t[2]*r[1]+t[3]*r[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]>>0&&++t[1],t[1]>>0&&++t[2],t[2]>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return"".concat(vn(this.buffer[3])," ").concat(vn(this.buffer[2])," ").concat(vn(this.buffer[1])," ").concat(vn(this.buffer[0]))}static multiply(t,r){return new e(new Uint32Array(t.buffer)).times(r)}static add(t,r){return new e(new Uint32Array(t.buffer)).plus(r)}static from(t,r=new Uint32Array(4)){return e.fromString("string"==typeof t?t:t.toString(),r)}static fromNumber(t,r=new Uint32Array(4)){return e.fromString(t.toString(),r)}static fromString(t,r=new Uint32Array(4)){let n=t.startsWith("-"),i=t.length,s=new e(r);for(let r=n?1:0;r0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+t)}readDictionary(e){return this.dictionaries.get(e.id)}},Ts=class extends ii{constructor(e,t,r,n,i){super(new Uint8Array(0),t,r,n,i),this.sources=e}readNullBitmap(e,t,{offset:r}=this.nextBufferRange()){return t<=0?new Uint8Array(0):Rr(this.sources[r])}readOffsets(e,{offset:t}=this.nextBufferRange()){return re(Uint8Array,re(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return re(Uint8Array,re(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:r}=this;return G.isTimestamp(e)||(G.isInt(e)||G.isTime(e))&&64===e.bitWidth||G.isDuration(e)||G.isDate(e)&&e.unit===Ae.MILLISECOND?re(Uint8Array,or.convertArray(r[t])):G.isDecimal(e)?re(Uint8Array,ni.convertArray(r[t])):G.isBinary(e)||G.isLargeBinary(e)||G.isFixedSizeBinary(e)?D_(r[t]):G.isBool(e)?Rr(r[t]):G.isUtf8(e)||G.isLargeUtf8(e)?Pt(r[t].join("")):re(Uint8Array,re(e.ArrayType,r[t].map((e=>+e))))}};function D_(e){let t=e.join(""),r=new Uint8Array(t.length/2);for(let e=0;e>1]=Number.parseInt(t.slice(e,e+2),16);return r}var yn=class extends je{constructor(e){super(e),this._values=new At(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,j(t))}_flushPending(e,t){let r=this._offsets,n=this._values.reserve(t).buffer,i=0;for(let[t,s]of e)if(void 0===s)r.set(t,0);else{let e=s.length;n.set(s,i),r.set(t,e),i+=e}}},Sn=class extends je{constructor(e){super(e),this._values=new At(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,j(t))}_flushPending(e,t){let r=this._offsets,n=this._values.reserve(t).buffer,i=0;for(let[t,s]of e)if(void 0===s)r.set(t,BigInt(0));else{let e=s.length;n.set(s,i),r.set(t,BigInt(e)),i+=e}}},Ps=class extends Se{constructor(e){super(e),this._values=new gn}setValue(e,t){this._values.set(e,+t)}},Vr=class extends Te{};Vr.prototype._setValue=Ga;var si=class extends Vr{};si.prototype._setValue=ts;var ai=class extends Vr{};ai.prototype._setValue=rs;var oi=class extends Te{};oi.prototype._setValue=Ra;var Is=class extends Se{constructor({type:e,nullValues:t,dictionaryHashFunction:r}){super({type:new et(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=zr({type:this.type.indices,nullValues:t}),this.dictionary=zr({type:this.type.dictionary,nullValues:null}),"function"==typeof r&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(e){return this.indices.isValid(e)}setValid(e,t){let r=this.indices;return t=r.setValid(e,t),this.length=r.length,t}setValue(e,t){let r=this._keysToIndices,n=this.valueToKey(t),i=r[n];return void 0===i&&(r[n]=i=this._dictionaryOffset+this.dictionary.append(t).length-1),this.indices.setValue(e,i)}flush(){let e=this.type,t=this._dictionary,r=this.dictionary.toVector(),n=this.indices.flush().clone(e);return n.dictionary=t?t.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=n.dictionary,this.clear(),n}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(e){return"string"==typeof e?e:"".concat(e)}},li=class extends Te{};li.prototype._setValue=Ba;var Cs=class extends Se{setValue(e,t){let[r]=this.children,n=e*this.stride;for(let e=-1,i=t.length;++e0)throw new Error("FixedSizeListBuilder can only have one child.");let r=this.children.push(e);return this.type=new Et(this.type.listSize,new ne(t,e.type,!0)),r}},jr=class extends Te{setValue(e,t){this._values.set(e,t)}},Ms=class extends jr{setValue(e,t){super.setValue(e,Qn(t))}},ks=class extends jr{},Bs=class extends jr{},$r=class extends Te{};$r.prototype._setValue=Ha;var ci=class extends $r{};ci.prototype._setValue=_s;var ui=class extends $r{};ui.prototype._setValue=ds;var lr=class extends Te{};lr.prototype._setValue=Na;var _i=class extends lr{};_i.prototype._setValue=ps;var di=class extends lr{};di.prototype._setValue=ms;var fi=class extends lr{};fi.prototype._setValue=gs;var pi=class extends lr{};pi.prototype._setValue=hs;var lt=class extends Te{setValue(e,t){this._values.set(e,t)}},Gs=class extends lt{},Us=class extends lt{},Os=class extends lt{},Rs=class extends lt{},Hs=class extends lt{},Ns=class extends lt{},Ws=class extends lt{},Vs=class extends lt{},zs=class extends je{constructor(e){super(e),this._offsets=new hn(e.type)}addChild(e,t="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new yt(new ne(t,e.type,!0)),this.numChildren-1}_flushPending(e){let t=this._offsets,[r]=this.children;for(let[n,i]of e)if(typeof i>"u")t.set(n,0);else{let e=i,s=e.length,a=t.set(n,s).buffer[n];for(let t=-1;++t0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new wt(new ne(t,e.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(e){let t=this._offsets,[r]=this.children;for(let[n,i]of e)if(void 0===i)t.set(n,0);else{let{[n]:e,[n+1]:s}=t.set(n,i.size).buffer;for(let t of i.entries())if(r.set(e,t),++e>=s)break}}},$s=class extends Se{setValue(e,t){}setValid(e,t){return this.length=Math.max(e+1,this.length),t}},qs=class extends Se{setValue(e,t){let{children:r,type:n}=this;switch(Array.isArray(t)||t.constructor){case!0:return n.children.forEach(((n,i)=>r[i].set(e,t[i])));case Map:return n.children.forEach(((n,i)=>r[i].set(e,t.get(n.name))));default:return n.children.forEach(((n,i)=>r[i].set(e,t[n.name])))}}setValid(e,t){return super.setValid(e,t)||this.children.forEach((r=>r.setValid(e,t))),t}addChild(e,t="".concat(this.numChildren)){let r=this.children.push(e);return this.type=new ve([...this.type.children,new ne(t,e.type,!0)]),r}},cr=class extends Te{};cr.prototype._setValue=Ua;var mi=class extends cr{};mi.prototype._setValue=ns;var gi=class extends cr{};gi.prototype._setValue=is;var hi=class extends cr{};hi.prototype._setValue=ss;var vi=class extends cr{};vi.prototype._setValue=as;var ur=class extends Te{};ur.prototype._setValue=Oa;var bi=class extends ur{};bi.prototype._setValue=os;var yi=class extends ur{};yi.prototype._setValue=ls;var Si=class extends ur{};Si.prototype._setValue=cs;var Ei=class extends ur{};Ei.prototype._setValue=us;var En=class extends Se{constructor(e){super(e),this._typeIds=new nr(Int8Array,0,1),"function"==typeof e.valueToChildTypeId&&(this._valueToChildTypeId=e.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(e,t){return this.set(this.length,e,t)}set(e,t,r){return void 0===r&&(r=this._valueToChildTypeId(this,t,e)),this.setValue(e,t,r),this}setValue(e,t,r){this._typeIds.set(e,r);let n=this.type.typeIdToChildIndex[r],i=this.children[n];null==i||i.set(e,t)}addChild(e,t="".concat(this.children.length)){let r=this.children.push(e),{type:{children:n,mode:i,typeIds:s}}=this,a=[...n,new ne(t,e.type)];return this.type=new St(i,[...s,r],a),r}_valueToChildTypeId(e,t,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},Xs=class extends En{},Qs=class extends En{constructor(e){super(e),this._offsets=new nr(Int32Array)}setValue(e,t,r){let n=this._typeIds.set(e,r).buffer[e],i=this.getChildAt(this.type.typeIdToChildIndex[n]),s=this._offsets.set(e,i.length).buffer[e];null==i||i.set(s,t)}},wi=class extends je{constructor(e){super(e),this._values=new At(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,Pt(t))}_flushPending(e,t){}};wi.prototype._flushPending=yn.prototype._flushPending;var Li=class extends je{constructor(e){super(e),this._values=new At(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,Pt(t))}_flushPending(e,t){}};Li.prototype._flushPending=Sn.prototype._flushPending;var io=class extends R{visitNull(){return $s}visitBool(){return Ps}visitInt(){return lt}visitInt8(){return Gs}visitInt16(){return Us}visitInt32(){return Os}visitInt64(){return Rs}visitUint8(){return Hs}visitUint16(){return Ns}visitUint32(){return Ws}visitUint64(){return Vs}visitFloat(){return jr}visitFloat16(){return Ms}visitFloat32(){return ks}visitFloat64(){return Bs}visitUtf8(){return wi}visitLargeUtf8(){return Li}visitBinary(){return yn}visitLargeBinary(){return Sn}visitFixedSizeBinary(){return li}visitDate(){return Vr}visitDateDay(){return si}visitDateMillisecond(){return ai}visitTimestamp(){return cr}visitTimestampSecond(){return mi}visitTimestampMillisecond(){return gi}visitTimestampMicrosecond(){return hi}visitTimestampNanosecond(){return vi}visitTime(){return ur}visitTimeSecond(){return bi}visitTimeMillisecond(){return yi}visitTimeMicrosecond(){return Si}visitTimeNanosecond(){return Ei}visitDecimal(){return oi}visitList(){return zs}visitStruct(){return qs}visitUnion(){return En}visitDenseUnion(){return Qs}visitSparseUnion(){return Xs}visitDictionary(){return Is}visitInterval(){return $r}visitIntervalDayTime(){return ci}visitIntervalYearMonth(){return ui}visitDuration(){return lr}visitDurationSecond(){return _i}visitDurationMillisecond(){return di}visitDurationMicrosecond(){return fi}visitDurationNanosecond(){return pi}visitFixedSizeList(){return Cs}visitMap(){return js}},ec=new io,V=class extends R{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,r)=>this.compareFields(e,t[r])))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function We(e,t){return t instanceof e.constructor}function qr(e,t){return e===t||We(e,t)}function _r(e,t){return e===t||We(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function Ys(e,t){return e===t||We(e,t)&&e.precision===t.precision}function F_(e,t){return e===t||We(e,t)&&e.byteWidth===t.byteWidth}function so(e,t){return e===t||We(e,t)&&e.unit===t.unit}function Ai(e,t){return e===t||We(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Di(e,t){return e===t||We(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function x_(e,t){return e===t||We(e,t)&&e.children.length===t.children.length&&Rt.compareManyFields(e.children,t.children)}function T_(e,t){return e===t||We(e,t)&&e.children.length===t.children.length&&Rt.compareManyFields(e.children,t.children)}function ao(e,t){return e===t||We(e,t)&&e.mode===t.mode&&e.typeIds.every(((e,r)=>e===t.typeIds[r]))&&Rt.compareManyFields(e.children,t.children)}function P_(e,t){return e===t||We(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&Rt.visit(e.indices,t.indices)&&Rt.visit(e.dictionary,t.dictionary)}function oo(e,t){return e===t||We(e,t)&&e.unit===t.unit}function Fi(e,t){return e===t||We(e,t)&&e.unit===t.unit}function I_(e,t){return e===t||We(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&Rt.compareManyFields(e.children,t.children)}function C_(e,t){return e===t||We(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&Rt.compareManyFields(e.children,t.children)}V.prototype.visitNull=qr,V.prototype.visitBool=qr,V.prototype.visitInt=_r,V.prototype.visitInt8=_r,V.prototype.visitInt16=_r,V.prototype.visitInt32=_r,V.prototype.visitInt64=_r,V.prototype.visitUint8=_r,V.prototype.visitUint16=_r,V.prototype.visitUint32=_r,V.prototype.visitUint64=_r,V.prototype.visitFloat=Ys,V.prototype.visitFloat16=Ys,V.prototype.visitFloat32=Ys,V.prototype.visitFloat64=Ys,V.prototype.visitUtf8=qr,V.prototype.visitLargeUtf8=qr,V.prototype.visitBinary=qr,V.prototype.visitLargeBinary=qr,V.prototype.visitFixedSizeBinary=F_,V.prototype.visitDate=so,V.prototype.visitDateDay=so,V.prototype.visitDateMillisecond=so,V.prototype.visitTimestamp=Ai,V.prototype.visitTimestampSecond=Ai,V.prototype.visitTimestampMillisecond=Ai,V.prototype.visitTimestampMicrosecond=Ai,V.prototype.visitTimestampNanosecond=Ai,V.prototype.visitTime=Di,V.prototype.visitTimeSecond=Di,V.prototype.visitTimeMillisecond=Di,V.prototype.visitTimeMicrosecond=Di,V.prototype.visitTimeNanosecond=Di,V.prototype.visitDecimal=qr,V.prototype.visitList=x_,V.prototype.visitStruct=T_,V.prototype.visitUnion=ao,V.prototype.visitDenseUnion=ao,V.prototype.visitSparseUnion=ao,V.prototype.visitDictionary=P_,V.prototype.visitInterval=oo,V.prototype.visitIntervalDayTime=oo,V.prototype.visitIntervalYearMonth=oo,V.prototype.visitDuration=Fi,V.prototype.visitDurationSecond=Fi,V.prototype.visitDurationMillisecond=Fi,V.prototype.visitDurationMicrosecond=Fi,V.prototype.visitDurationNanosecond=Fi,V.prototype.visitFixedSizeList=I_,V.prototype.visitMap=C_;var Rt=new V;function Xr(e,t){return Rt.compareSchemas(e,t)}function tc(e,t){return Rt.compareFields(e,t)}function rc(e,t){return Rt.visit(e,t)}function zr(e){let t=e.type,r=new(ec.getVisitFn(t)())(e);if(t.children&&t.children.length>0){let n=e.children||[],i={nullValues:e.nullValues},s=Array.isArray(n)?(e,t)=>n[t]||i:({name:e})=>n[e]||i;for(let[e,n]of t.children.entries()){let{type:t}=n,i=s(n,e);r.children.push(zr(Object.assign(Object.assign({},i),{type:t})))}}return r}function Js(e,t){return M_(e,t.map((e=>e.data.concat())))}function M_(e,t){let r,n=[...e.fields],i=[],s={numBatches:t.reduce(((e,t)=>Math.max(e,t.length)),0)},a=0,o=0,l=-1,c=t.length,u=[];for(;s.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,l=-1;++l0&&(i[a++]=J({type:new ve(n),length:o,nullCount:0,children:u.slice()})))}return[e=e.assign(n),i.map((t=>new De(e,t)))]}function k_(e,t,r,n,i){var s;let a=(t+63&-64)>>3;for(let o=-1,l=n.length;++o=t)c===t?r[o]=l:(r[o]=l.slice(0,t),i.numBatches=Math.max(i.numBatches,n[o].unshift(l.slice(t,c-t))));else{let n=e[o];e[o]=n.clone({nullable:!0}),r[o]=null!==(s=null==l?void 0:l._changeLengthAndBackfillNullBitmap(t))&&void 0!==s?s:J({type:n.type,length:t,nullCount:t,nullBitmap:new Uint8Array(a)})}}return r}var nc,Ve=class e{constructor(...t){var r,n;if(0===t.length)return this.batches=[],this.schema=new de([]),this._offsets=[0],this;let i,s;t[0]instanceof de&&(i=t.shift()),t.at(-1)instanceof Uint32Array&&(s=t.pop());let a=t=>{if(t){if(t instanceof De)return[t];if(t instanceof e)return t.batches;if(t instanceof ce){if(t.type instanceof ve)return[new De(new de(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((e=>a(e)));if("function"==typeof t[Symbol.iterator])return[...t].flatMap((e=>a(e)));if("object"==typeof t){let e=Object.keys(t),r=e.map((e=>new se([t[e]]))),n=null!=i?i:new de(e.map(((e,t)=>new ne(String(e),r[t].type,r[t].nullable)))),[,s]=Js(n,r);return 0===s.length?[new De(t)]:s}}}return[]},o=t.flatMap((e=>a(e)));if(i=null!==(n=null!=i?i:null===(r=o[0])||void 0===r?void 0:r.schema)&&void 0!==n?n:new de([]),!(i instanceof de))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let e of o){if(!(e instanceof De))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Xr(i,e.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=o,this._offsets=null!=s?s:Es(this.data)}get data(){return this.batches.map((({data:e})=>e))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((e,t)=>e+t.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=Ss(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(Gr(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?mn.visit(new se(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return"[\n ".concat(this.toArray().join(",\n "),"\n]")}concat(...t){let r=this.schema,n=this.data.concat(t.flatMap((({data:e})=>e)));return new e(r,n.map((e=>new De(r,e))))}slice(t,r){let n=this.schema;[t,r]=Yn({length:this.numRows},t,r);let i=ws(this.data,this._offsets,t,r);return new e(n,i.map((e=>new De(n,e))))}getChild(e){return this.getChildAt(this.schema.fields.findIndex((t=>t.name===e)))}getChildAt(e){if(e>-1&&et.children[e]));if(0===t.length){let{type:r}=this.schema.fields[e],n=J({type:r,length:0,nullCount:0});t.push(n._changeLengthAndBackfillNullBitmap(this.numRows))}return new se(t)}return null}setChild(e,t){var r;return this.setChildAt(null===(r=this.schema.fields)||void 0===r?void 0:r.findIndex((t=>t.name===e)),t)}setChildAt(t,r){let n=this.schema,i=[...this.batches];if(t>-1&&tthis.getChildAt(t)));[e[t],a[t]]=[s,r],[n,i]=Js(n,a)}return new e(n,i)}select(e){let t=this.schema.fields.reduce(((e,t,r)=>e.set(t.name,r)),new Map);return this.selectAt(e.map((e=>t.get(e))).filter((e=>e>-1)))}selectAt(t){let r=this.schema.selectAt(t),n=this.batches.map((e=>e.selectAt(t)));return new e(r,n)}assign(t){let r=this.schema.fields,[n,i]=t.schema.fields.reduce(((e,t,n)=>{let[i,s]=e,a=r.findIndex((e=>e.name===t.name));return~a?s[a]=n:i.push(n),e}),[[],[]]),s=this.schema.assign(t.schema),a=[...r.map(((e,t)=>[t,i[t]])).map((([e,r])=>void 0===r?this.getChildAt(e):t.getChildAt(r))),...n.map((e=>t.getChildAt(e)))].filter(Boolean);return new e(...Js(s,a))}};nc=Symbol.toStringTag,Ve[nc]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=pn(Zn),e.get=pn(xe.getVisitFn(v.Struct)),e.set=Ls(Ge.getVisitFn(v.Struct)),e.indexOf=As(Hr.getVisitFn(v.Struct)),"Table"))(Ve.prototype);var sc,De=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof de))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=J({nullCount:0,type:new ve(this.schema.fields),children:this.schema.fields.map((e=>J({type:e.type,nullCount:0})))})]=e,!(this.data instanceof ce))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=ic(this.schema,this.data.children);break;case 1:{let[t]=e,{fields:r,children:n,length:i}=Object.keys(t).reduce(((e,r,n)=>(e.children[n]=t[r],e.length=Math.max(e.length,t[r].length),e.fields[n]=ne.new({name:r,type:t[r].type,nullable:!0}),e)),{length:0,fields:new Array,children:new Array}),s=new de(r),a=J({type:new ve(r),length:i,children:n,nullCount:0});[this.schema,this.data]=ic(s,a.children,i);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=ac(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return xe.visit(this.data,e)}at(e){return this.get(Gr(e,this.numRows))}set(e,t){return Ge.visit(this.data,e,t)}indexOf(e,t){return Hr.visit(this.data,e,t)}[Symbol.iterator](){return mn.visit(new se([this.data]))}toArray(){return[...this]}concat(...e){return new Ve(this.schema,[this,...e])}slice(t,r){let[n]=new se([this.data]).slice(t,r).data;return new e(this.schema,n)}getChild(e){var t;return this.getChildAt(null===(t=this.schema.fields)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(e){return e>-1&&et.name===e)),t)}setChildAt(t,r){let n=this.schema,i=this.data;if(t>-1&&tt.name===e));~t&&(i[t]=this.data.children[t])}return new e(r,J({type:n,length:this.numRows,children:i}))}selectAt(t){let r=this.schema.selectAt(t),n=t.map((e=>this.data.children[e])).filter(Boolean),i=J({type:new ve(r.fields),length:this.numRows,children:n});return new e(r,i)}};function ic(e,t,r=t.reduce(((e,t)=>Math.max(e,t.length)),0)){var n;let i=[...e.fields],s=[...t],a=(r+63&-64)>>3;for(let[o,l]of e.fields.entries()){let e=t[o];(!e||e.length!==r)&&(i[o]=l.clone({nullable:!0}),s[o]=null!==(n=null==e?void 0:e._changeLengthAndBackfillNullBitmap(r))&&void 0!==n?n:J({type:l.type,length:r,nullCount:r,nullBitmap:new Uint8Array(a)}))}return[e.assign(i),J({type:new ve(i),length:r,children:s})]}function ac(e,t,r=new Map){var n,i;if((null!==(n=null==e?void 0:e.length)&&void 0!==n?n:0)>0&&(null==e?void 0:e.length)===(null==t?void 0:t.length))for(let n=-1,s=e.length;++n(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(De.prototype);var Qr=class extends De{constructor(e){let t=e.fields.map((e=>J({type:e.type})));super(e,J({type:new ve(e.fields),nullCount:0,children:t}))}},Dt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ue.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):ie.NONE}header(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,12);return r?(t||new Ce).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,ue.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,ie.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt("0"))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(t,r,n,i,s,a){return e.startMessage(t),e.addVersion(t,r),e.addHeaderType(t,n),e.addHeader(t,i),e.addBodyLength(t,s),e.addCustomMetadata(t,a),e.endMessage(t)}},lo=class extends R{visit(e,t){return null==e||null==t?void 0:super.visit(e,t)}visitNull(e,t){return zn.startNull(t),zn.endNull(t)}visitInt(e,t){return gt.startInt(t),gt.addBitWidth(t,e.bitWidth),gt.addIsSigned(t,e.isSigned),gt.endInt(t)}visitFloat(e,t){return Sr.startFloatingPoint(t),Sr.addPrecision(t,e.precision),Sr.endFloatingPoint(t)}visitBinary(e,t){return Rn.startBinary(t),Rn.endBinary(t)}visitLargeBinary(e,t){return Nn.startLargeBinary(t),Nn.endLargeBinary(t)}visitBool(e,t){return Hn.startBool(t),Hn.endBool(t)}visitUtf8(e,t){return $n.startUtf8(t),$n.endUtf8(t)}visitLargeUtf8(e,t){return Wn.startLargeUtf8(t),Wn.endLargeUtf8(t)}visitDecimal(e,t){return kt.startDecimal(t),kt.addScale(t,e.scale),kt.addPrecision(t,e.precision),kt.addBitWidth(t,e.bitWidth),kt.endDecimal(t)}visitDate(e,t){return hr.startDate(t),hr.addUnit(t,e.unit),hr.endDate(t)}visitTime(e,t){return Wt.startTime(t),Wt.addUnit(t,e.unit),Wt.addBitWidth(t,e.bitWidth),Wt.endTime(t)}visitTimestamp(e,t){let r=e.timezone&&t.createString(e.timezone)||void 0;return Vt.startTimestamp(t),Vt.addUnit(t,e.unit),void 0!==r&&Vt.addTimezone(t,r),Vt.endTimestamp(t)}visitInterval(e,t){return Er.startInterval(t),Er.addUnit(t,e.unit),Er.endInterval(t)}visitDuration(e,t){return vr.startDuration(t),vr.addUnit(t,e.unit),vr.endDuration(t)}visitList(e,t){return Vn.startList(t),Vn.endList(t)}visitStruct(e,t){return jn.startStruct_(t),jn.endStruct_(t)}visitUnion(e,t){ht.startTypeIdsVector(t,e.typeIds.length);let r=ht.createTypeIdsVector(t,e.typeIds);return ht.startUnion(t),ht.addMode(t,e.mode),ht.addTypeIds(t,r),ht.endUnion(t)}visitDictionary(e,t){let r=this.visit(e.indices,t);return Mt.startDictionaryEncoding(t),Mt.addId(t,BigInt(e.id)),Mt.addIsOrdered(t,e.isOrdered),void 0!==r&&Mt.addIndexType(t,r),Mt.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return br.startFixedSizeBinary(t),br.addByteWidth(t,e.byteWidth),br.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return yr.startFixedSizeList(t),yr.addListSize(t,e.listSize),yr.endFixedSizeList(t)}visitMap(e,t){return wr.startMap(t),wr.addKeysSorted(t,e.keysSorted),wr.endMap(t)}},Ks=new lo;function uc(e,t=new Map){return new de(G_(e,t),Zs(e.metadata),t)}function co(e){return new Ue(e.count,dc(e.columns),fc(e.columns))}function _c(e){return new qe(co(e.data),e.id,e.isDelta)}function G_(e,t){return(e.fields||[]).filter(Boolean).map((e=>ne.fromJSON(e,t)))}function oc(e,t){return(e.children||[]).filter(Boolean).map((e=>ne.fromJSON(e,t)))}function dc(e){return(e||[]).reduce(((e,t)=>[...e,new ct(t.count,U_(t.VALIDITY)),...dc(t.children)]),[])}function fc(e,t=[]){for(let r=-1,n=(e||[]).length;++re+ +(0===t)),0)}function pc(e,t){let r,n,i,s,a,o;return t&&(s=e.dictionary)?t.has(r=s.id)?(n=(n=s.indexType)?lc(n):new Bt,o=new et(t.get(r),n,r,s.isOrdered),i=new ne(e.name,o,e.nullable,Zs(e.metadata))):(n=(n=s.indexType)?lc(n):new Bt,t.set(r,a=cc(e,oc(e,t))),o=new et(a,n,r,s.isOrdered),i=new ne(e.name,o,e.nullable,Zs(e.metadata))):(a=cc(e,oc(e,t)),i=new ne(e.name,a,e.nullable,Zs(e.metadata))),i||null}function Zs(e=[]){return new Map(e.map((({key:e,value:t})=>[e,t])))}function lc(e){return new Me(e.isSigned,e.bitWidth)}function cc(e,t){let r=e.type.name;switch(r){case"NONE":case"null":return new Ne;case"binary":return new zt;case"largebinary":return new jt;case"utf8":return new $t;case"largeutf8":return new qt;case"bool":return new Xt;case"list":return new yt((t||[])[0]);case"struct":case"struct_":return new ve(t||[])}switch(r){case"int":{let t=e.type;return new Me(t.isSigned,t.bitWidth)}case"floatingpoint":{let t=e.type;return new at(pe[t.precision])}case"decimal":{let t=e.type;return new Qt(t.scale,t.precision,t.bitWidth)}case"date":{let t=e.type;return new Yt(Ae[t.unit])}case"time":{let t=e.type;return new Jt(U[t.unit],t.bitWidth)}case"timestamp":{let t=e.type;return new Kt(U[t.unit],t.timezone)}case"interval":{let t=e.type;return new Zt(Ie[t.unit])}case"duration":{let t=e.type;return new er(U[t.unit])}case"union":{let r=e.type,[n,...i]=(r.mode+"").toLowerCase(),s=n.toUpperCase()+i.join("");return new St(ge[s],r.typeIds||[],t||[])}case"fixedsizebinary":{let t=e.type;return new tr(t.byteWidth)}case"fixedsizelist":{let r=e.type;return new Et(r.listSize,(t||[])[0])}case"map":{let r=e.type;return new wt((t||[])[0],r.keysSorted)}}throw new Error('Unrecognized type: "'.concat(r,'"'))}var O_=Br,R_=Ke,Xe=class e{static fromJSON(t,r){let n=new e(0,ue.V5,r);return n._createHeader=H_(t,r),n}static decode(t){t=new R_(j(t));let r=Dt.getRootAsMessage(t),n=r.bodyLength(),i=r.version(),s=r.headerType(),a=new e(n,i,s);return a._createHeader=N_(r,s),a}static encode(e){let t=new O_,r=-1;return e.isSchema()?r=de.encode(t,e.header()):e.isRecordBatch()?r=Ue.encode(t,e.header()):e.isDictionaryBatch()&&(r=qe.encode(t,e.header())),Dt.startMessage(t),Dt.addVersion(t,ue.V5),Dt.addHeader(t,r),Dt.addHeaderType(t,e.headerType),Dt.addBodyLength(t,BigInt(e.bodyLength)),Dt.finishMessageBuffer(t,Dt.endMessage(t)),t.asUint8Array()}static from(t,r=0){if(t instanceof de)return new e(0,ue.V5,ie.Schema,t);if(t instanceof Ue)return new e(r,ue.V5,ie.RecordBatch,t);if(t instanceof qe)return new e(r,ue.V5,ie.DictionaryBatch,t);throw new Error("Unrecognized Message header: ".concat(t))}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===ie.Schema}isRecordBatch(){return this.headerType===ie.RecordBatch}isDictionaryBatch(){return this.headerType===ie.DictionaryBatch}constructor(e,t,r,n){this._version=t,this._headerType=r,this.body=new Uint8Array(0),n&&(this._createHeader=()=>n),this._bodyLength=ae(e)}},Ue=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,r){this._nodes=t,this._buffers=r,this._length=ae(e)}},qe=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,r=!1){this._data=e,this._isDelta=r,this._id=ae(t)}},$e=class{constructor(e,t){this.offset=ae(e),this.length=ae(t)}},ct=class{constructor(e,t){this.length=ae(e),this.nullCount=ae(t)}};function H_(e,t){return()=>{switch(t){case ie.Schema:return de.fromJSON(e);case ie.RecordBatch:return Ue.fromJSON(e);case ie.DictionaryBatch:return qe.fromJSON(e)}throw new Error("Unrecognized Message type: { name: ".concat(ie[t],", type: ").concat(t," }"))}}function N_(e,t){return()=>{switch(t){case ie.Schema:return de.decode(e.header(new ze),new Map,e.version());case ie.RecordBatch:return Ue.decode(e.header(new Ze),e.version());case ie.DictionaryBatch:return qe.decode(e.header(new Nt),e.version())}throw new Error("Unrecognized Message type: { name: ".concat(ie[t],", type: ").concat(t," }"))}}function W_(e,t=new Map,r=ue.V5){let n=Q_(e,t);return new de(n,ea(e),t,r)}function V_(e,t=ue.V5){if(null!==e.compression())throw new Error("Record batch compression not implemented");return new Ue(e.length(),q_(e),X_(e,t))}function z_(e,t=ue.V5){return new qe(Ue.decode(e.data(),t),e.id(),e.isDelta())}function j_(e){return new $e(e.offset(),e.length())}function $_(e){return new ct(e.length(),e.nullCount())}function q_(e){let t=[];for(let r,n=-1,i=-1,s=e.nodesLength();++nne.encode(e,t)));ze.startFieldsVector(e,r.length);let n=ze.createFieldsVector(e,r),i=t.metadata&&t.metadata.size>0?ze.createCustomMetadataVector(e,[...t.metadata].map((([t,r])=>{let n=e.createString("".concat(t)),i=e.createString("".concat(r));return Ce.startKeyValue(e),Ce.addKey(e,n),Ce.addValue(e,i),Ce.endKeyValue(e)}))):-1;return ze.startSchema(e),ze.addFields(e,n),ze.addEndianness(e,nd?gr.Little:gr.Big),-1!==i&&ze.addCustomMetadata(e,i),ze.endSchema(e)}function K_(e,t){let r=-1,n=-1,i=-1,s=t.type,a=t.typeId;G.isDictionary(s)?(a=s.dictionary.typeId,i=Ks.visit(s,e),n=Ks.visit(s.dictionary,e)):n=Ks.visit(s,e);let o=(s.children||[]).map((t=>ne.encode(e,t))),l=Re.createChildrenVector(e,o),c=t.metadata&&t.metadata.size>0?Re.createCustomMetadataVector(e,[...t.metadata].map((([t,r])=>{let n=e.createString("".concat(t)),i=e.createString("".concat(r));return Ce.startKeyValue(e),Ce.addKey(e,n),Ce.addValue(e,i),Ce.endKeyValue(e)}))):-1;return t.name&&(r=e.createString(t.name)),Re.startField(e),Re.addType(e,n),Re.addTypeType(e,a),Re.addChildren(e,l),Re.addNullable(e,!!t.nullable),-1!==r&&Re.addName(e,r),-1!==i&&Re.addDictionary(e,i),-1!==c&&Re.addCustomMetadata(e,c),Re.endField(e)}function Z_(e,t){let r=t.nodes||[],n=t.buffers||[];Ze.startNodesVector(e,r.length);for(let t of r.slice().reverse())ct.encode(e,t);let i=e.endVector();Ze.startBuffersVector(e,n.length);for(let t of n.slice().reverse())$e.encode(e,t);let s=e.endVector();return Ze.startRecordBatch(e),Ze.addLength(e,BigInt(t.length)),Ze.addNodes(e,i),Ze.addBuffers(e,s),Ze.endRecordBatch(e)}function ed(e,t){let r=Ue.encode(e,t.data);return Nt.startDictionaryBatch(e),Nt.addId(e,BigInt(t.id)),Nt.addIsDelta(e,t.isDelta),Nt.addData(e,r),Nt.endDictionaryBatch(e)}function td(e,t){return sn.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function rd(e,t){return nn.createBuffer(e,BigInt(t.offset),BigInt(t.length))}ne.encode=K_,ne.decode=Y_,ne.fromJSON=pc,de.encode=J_,de.decode=W_,de.fromJSON=uc,Ue.encode=Z_,Ue.decode=V_,Ue.fromJSON=co,qe.encode=ed,qe.decode=z_,qe.fromJSON=_c,ct.encode=td,ct.decode=$_,$e.encode=rd,$e.decode=j_;var nd=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]})(),_o=e=>"Expected ".concat(ie[e]," Message in stream, but was null or length 0."),fo=e=>"Header pointer of flatbuffer-encoded ".concat(ie[e]," Message is null or length 0."),vc=(e,t)=>"Expected to read ".concat(e," metadata bytes, but only read ").concat(t,"."),bc=(e,t)=>"Expected to read ".concat(e," bytes for message body, but only read ").concat(t,"."),wn=class{constructor(e){this.source=e instanceof Ot?e:new Ot(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||-1===e.value&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?be:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(_o(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let t=j(this.source.read(e));if(t.byteLength[...t,...r.VALIDITY&&[r.VALIDITY]||[],...r.TYPE_ID&&[r.TYPE_ID]||[],...r.OFFSET&&[r.OFFSET]||[],...r.DATA&&[r.DATA]||[],...e(r.children)]),[])}(this._body)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(_o(e));return t.value}readSchema(){let e=ie.Schema,t=this.readMessage(e),r=null==t?void 0:t.header();if(!t||!r)throw new Error(fo(e));return r}},ta=4,uo="ARROW1",Ln=new Uint8Array(uo.length);for(let e=0;ethis)):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Be.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Be.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof e?t:Ii(t)?sd(t):Mi(t)?ld(t):dt(t)?B(this,void 0,void 0,(function*(){return yield e.from(yield t)})):ki(t)||Mn(t)||Gi(t)||nt(t)?od(new ot(t)):ad(new Ot(t))}static readAll(t){return t instanceof e?t.isSync()?Sc(t):Ec(t):Ii(t)||ArrayBuffer.isView(t)||ft(t)||Ci(t)?Sc(t):Ec(t)}},Ht=class extends Oe{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Ye(this,arguments,(function*(){yield ee(yield*Mr(tn(_t(this[Symbol.iterator]()))))}))}},Tr=class extends Oe{constructor(e){super(e),this._impl=e}readAll(){return B(this,void 0,void 0,(function*(){var e,t,r,n;let i=new Array;try{for(var s,a=!0,o=_t(this);!(e=(s=yield o.next()).done);a=!0){n=s.value,a=!1;let e=n;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(r=o.return)&&(yield r.call(o))}finally{if(t)throw t.error}}return i}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},Pr=class extends Ht{constructor(e){super(e),this._impl=e}},Pi=class extends Tr{constructor(e){super(e),this._impl=e}},na=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){let r=this._loadVectors(e,t,this.schema.fields),n=J({type:new ve(this.schema.fields),length:e.length,children:r});return new De(this.schema,n)}_loadDictionaryBatch(e,t){let{id:r,isDelta:n}=e,{dictionaries:i,schema:s}=this,a=i.get(r),o=s.dictionaries.get(r),l=this._loadVectors(e.data,t,[o]);return(a&&n?a.concat(new se(l)):new se(l)).memoize()}_loadVectors(e,t,r){return new ii(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(r)}},Dn=class extends na{constructor(e,t){super(t),this._reader=Ii(e)?new Ti(this._handle=e):new wn(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=wc(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):be}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):be}next(){if(this.closed)return be;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),n=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,n)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),n=t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Qr(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Fn=class extends na{constructor(e,t){super(t),this._reader=new xi(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return B(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(e){return B(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=wc(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(e){return B(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):be}))}return(e){return B(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):be}))}next(){return B(this,void 0,void 0,(function*(){if(this.closed)return be;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),n=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,n)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),n=yield t.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(r,n);this.dictionaries.set(r.id,i)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Qr(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(e){return B(this,void 0,void 0,(function*(){return yield this._reader.readMessage(e)}))}},ia=class extends Dn{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof ti?e:new ti(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();let r=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(r&&this._handle.seek(r.offset)){let e=this._reader.readMessage(ie.RecordBatch);if(null!=e&&e.isRecordBatch()){let t=e.header(),r=this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,r)}}return null}_readDictionaryBatch(e){var t;let r=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(r&&this._handle.seek(r.offset)){let e=this._reader.readMessage(ie.DictionaryBatch);if(null!=e&&e.isDictionaryBatch()){let t=e.header(),r=this._reader.readMessageBody(e.bodyLength),n=this._loadDictionaryBatch(t,r);this.dictionaries.set(t.id,n)}}}_readFooter(){let{_handle:e}=this,t=e.size-po,r=e.readInt32(t),n=e.readAt(t-r,r);return ir.decode(n)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return B(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)}))}readRecordBatch(e){return B(this,void 0,void 0,(function*(){var t;if(this.closed)return null;this._footer||(yield this.open());let r=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(r&&(yield this._handle.seek(r.offset))){let e=yield this._reader.readMessage(ie.RecordBatch);if(null!=e&&e.isRecordBatch()){let t=e.header(),r=yield this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,r)}}return null}))}_readDictionaryBatch(e){return B(this,void 0,void 0,(function*(){var t;let r=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(r&&(yield this._handle.seek(r.offset))){let e=yield this._reader.readMessage(ie.DictionaryBatch);if(null!=e&&e.isDictionaryBatch()){let t=e.header(),r=yield this._reader.readMessageBody(e.bodyLength),n=this._loadDictionaryBatch(t,r);this.dictionaries.set(t.id,n)}}}))}_readFooter(){return B(this,void 0,void 0,(function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-po,r=yield e.readInt32(t),n=yield e.readAt(t-r,r);return ir.decode(n)}))}_readNextMessageAndValidate(e){return B(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?ra(t)?new Pr(new ia(e.read())):new Ht(new Dn(e)):new Ht(new Dn(function*(){}()))}function od(e){return B(this,void 0,void 0,(function*(){let t=yield e.peek(An+7&-8);return t&&t.byteLength>=4?ra(t)?new Pr(new ia(yield e.read())):new Tr(new Fn(e)):new Tr(new Fn(function(){return Ye(this,arguments,(function*(){}))}()))}))}function ld(e){return B(this,void 0,void 0,(function*(){let{size:t}=yield e.stat(),r=new xr(e,t);return t>=yc&&ra(yield r.readAt(0,An+7&-8))?new Pi(new mo(r)):new Tr(new Fn(r))}))}var we=class e extends R{static assemble(...t){let r=e=>e.flatMap((e=>Array.isArray(e)?r(e):e instanceof De?e.data.children:e.data)),n=new e;return n.visitMany(r(t)),n}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(e){if(e instanceof se)return this.visitMany(e.data),this;let{type:t}=e;if(!G.isDictionary(t)){let{length:r}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(G.isUnion(t))this.nodes.push(new ct(r,0));else{let{nullCount:n}=e;G.isNull(t)||Ft.call(this,n<=0?new Uint8Array(0):Or(e.offset,r,e.nullBitmap)),this.nodes.push(new ct(r,n))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function Ft(e){let t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new $e(this._byteLength,t)),this._byteLength+=t,this}function cd(e){var t;let{type:r,length:n,typeIds:i,valueOffsets:s}=e;if(Ft.call(this,i),r.mode===ge.Sparse)return ho.call(this,e);if(r.mode===ge.Dense){if(e.offset<=0)return Ft.call(this,s),ho.call(this,e);{let a=new Int32Array(n),o=Object.create(null),l=Object.create(null);for(let e,r,c=-1;++c{let i=r.typeIds[t],s=o[i],a=l[i];return e.slice(s,Math.min(n,a))})))}}return this}function ud(e){let t;return e.nullCount>=e.length?Ft.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?Ft.call(this,Or(e.offset,e.length,t)):Ft.call(this,Rr(e.values))}function dr(e){return Ft.call(this,e.values.subarray(0,e.length*e.stride))}function sa(e){let{length:t,values:r,valueOffsets:n}=e,i=ae(n[0]),s=ae(n[t]),a=Math.min(s-i,r.byteLength-i);return Ft.call(this,Oi(-i,t+1,n)),Ft.call(this,r.subarray(i,i+a)),this}function vo(e){let{length:t,valueOffsets:r}=e;if(r){let{0:n,[t]:i}=r;return Ft.call(this,Oi(-n,t+1,r)),this.visit(e.children[0].slice(n,i-n))}return this.visit(e.children[0])}function ho(e){return this.visitMany(e.type.children.map(((t,r)=>e.children[r])).filter(Boolean))[0]}we.prototype.visitBool=ud,we.prototype.visitInt=dr,we.prototype.visitFloat=dr,we.prototype.visitUtf8=sa,we.prototype.visitLargeUtf8=sa,we.prototype.visitBinary=sa,we.prototype.visitLargeBinary=sa,we.prototype.visitFixedSizeBinary=dr,we.prototype.visitDate=dr,we.prototype.visitTimestamp=dr,we.prototype.visitTime=dr,we.prototype.visitDecimal=dr,we.prototype.visitList=vo,we.prototype.visitStruct=ho,we.prototype.visitUnion=cd,we.prototype.visitInterval=dr,we.prototype.visitDuration=dr,we.prototype.visitFixedSizeList=vo,we.prototype.visitMap=vo;var Yr=class extends Wr{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}constructor(e){super(),this._position=0,this._started=!1,this._sink=new Ut,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,He(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!=typeof e.autoDestroy||e.autoDestroy,this._writeLegacyIpcFormat="boolean"==typeof e.writeLegacyIpcFormat&&e.writeLegacyIpcFormat}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return dt(e)?e.then((e=>this.writeAll(e))):nt(e)?yo(this,e):bo(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,t=null){return e===this._sink||e instanceof Ut?this._sink=e:(this._sink=new Ut,e&&Ro(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&Ho(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!t||!Xr(t,this._schema))&&(null==t?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}write(e){let t=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==e)return this.finish()&&void 0;if(e instanceof Ve&&!(t=e.schema))return this.finish()&&void 0;if(e instanceof De&&!(t=e.schema))return this.finish()&&void 0;if(t&&!Xr(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof De?e instanceof Qr||this._writeRecordBatch(e):e instanceof Ve?this.writeAll(e.batches):ft(e)&&this.writeAll(e)}_writeMessage(e,t=8){let r=t-1,n=Xe.encode(e),i=n.byteLength,s=this._writeLegacyIpcFormat?4:8,a=i+s+r&~r,o=a-i-s;return e.headerType===ie.RecordBatch?this._recordBatchBlocks.push(new sr(a,e.bodyLength,this._position)):e.headerType===ie.DictionaryBatch&&this._dictionaryBlocks.push(new sr(a,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-s)),i>0&&this._write(n),this._writePadding(o)}_write(e){if(this._started){let t=j(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(Xe.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Ln)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:t,nodes:r,bufferRegions:n,buffers:i}=we.assemble(e),s=new Ue(e.numRows,r,n),a=Xe.from(s,t);return this._writeDictionaries(e)._writeMessage(a)._writeBodyBuffers(i)}_writeDictionaryBatch(e,t,r=!1){let{byteLength:n,nodes:i,bufferRegions:s,buffers:a}=we.assemble(new se([e])),o=new Ue(e.length,i,s),l=new qe(o,t,r),c=Xe.from(l,n);return this._writeMessage(c)._writeBodyBuffers(a)}_writeBodyBuffers(e){let t,r,n;for(let i=-1,s=e.length;++i0&&(this._write(t),(n=(r+7&-8)-r)>0&&this._writePadding(n));return this}_writeDictionaries(e){var t,r;for(let[n,i]of e.dictionaries){let e=null!==(t=null==i?void 0:i.data)&&void 0!==t?t:[],s=this._seenDictionaries.get(n),a=null!==(r=this._dictionaryDeltaOffsets.get(n))&&void 0!==r?r:0;if(s&&s.data[0]===e[0]){if(a0);this._seenDictionaries.set(n,i),this._dictionaryDeltaOffsets.set(n,e.length)}return this}},Jr=class e extends Yr{static writeAll(t,r){let n=new e(r);return dt(t)?t.then((e=>n.writeAll(e))):nt(t)?yo(n,t):bo(n,t)}},Kr=class e extends Yr{static writeAll(t){let r=new e;return dt(t)?t.then((e=>r.writeAll(e))):nt(t)?yo(r,t):bo(r,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,t,r=!1){if(!r&&this._seenDictionaries.has(t))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(e,t,r)}_writeFooter(e){let t=ir.encode(new ir(e,ue.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}};function bo(e,t){let r=t;t instanceof Ve&&(r=t.batches,e.reset(void 0,t.schema));for(let t of r)e.write(t);return e.finish()}function yo(e,t){return B(this,void 0,void 0,(function*(){var r,n,i,s,a,o,l;try{for(r=!0,n=_t(t);!(s=(i=yield n.next()).done);r=!0){l=i.value,r=!1;let t=l;e.write(t)}}catch(e){a={error:e}}finally{try{!r&&!s&&(o=n.return)&&(yield o.call(n))}finally{if(a)throw a.error}}return e.finish()}))}function Lc(e,t){if(nt(e))return dd(e,t);if(ft(e))return _d(e,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function _d(e,t){let r=null,n="bytes"===(null==t?void 0:t.type)||!1,i=(null==t?void 0:t.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(t){s(t,r||(r=e[Symbol.iterator]()))},pull(e){r?s(e,r):e.close()},cancel(){null!=r&&r.return&&r.return(),r=null}}),Object.assign({highWaterMark:n?i:void 0},t));function s(e,t){let r,i=null,s=e.desiredSize||null;for(;!(i=t.next(n?s:null)).done;)if(ArrayBuffer.isView(i.value)&&(r=j(i.value))&&(null!=s&&n&&(s=s-r.byteLength+1),i.value=r),e.enqueue(i.value),null!=s&&--s<=0)return;e.close()}}function dd(e,t){let r=null,n="bytes"===(null==t?void 0:t.type)||!1,i=(null==t?void 0:t.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(t){return B(this,void 0,void 0,(function*(){yield s(t,r||(r=e[Symbol.asyncIterator]()))}))},pull(e){return B(this,void 0,void 0,(function*(){r?yield s(e,r):e.close()}))},cancel(){return B(this,void 0,void 0,(function*(){null!=r&&r.return&&(yield r.return()),r=null}))}}),Object.assign({highWaterMark:n?i:void 0},t));function s(e,t){return B(this,void 0,void 0,(function*(){let r,i=null,s=e.desiredSize||null;for(;!(i=yield t.next(n?s:null)).done;)if(ArrayBuffer.isView(i.value)&&(r=j(i.value))&&(null!=s&&n&&(s=s-r.byteLength+1),i.value=r),e.enqueue(i.value),null!=s&&--s<=0)return;e.close()}))}}function Fc(e){return new So(e)}var So=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{readableStrategy:t,writableStrategy:r,queueingStrategy:n="count"}=e,i=Uo(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=zr(i),this._getSize="bytes"!==n?Ac:Dc;let{highWaterMark:s=("bytes"===n?Math.pow(2,14):1e3)}=Object.assign({},t),{highWaterMark:a=("bytes"===n?Math.pow(2,14):1e3)}=Object.assign({},r);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:e=>{this._maybeFlush(this._builder,this._controller=e)},start:e=>{this._maybeFlush(this._builder,this._controller=e)}},{highWaterMark:s,size:"bytes"!==n?Ac:Dc}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:e=>this._writeValueAndReturnChunkSize(e)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){null!=t&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,null==t?e.close():e.enqueue(t)}},Ac=e=>{var t;return null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0},Dc=e=>{var t;return null!==(t=null==e?void 0:e.byteLength)&&void 0!==t?t:0};function aa(e,t){let r=new Ut,n=null,i=new ReadableStream({cancel(){return B(this,void 0,void 0,(function*(){yield r.close()}))},start(e){return B(this,void 0,void 0,(function*(){yield s(e,n||(n=yield function(){return B(this,void 0,void 0,(function*(){return yield(yield Oe.from(r)).open(t)}))}()))}))},pull(e){return B(this,void 0,void 0,(function*(){n?yield s(e,n):e.close()}))}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},e)),readable:i};function s(e,t){return B(this,void 0,void 0,(function*(){let r=e.desiredSize,n=null;for(;!(n=yield t.next()).done;)if(e.enqueue(n.value),null!=r&&--r<=0)return;e.close()}))}}function oa(e,t){let r=new this(e),n=new ot(r),i=new ReadableStream({cancel(){return B(this,void 0,void 0,(function*(){yield n.cancel()}))},pull(e){return B(this,void 0,void 0,(function*(){yield s(e)}))},start(e){return B(this,void 0,void 0,(function*(){yield s(e)}))}},Object.assign({highWaterMark:Math.pow(2,14)},t));return{writable:new WritableStream(r,e),readable:i};function s(e){return B(this,void 0,void 0,(function*(){let t=null,r=e.desiredSize;for(;t=yield n.read(r||null);)if(e.enqueue(t),null!=r&&(r-=t.byteLength)<=0)return;e.close()}))}}function la(e,t="stream"){return("stream"===t?Jr:Kr).writeAll(e).toUint8Array(!0)}var gd=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ca),no),Xa),Ma),Aa),qa),xa),{compareSchemas:Xr,compareFields:tc,compareTypes:rc});function xn(e){switch(e.typeId){case v.Binary:return{sqlType:"binary"};case v.Bool:return{sqlType:"bool"};case v.Date:return{sqlType:"date"};case v.DateDay:return{sqlType:"date32[d]"};case v.DateMillisecond:return{sqlType:"date64[ms]"};case v.Decimal:{let t=e;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case v.Float:return{sqlType:"float"};case v.Float16:return{sqlType:"float16"};case v.Float32:return{sqlType:"float32"};case v.Float64:return{sqlType:"float64"};case v.Int:return{sqlType:"int32"};case v.Int16:return{sqlType:"int16"};case v.Int32:return{sqlType:"int32"};case v.Int64:return{sqlType:"int64"};case v.Uint16:return{sqlType:"uint16"};case v.Uint32:return{sqlType:"uint32"};case v.Uint64:return{sqlType:"uint64"};case v.Uint8:return{sqlType:"uint8"};case v.IntervalDayTime:return{sqlType:"interval[dt]"};case v.IntervalYearMonth:return{sqlType:"interval[m]"};case v.List:return{sqlType:"list",valueType:xn(e.valueType)};case v.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:e.byteWidth};case v.Null:return{sqlType:"null"};case v.Utf8:return{sqlType:"utf8"};case v.Struct:return{sqlType:"struct",fields:e.children.map((e=>ca(e.name,e.type)))};case v.Map:{let t=e;return{sqlType:"map",keyType:xn(t.keyType),valueType:xn(t.valueType)}}case v.Time:return{sqlType:"time[s]"};case v.TimeMicrosecond:return{sqlType:"time[us]"};case v.TimeMillisecond:return{sqlType:"time[ms]"};case v.TimeNanosecond:return{sqlType:"time[ns]"};case v.TimeSecond:return{sqlType:"time[s]"};case v.Timestamp:return{sqlType:"timestamp",timezone:e.timezone||void 0};case v.TimestampSecond:return{sqlType:"timestamp[s]",timezone:e.timezone||void 0};case v.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:e.timezone||void 0};case v.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:e.timezone||void 0};case v.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error("unsupported arrow type: ".concat(e.toString()))}function ca(e,t){let r=xn(t);return r.name=e,r}Be.toDOMStream=Lc,Se.throughDOM=Fc,Oe.throughDOM=aa,Pr.throughDOM=aa,Ht.throughDOM=aa,Yr.throughDOM=oa,Kr.throughDOM=oa,Jr.throughDOM=oa;var ua=class{constructor(){this._bindings=null,this._nextMessageId=0}log(e){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:e},[])}sendOK(e){this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"OK",data:null},[])}failWith(e,t){let r={name:t.name,message:t.message,stack:t.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"ERROR",data:r},[])}async onMessage(e){switch(e.type){case"PING":return void this.sendOK(e);case"INSTANTIATE":null!=this._bindings&&this.failWith(e,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(e.data[0],e.data[1],(t=>{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"INSTANTIATE_PROGRESS",data:t},[])})),this.sendOK(e)}catch(t){console.log(t),this._bindings=null,this.failWith(e,t)}return}if(!this._bindings)return this.failWith(e,new Error("duckdb is not initialized"));try{switch(e.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(e);break;case"OPEN":this._bindings.open(e.data),this.sendOK(e);break;case"DROP_FILE":this._bindings.dropFile(e.data),this.sendOK(e);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(e);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(e);break;case"CONNECT":{let t=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"CONNECTION_INFO",data:t.useUnsafe(((e,t)=>t))},[]);break}case"DISCONNECT":this._bindings.disconnect(e.data),this.sendOK(e);break;case"CREATE_PREPARED":{let t=this._bindings.createPrepared(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"PREPARED_STATEMENT_ID",data:t},[]);break}case"CLOSE_PREPARED":this._bindings.closePrepared(e.data[0],e.data[1]),this.sendOK(e);break;case"RUN_PREPARED":{let t=this._bindings.runPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:t},[t.buffer]);break}case"RUN_QUERY":{let t=this._bindings.runQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:t},[t.buffer]);break}case"SEND_PREPARED":{let t=this._bindings.sendPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER",data:t},[t.buffer]);break}case"START_PENDING_QUERY":{let t=this._bindings.startPendingQuery(e.data[0],e.data[1],e.data[2]),r=[];t&&r.push(t.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:t},r);break}case"POLL_PENDING_QUERY":{let t=this._bindings.pollPendingQuery(e.data),r=[];t&&r.push(t.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:t},r);break}case"CANCEL_PENDING_QUERY":{let t=this._bindings.cancelPendingQuery(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SUCCESS",data:t},[]);break}case"FETCH_QUERY_RESULTS":{let t=this._bindings.fetchQueryResults(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_CHUNK",data:t},[t.buffer]);break}case"GET_TABLE_NAMES":{let t=this._bindings.getTableNames(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"TABLE_NAMES",data:t},[]);break}case"GLOB_FILE_INFOS":{let t=this._bindings.globFiles(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_INFOS",data:t},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(e.data[0],e.data[1],e.data[2],e.data[3]),this.sendOK(e);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(e.data[0],e.data[1]),this.sendOK(e);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(e.data[0],e.data[1],e.data[2],e.data[3]),this.sendOK(e);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(e.data[0],e.data[1]),this.sendOK(e);break;case"COPY_FILE_TO_BUFFER":{let t=this._bindings.copyFileToBuffer(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_BUFFER",data:t},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(e.data[0],e.data[1]),this.sendOK(e);break;case"EXPORT_FILE_STATISTICS":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(e.data)},[]);break;case"INSERT_ARROW_FROM_IPC_STREAM":this._bindings.insertArrowFromIPCStream(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"IMPORT_CSV_FROM_PATH":this._bindings.insertCSVFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"IMPORT_JSON_FROM_PATH":this._bindings.insertJSONFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"TOKENIZE":{let t=this._bindings.tokenize(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SCRIPT_TOKENS",data:t},[]);break}}}catch(t){return console.log(t),this.failWith(e,t)}}},Gc=Bo(Ic()),_a=class{constructor(e,t){this._bindings=e,this._conn=t}close(){this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}query(e){let t=this._bindings.runQuery(this._conn,e),r=Oe.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),new Ve(r)}async send(e,t=!1){let r=this._bindings.startPendingQuery(this._conn,e,t);for(;null==r;)r=await new Promise(((e,t)=>{try{e(this._bindings.pollPendingQuery(this._conn))}catch(e){console.log(e),t(e)}}));let n=new da(this._bindings,this._conn,r),i=Oe.from(n);return console.assert(i.isSync()),console.assert(i.isStream()),i}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(e){return this._bindings.getTableNames(this._conn,e)}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new Ao(this._bindings,this._conn,t)}createScalarFunction(e,t,r){this._bindings.createScalarFunction(this._conn,e,t,r)}insertArrowTable(e,t){let r=la(e,"stream");this.insertArrowFromIPCStream(r,t)}insertArrowFromIPCStream(e,t){this._bindings.insertArrowFromIPCStream(this._conn,e,t)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}},da=class{constructor(e,t,r){this.bindings=e,this.conn=t,this.header=r,this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=0==e.length,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},Ao=class{constructor(e,t,r){this.bindings=e,this.connectionId=t,this.statementId=r}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...e){let t=this.bindings.runPrepared(this.connectionId,this.statementId,e),r=Oe.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),new Ve(r)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),r=new da(this.bindings,this.connectionId,t),n=Oe.from(r);return console.assert(n.isSync()),console.assert(n.isStream()),n}},kc=new TextEncoder,Cc=new TextDecoder("utf-8");function Do(e,t,r){let n=kc.encode(r),i=e._malloc(n.byteLength),s=e.HEAPU8.subarray(i,i+n.byteLength);s.set(n),e.HEAPF64[0+(t>>3)]=1,e.HEAPF64[1+(t>>3)]=i,e.HEAPF64[2+(t>>3)]=s.byteLength}function xo(e){switch(e){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function Fo(e,t,r,n){let i=e.HEAPU8.subarray(t,t+n*xo(r));switch(r){case"UINT8":return new Uint8Array(i.buffer,i.byteOffset,n);case"INT8":return new Int8Array(i.buffer,i.byteOffset,n);case"INT32":return new Int32Array(i.buffer,i.byteOffset,n);case"FLOAT":return new Float32Array(i.buffer,i.byteOffset,n);case"DOUBLE":case"VARCHAR":return new Float64Array(i.buffer,i.byteOffset,n);default:return new Array(0)}}function Mc(e,t,r){let n=e.HEAPU8.subarray(t,t+r);return new Uint8Array(n.buffer,n.byteOffset,r)}function fa(e,t,r){let n=e.HEAPU8.subarray(t,t+8*r);return new Float64Array(n.buffer,n.byteOffset,r)}function Bc(e,t,r,n,i,s,a,o){try{let l=e._udfFunctions.get(n);if(!l)return void Do(t,r,"Unknown UDF with id: "+n);let c=Cc.decode(t.HEAPU8.subarray(i,i+s)),u=JSON.parse(c),_=fa(t,a,o/8),d=e=>{var r;let n=null;switch(void 0!==e.validityBuffer&&(n=Mc(t,_[e.validityBuffer],u.rows)),e.physicalType){case"VARCHAR":{if(null===e.dataBuffer||void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(null===e.lengthBuffer||void 0===e.lengthBuffer)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let r=Fo(t,_[e.dataBuffer],e.physicalType,u.rows),i=[],s=fa(t,_[e.lengthBuffer],u.rows);for(let e=0;ei[e]}case"STRUCT":{let t={},i=[];for(let n=0;n<((null==(r=e.children)?void 0:r.length)||0);++n){let r=e.children[n],s=d(r);i.push((e=>{t[r.name]=s(e)}))}return null!=n?e=>{if(!n[e])return null;for(let t of i)t(e);return t}:e=>{for(let t of i)t(e);return t}}default:{if(void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for argument of type: "+e.physicalType);let r=Fo(t,_[e.dataBuffer],e.physicalType,u.rows);return null!=n?e=>n[e]?r[e]:null:e=>r[e]}}},p=[];for(let e=0;e>3)]=0,t.HEAPF64[1+(r>>3)]=w,t.HEAPF64[2+(r>>3)]=0}catch(e){Do(t,r,e.toString())}}function vd(){let e=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),e.decode(t))}var bd=vd();function ut(e,t){console.error("FAIL WITH: ".concat(t)),e.ccall("duckdb_web_fail_with",null,["string"],[t])}function Zr(e,t,r){let n=e.HEAPU8.subarray(t,t+r),i=new Uint8Array(new ArrayBuffer(n.byteLength));return i.set(n),i}function te(e,t,r){return bd(e.HEAPU8.subarray(t,t+r))}function fe(e,t,r,n){let i=e.stackSave(),s=e.stackAlloc(24);r.unshift("number"),n.unshift(s),e.ccall(t,null,r,n);let a=e.HEAPF64[0+(s>>3)],o=e.HEAPF64[1+(s>>3)],l=e.HEAPF64[2+(s>>3)];return e.stackRestore(i),[a,o,l]}function ye(e){e.ccall("duckdb_web_clear_response",null,[],[])}var pa=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),r=new Uint8Array(new ArrayBuffer(e.byteLength));r.set(e.subarray(56)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=r}getBlockStats(e,t){return(t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0}).file_writes=15&this.blockStats[3*e+0],t.file_reads_cold=this.blockStats[3*e+0]>>4,t.file_reads_ahead=15&this.blockStats[3*e+1],t.file_reads_cached=this.blockStats[3*e+1]>>4,t.page_accesses=15&this.blockStats[3*e+1],t.page_loads=this.blockStats[3*e+1]>>4,t}},Tn=new TextEncoder,ma=class{constructor(e,t){this._instance=null,this._initPromise=null,this._initPromiseResolver=()=>{},this.onInstantiationProgress=[],this._logger=e,this._runtime=t,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(e=(e=>{})){return null!=this._instance||(null!=this._initPromise&&(this.onInstantiationProgress.push(e),await this._initPromise),this._initPromise=new Promise((e=>{this._initPromiseResolver=e})),this.onInstantiationProgress=[e],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter((t=>t!=e)),globalThis.DUCKDB_BINDINGS=this),this}open(e){let[t,r,n]=fe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(0!==t)throw new Error(te(this.mod,r,n));ye(this.mod)}reset(){let[e,t,r]=fe(this.mod,"duckdb_web_reset",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));ye(this.mod)}getVersion(){let[e,t,r]=fe(this.mod,"duckdb_web_get_version",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));let n=te(this.mod,t,r);return ye(this.mod),n}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let t=Tn.encode(e),r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[n,i,s]=fe(this.mod,"duckdb_web_tokenize_buffer",["number","number"],[r,t.length]);if(this.mod._free(r),0!==n)throw new Error(te(this.mod,i,s));let a=te(this.mod,i,s);return ye(this.mod),JSON.parse(a)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new _a(this,e)}disconnect(e){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[e]),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"dropUDFFunctions",connectionId:e})}runQuery(e,t){let r=Tn.encode(t),n=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(n,n+r.length).set(r);let[i,s,a]=fe(this.mod,"duckdb_web_query_run_buffer",["number","number","number"],[e,n,r.length]);if(this.mod._free(n),0!==i)throw new Error(te(this.mod,s,a));let o=Zr(this.mod,s,a);return ye(this.mod),o}startPendingQuery(e,t,r=!1){let n=Tn.encode(t),i=this.mod._malloc(n.length);this.mod.HEAPU8.subarray(i,i+n.length).set(n);let[s,a,o]=fe(this.mod,"duckdb_web_pending_query_start_buffer",["number","number","number","boolean"],[e,i,n.length,r]);if(this.mod._free(i),0!==s)throw new Error(te(this.mod,a,o));if(0==a)return null;let l=Zr(this.mod,a,o);return ye(this.mod),l}pollPendingQuery(e){let[t,r,n]=fe(this.mod,"duckdb_web_pending_query_poll",["number"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));if(0==r)return null;let i=Zr(this.mod,r,n);return ye(this.mod),i}cancelPendingQuery(e){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[e])}fetchQueryResults(e){let[t,r,n]=fe(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));let i=Zr(this.mod,r,n);return ye(this.mod),i}getTableNames(e,t){let r=Tn.encode(t),n=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(n,n+r.length).set(r);let[i,s,a]=fe(this.mod,"duckdb_web_get_tablenames_buffer",["number","number","number"],[e,n,r.length]);if(this.mod._free(n),0!==i)throw new Error(te(this.mod,s,a));let o=te(this.mod,s,a);return ye(this.mod),JSON.parse(o)}createScalarFunction(e,t,r,n){let i={functionId:this._nextUDFId,name:t,returnType:xn(r)},s={functionId:i.functionId,connectionId:e,name:t,returnType:r,func:n};this._nextUDFId+=1;let[a,o,l]=fe(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[e,JSON.stringify(i)]);if(0!==a)throw new Error(te(this.mod,o,l));if(ye(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(s.functionId,s),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"registerUDFFunction",udf:s})}createPrepared(e,t){let r=Tn.encode(t),n=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(n,n+r.length).set(r);let[i,s,a]=fe(this.mod,"duckdb_web_prepared_create_buffer",["number","number","number"],[e,n,r.length]);if(this.mod._free(n),0!==i)throw new Error(te(this.mod,s,a));return ye(this.mod),s}closePrepared(e,t){let[r,n,i]=fe(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(0!==r)throw new Error(te(this.mod,n,i));ye(this.mod)}runPrepared(e,t,r){let[n,i,s]=fe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(r)]);if(0!==n)throw new Error(te(this.mod,i,s));let a=Zr(this.mod,i,s);return ye(this.mod),a}sendPrepared(e,t,r){let[n,i,s]=fe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(r)]);if(0!==n)throw new Error(te(this.mod,i,s));let a=Zr(this.mod,i,s);return ye(this.mod),a}insertArrowFromIPCStream(e,t,r){if(0==t.length)return;let n=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(n,n+t.length).set(t);let i=r?JSON.stringify(r):"",[s,a,o]=fe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,n,t.length,i]);if(0!==s)throw new Error(te(this.mod,a,o))}insertCSVFromPath(e,t,r){if(void 0!==r.columns){r.columnsFlat=[];for(let e in r.columns)r.columnsFlat.push(ca(e,r.columns[e]))}let n={...r};n.columns=n.columnsFlat,delete n.columnsFlat;let i=JSON.stringify(n),[s,a,o]=fe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,i]);if(0!==s)throw new Error(te(this.mod,a,o))}insertJSONFromPath(e,t,r){if(void 0!==r.columns){r.columnsFlat=[];for(let e in r.columns)r.columnsFlat.push(ca(e,r.columns[e]))}let n={...r};n.columns=n.columnsFlat,delete n.columnsFlat;let i=JSON.stringify(n),[s,a,o]=fe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,i]);if(0!==s)throw new Error(te(this.mod,a,o))}globFiles(e){let[t,r,n]=fe(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));let i=te(this.mod,r,n);ye(this.mod);let s=JSON.parse(i);return null==s?[]:s}registerFileURL(e,t,r,n=!1){void 0===t&&(t=e);let[i,s,a]=fe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t,r,n]);if(0!==i)throw new Error(te(this.mod,s,a));ye(this.mod)}registerFileText(e,t){let r=Tn.encode(t);this.registerFileBuffer(e,r)}registerFileBuffer(e,t){let r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[n,i,s]=fe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,r,t.length]);if(0!==n)throw new Error(te(this.mod,i,s));ye(this.mod)}registerFileHandle(e,t,r,n){let[i,s,a]=fe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[e,e,r,n]);if(0!==i)throw new Error(te(this.mod,s,a));if(ye(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let r of this.pthread.runningWorkers)r.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let t of this.pthread.unusedWorkers)t.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){let[t,r,n]=fe(this.mod,"duckdb_web_fs_drop_file",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));ye(this.mod)}dropFiles(){let[e,t,r]=fe(this.mod,"duckdb_web_fs_drop_files",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));ye(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[r,n,i]=fe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(0!==r)throw new Error(te(this.mod,n,i));ye(this.mod)}copyFileToBuffer(e){let[t,r,n]=fe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));let i=this.mod.HEAPU8.subarray(r,r+n),s=new Uint8Array(i.length);return s.set(i),ye(this.mod),s}collectFileStatistics(e,t){let[r,n,i]=fe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(0!==r)throw new Error(te(this.mod,n,i))}exportFileStatistics(e){let[t,r,n]=fe(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,n));return new pa(this.mod.HEAPU8.subarray(r,r+n))}},ga=class extends ma{constructor(e,t,r,n){super(e,t),this.mainModuleURL=r,this.pthreadWorkerURL=n}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error("WASM instantiation requested unexpected file: prefix=".concat(t," path=").concat(e))}instantiateWasm(e,t){globalThis.DUCKDB_RUNTIME=this._runtime;let r=this.onInstantiationProgress;if(WebAssembly.instantiateStreaming)if("function"==typeof TransformStream){let n=(async()=>{var e;let t=new Request(this.mainModuleURL),n=await fetch(t),i=n.headers.get("content-length"),s=i&&parseInt(i,10)||0,a=new Date,o={startedAt:a,updatedAt:a,bytesTotal:s||0,bytesLoaded:0},l=new TransformStream({transform(e,t){o.bytesLoaded+=e.byteLength;let n=new Date;if(n.getTime()-o.updatedAt.getTime()<20)return o.updatedAt=n,void t.enqueue(e);for(let e of r)e(o);t.enqueue(e)}});return new Response(null==(e=n.body)?void 0:e.pipeThrough(l),n)})();WebAssembly.instantiateStreaming(n,e).then((e=>{t(e.instance,e.module)}))}else{console.warn("instantiating without progress handler since transform streams are unavailable");let r=new Request(this.mainModuleURL);WebAssembly.instantiateStreaming(fetch(r),e).then((e=>{t(e.instance,e.module)}))}else if("function"==typeof XMLHttpRequest){let n=new XMLHttpRequest,i=this.mainModuleURL,s=new Date,a={startedAt:s,updatedAt:s,bytesTotal:0,bytesLoaded:0};n.open("GET",i),n.responseType="arraybuffer",n.onerror=e=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+e}),new Error(e.toString())},n.onprogress=e=>{a.bytesTotal=e.total,a.bytesLoaded=e.loaded;let t=new Date;if(t.getTime()-a.updatedAt.getTime()<20)a.updatedAt=t;else for(let e of r)e(a)},n.onload=()=>{WebAssembly.instantiate(n.response,e).then((e=>{t(e.instance,e.module)})).catch((e=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+e}),new Error(e)}))},n.send()}else console.warn("instantiating with manual fetch since streaming instantiation and xhrs are unavailable"),(async()=>{let r=new Request(this.mainModuleURL),n=await(await fetch(r)).arrayBuffer();WebAssembly.instantiate(n,e).then((e=>{t(e.instance,e.module)}))})();return[]}},ha=class extends ga{constructor(e,t,r,n=null){super(e,t,r,n)}instantiateImpl(e){return(0,Gc.default)({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}},Ir=Bo(Rc()),Hc=function(e,t,r){var n;if(null!=(n=null==e?void 0:e.endpoint)&&n.startsWith("http")){let t="".concat(null==e?void 0:e.endpoint),r=t.indexOf("://")+3;return t.substring(r)}return null!=e&&e.endpoint?"".concat(r,".").concat(null==e?void 0:e.endpoint):"".concat(r,".s3.amazonaws.com")};function yd(e,t,r){var n,i,s,a;let o=Nc(t),l=o.path;return Wc(e)&&(l="/".concat(o.bucket).concat(l)),{url:l,query:"",host:Hc(e,t,o.bucket),region:null!=(n=null==e?void 0:e.region)?n:"",service:"s3",method:r,accessKeyId:null!=(i=null==e?void 0:e.accessKeyId)?i:"",secretAccessKey:null!=(s=null==e?void 0:e.secretAccessKey)?s:"",sessionToken:null!=(a=null==e?void 0:e.sessionToken)?a:"",dateNow:(new Date).toISOString().replace(/-/g,"").split("T")[0],datetimeNow:(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function Sd(e,t=!1){let r="0123456789ABCDEF",n="";for(let i=0;i="A"&&s<="Z"||s>="a"&&s<="z"||s>="0"&&s<="9"||"_"==s||"-"==s||"~"==s||"."==s?n+=s:"/"==s?n+=t?"%2F":s:(n+="%",n+=r[s.charCodeAt(0)>>4],n+=r[15&s.charCodeAt(0)])}return n}function Ed(e,t=null){var r;let n=null!=(r=null==t?void 0:t.contentHash)?r:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",i=new Map;i.set("x-amz-date",e.datetimeNow),i.set("x-amz-content-sha256",n),e.sessionToken&&i.set("x-amz-security-token",e.sessionToken);let s="";null!=t&&t.contentType&&(s+="content-type;"),s+="host;x-amz-content-sha256;x-amz-date",e.sessionToken&&(s+=";x-amz-security-token");let a=e.method+"\n"+Sd(e.url)+"\n"+e.query;null!=t&&t.contentType&&(a+="\ncontent-type:"+(null==t?void 0:t.contentType)),a+="\nhost:"+e.host+"\nx-amz-content-sha256:"+n+"\nx-amz-date:"+e.datetimeNow,e.sessionToken&&e.sessionToken.length>0&&(a+="\nx-amz-security-token:"+e.sessionToken),a+="\n\n"+s+"\n"+n;let o=(0,Ir.sha256)(a),l="AWS4-HMAC-SHA256\n"+e.datetimeNow+"\n"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request\n"+o,c="AWS4"+e.secretAccessKey,u=Ir.sha256.hmac.arrayBuffer(c,e.dateNow),_=Ir.sha256.hmac.arrayBuffer(u,e.region),d=Ir.sha256.hmac.arrayBuffer(_,e.service),p=Ir.sha256.hmac.arrayBuffer(d,"aws4_request"),f=Ir.sha256.hmac(p,l);return i.set("Authorization","AWS4-HMAC-SHA256 Credential="+e.accessKeyId+"/"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request, SignedHeaders="+s+", Signature="+f),i}var wd=function(e,t,r,n=null,i=null){return Ed(yd(e,t,r),{contentType:n,contentHash:i?Ir.sha256.hex(i):null})};function xt(e,t,r,n,i=null,s=null){(null!=t&&t.accessKeyId||null!=t&&t.sessionToken)&&(wd(t,r,n,i,s).forEach(((t,r)=>{e.setRequestHeader(r,t)})),i&&e.setRequestHeader("content-type",i))}function Nc(e){if(0!=e.indexOf("s3://"))throw new Error("URL needs to start with s3://");let t=e.indexOf("/",5);if(-1==t)throw new Error("URL needs to contain a '/' after the host");let r=e.substring(5,t);if(!r)throw new Error("URL needs to contain a bucket name");let n=e.substring(t);if(!n)throw new Error("URL needs to contain key");return{bucket:r,path:n}}function Wc(e){var t;return!(null==(t=null==e?void 0:e.endpoint)||!t.startsWith("http"))}function Tt(e,t){let r=Nc(t);return Wc(e)?"".concat(null==e?void 0:e.endpoint,"/").concat(r.bucket)+r.path:"https://"+Hc(e,t,r.bucket)+r.path}var le={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(e,t){try{let r=le._fileInfoCache.get(t),[n,i,s]=fe(e,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(null==r?void 0:r.cacheEpoch)||0]);if(0!==n)return null;if(0===s)return r;let a=te(e,i,s);ye(e);try{let e=JSON.parse(a);if(null==e)return null;let r={...e,blob:null};return le._fileInfoCache.set(t,r),r}catch(e){return console.warn(e),null}}catch(e){return console.log(e),null}},getGlobalFileInfo(e){var t;try{let[r,n,i]=fe(e,"duckdb_web_get_global_file_info",["number"],[(null==(t=le._globalFileInfo)?void 0:t.cacheEpoch)||0]);if(0!==r)return null;if(0===i)return le._globalFileInfo;let s=te(e,n,i);ye(e);let a=JSON.parse(s);return null==a?null:(le._globalFileInfo={...a,blob:null},le._globalFileInfo)}catch(e){return console.log(e),null}},testPlatformFeature:(e,t)=>1===t?typeof BigInt64Array<"u":(console.warn("test for unknown feature: ".concat(t)),!1),getDefaultDataProtocol:e=>2,openFile:(e,t,r)=>{var n,i;try{le._fileInfoCache.delete(t);let s=le.getFileInfo(e,t);switch(null==s?void 0:s.dataProtocol){case 4:case 5:{if(1&r&&2&r)throw new Error("Opening file ".concat(s.fileName," failed: cannot open file with both read and write flags set"));if(32&r)throw new Error("Opening file ".concat(s.fileName," failed: appending to HTTP/S3 files is not supported"));if(2&r){let t=new XMLHttpRequest;if(5==s.dataProtocol?(t.open("HEAD",Tt(s.s3Config,s.dataUrl),!1),xt(t,s.s3Config,s.dataUrl,"HEAD")):t.open("HEAD",s.dataUrl,!1),t.send(null),200!=t.status&&404!=t.status)throw new Error("Opening file ".concat(s.fileName," failed: Unexpected return status from server (").concat(t.status,")"));if(404==t.status&&!(8&r||16&r))throw new Error("Opening file ".concat(s.fileName," failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag."));let n=e._malloc(1),i=new Uint8Array;e.HEAPU8.set(i,n);let a=e._malloc(16);return e.HEAPF64[0+(a>>3)]=1,e.HEAPF64[1+(a>>3)]=n,a}if(!(1&r))throw new Error("Opening file ".concat(s.fileName," failed: unsupported file flags: ").concat(r));let t=null,i=null;if(s.reliableHeadRequests||!s.allowFullHttpReads)try{let r=new XMLHttpRequest;if(5==s.dataProtocol?(r.open("HEAD",Tt(s.s3Config,s.dataUrl),!1),xt(r,s.s3Config,s.dataUrl,"HEAD")):r.open("HEAD",s.dataUrl,!1),r.setRequestHeader("Range","bytes=0-"),r.send(null),t=r.getResponseHeader("Content-Length"),null!==t&&206==r.status){let r=e._malloc(16);return e.HEAPF64[0+(r>>3)]=+t,e.HEAPF64[1+(r>>3)]=0,r}}catch(e){i=e,console.warn("HEAD request with range header failed: ".concat(e))}if(s.allowFullHttpReads){{let r=new XMLHttpRequest;5==s.dataProtocol?(r.open("GET",Tt(s.s3Config,s.dataUrl),!1),xt(r,s.s3Config,s.dataUrl,"GET")):r.open("GET",s.dataUrl,!1),r.responseType="arraybuffer",r.setRequestHeader("Range","bytes=0-0"),r.send(null);let i=null==(n=r.getResponseHeader("Content-Range"))?void 0:n.split("/")[1],a=r.getResponseHeader("Content-Length"),o=null;if(void 0!==i)o=i;else if(!s.reliableHeadRequests){let e=new XMLHttpRequest;5==s.dataProtocol?(e.open("HEAD",Tt(s.s3Config,s.dataUrl),!1),xt(e,s.s3Config,s.dataUrl,"HEAD")):e.open("HEAD",s.dataUrl,!1),e.setRequestHeader("Range","bytes=0-"),e.send(null),t=e.getResponseHeader("Content-Length"),null!==t&&+t>1&&(o=t)}if(206==r.status&&null!==a&&1==+a&&null!==o){let t=e._malloc(16);return e.HEAPF64[0+(t>>3)]=+o,e.HEAPF64[1+(t>>3)]=0,t}if(200==r.status&&null!==a&&null!==t&&+a==+t){console.warn("fall back to full HTTP read for: ".concat(s.dataUrl));let t=e._malloc(r.response.byteLength),n=new Uint8Array(r.response,0,r.response.byteLength);e.HEAPU8.set(n,t);let i=e._malloc(16);return e.HEAPF64[0+(i>>3)]=r.response.byteLength,e.HEAPF64[1+(i>>3)]=t,i}}console.warn("falling back to full HTTP read for: ".concat(s.dataUrl));let r=new XMLHttpRequest;if(5==s.dataProtocol?(r.open("GET",Tt(s.s3Config,s.dataUrl),!1),xt(r,s.s3Config,s.dataUrl,"GET")):r.open("GET",s.dataUrl,!1),r.responseType="arraybuffer",r.send(null),200==r.status){let t=e._malloc(r.response.byteLength),n=new Uint8Array(r.response,0,r.response.byteLength);e.HEAPU8.set(n,t);let i=e._malloc(16);return e.HEAPF64[0+(i>>3)]=r.response.byteLength,e.HEAPF64[1+(i>>3)]=t,i}}if(null!=i)throw new Error("Reading file ".concat(s.fileName," failed with error: ").concat(i));return 0}case 2:{let t=null==(i=le._files)?void 0:i.get(s.fileName);if(t){let r=e._malloc(16);return e.HEAPF64[0+(r>>3)]=t.size,e.HEAPF64[1+(r>>3)]=0,r}console.warn("Buffering missing file: ".concat(s.fileName));let r=e._malloc(16),n=e._malloc(1);return e.HEAPF64[0+(r>>3)]=1,e.HEAPF64[1+(r>>3)]=n,r}}}catch(t){console.error(t.toString()),ut(e,t.toString())}return 0},glob:(e,t,r)=>{var n;try{let i=te(e,t,r);if(i.startsWith("http")||i.startsWith("s3://")){let t=new XMLHttpRequest;if(i.startsWith("s3://")){let r=le.getGlobalFileInfo(e);t.open("HEAD",Tt(null==r?void 0:r.s3Config,i),!1),xt(t,null==r?void 0:r.s3Config,i,"HEAD")}else t.open("HEAD",i,!1);if(t.send(null),200!=t.status&&206!==t.status){if(null==(n=le.getGlobalFileInfo(e))||!n.allowFullHttpReads)return ut(e,"HEAD request failed: ".concat(i,", with full http reads are disabled")),0;let t=new XMLHttpRequest;if(i.startsWith("s3://")){let r=le.getGlobalFileInfo(e);t.open("GET",Tt(null==r?void 0:r.s3Config,i),!1),xt(t,null==r?void 0:r.s3Config,i,"HEAD")}else t.open("GET",i,!1);if(t.setRequestHeader("Range","bytes=0-0"),t.send(null),200!=t.status&&206!==t.status)return ut(e,"HEAD and GET requests failed: ".concat(i)),0;let r=t.getResponseHeader("Content-Length");r&&+r>1&&console.warn("Range request for ".concat(i," did not return a partial response: ").concat(t.status,' "').concat(t.statusText,'"'))}e.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(t){return console.log(t),ut(e,t.toString()),0}},checkFile:(e,t,r)=>{try{let n=te(e,t,r);if(n.startsWith("http")||n.startsWith("s3://")){let t=new XMLHttpRequest;if(n.startsWith("s3://")){let r=le.getGlobalFileInfo(e);t.open("HEAD",Tt(null==r?void 0:r.s3Config,n),!1),xt(t,null==r?void 0:r.s3Config,n,"HEAD")}else t.open("HEAD",n,!1);return t.send(null),206==t.status||200==t.status}}catch(e){return console.log(e),!1}return!1},syncFile:(e,t)=>{},closeFile:(e,t)=>{var r;let n=le.getFileInfo(e,t);switch(le._fileInfoCache.delete(t),null==n?void 0:n.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let e=null==(r=le._files)?void 0:r.get(n.fileName);if(!e)throw new Error("No OPFS access handle registered with name: ".concat(n.fileName));return e.flush()}}},truncateFile:(e,t,r)=>{var n;let i=le.getFileInfo(e,t);switch(null==i?void 0:i.dataProtocol){case 4:return void ut(e,"Cannot truncate a http file");case 5:return void ut(e,"Cannot truncate an s3 file");case 0:case 1:case 2:return void ut(e,"truncateFile not implemented");case 3:{let e=null==(n=le._files)?void 0:n.get(i.fileName);if(!e)throw new Error("No OPFS access handle registered with name: ".concat(i.fileName));return e.truncate(r)}}return 0},readFile(e,t,r,n,i){var s,a;if(0==n)return 0;try{let o=le.getFileInfo(e,t);switch(null==o?void 0:o.dataProtocol){case 4:case 5:if(!o.dataUrl)throw new Error("Missing data URL for file ".concat(t));try{let t=new XMLHttpRequest;if(5==o.dataProtocol?(t.open("GET",Tt(null==o?void 0:o.s3Config,o.dataUrl),!1),xt(t,null==o?void 0:o.s3Config,o.dataUrl,"GET")):t.open("GET",o.dataUrl,!1),t.responseType="arraybuffer",t.setRequestHeader("Range","bytes=".concat(i,"-").concat(i+n-1)),t.send(null),206==t.status||200==t.status&&n==t.response.byteLength&&0==i){let i=new Uint8Array(t.response,0,Math.min(t.response.byteLength,n));return e.HEAPU8.set(i,r),i.byteLength}if(200==t.status){console.warn("Range request for ".concat(o.dataUrl," did not return a partial response: ").concat(t.status,' "').concat(t.statusText,'"'));let s=new Uint8Array(t.response,i,Math.min(t.response.byteLength-i,n));return e.HEAPU8.set(s,r),s.byteLength}throw new Error("Range request for ".concat(o.dataUrl," did returned non-success status: ").concat(t.status,' "').concat(t.statusText,'"'))}catch(e){throw console.log(e),new Error("Range request for ".concat(o.dataUrl," failed with error: ").concat(e,'"'))}case 2:{let t=null==(s=le._files)?void 0:s.get(o.fileName);if(!t)throw new Error("No HTML5 file registered with name: ".concat(o.fileName));let a=t.slice(i,i+n),l=new Uint8Array((new FileReaderSync).readAsArrayBuffer(a));return e.HEAPU8.set(l,r),l.byteLength}case 3:{let t=null==(a=le._files)?void 0:a.get(o.fileName);if(!t)throw new Error("No OPFS access handle registered with name: ".concat(o.fileName));let s=e.HEAPU8.subarray(r,r+n);return t.read(s,{at:i})}}return 0}catch(t){return console.log(t),ut(e,t.toString()),0}},writeFile:(e,t,r,n,i)=>{var s;let a=le.getFileInfo(e,t);switch(null==a?void 0:a.dataProtocol){case 4:return ut(e,"Cannot write to HTTP file"),0;case 5:{let t=e.HEAPU8.subarray(r,r+n),i=new XMLHttpRequest;return i.open("PUT",Tt(null==a?void 0:a.s3Config,a.dataUrl),!1),xt(i,null==a?void 0:a.s3Config,a.dataUrl,"PUT","",t),i.send(t),200!==i.status?(ut(e,"Failed writing file: HTTP "+i.status),0):n}case 2:return ut(e,"cannot write using the html5 file reader api"),0;case 3:{let t=null==(s=le._files)?void 0:s.get(a.fileName);if(!t)throw new Error("No OPFS access handle registered with name: ".concat(a.fileName));let o=e.HEAPU8.subarray(r,r+n);return t.write(o,{at:i})}}return 0},getLastFileModificationTime:(e,t)=>{var r;let n=le.getFileInfo(e,t);switch(null==n?void 0:n.dataProtocol){case 2:if(!(null==(r=le._files)?void 0:r.get(n.fileName)))throw Error("No handle available for file: ".concat(n.fileName));return 0;case 4:case 5:return(new Date).getTime()}return 0},checkDirectory:(e,t,r)=>{let n=te(e,t,r);return console.log("checkDirectory: ".concat(n)),!1},createDirectory:(e,t,r)=>{let n=te(e,t,r);console.log("createDirectory: ".concat(n))},removeDirectory:(e,t,r)=>{let n=te(e,t,r);console.log("removeDirectory: ".concat(n))},listDirectoryEntries:(e,t,r)=>{let n=te(e,t,r);return console.log("listDirectoryEntries: ".concat(n)),!1},moveFile:(e,t,r,n,i)=>{var s,a;let o=te(e,t,r),l=te(e,n,i),c=null==(s=le._files)?void 0:s.get(o);void 0!==c&&(le._files.delete(c),le._files.set(l,c));for(let[e,t]of(null==(a=le._fileInfoCache)?void 0:a.entries())||[])if(t.dataUrl==o){le._fileInfoCache.delete(e);break}return!0},removeFile:(e,t,r)=>{},callScalarUDF:(e,t,r,n,i,s,a)=>{Bc(le,e,t,r,n,i,s,a)}},To=class extends ua{postMessage(e,t){globalThis.postMessage(e,t)}async instantiate(e,t,r){return await new ha(this,le,e,t).instantiate(r)}};function Vc(){let e=new To;globalThis.onmessage=async t=>{await e.onMessage(t.data)}}return Vc(),Yc(Ld)})(); \ No newline at end of file diff --git a/static/assets/duckdb-browser-eh.worker.81d69481e12dff4f2ba1.js.LICENSE.txt b/static/assets/duckdb-browser-eh.worker.81d69481e12dff4f2ba1.js.LICENSE.txt new file mode 100644 index 000000000..286bd31ff --- /dev/null +++ b/static/assets/duckdb-browser-eh.worker.81d69481e12dff4f2ba1.js.LICENSE.txt @@ -0,0 +1,12 @@ +/*! Bundled license information: + +js-sha256/src/sha256.js: + (** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.11.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2024 + * @license MIT + *) +*/ diff --git a/static/assets/duckdb-browser-eh.worker.873c4b205960eb66f67d.js b/static/assets/duckdb-browser-eh.worker.873c4b205960eb66f67d.js deleted file mode 100644 index 908cc9306..000000000 --- a/static/assets/duckdb-browser-eh.worker.873c4b205960eb66f67d.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see duckdb-browser-eh.worker.873c4b205960eb66f67d.js.LICENSE.txt */ -"use strict";var duckdb=(()=>{var Mh=Object.create,ls=Object.defineProperty,Uh=Object.getOwnPropertyDescriptor,Lh=Object.getOwnPropertyNames,Nh=Object.getPrototypeOf,kh=Object.prototype.hasOwnProperty,na=(r=function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):r),r,us=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ln=(t,e)=>{for(var r in e)ls(t,r,{get:e[r],enumerable:!0})},Mc=(t,e,r,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of Lh(e))!kh.call(t,n)&&n!==r&&ls(t,n,{get:()=>e[n],enumerable:!(i=Uh(e,n))||i.enumerable});return t},Uc=(t,e,r)=>(r=null!=t?Mh(Nh(t)):{},Mc(!e&&t&&t.__esModule?r:ls(r,"default",{value:t,enumerable:!0}),t)),Ch=t=>Mc(ls({},"__esModule",{value:!0}),t),rl=us(((t,e)=>{var r,i,n,s,a,o,l,u,h,c,d,f,p,y,b,_,m,g,v,w,I,S,A,T,O;!function(t){var r="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};function i(t,e){return t!==r&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(r,i){return t[r]=e?e(r,i):i}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){t(i(r,i(e)))})):"object"==typeof e&&"object"==typeof e.exports?t(i(r,i(e.exports))):t(i(r))}((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])};r=function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)},i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r=0;o--)(n=t[o])&&(a=(s<3?n(a):s>3?n(e,r,a):n(e,r))||a);return s>3&&a&&Object.defineProperty(e,r,a),a},a=function(t,e){return function(r,i){e(r,i,t)}},o=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t,e,r,i){return new(r||(r=Promise))((function(n,s){function a(t){try{l(i.next(t))}catch(t){s(t)}}function o(t){try{l(i.throw(t))}catch(t){s(t)}}function l(t){t.done?n(t.value):function(t){return t instanceof r?t:new r((function(e){e(t)}))}(t.value).then(a,o)}l((i=i.apply(t,e||[])).next())}))},u=function(t,e){var r,i,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(n=2&s[0]?i.return:s[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,s[1])).done)return n;switch(i=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var i,n,s=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=s.next()).done;)a.push(i.value)}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a},f=function(){for(var t=[],e=0;e1||o(t,e)}))})}function o(t,e){try{!function(t){t.value instanceof b?Promise.resolve(t.value.v).then(l,u):h(s[0][2],t)}(n[t](e))}catch(t){h(s[0][3],t)}}function l(t){o("next",t)}function u(t){o("throw",t)}function h(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}},m=function(t){var e,r;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,n){e[i]=t[i]?function(e){return(r=!r)?{value:b(t[i](e)),done:"return"===i}:n?n(e):e}:n}},g=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=c(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(r){e[r]=t[r]&&function(e){return new Promise((function(i,n){!function(t,e,r,i){Promise.resolve(i).then((function(e){t({value:e,done:r})}),e)}(i,n,(e=t[r](e)).done,e.value)}))}}},v=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var B=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&O(e,t,r);return B(e,t),e},I=function(t){return t&&t.__esModule?t:{default:t}},S=function(t,e,r,i){if("a"===r&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?i:"a"===r?i.call(t):i?i.value:e.get(t)},A=function(t,e,r,i,n){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?n.call(t,r):n?n.value=r:e.set(t,r),r},T=function(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)},t("__extends",r),t("__assign",i),t("__rest",n),t("__decorate",s),t("__param",a),t("__metadata",o),t("__awaiter",l),t("__generator",u),t("__exportStar",h),t("__createBinding",O),t("__values",c),t("__read",d),t("__spread",f),t("__spreadArrays",p),t("__spreadArray",y),t("__await",b),t("__asyncGenerator",_),t("__asyncDelegator",m),t("__asyncValues",g),t("__makeTemplateObject",v),t("__importStar",w),t("__importDefault",I),t("__classPrivateFieldGet",S),t("__classPrivateFieldSet",A),t("__classPrivateFieldIn",T)}))})),rc=us((()=>{})),zu=us((()=>{})),Ku=us(((exports,module)=>{(function(){var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(r){return new Sha256(e,!0).update(r)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var r=0;r>6,a[l++]=128|63&s):s<55296||s>=57344?(a[l++]=224|s>>12,a[l++]=128|s>>6&63,a[l++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++i)),a[l++]=240|s>>18,a[l++]=128|s>>12&63,a[l++]=128|s>>6&63,a[l++]=128|63&s);t=a}else{if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],h=[];for(i=0;i<64;++i){var c=t[i]||0;u[i]=92^c,h[i]=54^c}Sha256.call(this,e,r),this.update(h),this.oKeyPad=u,this.inner=!0,this.sharedMemory=r}Sha256.prototype.update=function(t){if(!this.finalized){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var i,n,s=0,a=t.length,o=this.blocks;s>2]|=t[s]<>2]|=i<>2]|=(192|i>>6)<>2]|=(128|63&i)<=57344?(o[n>>2]|=(224|i>>12)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<>2]|=(240|i>>18)<>2]|=(128|i>>12&63)<>2]|=(128|i>>6&63)<>2]|=(128|63&i)<=64?(this.block=o[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,r,i,n,s,a,o,l,u=this.h0,h=this.h1,c=this.h2,d=this.h3,f=this.h4,p=this.h5,y=this.h6,b=this.h7,_=this.blocks;for(t=16;t<64;++t)e=((n=_[t-15])>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,r=((n=_[t-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,_[t]=_[t-16]+e+_[t-7]+r<<0;for(l=h&c,t=0;t<64;t+=4)this.first?(this.is224?(s=300032,b=(n=_[0]-1413257819)-150054599<<0,d=n+24177077<<0):(s=704751109,b=(n=_[0]-210244248)-1521486534<<0,d=n+143694565<<0),this.first=!1):(e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),i=(s=u&h)^u&c^l,b=d+(n=b+(r=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&p^~f&y)+K[t]+_[t])<<0,d=n+(e+i)<<0),e=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),i=(a=d&u)^d&h^s,y=c+(n=y+(r=(b>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(b&f^~b&p)+K[t+1]+_[t+1])<<0,e=((c=n+(e+i)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),i=(o=c&d)^c&u^a,p=h+(n=p+(r=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&b^~y&f)+K[t+2]+_[t+2])<<0,e=((h=n+(e+i)<<0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),i=(l=h&c)^h&d^o,f=u+(n=f+(r=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&y^~p&b)+K[t+3]+_[t+3])<<0,u=n+(e+i)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+h<<0,this.h2=this.h2+c<<0,this.h3=this.h3+d<<0,this.h4=this.h4+f<<0,this.h5=this.h5+p<<0,this.h6=this.h6+y<<0,this.h7=this.h7+b<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,i=this.h3,n=this.h4,s=this.h5,a=this.h6,o=this.h7,l=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(l+=HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,r=this.h2,i=this.h3,n=this.h4,s=this.h5,a=this.h6,o=this.h7,l=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,i>>24&255,i>>16&255,i>>8&255,255&i,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||l.push(o>>24&255,o>>16&255,o>>8&255,255&o),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define((function(){return exports})))})()})),D_={};ln(D_,{registerWorker:()=>Zu});var nl=Uc(rl(),1),{__extends:U_,__assign:L_,__rest:il,__decorate:N_,__param:k_,__metadata:C_,__awaiter:I,__generator:P_,__exportStar:V_,__createBinding:H_,__values:z_,__read:j_,__spread:W_,__spreadArrays:$_,__spreadArray:Y_,__await:W,__asyncGenerator:ue,__asyncDelegator:Tn,__asyncValues:Ee,__makeTemplateObject:X_,__importStar:G_,__importDefault:K_,__classPrivateFieldGet:J_,__classPrivateFieldSet:q_,__classPrivateFieldIn:Z_}=nl.default,ua={};ln(ua,{compareArrayLike:()=>la,joinUint8Arrays:()=>Ie,memcpy:()=>En,rebaseValueOffsets:()=>hi,toArrayBufferView:()=>$,toArrayBufferViewAsyncIterator:()=>ze,toArrayBufferViewIterator:()=>nr,toBigInt64Array:()=>$h,toBigUint64Array:()=>Gh,toFloat32Array:()=>Kh,toFloat32ArrayAsyncIterator:()=>dp,toFloat32ArrayIterator:()=>np,toFloat64Array:()=>Jh,toFloat64ArrayAsyncIterator:()=>fp,toFloat64ArrayIterator:()=>ip,toInt16Array:()=>Wh,toInt16ArrayAsyncIterator:()=>ap,toInt16ArrayIterator:()=>Qh,toInt32Array:()=>un,toInt32ArrayAsyncIterator:()=>cp,toInt32ArrayIterator:()=>tp,toInt8Array:()=>jh,toInt8ArrayAsyncIterator:()=>op,toInt8ArrayIterator:()=>Zh,toUint16Array:()=>Yh,toUint16ArrayAsyncIterator:()=>lp,toUint16ArrayIterator:()=>ep,toUint32Array:()=>Xh,toUint32ArrayAsyncIterator:()=>up,toUint32ArrayIterator:()=>rp,toUint8Array:()=>L,toUint8ArrayAsyncIterator:()=>ca,toUint8ArrayIterator:()=>aa,toUint8ClampedArray:()=>qh,toUint8ClampedArrayAsyncIterator:()=>hp,toUint8ClampedArrayIterator:()=>sp});var Ph=new TextDecoder("utf-8"),ui=t=>Ph.decode(t),Vh=new TextEncoder,zr=t=>Vh.encode(t),[ey,ps]=(()=>{let t=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=()=>{throw t()},e.asUintN=()=>{throw t()},typeof BigInt<"u"?[BigInt,!0]:[e,!1]})(),[di,ry]=(()=>{let t=()=>{throw new Error("BigInt64Array is not available in this environment")};return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}},!1]})(),[Dn,ny]=(()=>{let t=()=>{throw new Error("BigUint64Array is not available in this environment")};return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}},!1]})(),Hh=t=>"number"==typeof t,sl=t=>"boolean"==typeof t,Mt=t=>"function"==typeof t,re=t=>null!=t&&Object(t)===t,Ve=t=>re(t)&&Mt(t.then),He=t=>re(t)&&Mt(t[Symbol.iterator]),Oe=t=>re(t)&&Mt(t[Symbol.asyncIterator]),ms=t=>re(t)&&re(t.schema),_s=t=>re(t)&&"done"in t&&"value"in t,ys=t=>re(t)&&Mt(t.stat)&&Hh(t.fd),bs=t=>re(t)&&fi(t.body),gs=t=>"_getDOMStream"in t&&"_getNodeStream"in t,ol=t=>re(t)&&Mt(t.abort)&&Mt(t.getWriter)&&!gs(t),fi=t=>re(t)&&Mt(t.cancel)&&Mt(t.getReader)&&!gs(t),al=t=>re(t)&&Mt(t.end)&&Mt(t.write)&&sl(t.writable)&&!gs(t),ws=t=>re(t)&&Mt(t.read)&&Mt(t.pipe)&&sl(t.readable)&&!gs(t),cl=t=>re(t)&&Mt(t.clear)&&Mt(t.bytes)&&Mt(t.position)&&Mt(t.setPosition)&&Mt(t.capacity)&&Mt(t.getBufferIdentifier)&&Mt(t.createLong),oa=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function zh(t){let e,r,i,n,s=t[0]?[t[0]]:[];for(let a,o,l=0,u=0,h=t.length;++lt+e.byteLength),0),o=0,l=-1,u=Math.min(e||Number.POSITIVE_INFINITY,a);for(let t=s.length;++l$(Int8Array,t),Wh=t=>$(Int16Array,t),un=t=>$(Int32Array,t),$h=t=>$(di,t),L=t=>$(Uint8Array,t),Yh=t=>$(Uint16Array,t),Xh=t=>$(Uint32Array,t),Gh=t=>$(Dn,t),Kh=t=>$(Float32Array,t),Jh=t=>$(Float64Array,t),qh=t=>$(Uint8ClampedArray,t),sa=t=>(t.next(),t);function*nr(t,e){let r=function*(t){yield t},i="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof oa?r(e):He(e)?e:r(e);return yield*sa(function*(e){let r=null;do{r=e.next(yield $(t,r))}while(!r.done)}(i[Symbol.iterator]())),new t}var Zh=t=>nr(Int8Array,t),Qh=t=>nr(Int16Array,t),tp=t=>nr(Int32Array,t),aa=t=>nr(Uint8Array,t),ep=t=>nr(Uint16Array,t),rp=t=>nr(Uint32Array,t),np=t=>nr(Float32Array,t),ip=t=>nr(Float64Array,t),sp=t=>nr(Uint8ClampedArray,t);function ze(t,e){return ue(this,arguments,(function*(){if(Ve(e))return yield W(yield W(yield*Tn(Ee(ze(t,yield W(e))))));let r=function(t){return ue(this,arguments,(function*(){yield yield W(yield W(t))}))},i="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof oa?r(e):He(e)?function(t){return ue(this,arguments,(function*(){yield W(yield*Tn(Ee(sa(function*(t){let e=null;do{e=t.next(yield null==e?void 0:e.value)}while(!e.done)}(t[Symbol.iterator]())))))}))}(e):Oe(e)?e:r(e);return yield W(yield*Tn(Ee(sa(function(e){return ue(this,arguments,(function*(){let r=null;do{r=yield W(e.next(yield yield W($(t,r))))}while(!r.done)}))}(i[Symbol.asyncIterator]()))))),yield W(new t)}))}var op=t=>ze(Int8Array,t),ap=t=>ze(Int16Array,t),cp=t=>ze(Int32Array,t),ca=t=>ze(Uint8Array,t),lp=t=>ze(Uint16Array,t),up=t=>ze(Uint32Array,t),dp=t=>ze(Float32Array,t),fp=t=>ze(Float64Array,t),hp=t=>ze(Uint8ClampedArray,t);function hi(t,e,r){if(0!==t){r=r.slice(0,e+1);for(let i=-1;++i<=e;)r[i]+=t}return r}function la(t,e){let r=0,i=t.length;if(i!==e.length)return!1;if(i>0)do{if(t[r]!==e[r])return!1}while(++rvs(pp(t)),fromAsyncIterable:t=>vs(mp(t)),fromDOMStream:t=>vs(_p(t)),fromNodeStream:t=>vs(yp(t)),toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},vs=t=>(t.next(),t);function*pp(t){let e,r,i,n,s=!1,a=[],o=0;({cmd:i,size:n}=yield null);let l=aa(t)[Symbol.iterator]();try{do{if(({done:e,value:r}=Number.isNaN(n-o)?l.next():l.next(n-o)),!e&&r.byteLength>0&&(a.push(r),o+=r.byteLength),e||n<=o)do{({cmd:i,size:n}=yield"peek"===i?Ie(a,n)[0]:([r,a,o]=Ie(a,n),r))}while(n0&&(a.push(r),o+=r.byteLength),e||n<=o)do{({cmd:i,size:n}=yield yield W("peek"===i?Ie(a,n)[0]:([r,a,o]=Ie(a,n),r)))}while(n0&&(a.push(L(e)),o+=e.byteLength),n||i<=o)do{({cmd:r,size:i}=yield yield W("peek"===r?Ie(a,i)[0]:([e,a,o]=Ie(a,i),e)))}while(i{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return I(this,void 0,void 0,(function*(){let{reader:e,source:r}=this;e&&(yield e.cancel(t).catch((()=>{}))),r&&r.locked&&this.releaseLock()}))}read(t){return I(this,void 0,void 0,(function*(){if(0===t)return{done:null==this.reader,value:new Uint8Array(0)};let e=yield this.reader.read();return!e.done&&(e.value=L(e)),e}))}},da=(t,e)=>{let r,i=t=>r([e,t]);return[e,i,new Promise((n=>(r=n)&&t.once(e,i)))]},Lt,vt,yt,Wt,X,ne,et,f,Re;function yp(t){return ue(this,arguments,(function*(){let e,r,i,n=[],s="error",a=!1,o=null,l=0,u=[];if(({cmd:e,size:r}=yield yield W(null)),t.isTTY)return yield yield W(new Uint8Array(0)),yield W(null);try{n[0]=da(t,"end"),n[1]=da(t,"error");do{if(n[2]=da(t,"readable"),[s,o]=yield W(Promise.race(n.map((t=>t[2])))),"error"===s)break;if((a="end"===s)||(Number.isFinite(r-l)?(i=L(t.read(r-l)),i.byteLength0&&(u.push(i),l+=i.byteLength)),a||r<=l)do{({cmd:e,size:r}=yield yield W("peek"===e?Ie(u,r)[0]:([i,u,l]=Ie(u,r),i)))}while(r{for(let[e,r]of h)t.off(e,r);try{let i=t.destroy;i&&i.call(t,c),c=void 0}catch(t){c=t||c}finally{null!=c?r(c):e()}}))))}var h,c;return yield W(null)}))}!function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"}(Lt||(Lt={})),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(vt||(vt={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(yt||(yt={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(Wt||(Wt={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(X||(X={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(ne||(ne={})),function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(et||(et={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"}(f||(f={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(Re||(Re={}));var Da={};function je(t){if(null===t)return"null";if(void 0===t)return"undefined";switch(typeof t){case"number":case"bigint":return`${t}`;case"string":return`"${t}"`}return"function"==typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map((t=>je(t)))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,((t,e)=>"bigint"==typeof e?`${e}`:e))}ln(Da,{clampIndex:()=>am,clampRange:()=>_i,createElementComparator:()=>Yr});var pa={};ln(pa,{BN:()=>dn,bignumToBigInt:()=>Ss,bignumToString:()=>jr,isArrowBigNumSymbol:()=>ll});var ll=Symbol.for("isArrowBigNum"),jr,Ss;function We(t,...e){return 0===e.length?Object.setPrototypeOf($(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function On(...t){return We.apply(this,t)}function Rn(...t){return We.apply(this,t)}function pi(...t){return We.apply(this,t)}function ul(t){let{buffer:e,byteOffset:r,length:i,signed:n}=t,s=new Dn(e,r,i),a=n&&s[s.length-1]&BigInt(1)<8===t.byteLength?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:ha(t),jr=t=>8===t.byteLength?`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`:ha(t)):(jr=ha,Ss=jr);var dn=class{static new(t,e){switch(e){case!0:return new On(t);case!1:return new Rn(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case di:return new On(t)}return 16===t.byteLength?new pi(t):new Rn(t)}static signed(t){return new On(t)}static unsigned(t){return new Rn(t)}static decimal(t){return new pi(t)}constructor(t,e){return dn.new(t,e)}},dl,fl,hl,pl,ml,_l,yl,bl,gl,wl,vl,Sl,Il,Fl,Al,Bl,xl,Tl,Dl,x=class{static isNull(t){return(null==t?void 0:t.typeId)===f.Null}static isInt(t){return(null==t?void 0:t.typeId)===f.Int}static isFloat(t){return(null==t?void 0:t.typeId)===f.Float}static isBinary(t){return(null==t?void 0:t.typeId)===f.Binary}static isUtf8(t){return(null==t?void 0:t.typeId)===f.Utf8}static isBool(t){return(null==t?void 0:t.typeId)===f.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===f.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===f.Date}static isTime(t){return(null==t?void 0:t.typeId)===f.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===f.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===f.Interval}static isList(t){return(null==t?void 0:t.typeId)===f.List}static isStruct(t){return(null==t?void 0:t.typeId)===f.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===f.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===f.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===f.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===f.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===f.Dictionary}static isDenseUnion(t){return x.isUnion(t)&&t.mode===vt.Dense}static isSparseUnion(t){return x.isUnion(t)&&t.mode===vt.Sparse}get typeId(){return f.NONE}};dl=Symbol.toStringTag,x[dl]=(t=>(t.children=null,t.ArrayType=Array,t[Symbol.toStringTag]="DataType"))(x.prototype);var ie=class extends x{toString(){return"Null"}get typeId(){return f.Null}};fl=Symbol.toStringTag,ie[fl]=(t=>t[Symbol.toStringTag]="Null")(ie.prototype);var Bt=class extends x{constructor(t,e){super(),this.isSigned=t,this.bitWidth=e}get typeId(){return f.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};hl=Symbol.toStringTag,Bt[hl]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(Bt.prototype);var Is=class extends Bt{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},Fs=class extends Bt{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},ir=class extends Bt{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},As=class extends Bt{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Bs=class extends Bt{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},xs=class extends Bt{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Ts=class extends Bt{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Ds=class extends Bt{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Is.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(Fs.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(ir.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(As.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(Bs.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(xs.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Ts.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Ds.prototype,"ArrayType",{value:BigUint64Array});var de=class extends x{constructor(t){super(),this.precision=t}get typeId(){return f.Float}get ArrayType(){switch(this.precision){case yt.HALF:return Uint16Array;case yt.SINGLE:return Float32Array;case yt.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};pl=Symbol.toStringTag,de[pl]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(de.prototype);var Es=class extends de{constructor(){super(yt.HALF)}},Os=class extends de{constructor(){super(yt.SINGLE)}},Rs=class extends de{constructor(){super(yt.DOUBLE)}};Object.defineProperty(Es.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Os.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(Rs.prototype,"ArrayType",{value:Float64Array});var vr=class extends x{constructor(){super()}get typeId(){return f.Binary}toString(){return"Binary"}};ml=Symbol.toStringTag,vr[ml]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(vr.prototype);var Sr=class extends x{constructor(){super()}get typeId(){return f.Utf8}toString(){return"Utf8"}};_l=Symbol.toStringTag,Sr[_l]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(Sr.prototype);var Ir=class extends x{constructor(){super()}get typeId(){return f.Bool}toString(){return"Bool"}};yl=Symbol.toStringTag,Ir[yl]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Ir.prototype);var Fr=class extends x{constructor(t,e,r=128){super(),this.scale=t,this.precision=e,this.bitWidth=r}get typeId(){return f.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};bl=Symbol.toStringTag,Fr[bl]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(Fr.prototype);var Ar=class extends x{constructor(t){super(),this.unit=t}get typeId(){return f.Date}toString(){return`Date${32*(this.unit+1)}<${Wt[this.unit]}>`}};gl=Symbol.toStringTag,Ar[gl]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(Ar.prototype);var $e=class extends x{constructor(t,e){super(),this.unit=t,this.bitWidth=e}get typeId(){return f.Time}toString(){return`Time${this.bitWidth}<${X[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};wl=Symbol.toStringTag,$e[wl]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))($e.prototype);var Br=class extends x{constructor(t,e){super(),this.unit=t,this.timezone=e}get typeId(){return f.Timestamp}toString(){return`Timestamp<${X[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};vl=Symbol.toStringTag,Br[vl]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(Br.prototype);var xr=class extends x{constructor(t){super(),this.unit=t}get typeId(){return f.Interval}toString(){return`Interval<${ne[this.unit]}>`}};Sl=Symbol.toStringTag,xr[Sl]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(xr.prototype);var Ye=class extends x{constructor(t){super(),this.children=[t]}get typeId(){return f.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};Il=Symbol.toStringTag,Ye[Il]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(Ye.prototype);var ht=class extends x{constructor(t){super(),this.children=t}get typeId(){return f.Struct}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}};Fl=Symbol.toStringTag,ht[Fl]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(ht.prototype);var Xe=class extends x{constructor(t,e,r){super(),this.mode=t,this.children=r,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,r)=>(t[e]=r)&&t||t),Object.create(null))}get typeId(){return f.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}};Al=Symbol.toStringTag,Xe[Al]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(Xe.prototype);var Tr=class extends x{constructor(t){super(),this.byteWidth=t}get typeId(){return f.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Bl=Symbol.toStringTag,Tr[Bl]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Tr.prototype);var Ge=class extends x{constructor(t,e){super(),this.listSize=t,this.children=[e]}get typeId(){return f.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};xl=Symbol.toStringTag,Ge[xl]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(Ge.prototype);var Ke=class extends x{constructor(t,e=!1){super(),this.children=[t],this.keysSorted=e}get typeId(){return f.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}};Tl=Symbol.toStringTag,Ke[Tl]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(Ke.prototype);var bp=(t=>()=>++t)(-1),Fe=class extends x{constructor(t,e,r,i){super(),this.indices=e,this.dictionary=t,this.isOrdered=i||!1,this.id=null==r?bp():"number"==typeof r?r:r.low}get typeId(){return f.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};function Ae(t){let e=t;switch(t.typeId){case f.Decimal:return t.bitWidth/32;case f.Timestamp:return 2;case f.Date:case f.Interval:return 1+e.unit;case f.FixedSizeList:return e.listSize;case f.FixedSizeBinary:return e.byteWidth;default:return 1}}Dl=Symbol.toStringTag,Fe[Dl]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(Fe.prototype);var D=class{visitMany(t,...e){return t.map(((t,r)=>this.visit(t,...e.map((t=>t[r])))))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return gp(this,t,e)}getVisitFnByTypeId(t,e=!0){return Mn(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}};function gp(t,e,r=!0){return"number"==typeof e?Mn(t,e,r):"string"==typeof e&&e in f?Mn(t,f[e],r):e&&e instanceof x?Mn(t,El(e),r):(null==e?void 0:e.type)&&e.type instanceof x?Mn(t,El(e.type),r):Mn(t,f.NONE,r)}function Mn(t,e,r=!0){let i=null;switch(e){case f.Null:i=t.visitNull;break;case f.Bool:i=t.visitBool;break;case f.Int:i=t.visitInt;break;case f.Int8:i=t.visitInt8||t.visitInt;break;case f.Int16:i=t.visitInt16||t.visitInt;break;case f.Int32:i=t.visitInt32||t.visitInt;break;case f.Int64:i=t.visitInt64||t.visitInt;break;case f.Uint8:i=t.visitUint8||t.visitInt;break;case f.Uint16:i=t.visitUint16||t.visitInt;break;case f.Uint32:i=t.visitUint32||t.visitInt;break;case f.Uint64:i=t.visitUint64||t.visitInt;break;case f.Float:i=t.visitFloat;break;case f.Float16:i=t.visitFloat16||t.visitFloat;break;case f.Float32:i=t.visitFloat32||t.visitFloat;break;case f.Float64:i=t.visitFloat64||t.visitFloat;break;case f.Utf8:i=t.visitUtf8;break;case f.Binary:i=t.visitBinary;break;case f.FixedSizeBinary:i=t.visitFixedSizeBinary;break;case f.Date:i=t.visitDate;break;case f.DateDay:i=t.visitDateDay||t.visitDate;break;case f.DateMillisecond:i=t.visitDateMillisecond||t.visitDate;break;case f.Timestamp:i=t.visitTimestamp;break;case f.TimestampSecond:i=t.visitTimestampSecond||t.visitTimestamp;break;case f.TimestampMillisecond:i=t.visitTimestampMillisecond||t.visitTimestamp;break;case f.TimestampMicrosecond:i=t.visitTimestampMicrosecond||t.visitTimestamp;break;case f.TimestampNanosecond:i=t.visitTimestampNanosecond||t.visitTimestamp;break;case f.Time:i=t.visitTime;break;case f.TimeSecond:i=t.visitTimeSecond||t.visitTime;break;case f.TimeMillisecond:i=t.visitTimeMillisecond||t.visitTime;break;case f.TimeMicrosecond:i=t.visitTimeMicrosecond||t.visitTime;break;case f.TimeNanosecond:i=t.visitTimeNanosecond||t.visitTime;break;case f.Decimal:i=t.visitDecimal;break;case f.List:i=t.visitList;break;case f.Struct:i=t.visitStruct;break;case f.Union:i=t.visitUnion;break;case f.DenseUnion:i=t.visitDenseUnion||t.visitUnion;break;case f.SparseUnion:i=t.visitSparseUnion||t.visitUnion;break;case f.Dictionary:i=t.visitDictionary;break;case f.Interval:i=t.visitInterval;break;case f.IntervalDayTime:i=t.visitIntervalDayTime||t.visitInterval;break;case f.IntervalYearMonth:i=t.visitIntervalYearMonth||t.visitInterval;break;case f.FixedSizeList:i=t.visitFixedSizeList;break;case f.Map:i=t.visitMap}if("function"==typeof i)return i;if(!r)return()=>null;throw new Error(`Unrecognized type '${f[e]}'`)}function El(t){switch(t.typeId){case f.Null:return f.Null;case f.Int:{let{bitWidth:e,isSigned:r}=t;switch(e){case 8:return r?f.Int8:f.Uint8;case 16:return r?f.Int16:f.Uint16;case 32:return r?f.Int32:f.Uint32;case 64:return r?f.Int64:f.Uint64}return f.Int}case f.Float:switch(t.precision){case yt.HALF:return f.Float16;case yt.SINGLE:return f.Float32;case yt.DOUBLE:return f.Float64}return f.Float;case f.Binary:return f.Binary;case f.Utf8:return f.Utf8;case f.Bool:return f.Bool;case f.Decimal:return f.Decimal;case f.Time:switch(t.unit){case X.SECOND:return f.TimeSecond;case X.MILLISECOND:return f.TimeMillisecond;case X.MICROSECOND:return f.TimeMicrosecond;case X.NANOSECOND:return f.TimeNanosecond}return f.Time;case f.Timestamp:switch(t.unit){case X.SECOND:return f.TimestampSecond;case X.MILLISECOND:return f.TimestampMillisecond;case X.MICROSECOND:return f.TimestampMicrosecond;case X.NANOSECOND:return f.TimestampNanosecond}return f.Timestamp;case f.Date:switch(t.unit){case Wt.DAY:return f.DateDay;case Wt.MILLISECOND:return f.DateMillisecond}return f.Date;case f.Interval:switch(t.unit){case ne.DAY_TIME:return f.IntervalDayTime;case ne.YEAR_MONTH:return f.IntervalYearMonth}return f.Interval;case f.Map:return f.Map;case f.List:return f.List;case f.Struct:return f.Struct;case f.Union:switch(t.mode){case vt.Dense:return f.DenseUnion;case vt.Sparse:return f.SparseUnion}return f.Union;case f.FixedSizeBinary:return f.FixedSizeBinary;case f.FixedSizeList:return f.FixedSizeList;case f.Dictionary:return f.Dictionary}throw new Error(`Unrecognized type '${f[t.typeId]}'`)}D.prototype.visitInt8=null,D.prototype.visitInt16=null,D.prototype.visitInt32=null,D.prototype.visitInt64=null,D.prototype.visitUint8=null,D.prototype.visitUint16=null,D.prototype.visitUint32=null,D.prototype.visitUint64=null,D.prototype.visitFloat16=null,D.prototype.visitFloat32=null,D.prototype.visitFloat64=null,D.prototype.visitDateDay=null,D.prototype.visitDateMillisecond=null,D.prototype.visitTimestampSecond=null,D.prototype.visitTimestampMillisecond=null,D.prototype.visitTimestampMicrosecond=null,D.prototype.visitTimestampNanosecond=null,D.prototype.visitTimeSecond=null,D.prototype.visitTimeMillisecond=null,D.prototype.visitTimeMicrosecond=null,D.prototype.visitTimeNanosecond=null,D.prototype.visitDenseUnion=null,D.prototype.visitSparseUnion=null,D.prototype.visitIntervalDayTime=null,D.prototype.visitIntervalYearMonth=null;var ma={};ln(ma,{float64ToUint16:()=>mi,uint16ToFloat64:()=>Ms});var Ol=new Float64Array(1),Un=new Uint32Array(Ol.buffer);function Ms(t){let e=(31744&t)>>10,r=(1023&t)/1024,i=Math.pow(-1,(32768&t)>>15);switch(e){case 31:return i*(r?Number.NaN:1/0);case 0:return i*(r?6103515625e-14*r:0)}return i*Math.pow(2,e-15)*(1+r)}function mi(t){if(t!=t)return 32256;Ol[0]=t;let e=(2147483648&Un[1])>>16&65535,r=2146435072&Un[1],i=0;return r>=1089470464?Un[0]>0?r=31744:(r=(2080374784&r)>>16,i=(1048575&Un[1])>>10):r<=1056964608?(i=1048576+(1048575&Un[1]),i=1048576+(i<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,i=512+(1048575&Un[1])>>10),e|r|65535&i}var N=class extends D{};function j(t){return(e,r,i)=>{if(e.setValid(r,null!=i))return t(e,r,i)}}var wp=(t,e,r)=>{t[e]=Math.trunc(r/864e5)},_a=(t,e,r)=>{t[e]=Math.trunc(r%4294967296),t[e+1]=Math.trunc(r/4294967296)},vp=(t,e,r)=>{t[e]=Math.trunc(1e3*r%4294967296),t[e+1]=Math.trunc(1e3*r/4294967296)},Sp=(t,e,r)=>{t[e]=Math.trunc(1e6*r%4294967296),t[e+1]=Math.trunc(1e6*r/4294967296)},Rl=(t,e,r,i)=>{if(r+1{let n=t+r;i?e[n>>3]|=1<>3]&=~(1<{t[e]=r},ya=({values:t},e,r)=>{t[e]=r},Ml=({values:t},e,r)=>{t[e]=mi(r)},Fp=(t,e,r)=>{switch(t.type.precision){case yt.HALF:return Ml(t,e,r);case yt.SINGLE:case yt.DOUBLE:return ya(t,e,r)}},Us=({values:t},e,r)=>{wp(t,e,r.valueOf())},Ls=({values:t},e,r)=>{_a(t,2*e,r.valueOf())},ba=({stride:t,values:e},r,i)=>{e.set(i.subarray(0,t),t*r)},Ap=({values:t,valueOffsets:e},r,i)=>Rl(t,e,r,i),Bp=({values:t,valueOffsets:e},r,i)=>{Rl(t,e,r,zr(i))},ga=(t,e,r)=>{t.type.unit===Wt.DAY?Us(t,e,r):Ls(t,e,r)},Ns=({values:t},e,r)=>_a(t,2*e,r/1e3),ks=({values:t},e,r)=>_a(t,2*e,r),Cs=({values:t},e,r)=>vp(t,2*e,r),Ps=({values:t},e,r)=>Sp(t,2*e,r),wa=(t,e,r)=>{switch(t.type.unit){case X.SECOND:return Ns(t,e,r);case X.MILLISECOND:return ks(t,e,r);case X.MICROSECOND:return Cs(t,e,r);case X.NANOSECOND:return Ps(t,e,r)}},Vs=({values:t},e,r)=>{t[e]=r},Hs=({values:t},e,r)=>{t[e]=r},zs=({values:t},e,r)=>{t[e]=r},js=({values:t},e,r)=>{t[e]=r},va=(t,e,r)=>{switch(t.type.unit){case X.SECOND:return Vs(t,e,r);case X.MILLISECOND:return Hs(t,e,r);case X.MICROSECOND:return zs(t,e,r);case X.NANOSECOND:return js(t,e,r)}},Sa=({values:t,stride:e},r,i)=>{t.set(i.subarray(0,e),e*r)},xp=(t,e,r)=>{let i=t.children[0],n=t.valueOffsets,s=$t.getVisitFn(i);if(Array.isArray(r))for(let t=-1,a=n[e],o=n[e+1];a{let i=t.children[0],{valueOffsets:n}=t,s=$t.getVisitFn(i),{[e]:a,[e+1]:o}=n,l=r instanceof Map?r.entries():Object.entries(r);for(let t of l)if(s(i,a,t),++a>=o)break},Dp=(t,e)=>(r,i,n,s)=>i&&r(i,t,e[s]),Ep=(t,e)=>(r,i,n,s)=>i&&r(i,t,e.get(s)),Op=(t,e)=>(r,i,n,s)=>i&&r(i,t,e.get(n.name)),Rp=(t,e)=>(r,i,n,s)=>i&&r(i,t,e[n.name]),Mp=(t,e,r)=>{let i=t.type.children.map((t=>$t.getVisitFn(t.type))),n=r instanceof Map?Op(e,r):r instanceof k?Ep(e,r):Array.isArray(r)?Dp(e,r):Rp(e,r);t.type.children.forEach(((e,r)=>n(i[r],t.children[r],e,r)))},Up=(t,e,r)=>{t.type.mode===vt.Dense?Ul(t,e,r):Ll(t,e,r)},Ul=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];$t.visit(n,t.valueOffsets[e],r)},Ll=(t,e,r)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[i];$t.visit(n,e,r)},Lp=(t,e,r)=>{var i;null===(i=t.dictionary)||void 0===i||i.set(t.values[e],r)},Ia=(t,e,r)=>{t.type.unit===ne.DAY_TIME?Ws(t,e,r):$s(t,e,r)},Ws=({values:t},e,r)=>{t.set(r.subarray(0,2),2*e)},$s=({values:t},e,r)=>{t[e]=12*r[0]+r[1]%12},Np=(t,e,r)=>{let{stride:i}=t,n=t.children[0],s=$t.getVisitFn(n);if(Array.isArray(r))for(let t=-1,a=e*i;++t`${je(t)}: ${je(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Fa(this[Je],this[Ln])}},Fa=class{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let t=this.childIndex;return tt.name))}has(t,e){return-1!==t[Je].type.children.findIndex((t=>t.name===e))}getOwnPropertyDescriptor(t,e){if(-1!==t[Je].type.children.findIndex((t=>t.name===e)))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let r=t[Je].type.children.findIndex((t=>t.name===e));if(-1!==r){let i=Dt.visit(t[Je].children[r],t[Ln]);return Reflect.set(t,e,i),i}}set(t,e,r){let i=t[Je].type.children.findIndex((t=>t.name===e));return-1!==i?($t.visit(t[Je].children[i],t[Ln],r),Reflect.set(t,e,r)):!(!Reflect.has(t,e)&&"symbol"!=typeof e)&&Reflect.set(t,e,r)}},O=class extends D{};function P(t){return(e,r)=>e.getValid(r)?t(e,r):null}var kp=(t,e)=>864e5*t[e],Ba=(t,e)=>4294967296*t[e+1]+(t[e]>>>0),Cp=(t,e)=>t[e+1]/1e3*4294967296+(t[e]>>>0)/1e3,Pp=(t,e)=>t[e+1]/1e6*4294967296+(t[e]>>>0)/1e6,Nl=t=>new Date(t),Vp=(t,e)=>Nl(kp(t,e)),Hp=(t,e)=>Nl(Ba(t,e)),zp=(t,e)=>null,kl=(t,e,r)=>{if(r+1>=e.length)return null;let i=e[r],n=e[r+1];return t.subarray(i,n)},jp=({offset:t,values:e},r)=>{let i=t+r;return 0!=(e[i>>3]&1<Vp(t,e),Pl=({values:t},e)=>Hp(t,2*e),$r=({stride:t,values:e},r)=>e[t*r],Wp=({stride:t,values:e},r)=>Ms(e[t*r]),Vl=({values:t},e)=>t[e],$p=({stride:t,values:e},r)=>e.subarray(t*r,t*(r+1)),Yp=({values:t,valueOffsets:e},r)=>kl(t,e,r),Xp=({values:t,valueOffsets:e},r)=>{let i=kl(t,e,r);return null!==i?ui(i):null},Gp=({values:t},e)=>t[e],Kp=({type:t,values:e},r)=>t.precision!==yt.HALF?e[r]:Ms(e[r]),Jp=(t,e)=>t.type.unit===Wt.DAY?Cl(t,e):Pl(t,e),Hl=({values:t},e)=>1e3*Ba(t,2*e),zl=({values:t},e)=>Ba(t,2*e),jl=({values:t},e)=>Cp(t,2*e),Wl=({values:t},e)=>Pp(t,2*e),qp=(t,e)=>{switch(t.type.unit){case X.SECOND:return Hl(t,e);case X.MILLISECOND:return zl(t,e);case X.MICROSECOND:return jl(t,e);case X.NANOSECOND:return Wl(t,e)}},$l=({values:t},e)=>t[e],Yl=({values:t},e)=>t[e],Xl=({values:t},e)=>t[e],Gl=({values:t},e)=>t[e],Zp=(t,e)=>{switch(t.type.unit){case X.SECOND:return $l(t,e);case X.MILLISECOND:return Yl(t,e);case X.MICROSECOND:return Xl(t,e);case X.NANOSECOND:return Gl(t,e)}},Qp=({values:t,stride:e},r)=>dn.decimal(t.subarray(e*r,e*(r+1))),tm=(t,e)=>{let{valueOffsets:r,stride:i,children:n}=t,{[e*i]:s,[e*i+1]:a}=r,o=n[0].slice(s,a-s);return new k([o])},em=(t,e)=>{let{valueOffsets:r,children:i}=t,{[e]:n,[e+1]:s}=r,a=i[0];return new sr(a.slice(n,s-n))},rm=(t,e)=>new Wr(t,e),nm=(t,e)=>t.type.mode===vt.Dense?Kl(t,e):Jl(t,e),Kl=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return Dt.visit(i,t.valueOffsets[e])},Jl=(t,e)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];return Dt.visit(i,e)},im=(t,e)=>{var r;return null===(r=t.dictionary)||void 0===r?void 0:r.get(t.values[e])},sm=(t,e)=>t.type.unit===ne.DAY_TIME?ql(t,e):Zl(t,e),ql=({values:t},e)=>t.subarray(2*e,2*(e+1)),Zl=({values:t},e)=>{let r=t[e],i=new Int32Array(2);return i[0]=Math.trunc(r/12),i[1]=Math.trunc(r%12),i},om=(t,e)=>{let{stride:r,children:i}=t,n=i[0].slice(e*r,r);return new k([n])};O.prototype.visitNull=P(zp),O.prototype.visitBool=P(jp),O.prototype.visitInt=P(Gp),O.prototype.visitInt8=P($r),O.prototype.visitInt16=P($r),O.prototype.visitInt32=P($r),O.prototype.visitInt64=P(Vl),O.prototype.visitUint8=P($r),O.prototype.visitUint16=P($r),O.prototype.visitUint32=P($r),O.prototype.visitUint64=P(Vl),O.prototype.visitFloat=P(Kp),O.prototype.visitFloat16=P(Wp),O.prototype.visitFloat32=P($r),O.prototype.visitFloat64=P($r),O.prototype.visitUtf8=P(Xp),O.prototype.visitBinary=P(Yp),O.prototype.visitFixedSizeBinary=P($p),O.prototype.visitDate=P(Jp),O.prototype.visitDateDay=P(Cl),O.prototype.visitDateMillisecond=P(Pl),O.prototype.visitTimestamp=P(qp),O.prototype.visitTimestampSecond=P(Hl),O.prototype.visitTimestampMillisecond=P(zl),O.prototype.visitTimestampMicrosecond=P(jl),O.prototype.visitTimestampNanosecond=P(Wl),O.prototype.visitTime=P(Zp),O.prototype.visitTimeSecond=P($l),O.prototype.visitTimeMillisecond=P(Yl),O.prototype.visitTimeMicrosecond=P(Xl),O.prototype.visitTimeNanosecond=P(Gl),O.prototype.visitDecimal=P(Qp),O.prototype.visitList=P(tm),O.prototype.visitStruct=P(rm),O.prototype.visitUnion=P(nm),O.prototype.visitDenseUnion=P(Kl),O.prototype.visitSparseUnion=P(Jl),O.prototype.visitDictionary=P(im),O.prototype.visitInterval=P(sm),O.prototype.visitIntervalDayTime=P(ql),O.prototype.visitIntervalYearMonth=P(Zl),O.prototype.visitFixedSizeList=P(om),O.prototype.visitMap=P(em);var Dt=new O,Me=Symbol.for("keys"),Nn=Symbol.for("vals"),sr=class{constructor(t){return this[Me]=new k([t.children[0]]).memoize(),this[Nn]=t.children[1],new Proxy(this,new Ta)}[Symbol.iterator](){return new xa(this[Me],this[Nn])}get size(){return this[Me].length}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[Me],e=this[Nn],r={};for(let i=-1,n=t.length;++i`${je(t)}: ${je(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},xa=class{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){let t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),Dt.visit(this.vals,t)]})}},Ta=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[Me].toArray().map(String)}has(t,e){return t[Me].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[Me].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let r=t[Me].indexOf(e);if(-1!==r){let i=Dt.visit(Reflect.get(t,Nn),r);return Reflect.set(t,e,i),i}}set(t,e,r){let i=t[Me].indexOf(e);return-1!==i?($t.visit(Reflect.get(t,Nn),i,r),Reflect.set(t,e,r)):!!Reflect.has(t,e)&&Reflect.set(t,e,r)}},Ql;function am(t,e,r){let i=t.length,n=e>-1?e:i+e%i;return r?r(t,n):n}function _i(t,e,r,i){let{length:n=0}=t,s="number"!=typeof e?0:e,a="number"!=typeof r?n:r;return s<0&&(s=(s%n+n)%n),a<0&&(a=(a%n+n)%n),an&&(a=n),i?i(t,s,a):[s,a]}Object.defineProperties(sr.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Me]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Nn]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var tu=t=>t!=t;function Yr(t){if("object"!=typeof t||null===t)return tu(t)?tu:e=>e===t;if(t instanceof Date){let e=t.valueOf();return t=>t instanceof Date&&t.valueOf()===e}return ArrayBuffer.isView(t)?e=>!!e&&la(t,e):t instanceof Map?lm(t):Array.isArray(t)?cm(t):t instanceof k?um(t):dm(t,!0)}function cm(t){let e=[];for(let r=-1,i=t.length;++r!1;let i=[];for(let e=-1,n=r.length;++e{if(!r||"object"!=typeof r)return!1;switch(r.constructor){case Array:return fm(t,r);case Map:return eu(t,r,r.keys());case sr:case Wr:case Object:case void 0:return eu(t,r,e||Object.keys(r))}return r instanceof k&&hm(t,r)}}function fm(t,e){let r=t.length;if(e.length!==r)return!1;for(let i=-1;++i>i}function pm(t,e,r){return r?!!(t[e>>3]|=1<>3]&=~(1<0||r.byteLength>3):hn(new fn(r,t,e,null,Gs)).subarray(0,i)),n}return r}function hn(t){let e=[],r=0,i=0,n=0;for(let s of t)s&&(n|=1<0)&&(e[r++]=n);let s=new Uint8Array(e.length+7&-8);return s.set(e),s}ln(Ea,{BitIterator:()=>fn,getBit:()=>ru,getBool:()=>Gs,packBools:()=>hn,popcnt_array:()=>nu,popcnt_bit_range:()=>yi,popcnt_uint32:()=>Xs,setBool:()=>pm,truncateBitmap:()=>kn});var fn=class{constructor(t,e,r,i,n){this.bytes=t,this.length=r,this.context=i,this.get=n,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}next(){return this.index>3<<3,n=e+(e%8==0?0:8-e%8);return yi(t,e,n)+yi(t,i,r)+nu(t,n>>3,i-n>>3)}function nu(t,e,r){let i=0,n=Math.trunc(e),s=new DataView(t.buffer,t.byteOffset,t.byteLength),a=void 0===r?t.byteLength:n+r;for(;a-n>=4;)i+=Xs(s.getUint32(n)),n+=4;for(;a-n>=2;)i+=Xs(s.getUint16(n)),n+=2;for(;a-n>=1;)i+=Xs(s.getUint8(n)),n+=1;return i}function Xs(t){let e=Math.trunc(t);return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}var mm=-1,rt=class{constructor(t,e,r,i,n,s=[],a){let o;this.type=t,this.children=s,this.dictionary=a,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),n instanceof rt?(this.stride=n.stride,this.values=n.values,this.typeIds=n.typeIds,this.nullBitmap=n.nullBitmap,this.valueOffsets=n.valueOffsets):(this.stride=Ae(t),n&&((o=n[0])&&(this.valueOffsets=o),(o=n[1])&&(this.values=o),(o=n[2])&&(this.nullBitmap=o),(o=n[3])&&(this.typeIds=o))),this.nullable=0!==this._nullCount&&this.nullBitmap&&this.nullBitmap.byteLength>0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let t=0,{valueOffsets:e,values:r,nullBitmap:i,typeIds:n}=this;return e&&(t+=e.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),n&&(t+=n.byteLength),this.children.reduce(((t,e)=>t+e.byteLength),t)}get nullCount(){let t,e=this._nullCount;return e<=mm&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-yi(t,this.offset,this.offset+this.length)),e}getValid(t){if(this.nullable&&this.nullCount>0){let e=this.offset+t;return 0!=(this.nullBitmap[e>>3]&1<>3){let{nullBitmap:t}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:t,_nullCount:0})}let{nullBitmap:r,offset:i}=this,n=i+t>>3,s=(i+t)%8,a=r[n]>>s&1;return e?0===a&&(r[n]|=1<>3).fill(255,0,e>>3);i[e>>3]=(1<0&&i.set(kn(this.offset,e,this.nullBitmap),0);let n=this.buffers;return n[Re.VALIDITY]=i,this.clone(this.type,0,t,r+(t-e),n)}_sliceBuffers(t,e,r,i){let n,{buffers:s}=this;return(n=s[Re.TYPE])&&(s[Re.TYPE]=n.subarray(t,t+e)),(n=s[Re.OFFSET])&&(s[Re.OFFSET]=n.subarray(t,t+e+1))||(n=s[Re.DATA])&&(s[Re.DATA]=6===i?n:n.subarray(r*t,r*(t+e))),s}_sliceChildren(t,e,r){return t.map((t=>t.slice(e,r)))}};rt.prototype.children=Object.freeze([]);var pn=class extends D{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){let{type:e,offset:r=0,length:i=0}=t;return new rt(e,r,i,0)}visitBool(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length>>3,nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitInt(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length,nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitFloat(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length,nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitUtf8(t){let{type:e,offset:r=0}=t,i=L(t.data),n=L(t.nullBitmap),s=un(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new rt(e,r,a,o,[s,i,n])}visitBinary(t){let{type:e,offset:r=0}=t,i=L(t.data),n=L(t.nullBitmap),s=un(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new rt(e,r,a,o,[s,i,n])}visitFixedSizeBinary(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length/Ae(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitDate(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length/Ae(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitTimestamp(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length/Ae(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitTime(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length/Ae(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitDecimal(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length/Ae(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitList(t){let{type:e,offset:r=0,child:i}=t,n=L(t.nullBitmap),s=un(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new rt(e,r,a,o,[s,void 0,n],[i])}visitStruct(t){let{type:e,offset:r=0,children:i=[]}=t,n=L(t.nullBitmap),{length:s=i.reduce(((t,{length:e})=>Math.max(t,e)),0),nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,void 0,n],i)}visitUnion(t){let{type:e,offset:r=0,children:i=[]}=t,n=L(t.nullBitmap),s=$(e.ArrayType,t.typeIds),{length:a=s.length,nullCount:o=(t.nullBitmap?-1:0)}=t;if(x.isSparseUnion(e))return new rt(e,r,a,o,[void 0,void 0,n,s],i);let l=un(t.valueOffsets);return new rt(e,r,a,o,[l,void 0,n,s],i)}visitDictionary(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.indices.ArrayType,t.data),{dictionary:s=new k([(new pn).visit({type:e.dictionary})])}=t,{length:a=n.length,nullCount:o=(t.nullBitmap?-1:0)}=t;return new rt(e,r,a,o,[void 0,n,i],[],s)}visitInterval(t){let{type:e,offset:r=0}=t,i=L(t.nullBitmap),n=$(e.ArrayType,t.data),{length:s=n.length/Ae(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,n,i])}visitFixedSizeList(t){let{type:e,offset:r=0,child:i=(new pn).visit({type:e.valueType})}=t,n=L(t.nullBitmap),{length:s=i.length/Ae(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new rt(e,r,s,a,[void 0,void 0,n],[i])}visitMap(t){let{type:e,offset:r=0,child:i=(new pn).visit({type:e.childType})}=t,n=L(t.nullBitmap),s=un(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new rt(e,r,a,o,[s,void 0,n],[i])}};function C(t){return(new pn).visit(t)}var bi=class{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndext+e.nullCount),0)}function Js(t){return t.reduce(((t,e,r)=>(t[r+1]=t[r]+e.length,t)),new Uint32Array(t.length+1))}function qs(t,e,r,i){let n=[];for(let s=-1,a=t.length;++s=i)break;if(r>=o+l)continue;if(o>=r&&o+l<=i){n.push(a);continue}let u=Math.max(0,r-o),h=Math.min(i-o,l);n.push(a.slice(u,h-u))}return 0===n.length&&n.push(t[0].slice(0,0)),n}function Oa(t,e,r,i){let n=0,s=0,a=e.length-1;do{if(n>=a-1)return r0?0:-1}function ym(t,e){let{nullBitmap:r}=t;if(!r||t.nullCount<=0)return-1;let i=0;for(let n of new fn(r,t.offset+(e||0),t.length,r,Gs)){if(!n)return i;++i}return-1}function Y(t,e,r){if(void 0===e)return-1;if(null===e)return ym(t,r);let i=Dt.getVisitFn(t),n=Yr(e);for(let e=(r||0)-1,s=t.length;++e{let r=t.data[e];return r.values.subarray(0,r.length)[Symbol.iterator]()}));let r=0;return new bi(t.data.length,(e=>{let i=t.data[e].length,n=t.slice(r,r+i);return r+=i,new Ra(n)}))}var Ra=class{constructor(t){this.vector=t,this.index=0}next(){return this.indext+e,or=class extends D{visitNull(t,e){return 0}visitInt(t,e){return t.type.bitWidth/8}visitFloat(t,e){return t.type.ArrayType.BYTES_PER_ELEMENT}visitBool(t,e){return 1/8}visitDecimal(t,e){return t.type.bitWidth/8}visitDate(t,e){return 4*(t.type.unit+1)}visitTime(t,e){return t.type.bitWidth/8}visitTimestamp(t,e){return t.type.unit===X.SECOND?4:8}visitInterval(t,e){return 4*(t.type.unit+1)}visitStruct(t,e){return t.children.reduce(((t,r)=>t+Be.visit(r,e)),0)}visitFixedSizeBinary(t,e){return t.type.byteWidth}visitMap(t,e){return 8+t.children.reduce(((t,r)=>t+Be.visit(r,e)),0)}visitDictionary(t,e){var r;return t.type.indices.bitWidth/8+((null===(r=t.dictionary)||void 0===r?void 0:r.getByteLength(t.values[e]))||0)}},gm=({valueOffsets:t},e)=>t[e+1]-t[e]+8,wm=({valueOffsets:t},e)=>t[e+1]-t[e]+8,vm=({valueOffsets:t,stride:e,children:r},i)=>{let n=r[0],{[i*e]:s}=t,{[i*e+1]:a}=t,o=Be.getVisitFn(n.type),l=n.slice(s,a-s),u=8;for(let t=-1,e=a-s;++t{let i=e[0],n=i.slice(r*t,t),s=Be.getVisitFn(i.type),a=0;for(let t=-1,e=n.length;++tt.type.mode===vt.Dense?su(t,e):ou(t,e),su=({type:t,children:e,typeIds:r,valueOffsets:i},n)=>{let s=t.typeIdToChildIndex[r[n]];return 8+Be.visit(e[s],i[n])},ou=({children:t},e)=>4+Be.visitMany(t,t.map((()=>e))).reduce(bm,0);or.prototype.visitUtf8=gm,or.prototype.visitBinary=wm,or.prototype.visitList=vm,or.prototype.visitFixedSizeList=Sm,or.prototype.visitUnion=Im,or.prototype.visitDenseUnion=su,or.prototype.visitSparseUnion=ou;var Be=new or,au,cu={},lu={},k=class{constructor(t){var e,r,i;let n=t[0]instanceof k?t.flatMap((t=>t.data)):t;if(0===n.length||n.some((t=>!(t instanceof rt))))throw new TypeError("Vector constructor expects an Array of Data instances.");let s=null===(e=n[0])||void 0===e?void 0:e.type;switch(n.length){case 0:this._offsets=[0];break;case 1:{let{get:t,set:e,indexOf:r,byteLength:i}=cu[s.typeId],a=n[0];this.isValid=t=>gi(a,t),this.get=e=>t(a,e),this.set=(t,r)=>e(a,t,r),this.indexOf=t=>r(a,t),this.getByteLength=t=>i(a,t),this._offsets=[0,a.length];break}default:Object.setPrototypeOf(this,lu[s.typeId]),this._offsets=Js(n)}this.data=n,this.type=s,this.stride=Ae(s),this.numChildren=null!==(i=null===(r=s.children)||void 0===r?void 0:r.length)&&void 0!==i?i:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return-1===this._byteLength&&(this._byteLength=this.data.reduce(((t,e)=>t+e.byteLength),0)),this._byteLength}get nullCount(){return-1===this._nullCount&&(this._nullCount=Ks(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${f[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>0}getByteLength(t){return 0}[Symbol.iterator](){return Cn.visit(this)}concat(...t){return new k(this.data.concat(t.flatMap((t=>t.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new k(_i(this,t,e,(({data:t,_offsets:e},r,i)=>qs(t,e,r,i))))}toJSON(){return[...this]}toArray(){let{type:t,data:e,length:r,stride:i,ArrayType:n}=this;switch(t.typeId){case f.Int:case f.Float:case f.Decimal:case f.Time:case f.Timestamp:switch(e.length){case 0:return new n;case 1:return e[0].values.subarray(0,r*i);default:return e.reduce(((t,{values:e})=>(t.array.set(e,t.offset),t.offset+=e.length,t)),{array:new n(r*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e;return this.getChildAt(null===(e=this.type.children)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&te[t]))):null}get isMemoized(){return!!x.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(x.isDictionary(this.type)){let t=new Pn(this.data[0].dictionary),e=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new k(e)}return new Pn(this)}unmemoize(){if(x.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),e=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new k(e)}return this}};au=Symbol.toStringTag,k[au]=(t=>{t.type=x.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._nullCount=-1,t._byteLength=-1,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;let e=Object.keys(f).map((t=>f[t])).filter((t=>"number"==typeof t&&t!==f.NONE));for(let r of e){let e=Dt.getVisitFnByTypeId(r),i=$t.getVisitFnByTypeId(r),n=mn.getVisitFnByTypeId(r),s=Be.getVisitFnByTypeId(r);cu[r]={get:e,set:i,indexOf:n,byteLength:s},lu[r]=Object.create(t,{isValid:{value:Xr(gi)},get:{value:Xr(Dt.getVisitFnByTypeId(r))},set:{value:Zs($t.getVisitFnByTypeId(r))},indexOf:{value:Qs(mn.getVisitFnByTypeId(r))},getByteLength:{value:Xr(Be.getVisitFnByTypeId(r))}})}return"Vector"})(k.prototype);var Pn=class extends k{constructor(t){super(t.data);let e=this.get,r=this.set,i=this.slice,n=new Array(this.length);Object.defineProperty(this,"get",{value(t){let r=n[t];if(void 0!==r)return r;let i=e.call(this,t);return n[t]=i,i}}),Object.defineProperty(this,"set",{value(t,e){r.call(this,t,e),n[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new Pn(i.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new k(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}};function uu(t){if(!t||t.length<=0)return function(t){return!0};let e="",r=t.filter((t=>t==t));return r.length>0&&(e=`\n switch (x) {${r.map((t=>`\n case ${Fm(t)}:`)).join("")}\n return false;\n }`),t.length!==r.length&&(e=`if (x !== x) return false;\n${e}`),new Function("x",`${e}\nreturn true;`)}function Fm(t){return"bigint"!=typeof t?je(t):ps?`${je(t)}n`:`"${je(t)}"`}var Ma=(t,e)=>(t*e+63&-64||64)/e,Am=(t,e=0)=>t.length>=e?t.subarray(0,e):En(new t.constructor(e),t,0),Gr=class{constructor(t,e=1){this.buffer=t,this.stride=e,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t.constructor,this._resize(this.length=Math.trunc(t.length/e))}get byteLength(){return Math.trunc(this.length*this.stride*this.BYTES_PER_ELEMENT)}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(t,e){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;let e=this.stride,r=this.length*e,i=this.buffer.length;r>=i&&this._resize(Ma(0===i?1*r:2*r,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=Ma(t*this.stride,this.BYTES_PER_ELEMENT);let e=Am(this.buffer,t);return this.clear(),e}clear(){return this.length=0,this._resize(0),this}_resize(t){return this.buffer=En(new this.ArrayType(t),this.buffer)}};Gr.prototype.offset=0;var Er=class extends Gr{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}},Vn=class extends Er{constructor(t=new Uint8Array(0)){super(t,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,e){let{buffer:r}=this.reserve(t-this.length+1),i=t>>3,n=t%8,s=r[i]>>n&1;return e?0===s&&(r[i]|=1<this.length&&this.set(t-1,0),super.flush(t+1)}},bt=class{constructor({type:t,nullValues:e}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=e,this.stride=Ae(t),this._nulls=new Vn,e&&e.length>0&&(this._isValid=uu(e))}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}toVector(){return new k([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0,{_offsets:e,_values:r,_nulls:i,_typeIds:n,children:s}=this;return e&&(t+=e.byteLength),r&&(t+=r.byteLength),i&&(t+=i.byteLength),n&&(t+=n.byteLength),s.reduce(((t,e)=>t+e.byteLength),t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce(((t,e)=>t+e.reservedByteLength),t)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}setValue(t,e){this._setValue(this,t,e)}setValid(t,e){return this.length=this._nulls.set(t,+e).length,e}addChild(t,e=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){let t,e,r,i,{type:n,length:s,nullCount:a,_typeIds:o,_offsets:l,_values:u,_nulls:h}=this;(e=null==o?void 0:o.flush(s))?i=null==l?void 0:l.flush(s):t=(i=null==l?void 0:l.flush(s))?null==u?void 0:u.flush(l.last()):null==u?void 0:u.flush(s),a>0&&(r=null==h?void 0:h.flush(s));let c=this.children.map((t=>t.flush()));return this.clear(),C({type:n,length:s,nullCount:a,children:c,child:c[0],data:t,typeIds:e,nullBitmap:r,valueOffsets:i})}finish(){this.finished=!0;for(let t of this.children)t.finish();return this}clear(){var t,e,r,i;this.length=0,null===(t=this._nulls)||void 0===t||t.clear(),null===(e=this._values)||void 0===e||e.clear(),null===(r=this._offsets)||void 0===r||r.clear(),null===(i=this._typeIds)||void 0===i||i.clear();for(let t of this.children)t.clear();return this}};bt.prototype.length=1,bt.prototype.stride=1,bt.prototype.children=null,bt.prototype.finished=!1,bt.prototype.nullValues=null,bt.prototype._isValid=()=>!0;var Nt=class extends bt{constructor(t){super(t),this._values=new Er(new this.ArrayType(0),this.stride)}setValue(t,e){let r=this._values;return r.reserve(t-r.length+1),super.setValue(t,e)}},ar=class extends bt{constructor(t){super(t),this._pendingLength=0,this._offsets=new Hn}setValue(t,e){let r=this._pending||(this._pending=new Map),i=r.get(t);i&&(this._pendingLength-=i.length),this._pendingLength+=e instanceof sr?e[Me].length:e.length,r.set(t,e)}setValid(t,e){return!!super.setValid(t,e)||((this._pending||(this._pending=new Map)).set(t,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}},_n=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(t,e,r,i){return t.prep(8,24),t.writeInt64(i),t.pad(4),t.writeInt32(r),t.writeInt64(e),t.offset()}},cr=new Int32Array(2),to=new Float32Array(cr.buffer),eo=new Float64Array(cr.buffer),zn=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],Et=class{constructor(t,e){this.low=0|t,this.high=0|e}static create(t,e){return 0==t&&0==e?Et.ZERO:new Et(t,e)}toFloat64(){return(this.low>>>0)+4294967296*this.high}equals(t){return this.low==t.low&&this.high==t.high}},wi;Et.ZERO=new Et(0,0),function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"}(wi||(wi={}));var se=class{constructor(t){this.bytes_=t,this.position_=0}static allocate(t){return new se(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return new Et(this.readInt32(t),this.readInt32(t+4))}readUint64(t){return new Et(this.readUint32(t),this.readUint32(t+4))}readFloat32(t){return cr[0]=this.readInt32(t),to[0]}readFloat64(t){return cr[zn?0:1]=this.readInt32(t),cr[zn?1:0]=this.readInt32(t+4),eo[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,e.low),this.writeInt32(t+4,e.high)}writeUint64(t,e){this.writeUint32(t,e.low),this.writeUint32(t+4,e.high)}writeFloat32(t,e){to[0]=e,this.writeInt32(t,cr[0])}writeFloat64(t,e){eo[0]=e,this.writeInt32(t,cr[zn?0:1]),this.writeInt32(t+4,cr[zn?1:0])}getBufferIdentifier(){if(this.bytes_.length>10),56320+(1023&e)))}return i}__union_with_string(t,e){return"string"==typeof t?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(4!=t.length)throw new Error("FlatBuffers: file identifier must be length 4");for(let e=0;e<4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1;return!0}createLong(t,e){return Et.create(t,e)}createScalarList(t,e){let r=[];for(let i=0;ithis.minalign&&(this.minalign=t);let r=1+~(this.bb.capacity()-this.space+e)&t-1;for(;this.space=0&&0==this.vtable[e];e--);let r=e+1;for(;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);this.addInt16(t-this.object_start);let i=2*(r+2);this.addInt16(i);let n=0,s=this.space;t:for(e=0;e=0;e--)this.writeInt8(t.charCodeAt(e))}this.prep(this.minalign,4+i),this.addOffset(t),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,e){this.finish(t,e,!0)}requiredField(t,e){let r=this.bb.capacity()-t,i=r-this.bb.readInt32(r);if(0==this.bb.readInt16(i+e))throw new Error("FlatBuffers: field "+e+" must be set")}startVector(t,e,r){this.notNested(),this.vector_num_elems=e,this.prep(4,t*e),this.prep(r,t*e)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);let e=this.createString(t);return this.string_maps.set(t,e),e}createString(t){if(!t)return 0;let e;if(t instanceof Uint8Array)e=t;else{e=[];let r=0;for(;r=56320?n:(n<<10)+t.charCodeAt(r++)+-56613888,i<128?e.push(i):(i<2048?e.push(i>>6&31|192):(i<65536?e.push(i>>12&15|224):e.push(i>>18&7|240,i>>12&63|128),e.push(i>>6&63|128)),e.push(63&i|128))}}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);for(let t=0,r=this.space,i=this.bb.bytes();t=0;r--)t.addInt32(e[r]);return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,r){return Pt.startUnion(t),Pt.addMode(t,e),Pt.addTypeIds(t,r),Pt.endUnion(t)}},pr=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(t,e){return(e||new pr).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,e){return t.setPosition(t.position()+4),(e||new pr).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return pr.startUtf8(t),pr.endUtf8(t)}},gt;!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"}(gt||(gt={}));var Ot=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(t,e){return(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,e){return t.setPosition(t.position()+4),(e||new Ot).__init(t.readInt32(t.position())+t.position(),t)}name(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){let t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}typeType(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):gt.NONE}type(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){let e=this.bb.__offset(this.bb_pos,12);return e?(t||new xe).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(t,e){let r=this.bb.__offset(this.bb_pos,14);return r?(e||new Ot).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}childrenLength(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,16);return r?(e||new pt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,gt.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}},St=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(t,e){return(e||new St).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,e){return t.setPosition(t.position()+4),(e||new St).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Jr.Little}fields(t,e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new Ot).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}fieldsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new pt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):this.bb.createLong(0,0)}featuresLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,Jr.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static addFeatures(t,e){t.addFieldOffset(3,e,0)}static createFeaturesVector(t,e){t.startVector(8,e.length,8);for(let r=e.length-1;r>=0;r--)t.addInt64(e[r]);return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,e){t.finish(e)}static finishSizePrefixedSchemaBuffer(t,e){t.finish(e,void 0,!0)}static createSchema(t,e,r,i,n){return St.startSchema(t),St.addEndianness(t,e),St.addFields(t,r),St.addCustomMetadata(t,i),St.addFeatures(t,n),St.endSchema(t)}},Jt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new Jt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new Jt).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Kr.V1}schema(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new St).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new _n).__init(this.bb.__vector(this.bb_pos+r)+24*t,this.bb):null}dictionariesLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){let r=this.bb.__offset(this.bb_pos,10);return r?(e||new _n).__init(this.bb.__vector(this.bb_pos+r)+24*t,this.bb):null}recordBatchesLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new pt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,Kr.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}},G=class{constructor(t=[],e,r){this.fields=t||[],this.metadata=e||new Map,r||(r=Ua(t)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((t=>t.name))}toString(){return`Schema<{ ${this.fields.map(((t,e)=>`${e}: ${t}`)).join(", ")} }>`}select(t){let e=new Set(t),r=this.fields.filter((t=>e.has(t.name)));return new G(r,this.metadata)}selectAt(t){let e=t.map((t=>this.fields[t])).filter(Boolean);return new G(e,this.metadata)}assign(...t){let e=t[0]instanceof G?t[0]:Array.isArray(t[0])?new G(t[0]):new G(t),r=[...this.fields],i=no(no(new Map,this.metadata),e.metadata),n=e.fields.filter((t=>{let e=r.findIndex((e=>e.name===t.name));return!~e||(r[e]=t.clone({metadata:no(no(new Map,r[e].metadata),t.metadata)}))&&!1})),s=Ua(n,new Map);return new G([...r,...n],i,new Map([...this.dictionaries,...s]))}};G.prototype.fields=null,G.prototype.metadata=null,G.prototype.dictionaries=null;var H=class{constructor(t,e,r=!1,i){this.name=t,this.type=e,this.nullable=r,this.metadata=i||new Map}static new(...t){let[e,r,i,n]=t;return t[0]&&"object"==typeof t[0]&&(({name:e}=t[0]),void 0===r&&(r=t[0].type),void 0===i&&(i=t[0].nullable),void 0===n&&(n=t[0].metadata)),new H(`${e}`,r,i,n)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,r,i,n]=t;return t[0]&&"object"==typeof t[0]?({name:e=this.name,type:r=this.type,nullable:i=this.nullable,metadata:n=this.metadata}=t[0]):[e=this.name,r=this.type,i=this.nullable,n=this.metadata]=t,H.new(e,r,i,n)}};function no(t,e){return new Map([...t||new Map,...e||new Map])}function Ua(t,e=new Map){for(let r=-1,i=t.length;++r0&&Ua(i.children,e)}return e}H.prototype.type=null,H.prototype.name=null,H.prototype.nullable=null,H.prototype.metadata=null;var du=Et,Bm=Or,xm=se,Rr=class{constructor(t,e=Lt.V4,r,i){this.schema=t,this.version=e,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}static decode(t){t=new xm(L(t));let e=Jt.getRootAsFooter(t),r=G.decode(e.schema());return new La(r,e)}static encode(t){let e=new Bm,r=G.encode(e,t.schema);Jt.startRecordBatchesVector(e,t.numRecordBatches);for(let r of[...t.recordBatches()].slice().reverse())Ze.encode(e,r);let i=e.endVector();Jt.startDictionariesVector(e,t.numDictionaries);for(let r of[...t.dictionaryBatches()].slice().reverse())Ze.encode(e,r);let n=e.endVector();return Jt.startFooter(e),Jt.addSchema(e,r),Jt.addVersion(e,Lt.V4),Jt.addRecordBatches(e,i),Jt.addDictionaries(e,n),Jt.finishFooterBuffer(e,Jt.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,e=-1,r=this.numRecordBatches;++e=0&&t=0&&t=0&&t=0&&tthis._closedPromiseResolve=t))}get closed(){return this._closedPromise}cancel(t){return I(this,void 0,void 0,(function*(){yield this.return(t)}))}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){let{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(mt);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return jt.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return jt.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return I(this,void 0,void 0,(function*(){return yield this.abort(t),mt}))}return(t){return I(this,void 0,void 0,(function*(){return yield this.close(),mt}))}read(t){return I(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return I(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((t,e)=>{this.resolvers.push({resolve:t,reject:e})})):Promise.resolve(mt)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}},mr=class extends io{write(t){if((t=L(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?ui(this.toUint8Array(!0)):this.toUint8Array(!1).then(ui)}toUint8Array(t=!1){return t?Ie(this._values)[0]:(()=>I(this,void 0,void 0,(function*(){var t,e;let r=[],i=0;try{for(var n,s=Ee(this);!(n=yield s.next()).done;){let t=n.value;r.push(t),i+=t.byteLength}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=s.return)&&(yield e.call(s))}finally{if(t)throw t.error}}return Ie(r,i)[0]})))()}},_r=class{constructor(t){t&&(this.source=new Na(jt.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},be=class{constructor(t){t instanceof be?this.source=t.source:t instanceof mr?this.source=new Mr(jt.fromAsyncIterable(t)):ws(t)?this.source=new Mr(jt.fromNodeStream(t)):fi(t)?this.source=new Mr(jt.fromDOMStream(t)):bs(t)?this.source=new Mr(jt.fromDOMStream(t.body)):He(t)?this.source=new Mr(jt.fromIterable(t)):(Ve(t)||Oe(t))&&(this.source=new Mr(jt.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},Na=class{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||mt)}return(t){return Object.create(this.source.return&&this.source.return(t)||mt)}},Mr=class{constructor(t){this.source=t,this._closedPromise=new Promise((t=>this._closedPromiseResolve=t))}cancel(t){return I(this,void 0,void 0,(function*(){yield this.return(t)}))}get closed(){return this._closedPromise}read(t){return I(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return I(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(t,e="read"){return I(this,void 0,void 0,(function*(){return yield this.source.next({cmd:e,size:t})}))}throw(t){return I(this,void 0,void 0,(function*(){let e=this.source.throw&&(yield this.source.throw(t))||mt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}return(t){return I(this,void 0,void 0,(function*(){let e=this.source.return&&(yield this.source.return(t))||mt;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}},xi=class extends _r{constructor(t,e){super(),this.position=0,this.buffer=L(t),this.size=typeof e>"u"?this.buffer.byteLength:e}readInt32(t){let{buffer:e,byteOffset:r}=this.readAt(t,4);return new DataView(e,r).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),tI(this,void 0,void 0,(function*(){this.size=(yield t.stat()).size,delete this._pending})))()}readInt32(t){return I(this,void 0,void 0,(function*(){let{buffer:e,byteOffset:r}=yield this.readAt(t,4);return new DataView(e,r).getInt32(0,!0)}))}seek(t){return I(this,void 0,void 0,(function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),tTi,Int128:()=>ge,Int64:()=>Vt,Uint64:()=>nt});var Wn=8,ka=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Ti=class{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){let e=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),r=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]]),i=e[3]*r[3];this.buffer[0]=65535&i;let n=i>>>16;return i=e[2]*r[3],n+=i,i=e[3]*r[2]>>>0,n+=i,this.buffer[0]+=n<<16,this.buffer[1]=n>>>0>>16,this.buffer[1]+=e[1]*r[3]+e[2]*r[2]+e[3]*r[1],this.buffer[1]+=e[0]*r[3]+e[1]*r[2]+e[2]*r[1]+e[3]*r[0]<<16,this}_plus(t){let e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]>>0&&++e[1],e[1]>>0&&++e[2],e[2]>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${jn(this.buffer[3])} ${jn(this.buffer[2])} ${jn(this.buffer[1])} ${jn(this.buffer[0])}`}static multiply(t,e){return new ge(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new ge(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return ge.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return ge.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){let r=t.startsWith("-"),i=t.length,n=new ge(e);for(let e=r?1:0;e0&&this.readData(t,r)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+e)}readDictionary(t){return this.dictionaries.get(t.id)}},so=class extends Di{constructor(t,e,r,i){super(new Uint8Array(0),e,r,i),this.sources=t}readNullBitmap(t,e,{offset:r}=this.nextBufferRange()){return e<=0?new Uint8Array(0):hn(this.sources[r])}readOffsets(t,{offset:e}=this.nextBufferRange()){return $(Uint8Array,$(Int32Array,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return $(Uint8Array,$(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){let{sources:r}=this;return x.isTimestamp(t)||(x.isInt(t)||x.isTime(t))&&64===t.bitWidth||x.isDate(t)&&t.unit===Wt.MILLISECOND?$(Uint8Array,Vt.convertArray(r[e])):x.isDecimal(t)?$(Uint8Array,ge.convertArray(r[e])):x.isBinary(t)||x.isFixedSizeBinary(t)?Tm(r[e]):x.isBool(t)?hn(r[e]):x.isUtf8(t)?zr(r[e].join("")):$(Uint8Array,$(t.ArrayType,r[e].map((t=>+t))))}};function Tm(t){let e=t.join(""),r=new Uint8Array(e.length/2);for(let t=0;t>1]=Number.parseInt(e.slice(t,t+2),16);return r}var $n=class extends ar{constructor(t){super(t),this._values=new Gr(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,L(e))}_flushPending(t,e){let r=this._offsets,i=this._values.reserve(e).buffer,n=0;for(let[e,s]of t)if(void 0===s)r.set(e,0);else{let t=s.length;i.set(s,n),r.set(e,t),n+=t}}},oo=class extends bt{constructor(t){super(t),this._values=new Vn}setValue(t,e){this._values.set(t,+e)}},bn=class extends Nt{};bn.prototype._setValue=ga;var Ei=class extends bn{};Ei.prototype._setValue=Us;var Oi=class extends bn{};Oi.prototype._setValue=Ls;var Ri=class extends Nt{};Ri.prototype._setValue=Sa;var ao=class extends bt{constructor({type:t,nullValues:e,dictionaryHashFunction:r}){super({type:new Fe(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=gn({type:this.type.indices,nullValues:e}),this.dictionary=gn({type:this.type.dictionary,nullValues:null}),"function"==typeof r&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(t){return this.indices.isValid(t)}setValid(t,e){let r=this.indices;return e=r.setValid(t,e),this.length=r.length,e}setValue(t,e){let r=this._keysToIndices,i=this.valueToKey(e),n=r[i];return void 0===n&&(r[i]=n=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,n)}flush(){let t=this.type,e=this._dictionary,r=this.dictionary.toVector(),i=this.indices.flush().clone(t);return i.dictionary=e?e.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=i.dictionary,this.clear(),i}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(t){return"string"==typeof t?t:`${t}`}},Mi=class extends Nt{};Mi.prototype._setValue=ba;var co=class extends bt{setValue(t,e){let[r]=this.children,i=t*this.stride;for(let t=-1,n=e.length;++t0)throw new Error("FixedSizeListBuilder can only have one child.");let r=this.children.push(t);return this.type=new Ge(this.type.listSize,new H(e,t.type,!0)),r}},wn=class extends Nt{setValue(t,e){this._values.set(t,e)}},lo=class extends wn{setValue(t,e){super.setValue(t,mi(e))}},uo=class extends wn{},fo=class extends wn{},vn=class extends Nt{};vn.prototype._setValue=Ia;var Ui=class extends vn{};Ui.prototype._setValue=Ws;var Li=class extends vn{};Li.prototype._setValue=$s;var Le=class extends Nt{setValue(t,e){this._values.set(t,e)}},ho=class extends Le{},po=class extends Le{},mo=class extends Le{},_o=class extends Le{},yo=class extends Le{},bo=class extends Le{},go=class extends Le{},wo=class extends Le{},vo=class extends ar{constructor(t){super(t),this._offsets=new Hn}addChild(t,e="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Ye(new H(e,t.type,!0)),this.numChildren-1}_flushPending(t){let e=this._offsets,[r]=this.children;for(let[i,n]of t)if(void 0===n)e.set(i,0);else{let t=n.length,s=e.set(i,t).buffer[i];for(let e=-1;++e0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new Ke(new H(e,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){let e=this._offsets,[r]=this.children;for(let[i,n]of t)if(void 0===n)e.set(i,0);else{let{[i]:t,[i+1]:s}=e.set(i,n.size).buffer;for(let e of n.entries())if(r.set(t,e),++t>=s)break}}},Io=class extends bt{setValue(t,e){}setValid(t,e){return this.length=Math.max(t+1,this.length),e}},Fo=class extends bt{setValue(t,e){let{children:r,type:i}=this;switch(Array.isArray(e)||e.constructor){case!0:return i.children.forEach(((i,n)=>r[n].set(t,e[n])));case Map:return i.children.forEach(((i,n)=>r[n].set(t,e.get(i.name))));default:return i.children.forEach(((i,n)=>r[n].set(t,e[i.name])))}}setValid(t,e){return super.setValid(t,e)||this.children.forEach((r=>r.setValid(t,e))),e}addChild(t,e=`${this.numChildren}`){let r=this.children.push(t);return this.type=new ht([...this.type.children,new H(e,t.type,!0)]),r}},Ur=class extends Nt{};Ur.prototype._setValue=wa;var Ni=class extends Ur{};Ni.prototype._setValue=Ns;var ki=class extends Ur{};ki.prototype._setValue=ks;var Ci=class extends Ur{};Ci.prototype._setValue=Cs;var Pi=class extends Ur{};Pi.prototype._setValue=Ps;var Lr=class extends Nt{};Lr.prototype._setValue=va;var Vi=class extends Lr{};Vi.prototype._setValue=Vs;var Hi=class extends Lr{};Hi.prototype._setValue=Hs;var zi=class extends Lr{};zi.prototype._setValue=zs;var ji=class extends Lr{};ji.prototype._setValue=js;var Yn=class extends bt{constructor(t){super(t),this._typeIds=new Er(new Int8Array(0),1),"function"==typeof t.valueToChildTypeId&&(this._valueToChildTypeId=t.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,e){return this.set(this.length,t,e)}set(t,e,r){return void 0===r&&(r=this._valueToChildTypeId(this,e,t)),this.setValid(t,this.isValid(e))&&this.setValue(t,e,r),this}setValue(t,e,r){this._typeIds.set(t,r);let i=this.type.typeIdToChildIndex[r],n=this.children[i];null==n||n.set(t,e)}addChild(t,e=`${this.children.length}`){let r=this.children.push(t),{type:{children:i,mode:n,typeIds:s}}=this,a=[...i,new H(e,t.type)];return this.type=new Xe(n,[...s,r],a),r}_valueToChildTypeId(t,e,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},Ao=class extends Yn{},Bo=class extends Yn{constructor(t){super(t),this._offsets=new Er(new Int32Array(0))}setValue(t,e,r){let i=this._typeIds.set(t,r).buffer[t],n=this.getChildAt(this.type.typeIdToChildIndex[i]),s=this._offsets.set(t,n.length).buffer[t];null==n||n.set(s,e)}},Wi=class extends ar{constructor(t){super(t),this._values=new Gr(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,zr(e))}_flushPending(t,e){}};Wi.prototype._flushPending=$n.prototype._flushPending;var Pa=class extends D{visitNull(){return Io}visitBool(){return oo}visitInt(){return Le}visitInt8(){return ho}visitInt16(){return po}visitInt32(){return mo}visitInt64(){return _o}visitUint8(){return yo}visitUint16(){return bo}visitUint32(){return go}visitUint64(){return wo}visitFloat(){return wn}visitFloat16(){return lo}visitFloat32(){return uo}visitFloat64(){return fo}visitUtf8(){return Wi}visitBinary(){return $n}visitFixedSizeBinary(){return Mi}visitDate(){return bn}visitDateDay(){return Ei}visitDateMillisecond(){return Oi}visitTimestamp(){return Ur}visitTimestampSecond(){return Ni}visitTimestampMillisecond(){return ki}visitTimestampMicrosecond(){return Ci}visitTimestampNanosecond(){return Pi}visitTime(){return Lr}visitTimeSecond(){return Vi}visitTimeMillisecond(){return Hi}visitTimeMicrosecond(){return zi}visitTimeNanosecond(){return ji}visitDecimal(){return Ri}visitList(){return vo}visitStruct(){return Fo}visitUnion(){return Yn}visitDenseUnion(){return Bo}visitSparseUnion(){return Ao}visitDictionary(){return ao}visitInterval(){return vn}visitIntervalDayTime(){return Ui}visitIntervalYearMonth(){return Li}visitFixedSizeList(){return co}visitMap(){return So}},fu=new Pa,U=class extends D{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((t,r)=>this.compareFields(t,e[r])))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}};function we(t,e){return e instanceof t.constructor}function $i(t,e){return t===e||we(t,e)}function Nr(t,e){return t===e||we(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function xo(t,e){return t===e||we(t,e)&&t.precision===e.precision}function Dm(t,e){return t===e||we(t,e)&&t.byteWidth===e.byteWidth}function Va(t,e){return t===e||we(t,e)&&t.unit===e.unit}function Yi(t,e){return t===e||we(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function Xi(t,e){return t===e||we(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function Em(t,e){return t===e||we(t,e)&&t.children.length===e.children.length&&yr.compareManyFields(t.children,e.children)}function Om(t,e){return t===e||we(t,e)&&t.children.length===e.children.length&&yr.compareManyFields(t.children,e.children)}function Ha(t,e){return t===e||we(t,e)&&t.mode===e.mode&&t.typeIds.every(((t,r)=>t===e.typeIds[r]))&&yr.compareManyFields(t.children,e.children)}function Rm(t,e){return t===e||we(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&yr.visit(t.indices,e.indices)&&yr.visit(t.dictionary,e.dictionary)}function za(t,e){return t===e||we(t,e)&&t.unit===e.unit}function Mm(t,e){return t===e||we(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&yr.compareManyFields(t.children,e.children)}function Um(t,e){return t===e||we(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&yr.compareManyFields(t.children,e.children)}U.prototype.visitNull=$i,U.prototype.visitBool=$i,U.prototype.visitInt=Nr,U.prototype.visitInt8=Nr,U.prototype.visitInt16=Nr,U.prototype.visitInt32=Nr,U.prototype.visitInt64=Nr,U.prototype.visitUint8=Nr,U.prototype.visitUint16=Nr,U.prototype.visitUint32=Nr,U.prototype.visitUint64=Nr,U.prototype.visitFloat=xo,U.prototype.visitFloat16=xo,U.prototype.visitFloat32=xo,U.prototype.visitFloat64=xo,U.prototype.visitUtf8=$i,U.prototype.visitBinary=$i,U.prototype.visitFixedSizeBinary=Dm,U.prototype.visitDate=Va,U.prototype.visitDateDay=Va,U.prototype.visitDateMillisecond=Va,U.prototype.visitTimestamp=Yi,U.prototype.visitTimestampSecond=Yi,U.prototype.visitTimestampMillisecond=Yi,U.prototype.visitTimestampMicrosecond=Yi,U.prototype.visitTimestampNanosecond=Yi,U.prototype.visitTime=Xi,U.prototype.visitTimeSecond=Xi,U.prototype.visitTimeMillisecond=Xi,U.prototype.visitTimeMicrosecond=Xi,U.prototype.visitTimeNanosecond=Xi,U.prototype.visitDecimal=$i,U.prototype.visitList=Em,U.prototype.visitStruct=Om,U.prototype.visitUnion=Ha,U.prototype.visitDenseUnion=Ha,U.prototype.visitSparseUnion=Ha,U.prototype.visitDictionary=Rm,U.prototype.visitInterval=za,U.prototype.visitIntervalDayTime=za,U.prototype.visitIntervalYearMonth=za,U.prototype.visitFixedSizeList=Mm,U.prototype.visitMap=Um;var yr=new U;function Sn(t,e){return yr.compareSchemas(t,e)}function hu(t,e){return yr.compareFields(t,e)}function pu(t,e){return yr.visit(t,e)}function gn(t){let e=t.type,r=new(fu.getVisitFn(e)())(t);if(e.children&&e.children.length>0){let i=t.children||[],n={nullValues:t.nullValues},s=Array.isArray(i)?(t,e)=>i[e]||n:({name:t})=>i[t]||n;for(let[t,i]of e.children.entries()){let{type:e}=i,n=s(i,t);r.children.push(gn(Object.assign(Object.assign({},n),{type:e})))}}return r}function To(t,e){return Lm(t,e.map((t=>t.data.concat())))}function Lm(t,e){let r,i=[...t.fields],n=[],s={numBatches:e.reduce(((t,e)=>Math.max(t,e.length)),0)},a=0,o=0,l=-1,u=e.length,h=[];for(;s.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,l=-1;++l0&&(n[a++]=C({type:new ht(i),length:o,nullCount:0,children:h.slice()})))}return[t=t.assign(i),n.map((e=>new ft(t,e)))]}function Nm(t,e,r,i,n){var s;let a=(e+63&-64)>>3;for(let o=-1,l=i.length;++o=e)u===e?r[o]=l:(r[o]=l.slice(0,e),n.numBatches=Math.max(n.numBatches,i[o].unshift(l.slice(e,u-e))));else{let i=t[o];t[o]=i.clone({nullable:!0}),r[o]=null!==(s=null==l?void 0:l._changeLengthAndBackfillNullBitmap(e))&&void 0!==s?s:C({type:i.type,length:e,nullCount:e,nullBitmap:new Uint8Array(a)})}}return r}var mu,At=class{constructor(...t){var e,r;if(0===t.length)return this.batches=[],this.schema=new G([]),this._offsets=[0],this;let i,n;t[0]instanceof G&&(i=t.shift()),t[t.length-1]instanceof Uint32Array&&(n=t.pop());let s=t=>{if(t){if(t instanceof ft)return[t];if(t instanceof At)return t.batches;if(t instanceof rt){if(t.type instanceof ht)return[new ft(new G(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((t=>s(t)));if("function"==typeof t[Symbol.iterator])return[...t].flatMap((t=>s(t)));if("object"==typeof t){let e=Object.keys(t),r=e.map((e=>new k([t[e]]))),i=new G(e.map(((t,e)=>new H(String(t),r[e].type)))),[,n]=To(i,r);return 0===n.length?[new ft(t)]:n}}}return[]},a=t.flatMap((t=>s(t)));if(i=null!==(r=null!=i?i:null===(e=a[0])||void 0===e?void 0:e.schema)&&void 0!==r?r:new G([]),!(i instanceof G))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let t of a){if(!(t instanceof ft))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Sn(i,t.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=a,this._offsets=null!=n?n:Js(this.data)}get data(){return this.batches.map((({data:t})=>t))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((t,e)=>t+e.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=Ks(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}set(t,e){}indexOf(t,e){return-1}getByteLength(t){return 0}[Symbol.iterator](){return this.batches.length>0?Cn.visit(new k(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(",\n ")}\n]`}concat(...t){let e=this.schema,r=this.data.concat(t.flatMap((({data:t})=>t)));return new At(e,r.map((t=>new ft(e,t))))}slice(t,e){let r=this.schema;[t,e]=_i({length:this.numRows},t,e);let i=qs(this.data,this._offsets,t,e);return new At(r,i.map((t=>new ft(r,t))))}getChild(t){return this.getChildAt(this.schema.fields.findIndex((e=>e.name===t)))}getChildAt(t){if(t>-1&&te.children[t]));if(0===e.length){let{type:r}=this.schema.fields[t],i=C({type:r,length:0,nullCount:0});e.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new k(e)}return null}setChild(t,e){var r;return this.setChildAt(null===(r=this.schema.fields)||void 0===r?void 0:r.findIndex((e=>e.name===t)),e)}setChildAt(t,e){let r=this.schema,i=[...this.batches];if(t>-1&&tthis.getChildAt(e)));[n[t],a[t]]=[s,e],[r,i]=To(r,a)}return new At(r,i)}select(t){let e=this.schema.fields.reduce(((t,e,r)=>t.set(e.name,r)),new Map);return this.selectAt(t.map((t=>e.get(t))).filter((t=>t>-1)))}selectAt(t){let e=this.schema.selectAt(t),r=this.batches.map((e=>e.selectAt(t)));return new At(e,r)}assign(t){let e=this.schema.fields,[r,i]=t.schema.fields.reduce(((t,r,i)=>{let[n,s]=t,a=e.findIndex((t=>t.name===r.name));return~a?s[a]=i:n.push(i),t}),[[],[]]),n=this.schema.assign(t.schema),s=[...e.map(((t,e)=>[e,i[e]])).map((([e,r])=>void 0===r?this.getChildAt(e):t.getChildAt(r))),...r.map((e=>t.getChildAt(e)))].filter(Boolean);return new At(...To(n,s))}};mu=Symbol.toStringTag,At[mu]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=Xr(gi),t.get=Xr(Dt.getVisitFn(f.Struct)),t.set=Zs($t.getVisitFn(f.Struct)),t.indexOf=Qs(mn.getVisitFn(f.Struct)),t.getByteLength=Xr(Be.getVisitFn(f.Struct)),"Table"))(At.prototype);var yu,ft=class{constructor(...t){switch(t.length){case 2:if([this.schema]=t,!(this.schema instanceof G))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=C({nullCount:0,type:new ht(this.schema.fields),children:this.schema.fields.map((t=>C({type:t.type,nullCount:0})))})]=t,!(this.data instanceof rt))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=_u(this.schema,this.data.children);break;case 1:{let[e]=t,{fields:r,children:i,length:n}=Object.keys(e).reduce(((t,r,i)=>(t.children[i]=e[r],t.length=Math.max(t.length,e[r].length),t.fields[i]=H.new({name:r,type:e[r].type,nullable:!0}),t)),{length:0,fields:new Array,children:new Array}),s=new G(r),a=C({type:new ht(r),length:n,children:i,nullCount:0});[this.schema,this.data]=_u(s,a.children,n);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=bu(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(t){return this.data.getValid(t)}get(t){return Dt.visit(this.data,t)}set(t,e){return $t.visit(this.data,t,e)}indexOf(t,e){return mn.visit(this.data,t,e)}getByteLength(t){return Be.visit(this.data,t)}[Symbol.iterator](){return Cn.visit(new k([this.data]))}toArray(){return[...this]}concat(...t){return new At(this.schema,[this,...t])}slice(t,e){let[r]=new k([this.data]).slice(t,e).data;return new ft(this.schema,r)}getChild(t){var e;return this.getChildAt(null===(e=this.schema.fields)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&te.name===t)),e)}setChildAt(t,e){let r=this.schema,i=this.data;if(t>-1&&tt.name===e));~t&&(i[t]=this.data.children[t])}return new ft(e,C({type:r,length:this.numRows,children:i}))}selectAt(t){let e=this.schema.selectAt(t),r=t.map((t=>this.data.children[t])).filter(Boolean),i=C({type:new ht(e.fields),length:this.numRows,children:r});return new ft(e,i)}};function _u(t,e,r=e.reduce(((t,e)=>Math.max(t,e.length)),0)){var i;let n=[...t.fields],s=[...e],a=(r+63&-64)>>3;for(let[o,l]of t.fields.entries()){let t=e[o];(!t||t.length!==r)&&(n[o]=l.clone({nullable:!0}),s[o]=null!==(i=null==t?void 0:t._changeLengthAndBackfillNullBitmap(r))&&void 0!==i?i:C({type:l.type,length:r,nullCount:r,nullBitmap:new Uint8Array(a)}))}return[t.assign(n),C({type:new ht(n),length:r,children:s})]}function bu(t,e,r=new Map){for(let i=-1,n=t.length;++i0&&bu(n.children,s.children,r)}return r}yu=Symbol.toStringTag,ft[yu]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(ft.prototype);var In=class extends ft{constructor(t){let e=t.fields.map((t=>C({type:t.type})));super(t,C({type:new ht(t.fields),nullCount:0,children:e}))}},Gi,Ki;!function(t){t[t.BUFFER=0]="BUFFER"}(Gi||(Gi={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(Ki||(Ki={}));var Qe=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new Qe).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+4),(e||new Qe).__init(t.readInt32(t.position())+t.position(),t)}codec(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):Ki.LZ4_FRAME}method(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):Gi.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,Ki.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,Gi.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,r){return Qe.startBodyCompression(t),Qe.addCodec(t,e),Qe.addMethod(t,r),Qe.endBodyCompression(t)}},Xn=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(e),t.offset()}},Gn=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,r){return t.prep(8,16),t.writeInt64(r),t.writeInt64(e),t.offset()}},qt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(t,e){return(e||new qt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,e){return t.setPosition(t.position()+4),(e||new qt).__init(t.readInt32(t.position())+t.position(),t)}length(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}nodes(t,e){let r=this.bb.__offset(this.bb_pos,6);return r?(e||new Gn).__init(this.bb.__vector(this.bb_pos+r)+16*t,this.bb):null}nodesLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){let r=this.bb.__offset(this.bb_pos,8);return r?(e||new Xn).__init(this.bb.__vector(this.bb_pos+r)+16*t,this.bb):null}buffersLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new Qe).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}},Ne=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(t,e){return(e||new Ne).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,e){return t.setPosition(t.position()+4),(e||new Ne).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}data(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new qt).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){let t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){return t.endObject()}},Kn;!function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(Kn||(Kn={}));var xt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(t,e){return(e||new xt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,e){return t.setPosition(t.position()+4),(e||new xt).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):Kr.V1}headerType(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):Kn.NONE}header(t){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}customMetadata(t,e){let r=this.bb.__offset(this.bb_pos,12);return r?(e||new pt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,Kr.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,Kn.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,t.createLong(0,0))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let r=e.length-1;r>=0;r--)t.addOffset(e[r]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,e){t.finish(e)}static finishSizePrefixedMessageBuffer(t,e){t.finish(e,void 0,!0)}static createMessage(t,e,r,i,n,s){return xt.startMessage(t),xt.addVersion(t,e),xt.addHeaderType(t,r),xt.addHeader(t,i),xt.addBodyLength(t,n),xt.addCustomMetadata(t,s),xt.endMessage(t)}},Cm=Et,ja=class extends D{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return fr.startNull(e),fr.endNull(e)}visitInt(t,e){return kt.startInt(e),kt.addBitWidth(e,t.bitWidth),kt.addIsSigned(e,t.isSigned),kt.endInt(e)}visitFloat(t,e){return me.startFloatingPoint(e),me.addPrecision(e,t.precision),me.endFloatingPoint(e)}visitBinary(t,e){return lr.startBinary(e),lr.endBinary(e)}visitBool(t,e){return ur.startBool(e),ur.endBool(e)}visitUtf8(t,e){return pr.startUtf8(e),pr.endUtf8(e)}visitDecimal(t,e){return Ct.startDecimal(e),Ct.addScale(e,t.scale),Ct.addPrecision(e,t.precision),Ct.addBitWidth(e,t.bitWidth),Ct.endDecimal(e)}visitDate(t,e){return fe.startDate(e),fe.addUnit(e,t.unit),fe.endDate(e)}visitTime(t,e){return Gt.startTime(e),Gt.addUnit(e,t.unit),Gt.addBitWidth(e,t.bitWidth),Gt.endTime(e)}visitTimestamp(t,e){let r=t.timezone&&e.createString(t.timezone)||void 0;return Kt.startTimestamp(e),Kt.addUnit(e,t.unit),void 0!==r&&Kt.addTimezone(e,r),Kt.endTimestamp(e)}visitInterval(t,e){return _e.startInterval(e),_e.addUnit(e,t.unit),_e.endInterval(e)}visitList(t,e){return dr.startList(e),dr.endList(e)}visitStruct(t,e){return hr.startStruct_(e),hr.endStruct_(e)}visitUnion(t,e){Pt.startTypeIdsVector(e,t.typeIds.length);let r=Pt.createTypeIdsVector(e,t.typeIds);return Pt.startUnion(e),Pt.addMode(e,t.mode),Pt.addTypeIds(e,r),Pt.endUnion(e)}visitDictionary(t,e){let r=this.visit(t.indices,e);return xe.startDictionaryEncoding(e),xe.addId(e,new Cm(t.id,0)),xe.addIsOrdered(e,t.isOrdered),void 0!==r&&xe.addIndexType(e,r),xe.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return he.startFixedSizeBinary(e),he.addByteWidth(e,t.byteWidth),he.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return pe.startFixedSizeList(e),pe.addListSize(e,t.listSize),pe.endFixedSizeList(e)}visitMap(t,e){return ye.startMap(e),ye.addKeysSorted(e,t.keysSorted),ye.endMap(e)}},Do=new ja;function Su(t,e=new Map){return new G(Pm(t,e),Eo(t.customMetadata),e)}function Wa(t){return new Yt(t.count,Fu(t.columns),Au(t.columns))}function Iu(t){return new Se(Wa(t.data),t.id,t.isDelta)}function Pm(t,e){return(t.fields||[]).filter(Boolean).map((t=>H.fromJSON(t,e)))}function gu(t,e){return(t.children||[]).filter(Boolean).map((t=>H.fromJSON(t,e)))}function Fu(t){return(t||[]).reduce(((t,e)=>[...t,new tr(e.count,Vm(e.VALIDITY)),...Fu(e.children)]),[])}function Au(t,e=[]){for(let r=-1,i=(t||[]).length;++rt+ +(0===e)),0)}function Bu(t,e){let r,i,n,s,a,o;return e&&(s=t.dictionary)?e.has(r=s.id)?(i=(i=s.indexType)?wu(i):new ir,o=new Fe(e.get(r),i,r,s.isOrdered),n=new H(t.name,o,t.nullable,Eo(t.customMetadata))):(i=(i=s.indexType)?wu(i):new ir,e.set(r,a=vu(t,gu(t,e))),o=new Fe(a,i,r,s.isOrdered),n=new H(t.name,o,t.nullable,Eo(t.customMetadata))):(a=vu(t,gu(t,e)),n=new H(t.name,a,t.nullable,Eo(t.customMetadata))),n||null}function Eo(t){return new Map(Object.entries(t||{}))}function wu(t){return new Bt(t.isSigned,t.bitWidth)}function vu(t,e){let r=t.type.name;switch(r){case"NONE":case"null":return new ie;case"binary":return new vr;case"utf8":return new Sr;case"bool":return new Ir;case"list":return new Ye((e||[])[0]);case"struct":case"struct_":return new ht(e||[])}switch(r){case"int":{let e=t.type;return new Bt(e.isSigned,e.bitWidth)}case"floatingpoint":{let e=t.type;return new de(yt[e.precision])}case"decimal":{let e=t.type;return new Fr(e.scale,e.precision,e.bitWidth)}case"date":{let e=t.type;return new Ar(Wt[e.unit])}case"time":{let e=t.type;return new $e(X[e.unit],e.bitWidth)}case"timestamp":{let e=t.type;return new Br(X[e.unit],e.timezone)}case"interval":{let e=t.type;return new xr(ne[e.unit])}case"union":{let r=t.type;return new Xe(vt[r.mode],r.typeIds||[],e||[])}case"fixedsizebinary":{let e=t.type;return new Tr(e.byteWidth)}case"fixedsizelist":{let r=t.type;return new Ge(r.listSize,(e||[])[0])}case"map":{let r=t.type;return new Ke((e||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${r}"`)}var Fn=Et,Hm=Or,zm=se,Rt=class{constructor(t,e,r,i){this._version=e,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength="number"==typeof t?t:t.low}static fromJSON(t,e){let r=new Rt(0,Lt.V4,e);return r._createHeader=jm(t,e),r}static decode(t){t=new zm(L(t));let e=xt.getRootAsMessage(t),r=e.bodyLength(),i=e.version(),n=e.headerType(),s=new Rt(r,i,n);return s._createHeader=Wm(e,n),s}static encode(t){let e=new Hm,r=-1;return t.isSchema()?r=G.encode(e,t.header()):t.isRecordBatch()?r=Yt.encode(e,t.header()):t.isDictionaryBatch()&&(r=Se.encode(e,t.header())),xt.startMessage(e),xt.addVersion(e,Lt.V4),xt.addHeader(e,r),xt.addHeaderType(e,t.headerType),xt.addBodyLength(e,new Fn(t.bodyLength,0)),xt.finishMessageBuffer(e,xt.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof G)return new Rt(0,Lt.V4,et.Schema,t);if(t instanceof Yt)return new Rt(e,Lt.V4,et.RecordBatch,t);if(t instanceof Se)return new Rt(e,Lt.V4,et.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===et.Schema}isRecordBatch(){return this.headerType===et.RecordBatch}isDictionaryBatch(){return this.headerType===et.DictionaryBatch}},Yt=class{constructor(t,e,r){this._nodes=e,this._buffers=r,this._length="number"==typeof t?t:t.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}},Se=class{constructor(t,e,r=!1){this._data=t,this._isDelta=r,this._id="number"==typeof e?e:e.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}},ve=class{constructor(t,e){this.offset="number"==typeof t?t:t.low,this.length="number"==typeof e?e:e.low}},tr=class{constructor(t,e){this.length="number"==typeof t?t:t.low,this.nullCount="number"==typeof e?e:e.low}};function jm(t,e){return()=>{switch(e){case et.Schema:return G.fromJSON(t);case et.RecordBatch:return Yt.fromJSON(t);case et.DictionaryBatch:return Se.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${et[e]}, type: ${e} }`)}}function Wm(t,e){return()=>{switch(e){case et.Schema:return G.decode(t.header(new St));case et.RecordBatch:return Yt.decode(t.header(new qt),t.version());case et.DictionaryBatch:return Se.decode(t.header(new Ne),t.version())}throw new Error(`Unrecognized Message type: { name: ${et[e]}, type: ${e} }`)}}function $m(t,e=new Map){let r=Zm(t,e);return new G(r,Oo(t),e)}function Ym(t,e=Lt.V4){if(null!==t.compression())throw new Error("Record batch compression not implemented");return new Yt(t.length(),Jm(t),qm(t,e))}function Xm(t,e=Lt.V4){return new Se(Yt.decode(t.data(),e),t.id(),t.isDelta())}function Gm(t){return new ve(t.offset(),t.length())}function Km(t){return new tr(t.length(),t.nullCount())}function Jm(t){let e=[];for(let r,i=-1,n=-1,s=t.nodesLength();++iH.encode(t,e)));St.startFieldsVector(t,r.length);let i=St.createFieldsVector(t,r),n=e.metadata&&e.metadata.size>0?St.createCustomMetadataVector(t,[...e.metadata].map((([e,r])=>{let i=t.createString(`${e}`),n=t.createString(`${r}`);return pt.startKeyValue(t),pt.addKey(t,i),pt.addValue(t,n),pt.endKeyValue(t)}))):-1;return St.startSchema(t),St.addFields(t,i),St.addEndianness(t,o_?Jr.Little:Jr.Big),-1!==n&&St.addCustomMetadata(t,n),St.endSchema(t)}function e_(t,e){let r=-1,i=-1,n=-1,s=e.type,a=e.typeId;x.isDictionary(s)?(a=s.dictionary.typeId,n=Do.visit(s,t),i=Do.visit(s.dictionary,t)):i=Do.visit(s,t);let o=(s.children||[]).map((e=>H.encode(t,e))),l=Ot.createChildrenVector(t,o),u=e.metadata&&e.metadata.size>0?Ot.createCustomMetadataVector(t,[...e.metadata].map((([e,r])=>{let i=t.createString(`${e}`),n=t.createString(`${r}`);return pt.startKeyValue(t),pt.addKey(t,i),pt.addValue(t,n),pt.endKeyValue(t)}))):-1;return e.name&&(r=t.createString(e.name)),Ot.startField(t),Ot.addType(t,i),Ot.addTypeType(t,a),Ot.addChildren(t,l),Ot.addNullable(t,!!e.nullable),-1!==r&&Ot.addName(t,r),-1!==n&&Ot.addDictionary(t,n),-1!==u&&Ot.addCustomMetadata(t,u),Ot.endField(t)}function r_(t,e){let r=e.nodes||[],i=e.buffers||[];qt.startNodesVector(t,r.length);for(let e of r.slice().reverse())tr.encode(t,e);let n=t.endVector();qt.startBuffersVector(t,i.length);for(let e of i.slice().reverse())ve.encode(t,e);let s=t.endVector();return qt.startRecordBatch(t),qt.addLength(t,new Fn(e.length,0)),qt.addNodes(t,n),qt.addBuffers(t,s),qt.endRecordBatch(t)}function n_(t,e){let r=Yt.encode(t,e.data);return Ne.startDictionaryBatch(t),Ne.addId(t,new Fn(e.id,0)),Ne.addIsDelta(t,e.isDelta),Ne.addData(t,r),Ne.endDictionaryBatch(t)}function i_(t,e){return Gn.createFieldNode(t,new Fn(e.length,0),new Fn(e.nullCount,0))}function s_(t,e){return Xn.createBuffer(t,new Fn(e.offset,0),new Fn(e.length,0))}H.encode=e_,H.decode=Qm,H.fromJSON=Bu,G.encode=t_,G.decode=$m,G.fromJSON=Su,Yt.encode=r_,Yt.decode=Ym,Yt.fromJSON=Wa,Se.encode=n_,Se.decode=Xm,Se.fromJSON=Iu,tr.encode=i_,tr.decode=Km,ve.encode=s_,ve.decode=Gm;var o_=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),Ya=t=>`Expected ${et[t]} Message in stream, but was null or length 0.`,Xa=t=>`Header pointer of flatbuffer-encoded ${et[t]} Message is null or length 0.`,Eu=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,Ou=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,Jn=class{constructor(t){this.source=t instanceof _r?t:new _r(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?mt:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(Ya(t));return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);let e=L(this.source.read(t));if(e.byteLength[...e,...r.VALIDITY&&[r.VALIDITY]||[],...r.TYPE&&[r.TYPE]||[],...r.OFFSET&&[r.OFFSET]||[],...r.DATA&&[r.DATA]||[],...t(r.children)]),[])}(this._body)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(Ya(t));return e.value}readSchema(){let t=et.Schema,e=this.readMessage(t),r=null==e?void 0:e.header();if(!e||!r)throw new Error(Xa(t));return r}},Ro=4,$a="ARROW1",qn=new Uint8Array($a.length);for(let t=0;t<$a.length;t+=1)qn[t]=$a.codePointAt(t);function Mo(t,e=0){for(let r=-1,i=qn.length;++rthis)):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return jt.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return jt.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof Tt?t:ms(t)?c_(t):ys(t)?d_(t):Ve(t)?(()=>I(this,void 0,void 0,(function*(){return yield Tt.from(yield t)})))():bs(t)||fi(t)||ws(t)||Oe(t)?u_(new be(t)):l_(new _r(t))}static readAll(t){return t instanceof Tt?t.isSync()?Mu(t):Uu(t):ms(t)||ArrayBuffer.isView(t)||He(t)||_s(t)?Mu(t):Uu(t)}},br=class extends Tt{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return ue(this,arguments,(function*(){yield W(yield*Tn(Ee(this[Symbol.iterator]())))}))}},Qr=class extends Tt{constructor(t){super(t),this._impl=t}readAll(){var t,e;return I(this,void 0,void 0,(function*(){let r=new Array;try{for(var i,n=Ee(this);!(i=yield n.next()).done;){let t=i.value;r.push(t)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&(yield e.call(n))}finally{if(t)throw t.error}}return r}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},tn=class extends br{constructor(t){super(t),this._impl=t}},Zi=class extends Qr{constructor(t){super(t),this._impl=t}},Uo=class{constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){let r=this._loadVectors(t,e,this.schema.fields),i=C({type:new ht(this.schema.fields),length:t.length,children:r});return new ft(this.schema,i)}_loadDictionaryBatch(t,e){let{id:r,isDelta:i}=t,{dictionaries:n,schema:s}=this,a=n.get(r);if(i||!a){let n=s.dictionaries.get(r),o=this._loadVectors(t.data,e,[n]);return(a&&i?a.concat(new k(o)):new k(o)).memoize()}return a.memoize()}_loadVectors(t,e,r){return new Di(e,t.nodes,t.buffers,this.dictionaries).visitMany(r)}},Qn=class extends Uo{constructor(t,e){super(e),this._reader=ms(t)?new qi(this._handle=t):new Jn(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return this.closed||(this.autoDestroy=Lu(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):mt}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):mt}next(){if(this.closed)return mt;let t,{_reader:e}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;let r=t.header(),i=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;let r=t.header(),i=e.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,n)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new In(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}},ti=class extends Uo{constructor(t,e){super(e),this._reader=new Ji(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return I(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(t){return I(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=Lu(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(t){return I(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):mt}))}return(t){return I(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):mt}))}next(){return I(this,void 0,void 0,(function*(){if(this.closed)return mt;let t,{_reader:e}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;let r=t.header(),i=yield e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;let r=t.header(),i=yield e.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,n)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new In(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(t){return I(this,void 0,void 0,(function*(){return yield this._reader.readMessage(t)}))}},Lo=class extends Qn{constructor(t,e){super(t instanceof xi?t:new xi(t),e)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var e;if(this.closed)return null;this._footer||this.open();let r=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t);if(r&&this._handle.seek(r.offset)){let t=this._reader.readMessage(et.RecordBatch);if(null!=t&&t.isRecordBatch()){let e=t.header(),r=this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,r)}}return null}_readDictionaryBatch(t){var e;let r=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t);if(r&&this._handle.seek(r.offset)){let t=this._reader.readMessage(et.DictionaryBatch);if(null!=t&&t.isDictionaryBatch()){let e=t.header(),r=this._reader.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(e,r);this.dictionaries.set(e.id,i)}}}_readFooter(){let{_handle:t}=this,e=t.size-Ga,r=t.readInt32(e),i=t.readAt(e-r,r);return Rr.decode(i)}_readNextMessageAndValidate(t){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return I(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield e.open.call(this,t)}))}readRecordBatch(t){var e;return I(this,void 0,void 0,(function*(){if(this.closed)return null;this._footer||(yield this.open());let r=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t);if(r&&(yield this._handle.seek(r.offset))){let t=yield this._reader.readMessage(et.RecordBatch);if(null!=t&&t.isRecordBatch()){let e=t.header(),r=yield this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,r)}}return null}))}_readDictionaryBatch(t){var e;return I(this,void 0,void 0,(function*(){let r=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t);if(r&&(yield this._handle.seek(r.offset))){let t=yield this._reader.readMessage(et.DictionaryBatch);if(null!=t&&t.isDictionaryBatch()){let e=t.header(),r=yield this._reader.readMessageBody(t.bodyLength),i=this._loadDictionaryBatch(e,r);this.dictionaries.set(e.id,i)}}}))}_readFooter(){return I(this,void 0,void 0,(function*(){let{_handle:t}=this;t._pending&&(yield t._pending);let e=t.size-Ga,r=yield t.readInt32(e),i=yield t.readAt(e-r,r);return Rr.decode(i)}))}_readNextMessageAndValidate(t){return I(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?Mo(e)?new tn(new Lo(t.read())):new br(new Qn(t)):new br(new Qn(function*(){}()))}function u_(t){return I(this,void 0,void 0,(function*(){let e=yield t.peek(Zn+7&-8);return e&&e.byteLength>=4?Mo(e)?new tn(new Lo(yield t.read())):new Qr(new ti(t)):new Qr(new ti(function(){return ue(this,arguments,(function*(){}))}()))}))}function d_(t){return I(this,void 0,void 0,(function*(){let{size:e}=yield t.stat(),r=new Zr(t,e);return e>=Ru&&Mo(yield r.readAt(0,Zn+7&-8))?new Zi(new Ka(r)):new Qr(new ti(r))}))}var It=class extends D{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...t){let e=t=>t.flatMap((t=>Array.isArray(t)?e(t):t instanceof ft?t.data.children:t.data)),r=new It;return r.visitMany(e(t)),r}visit(t){if(t instanceof k)return this.visitMany(t.data),this;let{type:e}=t;if(!x.isDictionary(e)){let{length:r,nullCount:i}=t;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");x.isNull(e)||er.call(this,i<=0?new Uint8Array(0):kn(t.offset,r,t.nullBitmap)),this.nodes.push(new tr(r,i))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function er(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new ve(this._byteLength,e)),this._byteLength+=e,this}function f_(t){let{type:e,length:r,typeIds:i,valueOffsets:n}=t;if(er.call(this,i),e.mode===vt.Sparse)return qa.call(this,t);if(e.mode===vt.Dense){if(t.offset<=0)return er.call(this,n),qa.call(this,t);{let s=i.reduce(((t,e)=>Math.max(t,e)),i[0]),a=new Int32Array(s+1),o=new Int32Array(s+1).fill(-1),l=new Int32Array(r),u=hi(-n[0],r,n);for(let t,e,n=-1;++n=t.length?er.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?er.call(this,kn(t.offset,t.length,e)):er.call(this,hn(t.values))}function en(t){return er.call(this,t.values.subarray(0,t.length*t.stride))}function Nu(t){let{length:e,values:r,valueOffsets:i}=t,n=i[0],s=i[e],a=Math.min(s-n,r.byteLength-n);return er.call(this,hi(-i[0],e,i)),er.call(this,r.subarray(n,n+a)),this}function Za(t){let{length:e,valueOffsets:r}=t;return r&&er.call(this,hi(r[0],e,r)),this.visit(t.children[0])}function qa(t){return this.visitMany(t.type.children.map(((e,r)=>t.children[r])).filter(Boolean))[0]}It.prototype.visitBool=h_,It.prototype.visitInt=en,It.prototype.visitFloat=en,It.prototype.visitUtf8=Nu,It.prototype.visitBinary=Nu,It.prototype.visitFixedSizeBinary=en,It.prototype.visitDate=en,It.prototype.visitTimestamp=en,It.prototype.visitTime=en,It.prototype.visitDecimal=en,It.prototype.visitList=Za,It.prototype.visitStruct=qa,It.prototype.visitUnion=f_,It.prototype.visitInterval=en,It.prototype.visitFixedSizeList=Za,It.prototype.visitMap=Za;var An=class extends yn{constructor(t){super(),this._position=0,this._started=!1,this._sink=new mr,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,re(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!=typeof t.autoDestroy||t.autoDestroy,this._writeLegacyIpcFormat="boolean"==typeof t.writeLegacyIpcFormat&&t.writeLegacyIpcFormat}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return Ve(t)?t.then((t=>this.writeAll(t))):Oe(t)?tc(this,t):Qa(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,e=null){return t===this._sink||t instanceof mr?this._sink=t:(this._sink=new mr,t&&ol(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&al(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!e||!Sn(e,this._schema))&&(null==e?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}write(t){let e=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==t)return this.finish()&&void 0;if(t instanceof At&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof ft&&!(e=t.schema))return this.finish()&&void 0;if(e&&!Sn(e,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof ft?t instanceof In||this._writeRecordBatch(t):t instanceof At?this.writeAll(t.batches):He(t)&&this.writeAll(t)}_writeMessage(t,e=8){let r=e-1,i=Rt.encode(t),n=i.byteLength,s=this._writeLegacyIpcFormat?4:8,a=n+s+r&~r,o=a-n-s;return t.headerType===et.RecordBatch?this._recordBatchBlocks.push(new Ze(a,t.bodyLength,this._position)):t.headerType===et.DictionaryBatch&&this._dictionaryBlocks.push(new Ze(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-s)),n>0&&this._write(i),this._writePadding(o)}_write(t){if(this._started){let e=L(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}_writeSchema(t){return this._writeMessage(Rt.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(qn)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){let{byteLength:e,nodes:r,bufferRegions:i,buffers:n}=It.assemble(t),s=new Yt(t.numRows,r,i),a=Rt.from(s,e);return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(n)}_writeDictionaryBatch(t,e,r=!1){this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0));let{byteLength:i,nodes:n,bufferRegions:s,buffers:a}=It.assemble(new k([t])),o=new Yt(t.length,n,s),l=new Se(o,e,r),u=Rt.from(l,i);return this._writeMessage(u)._writeBodyBuffers(a)}_writeBodyBuffers(t){let e,r,i;for(let n=-1,s=t.length;++n0&&(this._write(e),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(t){for(let[e,r]of t.dictionaries){let t=this._dictionaryDeltaOffsets.get(e)||0;if(0===t||(r=null==r?void 0:r.slice(t)).length>0)for(let i of r.data)this._writeDictionaryBatch(i,e,t>0),t+=i.length}return this}},kr=class extends An{static writeAll(t,e){let r=new kr(e);return Ve(t)?t.then((t=>r.writeAll(t))):Oe(t)?tc(r,t):Qa(r,t)}},Cr=class extends An{static writeAll(t){let e=new Cr;return Ve(t)?t.then((t=>e.writeAll(t))):Oe(t)?tc(e,t):Qa(e,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){let e=Rr.encode(new Rr(t,Lt.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}};function Qa(t,e){let r=e;e instanceof At&&(r=e.batches,t.reset(void 0,e.schema));for(let e of r)t.write(e);return t.finish()}function tc(t,e){var r,i,n,s;return I(this,void 0,void 0,(function*(){try{for(r=Ee(e);!(i=yield r.next()).done;){let e=i.value;t.write(e)}}catch(t){n={error:t}}finally{try{i&&!i.done&&(s=r.return)&&(yield s.call(r))}finally{if(n)throw n.error}}return t.finish()}))}function ku(t,e){if(Oe(t))return m_(t,e);if(He(t))return p_(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function p_(t,e){let r=null,i="bytes"===(null==e?void 0:e.type)||!1,n=(null==e?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(e){s(e,r||(r=t[Symbol.iterator]()))},pull(t){r?s(t,r):t.close()},cancel(){(null==r?void 0:r.return)&&r.return(),r=null}}),Object.assign({highWaterMark:i?n:void 0},e));function s(t,e){let r,n=null,s=t.desiredSize||null;for(;!(n=e.next(i?s:null)).done;)if(ArrayBuffer.isView(n.value)&&(r=L(n.value))&&(null!=s&&i&&(s=s-r.byteLength+1),n.value=r),t.enqueue(n.value),null!=s&&--s<=0)return;t.close()}}function m_(t,e){let r=null,i="bytes"===(null==e?void 0:e.type)||!1,n=(null==e?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(e){return I(this,void 0,void 0,(function*(){yield s(e,r||(r=t[Symbol.asyncIterator]()))}))},pull(t){return I(this,void 0,void 0,(function*(){r?yield s(t,r):t.close()}))},cancel(){return I(this,void 0,void 0,(function*(){(null==r?void 0:r.return)&&(yield r.return()),r=null}))}}),Object.assign({highWaterMark:i?n:void 0},e));function s(t,e){return I(this,void 0,void 0,(function*(){let r,n=null,s=t.desiredSize||null;for(;!(n=yield e.next(i?s:null)).done;)if(ArrayBuffer.isView(n.value)&&(r=L(n.value))&&(null!=s&&i&&(s=s-r.byteLength+1),n.value=r),t.enqueue(n.value),null!=s&&--s<=0)return;t.close()}))}}function Vu(t){return new ec(t)}var ec=class{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{readableStrategy:e,writableStrategy:r,queueingStrategy:i="count"}=t,n=il(t,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=gn(n),this._getSize="bytes"!==i?Cu:Pu;let{highWaterMark:s=("bytes"===i?Math.pow(2,14):1e3)}=Object.assign({},e),{highWaterMark:a=("bytes"===i?Math.pow(2,14):1e3)}=Object.assign({},r);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:t=>{this._maybeFlush(this._builder,this._controller=t)},start:t=>{this._maybeFlush(this._builder,this._controller=t)}},{highWaterMark:s,size:"bytes"!==i?Cu:Pu}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:t=>this._writeValueAndReturnChunkSize(t)})}_writeValueAndReturnChunkSize(t){let e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}_maybeFlush(t,e){null!=e&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}_enqueue(t,e){this._bufferedSize=0,this._controller=null,null==e?t.close():t.enqueue(e)}},Cu=t=>{var e;return null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0},Pu=t=>{var e;return null!==(e=null==t?void 0:t.byteLength)&&void 0!==e?e:0};function No(t,e){let r=new mr,i=null,n=new ReadableStream({cancel(){return I(this,void 0,void 0,(function*(){yield r.close()}))},start(t){return I(this,void 0,void 0,(function*(){yield s(t,i||(i=yield function(){return I(this,void 0,void 0,(function*(){return yield(yield Tt.from(r)).open(e)}))}()))}))},pull(t){return I(this,void 0,void 0,(function*(){i?yield s(t,i):t.close()}))}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:n};function s(t,e){return I(this,void 0,void 0,(function*(){let r=t.desiredSize,i=null;for(;!(i=yield e.next()).done;)if(t.enqueue(i.value),null!=r&&--r<=0)return;t.close()}))}}function ko(t,e){let r=new this(t),i=new be(r),n=new ReadableStream({cancel(){return I(this,void 0,void 0,(function*(){yield i.cancel()}))},pull(t){return I(this,void 0,void 0,(function*(){yield s(t)}))},start(t){return I(this,void 0,void 0,(function*(){yield s(t)}))}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(r,t),readable:n};function s(t){return I(this,void 0,void 0,(function*(){let e=null,r=t.desiredSize;for(;e=yield i.read(r||null);)if(t.enqueue(e),null!=r&&(r-=e.byteLength)<=0)return;t.close()}))}}function Co(t,e="stream"){return("stream"===e?kr:Cr).writeAll(t).toUint8Array(!0)}var g_=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},pa),Ca),Ea),ma),ua),Da),{compareSchemas:Sn,compareFields:hu,compareTypes:pu});function ei(t){switch(t.typeId){case f.Binary:return{sqlType:"binary"};case f.Bool:return{sqlType:"bool"};case f.Date:return{sqlType:"date"};case f.DateDay:return{sqlType:"date32[d]"};case f.DateMillisecond:return{sqlType:"date64[ms]"};case f.Decimal:{let e=t;return{sqlType:"decimal",precision:e.precision,scale:e.scale}}case f.Float:return{sqlType:"float"};case f.Float16:return{sqlType:"float16"};case f.Float32:return{sqlType:"float32"};case f.Float64:return{sqlType:"float64"};case f.Int:return{sqlType:"int32"};case f.Int16:return{sqlType:"int16"};case f.Int32:return{sqlType:"int32"};case f.Int64:return{sqlType:"int64"};case f.Uint16:return{sqlType:"uint16"};case f.Uint32:return{sqlType:"uint32"};case f.Uint64:return{sqlType:"uint64"};case f.Uint8:return{sqlType:"uint8"};case f.IntervalDayTime:return{sqlType:"interval[dt]"};case f.IntervalYearMonth:return{sqlType:"interval[m]"};case f.List:return{sqlType:"list",valueType:ei(t.valueType)};case f.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:t.byteWidth};case f.Null:return{sqlType:"null"};case f.Utf8:return{sqlType:"utf8"};case f.Struct:return{sqlType:"struct",fields:t.children.map((t=>Po(t.name,t.type)))};case f.Map:{let e=t;return{sqlType:"map",keyType:ei(e.keyType),valueType:ei(e.valueType)}}case f.Time:return{sqlType:"time[s]"};case f.TimeMicrosecond:return{sqlType:"time[us]"};case f.TimeMillisecond:return{sqlType:"time[ms]"};case f.TimeNanosecond:return{sqlType:"time[ns]"};case f.TimeSecond:return{sqlType:"time[s]"};case f.Timestamp:return{sqlType:"timestamp",timezone:t.timezone||void 0};case f.TimestampSecond:return{sqlType:"timestamp[s]",timezone:t.timezone||void 0};case f.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:t.timezone||void 0};case f.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:t.timezone||void 0};case f.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:t.timezone||void 0}}throw new Error(`unsupported arrow type: ${t.toString()}`)}function Po(t,e){let r=ei(e);return r.name=t,r}jt.toDOMStream=ku,bt.throughDOM=Vu,Tt.throughDOM=No,tn.throughDOM=No,br.throughDOM=No,An.throughDOM=ko,Cr.throughDOM=ko,kr.throughDOM=ko;var Vo=class{constructor(){this._bindings=null,this._nextMessageId=0}log(t){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:t},[])}sendOK(t){this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"OK",data:null},[])}failWith(t,e){let r={name:e.name,message:e.message,stack:e.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:r},[])}async onMessage(t){switch(t.type){case"PING":return void this.sendOK(t);case"INSTANTIATE":null!=this._bindings&&this.failWith(t,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(t.data[0],t.data[1],(e=>{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"INSTANTIATE_PROGRESS",data:e},[])})),this.sendOK(t)}catch(e){this._bindings=null,this.failWith(t,e)}return}if(!this._bindings)return this.failWith(t,new Error("duckdb is not initialized"));try{switch(t.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(t);break;case"OPEN":this._bindings.open(t.data),this.sendOK(t);break;case"DROP_FILE":this._bindings.dropFile(t.data),this.sendOK(t);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(t);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(t);break;case"CONNECT":{let e=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"CONNECTION_INFO",data:e.useUnsafe(((t,e)=>e))},[]);break}case"DISCONNECT":this._bindings.disconnect(t.data),this.sendOK(t);break;case"CREATE_PREPARED":{let e=this._bindings.createPrepared(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"PREPARED_STATEMENT_ID",data:e},[]);break}case"CLOSE_PREPARED":this._bindings.closePrepared(t.data[0],t.data[1]),this.sendOK(t);break;case"RUN_PREPARED":{let e=this._bindings.runPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"RUN_QUERY":{let e=this._bindings.runQuery(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"SEND_PREPARED":{let e=this._bindings.sendPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER",data:e},[e.buffer]);break}case"START_PENDING_QUERY":{let e=this._bindings.startPendingQuery(t.data[0],t.data[1]),r=[];e&&r.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},r);break}case"POLL_PENDING_QUERY":{let e=this._bindings.pollPendingQuery(t.data),r=[];e&&r.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},r);break}case"CANCEL_PENDING_QUERY":{let e=this._bindings.cancelPendingQuery(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SUCCESS",data:e},[]);break}case"FETCH_QUERY_RESULTS":{let e=this._bindings.fetchQueryResults(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_CHUNK",data:e},[e.buffer]);break}case"GET_TABLE_NAMES":{let e=this._bindings.getTableNames(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"TABLE_NAMES",data:e},[]);break}case"GLOB_FILE_INFOS":{let e=this._bindings.globFiles(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_INFOS",data:e},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_BUFFER":{let e=this._bindings.copyFileToBuffer(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_BUFFER",data:e},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(t.data[0],t.data[1]),this.sendOK(t);break;case"EXPORT_FILE_STATISTICS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(t.data)},[]);break;case"INSERT_ARROW_FROM_IPC_STREAM":this._bindings.insertArrowFromIPCStream(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"IMPORT_CSV_FROM_PATH":this._bindings.insertCSVFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"IMPORT_JSON_FROM_PATH":this._bindings.insertJSONFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"TOKENIZE":{let e=this._bindings.tokenize(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SCRIPT_TOKENS",data:e},[]);break}}}catch(e){return this.failWith(t,e)}}},ju={},w_=(()=>{var t=ju.url;return function(e){var r,i,n=typeof(e=e||{})<"u"?e:{};n.ready=new Promise((function(t,e){r=t,i=e}));var s,a,o,l,u=Object.assign({},n),h=[],c="./this.program",d=(t,e)=>{throw e},f="object"==typeof window,p="function"==typeof importScripts,y="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,b="";y?(b=p?rc().dirname(b)+"/":__dirname+"/","function"==typeof na&&(o=zu(),l=rc()),s=(t,e)=>(t=l.normalize(t),o.readFileSync(t,e?void 0:"utf8")),a=t=>{var e=s(t,!0);return e.buffer||(e=new Uint8Array(e)),e},process.argv.length>1&&(c=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof J))throw t})),process.on("unhandledRejection",(function(t){throw t})),d=(t,e)=>{if(z())throw process.exitCode=t,e;(function(t){t instanceof J||g("exiting due to exception: "+t)})(e),process.exit(t)},n.inspect=function(){return"[Emscripten Module object]"}):(f||p)&&(p?b=self.location.href:typeof document<"u"&&document.currentScript&&(b=document.currentScript.src),t&&(b=t),b=0!==b.indexOf("blob:")?b.substr(0,b.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(a=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var _,m=n.print||console.log.bind(console),g=n.printErr||console.warn.bind(console);Object.assign(n,u),u=null,n.arguments&&(h=n.arguments),n.thisProgram&&(c=n.thisProgram),n.quit&&(d=n.quit),n.wasmBinary&&(_=n.wasmBinary);var v=n.noExitRuntime||!0;"object"!=typeof WebAssembly&&X("no native wasm support detected");var w,I,S=!1;function A(t,e){t||X(e)}var T,O,B,M,F,D,E,U=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function x(t,e,r){for(var i=(e>>>=0)+r,n=e;t[n]&&!(n>=i);)++n;if(n-e>16&&t.buffer&&U)return U.decode(t.subarray(e,n));for(var s="";e>10,56320|1023&u)}}else s+=String.fromCharCode((31&a)<<6|o)}else s+=String.fromCharCode(a)}return s}function R(t,e){return(t>>>=0)?x(B,t,e):""}function N(t,e,r,i){if(!(i>0))return 0;for(var n=r>>>=0,s=r+i-1,a=0;a=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++a)),o<=127){if(r>=s)break;e[r++>>>0]=o}else if(o<=2047){if(r+1>=s)break;e[r++>>>0]=192|o>>6,e[r++>>>0]=128|63&o}else if(o<=65535){if(r+2>=s)break;e[r++>>>0]=224|o>>12,e[r++>>>0]=128|o>>6&63,e[r++>>>0]=128|63&o}else{if(r+3>=s)break;e[r++>>>0]=240|o>>18,e[r++>>>0]=128|o>>12&63,e[r++>>>0]=128|o>>6&63,e[r++>>>0]=128|63&o}}return e[r>>>0]=0,r-n}function L(t,e,r){return N(t,B,e,r)}function C(t){T=t,n.HEAP8=O=new Int8Array(t),n.HEAP16=M=new Int16Array(t),n.HEAP32=D=new Int32Array(t),n.HEAPU8=B=new Uint8Array(t),n.HEAPU16=F=new Uint16Array(t),n.HEAPU32=E=new Uint32Array(t),n.HEAPF32=new Float32Array(t),n.HEAPF64=new Float64Array(t)}n.INITIAL_MEMORY;var k=[],P=[],V=[],H=[];function z(){return v}var j,W,$=0,Y=null,q=null;function X(t){n.onAbort&&n.onAbort(t),g(t="Aborted("+t+")"),S=!0,I=1,t+=". Build with -sASSERTIONS for more info.",Dt()}function K(t){return t.startsWith("data:application/octet-stream;base64,")}function G(t){try{if(t==j&&_)return new Uint8Array(_);if(a)return a(t);throw"both async and sync fetching of the wasm failed"}catch(t){X(t)}}function J(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Q(t){for(;t.length>0;)t.shift()(n)}n.locateFile?K(j="./duckdb-eh.wasm")||(W=j,j=n.locateFile?n.locateFile(W,b):b+W):j=new URL("./duckdb-eh.wasm",ju.url).toString();var Z={varargs:void 0,get:function(){return Z.varargs+=4,D[Z.varargs-4>>>2]},getStr:function(t){return R(t)}};function tt(){g("missing function: $SOCKFS"),X(-1)}function et(){g("missing function: $FS"),X(-1)}function rt(t){var e=tt.getSocket(t);if(!e)throw new et.ErrnoError(8);return e}function it(t){return(255&t)+"."+(t>>8&255)+"."+(t>>16&255)+"."+(t>>24&255)}function nt(t){var e="",r=0,i=0,n=0,s=0,a=0,o=0,l=[65535&t[0],t[0]>>16,65535&t[1],t[1]>>16,65535&t[2],t[2]>>16,65535&t[3],t[3]>>16],u=!0,h="";for(o=0;o<5;o++)if(0!==l[o]){u=!1;break}if(u){if(h=it(l[6]|l[7]<<16),-1===l[5])return(e="::ffff:")+h;if(0===l[5])return"0.0.0.0"===h&&(h=""),"0.0.0.1"===h&&(h="1"),(e="::")+h}for(r=0;r<8;r++)0===l[r]&&(r-n>1&&(a=0),n=r,a++),a>i&&(s=r-(i=a)+1);for(r=0;r<8;r++)i>1&&0===l[r]&&r>=s&&r>>1],n=Mt(F[t+2>>>1]);switch(i){case 2:if(16!==e)return{errno:28};r=it(r=D[t+4>>>2]);break;case 10:if(28!==e)return{errno:28};r=nt(r=[D[t+8>>>2],D[t+12>>>2],D[t+16>>>2],D[t+20>>>2]]);break;default:return{errno:5}}return{family:i,addr:r,port:n}}function at(t){for(var e=t.split("."),r=0;r<4;r++){var i=Number(e[r]);if(isNaN(i))return null;e[r]=i}return(e[0]|e[1]<<8|e[2]<<16|e[3]<<24)>>>0}function ot(t){return parseInt(t)}function lt(t){var e,r,i,n,s=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(t))return null;if("::"===t)return[0,0,0,0,0,0,0,0];for((t=t.startsWith("::")?t.replace("::","Z:"):t.replace("::",":Z:")).indexOf(".")>0?((e=(t=t.replace(new RegExp("[.]","g"),":")).split(":"))[e.length-4]=ot(e[e.length-4])+256*ot(e[e.length-3]),e[e.length-3]=ot(e[e.length-2])+256*ot(e[e.length-1]),e=e.slice(0,e.length-2)):e=t.split(":"),i=0,n=0,r=0;r>>2]=16),M[t>>>1]=e,D[t+4>>>2]=r,M[t+2>>>1]=Bt(i);break;case 10:r=lt(r),ct(t,28),n&&(D[n>>>2]=28),D[t>>>2]=e,D[t+8>>>2]=r[0],D[t+12>>>2]=r[1],D[t+16>>>2]=r[2],D[t+20>>>2]=r[3],M[t+2>>>1]=Bt(i);break;default:return 5}return 0}var ft,pt="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function yt(t){try{return w.grow(t-T.byteLength+65535>>>16),C(w.buffer),1}catch(t){}}ft=y?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:()=>performance.now();var bt={};function _t(){if(!_t.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:c||"./this.program"};for(var e in bt)void 0===bt[e]?delete t[e]:t[e]=bt[e];var r=[];for(var e in t)r.push(e+"="+t[e]);_t.strings=r}return _t.strings}var mt=[null,[],[]];function gt(t,e){var r=mt[t];0===e||10===e?((1===t?m:g)(x(r,0)),r.length=0):r.push(e)}function vt(t){return t%4==0&&(t%100!=0||t%400==0)}var wt=[31,29,31,30,31,30,31,31,30,31,30,31],It=[31,28,31,30,31,30,31,31,30,31,30,31];function St(t,e){O.set(t,e>>>0)}var At,Tt={a:function(t,e,r,i){X("Assertion failed: "+R(t)+", at: "+[e?R(e):"unknown filename",r,i?R(i):"unknown function"])},O:function(t,e,r,i,n){for(var s=0,a=e?D[e>>>2]:0,o=e?D[e+4>>>2]:0,l=r?D[r>>>2]:0,u=r?D[r+4>>>2]:0,h=i?D[i>>>2]:0,c=i?D[i+4>>>2]:0,d=0,f=0,p=0,y=0,b=0,_=0,m=(e?D[e>>>2]:0)|(r?D[r>>>2]:0)|(i?D[i>>>2]:0),g=(e?D[e+4>>>2]:0)|(r?D[r+4>>>2]:0)|(i?D[i+4>>>2]:0),v=function(t,e,r,i){return t<32?e&i:r&i},w=0;w>>2]=d,D[e+4>>>2]=f),r&&(D[r>>>2]=p,D[r+4>>>2]=y),i&&(D[i>>>2]=b,D[i+4>>>2]=_),s},S:function(t,e,r){var i=rt(t),n=ht(e,r);return i.sock_ops.bind(i,n.addr,n.port),0},R:function(t,e,r){var i=rt(t),n=ht(e,r);return i.sock_ops.connect(i,n.addr,n.port),0},K:function(t,e,r,i){},b:function(t,e,r){return Z.varargs=r,0},aa:function(t,e){},v:function(t,e,r){},Y:function(t,e,r){},M:function(t,e,r){var i=rt(t);return i.daddr?(dt(e,i.family,ut.lookup_name(i.daddr),i.dport,r),0):-53},N:function(t,e,r,i,n){var s=rt(t);return 1===e&&4===r?(D[i>>>2]=s.error,D[n>>>2]=4,s.error=null,0):-50},ca:function(t,e,r){return Z.varargs=r,0},Z:function(t,e){},ba:function(t,e,r){},_:function(t,e,r,i){},o:function(t,e,r,i){Z.varargs=i},P:function(t,e,r,i,n,s){var a=rt(t),o=a.sock_ops.recvmsg(a,r);return o?(n&&dt(n,a.family,ut.lookup_name(o.addr),o.port,s),B.set(o.buffer,e>>>0),o.buffer.byteLength):0},I:function(t,e,r,i){},m:function(t){},Q:function(t,e,r,i,n,s){},k:function(t,e,r){},$:function(t,e){},n:function(t,e,r){},U:function(t){},W:function(t,e){X(pt)},V:function(t,e){X(pt)},da:function(){return!0},d:function(){X("")},C:function(t,e){return globalThis.DUCKDB_RUNTIME.createDirectory(n,t,e)},D:function(t,e){return globalThis.DUCKDB_RUNTIME.checkDirectory(n,t,e)},A:function(t,e){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(n,t,e)},B:function(t,e){return globalThis.DUCKDB_RUNTIME.removeDirectory(n,t,e)},i:function(t){return globalThis.DUCKDB_RUNTIME.closeFile(n,t)},y:function(t,e){return globalThis.DUCKDB_RUNTIME.checkFile(n,t,e)},s:function(t){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(n,t)},z:function(t,e,r,i){return globalThis.DUCKDB_RUNTIME.moveFile(n,t,e,r,i)},F:function(t,e){return globalThis.DUCKDB_RUNTIME.openFile(n,t,e)},e:function(t,e,r,i){return globalThis.DUCKDB_RUNTIME.readFile(n,t,e,r,i)},E:function(t,e){return globalThis.DUCKDB_RUNTIME.truncateFile(n,t,e)},j:function(t,e,r,i){return globalThis.DUCKDB_RUNTIME.writeFile(n,t,e,r,i)},G:function(t){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(t)},x:function(t,e){return globalThis.DUCKDB_RUNTIME.glob(n,t,e)},g:function(t){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(n,t)},H:function(t,e,r,i,s,a){return globalThis.DUCKDB_RUNTIME.callScalarUDF(n,t,e,r,i,s,a)},ea:function(){return Date.now()},fa:function(){return 4294901760},T:ft,ga:function(t,e,r){B.copyWithin(t>>>0,e>>>0,e+r>>>0)},ha:function(t){var e,r=B.length,i=4294901760;if((t>>>=0)>i)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,t+100663296),yt(Math.min(i,(e=Math.max(t,s))+(65536-e%65536)%65536)))return!0}return!1},q:function(t,e){var r=0;return _t().forEach((function(i,n){var s=e+r;E[t+4*n>>>2]=s,function(t,e,r){for(var i=0;i>>0]=t.charCodeAt(i);O[e>>>0]=0}(i,s),r+=i.length+1})),0},r:function(t,e){var r=_t();E[t>>>2]=r.length;var i=0;return r.forEach((function(t){i+=t.length+1})),E[e>>>2]=i,0},c:function(t){return 52},u:function(t,e,r,i,n,s){return 52},t:function(t,e,r,i,n,s){return 52},h:function(t,e,r,i){return 52},w:function(t,e,r,i,n){return 70},J:function(t){return 52},f:function(t,e,r,i){for(var n=0,s=0;s>>2],o=E[e+4>>>2];e+=8;for(var l=0;l>>0]);n+=o}return E[i>>>2]=n,0},l:function(t,e,r,i){var n,s=0,a=0,o=0,l=0,u=0,h=0;function c(t,e,r,i,n,s){var a,o,l;return o=10===t?28:16,n=10===t?nt(n):it(n),A(!dt(a=Ft(o),t,n,s)),l=Ft(32),D[l+4>>>2]=t,D[l+8>>>2]=e,D[l+12>>>2]=r,D[l+24>>>2]=i,E[l+20>>>2]=a,D[l+16>>>2]=10===t?28:16,D[l+28>>>2]=0,l}if(r&&(o=D[r>>>2],l=D[r+4>>>2],u=D[r+8>>>2],h=D[r+12>>>2]),u&&!h&&(h=2===u?17:6),!u&&h&&(u=17===h?2:1),0===h&&(h=6),0===u&&(u=1),!t&&!e)return-2;if(-1088&o||0!==r&&2&D[r>>>2]&&!t)return-1;if(32&o)return-2;if(0!==u&&1!==u&&2!==u)return-7;if(0!==l&&2!==l&&10!==l)return-6;if(e&&(e=R(e),a=parseInt(e,10),isNaN(a)))return 1024&o?-2:-8;if(!t)return 0===l&&(l=2),0==(1&o)&&(s=2===l?Ot(2130706433):[0,0,0,1]),n=c(l,u,h,null,s,a),E[i>>>2]=n,0;if(null!==(s=at(t=R(t))))if(0===l||2===l)l=2;else{if(!(10===l&&8&o))return-2;s=[0,0,Ot(65535),s],l=10}else if(null!==(s=lt(t))){if(0!==l&&10!==l)return-2;l=10}return null!=s?(n=c(l,u,h,t,s,a),E[i>>>2]=n,0):4&o?-2:(s=at(t=ut.lookup_name(t)),0===l?l=2:10===l&&(s=[0,0,Ot(65535),s]),n=c(l,u,h,null,s,a),E[i>>>2]=n,0)},X:function t(e,r){t.randomDevice||(t.randomDevice=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(y)try{var e=na("crypto");return()=>e.randomBytes(1)[0]}catch(t){}return()=>X("randomDevice")}());for(var i=0;i>>0]=t.randomDevice();return 0},L:function(t,e,r,i,n,s,a){var o=st(t,e);if(o.errno)return-6;var l=o.port,u=o.addr,h=!1;if(r&&i){var c;if(1&a||!(c=ut.lookup_addr(u))){if(8&a)return-2}else u=c;L(u,r,i)+1>=i&&(h=!0)}return n&&s&&L(l=""+l,n,s)+1>=s&&(h=!0),h?-12:0},p:function(t,e,r,i,n){return function(t,e,r,i){var n=D[i+40>>>2],s={tm_sec:D[i>>>2],tm_min:D[i+4>>>2],tm_hour:D[i+8>>>2],tm_mday:D[i+12>>>2],tm_mon:D[i+16>>>2],tm_year:D[i+20>>>2],tm_wday:D[i+24>>>2],tm_yday:D[i+28>>>2],tm_isdst:D[i+32>>>2],tm_gmtoff:D[i+36>>>2],tm_zone:n?R(n):""},a=R(r),o={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in o)a=a.replace(new RegExp(l,"g"),o[l]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],h=["January","February","March","April","May","June","July","August","September","October","November","December"];function c(t,e,r){for(var i="number"==typeof t?t.toString():t||"";i.length0?1:0}var i;return 0===(i=r(t.getFullYear()-e.getFullYear()))&&0===(i=r(t.getMonth()-e.getMonth()))&&(i=r(t.getDate()-e.getDate())),i}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function y(t){var e=function(t,e){for(var r=new Date(t.getTime());e>0;){var i=vt(r.getFullYear()),n=r.getMonth(),s=(i?wt:It)[n];if(!(e>s-r.getDate()))return r.setDate(r.getDate()+e),r;e-=s-r.getDate()+1,r.setDate(1),n<11?r.setMonth(n+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r}(new Date(t.tm_year+1900,0,1),t.tm_yday),r=new Date(e.getFullYear(),0,4),i=new Date(e.getFullYear()+1,0,4),n=p(r),s=p(i);return f(n,e)<=0?f(s,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var b={"%a":function(t){return u[t.tm_wday].substring(0,3)},"%A":function(t){return u[t.tm_wday]},"%b":function(t){return h[t.tm_mon].substring(0,3)},"%B":function(t){return h[t.tm_mon]},"%C":function(t){return d((t.tm_year+1900)/100|0,2)},"%d":function(t){return d(t.tm_mday,2)},"%e":function(t){return c(t.tm_mday,2," ")},"%g":function(t){return y(t).toString().substring(2)},"%G":function(t){return y(t)},"%H":function(t){return d(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":function(t){return d(t.tm_mday+function(t,e){for(var r=0,i=0;i<=e;r+=t[i++]);return r}(vt(t.tm_year+1900)?wt:It,t.tm_mon-1),3)},"%m":function(t){return d(t.tm_mon+1,2)},"%M":function(t){return d(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return d(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=t.tm_yday+7-t.tm_wday;return d(Math.floor(e/7),2)},"%V":function(t){var e=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&e++,e){if(53==e){var r=(t.tm_wday+371-t.tm_yday)%7;4!=r&&(3!=r||!vt(t.tm_year))&&(e=1)}}else{e=52;var i=(t.tm_wday+7-t.tm_yday-1)%7;(4==i||5==i&&vt(t.tm_year%400-1))&&e++}return d(e,2)},"%w":function(t){return t.tm_wday},"%W":function(t){var e=t.tm_yday+7-(t.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var e=t.tm_gmtoff,r=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(r?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var l in a=a.replace(/%%/g,"\0\0"),b)a.includes(l)&&(a=a.replace(new RegExp(l,"g"),b[l](s)));var _=function(t,e,r){var i=function(t){for(var e=0,r=0;r=55296&&i<=57343?(e+=4,++r):e+=3}return e}(t)+1,n=new Array(i);return N(t,n,0,n.length),n}(a=a.replace(/\0\0/g,"%"));return _.length>e?0:(St(_,t),_.length-1)}(t,e,r,i)}},Ot=(function(){var t={a:Tt};function e(t,e){var r=t.exports;n.asm=r,C((w=n.asm.ia).buffer),n.asm.la,function(t){P.unshift(t)}(n.asm.ja),function(t){if($--,n.monitorRunDependencies&&n.monitorRunDependencies($),0==$&&(null!==Y&&(clearInterval(Y),Y=null),q)){var e=q;q=null,e()}}()}function r(t){e(t.instance)}function s(e){return(_||!f&&!p||"function"!=typeof fetch?Promise.resolve().then((function(){return G(j)})):fetch(j,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+j+"'";return t.arrayBuffer()})).catch((function(){return G(j)}))).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){g("failed to asynchronously prepare wasm: "+t),X(t)}))}if($++,n.monitorRunDependencies&&n.monitorRunDependencies($),n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(t){g("Module.instantiateWasm callback failed with error: "+t),i(t)}(_||"function"!=typeof WebAssembly.instantiateStreaming||K(j)||y||"function"!=typeof fetch?s(r):fetch(j,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return g("wasm streaming compile failed: "+t),g("falling back to ArrayBuffer instantiation"),s(r)}))}))).catch(i)}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.ja).apply(null,arguments)},n._main=function(){return(n._main=n.asm.ka).apply(null,arguments)},n._duckdb_web_fs_glob_add_path=function(){return(n._duckdb_web_fs_glob_add_path=n.asm.ma).apply(null,arguments)},n._duckdb_web_clear_response=function(){return(n._duckdb_web_clear_response=n.asm.na).apply(null,arguments)},n._duckdb_web_fail_with=function(){return(n._duckdb_web_fail_with=n.asm.oa).apply(null,arguments)},n._duckdb_web_reset=function(){return(n._duckdb_web_reset=n.asm.pa).apply(null,arguments)},n._duckdb_web_connect=function(){return(n._duckdb_web_connect=n.asm.qa).apply(null,arguments)},n._duckdb_web_disconnect=function(){return(n._duckdb_web_disconnect=n.asm.ra).apply(null,arguments)},n._duckdb_web_flush_files=function(){return(n._duckdb_web_flush_files=n.asm.sa).apply(null,arguments)},n._duckdb_web_flush_file=function(){return(n._duckdb_web_flush_file=n.asm.ta).apply(null,arguments)},n._duckdb_web_open=function(){return(n._duckdb_web_open=n.asm.ua).apply(null,arguments)},n._duckdb_web_get_global_file_info=function(){return(n._duckdb_web_get_global_file_info=n.asm.va).apply(null,arguments)},n._duckdb_web_collect_file_stats=function(){return(n._duckdb_web_collect_file_stats=n.asm.wa).apply(null,arguments)},n._duckdb_web_export_file_stats=function(){return(n._duckdb_web_export_file_stats=n.asm.xa).apply(null,arguments)},n._duckdb_web_fs_drop_file=function(){return(n._duckdb_web_fs_drop_file=n.asm.ya).apply(null,arguments)},n._duckdb_web_fs_drop_files=function(){return(n._duckdb_web_fs_drop_files=n.asm.za).apply(null,arguments)},n._duckdb_web_fs_glob_file_infos=function(){return(n._duckdb_web_fs_glob_file_infos=n.asm.Aa).apply(null,arguments)},n._duckdb_web_fs_get_file_info_by_id=function(){return(n._duckdb_web_fs_get_file_info_by_id=n.asm.Ba).apply(null,arguments)},n._duckdb_web_fs_get_file_info_by_name=function(){return(n._duckdb_web_fs_get_file_info_by_name=n.asm.Ca).apply(null,arguments)},n._duckdb_web_fs_register_file_url=function(){return(n._duckdb_web_fs_register_file_url=n.asm.Da).apply(null,arguments)},n._duckdb_web_fs_register_file_buffer=function(){return(n._duckdb_web_fs_register_file_buffer=n.asm.Ea).apply(null,arguments)},n._duckdb_web_copy_file_to_buffer=function(){return(n._duckdb_web_copy_file_to_buffer=n.asm.Fa).apply(null,arguments)},n._duckdb_web_copy_file_to_path=function(){return(n._duckdb_web_copy_file_to_path=n.asm.Ga).apply(null,arguments)},n._duckdb_web_get_version=function(){return(n._duckdb_web_get_version=n.asm.Ha).apply(null,arguments)},n._duckdb_web_get_feature_flags=function(){return(n._duckdb_web_get_feature_flags=n.asm.Ia).apply(null,arguments)},n._duckdb_web_tokenize=function(){return(n._duckdb_web_tokenize=n.asm.Ja).apply(null,arguments)},n._duckdb_web_udf_scalar_create=function(){return(n._duckdb_web_udf_scalar_create=n.asm.Ka).apply(null,arguments)},n._duckdb_web_prepared_create=function(){return(n._duckdb_web_prepared_create=n.asm.La).apply(null,arguments)},n._duckdb_web_prepared_close=function(){return(n._duckdb_web_prepared_close=n.asm.Ma).apply(null,arguments)},n._duckdb_web_prepared_run=function(){return(n._duckdb_web_prepared_run=n.asm.Na).apply(null,arguments)},n._duckdb_web_prepared_send=function(){return(n._duckdb_web_prepared_send=n.asm.Oa).apply(null,arguments)},n._duckdb_web_query_run=function(){return(n._duckdb_web_query_run=n.asm.Pa).apply(null,arguments)},n._duckdb_web_pending_query_start=function(){return(n._duckdb_web_pending_query_start=n.asm.Qa).apply(null,arguments)},n._duckdb_web_pending_query_poll=function(){return(n._duckdb_web_pending_query_poll=n.asm.Ra).apply(null,arguments)},n._duckdb_web_pending_query_cancel=function(){return(n._duckdb_web_pending_query_cancel=n.asm.Sa).apply(null,arguments)},n._duckdb_web_query_fetch_results=function(){return(n._duckdb_web_query_fetch_results=n.asm.Ta).apply(null,arguments)},n._duckdb_web_get_tablenames=function(){return(n._duckdb_web_get_tablenames=n.asm.Ua).apply(null,arguments)},n._duckdb_web_insert_arrow_from_ipc_stream=function(){return(n._duckdb_web_insert_arrow_from_ipc_stream=n.asm.Va).apply(null,arguments)},n._duckdb_web_insert_csv_from_path=function(){return(n._duckdb_web_insert_csv_from_path=n.asm.Wa).apply(null,arguments)},n._duckdb_web_insert_json_from_path=function(){return(n._duckdb_web_insert_json_from_path=n.asm.Xa).apply(null,arguments)},n._htonl=function(){return(Ot=n._htonl=n.asm.Ya).apply(null,arguments)}),Bt=n._htons=function(){return(Bt=n._htons=n.asm.Za).apply(null,arguments)},Mt=n._ntohs=function(){return(Mt=n._ntohs=n.asm._a).apply(null,arguments)},Ft=n._malloc=function(){return(Ft=n._malloc=n.asm.$a).apply(null,arguments)},Dt=(n._free=function(){return(n._free=n.asm.ab).apply(null,arguments)},n.___trap=function(){return(Dt=n.___trap=n.asm.bb).apply(null,arguments)}),Et=n.stackSave=function(){return(Et=n.stackSave=n.asm.cb).apply(null,arguments)},Ut=n.stackRestore=function(){return(Ut=n.stackRestore=n.asm.db).apply(null,arguments)},xt=n.stackAlloc=function(){return(xt=n.stackAlloc=n.asm.eb).apply(null,arguments)};function Rt(t){var e=n._main;try{var r=e(0,0);return function(t,e){I=t,function(t){I=t,z()||(n.onExit&&n.onExit(t),S=!0),d(t,new J(t))}(t)}(r),r}catch(t){return function(t){if(t instanceof J||"unwind"==t)return I;d(1,t)}(t)}}function Nt(t){function e(){At||(At=!0,n.calledRun=!0,!S&&(Q(P),Q(V),r(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Lt&&Rt(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)t=n.postRun.shift(),H.unshift(t);var t;Q(H)}()))}t=t||h,$>0||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),k.unshift(t);var t;Q(k)}(),$>0)||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e())}if(n.ccall=function(t,e,r,i,s){var a={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);L(t,e=xt(r),r)}return e},array:t=>{var e=xt(t.length);return St(t,e),e}},o=function(t){return n["_"+t]}(t),l=[],u=0;if(i)for(var h=0;h0;)n.preInit.pop()();var Lt=!0;return n.noInitialRun&&(Lt=!1),Nt(),e.ready}})(),Wu=w_,Ho=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),r=Tt.from(e);return console.assert(r.isSync()),console.assert(r.isFile()),new At(r)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;null==e;)e=await new Promise(((t,e)=>{try{t(this._bindings.pollPendingQuery(this._conn))}catch(t){e(t)}}));let r=new zo(this._bindings,this._conn,e),i=Tt.from(r);return console.assert(i.isSync()),console.assert(i.isStream()),i}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new nc(this._bindings,this._conn,e)}createScalarFunction(t,e,r){this._bindings.createScalarFunction(this._conn,t,e,r)}insertArrowTable(t,e){let r=Co(t,"stream");this.insertArrowFromIPCStream(r,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},zo=class{constructor(t,e,r){this.bindings=t,this.conn=e,this.header=r,this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let t=this.bindings.fetchQueryResults(this.conn);return this._depleted=0==t.length,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},nc=class{constructor(t,e,r){this.bindings=t,this.connectionId=e,this.statementId=r}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),r=Tt.from(e);return console.assert(r.isSync()),console.assert(r.isFile()),new At(r)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),r=new zo(this.bindings,this.connectionId,e),i=Tt.from(r);return console.assert(i.isSync()),console.assert(i.isStream()),i}},Xu=new TextEncoder,$u=new TextDecoder("utf-8");function ic(t,e,r){let i=Xu.encode(r),n=t._malloc(i.byteLength),s=t.HEAPU8.subarray(n,n+i.byteLength);s.set(i),t.HEAPF64[0+(e>>3)]=1,t.HEAPF64[1+(e>>3)]=n,t.HEAPF64[2+(e>>3)]=s.byteLength}function oc(t){switch(t){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function sc(t,e,r,i){let n=t.HEAPU8.subarray(e,e+i*oc(r));switch(r){case"UINT8":return new Uint8Array(n.buffer,n.byteOffset,i);case"INT8":return new Int8Array(n.buffer,n.byteOffset,i);case"INT32":return new Int32Array(n.buffer,n.byteOffset,i);case"FLOAT":return new Float32Array(n.buffer,n.byteOffset,i);case"DOUBLE":case"VARCHAR":return new Float64Array(n.buffer,n.byteOffset,i);default:return new Array(0)}}function Yu(t,e,r){let i=t.HEAPU8.subarray(e,e+r);return new Uint8Array(i.buffer,i.byteOffset,r)}function jo(t,e,r){let i=t.HEAPU8.subarray(e,e+8*r);return new Float64Array(i.buffer,i.byteOffset,r)}function Gu(t,e,r,i,n,s,a,o){try{let l=t._udfFunctions.get(i);if(!l)return void ic(e,r,"Unknown UDF with id: "+i);let u=$u.decode(e.HEAPU8.subarray(n,n+s)),h=JSON.parse(u),c=jo(e,a,o/8),d=t=>{var r;let i=null;switch(void 0!==t.validityBuffer&&(i=Yu(e,c[t.validityBuffer],h.rows)),t.physicalType){case"VARCHAR":{if(null===t.dataBuffer||void 0===t.dataBuffer)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(null===t.lengthBuffer||void 0===t.lengthBuffer)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let r=sc(e,c[t.dataBuffer],t.physicalType,h.rows),n=[],s=jo(e,c[t.lengthBuffer],h.rows);for(let t=0;tn[t]}case"STRUCT":{let e={},n=[];for(let i=0;i<((null==(r=t.children)?void 0:r.length)||0);++i){let r=t.children[i],s=d(r);n.push((t=>{e[r.name]=s(t)}))}return null!=i?t=>{if(!i[t])return null;for(let e of n)e(t);return e}:t=>{for(let e of n)e(t);return e}}default:{if(void 0===t.dataBuffer)throw new Error("malformed data view, expected data buffer for argument of type: "+t.physicalType);let r=sc(e,c[t.dataBuffer],t.physicalType,h.rows);return null!=i?t=>i[t]?r[t]:null:t=>r[t]}}},f=[];for(let t=0;t>3)]=0,e.HEAPF64[1+(r>>3)]=S,e.HEAPF64[2+(r>>3)]=0}catch(t){ic(e,r,t.toString())}}function S_(){let t=new TextDecoder;return e=>(typeof SharedArrayBuffer<"u"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),t.decode(e))}var I_=S_();function gr(t,e){console.error(`FAIL WITH: ${e}`),t.ccall("duckdb_web_fail_with",null,["string"],[e])}function Bn(t,e,r){let i=t.HEAPU8.subarray(e,e+r),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function z(t,e,r){return I_(t.HEAPU8.subarray(e,e+r))}function st(t,e,r,i){let n=t.stackSave(),s=t.stackAlloc(24);r.unshift("number"),i.unshift(s),t.ccall(e,null,r,i);let a=t.HEAPF64[0+(s>>3)],o=t.HEAPF64[1+(s>>3)],l=t.HEAPF64[2+(s>>3)];return t.stackRestore(n),[a,o,l]}function _t(t){t.ccall("duckdb_web_clear_response",null,[],[])}var Wo=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),r=new Uint8Array(new ArrayBuffer(t.byteLength));r.set(t.subarray(56)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=r}getBlockStats(t,e){return(e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0}).file_writes=15&this.blockStats[3*t+0],e.file_reads_cold=this.blockStats[3*t+0]>>4,e.file_reads_ahead=15&this.blockStats[3*t+1],e.file_reads_cached=this.blockStats[3*t+1]>>4,e.page_accesses=15&this.blockStats[3*t+1],e.page_loads=this.blockStats[3*t+1]>>4,e}},F_=new TextEncoder,$o=class{constructor(t,e){this._instance=null,this._initPromise=null,this._initPromiseResolver=()=>{},this.onInstantiationProgress=[],this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=(t=>{})){return null!=this._instance||(null!=this._initPromise&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise((t=>{this._initPromiseResolver=t})),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter((e=>e!=t))),this}open(t){let[e,r,i]=st(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(0!==e)throw new Error(z(this.mod,r,i));_t(this.mod)}reset(){let[t,e,r]=st(this.mod,"duckdb_web_reset",[],[]);if(0!==t)throw new Error(z(this.mod,e,r));_t(this.mod)}getVersion(){let[t,e,r]=st(this.mod,"duckdb_web_get_version",[],[]);if(0!==t)throw new Error(z(this.mod,e,r));let i=z(this.mod,e,r);return _t(this.mod),i}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,r,i]=st(this.mod,"duckdb_web_tokenize",["string"],[t]);if(0!==e)throw new Error(z(this.mod,r,i));let n=z(this.mod,r,i);return _t(this.mod),JSON.parse(n)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Ho(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[r,i,n]=st(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(0!==r)throw new Error(z(this.mod,i,n));let s=Bn(this.mod,i,n);return _t(this.mod),s}startPendingQuery(t,e){let[r,i,n]=st(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(0!==r)throw new Error(z(this.mod,i,n));if(0==i)return null;let s=Bn(this.mod,i,n);return _t(this.mod),s}pollPendingQuery(t){let[e,r,i]=st(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(0!==e)throw new Error(z(this.mod,r,i));if(0==r)return null;let n=Bn(this.mod,r,i);return _t(this.mod),n}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,r,i]=st(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(0!==e)throw new Error(z(this.mod,r,i));let n=Bn(this.mod,r,i);return _t(this.mod),n}getTableNames(t,e){let[r,i,n]=st(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(0!==r)throw new Error(z(this.mod,i,n));let s=z(this.mod,i,n);return _t(this.mod),JSON.parse(s)}createScalarFunction(t,e,r,i){let n={functionId:this._nextUDFId,name:e,returnType:ei(r)},s={functionId:n.functionId,connectionId:t,name:e,returnType:r,func:i};this._nextUDFId+=1;let[a,o,l]=st(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(n)]);if(0!==a)throw new Error(z(this.mod,o,l));if(_t(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(s.functionId,s),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"registerUDFFunction",udf:s})}createPrepared(t,e){let[r,i,n]=st(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(0!==r)throw new Error(z(this.mod,i,n));return _t(this.mod),i}closePrepared(t,e){let[r,i,n]=st(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(0!==r)throw new Error(z(this.mod,i,n));_t(this.mod)}runPrepared(t,e,r){let[i,n,s]=st(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(r)]);if(0!==i)throw new Error(z(this.mod,n,s));let a=Bn(this.mod,n,s);return _t(this.mod),a}sendPrepared(t,e,r){let[i,n,s]=st(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(r)]);if(0!==i)throw new Error(z(this.mod,n,s));let a=Bn(this.mod,n,s);return _t(this.mod),a}insertArrowFromIPCStream(t,e,r){if(0==e.length)return;let i=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(i,i+e.length).set(e);let n=r?JSON.stringify(r):"",[s,a,o]=st(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,i,e.length,n]);if(0!==s)throw new Error(z(this.mod,a,o))}insertCSVFromPath(t,e,r){if(void 0!==r.columns){r.columnsFlat=[];for(let t in r.columns)r.columnsFlat.push(Po(t,r.columns[t]))}let i={...r};i.columns=i.columnsFlat,delete i.columnsFlat;let n=JSON.stringify(i),[s,a,o]=st(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,n]);if(0!==s)throw new Error(z(this.mod,a,o))}insertJSONFromPath(t,e,r){if(void 0!==r.columns){r.columnsFlat=[];for(let t in r.columns)r.columnsFlat.push(Po(t,r.columns[t]))}let i={...r};i.columns=i.columnsFlat,delete i.columnsFlat;let n=JSON.stringify(i),[s,a,o]=st(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,n]);if(0!==s)throw new Error(z(this.mod,a,o))}globFiles(t){let[e,r,i]=st(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(0!==e)throw new Error(z(this.mod,r,i));let n=z(this.mod,r,i);_t(this.mod);let s=JSON.parse(n);return null==s?[]:s}registerFileURL(t,e,r,i=!1){void 0===e&&(e=t);let[n,s,a]=st(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[t,e,r,i]);if(0!==n)throw new Error(z(this.mod,s,a));_t(this.mod)}registerFileText(t,e){let r=F_.encode(e);this.registerFileBuffer(t,r)}registerFileBuffer(t,e){let r=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(r,r+e.length).set(e);let[i,n,s]=st(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,r,e.length]);if(0!==i)throw new Error(z(this.mod,n,s));_t(this.mod)}registerFileHandle(t,e,r,i){let[n,s,a]=st(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[t,t,r,i]);if(0!==n)throw new Error(z(this.mod,s,a));if(_t(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let r of this.pthread.runningWorkers)r.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let e of this.pthread.unusedWorkers)e.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,r,i]=st(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(0!==e)throw new Error(z(this.mod,r,i));_t(this.mod)}dropFiles(){let[t,e,r]=st(this.mod,"duckdb_web_fs_drop_files",[],[]);if(0!==t)throw new Error(z(this.mod,e,r));_t(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[r,i,n]=st(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(0!==r)throw new Error(z(this.mod,i,n));_t(this.mod)}copyFileToBuffer(t){let[e,r,i]=st(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(0!==e)throw new Error(z(this.mod,r,i));let n=this.mod.HEAPU8.subarray(r,r+i),s=new Uint8Array(n.length);return s.set(n),_t(this.mod),s}collectFileStatistics(t,e){let[r,i,n]=st(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(0!==r)throw new Error(z(this.mod,i,n))}exportFileStatistics(t){let[e,r,i]=st(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(0!==e)throw new Error(z(this.mod,r,i));return new Wo(this.mod.HEAPU8.subarray(r,r+i))}},Yo=class extends $o{constructor(t,e,r,i){super(t,e),this.mainModuleURL=r,this.pthreadWorkerURL=i}locateFile(t,e){if(t.endsWith(".wasm"))return this.mainModuleURL;if(t.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${e} path=${t}`)}instantiateWasm(t,e){globalThis.DUCKDB_RUNTIME=this._runtime;let r=this.onInstantiationProgress;if(WebAssembly.instantiateStreaming)if("function"==typeof TransformStream){let i=(async()=>{var t;let e=new Request(this.mainModuleURL),i=await fetch(e),n=i.headers.get("content-length"),s=n&&parseInt(n,10)||0,a=new Date,o={startedAt:a,updatedAt:a,bytesTotal:s||0,bytesLoaded:0},l=new TransformStream({transform(t,e){o.bytesLoaded+=t.byteLength;let i=new Date;if(i.getTime()-o.updatedAt.getTime()<20)return o.updatedAt=i,void e.enqueue(t);for(let t of r)t(o);e.enqueue(t)}});return new Response(null==(t=i.body)?void 0:t.pipeThrough(l),i)})();WebAssembly.instantiateStreaming(i,t).then((t=>{e(t.instance,t.module)}))}else{console.warn("instantiating without progress handler since transform streams are unavailable");let r=new Request(this.mainModuleURL);WebAssembly.instantiateStreaming(fetch(r),t).then((t=>{e(t.instance,t.module)}))}else if("function"==typeof XMLHttpRequest){let i=new XMLHttpRequest,n=this.mainModuleURL,s=new Date,a={startedAt:s,updatedAt:s,bytesTotal:0,bytesLoaded:0};i.open("GET",n),i.responseType="arraybuffer",i.onerror=t=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+t}),new Error(t.toString())},i.onprogress=t=>{a.bytesTotal=t.total,a.bytesLoaded=t.loaded;let e=new Date;if(e.getTime()-a.updatedAt.getTime()<20)a.updatedAt=e;else for(let t of r)t(a)},i.onload=()=>{WebAssembly.instantiate(i.response,t).then((t=>{e(t.instance,t.module)})).catch((t=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+t}),new Error(t)}))},i.send()}else console.warn("instantiating with manual fetch since streaming instantiation and xhrs are unavailable"),(async()=>{let r=new Request(this.mainModuleURL),i=await(await fetch(r)).arrayBuffer();WebAssembly.instantiate(i,t).then((t=>{e(t.instance,t.module)}))})();return[]}},Xo=class extends Yo{constructor(t,e,r,i=null){super(t,e,r,i)}instantiateImpl(t){return Wu({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}},rn=Uc(Ku()),Ju=function(t,e,r){var i;if(null!=(i=null==t?void 0:t.endpoint)&&i.startsWith("http")){let e=`${null==t?void 0:t.endpoint}`,r=e.indexOf("://")+3;return e.substring(r)}return null!=t&&t.endpoint?`${r}.${null==t?void 0:t.endpoint}`:`${r}.s3.amazonaws.com`};function A_(t,e,r){var i,n,s,a;let o=qu(e);return{url:o.path,query:"",host:Ju(t,e,o.bucket),region:null!=(i=null==t?void 0:t.region)?i:"",service:"s3",method:r,accessKeyId:null!=(n=null==t?void 0:t.accessKeyId)?n:"",secretAccessKey:null!=(s=null==t?void 0:t.secretAccessKey)?s:"",sessionToken:null!=(a=null==t?void 0:t.sessionToken)?a:"",dateNow:(new Date).toISOString().replace(/-/g,"").split("T")[0],datetimeNow:(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function B_(t,e=!1){let r="0123456789ABCDEF",i="";for(let n=0;n="A"&&s<="Z"||s>="a"&&s<="z"||s>="0"&&s<="9"||"_"==s||"-"==s||"~"==s||"."==s?i+=s:"/"==s?i+=e?"%2F":s:(i+="%",i+=r[s.charCodeAt(0)>>4],i+=r[15&s.charCodeAt(0)])}return i}function x_(t,e=null){var r;let i=null!=(r=null==e?void 0:e.contentHash)?r:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",n=new Map;n.set("x-amz-date",t.datetimeNow),n.set("x-amz-content-sha256",i),t.sessionToken&&n.set("x-amz-security-token",t.sessionToken);let s="";null!=e&&e.contentType&&(s+="content-type;"),s+="host;x-amz-content-sha256;x-amz-date",t.sessionToken&&(s+=";x-amz-security-token");let a=t.method+"\n"+B_(t.url)+"\n"+t.query;null!=e&&e.contentType&&(a+="\ncontent-type:"+(null==e?void 0:e.contentType)),a+="\nhost:"+t.host+"\nx-amz-content-sha256:"+i+"\nx-amz-date:"+t.datetimeNow,t.sessionToken&&t.sessionToken.length>0&&(a+="\nx-amz-security-token:"+t.sessionToken),a+="\n\n"+s+"\n"+i;let o=(0,rn.sha256)(a),l="AWS4-HMAC-SHA256\n"+t.datetimeNow+"\n"+t.dateNow+"/"+t.region+"/"+t.service+"/aws4_request\n"+o,u="AWS4"+t.secretAccessKey,h=rn.sha256.hmac.arrayBuffer(u,t.dateNow),c=rn.sha256.hmac.arrayBuffer(h,t.region),d=rn.sha256.hmac.arrayBuffer(c,t.service),f=rn.sha256.hmac.arrayBuffer(d,"aws4_request"),p=rn.sha256.hmac(f,l);return n.set("Authorization","AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+t.dateNow+"/"+t.region+"/"+t.service+"/aws4_request, SignedHeaders="+s+", Signature="+p),n}var T_=function(t,e,r,i=null,n=null){return x_(A_(t,e,r),{contentType:i,contentHash:n?rn.sha256.hex(n):null})};function nn(t,e,r,i,n=null,s=null){((null==e?void 0:e.accessKeyId)||(null==e?void 0:e.sessionToken))&&(T_(e,r,i,n,s).forEach(((e,r)=>{t.setRequestHeader(r,e)})),n&&t.setRequestHeader("content-type",n))}function qu(t){if(0!=t.indexOf("s3://"))throw new Error("URL needs to start with s3://");let e=t.indexOf("/",5);if(-1==e)throw new Error("URL needs to contain a '/' after the host");let r=t.substring(5,e);if(!r)throw new Error("URL needs to contain a bucket name");let i=t.substring(e);if(!i)throw new Error("URL needs to contain key");return{bucket:r,path:i}}function sn(t,e){var r;let i=qu(e);return null!=(r=null==t?void 0:t.endpoint)&&r.startsWith("http")?`${null==t?void 0:t.endpoint}/${i.bucket}`+i.path:"https://"+Ju(t,e,i.bucket)+i.path}var ot={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(t,e){try{let r=ot._fileInfoCache.get(e),[i,n,s]=st(t,"duckdb_web_fs_get_file_info_by_id",["number","number"],[e,(null==r?void 0:r.cacheEpoch)||0]);if(0!==i)return null;if(0===s)return r;let a=z(t,n,s);_t(t);let o=JSON.parse(a);if(null==o)return null;let l={...o,blob:null};return ot._fileInfoCache.set(e,l),l}catch(t){return null}},getGlobalFileInfo(t){var e;try{let[r,i,n]=st(t,"duckdb_web_get_global_file_info",["number"],[(null==(e=ot._globalFileInfo)?void 0:e.cacheEpoch)||0]);if(0!==r)return null;if(0===n)return ot._globalFileInfo;let s=z(t,i,n);_t(t);let a=JSON.parse(s);return null==a?null:(ot._globalFileInfo={...a,blob:null},ot._globalFileInfo)}catch(t){return null}},testPlatformFeature:(t,e)=>1===e?typeof BigInt64Array<"u":(console.warn(`test for unknown feature: ${e}`),!1),getDefaultDataProtocol:t=>2,openFile:(t,e,r)=>{var i;try{ot._fileInfoCache.delete(e);let n=ot.getFileInfo(t,e);switch(null==n?void 0:n.dataProtocol){case 4:case 5:{if(1&r&&2&r)throw new Error(`Opening file ${n.fileName} failed: cannot open file with both read and write flags set`);if(32&r)throw new Error(`Opening file ${n.fileName} failed: appending to HTTP/S3 files is not supported`);if(2&r){let e=new XMLHttpRequest;if(5==n.dataProtocol?(e.open("HEAD",sn(n.s3Config,n.dataUrl),!1),nn(e,n.s3Config,n.dataUrl,"HEAD")):e.open("HEAD",n.dataUrl,!1),e.send(null),200!=e.status&&404!=e.status)throw new Error(`Opening file ${n.fileName} failed: Unexpected return status from server (${e.status})`);if(404==e.status&&!(8&r||16&r))throw new Error(`Opening file ${n.fileName} failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag.`);let i=t._malloc(1),s=new Uint8Array;t.HEAPU8.set(s,i);let a=t._malloc(16);return t.HEAPF64[0+(a>>3)]=1,t.HEAPF64[1+(a>>3)]=i,a}if(1!=r)throw new Error(`Opening file ${n.fileName} failed: unsupported file flags: ${r}`);let e=null;try{let e=new XMLHttpRequest;5==n.dataProtocol?(e.open("HEAD",sn(n.s3Config,n.dataUrl),!1),nn(e,n.s3Config,n.dataUrl,"HEAD")):e.open("HEAD",n.dataUrl,!1),e.setRequestHeader("Range","bytes=0-"),e.send(null);let r=e.getResponseHeader("Content-Length");if(206==e.status&&null!==r){let e=t._malloc(16);return t.HEAPF64[0+(e>>3)]=+r,t.HEAPF64[1+(e>>3)]=0,e}}catch(t){e=t,console.warn(`HEAD request with range header failed: ${t}`)}if(n.allowFullHttpReads){console.warn(`falling back to full HTTP read for: ${n.dataUrl}`);let e=new XMLHttpRequest;if(5==n.dataProtocol?(e.open("GET",sn(n.s3Config,n.dataUrl),!1),nn(e,n.s3Config,n.dataUrl,"GET")):e.open("GET",n.dataUrl,!1),e.responseType="arraybuffer",e.send(null),200==e.status){let r=t._malloc(e.response.byteLength),i=new Uint8Array(e.response,0,e.response.byteLength);t.HEAPU8.set(i,r);let n=t._malloc(16);return t.HEAPF64[0+(n>>3)]=e.response.byteLength,t.HEAPF64[1+(n>>3)]=r,n}}if(null!=e)throw new Error(`Reading file ${n.fileName} failed with error: ${e}`);return 0}case 2:{let e=null==(i=ot._files)?void 0:i.get(n.fileName);if(e){let r=t._malloc(16);return t.HEAPF64[0+(r>>3)]=e.size,t.HEAPF64[1+(r>>3)]=0,r}console.warn(`Buffering missing file: ${n.fileName}`);let r=t._malloc(16),s=t._malloc(1);return t.HEAPF64[0+(r>>3)]=1,t.HEAPF64[1+(r>>3)]=s,r}}}catch(e){console.error(e.toString()),gr(t,e.toString())}return 0},glob:(t,e,r)=>{try{let i=z(t,e,r);if(i.startsWith("http")||i.startsWith("s3://")){let e=new XMLHttpRequest;if(i.startsWith("s3://")){let r=ot.getGlobalFileInfo(t);e.open("HEAD",sn(null==r?void 0:r.s3Config,i),!1),nn(e,null==r?void 0:r.s3Config,i,"HEAD")}else e.open("HEAD",i,!1);if(e.send(null),200!=e.status&&206!==e.status)return void gr(t,`HEAD request failed: ${i}`);t.ccall("duckdb_web_fs_glob_add_path",null,["string"],[i])}}catch(e){return gr(t,e.toString()),0}},checkFile:(t,e,r)=>{try{let i=z(t,e,r);if(i.startsWith("http")||i.startsWith("s3://")){let e=new XMLHttpRequest;if(i.startsWith("s3://")){let r=ot.getGlobalFileInfo(t);e.open("HEAD",sn(null==r?void 0:r.s3Config,i),!1),nn(e,null==r?void 0:r.s3Config,i,"HEAD")}else e.open("HEAD",i,!1);return e.send(null),206==e.status||200==e.status}}catch(t){return!1}return!1},syncFile:(t,e)=>{},closeFile:(t,e)=>{var r;let i=ot.getFileInfo(t,e);switch(ot._fileInfoCache.delete(e),null==i?void 0:i.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let t=null==(r=ot._files)?void 0:r.get(i.fileName);if(!t)throw new Error(`No OPFS access handle registered with name: ${i.fileName}`);return t.flush()}}},truncateFile:(t,e,r)=>{var i;let n=ot.getFileInfo(t,e);switch(null==n?void 0:n.dataProtocol){case 4:return void gr(t,"Cannot truncate a http file");case 5:return void gr(t,"Cannot truncate an s3 file");case 0:case 1:case 2:return void gr(t,"truncateFile not implemented");case 3:{let t=null==(i=ot._files)?void 0:i.get(n.fileName);if(!t)throw new Error(`No OPFS access handle registered with name: ${n.fileName}`);return t.truncate(r)}}return 0},readFile(t,e,r,i,n){var s,a;try{let o=ot.getFileInfo(t,e);switch(null==o?void 0:o.dataProtocol){case 4:case 5:if(!o.dataUrl)throw new Error(`Missing data URL for file ${e}`);try{let e=new XMLHttpRequest;if(5==o.dataProtocol?(e.open("GET",sn(null==o?void 0:o.s3Config,o.dataUrl),!1),nn(e,null==o?void 0:o.s3Config,o.dataUrl,"GET")):e.open("GET",o.dataUrl,!1),e.responseType="arraybuffer",e.setRequestHeader("Range",`bytes=${n}-${n+i-1}`),e.send(null),206==e.status||200==e.status&&i==e.response.byteLength&&0==n){let n=new Uint8Array(e.response,0,Math.min(e.response.byteLength,i));return t.HEAPU8.set(n,r),n.byteLength}throw 200==e.status?new Error(`Range request for ${o.dataUrl} did not return a partial response: ${e.status} "${e.statusText}"`):new Error(`Range request for ${o.dataUrl} did returned non-success status: ${e.status} "${e.statusText}"`)}catch(t){throw new Error(`Range request for ${o.dataUrl} failed with error: ${t}"`)}case 2:{let e=null==(s=ot._files)?void 0:s.get(o.fileName);if(!e)throw new Error(`No HTML5 file registered with name: ${o.fileName}`);let a=e.slice(n,n+i),l=new Uint8Array((new FileReaderSync).readAsArrayBuffer(a));return t.HEAPU8.set(l,r),l.byteLength}case 3:{let e=null==(a=ot._files)?void 0:a.get(o.fileName);if(!e)throw new Error(`No OPFS access handle registered with name: ${o.fileName}`);let s=t.HEAPU8.subarray(r,r+i);return e.read(s,{at:n})}}return 0}catch(e){return gr(t,e.toString()),0}},writeFile:(t,e,r,i,n)=>{var s;let a=ot.getFileInfo(t,e);switch(null==a?void 0:a.dataProtocol){case 4:return gr(t,"Cannot write to HTTP file"),0;case 5:{let e=t.HEAPU8.subarray(r,r+i),n=new XMLHttpRequest;return n.open("PUT",sn(null==a?void 0:a.s3Config,a.dataUrl),!1),nn(n,null==a?void 0:a.s3Config,a.dataUrl,"PUT","",e),n.send(e),i}case 2:return gr(t,"cannot write using the html5 file reader api"),0;case 3:{let e=null==(s=ot._files)?void 0:s.get(a.fileName);if(!e)throw new Error(`No OPFS access handle registered with name: ${a.fileName}`);let o=t.HEAPU8.subarray(r,r+i);return e.write(o,{at:n})}}return 0},getLastFileModificationTime:(t,e)=>{var r;let i=ot.getFileInfo(t,e);switch(null==i?void 0:i.dataProtocol){case 2:if(!(null==(r=ot._files)?void 0:r.get(i.fileName)))throw Error(`No handle available for file: ${i.fileName}`);return 0;case 4:case 5:return(new Date).getTime()}return 0},checkDirectory:(t,e,r)=>{let i=z(t,e,r);return console.log(`checkDirectory: ${i}`),!1},createDirectory:(t,e,r)=>{let i=z(t,e,r);console.log(`createDirectory: ${i}`)},removeDirectory:(t,e,r)=>{let i=z(t,e,r);console.log(`removeDirectory: ${i}`)},listDirectoryEntries:(t,e,r)=>{let i=z(t,e,r);return console.log(`listDirectoryEntries: ${i}`),!1},moveFile:(t,e,r,i,n)=>{var s,a;let o=z(t,e,r),l=z(t,i,n),u=null==(s=ot._files)?void 0:s.get(o);void 0!==u&&(ot._files.delete(u),ot._files.set(l,u));for(let[t,e]of(null==(a=ot._fileInfoCache)?void 0:a.entries())||[])if(e.dataUrl==o){ot._fileInfoCache.delete(t);break}return!0},removeFile:(t,e,r)=>{},callScalarUDF:(t,e,r,i,n,s,a)=>{Gu(ot,t,e,r,i,n,s,a)}},ac=class extends Vo{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,r){return await new Xo(this,ot,t,e).instantiate(r)}};function Zu(){let t=new ac;globalThis.onmessage=async e=>{await t.onMessage(e.data)}}return Zu(),Ch(D_)})(); \ No newline at end of file diff --git a/static/assets/duckdb-browser-eh.worker.873c4b205960eb66f67d.js.LICENSE.txt b/static/assets/duckdb-browser-eh.worker.873c4b205960eb66f67d.js.LICENSE.txt deleted file mode 100644 index 7bcb1f4c4..000000000 --- a/static/assets/duckdb-browser-eh.worker.873c4b205960eb66f67d.js.LICENSE.txt +++ /dev/null @@ -1,8 +0,0 @@ -/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.9.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2017 - * @license MIT - */ diff --git a/static/assets/duckdb-browser-mvp.worker.2becea0c54c097de0a11.js b/static/assets/duckdb-browser-mvp.worker.2becea0c54c097de0a11.js deleted file mode 100644 index 0c809a216..000000000 --- a/static/assets/duckdb-browser-mvp.worker.2becea0c54c097de0a11.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see duckdb-browser-mvp.worker.2becea0c54c097de0a11.js.LICENSE.txt */ -"use strict";var duckdb=(()=>{var Bw=Object.create,ws=Object.defineProperty,Tw=Object.getOwnPropertyDescriptor,Dw=Object.getOwnPropertyNames,Ew=Object.getPrototypeOf,kw=Object.prototype.hasOwnProperty,pa=(i=function(t){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+t+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(i,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):i),i,js=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),mr=(t,e)=>{for(var i in e)ws(t,i,{get:e[i],enumerable:!0})},Tf=(t,e,i,r)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let n of Dw(e))!kw.call(t,n)&&n!==i&&ws(t,n,{get:()=>e[n],enumerable:!(r=Tw(e,n))||r.enumerable});return t},Df=(t,e,i)=>(i=null!=t?Bw(Ew(t)):{},Tf(!e&&t&&t.__esModule?i:ws(i,"default",{value:t,enumerable:!0}),t)),Ow=t=>Tf(ws({},"__esModule",{value:!0}),t),Qf=js(((t,e)=>{var i,r,n,s,a,o,l,u,c,h,d,f,p,y,_,b,m,v,g,w,j,I,S,C,A;!function(t){var i="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:{};function r(t,e){return t!==i&&("function"==typeof Object.create?Object.defineProperty(t,"__esModule",{value:!0}):t.__esModule=!0),function(i,r){return t[i]=e?e(i,r):r}}"function"==typeof define&&define.amd?define("tslib",["exports"],(function(e){t(r(i,r(e)))})):"object"==typeof e&&"object"==typeof e.exports?t(r(i,r(e.exports))):t(r(i))}((function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])};i=function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)},r=Object.assign||function(t){for(var e,i=1,r=arguments.length;i=0;o--)(n=t[o])&&(a=(s<3?n(a):s>3?n(e,i,a):n(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a},a=function(t,e){return function(i,r){e(i,r,t)}},o=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},l=function(t,e,i,r){return new(i||(i=Promise))((function(n,s){function a(t){try{l(r.next(t))}catch(t){s(t)}}function o(t){try{l(r.throw(t))}catch(t){s(t)}}function l(t){t.done?n(t.value):function(t){return t instanceof i?t:new i((function(e){e(t)}))}(t.value).then(a,o)}l((r=r.apply(t,e||[])).next())}))},u=function(t,e){var i,r,n,s,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(n=2&s[0]?r.return:s[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,s[1])).done)return n;switch(r=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var r,n,s=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=s.next()).done;)a.push(r.value)}catch(t){n={error:t}}finally{try{r&&!r.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},f=function(){for(var t=[],e=0;e1||o(t,e)}))})}function o(t,e){try{!function(t){t.value instanceof _?Promise.resolve(t.value.v).then(l,u):c(s[0][2],t)}(n[t](e))}catch(t){c(s[0][3],t)}}function l(t){o("next",t)}function u(t){o("throw",t)}function c(t,e){t(e),s.shift(),s.length&&o(s[0][0],s[0][1])}},m=function(t){var e,i;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,n){e[r]=t[r]?function(e){return(i=!i)?{value:_(t[r](e)),done:"return"===r}:n?n(e):e}:n}},v=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,i=t[Symbol.asyncIterator];return i?i.call(t):(t=h(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=t[i]&&function(e){return new Promise((function(r,n){!function(t,e,i,r){Promise.resolve(r).then((function(e){t({value:e,done:i})}),e)}(r,n,(e=t[i](e)).done,e.value)}))}}},g=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var T=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};w=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)"default"!==i&&Object.prototype.hasOwnProperty.call(t,i)&&A(e,t,i);return T(e,t),e},j=function(t){return t&&t.__esModule?t:{default:t}},I=function(t,e,i,r){if("a"===i&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?r:"a"===i?r.call(t):r?r.value:e.get(t)},S=function(t,e,i,r,n){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!n)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?n.call(t,i):n?n.value=i:e.set(t,i),i},C=function(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)},t("__extends",i),t("__assign",r),t("__rest",n),t("__decorate",s),t("__param",a),t("__metadata",o),t("__awaiter",l),t("__generator",u),t("__exportStar",c),t("__createBinding",A),t("__values",h),t("__read",d),t("__spread",f),t("__spreadArrays",p),t("__spreadArray",y),t("__await",_),t("__asyncGenerator",b),t("__asyncDelegator",m),t("__asyncValues",v),t("__makeTemplateObject",g),t("__importStar",w),t("__importDefault",j),t("__classPrivateFieldGet",I),t("__classPrivateFieldSet",S),t("__classPrivateFieldIn",C)}))})),hl=js((()=>{})),Np=js((()=>{})),Yp=js(((exports,module)=>{(function(){var ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&define.amd,ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];(root.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),ARRAY_BUFFER&&(root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var createOutputMethod=function(t,e){return function(i){return new Sha256(e,!0).update(i)[t]()}},createMethod=function(t){var e=createOutputMethod("hex",t);NODE_JS&&(e=nodeWrap(e,t)),e.create=function(){return new Sha256(t)},e.update=function(t){return e.create().update(t)};for(var i=0;i>6,a[l++]=128|63&s):s<55296||s>=57344?(a[l++]=224|s>>12,a[l++]=128|s>>6&63,a[l++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++r)),a[l++]=240|s>>18,a[l++]=128|s>>12&63,a[l++]=128|s>>6&63,a[l++]=128|63&s);t=a}else{if("object"!==n)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR)}t.length>64&&(t=new Sha256(e,!0).update(t).array());var u=[],c=[];for(r=0;r<64;++r){var h=t[r]||0;u[r]=92^h,c[r]=54^h}Sha256.call(this,e,i),this.update(c),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}Sha256.prototype.update=function(t){if(!this.finalized){var e,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(ERROR);if(null===t)throw new Error(ERROR);if(ARRAY_BUFFER&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||ARRAY_BUFFER&&ArrayBuffer.isView(t)))throw new Error(ERROR);e=!0}for(var r,n,s=0,a=t.length,o=this.blocks;s>2]|=t[s]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(o[n>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=64?(this.block=o[16],this.start=n-64,this.hash(),this.hashed=!0):this.start=n}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[16]=this.block,t[e>>2]|=EXTRA[3&e],this.block=t[16],e>=56&&(this.hashed||this.hash(),t[0]=this.block,t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.hBytes<<3|this.bytes>>>29,t[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var t,e,i,r,n,s,a,o,l,u=this.h0,c=this.h1,h=this.h2,d=this.h3,f=this.h4,p=this.h5,y=this.h6,_=this.h7,b=this.blocks;for(t=16;t<64;++t)e=((n=b[t-15])>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,i=((n=b[t-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,b[t]=b[t-16]+e+b[t-7]+i<<0;for(l=c&h,t=0;t<64;t+=4)this.first?(this.is224?(s=300032,_=(n=b[0]-1413257819)-150054599<<0,d=n+24177077<<0):(s=704751109,_=(n=b[0]-210244248)-1521486534<<0,d=n+143694565<<0),this.first=!1):(e=(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),r=(s=u&c)^u&h^l,_=d+(n=_+(i=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&p^~f&y)+K[t]+b[t])<<0,d=n+(e+r)<<0),e=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10),r=(a=d&u)^d&c^s,y=h+(n=y+(i=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7))+(_&f^~_&p)+K[t+1]+b[t+1])<<0,e=((h=n+(e+r)<<0)>>>2|h<<30)^(h>>>13|h<<19)^(h>>>22|h<<10),r=(o=h&d)^h&u^a,p=c+(n=p+(i=(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&_^~y&f)+K[t+2]+b[t+2])<<0,e=((c=n+(e+r)<<0)>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),r=(l=c&h)^c&d^o,f=u+(n=f+(i=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7))+(p&y^~p&_)+K[t+3]+b[t+3])<<0,u=n+(e+r)<<0;this.h0=this.h0+u<<0,this.h1=this.h1+c<<0,this.h2=this.h2+h<<0,this.h3=this.h3+d<<0,this.h4=this.h4+f<<0,this.h5=this.h5+p<<0,this.h6=this.h6+y<<0,this.h7=this.h7+_<<0},Sha256.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,r=this.h3,n=this.h4,s=this.h5,a=this.h6,o=this.h7,l=HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a];return this.is224||(l+=HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,i=this.h2,r=this.h3,n=this.h4,s=this.h5,a=this.h6,o=this.h7,l=[t>>24&255,t>>16&255,t>>8&255,255&t,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n,s>>24&255,s>>16&255,s>>8&255,255&s,a>>24&255,a>>16&255,a>>8&255,255&a];return this.is224||l.push(o>>24&255,o>>16&255,o>>8&255,255&o),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(this.is224?28:32),e=new DataView(t);return e.setUint32(0,this.h0),e.setUint32(4,this.h1),e.setUint32(8,this.h2),e.setUint32(12,this.h3),e.setUint32(16,this.h4),e.setUint32(20,this.h5),e.setUint32(24,this.h6),this.is224||e.setUint32(28,this.h7),t},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(t),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0),COMMON_JS?module.exports=exports:(root.sha256=exports.sha256,root.sha224=exports.sha224,AMD&&define((function(){return exports})))})()})),CI={};mr(CI,{registerWorker:()=>Kp});var th=Df(Qf(),1),{__extends:TI,__assign:DI,__rest:eh,__decorate:EI,__param:kI,__metadata:OI,__awaiter:O,__generator:RI,__exportStar:MI,__createBinding:UI,__values:LI,__read:NI,__spread:PI,__spreadArrays:VI,__spreadArray:HI,__await:it,__asyncGenerator:be,__asyncDelegator:Mr,__asyncValues:Ne,__makeTemplateObject:zI,__importStar:WI,__importDefault:$I,__classPrivateFieldGet:YI,__classPrivateFieldSet:XI,__classPrivateFieldIn:GI}=th.default,wa={};mr(wa,{compareArrayLike:()=>ga,joinUint8Arrays:()=>De,memcpy:()=>Lr,rebaseValueOffsets:()=>wn,toArrayBufferView:()=>rt,toArrayBufferViewAsyncIterator:()=>Je,toArrayBufferViewIterator:()=>ui,toBigInt64Array:()=>Vw,toBigUint64Array:()=>Ww,toFloat32Array:()=>$w,toFloat32ArrayAsyncIterator:()=>aj,toFloat32ArrayIterator:()=>Qw,toFloat64Array:()=>Yw,toFloat64ArrayAsyncIterator:()=>lj,toFloat64ArrayIterator:()=>tj,toInt16Array:()=>Pw,toInt16ArrayAsyncIterator:()=>rj,toInt16ArrayIterator:()=>Kw,toInt32Array:()=>br,toInt32ArrayAsyncIterator:()=>nj,toInt32ArrayIterator:()=>Jw,toInt8Array:()=>Nw,toInt8ArrayAsyncIterator:()=>ij,toInt8ArrayIterator:()=>Gw,toUint16Array:()=>Hw,toUint16ArrayAsyncIterator:()=>sj,toUint16ArrayIterator:()=>qw,toUint32Array:()=>zw,toUint32ArrayAsyncIterator:()=>oj,toUint32ArrayIterator:()=>Zw,toUint8Array:()=>Y,toUint8ArrayAsyncIterator:()=>va,toUint8ArrayIterator:()=>ba,toUint8ClampedArray:()=>Xw,toUint8ClampedArrayAsyncIterator:()=>cj,toUint8ClampedArrayIterator:()=>ej});var Rw=new TextDecoder("utf-8"),bn=t=>Rw.decode(t),Mw=new TextEncoder,Ji=t=>Mw.encode(t),[qI,As]=(()=>{let t=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=()=>{throw t()},e.asUintN=()=>{throw t()},typeof BigInt<"u"?[BigInt,!0]:[e,!1]})(),[vn,ZI]=(()=>{let t=()=>{throw new Error("BigInt64Array is not available in this environment")};return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}},!1]})(),[Ur,QI]=(()=>{let t=()=>{throw new Error("BigUint64Array is not available in this environment")};return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[class{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}},!1]})(),Uw=t=>"number"==typeof t,ih=t=>"boolean"==typeof t,zt=t=>"function"==typeof t,fe=t=>null!=t&&Object(t)===t,Ge=t=>fe(t)&&zt(t.then),Ke=t=>fe(t)&&zt(t[Symbol.iterator]),Pe=t=>fe(t)&&zt(t[Symbol.asyncIterator]),Fs=t=>fe(t)&&fe(t.schema),xs=t=>fe(t)&&"done"in t&&"value"in t,Bs=t=>fe(t)&&zt(t.stat)&&Uw(t.fd),Ts=t=>fe(t)&&gn(t.body),Ds=t=>"_getDOMStream"in t&&"_getNodeStream"in t,rh=t=>fe(t)&&zt(t.abort)&&zt(t.getWriter)&&!Ds(t),gn=t=>fe(t)&&zt(t.cancel)&&zt(t.getReader)&&!Ds(t),nh=t=>fe(t)&&zt(t.end)&&zt(t.write)&&ih(t.writable)&&!Ds(t),Es=t=>fe(t)&&zt(t.read)&&zt(t.pipe)&&ih(t.readable)&&!Ds(t),sh=t=>fe(t)&&zt(t.clear)&&zt(t.bytes)&&zt(t.position)&&zt(t.setPosition)&&zt(t.capacity)&&zt(t.getBufferIdentifier)&&zt(t.createLong),ma=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function Lw(t){let e,i,r,n,s=t[0]?[t[0]]:[];for(let a,o,l=0,u=0,c=t.length;++lt+e.byteLength),0),o=0,l=-1,u=Math.min(e||Number.POSITIVE_INFINITY,a);for(let t=s.length;++lrt(Int8Array,t),Pw=t=>rt(Int16Array,t),br=t=>rt(Int32Array,t),Vw=t=>rt(vn,t),Y=t=>rt(Uint8Array,t),Hw=t=>rt(Uint16Array,t),zw=t=>rt(Uint32Array,t),Ww=t=>rt(Ur,t),$w=t=>rt(Float32Array,t),Yw=t=>rt(Float64Array,t),Xw=t=>rt(Uint8ClampedArray,t),_a=t=>(t.next(),t);function*ui(t,e){let i=function*(t){yield t},r="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof ma?i(e):Ke(e)?e:i(e);return yield*_a(function*(e){let i=null;do{i=e.next(yield rt(t,i))}while(!i.done)}(r[Symbol.iterator]())),new t}var Gw=t=>ui(Int8Array,t),Kw=t=>ui(Int16Array,t),Jw=t=>ui(Int32Array,t),ba=t=>ui(Uint8Array,t),qw=t=>ui(Uint16Array,t),Zw=t=>ui(Uint32Array,t),Qw=t=>ui(Float32Array,t),tj=t=>ui(Float64Array,t),ej=t=>ui(Uint8ClampedArray,t);function Je(t,e){return be(this,arguments,(function*(){if(Ge(e))return yield it(yield it(yield*Mr(Ne(Je(t,yield it(e))))));let i=function(t){return be(this,arguments,(function*(){yield yield it(yield it(t))}))},r="string"==typeof e||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof ma?i(e):Ke(e)?function(t){return be(this,arguments,(function*(){yield it(yield*Mr(Ne(_a(function*(t){let e=null;do{e=t.next(yield null==e?void 0:e.value)}while(!e.done)}(t[Symbol.iterator]())))))}))}(e):Pe(e)?e:i(e);return yield it(yield*Mr(Ne(_a(function(e){return be(this,arguments,(function*(){let i=null;do{i=yield it(e.next(yield yield it(rt(t,i))))}while(!i.done)}))}(r[Symbol.asyncIterator]()))))),yield it(new t)}))}var ij=t=>Je(Int8Array,t),rj=t=>Je(Int16Array,t),nj=t=>Je(Int32Array,t),va=t=>Je(Uint8Array,t),sj=t=>Je(Uint16Array,t),oj=t=>Je(Uint32Array,t),aj=t=>Je(Float32Array,t),lj=t=>Je(Float64Array,t),cj=t=>Je(Uint8ClampedArray,t);function wn(t,e,i){if(0!==t){i=i.slice(0,e+1);for(let r=-1;++r<=e;)i[r]+=t}return i}function ga(t,e){let i=0,r=t.length;if(r!==e.length)return!1;if(r>0)do{if(t[i]!==e[i])return!1}while(++iks(uj(t)),fromAsyncIterable:t=>ks(dj(t)),fromDOMStream:t=>ks(fj(t)),fromNodeStream:t=>ks(hj(t)),toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},ks=t=>(t.next(),t);function*uj(t){let e,i,r,n,s=!1,a=[],o=0;({cmd:r,size:n}=yield null);let l=ba(t)[Symbol.iterator]();try{do{if(({done:e,value:i}=Number.isNaN(n-o)?l.next():l.next(n-o)),!e&&i.byteLength>0&&(a.push(i),o+=i.byteLength),e||n<=o)do{({cmd:r,size:n}=yield"peek"===r?De(a,n)[0]:([i,a,o]=De(a,n),i))}while(n0&&(a.push(i),o+=i.byteLength),e||n<=o)do{({cmd:r,size:n}=yield yield it("peek"===r?De(a,n)[0]:([i,a,o]=De(a,n),i)))}while(n0&&(a.push(Y(e)),o+=e.byteLength),n||r<=o)do{({cmd:i,size:r}=yield yield it("peek"===i?De(a,r)[0]:([e,a,o]=De(a,r),e)))}while(r{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(t){return O(this,void 0,void 0,(function*(){let{reader:e,source:i}=this;e&&(yield e.cancel(t).catch((()=>{}))),i&&i.locked&&this.releaseLock()}))}read(t){return O(this,void 0,void 0,(function*(){if(0===t)return{done:null==this.reader,value:new Uint8Array(0)};let e=yield this.reader.read();return!e.done&&(e.value=Y(e)),e}))}},ja=(t,e)=>{let i,r=t=>i([e,t]);return[e,r,new Promise((n=>(i=n)&&t.once(e,r)))]},Yt,Dt,xt,ee,st,he,ft,C,Ve;function hj(t){return be(this,arguments,(function*(){let e,i,r,n=[],s="error",a=!1,o=null,l=0,u=[];if(({cmd:e,size:i}=yield yield it(null)),t.isTTY)return yield yield it(new Uint8Array(0)),yield it(null);try{n[0]=ja(t,"end"),n[1]=ja(t,"error");do{if(n[2]=ja(t,"readable"),[s,o]=yield it(Promise.race(n.map((t=>t[2])))),"error"===s)break;if((a="end"===s)||(Number.isFinite(i-l)?(r=Y(t.read(i-l)),r.byteLength0&&(u.push(r),l+=r.byteLength)),a||i<=l)do{({cmd:e,size:i}=yield yield it("peek"===e?De(u,i)[0]:([r,u,l]=De(u,i),r)))}while(i{for(let[e,i]of c)t.off(e,i);try{let r=t.destroy;r&&r.call(t,h),h=void 0}catch(t){h=t||h}finally{null!=h?i(h):e()}}))))}var c,h;return yield it(null)}))}!function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"}(Yt||(Yt={})),function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"}(Dt||(Dt={})),function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"}(xt||(xt={})),function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"}(ee||(ee={})),function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"}(st||(st={})),function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(he||(he={})),function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(ft||(ft={})),function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"}(C||(C={})),function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"}(Ve||(Ve={}));var Pa={};function qe(t){if(null===t)return"null";if(void 0===t)return"undefined";switch(typeof t){case"number":case"bigint":return`${t}`;case"string":return`"${t}"`}return"function"==typeof t[Symbol.toPrimitive]?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof BigInt64Array||t instanceof BigUint64Array?`[${[...t].map((t=>qe(t)))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,((t,e)=>"bigint"==typeof e?`${e}`:e))}mr(Pa,{clampIndex:()=>rS,clampRange:()=>In,createElementComparator:()=>tr});var Ca={};mr(Ca,{BN:()=>vr,bignumToBigInt:()=>Os,bignumToString:()=>qi,isArrowBigNumSymbol:()=>oh});var oh=Symbol.for("isArrowBigNum"),qi,Os;function Ze(t,...e){return 0===e.length?Object.setPrototypeOf(rt(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}function Nr(...t){return Ze.apply(this,t)}function Pr(...t){return Ze.apply(this,t)}function jn(...t){return Ze.apply(this,t)}function ah(t){let{buffer:e,byteOffset:i,length:r,signed:n}=t,s=new Ur(e,i,r),a=n&&s[s.length-1]&BigInt(1)<8===t.byteLength?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:Ia(t),qi=t=>8===t.byteLength?`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`:Ia(t)):(qi=Ia,Os=qi);var vr=class{static new(t,e){switch(e){case!0:return new Nr(t);case!1:return new Pr(t)}switch(t.constructor){case Int8Array:case Int16Array:case Int32Array:case vn:return new Nr(t)}return 16===t.byteLength?new jn(t):new Pr(t)}static signed(t){return new Nr(t)}static unsigned(t){return new Pr(t)}static decimal(t){return new jn(t)}constructor(t,e){return vr.new(t,e)}},lh,ch,uh,dh,fh,hh,ph,yh,_h,mh,bh,vh,gh,wh,jh,Sh,Ih,Ch,Ah,L=class{static isNull(t){return(null==t?void 0:t.typeId)===C.Null}static isInt(t){return(null==t?void 0:t.typeId)===C.Int}static isFloat(t){return(null==t?void 0:t.typeId)===C.Float}static isBinary(t){return(null==t?void 0:t.typeId)===C.Binary}static isUtf8(t){return(null==t?void 0:t.typeId)===C.Utf8}static isBool(t){return(null==t?void 0:t.typeId)===C.Bool}static isDecimal(t){return(null==t?void 0:t.typeId)===C.Decimal}static isDate(t){return(null==t?void 0:t.typeId)===C.Date}static isTime(t){return(null==t?void 0:t.typeId)===C.Time}static isTimestamp(t){return(null==t?void 0:t.typeId)===C.Timestamp}static isInterval(t){return(null==t?void 0:t.typeId)===C.Interval}static isList(t){return(null==t?void 0:t.typeId)===C.List}static isStruct(t){return(null==t?void 0:t.typeId)===C.Struct}static isUnion(t){return(null==t?void 0:t.typeId)===C.Union}static isFixedSizeBinary(t){return(null==t?void 0:t.typeId)===C.FixedSizeBinary}static isFixedSizeList(t){return(null==t?void 0:t.typeId)===C.FixedSizeList}static isMap(t){return(null==t?void 0:t.typeId)===C.Map}static isDictionary(t){return(null==t?void 0:t.typeId)===C.Dictionary}static isDenseUnion(t){return L.isUnion(t)&&t.mode===Dt.Dense}static isSparseUnion(t){return L.isUnion(t)&&t.mode===Dt.Sparse}get typeId(){return C.NONE}};lh=Symbol.toStringTag,L[lh]=(t=>(t.children=null,t.ArrayType=Array,t[Symbol.toStringTag]="DataType"))(L.prototype);var pe=class extends L{toString(){return"Null"}get typeId(){return C.Null}};ch=Symbol.toStringTag,pe[ch]=(t=>t[Symbol.toStringTag]="Null")(pe.prototype);var Mt=class extends L{constructor(t,e){super(),this.isSigned=t,this.bitWidth=e}get typeId(){return C.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}};uh=Symbol.toStringTag,Mt[uh]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(Mt.prototype);var Rs=class extends Mt{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},Ms=class extends Mt{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},di=class extends Mt{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},Us=class extends Mt{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},Ls=class extends Mt{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Ns=class extends Mt{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Ps=class extends Mt{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Vs=class extends Mt{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Rs.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(Ms.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(di.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(Us.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(Ls.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(Ns.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Ps.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Vs.prototype,"ArrayType",{value:BigUint64Array});var ve=class extends L{constructor(t){super(),this.precision=t}get typeId(){return C.Float}get ArrayType(){switch(this.precision){case xt.HALF:return Uint16Array;case xt.SINGLE:return Float32Array;case xt.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}};dh=Symbol.toStringTag,ve[dh]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(ve.prototype);var Hs=class extends ve{constructor(){super(xt.HALF)}},zs=class extends ve{constructor(){super(xt.SINGLE)}},Ws=class extends ve{constructor(){super(xt.DOUBLE)}};Object.defineProperty(Hs.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(zs.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(Ws.prototype,"ArrayType",{value:Float64Array});var Bi=class extends L{constructor(){super()}get typeId(){return C.Binary}toString(){return"Binary"}};fh=Symbol.toStringTag,Bi[fh]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Bi.prototype);var Ti=class extends L{constructor(){super()}get typeId(){return C.Utf8}toString(){return"Utf8"}};hh=Symbol.toStringTag,Ti[hh]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(Ti.prototype);var Di=class extends L{constructor(){super()}get typeId(){return C.Bool}toString(){return"Bool"}};ph=Symbol.toStringTag,Di[ph]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(Di.prototype);var Ei=class extends L{constructor(t,e,i=128){super(),this.scale=t,this.precision=e,this.bitWidth=i}get typeId(){return C.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};yh=Symbol.toStringTag,Ei[yh]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(Ei.prototype);var ki=class extends L{constructor(t){super(),this.unit=t}get typeId(){return C.Date}toString(){return`Date${32*(this.unit+1)}<${ee[this.unit]}>`}};_h=Symbol.toStringTag,ki[_h]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(ki.prototype);var Qe=class extends L{constructor(t,e){super(),this.unit=t,this.bitWidth=e}get typeId(){return C.Time}toString(){return`Time${this.bitWidth}<${st[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}};mh=Symbol.toStringTag,Qe[mh]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(Qe.prototype);var Oi=class extends L{constructor(t,e){super(),this.unit=t,this.timezone=e}get typeId(){return C.Timestamp}toString(){return`Timestamp<${st[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}};bh=Symbol.toStringTag,Oi[bh]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(Oi.prototype);var Ri=class extends L{constructor(t){super(),this.unit=t}get typeId(){return C.Interval}toString(){return`Interval<${he[this.unit]}>`}};vh=Symbol.toStringTag,Ri[vh]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(Ri.prototype);var ti=class extends L{constructor(t){super(),this.children=[t]}get typeId(){return C.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};gh=Symbol.toStringTag,ti[gh]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(ti.prototype);var St=class extends L{constructor(t){super(),this.children=t}get typeId(){return C.Struct}toString(){return`Struct<{${this.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}};wh=Symbol.toStringTag,St[wh]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(St.prototype);var ei=class extends L{constructor(t,e,i){super(),this.mode=t,this.children=i,this.typeIds=e=Int32Array.from(e),this.typeIdToChildIndex=e.reduce(((t,e,i)=>(t[e]=i)&&t||t),Object.create(null))}get typeId(){return C.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map((t=>`${t.type}`)).join(" | ")}>`}};jh=Symbol.toStringTag,ei[jh]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(ei.prototype);var Mi=class extends L{constructor(t){super(),this.byteWidth=t}get typeId(){return C.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};Sh=Symbol.toStringTag,Mi[Sh]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(Mi.prototype);var ii=class extends L{constructor(t,e){super(),this.listSize=t,this.children=[e]}get typeId(){return C.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};Ih=Symbol.toStringTag,ii[Ih]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(ii.prototype);var ri=class extends L{constructor(t,e=!1){super(),this.children=[t],this.keysSorted=e}get typeId(){return C.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map((t=>`${t.name}:${t.type}`)).join(", ")}}>`}};Ch=Symbol.toStringTag,ri[Ch]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(ri.prototype);var pj=(t=>()=>++t)(-1),Ee=class extends L{constructor(t,e,i,r){super(),this.indices=e,this.dictionary=t,this.isOrdered=r||!1,this.id=null==i?pj():"number"==typeof i?i:i.low}get typeId(){return C.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}};function ke(t){let e=t;switch(t.typeId){case C.Decimal:return t.bitWidth/32;case C.Timestamp:return 2;case C.Date:case C.Interval:return 1+e.unit;case C.FixedSizeList:return e.listSize;case C.FixedSizeBinary:return e.byteWidth;default:return 1}}Ah=Symbol.toStringTag,Ee[Ah]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(Ee.prototype);var P=class{visitMany(t,...e){return t.map(((t,i)=>this.visit(t,...e.map((t=>t[i])))))}visit(...t){return this.getVisitFn(t[0],!1).apply(this,t)}getVisitFn(t,e=!0){return yj(this,t,e)}getVisitFnByTypeId(t,e=!0){return Vr(this,t,e)}visitNull(t,...e){return null}visitBool(t,...e){return null}visitInt(t,...e){return null}visitFloat(t,...e){return null}visitUtf8(t,...e){return null}visitBinary(t,...e){return null}visitFixedSizeBinary(t,...e){return null}visitDate(t,...e){return null}visitTimestamp(t,...e){return null}visitTime(t,...e){return null}visitDecimal(t,...e){return null}visitList(t,...e){return null}visitStruct(t,...e){return null}visitUnion(t,...e){return null}visitDictionary(t,...e){return null}visitInterval(t,...e){return null}visitFixedSizeList(t,...e){return null}visitMap(t,...e){return null}};function yj(t,e,i=!0){return"number"==typeof e?Vr(t,e,i):"string"==typeof e&&e in C?Vr(t,C[e],i):e&&e instanceof L?Vr(t,Fh(e),i):(null==e?void 0:e.type)&&e.type instanceof L?Vr(t,Fh(e.type),i):Vr(t,C.NONE,i)}function Vr(t,e,i=!0){let r=null;switch(e){case C.Null:r=t.visitNull;break;case C.Bool:r=t.visitBool;break;case C.Int:r=t.visitInt;break;case C.Int8:r=t.visitInt8||t.visitInt;break;case C.Int16:r=t.visitInt16||t.visitInt;break;case C.Int32:r=t.visitInt32||t.visitInt;break;case C.Int64:r=t.visitInt64||t.visitInt;break;case C.Uint8:r=t.visitUint8||t.visitInt;break;case C.Uint16:r=t.visitUint16||t.visitInt;break;case C.Uint32:r=t.visitUint32||t.visitInt;break;case C.Uint64:r=t.visitUint64||t.visitInt;break;case C.Float:r=t.visitFloat;break;case C.Float16:r=t.visitFloat16||t.visitFloat;break;case C.Float32:r=t.visitFloat32||t.visitFloat;break;case C.Float64:r=t.visitFloat64||t.visitFloat;break;case C.Utf8:r=t.visitUtf8;break;case C.Binary:r=t.visitBinary;break;case C.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case C.Date:r=t.visitDate;break;case C.DateDay:r=t.visitDateDay||t.visitDate;break;case C.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case C.Timestamp:r=t.visitTimestamp;break;case C.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case C.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case C.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case C.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case C.Time:r=t.visitTime;break;case C.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case C.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case C.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case C.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case C.Decimal:r=t.visitDecimal;break;case C.List:r=t.visitList;break;case C.Struct:r=t.visitStruct;break;case C.Union:r=t.visitUnion;break;case C.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case C.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case C.Dictionary:r=t.visitDictionary;break;case C.Interval:r=t.visitInterval;break;case C.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case C.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case C.FixedSizeList:r=t.visitFixedSizeList;break;case C.Map:r=t.visitMap}if("function"==typeof r)return r;if(!i)return()=>null;throw new Error(`Unrecognized type '${C[e]}'`)}function Fh(t){switch(t.typeId){case C.Null:return C.Null;case C.Int:{let{bitWidth:e,isSigned:i}=t;switch(e){case 8:return i?C.Int8:C.Uint8;case 16:return i?C.Int16:C.Uint16;case 32:return i?C.Int32:C.Uint32;case 64:return i?C.Int64:C.Uint64}return C.Int}case C.Float:switch(t.precision){case xt.HALF:return C.Float16;case xt.SINGLE:return C.Float32;case xt.DOUBLE:return C.Float64}return C.Float;case C.Binary:return C.Binary;case C.Utf8:return C.Utf8;case C.Bool:return C.Bool;case C.Decimal:return C.Decimal;case C.Time:switch(t.unit){case st.SECOND:return C.TimeSecond;case st.MILLISECOND:return C.TimeMillisecond;case st.MICROSECOND:return C.TimeMicrosecond;case st.NANOSECOND:return C.TimeNanosecond}return C.Time;case C.Timestamp:switch(t.unit){case st.SECOND:return C.TimestampSecond;case st.MILLISECOND:return C.TimestampMillisecond;case st.MICROSECOND:return C.TimestampMicrosecond;case st.NANOSECOND:return C.TimestampNanosecond}return C.Timestamp;case C.Date:switch(t.unit){case ee.DAY:return C.DateDay;case ee.MILLISECOND:return C.DateMillisecond}return C.Date;case C.Interval:switch(t.unit){case he.DAY_TIME:return C.IntervalDayTime;case he.YEAR_MONTH:return C.IntervalYearMonth}return C.Interval;case C.Map:return C.Map;case C.List:return C.List;case C.Struct:return C.Struct;case C.Union:switch(t.mode){case Dt.Dense:return C.DenseUnion;case Dt.Sparse:return C.SparseUnion}return C.Union;case C.FixedSizeBinary:return C.FixedSizeBinary;case C.FixedSizeList:return C.FixedSizeList;case C.Dictionary:return C.Dictionary}throw new Error(`Unrecognized type '${C[t.typeId]}'`)}P.prototype.visitInt8=null,P.prototype.visitInt16=null,P.prototype.visitInt32=null,P.prototype.visitInt64=null,P.prototype.visitUint8=null,P.prototype.visitUint16=null,P.prototype.visitUint32=null,P.prototype.visitUint64=null,P.prototype.visitFloat16=null,P.prototype.visitFloat32=null,P.prototype.visitFloat64=null,P.prototype.visitDateDay=null,P.prototype.visitDateMillisecond=null,P.prototype.visitTimestampSecond=null,P.prototype.visitTimestampMillisecond=null,P.prototype.visitTimestampMicrosecond=null,P.prototype.visitTimestampNanosecond=null,P.prototype.visitTimeSecond=null,P.prototype.visitTimeMillisecond=null,P.prototype.visitTimeMicrosecond=null,P.prototype.visitTimeNanosecond=null,P.prototype.visitDenseUnion=null,P.prototype.visitSparseUnion=null,P.prototype.visitIntervalDayTime=null,P.prototype.visitIntervalYearMonth=null;var Aa={};mr(Aa,{float64ToUint16:()=>Sn,uint16ToFloat64:()=>$s});var xh=new Float64Array(1),Hr=new Uint32Array(xh.buffer);function $s(t){let e=(31744&t)>>10,i=(1023&t)/1024,r=Math.pow(-1,(32768&t)>>15);switch(e){case 31:return r*(i?Number.NaN:1/0);case 0:return r*(i?6103515625e-14*i:0)}return r*Math.pow(2,e-15)*(1+i)}function Sn(t){if(t!=t)return 32256;xh[0]=t;let e=(2147483648&Hr[1])>>16&65535,i=2146435072&Hr[1],r=0;return i>=1089470464?Hr[0]>0?i=31744:(i=(2080374784&i)>>16,r=(1048575&Hr[1])>>10):i<=1056964608?(r=1048576+(1048575&Hr[1]),r=1048576+(r<<(i>>20)-998)>>21,i=0):(i=i-1056964608>>10,r=512+(1048575&Hr[1])>>10),e|i|65535&r}var X=class extends P{};function et(t){return(e,i,r)=>{if(e.setValid(i,null!=r))return t(e,i,r)}}var _j=(t,e,i)=>{t[e]=Math.trunc(i/864e5)},Fa=(t,e,i)=>{t[e]=Math.trunc(i%4294967296),t[e+1]=Math.trunc(i/4294967296)},mj=(t,e,i)=>{t[e]=Math.trunc(1e3*i%4294967296),t[e+1]=Math.trunc(1e3*i/4294967296)},bj=(t,e,i)=>{t[e]=Math.trunc(1e6*i%4294967296),t[e+1]=Math.trunc(1e6*i/4294967296)},Bh=(t,e,i,r)=>{if(i+1{let n=t+i;r?e[n>>3]|=1<>3]&=~(1<{t[e]=i},xa=({values:t},e,i)=>{t[e]=i},Th=({values:t},e,i)=>{t[e]=Sn(i)},gj=(t,e,i)=>{switch(t.type.precision){case xt.HALF:return Th(t,e,i);case xt.SINGLE:case xt.DOUBLE:return xa(t,e,i)}},Ys=({values:t},e,i)=>{_j(t,e,i.valueOf())},Xs=({values:t},e,i)=>{Fa(t,2*e,i.valueOf())},Ba=({stride:t,values:e},i,r)=>{e.set(r.subarray(0,t),t*i)},wj=({values:t,valueOffsets:e},i,r)=>Bh(t,e,i,r),jj=({values:t,valueOffsets:e},i,r)=>{Bh(t,e,i,Ji(r))},Ta=(t,e,i)=>{t.type.unit===ee.DAY?Ys(t,e,i):Xs(t,e,i)},Gs=({values:t},e,i)=>Fa(t,2*e,i/1e3),Ks=({values:t},e,i)=>Fa(t,2*e,i),Js=({values:t},e,i)=>mj(t,2*e,i),qs=({values:t},e,i)=>bj(t,2*e,i),Da=(t,e,i)=>{switch(t.type.unit){case st.SECOND:return Gs(t,e,i);case st.MILLISECOND:return Ks(t,e,i);case st.MICROSECOND:return Js(t,e,i);case st.NANOSECOND:return qs(t,e,i)}},Zs=({values:t},e,i)=>{t[e]=i},Qs=({values:t},e,i)=>{t[e]=i},to=({values:t},e,i)=>{t[e]=i},eo=({values:t},e,i)=>{t[e]=i},Ea=(t,e,i)=>{switch(t.type.unit){case st.SECOND:return Zs(t,e,i);case st.MILLISECOND:return Qs(t,e,i);case st.MICROSECOND:return to(t,e,i);case st.NANOSECOND:return eo(t,e,i)}},ka=({values:t,stride:e},i,r)=>{t.set(r.subarray(0,e),e*i)},Sj=(t,e,i)=>{let r=t.children[0],n=t.valueOffsets,s=ie.getVisitFn(r);if(Array.isArray(i))for(let t=-1,a=n[e],o=n[e+1];a{let r=t.children[0],{valueOffsets:n}=t,s=ie.getVisitFn(r),{[e]:a,[e+1]:o}=n,l=i instanceof Map?i.entries():Object.entries(i);for(let t of l)if(s(r,a,t),++a>=o)break},Cj=(t,e)=>(i,r,n,s)=>r&&i(r,t,e[s]),Aj=(t,e)=>(i,r,n,s)=>r&&i(r,t,e.get(s)),Fj=(t,e)=>(i,r,n,s)=>r&&i(r,t,e.get(n.name)),xj=(t,e)=>(i,r,n,s)=>r&&i(r,t,e[n.name]),Bj=(t,e,i)=>{let r=t.type.children.map((t=>ie.getVisitFn(t.type))),n=i instanceof Map?Fj(e,i):i instanceof G?Aj(e,i):Array.isArray(i)?Cj(e,i):xj(e,i);t.type.children.forEach(((e,i)=>n(r[i],t.children[i],e,i)))},Tj=(t,e,i)=>{t.type.mode===Dt.Dense?Dh(t,e,i):Eh(t,e,i)},Dh=(t,e,i)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[r];ie.visit(n,t.valueOffsets[e],i)},Eh=(t,e,i)=>{let r=t.type.typeIdToChildIndex[t.typeIds[e]],n=t.children[r];ie.visit(n,e,i)},Dj=(t,e,i)=>{var r;null===(r=t.dictionary)||void 0===r||r.set(t.values[e],i)},Oa=(t,e,i)=>{t.type.unit===he.DAY_TIME?io(t,e,i):ro(t,e,i)},io=({values:t},e,i)=>{t.set(i.subarray(0,2),2*e)},ro=({values:t},e,i)=>{t[e]=12*i[0]+i[1]%12},Ej=(t,e,i)=>{let{stride:r}=t,n=t.children[0],s=ie.getVisitFn(n);if(Array.isArray(i))for(let t=-1,a=e*r;++t`${qe(t)}: ${qe(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Ra(this[ni],this[zr])}},Ra=class{constructor(t,e){this.childIndex=0,this.children=t.children,this.rowIndex=e,this.childFields=t.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let t=this.childIndex;return tt.name))}has(t,e){return-1!==t[ni].type.children.findIndex((t=>t.name===e))}getOwnPropertyDescriptor(t,e){if(-1!==t[ni].type.children.findIndex((t=>t.name===e)))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let i=t[ni].type.children.findIndex((t=>t.name===e));if(-1!==i){let r=Nt.visit(t[ni].children[i],t[zr]);return Reflect.set(t,e,r),r}}set(t,e,i){let r=t[ni].type.children.findIndex((t=>t.name===e));return-1!==r?(ie.visit(t[ni].children[r],t[zr],i),Reflect.set(t,e,i)):!(!Reflect.has(t,e)&&"symbol"!=typeof e)&&Reflect.set(t,e,i)}},V=class extends P{};function q(t){return(e,i)=>e.getValid(i)?t(e,i):null}var kj=(t,e)=>864e5*t[e],Ua=(t,e)=>4294967296*t[e+1]+(t[e]>>>0),Oj=(t,e)=>t[e+1]/1e3*4294967296+(t[e]>>>0)/1e3,Rj=(t,e)=>t[e+1]/1e6*4294967296+(t[e]>>>0)/1e6,kh=t=>new Date(t),Mj=(t,e)=>kh(kj(t,e)),Uj=(t,e)=>kh(Ua(t,e)),Lj=(t,e)=>null,Oh=(t,e,i)=>{if(i+1>=e.length)return null;let r=e[i],n=e[i+1];return t.subarray(r,n)},Nj=({offset:t,values:e},i)=>{let r=t+i;return 0!=(e[r>>3]&1<Mj(t,e),Mh=({values:t},e)=>Uj(t,2*e),Qi=({stride:t,values:e},i)=>e[t*i],Pj=({stride:t,values:e},i)=>$s(e[t*i]),Uh=({values:t},e)=>t[e],Vj=({stride:t,values:e},i)=>e.subarray(t*i,t*(i+1)),Hj=({values:t,valueOffsets:e},i)=>Oh(t,e,i),zj=({values:t,valueOffsets:e},i)=>{let r=Oh(t,e,i);return null!==r?bn(r):null},Wj=({values:t},e)=>t[e],$j=({type:t,values:e},i)=>t.precision!==xt.HALF?e[i]:$s(e[i]),Yj=(t,e)=>t.type.unit===ee.DAY?Rh(t,e):Mh(t,e),Lh=({values:t},e)=>1e3*Ua(t,2*e),Nh=({values:t},e)=>Ua(t,2*e),Ph=({values:t},e)=>Oj(t,2*e),Vh=({values:t},e)=>Rj(t,2*e),Xj=(t,e)=>{switch(t.type.unit){case st.SECOND:return Lh(t,e);case st.MILLISECOND:return Nh(t,e);case st.MICROSECOND:return Ph(t,e);case st.NANOSECOND:return Vh(t,e)}},Hh=({values:t},e)=>t[e],zh=({values:t},e)=>t[e],Wh=({values:t},e)=>t[e],$h=({values:t},e)=>t[e],Gj=(t,e)=>{switch(t.type.unit){case st.SECOND:return Hh(t,e);case st.MILLISECOND:return zh(t,e);case st.MICROSECOND:return Wh(t,e);case st.NANOSECOND:return $h(t,e)}},Kj=({values:t,stride:e},i)=>vr.decimal(t.subarray(e*i,e*(i+1))),Jj=(t,e)=>{let{valueOffsets:i,stride:r,children:n}=t,{[e*r]:s,[e*r+1]:a}=i,o=n[0].slice(s,a-s);return new G([o])},qj=(t,e)=>{let{valueOffsets:i,children:r}=t,{[e]:n,[e+1]:s}=i,a=r[0];return new fi(a.slice(n,s-n))},Zj=(t,e)=>new Zi(t,e),Qj=(t,e)=>t.type.mode===Dt.Dense?Yh(t,e):Xh(t,e),Yh=(t,e)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[i];return Nt.visit(r,t.valueOffsets[e])},Xh=(t,e)=>{let i=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[i];return Nt.visit(r,e)},tS=(t,e)=>{var i;return null===(i=t.dictionary)||void 0===i?void 0:i.get(t.values[e])},eS=(t,e)=>t.type.unit===he.DAY_TIME?Gh(t,e):Kh(t,e),Gh=({values:t},e)=>t.subarray(2*e,2*(e+1)),Kh=({values:t},e)=>{let i=t[e],r=new Int32Array(2);return r[0]=Math.trunc(i/12),r[1]=Math.trunc(i%12),r},iS=(t,e)=>{let{stride:i,children:r}=t,n=r[0].slice(e*i,i);return new G([n])};V.prototype.visitNull=q(Lj),V.prototype.visitBool=q(Nj),V.prototype.visitInt=q(Wj),V.prototype.visitInt8=q(Qi),V.prototype.visitInt16=q(Qi),V.prototype.visitInt32=q(Qi),V.prototype.visitInt64=q(Uh),V.prototype.visitUint8=q(Qi),V.prototype.visitUint16=q(Qi),V.prototype.visitUint32=q(Qi),V.prototype.visitUint64=q(Uh),V.prototype.visitFloat=q($j),V.prototype.visitFloat16=q(Pj),V.prototype.visitFloat32=q(Qi),V.prototype.visitFloat64=q(Qi),V.prototype.visitUtf8=q(zj),V.prototype.visitBinary=q(Hj),V.prototype.visitFixedSizeBinary=q(Vj),V.prototype.visitDate=q(Yj),V.prototype.visitDateDay=q(Rh),V.prototype.visitDateMillisecond=q(Mh),V.prototype.visitTimestamp=q(Xj),V.prototype.visitTimestampSecond=q(Lh),V.prototype.visitTimestampMillisecond=q(Nh),V.prototype.visitTimestampMicrosecond=q(Ph),V.prototype.visitTimestampNanosecond=q(Vh),V.prototype.visitTime=q(Gj),V.prototype.visitTimeSecond=q(Hh),V.prototype.visitTimeMillisecond=q(zh),V.prototype.visitTimeMicrosecond=q(Wh),V.prototype.visitTimeNanosecond=q($h),V.prototype.visitDecimal=q(Kj),V.prototype.visitList=q(Jj),V.prototype.visitStruct=q(Zj),V.prototype.visitUnion=q(Qj),V.prototype.visitDenseUnion=q(Yh),V.prototype.visitSparseUnion=q(Xh),V.prototype.visitDictionary=q(tS),V.prototype.visitInterval=q(eS),V.prototype.visitIntervalDayTime=q(Gh),V.prototype.visitIntervalYearMonth=q(Kh),V.prototype.visitFixedSizeList=q(iS),V.prototype.visitMap=q(qj);var Nt=new V,He=Symbol.for("keys"),Wr=Symbol.for("vals"),fi=class{constructor(t){return this[He]=new G([t.children[0]]).memoize(),this[Wr]=t.children[1],new Proxy(this,new Na)}[Symbol.iterator](){return new La(this[He],this[Wr])}get size(){return this[He].length}toArray(){return Object.values(this.toJSON())}toJSON(){let t=this[He],e=this[Wr],i={};for(let r=-1,n=t.length;++r`${qe(t)}: ${qe(e)}`)).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},La=class{constructor(t,e){this.keys=t,this.vals=e,this.keyIndex=0,this.numKeys=t.length}[Symbol.iterator](){return this}next(){let t=this.keyIndex;return t===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(t),Nt.visit(this.vals,t)]})}},Na=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(t){return t[He].toArray().map(String)}has(t,e){return t[He].includes(e)}getOwnPropertyDescriptor(t,e){if(-1!==t[He].indexOf(e))return{writable:!0,enumerable:!0,configurable:!0}}get(t,e){if(Reflect.has(t,e))return t[e];let i=t[He].indexOf(e);if(-1!==i){let r=Nt.visit(Reflect.get(t,Wr),i);return Reflect.set(t,e,r),r}}set(t,e,i){let r=t[He].indexOf(e);return-1!==r?(ie.visit(Reflect.get(t,Wr),r,i),Reflect.set(t,e,i)):!!Reflect.has(t,e)&&Reflect.set(t,e,i)}},Jh;function rS(t,e,i){let r=t.length,n=e>-1?e:r+e%r;return i?i(t,n):n}function In(t,e,i,r){let{length:n=0}=t,s="number"!=typeof e?0:e,a="number"!=typeof i?n:i;return s<0&&(s=(s%n+n)%n),a<0&&(a=(a%n+n)%n),an&&(a=n),r?r(t,s,a):[s,a]}Object.defineProperties(fi.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[He]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Wr]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var qh=t=>t!=t;function tr(t){if("object"!=typeof t||null===t)return qh(t)?qh:e=>e===t;if(t instanceof Date){let e=t.valueOf();return t=>t instanceof Date&&t.valueOf()===e}return ArrayBuffer.isView(t)?e=>!!e&&ga(t,e):t instanceof Map?sS(t):Array.isArray(t)?nS(t):t instanceof G?oS(t):aS(t,!0)}function nS(t){let e=[];for(let i=-1,r=t.length;++i!1;let r=[];for(let e=-1,n=i.length;++e{if(!i||"object"!=typeof i)return!1;switch(i.constructor){case Array:return lS(t,i);case Map:return Zh(t,i,i.keys());case fi:case Zi:case Object:case void 0:return Zh(t,i,e||Object.keys(i))}return i instanceof G&&cS(t,i)}}function lS(t,e){let i=t.length;if(e.length!==i)return!1;for(let r=-1;++r>r}function uS(t,e,i){return i?!!(t[e>>3]|=1<>3]&=~(1<0||i.byteLength>3):wr(new gr(i,t,e,null,oo)).subarray(0,r)),n}return i}function wr(t){let e=[],i=0,r=0,n=0;for(let s of t)s&&(n|=1<0)&&(e[i++]=n);let s=new Uint8Array(e.length+7&-8);return s.set(e),s}mr(Va,{BitIterator:()=>gr,getBit:()=>Qh,getBool:()=>oo,packBools:()=>wr,popcnt_array:()=>tp,popcnt_bit_range:()=>Cn,popcnt_uint32:()=>so,setBool:()=>uS,truncateBitmap:()=>$r});var gr=class{constructor(t,e,i,r,n){this.bytes=t,this.length=i,this.context=r,this.get=n,this.bit=e%8,this.byteIndex=e>>3,this.byte=t[this.byteIndex++],this.index=0}next(){return this.index>3<<3,n=e+(e%8==0?0:8-e%8);return Cn(t,e,n)+Cn(t,r,i)+tp(t,n>>3,r-n>>3)}function tp(t,e,i){let r=0,n=Math.trunc(e),s=new DataView(t.buffer,t.byteOffset,t.byteLength),a=void 0===i?t.byteLength:n+i;for(;a-n>=4;)r+=so(s.getUint32(n)),n+=4;for(;a-n>=2;)r+=so(s.getUint16(n)),n+=2;for(;a-n>=1;)r+=so(s.getUint8(n)),n+=1;return r}function so(t){let e=Math.trunc(t);return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24}var dS=-1,ht=class{constructor(t,e,i,r,n,s=[],a){let o;this.type=t,this.children=s,this.dictionary=a,this.offset=Math.floor(Math.max(e||0,0)),this.length=Math.floor(Math.max(i||0,0)),this._nullCount=Math.floor(Math.max(r||0,-1)),n instanceof ht?(this.stride=n.stride,this.values=n.values,this.typeIds=n.typeIds,this.nullBitmap=n.nullBitmap,this.valueOffsets=n.valueOffsets):(this.stride=ke(t),n&&((o=n[0])&&(this.valueOffsets=o),(o=n[1])&&(this.values=o),(o=n[2])&&(this.nullBitmap=o),(o=n[3])&&(this.typeIds=o))),this.nullable=0!==this._nullCount&&this.nullBitmap&&this.nullBitmap.byteLength>0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let t=0,{valueOffsets:e,values:i,nullBitmap:r,typeIds:n}=this;return e&&(t+=e.byteLength),i&&(t+=i.byteLength),r&&(t+=r.byteLength),n&&(t+=n.byteLength),this.children.reduce(((t,e)=>t+e.byteLength),t)}get nullCount(){let t,e=this._nullCount;return e<=dS&&(t=this.nullBitmap)&&(this._nullCount=e=this.length-Cn(t,this.offset,this.offset+this.length)),e}getValid(t){if(this.nullable&&this.nullCount>0){let e=this.offset+t;return 0!=(this.nullBitmap[e>>3]&1<>3){let{nullBitmap:t}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:t,_nullCount:0})}let{nullBitmap:i,offset:r}=this,n=r+t>>3,s=(r+t)%8,a=i[n]>>s&1;return e?0===a&&(i[n]|=1<>3).fill(255,0,e>>3);r[e>>3]=(1<0&&r.set($r(this.offset,e,this.nullBitmap),0);let n=this.buffers;return n[Ve.VALIDITY]=r,this.clone(this.type,0,t,i+(t-e),n)}_sliceBuffers(t,e,i,r){let n,{buffers:s}=this;return(n=s[Ve.TYPE])&&(s[Ve.TYPE]=n.subarray(t,t+e)),(n=s[Ve.OFFSET])&&(s[Ve.OFFSET]=n.subarray(t,t+e+1))||(n=s[Ve.DATA])&&(s[Ve.DATA]=6===r?n:n.subarray(i*t,i*(t+e))),s}_sliceChildren(t,e,i){return t.map((t=>t.slice(e,i)))}};ht.prototype.children=Object.freeze([]);var jr=class extends P{visit(t){return this.getVisitFn(t.type).call(this,t)}visitNull(t){let{type:e,offset:i=0,length:r=0}=t;return new ht(e,i,r,0)}visitBool(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length>>3,nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitInt(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length,nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitFloat(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length,nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitUtf8(t){let{type:e,offset:i=0}=t,r=Y(t.data),n=Y(t.nullBitmap),s=br(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new ht(e,i,a,o,[s,r,n])}visitBinary(t){let{type:e,offset:i=0}=t,r=Y(t.data),n=Y(t.nullBitmap),s=br(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new ht(e,i,a,o,[s,r,n])}visitFixedSizeBinary(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length/ke(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitDate(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length/ke(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitTimestamp(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length/ke(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitTime(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length/ke(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitDecimal(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length/ke(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitList(t){let{type:e,offset:i=0,child:r}=t,n=Y(t.nullBitmap),s=br(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new ht(e,i,a,o,[s,void 0,n],[r])}visitStruct(t){let{type:e,offset:i=0,children:r=[]}=t,n=Y(t.nullBitmap),{length:s=r.reduce(((t,{length:e})=>Math.max(t,e)),0),nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,void 0,n],r)}visitUnion(t){let{type:e,offset:i=0,children:r=[]}=t,n=Y(t.nullBitmap),s=rt(e.ArrayType,t.typeIds),{length:a=s.length,nullCount:o=(t.nullBitmap?-1:0)}=t;if(L.isSparseUnion(e))return new ht(e,i,a,o,[void 0,void 0,n,s],r);let l=br(t.valueOffsets);return new ht(e,i,a,o,[l,void 0,n,s],r)}visitDictionary(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.indices.ArrayType,t.data),{dictionary:s=new G([(new jr).visit({type:e.dictionary})])}=t,{length:a=n.length,nullCount:o=(t.nullBitmap?-1:0)}=t;return new ht(e,i,a,o,[void 0,n,r],[],s)}visitInterval(t){let{type:e,offset:i=0}=t,r=Y(t.nullBitmap),n=rt(e.ArrayType,t.data),{length:s=n.length/ke(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,n,r])}visitFixedSizeList(t){let{type:e,offset:i=0,child:r=(new jr).visit({type:e.valueType})}=t,n=Y(t.nullBitmap),{length:s=r.length/ke(e),nullCount:a=(t.nullBitmap?-1:0)}=t;return new ht(e,i,s,a,[void 0,void 0,n],[r])}visitMap(t){let{type:e,offset:i=0,child:r=(new jr).visit({type:e.childType})}=t,n=Y(t.nullBitmap),s=br(t.valueOffsets),{length:a=s.length-1,nullCount:o=(t.nullBitmap?-1:0)}=t;return new ht(e,i,a,o,[s,void 0,n],[r])}};function J(t){return(new jr).visit(t)}var An=class{constructor(t=0,e){this.numChunks=t,this.getChunkIterator=e,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndext+e.nullCount),0)}function lo(t){return t.reduce(((t,e,i)=>(t[i+1]=t[i]+e.length,t)),new Uint32Array(t.length+1))}function co(t,e,i,r){let n=[];for(let s=-1,a=t.length;++s=r)break;if(i>=o+l)continue;if(o>=i&&o+l<=r){n.push(a);continue}let u=Math.max(0,i-o),c=Math.min(r-o,l);n.push(a.slice(u,c-u))}return 0===n.length&&n.push(t[0].slice(0,0)),n}function Ha(t,e,i,r){let n=0,s=0,a=e.length-1;do{if(n>=a-1)return i0?0:-1}function hS(t,e){let{nullBitmap:i}=t;if(!i||t.nullCount<=0)return-1;let r=0;for(let n of new gr(i,t.offset+(e||0),t.length,i,oo)){if(!n)return r;++r}return-1}function nt(t,e,i){if(void 0===e)return-1;if(null===e)return hS(t,i);let r=Nt.getVisitFn(t),n=tr(e);for(let e=(i||0)-1,s=t.length;++e{let i=t.data[e];return i.values.subarray(0,i.length)[Symbol.iterator]()}));let i=0;return new An(t.data.length,(e=>{let r=t.data[e].length,n=t.slice(i,i+r);return i+=r,new za(n)}))}var za=class{constructor(t){this.vector=t,this.index=0}next(){return this.indext+e,hi=class extends P{visitNull(t,e){return 0}visitInt(t,e){return t.type.bitWidth/8}visitFloat(t,e){return t.type.ArrayType.BYTES_PER_ELEMENT}visitBool(t,e){return 1/8}visitDecimal(t,e){return t.type.bitWidth/8}visitDate(t,e){return 4*(t.type.unit+1)}visitTime(t,e){return t.type.bitWidth/8}visitTimestamp(t,e){return t.type.unit===st.SECOND?4:8}visitInterval(t,e){return 4*(t.type.unit+1)}visitStruct(t,e){return t.children.reduce(((t,i)=>t+Oe.visit(i,e)),0)}visitFixedSizeBinary(t,e){return t.type.byteWidth}visitMap(t,e){return 8+t.children.reduce(((t,i)=>t+Oe.visit(i,e)),0)}visitDictionary(t,e){var i;return t.type.indices.bitWidth/8+((null===(i=t.dictionary)||void 0===i?void 0:i.getByteLength(t.values[e]))||0)}},yS=({valueOffsets:t},e)=>t[e+1]-t[e]+8,_S=({valueOffsets:t},e)=>t[e+1]-t[e]+8,mS=({valueOffsets:t,stride:e,children:i},r)=>{let n=i[0],{[r*e]:s}=t,{[r*e+1]:a}=t,o=Oe.getVisitFn(n.type),l=n.slice(s,a-s),u=8;for(let t=-1,e=a-s;++t{let r=e[0],n=r.slice(i*t,t),s=Oe.getVisitFn(r.type),a=0;for(let t=-1,e=n.length;++tt.type.mode===Dt.Dense?ip(t,e):rp(t,e),ip=({type:t,children:e,typeIds:i,valueOffsets:r},n)=>{let s=t.typeIdToChildIndex[i[n]];return 8+Oe.visit(e[s],r[n])},rp=({children:t},e)=>4+Oe.visitMany(t,t.map((()=>e))).reduce(pS,0);hi.prototype.visitUtf8=yS,hi.prototype.visitBinary=_S,hi.prototype.visitList=mS,hi.prototype.visitFixedSizeList=bS,hi.prototype.visitUnion=vS,hi.prototype.visitDenseUnion=ip,hi.prototype.visitSparseUnion=rp;var Oe=new hi,np,sp={},op={},G=class{constructor(t){var e,i,r;let n=t[0]instanceof G?t.flatMap((t=>t.data)):t;if(0===n.length||n.some((t=>!(t instanceof ht))))throw new TypeError("Vector constructor expects an Array of Data instances.");let s=null===(e=n[0])||void 0===e?void 0:e.type;switch(n.length){case 0:this._offsets=[0];break;case 1:{let{get:t,set:e,indexOf:i,byteLength:r}=sp[s.typeId],a=n[0];this.isValid=t=>Fn(a,t),this.get=e=>t(a,e),this.set=(t,i)=>e(a,t,i),this.indexOf=t=>i(a,t),this.getByteLength=t=>r(a,t),this._offsets=[0,a.length];break}default:Object.setPrototypeOf(this,op[s.typeId]),this._offsets=lo(n)}this.data=n,this.type=s,this.stride=ke(s),this.numChildren=null!==(r=null===(i=s.children)||void 0===i?void 0:i.length)&&void 0!==r?r:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return-1===this._byteLength&&(this._byteLength=this.data.reduce(((t,e)=>t+e.byteLength),0)),this._byteLength}get nullCount(){return-1===this._nullCount&&(this._nullCount=ao(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${C[this.type.typeId]}Vector`}isValid(t){return!1}get(t){return null}set(t,e){}indexOf(t,e){return-1}includes(t,e){return this.indexOf(t,e)>0}getByteLength(t){return 0}[Symbol.iterator](){return Yr.visit(this)}concat(...t){return new G(this.data.concat(t.flatMap((t=>t.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,e){return new G(In(this,t,e,(({data:t,_offsets:e},i,r)=>co(t,e,i,r))))}toJSON(){return[...this]}toArray(){let{type:t,data:e,length:i,stride:r,ArrayType:n}=this;switch(t.typeId){case C.Int:case C.Float:case C.Decimal:case C.Time:case C.Timestamp:switch(e.length){case 0:return new n;case 1:return e[0].values.subarray(0,i*r);default:return e.reduce(((t,{values:e})=>(t.array.set(e,t.offset),t.offset+=e.length,t)),{array:new n(i*r),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(t){var e;return this.getChildAt(null===(e=this.type.children)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&te[t]))):null}get isMemoized(){return!!L.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(L.isDictionary(this.type)){let t=new Xr(this.data[0].dictionary),e=this.data.map((e=>{let i=e.clone();return i.dictionary=t,i}));return new G(e)}return new Xr(this)}unmemoize(){if(L.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),e=this.data.map((e=>{let i=e.clone();return i.dictionary=t,i}));return new G(e)}return this}};np=Symbol.toStringTag,G[np]=(t=>{t.type=L.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._nullCount=-1,t._byteLength=-1,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;let e=Object.keys(C).map((t=>C[t])).filter((t=>"number"==typeof t&&t!==C.NONE));for(let i of e){let e=Nt.getVisitFnByTypeId(i),r=ie.getVisitFnByTypeId(i),n=Sr.getVisitFnByTypeId(i),s=Oe.getVisitFnByTypeId(i);sp[i]={get:e,set:r,indexOf:n,byteLength:s},op[i]=Object.create(t,{isValid:{value:er(Fn)},get:{value:er(Nt.getVisitFnByTypeId(i))},set:{value:uo(ie.getVisitFnByTypeId(i))},indexOf:{value:fo(Sr.getVisitFnByTypeId(i))},getByteLength:{value:er(Oe.getVisitFnByTypeId(i))}})}return"Vector"})(G.prototype);var Xr=class extends G{constructor(t){super(t.data);let e=this.get,i=this.set,r=this.slice,n=new Array(this.length);Object.defineProperty(this,"get",{value(t){let i=n[t];if(void 0!==i)return i;let r=e.call(this,t);return n[t]=r,r}}),Object.defineProperty(this,"set",{value(t,e){i.call(this,t,e),n[t]=e}}),Object.defineProperty(this,"slice",{value:(t,e)=>new Xr(r.call(this,t,e))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new G(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}};function ap(t){if(!t||t.length<=0)return function(t){return!0};let e="",i=t.filter((t=>t==t));return i.length>0&&(e=`\n switch (x) {${i.map((t=>`\n case ${gS(t)}:`)).join("")}\n return false;\n }`),t.length!==i.length&&(e=`if (x !== x) return false;\n${e}`),new Function("x",`${e}\nreturn true;`)}function gS(t){return"bigint"!=typeof t?qe(t):As?`${qe(t)}n`:`"${qe(t)}"`}var Wa=(t,e)=>(t*e+63&-64||64)/e,wS=(t,e=0)=>t.length>=e?t.subarray(0,e):Lr(new t.constructor(e),t,0),ir=class{constructor(t,e=1){this.buffer=t,this.stride=e,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t.constructor,this._resize(this.length=Math.trunc(t.length/e))}get byteLength(){return Math.trunc(this.length*this.stride*this.BYTES_PER_ELEMENT)}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(t,e){return this}append(t){return this.set(this.length,t)}reserve(t){if(t>0){this.length+=t;let e=this.stride,i=this.length*e,r=this.buffer.length;i>=r&&this._resize(Wa(0===r?1*i:2*i,this.BYTES_PER_ELEMENT))}return this}flush(t=this.length){t=Wa(t*this.stride,this.BYTES_PER_ELEMENT);let e=wS(this.buffer,t);return this.clear(),e}clear(){return this.length=0,this._resize(0),this}_resize(t){return this.buffer=Lr(new this.ArrayType(t),this.buffer)}};ir.prototype.offset=0;var Li=class extends ir{last(){return this.get(this.length-1)}get(t){return this.buffer[t]}set(t,e){return this.reserve(t-this.length+1),this.buffer[t*this.stride]=e,this}},Gr=class extends Li{constructor(t=new Uint8Array(0)){super(t,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(t){return this.buffer[t>>3]>>t%8&1}set(t,e){let{buffer:i}=this.reserve(t-this.length+1),r=t>>3,n=t%8,s=i[r]>>n&1;return e?0===s&&(i[r]|=1<this.length&&this.set(t-1,0),super.flush(t+1)}},Bt=class{constructor({type:t,nullValues:e}){this.length=0,this.finished=!1,this.type=t,this.children=[],this.nullValues=e,this.stride=ke(t),this._nulls=new Gr,e&&e.length>0&&(this._isValid=ap(e))}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t){throw new Error('"throughDOM" not available in this environment')}toVector(){return new G([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let t=0,{_offsets:e,_values:i,_nulls:r,_typeIds:n,children:s}=this;return e&&(t+=e.byteLength),i&&(t+=i.byteLength),r&&(t+=r.byteLength),n&&(t+=n.byteLength),s.reduce(((t,e)=>t+e.byteLength),t)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let t=0;return this._offsets&&(t+=this._offsets.reservedByteLength),this._values&&(t+=this._values.reservedByteLength),this._nulls&&(t+=this._nulls.reservedByteLength),this._typeIds&&(t+=this._typeIds.reservedByteLength),this.children.reduce(((t,e)=>t+e.reservedByteLength),t)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(t){return this.set(this.length,t)}isValid(t){return this._isValid(t)}set(t,e){return this.setValid(t,this.isValid(e))&&this.setValue(t,e),this}setValue(t,e){this._setValue(this,t,e)}setValid(t,e){return this.length=this._nulls.set(t,+e).length,e}addChild(t,e=`${this.numChildren}`){throw new Error(`Cannot append children to non-nested type "${this.type}"`)}getChildAt(t){return this.children[t]||null}flush(){let t,e,i,r,{type:n,length:s,nullCount:a,_typeIds:o,_offsets:l,_values:u,_nulls:c}=this;(e=null==o?void 0:o.flush(s))?r=null==l?void 0:l.flush(s):t=(r=null==l?void 0:l.flush(s))?null==u?void 0:u.flush(l.last()):null==u?void 0:u.flush(s),a>0&&(i=null==c?void 0:c.flush(s));let h=this.children.map((t=>t.flush()));return this.clear(),J({type:n,length:s,nullCount:a,children:h,child:h[0],data:t,typeIds:e,nullBitmap:i,valueOffsets:r})}finish(){this.finished=!0;for(let t of this.children)t.finish();return this}clear(){var t,e,i,r;this.length=0,null===(t=this._nulls)||void 0===t||t.clear(),null===(e=this._values)||void 0===e||e.clear(),null===(i=this._offsets)||void 0===i||i.clear(),null===(r=this._typeIds)||void 0===r||r.clear();for(let t of this.children)t.clear();return this}};Bt.prototype.length=1,Bt.prototype.stride=1,Bt.prototype.children=null,Bt.prototype.finished=!1,Bt.prototype.nullValues=null,Bt.prototype._isValid=()=>!0;var Xt=class extends Bt{constructor(t){super(t),this._values=new Li(new this.ArrayType(0),this.stride)}setValue(t,e){let i=this._values;return i.reserve(t-i.length+1),super.setValue(t,e)}},pi=class extends Bt{constructor(t){super(t),this._pendingLength=0,this._offsets=new Kr}setValue(t,e){let i=this._pending||(this._pending=new Map),r=i.get(t);r&&(this._pendingLength-=r.length),this._pendingLength+=e instanceof fi?e[He].length:e.length,i.set(t,e)}setValid(t,e){return!!super.setValid(t,e)||((this._pending||(this._pending=new Map)).set(t,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let t=this._pending,e=this._pendingLength;return this._pendingLength=0,this._pending=void 0,t&&t.size>0&&this._flushPending(t,e),this}},Ir=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(t,e,i,r){return t.prep(8,24),t.writeInt64(r),t.pad(4),t.writeInt32(i),t.writeInt64(e),t.offset()}},yi=new Int32Array(2),ho=new Float32Array(yi.buffer),po=new Float64Array(yi.buffer),Jr=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],Pt=class{constructor(t,e){this.low=0|t,this.high=0|e}static create(t,e){return 0==t&&0==e?Pt.ZERO:new Pt(t,e)}toFloat64(){return(this.low>>>0)+4294967296*this.high}equals(t){return this.low==t.low&&this.high==t.high}},xn;Pt.ZERO=new Pt(0,0),function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"}(xn||(xn={}));var ye=class{constructor(t){this.bytes_=t,this.position_=0}static allocate(t){return new ye(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(t){this.position_=t}capacity(){return this.bytes_.length}readInt8(t){return this.readUint8(t)<<24>>24}readUint8(t){return this.bytes_[t]}readInt16(t){return this.readUint16(t)<<16>>16}readUint16(t){return this.bytes_[t]|this.bytes_[t+1]<<8}readInt32(t){return this.bytes_[t]|this.bytes_[t+1]<<8|this.bytes_[t+2]<<16|this.bytes_[t+3]<<24}readUint32(t){return this.readInt32(t)>>>0}readInt64(t){return new Pt(this.readInt32(t),this.readInt32(t+4))}readUint64(t){return new Pt(this.readUint32(t),this.readUint32(t+4))}readFloat32(t){return yi[0]=this.readInt32(t),ho[0]}readFloat64(t){return yi[Jr?0:1]=this.readInt32(t),yi[Jr?1:0]=this.readInt32(t+4),po[0]}writeInt8(t,e){this.bytes_[t]=e}writeUint8(t,e){this.bytes_[t]=e}writeInt16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeUint16(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8}writeInt32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeUint32(t,e){this.bytes_[t]=e,this.bytes_[t+1]=e>>8,this.bytes_[t+2]=e>>16,this.bytes_[t+3]=e>>24}writeInt64(t,e){this.writeInt32(t,e.low),this.writeInt32(t+4,e.high)}writeUint64(t,e){this.writeUint32(t,e.low),this.writeUint32(t+4,e.high)}writeFloat32(t,e){ho[0]=e,this.writeInt32(t,yi[0])}writeFloat64(t,e){po[0]=e,this.writeInt32(t,yi[Jr?0:1]),this.writeInt32(t+4,yi[Jr?1:0])}getBufferIdentifier(){if(this.bytes_.length>10),56320+(1023&e)))}return r}__union_with_string(t,e){return"string"==typeof t?this.__string(e):this.__union(t,e)}__indirect(t){return t+this.readInt32(t)}__vector(t){return t+this.readInt32(t)+4}__vector_len(t){return this.readInt32(t+this.readInt32(t))}__has_identifier(t){if(4!=t.length)throw new Error("FlatBuffers: file identifier must be length 4");for(let e=0;e<4;e++)if(t.charCodeAt(e)!=this.readInt8(this.position()+4+e))return!1;return!0}createLong(t,e){return Pt.create(t,e)}createScalarList(t,e){let i=[];for(let r=0;rthis.minalign&&(this.minalign=t);let i=1+~(this.bb.capacity()-this.space+e)&t-1;for(;this.space=0&&0==this.vtable[e];e--);let i=e+1;for(;e>=0;e--)this.addInt16(0!=this.vtable[e]?t-this.vtable[e]:0);this.addInt16(t-this.object_start);let r=2*(i+2);this.addInt16(r);let n=0,s=this.space;t:for(e=0;e=0;e--)this.writeInt8(t.charCodeAt(e))}this.prep(this.minalign,4+r),this.addOffset(t),r&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(t,e){this.finish(t,e,!0)}requiredField(t,e){let i=this.bb.capacity()-t,r=i-this.bb.readInt32(i);if(0==this.bb.readInt16(r+e))throw new Error("FlatBuffers: field "+e+" must be set")}startVector(t,e,i){this.notNested(),this.vector_num_elems=e,this.prep(4,t*e),this.prep(i,t*e)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(t){if(!t)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(t))return this.string_maps.get(t);let e=this.createString(t);return this.string_maps.set(t,e),e}createString(t){if(!t)return 0;let e;if(t instanceof Uint8Array)e=t;else{e=[];let i=0;for(;i=56320?n:(n<<10)+t.charCodeAt(i++)+-56613888,r<128?e.push(r):(r<2048?e.push(r>>6&31|192):(r<65536?e.push(r>>12&15|224):e.push(r>>18&7|240,r>>12&63|128),e.push(r>>6&63|128)),e.push(63&r|128))}}this.addInt8(0),this.startVector(1,e.length,1),this.bb.setPosition(this.space-=e.length);for(let t=0,i=this.space,r=this.bb.bytes();t=0;i--)t.addInt32(e[i]);return t.endVector()}static startTypeIdsVector(t,e){t.startVector(4,e,4)}static endUnion(t){return t.endObject()}static createUnion(t,e,i){return Jt.startUnion(t),Jt.addMode(t,e),Jt.addTypeIds(t,i),Jt.endUnion(t)}},wi=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsUtf8(t,e){return(e||new wi).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,e){return t.setPosition(t.position()+4),(e||new wi).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(t){t.startObject(0)}static endUtf8(t){return t.endObject()}static createUtf8(t){return wi.startUtf8(t),wi.endUtf8(t)}},Tt;!function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"}(Tt||(Tt={}));var Vt=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsField(t,e){return(e||new Vt).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,e){return t.setPosition(t.position()+4),(e||new Vt).__init(t.readInt32(t.position())+t.position(),t)}name(t){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.__string(this.bb_pos+e,t):null}nullable(){let t=this.bb.__offset(this.bb_pos,6);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}typeType(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):Tt.NONE}type(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__union(t,this.bb_pos+e):null}dictionary(t){let e=this.bb.__offset(this.bb_pos,12);return e?(t||new Re).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}children(t,e){let i=this.bb.__offset(this.bb_pos,14);return i?(e||new Vt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}childrenLength(){let t=this.bb.__offset(this.bb_pos,14);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let i=this.bb.__offset(this.bb_pos,16);return i?(e||new It).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,16);return t?this.bb.__vector_len(this.bb_pos+t):0}static startField(t){t.startObject(7)}static addName(t,e){t.addFieldOffset(0,e,0)}static addNullable(t,e){t.addFieldInt8(1,+e,0)}static addTypeType(t,e){t.addFieldInt8(2,e,Tt.NONE)}static addType(t,e){t.addFieldOffset(3,e,0)}static addDictionary(t,e){t.addFieldOffset(4,e,0)}static addChildren(t,e){t.addFieldOffset(5,e,0)}static createChildrenVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startChildrenVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(6,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endField(t){return t.endObject()}},Et=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsSchema(t,e){return(e||new Et).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,e){return t.setPosition(t.position()+4),(e||new Et).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):nr.Little}fields(t,e){let i=this.bb.__offset(this.bb_pos,6);return i?(e||new Vt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}fieldsLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let i=this.bb.__offset(this.bb_pos,8);return i?(e||new It).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}features(t){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb.__vector(this.bb_pos+e)+8*t):this.bb.createLong(0,0)}featuresLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}static startSchema(t){t.startObject(4)}static addEndianness(t,e){t.addFieldInt16(0,e,nr.Little)}static addFields(t,e){t.addFieldOffset(1,e,0)}static createFieldsVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startFieldsVector(t,e){t.startVector(4,e,4)}static addCustomMetadata(t,e){t.addFieldOffset(2,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static addFeatures(t,e){t.addFieldOffset(3,e,0)}static createFeaturesVector(t,e){t.startVector(8,e.length,8);for(let i=e.length-1;i>=0;i--)t.addInt64(e[i]);return t.endVector()}static startFeaturesVector(t,e){t.startVector(8,e,8)}static endSchema(t){return t.endObject()}static finishSchemaBuffer(t,e){t.finish(e)}static finishSizePrefixedSchemaBuffer(t,e){t.finish(e,void 0,!0)}static createSchema(t,e,i,r,n){return Et.startSchema(t),Et.addEndianness(t,e),Et.addFields(t,i),Et.addCustomMetadata(t,r),Et.addFeatures(t,n),Et.endSchema(t)}},ae=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsFooter(t,e){return(e||new ae).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,e){return t.setPosition(t.position()+4),(e||new ae).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):rr.V1}schema(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new Et).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}dictionaries(t,e){let i=this.bb.__offset(this.bb_pos,8);return i?(e||new Ir).__init(this.bb.__vector(this.bb_pos+i)+24*t,this.bb):null}dictionariesLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}recordBatches(t,e){let i=this.bb.__offset(this.bb_pos,10);return i?(e||new Ir).__init(this.bb.__vector(this.bb_pos+i)+24*t,this.bb):null}recordBatchesLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__vector_len(this.bb_pos+t):0}customMetadata(t,e){let i=this.bb.__offset(this.bb_pos,12);return i?(e||new It).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startFooter(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,rr.V1)}static addSchema(t,e){t.addFieldOffset(1,e,0)}static addDictionaries(t,e){t.addFieldOffset(2,e,0)}static startDictionariesVector(t,e){t.startVector(24,e,8)}static addRecordBatches(t,e){t.addFieldOffset(3,e,0)}static startRecordBatchesVector(t,e){t.startVector(24,e,8)}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endFooter(t){return t.endObject()}static finishFooterBuffer(t,e){t.finish(e)}static finishSizePrefixedFooterBuffer(t,e){t.finish(e,void 0,!0)}},ot=class{constructor(t=[],e,i){this.fields=t||[],this.metadata=e||new Map,i||(i=$a(t)),this.dictionaries=i}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((t=>t.name))}toString(){return`Schema<{ ${this.fields.map(((t,e)=>`${e}: ${t}`)).join(", ")} }>`}select(t){let e=new Set(t),i=this.fields.filter((t=>e.has(t.name)));return new ot(i,this.metadata)}selectAt(t){let e=t.map((t=>this.fields[t])).filter(Boolean);return new ot(e,this.metadata)}assign(...t){let e=t[0]instanceof ot?t[0]:Array.isArray(t[0])?new ot(t[0]):new ot(t),i=[...this.fields],r=_o(_o(new Map,this.metadata),e.metadata),n=e.fields.filter((t=>{let e=i.findIndex((e=>e.name===t.name));return!~e||(i[e]=t.clone({metadata:_o(_o(new Map,i[e].metadata),t.metadata)}))&&!1})),s=$a(n,new Map);return new ot([...i,...n],r,new Map([...this.dictionaries,...s]))}};ot.prototype.fields=null,ot.prototype.metadata=null,ot.prototype.dictionaries=null;var Q=class{constructor(t,e,i=!1,r){this.name=t,this.type=e,this.nullable=i,this.metadata=r||new Map}static new(...t){let[e,i,r,n]=t;return t[0]&&"object"==typeof t[0]&&(({name:e}=t[0]),void 0===i&&(i=t[0].type),void 0===r&&(r=t[0].nullable),void 0===n&&(n=t[0].metadata)),new Q(`${e}`,i,r,n)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...t){let[e,i,r,n]=t;return t[0]&&"object"==typeof t[0]?({name:e=this.name,type:i=this.type,nullable:r=this.nullable,metadata:n=this.metadata}=t[0]):[e=this.name,i=this.type,r=this.nullable,n=this.metadata]=t,Q.new(e,i,r,n)}};function _o(t,e){return new Map([...t||new Map,...e||new Map])}function $a(t,e=new Map){for(let i=-1,r=t.length;++i0&&$a(r.children,e)}return e}Q.prototype.type=null,Q.prototype.name=null,Q.prototype.nullable=null,Q.prototype.metadata=null;var lp=Pt,jS=Ni,SS=ye,Pi=class{constructor(t,e=Yt.V4,i,r){this.schema=t,this.version=e,i&&(this._recordBatches=i),r&&(this._dictionaryBatches=r)}static decode(t){t=new SS(Y(t));let e=ae.getRootAsFooter(t),i=ot.decode(e.schema());return new Ya(i,e)}static encode(t){let e=new jS,i=ot.encode(e,t.schema);ae.startRecordBatchesVector(e,t.numRecordBatches);for(let i of[...t.recordBatches()].slice().reverse())oi.encode(e,i);let r=e.endVector();ae.startDictionariesVector(e,t.numDictionaries);for(let i of[...t.dictionaryBatches()].slice().reverse())oi.encode(e,i);let n=e.endVector();return ae.startFooter(e),ae.addSchema(e,i),ae.addVersion(e,Yt.V4),ae.addRecordBatches(e,r),ae.addDictionaries(e,n),ae.finishFooterBuffer(e,ae.endFooter(e)),e.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let t,e=-1,i=this.numRecordBatches;++e=0&&t=0&&t=0&&t=0&&tthis._closedPromiseResolve=t))}get closed(){return this._closedPromise}cancel(t){return O(this,void 0,void 0,(function*(){yield this.return(t)}))}write(t){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(t):this.resolvers.shift().resolve({done:!1,value:t}))}abort(t){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:t}:this.resolvers.shift().reject({done:!0,value:t}))}close(){if(this._closedPromiseResolve){let{resolvers:t}=this;for(;t.length>0;)t.shift().resolve(Ct);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(t){return te.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,t)}toNodeStream(t){return te.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,t)}throw(t){return O(this,void 0,void 0,(function*(){return yield this.abort(t),Ct}))}return(t){return O(this,void 0,void 0,(function*(){return yield this.close(),Ct}))}read(t){return O(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return O(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(...t){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((t,e)=>{this.resolvers.push({resolve:t,reject:e})})):Promise.resolve(Ct)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}},ji=class extends mo{write(t){if((t=Y(t)).byteLength>0)return super.write(t)}toString(t=!1){return t?bn(this.toUint8Array(!0)):this.toUint8Array(!1).then(bn)}toUint8Array(t=!1){return t?De(this._values)[0]:(()=>O(this,void 0,void 0,(function*(){var t,e;let i=[],r=0;try{for(var n,s=Ne(this);!(n=yield s.next()).done;){let t=n.value;i.push(t),r+=t.byteLength}}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=s.return)&&(yield e.call(s))}finally{if(t)throw t.error}}return De(i,r)[0]})))()}},Si=class{constructor(t){t&&(this.source=new Xa(te.fromIterable(t)))}[Symbol.iterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},Ae=class{constructor(t){t instanceof Ae?this.source=t.source:t instanceof ji?this.source=new Vi(te.fromAsyncIterable(t)):Es(t)?this.source=new Vi(te.fromNodeStream(t)):gn(t)?this.source=new Vi(te.fromDOMStream(t)):Ts(t)?this.source=new Vi(te.fromDOMStream(t.body)):Ke(t)?this.source=new Vi(te.fromIterable(t)):(Ge(t)||Pe(t))&&(this.source=new Vi(te.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(t){return this.source.next(t)}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}get closed(){return this.source.closed}cancel(t){return this.source.cancel(t)}peek(t){return this.source.peek(t)}read(t){return this.source.read(t)}},Xa=class{constructor(t){this.source=t}cancel(t){this.return(t)}peek(t){return this.next(t,"peek").value}read(t){return this.next(t,"read").value}next(t,e="read"){return this.source.next({cmd:e,size:t})}throw(t){return Object.create(this.source.throw&&this.source.throw(t)||Ct)}return(t){return Object.create(this.source.return&&this.source.return(t)||Ct)}},Vi=class{constructor(t){this.source=t,this._closedPromise=new Promise((t=>this._closedPromiseResolve=t))}cancel(t){return O(this,void 0,void 0,(function*(){yield this.return(t)}))}get closed(){return this._closedPromise}read(t){return O(this,void 0,void 0,(function*(){return(yield this.next(t,"read")).value}))}peek(t){return O(this,void 0,void 0,(function*(){return(yield this.next(t,"peek")).value}))}next(t,e="read"){return O(this,void 0,void 0,(function*(){return yield this.source.next({cmd:e,size:t})}))}throw(t){return O(this,void 0,void 0,(function*(){let e=this.source.throw&&(yield this.source.throw(t))||Ct;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}return(t){return O(this,void 0,void 0,(function*(){let e=this.source.return&&(yield this.source.return(t))||Ct;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(e)}))}},Rn=class extends Si{constructor(t,e){super(),this.position=0,this.buffer=Y(t),this.size=typeof e>"u"?this.buffer.byteLength:e}readInt32(t){let{buffer:e,byteOffset:i}=this.readAt(t,4);return new DataView(e,i).getInt32(0,!0)}seek(t){return this.position=Math.min(t,this.size),tO(this,void 0,void 0,(function*(){this.size=(yield t.stat()).size,delete this._pending})))()}readInt32(t){return O(this,void 0,void 0,(function*(){let{buffer:e,byteOffset:i}=yield this.readAt(t,4);return new DataView(e,i).getInt32(0,!0)}))}seek(t){return O(this,void 0,void 0,(function*(){return this._pending&&(yield this._pending),this.position=Math.min(t,this.size),tMn,Int128:()=>Fe,Int64:()=>qt,Uint64:()=>pt});var Zr=8,Ga=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Mn=class{constructor(t){this.buffer=t}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(t){let e=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),i=new Uint32Array([t.buffer[1]>>>16,65535&t.buffer[1],t.buffer[0]>>>16,65535&t.buffer[0]]),r=e[3]*i[3];this.buffer[0]=65535&r;let n=r>>>16;return r=e[2]*i[3],n+=r,r=e[3]*i[2]>>>0,n+=r,this.buffer[0]+=n<<16,this.buffer[1]=n>>>0>>16,this.buffer[1]+=e[1]*i[3]+e[2]*i[2]+e[3]*i[1],this.buffer[1]+=e[0]*i[3]+e[1]*i[2]+e[2]*i[1]+e[3]*i[0]<<16,this}_plus(t){let e=this.buffer[0]+t.buffer[0]>>>0;this.buffer[1]+=t.buffer[1],e>>0&&++this.buffer[1],this.buffer[0]=e}lessThan(t){return this.buffer[1]>>0,e[2]=this.buffer[2]+t.buffer[2]>>>0,e[1]=this.buffer[1]+t.buffer[1]>>>0,e[0]=this.buffer[0]+t.buffer[0]>>>0,e[0]>>0&&++e[1],e[1]>>0&&++e[2],e[2]>>0&&++e[3],this.buffer[3]=e[3],this.buffer[2]=e[2],this.buffer[1]=e[1],this.buffer[0]=e[0],this}hex(){return`${qr(this.buffer[3])} ${qr(this.buffer[2])} ${qr(this.buffer[1])} ${qr(this.buffer[0])}`}static multiply(t,e){return new Fe(new Uint32Array(t.buffer)).times(e)}static add(t,e){return new Fe(new Uint32Array(t.buffer)).plus(e)}static from(t,e=new Uint32Array(4)){return Fe.fromString("string"==typeof t?t:t.toString(),e)}static fromNumber(t,e=new Uint32Array(4)){return Fe.fromString(t.toString(),e)}static fromString(t,e=new Uint32Array(4)){let i=t.startsWith("-"),r=t.length,n=new Fe(e);for(let e=i?1:0;e0&&this.readData(t,i)||new Uint8Array(0)}readOffsets(t,e){return this.readData(t,e)}readTypeIds(t,e){return this.readData(t,e)}readData(t,{length:e,offset:i}=this.nextBufferRange()){return this.bytes.subarray(i,i+e)}readDictionary(t){return this.dictionaries.get(t.id)}},bo=class extends Un{constructor(t,e,i,r){super(new Uint8Array(0),e,i,r),this.sources=t}readNullBitmap(t,e,{offset:i}=this.nextBufferRange()){return e<=0?new Uint8Array(0):wr(this.sources[i])}readOffsets(t,{offset:e}=this.nextBufferRange()){return rt(Uint8Array,rt(Int32Array,this.sources[e]))}readTypeIds(t,{offset:e}=this.nextBufferRange()){return rt(Uint8Array,rt(t.ArrayType,this.sources[e]))}readData(t,{offset:e}=this.nextBufferRange()){let{sources:i}=this;return L.isTimestamp(t)||(L.isInt(t)||L.isTime(t))&&64===t.bitWidth||L.isDate(t)&&t.unit===ee.MILLISECOND?rt(Uint8Array,qt.convertArray(i[e])):L.isDecimal(t)?rt(Uint8Array,Fe.convertArray(i[e])):L.isBinary(t)||L.isFixedSizeBinary(t)?IS(i[e]):L.isBool(t)?wr(i[e]):L.isUtf8(t)?Ji(i[e].join("")):rt(Uint8Array,rt(t.ArrayType,i[e].map((t=>+t))))}};function IS(t){let e=t.join(""),i=new Uint8Array(e.length/2);for(let t=0;t>1]=Number.parseInt(e.slice(t,t+2),16);return i}var Qr=class extends pi{constructor(t){super(t),this._values=new ir(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,Y(e))}_flushPending(t,e){let i=this._offsets,r=this._values.reserve(e).buffer,n=0;for(let[e,s]of t)if(void 0===s)i.set(e,0);else{let t=s.length;r.set(s,n),i.set(e,t),n+=t}}},vo=class extends Bt{constructor(t){super(t),this._values=new Gr}setValue(t,e){this._values.set(t,+e)}},Ar=class extends Xt{};Ar.prototype._setValue=Ta;var Ln=class extends Ar{};Ln.prototype._setValue=Ys;var Nn=class extends Ar{};Nn.prototype._setValue=Xs;var Pn=class extends Xt{};Pn.prototype._setValue=ka;var go=class extends Bt{constructor({type:t,nullValues:e,dictionaryHashFunction:i}){super({type:new Ee(t.dictionary,t.indices,t.id,t.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Fr({type:this.type.indices,nullValues:e}),this.dictionary=Fr({type:this.type.dictionary,nullValues:null}),"function"==typeof i&&(this.valueToKey=i)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(t){return this.indices.isValid(t)}setValid(t,e){let i=this.indices;return e=i.setValid(t,e),this.length=i.length,e}setValue(t,e){let i=this._keysToIndices,r=this.valueToKey(e),n=i[r];return void 0===n&&(i[r]=n=this._dictionaryOffset+this.dictionary.append(e).length-1),this.indices.setValue(t,n)}flush(){let t=this.type,e=this._dictionary,i=this.dictionary.toVector(),r=this.indices.flush().clone(t);return r.dictionary=e?e.concat(i):i,this.finished||(this._dictionaryOffset+=i.length),this._dictionary=r.dictionary,this.clear(),r}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(t){return"string"==typeof t?t:`${t}`}},Vn=class extends Xt{};Vn.prototype._setValue=Ba;var wo=class extends Bt{setValue(t,e){let[i]=this.children,r=t*this.stride;for(let t=-1,n=e.length;++t0)throw new Error("FixedSizeListBuilder can only have one child.");let i=this.children.push(t);return this.type=new ii(this.type.listSize,new Q(e,t.type,!0)),i}},xr=class extends Xt{setValue(t,e){this._values.set(t,e)}},jo=class extends xr{setValue(t,e){super.setValue(t,Sn(e))}},So=class extends xr{},Io=class extends xr{},Br=class extends Xt{};Br.prototype._setValue=Oa;var Hn=class extends Br{};Hn.prototype._setValue=io;var zn=class extends Br{};zn.prototype._setValue=ro;var We=class extends Xt{setValue(t,e){this._values.set(t,e)}},Co=class extends We{},Ao=class extends We{},Fo=class extends We{},xo=class extends We{},Bo=class extends We{},To=class extends We{},Do=class extends We{},Eo=class extends We{},ko=class extends pi{constructor(t){super(t),this._offsets=new Kr}addChild(t,e="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new ti(new Q(e,t.type,!0)),this.numChildren-1}_flushPending(t){let e=this._offsets,[i]=this.children;for(let[r,n]of t)if(void 0===n)e.set(r,0);else{let t=n.length,s=e.set(r,t).buffer[r];for(let e=-1;++e0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=t,this.type=new ri(new Q(e,t.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(t){let e=this._offsets,[i]=this.children;for(let[r,n]of t)if(void 0===n)e.set(r,0);else{let{[r]:t,[r+1]:s}=e.set(r,n.size).buffer;for(let e of n.entries())if(i.set(t,e),++t>=s)break}}},Ro=class extends Bt{setValue(t,e){}setValid(t,e){return this.length=Math.max(t+1,this.length),e}},Mo=class extends Bt{setValue(t,e){let{children:i,type:r}=this;switch(Array.isArray(e)||e.constructor){case!0:return r.children.forEach(((r,n)=>i[n].set(t,e[n])));case Map:return r.children.forEach(((r,n)=>i[n].set(t,e.get(r.name))));default:return r.children.forEach(((r,n)=>i[n].set(t,e[r.name])))}}setValid(t,e){return super.setValid(t,e)||this.children.forEach((i=>i.setValid(t,e))),e}addChild(t,e=`${this.numChildren}`){let i=this.children.push(t);return this.type=new St([...this.type.children,new Q(e,t.type,!0)]),i}},Hi=class extends Xt{};Hi.prototype._setValue=Da;var Wn=class extends Hi{};Wn.prototype._setValue=Gs;var $n=class extends Hi{};$n.prototype._setValue=Ks;var Yn=class extends Hi{};Yn.prototype._setValue=Js;var Xn=class extends Hi{};Xn.prototype._setValue=qs;var zi=class extends Xt{};zi.prototype._setValue=Ea;var Gn=class extends zi{};Gn.prototype._setValue=Zs;var Kn=class extends zi{};Kn.prototype._setValue=Qs;var Jn=class extends zi{};Jn.prototype._setValue=to;var qn=class extends zi{};qn.prototype._setValue=eo;var tn=class extends Bt{constructor(t){super(t),this._typeIds=new Li(new Int8Array(0),1),"function"==typeof t.valueToChildTypeId&&(this._valueToChildTypeId=t.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(t,e){return this.set(this.length,t,e)}set(t,e,i){return void 0===i&&(i=this._valueToChildTypeId(this,e,t)),this.setValid(t,this.isValid(e))&&this.setValue(t,e,i),this}setValue(t,e,i){this._typeIds.set(t,i);let r=this.type.typeIdToChildIndex[i],n=this.children[r];null==n||n.set(t,e)}addChild(t,e=`${this.children.length}`){let i=this.children.push(t),{type:{children:r,mode:n,typeIds:s}}=this,a=[...r,new Q(e,t.type)];return this.type=new ei(n,[...s,i],a),i}_valueToChildTypeId(t,e,i){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},Uo=class extends tn{},Lo=class extends tn{constructor(t){super(t),this._offsets=new Li(new Int32Array(0))}setValue(t,e,i){let r=this._typeIds.set(t,i).buffer[t],n=this.getChildAt(this.type.typeIdToChildIndex[r]),s=this._offsets.set(t,n.length).buffer[t];null==n||n.set(s,e)}},Zn=class extends pi{constructor(t){super(t),this._values=new ir(new Uint8Array(0))}get byteLength(){let t=this._pendingLength+4*this.length;return this._offsets&&(t+=this._offsets.byteLength),this._values&&(t+=this._values.byteLength),this._nulls&&(t+=this._nulls.byteLength),t}setValue(t,e){return super.setValue(t,Ji(e))}_flushPending(t,e){}};Zn.prototype._flushPending=Qr.prototype._flushPending;var Ja=class extends P{visitNull(){return Ro}visitBool(){return vo}visitInt(){return We}visitInt8(){return Co}visitInt16(){return Ao}visitInt32(){return Fo}visitInt64(){return xo}visitUint8(){return Bo}visitUint16(){return To}visitUint32(){return Do}visitUint64(){return Eo}visitFloat(){return xr}visitFloat16(){return jo}visitFloat32(){return So}visitFloat64(){return Io}visitUtf8(){return Zn}visitBinary(){return Qr}visitFixedSizeBinary(){return Vn}visitDate(){return Ar}visitDateDay(){return Ln}visitDateMillisecond(){return Nn}visitTimestamp(){return Hi}visitTimestampSecond(){return Wn}visitTimestampMillisecond(){return $n}visitTimestampMicrosecond(){return Yn}visitTimestampNanosecond(){return Xn}visitTime(){return zi}visitTimeSecond(){return Gn}visitTimeMillisecond(){return Kn}visitTimeMicrosecond(){return Jn}visitTimeNanosecond(){return qn}visitDecimal(){return Pn}visitList(){return ko}visitStruct(){return Mo}visitUnion(){return tn}visitDenseUnion(){return Lo}visitSparseUnion(){return Uo}visitDictionary(){return go}visitInterval(){return Br}visitIntervalDayTime(){return Hn}visitIntervalYearMonth(){return zn}visitFixedSizeList(){return wo}visitMap(){return Oo}},cp=new Ja,W=class extends P{compareSchemas(t,e){return t===e||e instanceof t.constructor&&this.compareManyFields(t.fields,e.fields)}compareManyFields(t,e){return t===e||Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((t,i)=>this.compareFields(t,e[i])))}compareFields(t,e){return t===e||e instanceof t.constructor&&t.name===e.name&&t.nullable===e.nullable&&this.visit(t.type,e.type)}};function xe(t,e){return e instanceof t.constructor}function Qn(t,e){return t===e||xe(t,e)}function Wi(t,e){return t===e||xe(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function No(t,e){return t===e||xe(t,e)&&t.precision===e.precision}function CS(t,e){return t===e||xe(t,e)&&t.byteWidth===e.byteWidth}function qa(t,e){return t===e||xe(t,e)&&t.unit===e.unit}function ts(t,e){return t===e||xe(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function es(t,e){return t===e||xe(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function AS(t,e){return t===e||xe(t,e)&&t.children.length===e.children.length&&Ii.compareManyFields(t.children,e.children)}function FS(t,e){return t===e||xe(t,e)&&t.children.length===e.children.length&&Ii.compareManyFields(t.children,e.children)}function Za(t,e){return t===e||xe(t,e)&&t.mode===e.mode&&t.typeIds.every(((t,i)=>t===e.typeIds[i]))&&Ii.compareManyFields(t.children,e.children)}function xS(t,e){return t===e||xe(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&Ii.visit(t.indices,e.indices)&&Ii.visit(t.dictionary,e.dictionary)}function Qa(t,e){return t===e||xe(t,e)&&t.unit===e.unit}function BS(t,e){return t===e||xe(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&Ii.compareManyFields(t.children,e.children)}function TS(t,e){return t===e||xe(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&Ii.compareManyFields(t.children,e.children)}W.prototype.visitNull=Qn,W.prototype.visitBool=Qn,W.prototype.visitInt=Wi,W.prototype.visitInt8=Wi,W.prototype.visitInt16=Wi,W.prototype.visitInt32=Wi,W.prototype.visitInt64=Wi,W.prototype.visitUint8=Wi,W.prototype.visitUint16=Wi,W.prototype.visitUint32=Wi,W.prototype.visitUint64=Wi,W.prototype.visitFloat=No,W.prototype.visitFloat16=No,W.prototype.visitFloat32=No,W.prototype.visitFloat64=No,W.prototype.visitUtf8=Qn,W.prototype.visitBinary=Qn,W.prototype.visitFixedSizeBinary=CS,W.prototype.visitDate=qa,W.prototype.visitDateDay=qa,W.prototype.visitDateMillisecond=qa,W.prototype.visitTimestamp=ts,W.prototype.visitTimestampSecond=ts,W.prototype.visitTimestampMillisecond=ts,W.prototype.visitTimestampMicrosecond=ts,W.prototype.visitTimestampNanosecond=ts,W.prototype.visitTime=es,W.prototype.visitTimeSecond=es,W.prototype.visitTimeMillisecond=es,W.prototype.visitTimeMicrosecond=es,W.prototype.visitTimeNanosecond=es,W.prototype.visitDecimal=Qn,W.prototype.visitList=AS,W.prototype.visitStruct=FS,W.prototype.visitUnion=Za,W.prototype.visitDenseUnion=Za,W.prototype.visitSparseUnion=Za,W.prototype.visitDictionary=xS,W.prototype.visitInterval=Qa,W.prototype.visitIntervalDayTime=Qa,W.prototype.visitIntervalYearMonth=Qa,W.prototype.visitFixedSizeList=BS,W.prototype.visitMap=TS;var Ii=new W;function Tr(t,e){return Ii.compareSchemas(t,e)}function up(t,e){return Ii.compareFields(t,e)}function dp(t,e){return Ii.visit(t,e)}function Fr(t){let e=t.type,i=new(cp.getVisitFn(e)())(t);if(e.children&&e.children.length>0){let r=t.children||[],n={nullValues:t.nullValues},s=Array.isArray(r)?(t,e)=>r[e]||n:({name:t})=>r[t]||n;for(let[t,r]of e.children.entries()){let{type:e}=r,n=s(r,t);i.children.push(Fr(Object.assign(Object.assign({},n),{type:e})))}}return i}function Po(t,e){return DS(t,e.map((t=>t.data.concat())))}function DS(t,e){let i,r=[...t.fields],n=[],s={numBatches:e.reduce(((t,e)=>Math.max(t,e.length)),0)},a=0,o=0,l=-1,u=e.length,c=[];for(;s.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,l=-1;++l0&&(n[a++]=J({type:new St(r),length:o,nullCount:0,children:c.slice()})))}return[t=t.assign(r),n.map((e=>new jt(t,e)))]}function ES(t,e,i,r,n){var s;let a=(e+63&-64)>>3;for(let o=-1,l=r.length;++o=e)u===e?i[o]=l:(i[o]=l.slice(0,e),n.numBatches=Math.max(n.numBatches,r[o].unshift(l.slice(e,u-e))));else{let r=t[o];t[o]=r.clone({nullable:!0}),i[o]=null!==(s=null==l?void 0:l._changeLengthAndBackfillNullBitmap(e))&&void 0!==s?s:J({type:r.type,length:e,nullCount:e,nullBitmap:new Uint8Array(a)})}}return i}var fp,Rt=class{constructor(...t){var e,i;if(0===t.length)return this.batches=[],this.schema=new ot([]),this._offsets=[0],this;let r,n;t[0]instanceof ot&&(r=t.shift()),t[t.length-1]instanceof Uint32Array&&(n=t.pop());let s=t=>{if(t){if(t instanceof jt)return[t];if(t instanceof Rt)return t.batches;if(t instanceof ht){if(t.type instanceof St)return[new jt(new ot(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((t=>s(t)));if("function"==typeof t[Symbol.iterator])return[...t].flatMap((t=>s(t)));if("object"==typeof t){let e=Object.keys(t),i=e.map((e=>new G([t[e]]))),r=new ot(e.map(((t,e)=>new Q(String(t),i[e].type)))),[,n]=Po(r,i);return 0===n.length?[new jt(t)]:n}}}return[]},a=t.flatMap((t=>s(t)));if(r=null!==(i=null!=r?r:null===(e=a[0])||void 0===e?void 0:e.schema)&&void 0!==i?i:new ot([]),!(r instanceof ot))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let t of a){if(!(t instanceof jt))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Tr(r,t.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=r,this.batches=a,this._offsets=null!=n?n:lo(this.data)}get data(){return this.batches.map((({data:t})=>t))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((t,e)=>t+e.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=ao(this.data)),this._nullCount}isValid(t){return!1}get(t){return null}set(t,e){}indexOf(t,e){return-1}getByteLength(t){return 0}[Symbol.iterator](){return this.batches.length>0?Yr.visit(new G(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[\n ${this.toArray().join(",\n ")}\n]`}concat(...t){let e=this.schema,i=this.data.concat(t.flatMap((({data:t})=>t)));return new Rt(e,i.map((t=>new jt(e,t))))}slice(t,e){let i=this.schema;[t,e]=In({length:this.numRows},t,e);let r=co(this.data,this._offsets,t,e);return new Rt(i,r.map((t=>new jt(i,t))))}getChild(t){return this.getChildAt(this.schema.fields.findIndex((e=>e.name===t)))}getChildAt(t){if(t>-1&&te.children[t]));if(0===e.length){let{type:i}=this.schema.fields[t],r=J({type:i,length:0,nullCount:0});e.push(r._changeLengthAndBackfillNullBitmap(this.numRows))}return new G(e)}return null}setChild(t,e){var i;return this.setChildAt(null===(i=this.schema.fields)||void 0===i?void 0:i.findIndex((e=>e.name===t)),e)}setChildAt(t,e){let i=this.schema,r=[...this.batches];if(t>-1&&tthis.getChildAt(e)));[n[t],a[t]]=[s,e],[i,r]=Po(i,a)}return new Rt(i,r)}select(t){let e=this.schema.fields.reduce(((t,e,i)=>t.set(e.name,i)),new Map);return this.selectAt(t.map((t=>e.get(t))).filter((t=>t>-1)))}selectAt(t){let e=this.schema.selectAt(t),i=this.batches.map((e=>e.selectAt(t)));return new Rt(e,i)}assign(t){let e=this.schema.fields,[i,r]=t.schema.fields.reduce(((t,i,r)=>{let[n,s]=t,a=e.findIndex((t=>t.name===i.name));return~a?s[a]=r:n.push(r),t}),[[],[]]),n=this.schema.assign(t.schema),s=[...e.map(((t,e)=>[e,r[e]])).map((([e,i])=>void 0===i?this.getChildAt(e):t.getChildAt(i))),...i.map((e=>t.getChildAt(e)))].filter(Boolean);return new Rt(...Po(n,s))}};fp=Symbol.toStringTag,Rt[fp]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=er(Fn),t.get=er(Nt.getVisitFn(C.Struct)),t.set=uo(ie.getVisitFn(C.Struct)),t.indexOf=fo(Sr.getVisitFn(C.Struct)),t.getByteLength=er(Oe.getVisitFn(C.Struct)),"Table"))(Rt.prototype);var pp,jt=class{constructor(...t){switch(t.length){case 2:if([this.schema]=t,!(this.schema instanceof ot))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=J({nullCount:0,type:new St(this.schema.fields),children:this.schema.fields.map((t=>J({type:t.type,nullCount:0})))})]=t,!(this.data instanceof ht))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=hp(this.schema,this.data.children);break;case 1:{let[e]=t,{fields:i,children:r,length:n}=Object.keys(e).reduce(((t,i,r)=>(t.children[r]=e[i],t.length=Math.max(t.length,e[i].length),t.fields[r]=Q.new({name:i,type:e[i].type,nullable:!0}),t)),{length:0,fields:new Array,children:new Array}),s=new ot(i),a=J({type:new St(i),length:n,children:r,nullCount:0});[this.schema,this.data]=hp(s,a.children,n);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=yp(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(t){return this.data.getValid(t)}get(t){return Nt.visit(this.data,t)}set(t,e){return ie.visit(this.data,t,e)}indexOf(t,e){return Sr.visit(this.data,t,e)}getByteLength(t){return Oe.visit(this.data,t)}[Symbol.iterator](){return Yr.visit(new G([this.data]))}toArray(){return[...this]}concat(...t){return new Rt(this.schema,[this,...t])}slice(t,e){let[i]=new G([this.data]).slice(t,e).data;return new jt(this.schema,i)}getChild(t){var e;return this.getChildAt(null===(e=this.schema.fields)||void 0===e?void 0:e.findIndex((e=>e.name===t)))}getChildAt(t){return t>-1&&te.name===t)),e)}setChildAt(t,e){let i=this.schema,r=this.data;if(t>-1&&tt.name===e));~t&&(r[t]=this.data.children[t])}return new jt(e,J({type:i,length:this.numRows,children:r}))}selectAt(t){let e=this.schema.selectAt(t),i=t.map((t=>this.data.children[t])).filter(Boolean),r=J({type:new St(e.fields),length:this.numRows,children:i});return new jt(e,r)}};function hp(t,e,i=e.reduce(((t,e)=>Math.max(t,e.length)),0)){var r;let n=[...t.fields],s=[...e],a=(i+63&-64)>>3;for(let[o,l]of t.fields.entries()){let t=e[o];(!t||t.length!==i)&&(n[o]=l.clone({nullable:!0}),s[o]=null!==(r=null==t?void 0:t._changeLengthAndBackfillNullBitmap(i))&&void 0!==r?r:J({type:l.type,length:i,nullCount:i,nullBitmap:new Uint8Array(a)}))}return[t.assign(n),J({type:new St(n),length:i,children:s})]}function yp(t,e,i=new Map){for(let r=-1,n=t.length;++r0&&yp(n.children,s.children,i)}return i}pp=Symbol.toStringTag,jt[pp]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(jt.prototype);var Dr=class extends jt{constructor(t){let e=t.fields.map((t=>J({type:t.type})));super(t,J({type:new St(t.fields),nullCount:0,children:e}))}},is,rs;!function(t){t[t.BUFFER=0]="BUFFER"}(is||(is={})),function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"}(rs||(rs={}));var ai=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsBodyCompression(t,e){return(e||new ai).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsBodyCompression(t,e){return t.setPosition(t.position()+4),(e||new ai).__init(t.readInt32(t.position())+t.position(),t)}codec(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt8(this.bb_pos+t):rs.LZ4_FRAME}method(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt8(this.bb_pos+t):is.BUFFER}static startBodyCompression(t){t.startObject(2)}static addCodec(t,e){t.addFieldInt8(0,e,rs.LZ4_FRAME)}static addMethod(t,e){t.addFieldInt8(1,e,is.BUFFER)}static endBodyCompression(t){return t.endObject()}static createBodyCompression(t,e,i){return ai.startBodyCompression(t),ai.addCodec(t,e),ai.addMethod(t,i),ai.endBodyCompression(t)}},en=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(t,e,i){return t.prep(8,16),t.writeInt64(i),t.writeInt64(e),t.offset()}},rn=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(t,e,i){return t.prep(8,16),t.writeInt64(i),t.writeInt64(e),t.offset()}},le=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsRecordBatch(t,e){return(e||new le).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsRecordBatch(t,e){return t.setPosition(t.position()+4),(e||new le).__init(t.readInt32(t.position())+t.position(),t)}length(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}nodes(t,e){let i=this.bb.__offset(this.bb_pos,6);return i?(e||new rn).__init(this.bb.__vector(this.bb_pos+i)+16*t,this.bb):null}nodesLength(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__vector_len(this.bb_pos+t):0}buffers(t,e){let i=this.bb.__offset(this.bb_pos,8);return i?(e||new en).__init(this.bb.__vector(this.bb_pos+i)+16*t,this.bb):null}buffersLength(){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__vector_len(this.bb_pos+t):0}compression(t){let e=this.bb.__offset(this.bb_pos,10);return e?(t||new ai).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}static startRecordBatch(t){t.startObject(4)}static addLength(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addNodes(t,e){t.addFieldOffset(1,e,0)}static startNodesVector(t,e){t.startVector(16,e,8)}static addBuffers(t,e){t.addFieldOffset(2,e,0)}static startBuffersVector(t,e){t.startVector(16,e,8)}static addCompression(t,e){t.addFieldOffset(3,e,0)}static endRecordBatch(t){return t.endObject()}},$e=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsDictionaryBatch(t,e){return(e||new $e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsDictionaryBatch(t,e){return t.setPosition(t.position()+4),(e||new $e).__init(t.readInt32(t.position())+t.position(),t)}id(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}data(t){let e=this.bb.__offset(this.bb_pos,6);return e?(t||new le).__init(this.bb.__indirect(this.bb_pos+e),this.bb):null}isDelta(){let t=this.bb.__offset(this.bb_pos,8);return!!t&&!!this.bb.readInt8(this.bb_pos+t)}static startDictionaryBatch(t){t.startObject(3)}static addId(t,e){t.addFieldInt64(0,e,t.createLong(0,0))}static addData(t,e){t.addFieldOffset(1,e,0)}static addIsDelta(t,e){t.addFieldInt8(2,+e,0)}static endDictionaryBatch(t){return t.endObject()}},nn;!function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"}(nn||(nn={}));var Ut=class{constructor(){this.bb=null,this.bb_pos=0}__init(t,e){return this.bb_pos=t,this.bb=e,this}static getRootAsMessage(t,e){return(e||new Ut).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,e){return t.setPosition(t.position()+4),(e||new Ut).__init(t.readInt32(t.position())+t.position(),t)}version(){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):rr.V1}headerType(){let t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):nn.NONE}header(t){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__union(t,this.bb_pos+e):null}bodyLength(){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb_pos+t):this.bb.createLong(0,0)}customMetadata(t,e){let i=this.bb.__offset(this.bb_pos,12);return i?(e||new It).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}customMetadataLength(){let t=this.bb.__offset(this.bb_pos,12);return t?this.bb.__vector_len(this.bb_pos+t):0}static startMessage(t){t.startObject(5)}static addVersion(t,e){t.addFieldInt16(0,e,rr.V1)}static addHeaderType(t,e){t.addFieldInt8(1,e,nn.NONE)}static addHeader(t,e){t.addFieldOffset(2,e,0)}static addBodyLength(t,e){t.addFieldInt64(3,e,t.createLong(0,0))}static addCustomMetadata(t,e){t.addFieldOffset(4,e,0)}static createCustomMetadataVector(t,e){t.startVector(4,e.length,4);for(let i=e.length-1;i>=0;i--)t.addOffset(e[i]);return t.endVector()}static startCustomMetadataVector(t,e){t.startVector(4,e,4)}static endMessage(t){return t.endObject()}static finishMessageBuffer(t,e){t.finish(e)}static finishSizePrefixedMessageBuffer(t,e){t.finish(e,void 0,!0)}static createMessage(t,e,i,r,n,s){return Ut.startMessage(t),Ut.addVersion(t,e),Ut.addHeaderType(t,i),Ut.addHeader(t,r),Ut.addBodyLength(t,n),Ut.addCustomMetadata(t,s),Ut.endMessage(t)}},OS=Pt,tl=class extends P{visit(t,e){return null==t||null==e?void 0:super.visit(t,e)}visitNull(t,e){return vi.startNull(e),vi.endNull(e)}visitInt(t,e){return Gt.startInt(e),Gt.addBitWidth(e,t.bitWidth),Gt.addIsSigned(e,t.isSigned),Gt.endInt(e)}visitFloat(t,e){return Se.startFloatingPoint(e),Se.addPrecision(e,t.precision),Se.endFloatingPoint(e)}visitBinary(t,e){return _i.startBinary(e),_i.endBinary(e)}visitBool(t,e){return mi.startBool(e),mi.endBool(e)}visitUtf8(t,e){return wi.startUtf8(e),wi.endUtf8(e)}visitDecimal(t,e){return Kt.startDecimal(e),Kt.addScale(e,t.scale),Kt.addPrecision(e,t.precision),Kt.addBitWidth(e,t.bitWidth),Kt.endDecimal(e)}visitDate(t,e){return ge.startDate(e),ge.addUnit(e,t.unit),ge.endDate(e)}visitTime(t,e){return se.startTime(e),se.addUnit(e,t.unit),se.addBitWidth(e,t.bitWidth),se.endTime(e)}visitTimestamp(t,e){let i=t.timezone&&e.createString(t.timezone)||void 0;return oe.startTimestamp(e),oe.addUnit(e,t.unit),void 0!==i&&oe.addTimezone(e,i),oe.endTimestamp(e)}visitInterval(t,e){return Ie.startInterval(e),Ie.addUnit(e,t.unit),Ie.endInterval(e)}visitList(t,e){return bi.startList(e),bi.endList(e)}visitStruct(t,e){return gi.startStruct_(e),gi.endStruct_(e)}visitUnion(t,e){Jt.startTypeIdsVector(e,t.typeIds.length);let i=Jt.createTypeIdsVector(e,t.typeIds);return Jt.startUnion(e),Jt.addMode(e,t.mode),Jt.addTypeIds(e,i),Jt.endUnion(e)}visitDictionary(t,e){let i=this.visit(t.indices,e);return Re.startDictionaryEncoding(e),Re.addId(e,new OS(t.id,0)),Re.addIsOrdered(e,t.isOrdered),void 0!==i&&Re.addIndexType(e,i),Re.endDictionaryEncoding(e)}visitFixedSizeBinary(t,e){return we.startFixedSizeBinary(e),we.addByteWidth(e,t.byteWidth),we.endFixedSizeBinary(e)}visitFixedSizeList(t,e){return je.startFixedSizeList(e),je.addListSize(e,t.listSize),je.endFixedSizeList(e)}visitMap(t,e){return Ce.startMap(e),Ce.addKeysSorted(e,t.keysSorted),Ce.endMap(e)}},Vo=new tl;function vp(t,e=new Map){return new ot(RS(t,e),Ho(t.customMetadata),e)}function el(t){return new re(t.count,wp(t.columns),jp(t.columns))}function gp(t){return new Te(el(t.data),t.id,t.isDelta)}function RS(t,e){return(t.fields||[]).filter(Boolean).map((t=>Q.fromJSON(t,e)))}function _p(t,e){return(t.children||[]).filter(Boolean).map((t=>Q.fromJSON(t,e)))}function wp(t){return(t||[]).reduce(((t,e)=>[...t,new li(e.count,MS(e.VALIDITY)),...wp(e.children)]),[])}function jp(t,e=[]){for(let i=-1,r=(t||[]).length;++it+ +(0===e)),0)}function Sp(t,e){let i,r,n,s,a,o;return e&&(s=t.dictionary)?e.has(i=s.id)?(r=(r=s.indexType)?mp(r):new di,o=new Ee(e.get(i),r,i,s.isOrdered),n=new Q(t.name,o,t.nullable,Ho(t.customMetadata))):(r=(r=s.indexType)?mp(r):new di,e.set(i,a=bp(t,_p(t,e))),o=new Ee(a,r,i,s.isOrdered),n=new Q(t.name,o,t.nullable,Ho(t.customMetadata))):(a=bp(t,_p(t,e)),n=new Q(t.name,a,t.nullable,Ho(t.customMetadata))),n||null}function Ho(t){return new Map(Object.entries(t||{}))}function mp(t){return new Mt(t.isSigned,t.bitWidth)}function bp(t,e){let i=t.type.name;switch(i){case"NONE":case"null":return new pe;case"binary":return new Bi;case"utf8":return new Ti;case"bool":return new Di;case"list":return new ti((e||[])[0]);case"struct":case"struct_":return new St(e||[])}switch(i){case"int":{let e=t.type;return new Mt(e.isSigned,e.bitWidth)}case"floatingpoint":{let e=t.type;return new ve(xt[e.precision])}case"decimal":{let e=t.type;return new Ei(e.scale,e.precision,e.bitWidth)}case"date":{let e=t.type;return new ki(ee[e.unit])}case"time":{let e=t.type;return new Qe(st[e.unit],e.bitWidth)}case"timestamp":{let e=t.type;return new Oi(st[e.unit],e.timezone)}case"interval":{let e=t.type;return new Ri(he[e.unit])}case"union":{let i=t.type;return new ei(Dt[i.mode],i.typeIds||[],e||[])}case"fixedsizebinary":{let e=t.type;return new Mi(e.byteWidth)}case"fixedsizelist":{let i=t.type;return new ii(i.listSize,(e||[])[0])}case"map":{let i=t.type;return new ri((e||[])[0],i.keysSorted)}}throw new Error(`Unrecognized type: "${i}"`)}var Er=Pt,US=Ni,LS=ye,Ht=class{constructor(t,e,i,r){this._version=e,this._headerType=i,this.body=new Uint8Array(0),r&&(this._createHeader=()=>r),this._bodyLength="number"==typeof t?t:t.low}static fromJSON(t,e){let i=new Ht(0,Yt.V4,e);return i._createHeader=NS(t,e),i}static decode(t){t=new LS(Y(t));let e=Ut.getRootAsMessage(t),i=e.bodyLength(),r=e.version(),n=e.headerType(),s=new Ht(i,r,n);return s._createHeader=PS(e,n),s}static encode(t){let e=new US,i=-1;return t.isSchema()?i=ot.encode(e,t.header()):t.isRecordBatch()?i=re.encode(e,t.header()):t.isDictionaryBatch()&&(i=Te.encode(e,t.header())),Ut.startMessage(e),Ut.addVersion(e,Yt.V4),Ut.addHeader(e,i),Ut.addHeaderType(e,t.headerType),Ut.addBodyLength(e,new Er(t.bodyLength,0)),Ut.finishMessageBuffer(e,Ut.endMessage(e)),e.asUint8Array()}static from(t,e=0){if(t instanceof ot)return new Ht(0,Yt.V4,ft.Schema,t);if(t instanceof re)return new Ht(e,Yt.V4,ft.RecordBatch,t);if(t instanceof Te)return new Ht(e,Yt.V4,ft.DictionaryBatch,t);throw new Error(`Unrecognized Message header: ${t}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===ft.Schema}isRecordBatch(){return this.headerType===ft.RecordBatch}isDictionaryBatch(){return this.headerType===ft.DictionaryBatch}},re=class{constructor(t,e,i){this._nodes=e,this._buffers=i,this._length="number"==typeof t?t:t.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}},Te=class{constructor(t,e,i=!1){this._data=t,this._isDelta=i,this._id="number"==typeof e?e:e.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}},Be=class{constructor(t,e){this.offset="number"==typeof t?t:t.low,this.length="number"==typeof e?e:e.low}},li=class{constructor(t,e){this.length="number"==typeof t?t:t.low,this.nullCount="number"==typeof e?e:e.low}};function NS(t,e){return()=>{switch(e){case ft.Schema:return ot.fromJSON(t);case ft.RecordBatch:return re.fromJSON(t);case ft.DictionaryBatch:return Te.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${ft[e]}, type: ${e} }`)}}function PS(t,e){return()=>{switch(e){case ft.Schema:return ot.decode(t.header(new Et));case ft.RecordBatch:return re.decode(t.header(new le),t.version());case ft.DictionaryBatch:return Te.decode(t.header(new $e),t.version())}throw new Error(`Unrecognized Message type: { name: ${ft[e]}, type: ${e} }`)}}function VS(t,e=new Map){let i=GS(t,e);return new ot(i,zo(t),e)}function HS(t,e=Yt.V4){if(null!==t.compression())throw new Error("Record batch compression not implemented");return new re(t.length(),YS(t),XS(t,e))}function zS(t,e=Yt.V4){return new Te(re.decode(t.data(),e),t.id(),t.isDelta())}function WS(t){return new Be(t.offset(),t.length())}function $S(t){return new li(t.length(),t.nullCount())}function YS(t){let e=[];for(let i,r=-1,n=-1,s=t.nodesLength();++rQ.encode(t,e)));Et.startFieldsVector(t,i.length);let r=Et.createFieldsVector(t,i),n=e.metadata&&e.metadata.size>0?Et.createCustomMetadataVector(t,[...e.metadata].map((([e,i])=>{let r=t.createString(`${e}`),n=t.createString(`${i}`);return It.startKeyValue(t),It.addKey(t,r),It.addValue(t,n),It.endKeyValue(t)}))):-1;return Et.startSchema(t),Et.addFields(t,r),Et.addEndianness(t,iI?nr.Little:nr.Big),-1!==n&&Et.addCustomMetadata(t,n),Et.endSchema(t)}function qS(t,e){let i=-1,r=-1,n=-1,s=e.type,a=e.typeId;L.isDictionary(s)?(a=s.dictionary.typeId,n=Vo.visit(s,t),r=Vo.visit(s.dictionary,t)):r=Vo.visit(s,t);let o=(s.children||[]).map((e=>Q.encode(t,e))),l=Vt.createChildrenVector(t,o),u=e.metadata&&e.metadata.size>0?Vt.createCustomMetadataVector(t,[...e.metadata].map((([e,i])=>{let r=t.createString(`${e}`),n=t.createString(`${i}`);return It.startKeyValue(t),It.addKey(t,r),It.addValue(t,n),It.endKeyValue(t)}))):-1;return e.name&&(i=t.createString(e.name)),Vt.startField(t),Vt.addType(t,r),Vt.addTypeType(t,a),Vt.addChildren(t,l),Vt.addNullable(t,!!e.nullable),-1!==i&&Vt.addName(t,i),-1!==n&&Vt.addDictionary(t,n),-1!==u&&Vt.addCustomMetadata(t,u),Vt.endField(t)}function ZS(t,e){let i=e.nodes||[],r=e.buffers||[];le.startNodesVector(t,i.length);for(let e of i.slice().reverse())li.encode(t,e);let n=t.endVector();le.startBuffersVector(t,r.length);for(let e of r.slice().reverse())Be.encode(t,e);let s=t.endVector();return le.startRecordBatch(t),le.addLength(t,new Er(e.length,0)),le.addNodes(t,n),le.addBuffers(t,s),le.endRecordBatch(t)}function QS(t,e){let i=re.encode(t,e.data);return $e.startDictionaryBatch(t),$e.addId(t,new Er(e.id,0)),$e.addIsDelta(t,e.isDelta),$e.addData(t,i),$e.endDictionaryBatch(t)}function tI(t,e){return rn.createFieldNode(t,new Er(e.length,0),new Er(e.nullCount,0))}function eI(t,e){return en.createBuffer(t,new Er(e.offset,0),new Er(e.length,0))}Q.encode=qS,Q.decode=KS,Q.fromJSON=Sp,ot.encode=JS,ot.decode=VS,ot.fromJSON=vp,re.encode=ZS,re.decode=HS,re.fromJSON=el,Te.encode=QS,Te.decode=zS,Te.fromJSON=gp,li.encode=tI,li.decode=$S,Be.encode=eI,Be.decode=WS;var iI=(()=>{let t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),256===new Int16Array(t)[0]})(),rl=t=>`Expected ${ft[t]} Message in stream, but was null or length 0.`,nl=t=>`Header pointer of flatbuffer-encoded ${ft[t]} Message is null or length 0.`,Fp=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,xp=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`,sn=class{constructor(t){this.source=t instanceof Si?t:new Si(t)}[Symbol.iterator](){return this}next(){let t;return(t=this.readMetadataLength()).done||-1===t.value&&(t=this.readMetadataLength()).done||(t=this.readMetadata(t.value)).done?Ct:t}throw(t){return this.source.throw(t)}return(t){return this.source.return(t)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(rl(t));return e.value}readMessageBody(t){if(t<=0)return new Uint8Array(0);let e=Y(this.source.read(t));if(e.byteLength[...e,...i.VALIDITY&&[i.VALIDITY]||[],...i.TYPE&&[i.TYPE]||[],...i.OFFSET&&[i.OFFSET]||[],...i.DATA&&[i.DATA]||[],...t(i.children)]),[])}(this._body)}readMessage(t){let e;if((e=this.next()).done)return null;if(null!=t&&e.value.headerType!==t)throw new Error(rl(t));return e.value}readSchema(){let t=ft.Schema,e=this.readMessage(t),i=null==e?void 0:e.header();if(!e||!i)throw new Error(nl(t));return i}},Wo=4,il="ARROW1",on=new Uint8Array(il.length);for(let t=0;tthis)):this}readRecordBatch(t){return this._impl.isFile()?this._impl.readRecordBatch(t):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return te.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return te.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof Lt?t:Fs(t)?nI(t):Bs(t)?aI(t):Ge(t)?(()=>O(this,void 0,void 0,(function*(){return yield Lt.from(yield t)})))():Ts(t)||gn(t)||Es(t)||Pe(t)?oI(new Ae(t)):sI(new Si(t))}static readAll(t){return t instanceof Lt?t.isSync()?Tp(t):Dp(t):Fs(t)||ArrayBuffer.isView(t)||Ke(t)||xs(t)?Tp(t):Dp(t)}},Ci=class extends Lt{constructor(t){super(t),this._impl=t}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return be(this,arguments,(function*(){yield it(yield*Mr(Ne(this[Symbol.iterator]())))}))}},ar=class extends Lt{constructor(t){super(t),this._impl=t}readAll(){var t,e;return O(this,void 0,void 0,(function*(){let i=new Array;try{for(var r,n=Ne(this);!(r=yield n.next()).done;){let t=r.value;i.push(t)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&(yield e.call(n))}finally{if(t)throw t.error}}return i}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},lr=class extends Ci{constructor(t){super(t),this._impl=t}},os=class extends ar{constructor(t){super(t),this._impl=t}},Yo=class{constructor(t=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(t){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=t,this.dictionaries=new Map,this}_loadRecordBatch(t,e){let i=this._loadVectors(t,e,this.schema.fields),r=J({type:new St(this.schema.fields),length:t.length,children:i});return new jt(this.schema,r)}_loadDictionaryBatch(t,e){let{id:i,isDelta:r}=t,{dictionaries:n,schema:s}=this,a=n.get(i);if(r||!a){let n=s.dictionaries.get(i),o=this._loadVectors(t.data,e,[n]);return(a&&r?a.concat(new G(o)):new G(o)).memoize()}return a.memoize()}_loadVectors(t,e,i){return new Un(e,t.nodes,t.buffers,this.dictionaries).visitMany(i)}},ln=class extends Yo{constructor(t,e){super(e),this._reader=Fs(t)?new ss(this._handle=t):new sn(this._handle=t)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(t){return this.closed||(this.autoDestroy=Ep(this,t),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(t):Ct}return(t){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(t):Ct}next(){if(this.closed)return Ct;let t,{_reader:e}=this;for(;t=this._readNextMessageAndValidate();)if(t.isSchema())this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;let i=t.header(),r=e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(i,r)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;let i=t.header(),r=e.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(i,r);this.dictionaries.set(i.id,n)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Dr(this.schema)}):this.return()}_readNextMessageAndValidate(t){return this._reader.readMessage(t)}},cn=class extends Yo{constructor(t,e){super(e),this._reader=new ns(this._handle=t)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return O(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(t){return O(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=Ep(this,t),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(t){return O(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(t):Ct}))}return(t){return O(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(t):Ct}))}next(){return O(this,void 0,void 0,(function*(){if(this.closed)return Ct;let t,{_reader:e}=this;for(;t=yield this._readNextMessageAndValidate();)if(t.isSchema())yield this.reset(t.header());else{if(t.isRecordBatch()){this._recordBatchIndex++;let i=t.header(),r=yield e.readMessageBody(t.bodyLength);return{done:!1,value:this._loadRecordBatch(i,r)}}if(t.isDictionaryBatch()){this._dictionaryIndex++;let i=t.header(),r=yield e.readMessageBody(t.bodyLength),n=this._loadDictionaryBatch(i,r);this.dictionaries.set(i.id,n)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Dr(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(t){return O(this,void 0,void 0,(function*(){return yield this._reader.readMessage(t)}))}},Xo=class extends ln{constructor(t,e){super(t instanceof Rn?t:new Rn(t),e)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(t){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(t)}readRecordBatch(t){var e;if(this.closed)return null;this._footer||this.open();let i=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t);if(i&&this._handle.seek(i.offset)){let t=this._reader.readMessage(ft.RecordBatch);if(null!=t&&t.isRecordBatch()){let e=t.header(),i=this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,i)}}return null}_readDictionaryBatch(t){var e;let i=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t);if(i&&this._handle.seek(i.offset)){let t=this._reader.readMessage(ft.DictionaryBatch);if(null!=t&&t.isDictionaryBatch()){let e=t.header(),i=this._reader.readMessageBody(t.bodyLength),r=this._loadDictionaryBatch(e,i);this.dictionaries.set(e.id,r)}}}_readFooter(){let{_handle:t}=this,e=t.size-sl,i=t.readInt32(e),r=t.readAt(e-i,i);return Pi.decode(r)}_readNextMessageAndValidate(t){var e;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return O(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let t of this._footer.dictionaryBatches())t&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield e.open.call(this,t)}))}readRecordBatch(t){var e;return O(this,void 0,void 0,(function*(){if(this.closed)return null;this._footer||(yield this.open());let i=null===(e=this._footer)||void 0===e?void 0:e.getRecordBatch(t);if(i&&(yield this._handle.seek(i.offset))){let t=yield this._reader.readMessage(ft.RecordBatch);if(null!=t&&t.isRecordBatch()){let e=t.header(),i=yield this._reader.readMessageBody(t.bodyLength);return this._loadRecordBatch(e,i)}}return null}))}_readDictionaryBatch(t){var e;return O(this,void 0,void 0,(function*(){let i=null===(e=this._footer)||void 0===e?void 0:e.getDictionaryBatch(t);if(i&&(yield this._handle.seek(i.offset))){let t=yield this._reader.readMessage(ft.DictionaryBatch);if(null!=t&&t.isDictionaryBatch()){let e=t.header(),i=yield this._reader.readMessageBody(t.bodyLength),r=this._loadDictionaryBatch(e,i);this.dictionaries.set(e.id,r)}}}))}_readFooter(){return O(this,void 0,void 0,(function*(){let{_handle:t}=this;t._pending&&(yield t._pending);let e=t.size-sl,i=yield t.readInt32(e),r=yield t.readAt(e-i,i);return Pi.decode(r)}))}_readNextMessageAndValidate(t){return O(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?$o(e)?new lr(new Xo(t.read())):new Ci(new ln(t)):new Ci(new ln(function*(){}()))}function oI(t){return O(this,void 0,void 0,(function*(){let e=yield t.peek(an+7&-8);return e&&e.byteLength>=4?$o(e)?new lr(new Xo(yield t.read())):new ar(new cn(t)):new ar(new cn(function(){return be(this,arguments,(function*(){}))}()))}))}function aI(t){return O(this,void 0,void 0,(function*(){let{size:e}=yield t.stat(),i=new or(t,e);return e>=Bp&&$o(yield i.readAt(0,an+7&-8))?new os(new ol(i)):new ar(new cn(i))}))}var kt=class extends P{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...t){let e=t=>t.flatMap((t=>Array.isArray(t)?e(t):t instanceof jt?t.data.children:t.data)),i=new kt;return i.visitMany(e(t)),i}visit(t){if(t instanceof G)return this.visitMany(t.data),this;let{type:e}=t;if(!L.isDictionary(e)){let{length:i,nullCount:r}=t;if(i>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");L.isNull(e)||ci.call(this,r<=0?new Uint8Array(0):$r(t.offset,i,t.nullBitmap)),this.nodes.push(new li(i,r))}return super.visit(t)}visitNull(t){return this}visitDictionary(t){return this.visit(t.clone(t.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function ci(t){let e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new Be(this._byteLength,e)),this._byteLength+=e,this}function lI(t){let{type:e,length:i,typeIds:r,valueOffsets:n}=t;if(ci.call(this,r),e.mode===Dt.Sparse)return ll.call(this,t);if(e.mode===Dt.Dense){if(t.offset<=0)return ci.call(this,n),ll.call(this,t);{let s=r.reduce(((t,e)=>Math.max(t,e)),r[0]),a=new Int32Array(s+1),o=new Int32Array(s+1).fill(-1),l=new Int32Array(i),u=wn(-n[0],i,n);for(let t,e,n=-1;++n=t.length?ci.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?ci.call(this,$r(t.offset,t.length,e)):ci.call(this,wr(t.values))}function cr(t){return ci.call(this,t.values.subarray(0,t.length*t.stride))}function kp(t){let{length:e,values:i,valueOffsets:r}=t,n=r[0],s=r[e],a=Math.min(s-n,i.byteLength-n);return ci.call(this,wn(-r[0],e,r)),ci.call(this,i.subarray(n,n+a)),this}function cl(t){let{length:e,valueOffsets:i}=t;return i&&ci.call(this,wn(i[0],e,i)),this.visit(t.children[0])}function ll(t){return this.visitMany(t.type.children.map(((e,i)=>t.children[i])).filter(Boolean))[0]}kt.prototype.visitBool=cI,kt.prototype.visitInt=cr,kt.prototype.visitFloat=cr,kt.prototype.visitUtf8=kp,kt.prototype.visitBinary=kp,kt.prototype.visitFixedSizeBinary=cr,kt.prototype.visitDate=cr,kt.prototype.visitTimestamp=cr,kt.prototype.visitTime=cr,kt.prototype.visitDecimal=cr,kt.prototype.visitList=cl,kt.prototype.visitStruct=ll,kt.prototype.visitUnion=lI,kt.prototype.visitInterval=cr,kt.prototype.visitFixedSizeList=cl,kt.prototype.visitMap=cl;var kr=class extends Cr{constructor(t){super(),this._position=0,this._started=!1,this._sink=new ji,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,fe(t)||(t={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!=typeof t.autoDestroy||t.autoDestroy,this._writeLegacyIpcFormat="boolean"==typeof t.writeLegacyIpcFormat&&t.writeLegacyIpcFormat}static throughNode(t){throw new Error('"throughNode" not available in this environment')}static throughDOM(t,e){throw new Error('"throughDOM" not available in this environment')}toString(t=!1){return this._sink.toString(t)}toUint8Array(t=!1){return this._sink.toUint8Array(t)}writeAll(t){return Ge(t)?t.then((t=>this.writeAll(t))):Pe(t)?dl(this,t):ul(this,t)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(t){return this._sink.toDOMStream(t)}toNodeStream(t){return this._sink.toNodeStream(t)}close(){return this.reset()._sink.close()}abort(t){return this.reset()._sink.abort(t)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(t=this._sink,e=null){return t===this._sink||t instanceof ji?this._sink=t:(this._sink=new ji,t&&rh(t)?this.toDOMStream({type:"bytes"}).pipeTo(t):t&&nh(t)&&this.toNodeStream({objectMode:!1}).pipe(t)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,(!e||!Tr(e,this._schema))&&(null==e?(this._position=0,this._schema=null):(this._started=!0,this._schema=e,this._writeSchema(e))),this}write(t){let e=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==t)return this.finish()&&void 0;if(t instanceof Rt&&!(e=t.schema))return this.finish()&&void 0;if(t instanceof jt&&!(e=t.schema))return this.finish()&&void 0;if(e&&!Tr(e,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,e)}t instanceof jt?t instanceof Dr||this._writeRecordBatch(t):t instanceof Rt?this.writeAll(t.batches):Ke(t)&&this.writeAll(t)}_writeMessage(t,e=8){let i=e-1,r=Ht.encode(t),n=r.byteLength,s=this._writeLegacyIpcFormat?4:8,a=n+s+i&~i,o=a-n-s;return t.headerType===ft.RecordBatch?this._recordBatchBlocks.push(new oi(a,t.bodyLength,this._position)):t.headerType===ft.DictionaryBatch&&this._dictionaryBlocks.push(new oi(a,t.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(a-s)),n>0&&this._write(r),this._writePadding(o)}_write(t){if(this._started){let e=Y(t);e&&e.byteLength>0&&(this._sink.write(e),this._position+=e.byteLength)}return this}_writeSchema(t){return this._writeMessage(Ht.from(t))}_writeFooter(t){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(on)}_writePadding(t){return t>0?this._write(new Uint8Array(t)):this}_writeRecordBatch(t){let{byteLength:e,nodes:i,bufferRegions:r,buffers:n}=kt.assemble(t),s=new re(t.numRows,i,r),a=Ht.from(s,e);return this._writeDictionaries(t)._writeMessage(a)._writeBodyBuffers(n)}_writeDictionaryBatch(t,e,i=!1){this._dictionaryDeltaOffsets.set(e,t.length+(this._dictionaryDeltaOffsets.get(e)||0));let{byteLength:r,nodes:n,bufferRegions:s,buffers:a}=kt.assemble(new G([t])),o=new re(t.length,n,s),l=new Te(o,e,i),u=Ht.from(l,r);return this._writeMessage(u)._writeBodyBuffers(a)}_writeBodyBuffers(t){let e,i,r;for(let n=-1,s=t.length;++n0&&(this._write(e),(r=(i+7&-8)-i)>0&&this._writePadding(r));return this}_writeDictionaries(t){for(let[e,i]of t.dictionaries){let t=this._dictionaryDeltaOffsets.get(e)||0;if(0===t||(i=null==i?void 0:i.slice(t)).length>0)for(let r of i.data)this._writeDictionaryBatch(r,e,t>0),t+=r.length}return this}},$i=class extends kr{static writeAll(t,e){let i=new $i(e);return Ge(t)?t.then((t=>i.writeAll(t))):Pe(t)?dl(i,t):ul(i,t)}},Yi=class extends kr{static writeAll(t){let e=new Yi;return Ge(t)?t.then((t=>e.writeAll(t))):Pe(t)?dl(e,t):ul(e,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(t){return this._writeMagic()._writePadding(2)}_writeFooter(t){let e=Pi.encode(new Pi(t,Yt.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(t)._write(e)._write(Int32Array.of(e.byteLength))._writeMagic()}};function ul(t,e){let i=e;e instanceof Rt&&(i=e.batches,t.reset(void 0,e.schema));for(let e of i)t.write(e);return t.finish()}function dl(t,e){var i,r,n,s;return O(this,void 0,void 0,(function*(){try{for(i=Ne(e);!(r=yield i.next()).done;){let e=r.value;t.write(e)}}catch(t){n={error:t}}finally{try{r&&!r.done&&(s=i.return)&&(yield s.call(i))}finally{if(n)throw n.error}}return t.finish()}))}function Op(t,e){if(Pe(t))return dI(t,e);if(Ke(t))return uI(t,e);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function uI(t,e){let i=null,r="bytes"===(null==e?void 0:e.type)||!1,n=(null==e?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(e){s(e,i||(i=t[Symbol.iterator]()))},pull(t){i?s(t,i):t.close()},cancel(){(null==i?void 0:i.return)&&i.return(),i=null}}),Object.assign({highWaterMark:r?n:void 0},e));function s(t,e){let i,n=null,s=t.desiredSize||null;for(;!(n=e.next(r?s:null)).done;)if(ArrayBuffer.isView(n.value)&&(i=Y(n.value))&&(null!=s&&r&&(s=s-i.byteLength+1),n.value=i),t.enqueue(n.value),null!=s&&--s<=0)return;t.close()}}function dI(t,e){let i=null,r="bytes"===(null==e?void 0:e.type)||!1,n=(null==e?void 0:e.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},e),{start(e){return O(this,void 0,void 0,(function*(){yield s(e,i||(i=t[Symbol.asyncIterator]()))}))},pull(t){return O(this,void 0,void 0,(function*(){i?yield s(t,i):t.close()}))},cancel(){return O(this,void 0,void 0,(function*(){(null==i?void 0:i.return)&&(yield i.return()),i=null}))}}),Object.assign({highWaterMark:r?n:void 0},e));function s(t,e){return O(this,void 0,void 0,(function*(){let i,n=null,s=t.desiredSize||null;for(;!(n=yield e.next(r?s:null)).done;)if(ArrayBuffer.isView(n.value)&&(i=Y(n.value))&&(null!=s&&r&&(s=s-i.byteLength+1),n.value=i),t.enqueue(n.value),null!=s&&--s<=0)return;t.close()}))}}function Up(t){return new fl(t)}var fl=class{constructor(t){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{readableStrategy:e,writableStrategy:i,queueingStrategy:r="count"}=t,n=eh(t,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Fr(n),this._getSize="bytes"!==r?Rp:Mp;let{highWaterMark:s=("bytes"===r?Math.pow(2,14):1e3)}=Object.assign({},e),{highWaterMark:a=("bytes"===r?Math.pow(2,14):1e3)}=Object.assign({},i);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:t=>{this._maybeFlush(this._builder,this._controller=t)},start:t=>{this._maybeFlush(this._builder,this._controller=t)}},{highWaterMark:s,size:"bytes"!==r?Rp:Mp}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:a,size:t=>this._writeValueAndReturnChunkSize(t)})}_writeValueAndReturnChunkSize(t){let e=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(t)),this._bufferedSize-e}_maybeFlush(t,e){null!=e&&(this._bufferedSize>=e.desiredSize&&++this._numChunks&&this._enqueue(e,t.toVector()),t.finished&&((t.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(e,t.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(e,null)))}_enqueue(t,e){this._bufferedSize=0,this._controller=null,null==e?t.close():t.enqueue(e)}},Rp=t=>{var e;return null!==(e=null==t?void 0:t.length)&&void 0!==e?e:0},Mp=t=>{var e;return null!==(e=null==t?void 0:t.byteLength)&&void 0!==e?e:0};function Go(t,e){let i=new ji,r=null,n=new ReadableStream({cancel(){return O(this,void 0,void 0,(function*(){yield i.close()}))},start(t){return O(this,void 0,void 0,(function*(){yield s(t,r||(r=yield function(){return O(this,void 0,void 0,(function*(){return yield(yield Lt.from(i)).open(e)}))}()))}))},pull(t){return O(this,void 0,void 0,(function*(){r?yield s(t,r):t.close()}))}});return{writable:new WritableStream(i,Object.assign({highWaterMark:Math.pow(2,14)},t)),readable:n};function s(t,e){return O(this,void 0,void 0,(function*(){let i=t.desiredSize,r=null;for(;!(r=yield e.next()).done;)if(t.enqueue(r.value),null!=i&&--i<=0)return;t.close()}))}}function Ko(t,e){let i=new this(t),r=new Ae(i),n=new ReadableStream({cancel(){return O(this,void 0,void 0,(function*(){yield r.cancel()}))},pull(t){return O(this,void 0,void 0,(function*(){yield s(t)}))},start(t){return O(this,void 0,void 0,(function*(){yield s(t)}))}},Object.assign({highWaterMark:Math.pow(2,14)},e));return{writable:new WritableStream(i,t),readable:n};function s(t){return O(this,void 0,void 0,(function*(){let e=null,i=t.desiredSize;for(;e=yield r.read(i||null);)if(t.enqueue(e),null!=i&&(i-=e.byteLength)<=0)return;t.close()}))}}function Jo(t,e="stream"){return("stream"===e?$i:Yi).writeAll(t).toUint8Array(!0)}var yI=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ca),Ka),Va),Aa),wa),Pa),{compareSchemas:Tr,compareFields:up,compareTypes:dp});function un(t){switch(t.typeId){case C.Binary:return{sqlType:"binary"};case C.Bool:return{sqlType:"bool"};case C.Date:return{sqlType:"date"};case C.DateDay:return{sqlType:"date32[d]"};case C.DateMillisecond:return{sqlType:"date64[ms]"};case C.Decimal:{let e=t;return{sqlType:"decimal",precision:e.precision,scale:e.scale}}case C.Float:return{sqlType:"float"};case C.Float16:return{sqlType:"float16"};case C.Float32:return{sqlType:"float32"};case C.Float64:return{sqlType:"float64"};case C.Int:return{sqlType:"int32"};case C.Int16:return{sqlType:"int16"};case C.Int32:return{sqlType:"int32"};case C.Int64:return{sqlType:"int64"};case C.Uint16:return{sqlType:"uint16"};case C.Uint32:return{sqlType:"uint32"};case C.Uint64:return{sqlType:"uint64"};case C.Uint8:return{sqlType:"uint8"};case C.IntervalDayTime:return{sqlType:"interval[dt]"};case C.IntervalYearMonth:return{sqlType:"interval[m]"};case C.List:return{sqlType:"list",valueType:un(t.valueType)};case C.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:t.byteWidth};case C.Null:return{sqlType:"null"};case C.Utf8:return{sqlType:"utf8"};case C.Struct:return{sqlType:"struct",fields:t.children.map((t=>qo(t.name,t.type)))};case C.Map:{let e=t;return{sqlType:"map",keyType:un(e.keyType),valueType:un(e.valueType)}}case C.Time:return{sqlType:"time[s]"};case C.TimeMicrosecond:return{sqlType:"time[us]"};case C.TimeMillisecond:return{sqlType:"time[ms]"};case C.TimeNanosecond:return{sqlType:"time[ns]"};case C.TimeSecond:return{sqlType:"time[s]"};case C.Timestamp:return{sqlType:"timestamp",timezone:t.timezone||void 0};case C.TimestampSecond:return{sqlType:"timestamp[s]",timezone:t.timezone||void 0};case C.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:t.timezone||void 0};case C.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:t.timezone||void 0};case C.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:t.timezone||void 0}}throw new Error(`unsupported arrow type: ${t.toString()}`)}function qo(t,e){let i=un(e);return i.name=t,i}te.toDOMStream=Op,Bt.throughDOM=Up,Lt.throughDOM=Go,lr.throughDOM=Go,Ci.throughDOM=Go,kr.throughDOM=Ko,Yi.throughDOM=Ko,$i.throughDOM=Ko;var Zo=class{constructor(){this._bindings=null,this._nextMessageId=0}log(t){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:t},[])}sendOK(t){this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"OK",data:null},[])}failWith(t,e){let i={name:e.name,message:e.message,stack:e.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"ERROR",data:i},[])}async onMessage(t){switch(t.type){case"PING":return void this.sendOK(t);case"INSTANTIATE":null!=this._bindings&&this.failWith(t,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(t.data[0],t.data[1],(e=>{this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"INSTANTIATE_PROGRESS",data:e},[])})),this.sendOK(t)}catch(e){this._bindings=null,this.failWith(t,e)}return}if(!this._bindings)return this.failWith(t,new Error("duckdb is not initialized"));try{switch(t.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(t);break;case"OPEN":this._bindings.open(t.data),this.sendOK(t);break;case"DROP_FILE":this._bindings.dropFile(t.data),this.sendOK(t);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(t);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(t);break;case"CONNECT":{let e=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"CONNECTION_INFO",data:e.useUnsafe(((t,e)=>e))},[]);break}case"DISCONNECT":this._bindings.disconnect(t.data),this.sendOK(t);break;case"CREATE_PREPARED":{let e=this._bindings.createPrepared(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"PREPARED_STATEMENT_ID",data:e},[]);break}case"CLOSE_PREPARED":this._bindings.closePrepared(t.data[0],t.data[1]),this.sendOK(t);break;case"RUN_PREPARED":{let e=this._bindings.runPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"RUN_QUERY":{let e=this._bindings.runQuery(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT",data:e},[e.buffer]);break}case"SEND_PREPARED":{let e=this._bindings.sendPrepared(t.data[0],t.data[1],t.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER",data:e},[e.buffer]);break}case"START_PENDING_QUERY":{let e=this._bindings.startPendingQuery(t.data[0],t.data[1]),i=[];e&&i.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},i);break}case"POLL_PENDING_QUERY":{let e=this._bindings.pollPendingQuery(t.data),i=[];e&&i.push(e.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:e},i);break}case"CANCEL_PENDING_QUERY":{let e=this._bindings.cancelPendingQuery(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SUCCESS",data:e},[]);break}case"FETCH_QUERY_RESULTS":{let e=this._bindings.fetchQueryResults(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"QUERY_RESULT_CHUNK",data:e},[e.buffer]);break}case"GET_TABLE_NAMES":{let e=this._bindings.getTableNames(t.data[0],t.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"TABLE_NAMES",data:e},[]);break}case"GLOB_FILE_INFOS":{let e=this._bindings.globFiles(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_INFOS",data:e},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(t.data[0],t.data[1]),this.sendOK(t);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(t.data[0],t.data[1],t.data[2],t.data[3]),this.sendOK(t);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(t.data[0],t.data[1]),this.sendOK(t);break;case"COPY_FILE_TO_BUFFER":{let e=this._bindings.copyFileToBuffer(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_BUFFER",data:e},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(t.data[0],t.data[1]),this.sendOK(t);break;case"EXPORT_FILE_STATISTICS":this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(t.data)},[]);break;case"INSERT_ARROW_FROM_IPC_STREAM":this._bindings.insertArrowFromIPCStream(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"IMPORT_CSV_FROM_PATH":this._bindings.insertCSVFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"IMPORT_JSON_FROM_PATH":this._bindings.insertJSONFromPath(t.data[0],t.data[1],t.data[2]),this.sendOK(t);break;case"TOKENIZE":{let e=this._bindings.tokenize(t.data);this.postMessage({messageId:this._nextMessageId++,requestId:t.messageId,type:"SCRIPT_TOKENS",data:e},[]);break}}}catch(e){return this.failWith(t,e)}}},Pp={},_I=(()=>{var t=Pp.url;return function(e){var i,r,n=typeof(e=e||{})<"u"?e:{};n.ready=new Promise((function(t,e){i=t,r=e}));var s,a,o,l,u=Object.assign({},n),c=[],h="./this.program",d=(t,e)=>{throw e},f="object"==typeof window,p="function"==typeof importScripts,y="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_="";y?(_=p?hl().dirname(_)+"/":__dirname+"/","function"==typeof pa&&(o=Np(),l=hl()),s=(t,e)=>(t=l.normalize(t),o.readFileSync(t,e?void 0:"utf8")),a=t=>{var e=s(t,!0);return e.buffer||(e=new Uint8Array(e)),e},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),c=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof Z))throw t})),process.on("unhandledRejection",(function(t){throw t})),d=(t,e)=>{if(z())throw process.exitCode=t,e;(function(t){t instanceof Z||v("exiting due to exception: "+t)})(e),process.exit(t)},n.inspect=function(){return"[Emscripten Module object]"}):(f||p)&&(p?_=self.location.href:typeof document<"u"&&document.currentScript&&(_=document.currentScript.src),t&&(_=t),_=0!==_.indexOf("blob:")?_.substr(0,_.replace(/[?#].*/,"").lastIndexOf("/")+1):"",s=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(a=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var b,m=n.print||console.log.bind(console),v=n.printErr||console.warn.bind(console);Object.assign(n,u),u=null,n.arguments&&(c=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(d=n.quit),n.wasmBinary&&(b=n.wasmBinary);var g=n.noExitRuntime||!0;"object"!=typeof WebAssembly&&J("no native wasm support detected");var w,j,I=!1;function S(t,e){t||J(e)}var C,A,T,O,B,E,F,D=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function M(t,e,i){for(var r=(e>>>=0)+i,n=e;t[n]&&!(n>=r);)++n;if(n-e>16&&t.buffer&&D)return D.decode(t.subarray(e,n));for(var s="";e>10,56320|1023&u)}}else s+=String.fromCharCode((31&a)<<6|o)}else s+=String.fromCharCode(a)}return s}function U(t,e){return(t>>>=0)?M(T,t,e):""}function x(t,e,i,r){if(!(r>0))return 0;for(var n=i>>>=0,s=i+r-1,a=0;a=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&t.charCodeAt(++a)),o<=127){if(i>=s)break;e[i++>>>0]=o}else if(o<=2047){if(i+1>=s)break;e[i++>>>0]=192|o>>6,e[i++>>>0]=128|63&o}else if(o<=65535){if(i+2>=s)break;e[i++>>>0]=224|o>>12,e[i++>>>0]=128|o>>6&63,e[i++>>>0]=128|63&o}else{if(i+3>=s)break;e[i++>>>0]=240|o>>18,e[i++>>>0]=128|o>>12&63,e[i++>>>0]=128|o>>6&63,e[i++>>>0]=128|63&o}}return e[i>>>0]=0,i-n}function R(t,e,i){return x(t,T,e,i)}function L(t){C=t,n.HEAP8=A=new Int8Array(t),n.HEAP16=O=new Int16Array(t),n.HEAP32=E=new Int32Array(t),n.HEAPU8=T=new Uint8Array(t),n.HEAPU16=B=new Uint16Array(t),n.HEAPU32=F=new Uint32Array(t),n.HEAPF32=new Float32Array(t),n.HEAPF64=new Float64Array(t)}n.INITIAL_MEMORY;var N,k=[],P=[],H=[],V=[];function z(){return g}var W,q,Y=0,$=null,X=null;function J(t){n.onAbort&&n.onAbort(t),v(t="Aborted("+t+")"),I=!0,j=1,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw r(e),e}function K(t){return t.startsWith("data:application/octet-stream;base64,")}function G(t){try{if(t==W&&b)return new Uint8Array(b);if(a)return a(t);throw"both async and sync fetching of the wasm failed"}catch(t){J(t)}}function Z(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function Q(t){for(;t.length>0;)t.shift()(n)}n.locateFile?K(W="./duckdb-mvp.wasm")||(q=W,W=n.locateFile?n.locateFile(q,_):_+q):W=new URL("./duckdb-mvp.wasm",Pp.url).toString();var tt=[],et=0,it=0;function rt(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){F[this.ptr+4>>>2]=t},this.get_type=function(){return F[this.ptr+4>>>2]},this.set_destructor=function(t){F[this.ptr+8>>>2]=t},this.get_destructor=function(){return F[this.ptr+8>>>2]},this.set_refcount=function(t){E[this.ptr>>>2]=t},this.set_caught=function(t){t=t?1:0,A[this.ptr+12>>>0]=t},this.get_caught=function(){return 0!=A[this.ptr+12>>>0]},this.set_rethrown=function(t){t=t?1:0,A[this.ptr+13>>>0]=t},this.get_rethrown=function(){return 0!=A[this.ptr+13>>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=E[this.ptr>>>2];E[this.ptr>>>2]=t+1},this.release_ref=function(){var t=E[this.ptr>>>2];return E[this.ptr>>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){F[this.ptr+16>>>2]=t},this.get_adjusted_ptr=function(){return F[this.ptr+16>>>2]},this.get_exception_ptr=function(){if(qt(this.get_type()))return F[this.excPtr>>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}function nt(t){return Nt(new rt(t).ptr)}var st=[];function at(t){var e=st[t];return e||(t>=st.length&&(st.length=t+1),st[t]=e=N.get(t)),e}var ot={varargs:void 0,get:function(){return ot.varargs+=4,E[ot.varargs-4>>>2]},getStr:function(t){return U(t)}};function lt(){v("missing function: $SOCKFS"),J(-1)}function ut(){v("missing function: $FS"),J(-1)}function ct(t){var e=lt.getSocket(t);if(!e)throw new ut.ErrnoError(8);return e}function ht(t){return(255&t)+"."+(t>>8&255)+"."+(t>>16&255)+"."+(t>>24&255)}function dt(t){var e="",i=0,r=0,n=0,s=0,a=0,o=0,l=[65535&t[0],t[0]>>16,65535&t[1],t[1]>>16,65535&t[2],t[2]>>16,65535&t[3],t[3]>>16],u=!0,c="";for(o=0;o<5;o++)if(0!==l[o]){u=!1;break}if(u){if(c=ht(l[6]|l[7]<<16),-1===l[5])return(e="::ffff:")+c;if(0===l[5])return"0.0.0.0"===c&&(c=""),"0.0.0.1"===c&&(c="1"),(e="::")+c}for(i=0;i<8;i++)0===l[i]&&(i-n>1&&(a=0),n=i,a++),a>r&&(s=i-(r=a)+1);for(i=0;i<8;i++)r>1&&0===l[i]&&i>=s&&i>>1],n=Rt(B[t+2>>>1]);switch(r){case 2:if(16!==e)return{errno:28};i=ht(i=E[t+4>>>2]);break;case 10:if(28!==e)return{errno:28};i=dt(i=[E[t+8>>>2],E[t+12>>>2],E[t+16>>>2],E[t+20>>>2]]);break;default:return{errno:5}}return{family:r,addr:i,port:n}}function pt(t){for(var e=t.split("."),i=0;i<4;i++){var r=Number(e[i]);if(isNaN(r))return null;e[i]=r}return(e[0]|e[1]<<8|e[2]<<16|e[3]<<24)>>>0}function yt(t){return parseInt(t)}function _t(t){var e,i,r,n,s=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(t))return null;if("::"===t)return[0,0,0,0,0,0,0,0];for((t=t.startsWith("::")?t.replace("::","Z:"):t.replace("::",":Z:")).indexOf(".")>0?((e=(t=t.replace(new RegExp("[.]","g"),":")).split(":"))[e.length-4]=yt(e[e.length-4])+256*yt(e[e.length-3]),e[e.length-3]=yt(e[e.length-2])+256*yt(e[e.length-1]),e=e.slice(0,e.length-2)):e=t.split(":"),r=0,n=0,i=0;i>>2]=16),O[t>>>1]=e,E[t+4>>>2]=i,O[t+2>>>1]=xt(r);break;case 10:i=_t(i),vt(t,28),n&&(E[n>>>2]=28),E[t>>>2]=e,E[t+8>>>2]=i[0],E[t+12>>>2]=i[1],E[t+16>>>2]=i[2],E[t+20>>>2]=i[3],O[t+2>>>1]=xt(r);break;default:return 5}return 0}var wt,jt="To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking";function It(t){try{return w.grow(t-C.byteLength+65535>>>16),L(w.buffer),1}catch(t){}}wt=y?()=>{var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:()=>performance.now();var St={};function Ct(){if(!Ct.strings){var t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:h||"./this.program"};for(var e in St)void 0===St[e]?delete t[e]:t[e]=St[e];var i=[];for(var e in t)i.push(e+"="+t[e]);Ct.strings=i}return Ct.strings}var At=[null,[],[]];function Tt(t,e){var i=At[t];0===e||10===e?((1===t?m:v)(M(i,0)),i.length=0):i.push(e)}function Ot(t){return t%4==0&&(t%100!=0||t%400==0)}var Bt=[31,29,31,30,31,30,31,31,30,31,30,31],Et=[31,28,31,30,31,30,31,31,30,31,30,31];function Ft(t,e){A.set(t,e>>>0)}var Dt,Mt={p:function(t,e,i,r){J("Assertion failed: "+U(t)+", at: "+[e?U(e):"unknown filename",i,r?U(r):"unknown function"])},i:function(t){return Lt(t+24)+24},B:function(t){var e=new rt(t);return e.get_caught()||(e.set_caught(!0),et--),e.set_rethrown(!1),tt.push(e),function(t){t.add_ref()}(e),e.get_exception_ptr()},G:function(){kt(0),function(t){if(t.release_ref()&&!t.get_rethrown()){var e=t.get_destructor();e&&at(e)(t.excPtr),nt(t.excPtr)}}(tt.pop()),it=0},a:function(){var t=it;if(!t)return Pt(0),0;var e=new rt(t);e.set_adjusted_ptr(t);var i=e.get_type();if(!i)return Pt(0),t;for(var r=0;r>>2]:0,o=e?E[e+4>>>2]:0,l=i?E[i>>>2]:0,u=i?E[i+4>>>2]:0,c=r?E[r>>>2]:0,h=r?E[r+4>>>2]:0,d=0,f=0,p=0,y=0,_=0,b=0,m=(e?E[e>>>2]:0)|(i?E[i>>>2]:0)|(r?E[r>>>2]:0),v=(e?E[e+4>>>2]:0)|(i?E[i+4>>>2]:0)|(r?E[r+4>>>2]:0),g=function(t,e,i,r){return t<32?e&r:i&r},w=0;w>>2]=d,E[e+4>>>2]=f),i&&(E[i>>>2]=p,E[i+4>>>2]=y),r&&(E[r>>>2]=_,E[r+4>>>2]=b),s},Ga:function(t,e,i){var r=ct(t),n=mt(e,i);return r.sock_ops.bind(r,n.addr,n.port),0},Fa:function(t,e,i){var r=ct(t),n=mt(e,i);return r.sock_ops.connect(r,n.addr,n.port),0},gf:function(t,e,i,r){},T:function(t,e,i){return ot.varargs=i,0},Ta:function(t,e){},Ie:function(t,e,i){},Pa:function(t,e,i){},Aa:function(t,e,i){var r=ct(t);return r.daddr?(gt(e,r.family,bt.lookup_name(r.daddr),r.dport,i),0):-53},Ba:function(t,e,i,r,n){var s=ct(t);return 1===e&&4===i?(E[r>>>2]=s.error,E[n>>>2]=4,s.error=null,0):-50},Va:function(t,e,i){return ot.varargs=i,0},Qa:function(t,e){},Ua:function(t,e,i){},Ra:function(t,e,i,r){},oa:function(t,e,i,r){ot.varargs=r},Da:function(t,e,i,r,n,s){var a=ct(t),o=a.sock_ops.recvmsg(a,i);return o?(n&>(n,a.family,bt.lookup_name(o.addr),o.port,s),T.set(o.buffer,e>>>0),o.buffer.byteLength):0},ef:function(t,e,i,r){},ma:function(t){},Ea:function(t,e,i,r,n,s){},ja:function(t,e,i){},Sa:function(t,e){},na:function(t,e,i){},Ia:function(t){},Ka:function(t,e){J(jt)},Ja:function(t,e){J(jt)},Wa:function(){return!0},ba:function(){J("")},Ze:function(t,e){return globalThis.DUCKDB_RUNTIME.createDirectory(n,t,e)},_e:function(t,e){return globalThis.DUCKDB_RUNTIME.checkDirectory(n,t,e)},Xe:function(t,e){return globalThis.DUCKDB_RUNTIME.listDirectoryEntries(n,t,e)},Ye:function(t,e){return globalThis.DUCKDB_RUNTIME.removeDirectory(n,t,e)},va:function(t){return globalThis.DUCKDB_RUNTIME.closeFile(n,t)},Ve:function(t,e){return globalThis.DUCKDB_RUNTIME.checkFile(n,t,e)},eb:function(t){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(n,t)},We:function(t,e,i,r){return globalThis.DUCKDB_RUNTIME.moveFile(n,t,e,i,r)},af:function(t,e){return globalThis.DUCKDB_RUNTIME.openFile(n,t,e)},ea:function(t,e,i,r){return globalThis.DUCKDB_RUNTIME.readFile(n,t,e,i,r)},$e:function(t,e){return globalThis.DUCKDB_RUNTIME.truncateFile(n,t,e)},wa:function(t,e,i,r){return globalThis.DUCKDB_RUNTIME.writeFile(n,t,e,i,r)},bf:function(t){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(t)},Ue:function(t,e){return globalThis.DUCKDB_RUNTIME.glob(n,t,e)},ua:function(t){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(n,t)},cf:function(t,e,i,r,s,a){return globalThis.DUCKDB_RUNTIME.callScalarUDF(n,t,e,i,r,s,a)},Xa:function(){return Date.now()},Ya:function(){return 4294901760},Re:wt,Hb:function(t,e,i){T.copyWithin(t>>>0,e>>>0,e+i>>>0)},Ad:function(t){var e,i=T.length,r=4294901760;if((t>>>=0)>r)return!1;for(var n=1;n<=4;n*=2){var s=i*(1+.2/n);if(s=Math.min(s,t+100663296),It(Math.min(r,(e=Math.max(t,s))+(65536-e%65536)%65536)))return!0}return!1},bb:function(t,e){var i=0;return Ct().forEach((function(r,n){var s=e+i;F[t+4*n>>>2]=s,function(t,e,i){for(var r=0;r>>0]=t.charCodeAt(r);A[e>>>0]=0}(r,s),i+=r.length+1})),0},mb:function(t,e){var i=Ct();F[t>>>2]=i.length;var r=0;return i.forEach((function(t){r+=t.length+1})),F[e>>>2]=r,0},Z:function(t){return 52},He:function(t,e,i,r,n,s){return 52},yb:function(t,e,i,r,n,s){return 52},qa:function(t,e,i,r){return 52},Qe:function(t,e,i,r,n){return 70},ff:function(t){return 52},ha:function(t,e,i,r){for(var n=0,s=0;s>>2],o=F[e+4>>>2];e+=8;for(var l=0;l>>0]);n+=o}return F[r>>>2]=n,0},Ha:function(t,e,i,r){var n,s=0,a=0,o=0,l=0,u=0,c=0;function h(t,e,i,r,n,s){var a,o,l;return o=10===t?28:16,n=10===t?dt(n):ht(n),S(!gt(a=Lt(o),t,n,s)),l=Lt(32),E[l+4>>>2]=t,E[l+8>>>2]=e,E[l+12>>>2]=i,E[l+24>>>2]=r,F[l+20>>>2]=a,E[l+16>>>2]=10===t?28:16,E[l+28>>>2]=0,l}if(i&&(o=E[i>>>2],l=E[i+4>>>2],u=E[i+8>>>2],c=E[i+12>>>2]),u&&!c&&(c=2===u?17:6),!u&&c&&(u=17===c?2:1),0===c&&(c=6),0===u&&(u=1),!t&&!e)return-2;if(-1088&o||0!==i&&2&E[i>>>2]&&!t)return-1;if(32&o)return-2;if(0!==u&&1!==u&&2!==u)return-7;if(0!==l&&2!==l&&10!==l)return-6;if(e&&(e=U(e),a=parseInt(e,10),isNaN(a)))return 1024&o?-2:-8;if(!t)return 0===l&&(l=2),0==(1&o)&&(s=2===l?Ut(2130706433):[0,0,0,1]),n=h(l,u,c,null,s,a),F[r>>>2]=n,0;if(null!==(s=pt(t=U(t))))if(0===l||2===l)l=2;else{if(!(10===l&&8&o))return-2;s=[0,0,Ut(65535),s],l=10}else if(null!==(s=_t(t))){if(0!==l&&10!==l)return-2;l=10}return null!=s?(n=h(l,u,c,t,s,a),F[r>>>2]=n,0):4&o?-2:(s=pt(t=bt.lookup_name(t)),0===l?l=2:10===l&&(s=[0,0,Ut(65535),s]),n=h(l,u,c,null,s,a),F[r>>>2]=n,0)},Oa:function t(e,i){t.randomDevice||(t.randomDevice=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var t=new Uint8Array(1);return()=>(crypto.getRandomValues(t),t[0])}if(y)try{var e=pa("crypto");return()=>e.randomBytes(1)[0]}catch(t){}return()=>J("randomDevice")}());for(var r=0;r>>0]=t.randomDevice();return 0},za:function(t,e,i,r,n,s,a){var o=ft(t,e);if(o.errno)return-6;var l=o.port,u=o.addr,c=!1;if(i&&r){var h;if(1&a||!(h=bt.lookup_addr(u))){if(8&a)return-2}else u=h;R(u,i,r)+1>=r&&(c=!0)}return n&&s&&R(l=""+l,n,s)+1>=s&&(c=!0),c?-12:0},sa:function(t){var e=Ht();try{return at(t)()}catch(t){if(Vt(e),t!==t+0)throw t;kt(1,0)}},M:function(t,e){var i=Ht();try{return at(t)(e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},_:function(t,e,i){var r=Ht();try{return at(t)(e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},ia:function(t,e,i,r){var n=Ht();try{return at(t)(e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},S:function(t,e,i,r,n,s,a){var o=Ht();try{return at(t)(e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Zb:function(t,e,i,r,n,s,a){var o=Ht();try{return Br(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},ta:function(t){var e=Ht();try{return at(t)()}catch(t){if(Vt(e),t!==t+0)throw t;kt(1,0)}},$:function(t,e){var i=Ht();try{return at(t)(e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},ra:function(t,e,i,r){var n=Ht();try{return at(t)(e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},_b:function(t,e,i,r,n,s,a){var o=Ht();try{return Or(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},v:function(t){var e=Ht();try{return at(t)()}catch(t){if(Vt(e),t!==t+0)throw t;kt(1,0)}},ka:function(t,e){var i=Ht();try{return at(t)(e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},t:function(t,e,i){var r=Ht();try{return at(t)(e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},aa:function(t,e,i,r,n){var s=Ht();try{return at(t)(e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},la:function(t,e){var i=Ht();try{return at(t)(e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},u:function(t,e,i){var r=Ht();try{return at(t)(e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},c:function(t,e){var i=Ht();try{return at(t)(e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},fa:function(t,e,i){var r=Ht();try{return at(t)(e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},P:function(t,e,i,r,n){var s=Ht();try{return at(t)(e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},b:function(t,e,i){var r=Ht();try{return at(t)(e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},X:function(t,e,i,r){var n=Ht();try{return at(t)(e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},Ub:function(t,e,i,r,n,s){var a=Ht();try{return xr(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},Pb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return Vr(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},g:function(t,e,i,r){var n=Ht();try{return at(t)(e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},La:function(t,e,i,r,n){var s=Ht();try{return at(t)(e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},Nb:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return Wr(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},l:function(t,e,i,r,n){var s=Ht();try{return at(t)(e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},pa:function(t,e,i,r,n,s){var a=Ht();try{return at(t)(e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},n:function(t,e,i,r,n,s){var a=Ht();try{return at(t)(e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},Ma:function(t,e,i,r,n,s,a,o){var l=Ht();try{return at(t)(e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},x:function(t,e,i,r,n,s,a){var o=Ht();try{return at(t)(e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},y:function(t,e,i,r,n,s,a,o){var l=Ht();try{return at(t)(e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},O:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return at(t)(e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},U:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return at(t)(e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},da:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return at(t)(e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},z:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{return at(t)(e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},A:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{return at(t)(e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},H:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_){var b=Ht();try{return at(t)(e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_)}catch(t){if(Vt(b),t!==t+0)throw t;kt(1,0)}},s:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_,b){var m=Ht();try{return at(t)(e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_,b)}catch(t){if(Vt(m),t!==t+0)throw t;kt(1,0)}},bc:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f){var p=Ht();try{return Lr(t,e,i,r,n,s,a,o,l,u,c,h,d,f)}catch(t){if(Vt(p),t!==t+0)throw t;kt(1,0)}},Tb:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{return Nr(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},jc:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{return jr(t,e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},qe:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return tr(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Lb:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return Yr(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},cc:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return Rr(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Ob:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return zr(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},$b:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return Er(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},_d:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return be(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},re:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Qi(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Hc:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return er(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Sb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return kr(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},db:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return Cn(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},jd:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_,b){var m=Ht();try{return oi(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_,b)}catch(t){if(Vt(m),t!==t+0)throw t;kt(1,0)}},Me:function(t,e,i,r,n,s,a){var o=Ht();try{return $t(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Yb:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Ie(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Qd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return Pe(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Yc:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return Ri(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},fc:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return Ar(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Le:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return Xt(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Cb:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return en(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},_a:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{return Bn(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},pe:function(t,e,i,r,n,s){var a=Ht();try{return fe(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},ac:function(t,e,i,r,n,s,a){var o=Ht();try{return Fr(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Xb:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Dr(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},vd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return ti(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},se:function(t,e,i,r,n,s,a,o){var l=Ht();try{return me(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},hd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return ci(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},id:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return ui(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Mb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return qr(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Db:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{return rn(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},we:function(t,e,i,r,n){var s=Ht();try{return he(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},fe:function(t,e,i,r,n,s){var a=Ht();try{return ye(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},Zd:function(t,e,i,r,n,s,a){var o=Ht();try{return ve(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Rd:function(t,e,i,r,n,s,a,o){var l=Ht();try{return ke(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Nd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return ze(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},ke:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return Ei(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},pb:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return mn(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},De:function(t,e,i,r,n,s,a){var o=Ht();try{return se(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},ge:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Ui(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},gd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return hi(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Qb:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return Hr(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},Rb:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{return Pr(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},Bb:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return nn(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},je:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return Fi(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},cb:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return On(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},sd:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return ri(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},Ke:function(t,e,i,r){var n=Ht();try{return Zt(t,e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},ne:function(t,e,i,r,n){var s=Ht();try{return pe(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},me:function(t,e,i,r,n,s){var a=Ht();try{return Ce(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},ve:function(t,e,i,r,n,s,a){var o=Ht();try{return ln(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Vd:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Ge(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},kb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return gn(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},kc:function(t,e,i,r,n,s,a,o){var l=Ht();try{return gr(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},$d:function(t,e,i,r,n,s){var a=Ht();try{return _e(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},Xd:function(t,e,i,r,n,s,a){var o=Ht();try{return Se(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Wd:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Ae(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Md:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return qe(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Ld:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return Ye(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Ed:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return xe(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},Uc:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Ji(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},yc:function(t,e,i){var r=Ht();try{return sr(t,e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},Gd:function(t,e,i,r){var n=Ht();try{return Ee(t,e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},vc:function(t,e,i,r,n){var s=Ht();try{return cr(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},Bd:function(t,e,i,r,n,s){var a=Ht();try{return Ne(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},zc:function(t,e,i,r,n,s,a,o){var l=Ht();try{return on(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Ge:function(t){var e=Ht();try{return Kt(t)}catch(t){if(Vt(e),t!==t+0)throw t;kt(1,0)}},Jc:function(t,e){var i=Ht();try{return Gi(t,e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},Ic:function(t,e){var i=Ht();try{return Zi(t,e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},Pe:function(t,e){var i=Ht();try{return Gt(t,e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},Oe:function(t,e,i){var r=Ht();try{return ge(t,e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},oe:function(t,e,i,r){var n=Ht();try{return we(t,e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},Te:function(t,e,i,r,n){var s=Ht();try{return Yt(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},xd:function(t,e,i,r,n,s){var a=Ht();try{return Ke(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},Ec:function(t,e,i,r,n,s,a){var o=Ht();try{return Jr(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},dc:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Tr(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Gc:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return $r(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},Ib:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{return Zr(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},Wc:function(t,e,i,r,n,s,a){var o=Ht();try{return Ni(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},gc:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Cr(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Jb:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return Gr(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},rd:function(t,e,i,r,n,s){var a=Ht();try{return ai(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},ld:function(t,e,i,r,n,s,a){var o=Ht();try{return yi(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Pc:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Pi(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Gb:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return Qr(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Ab:function(t,e,i,r,n,s,a,o){var l=Ht();try{return sn(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},ic:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{return Ir(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},be:function(t,e,i,r,n){var s=Ht();try{return ni(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},nd:function(t,e,i,r,n,s){var a=Ht();try{return Si(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},ed:function(t,e,i,r,n,s,a){var o=Ht();try{return gi(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Qc:function(t,e,i,r,n,s,a,o){var l=Ht();try{return Hi(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Dc:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{return Kr(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},ae:function(t,e,i,r){var n=Ht();try{return je(t,e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},bd:function(t,e,i,r,n,s,a){var o=Ht();try{return wi(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},$a:function(t,e,i,r,n,s,a,o){var l=Ht();try{return An(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},_c:function(t,e,i,r,n,s,a){var o=Ht();try{return bi(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},rb:function(t,e,i,r,n,s){var a=Ht();try{return pn(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},ad:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{return vi(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},xe:function(t,e,i){var r=Ht();try{return ue(t,e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},lc:function(t,e,i,r){var n=Ht();try{return mr(t,e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},Ac:function(t,e,i,r,n,s,a){var o=Ht();try{return or(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},rc:function(t,e,i,r,n){var s=Ht();try{return ar(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},mc:function(t,e,i,r,n,s,a){var o=Ht();try{return br(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},nc:function(t,e,i,r,n,s,a,o){var l=Ht();try{return _r(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},qc:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{return ur(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},o:function(t){var e=Ht();try{at(t)()}catch(t){if(Vt(e),t!==t+0)throw t;kt(1,0)}},hf:function(t,e,i,r){var n=Ht();try{at(t)(e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},jf:function(t,e,i,r){var n=Ht();try{at(t)(e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},j:function(t,e){var i=Ht();try{at(t)(e)}catch(t){if(Vt(i),t!==t+0)throw t;kt(1,0)}},D:function(t,e,i){var r=Ht();try{at(t)(e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},ub:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{hn(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},J:function(t,e,i){var r=Ht();try{at(t)(e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},vb:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{cn(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},e:function(t,e,i){var r=Ht();try{at(t)(e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},Q:function(t,e,i,r){var n=Ht();try{at(t)(e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},Y:function(t,e,i,r,n,s){var a=Ht();try{at(t)(e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},f:function(t,e,i,r){var n=Ht();try{at(t)(e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},k:function(t,e,i,r,n){var s=Ht();try{at(t)(e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},df:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{at(t)(e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},r:function(t,e,i,r,n,s){var a=Ht();try{at(t)(e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},q:function(t,e,i,r,n,s,a){var o=Ht();try{at(t)(e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},ya:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{at(t)(e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},C:function(t,e,i,r,n,s,a,o){var l=Ht();try{at(t)(e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},L:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{at(t)(e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},W:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{at(t)(e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},K:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{at(t)(e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},N:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{at(t)(e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},Na:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f){var p=Ht();try{at(t)(e,i,r,n,s,a,o,l,u,c,h,d,f)}catch(t){if(Vt(p),t!==t+0)throw t;kt(1,0)}},ca:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y){var _=Ht();try{at(t)(e,i,r,n,s,a,o,l,u,c,h,d,f,p,y)}catch(t){if(Vt(_),t!==t+0)throw t;kt(1,0)}},Kd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{Ue(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Wb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Mr(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},tb:function(t,e,i,r,n,s,a,o){var l=Ht();try{dn(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},kd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{pi(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},tc:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{fr(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},wc:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{dr(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},xb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Ti(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},nb:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{bn(t,e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},ze:function(t,e,i,r,n,s,a){var o=Ht();try{le(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Fc:function(t,e,i,r,n,s,a,o){var l=Ht();try{vr(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},wd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{Qe(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Vb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Ur(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Cd:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{Le(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},Dd:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{Re(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},sc:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p){var y=Ht();try{nr(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p)}catch(t){if(Vt(y),t!==t+0)throw t;kt(1,0)}},Rc:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{qi(t,e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},Ae:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{mi(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Kb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Xr(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},ye:function(t,e,i,r,n,s){var a=Ht();try{ae(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},zd:function(t,e,i,r,n,s,a){var o=Ht();try{$e(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Jd:function(t,e,i,r,n,s,a,o){var l=Ht();try{Me(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Zc:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{xi(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Nc:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y){var _=Ht();try{$i(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y)}catch(t){if(Vt(_),t!==t+0)throw t;kt(1,0)}},Eb:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{Ci(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},ab:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Tn(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Fb:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{tn(t,e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},hc:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{Sr(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},lb:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{vn(t,e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},te:function(t,e,i,r,n,s,a,o){var l=Ht();try{ie(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},de:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{Oi(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},fd:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{_i(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Lc:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{Wi(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},Tc:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{Vi(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},Hd:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Be(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Vc:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{ki(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},jb:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{wn(t,e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},Fe:function(t,e,i,r,n){var s=Ht();try{Qt(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},Je:function(t,e,i,r,n,s){var a=Ht();try{re(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},Ne:function(t,e,i,r,n,s,a){var o=Ht();try{Jt(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},yd:function(t,e,i,r,n,s,a,o){var l=Ht();try{Xe(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Pd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{He(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Od:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Ve(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},oc:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{yr(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},Oc:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{Yi(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},dd:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{ji(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},$c:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{Ai(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},md:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{li(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},ob:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{yn(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},ee:function(t,e,i,r,n,s,a,o){var l=Ht();try{oe(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},ib:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{En(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Mc:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_,b){var m=Ht();try{Xi(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_,b)}catch(t){if(Vt(m),t!==t+0)throw t;kt(1,0)}},qb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{_n(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Se:function(t,e,i,r,n,s,a){var o=Ht();try{ee(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Ce:function(t,e,i,r,n,s,a,o){var l=Ht();try{te(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},ec:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{wr(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},le:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{Bi(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},he:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{Mi(t,e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},ie:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p){var y=Ht();try{Di(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p)}catch(t){if(Vt(y),t!==t+0)throw t;kt(1,0)}},pd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{si(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Fd:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Fe(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},Be:function(t,e,i,r){var n=Ht();try{de(t,e,i,r)}catch(t){if(Vt(n),t!==t+0)throw t;kt(1,0)}},ue:function(t,e,i,r,n){var s=Ht();try{ce(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},ud:function(t,e,i,r,n,s){var a=Ht();try{ei(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},Yd:function(t,e,i,r,n,s,a){var o=Ht();try{We(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Sd:function(t,e,i,r,n,s,a,o){var l=Ht();try{De(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Td:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{Je(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},cd:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{Ii(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},wb:function(t,e,i,r,n,s,a,o,l,u){var c=Ht();try{un(t,e,i,r,n,s,a,o,l,u)}catch(t){if(Vt(c),t!==t+0)throw t;kt(1,0)}},td:function(t,e,i,r,n,s,a){var o=Ht();try{ii(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},Cc:function(t,e,i,r,n,s,a,o){var l=Ht();try{ir(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},Kc:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_){var b=Ht();try{Ki(t,e,i,r,n,s,a,o,l,u,c,h,d,f,p,y,_)}catch(t){if(Vt(b),t!==t+0)throw t;kt(1,0)}},Id:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{Oe(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},hb:function(t,e,i,r,n,s,a,o,l,u,c,h,d,f){var p=Ht();try{In(t,e,i,r,n,s,a,o,l,u,c,h,d,f)}catch(t){if(Vt(p),t!==t+0)throw t;kt(1,0)}},Sc:function(t,e,i,r,n,s,a,o,l,u,c,h,d){var f=Ht();try{zi(t,e,i,r,n,s,a,o,l,u,c,h,d)}catch(t){if(Vt(f),t!==t+0)throw t;kt(1,0)}},sb:function(t,e,i,r,n,s,a,o,l,u,c,h){var d=Ht();try{fn(t,e,i,r,n,s,a,o,l,u,c,h)}catch(t){if(Vt(d),t!==t+0)throw t;kt(1,0)}},Ud:function(t,e,i,r,n,s){var a=Ht();try{Te(t,e,i,r,n,s)}catch(t){if(Vt(a),t!==t+0)throw t;kt(1,0)}},Xc:function(t,e,i,r,n,s,a){var o=Ht();try{Li(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},fb:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{jn(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},gb:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{Sn(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},Bc:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{rr(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},Ee:function(t,e,i,r,n,s,a,o){var l=Ht();try{ne(t,e,i,r,n,s,a,o)}catch(t){if(Vt(l),t!==t+0)throw t;kt(1,0)}},qd:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{fi(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},zb:function(t,e,i){var r=Ht();try{an(t,e,i)}catch(t){if(Vt(r),t!==t+0)throw t;kt(1,0)}},uc:function(t,e,i,r,n){var s=Ht();try{lr(t,e,i,r,n)}catch(t){if(Vt(s),t!==t+0)throw t;kt(1,0)}},xc:function(t,e,i,r,n,s,a){var o=Ht();try{hr(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},pc:function(t,e,i,r,n,s,a,o,l){var u=Ht();try{pr(t,e,i,r,n,s,a,o,l)}catch(t){if(Vt(u),t!==t+0)throw t;kt(1,0)}},ce:function(t,e,i,r,n,s,a){var o=Ht();try{Ze(t,e,i,r,n,s,a)}catch(t){if(Vt(o),t!==t+0)throw t;kt(1,0)}},od:function(t,e,i,r,n,s,a,o,l,u,c){var h=Ht();try{di(t,e,i,r,n,s,a,o,l,u,c)}catch(t){if(Vt(h),t!==t+0)throw t;kt(1,0)}},E:function(t){return t},Za:function(t,e,i,r,n){return function(t,e,i,r){var n=E[r+40>>>2],s={tm_sec:E[r>>>2],tm_min:E[r+4>>>2],tm_hour:E[r+8>>>2],tm_mday:E[r+12>>>2],tm_mon:E[r+16>>>2],tm_year:E[r+20>>>2],tm_wday:E[r+24>>>2],tm_yday:E[r+28>>>2],tm_isdst:E[r+32>>>2],tm_gmtoff:E[r+36>>>2],tm_zone:n?U(n):""},a=U(i),o={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in o)a=a.replace(new RegExp(l,"g"),o[l]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,i){for(var r="number"==typeof t?t.toString():t||"";r.length0?1:0}var r;return 0===(r=i(t.getFullYear()-e.getFullYear()))&&0===(r=i(t.getMonth()-e.getMonth()))&&(r=i(t.getDate()-e.getDate())),r}function p(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function y(t){var e=function(t,e){for(var i=new Date(t.getTime());e>0;){var r=Ot(i.getFullYear()),n=i.getMonth(),s=(r?Bt:Et)[n];if(!(e>s-i.getDate()))return i.setDate(i.getDate()+e),i;e-=s-i.getDate()+1,i.setDate(1),n<11?i.setMonth(n+1):(i.setMonth(0),i.setFullYear(i.getFullYear()+1))}return i}(new Date(t.tm_year+1900,0,1),t.tm_yday),i=new Date(e.getFullYear(),0,4),r=new Date(e.getFullYear()+1,0,4),n=p(i),s=p(r);return f(n,e)<=0?f(s,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var _={"%a":function(t){return u[t.tm_wday].substring(0,3)},"%A":function(t){return u[t.tm_wday]},"%b":function(t){return c[t.tm_mon].substring(0,3)},"%B":function(t){return c[t.tm_mon]},"%C":function(t){return d((t.tm_year+1900)/100|0,2)},"%d":function(t){return d(t.tm_mday,2)},"%e":function(t){return h(t.tm_mday,2," ")},"%g":function(t){return y(t).toString().substring(2)},"%G":function(t){return y(t)},"%H":function(t){return d(t.tm_hour,2)},"%I":function(t){var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":function(t){return d(t.tm_mday+function(t,e){for(var i=0,r=0;r<=e;i+=t[r++]);return i}(Ot(t.tm_year+1900)?Bt:Et,t.tm_mon-1),3)},"%m":function(t){return d(t.tm_mon+1,2)},"%M":function(t){return d(t.tm_min,2)},"%n":function(){return"\n"},"%p":function(t){return t.tm_hour>=0&&t.tm_hour<12?"AM":"PM"},"%S":function(t){return d(t.tm_sec,2)},"%t":function(){return"\t"},"%u":function(t){return t.tm_wday||7},"%U":function(t){var e=t.tm_yday+7-t.tm_wday;return d(Math.floor(e/7),2)},"%V":function(t){var e=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&e++,e){if(53==e){var i=(t.tm_wday+371-t.tm_yday)%7;4!=i&&(3!=i||!Ot(t.tm_year))&&(e=1)}}else{e=52;var r=(t.tm_wday+7-t.tm_yday-1)%7;(4==r||5==r&&Ot(t.tm_year%400-1))&&e++}return d(e,2)},"%w":function(t){return t.tm_wday},"%W":function(t){var e=t.tm_yday+7-(t.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":function(t){return(t.tm_year+1900).toString().substring(2)},"%Y":function(t){return t.tm_year+1900},"%z":function(t){var e=t.tm_gmtoff,i=e>=0;return e=(e=Math.abs(e)/60)/60*100+e%60,(i?"+":"-")+String("0000"+e).slice(-4)},"%Z":function(t){return t.tm_zone},"%%":function(){return"%"}};for(var l in a=a.replace(/%%/g,"\0\0"),_)a.includes(l)&&(a=a.replace(new RegExp(l,"g"),_[l](s)));var b=function(t,e,i){var r=function(t){for(var e=0,i=0;i=55296&&r<=57343?(e+=4,++i):e+=3}return e}(t)+1,n=new Array(r);return x(t,n,0,n.length),n}(a=a.replace(/\0\0/g,"%"));return b.length>e?0:(Ft(b,t),b.length-1)}(t,e,i,r)}},Ut=(function(){var t={a:Mt};function e(t,e){var i=t.exports;n.asm=i,L((w=n.asm.kf).buffer),N=n.asm.nf,function(t){P.unshift(t)}(n.asm.lf),function(t){if(Y--,n.monitorRunDependencies&&n.monitorRunDependencies(Y),0==Y&&(null!==$&&(clearInterval($),$=null),X)){var e=X;X=null,e()}}()}function i(t){e(t.instance)}function s(e){return(b||!f&&!p||"function"!=typeof fetch?Promise.resolve().then((function(){return G(W)})):fetch(W,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+W+"'";return t.arrayBuffer()})).catch((function(){return G(W)}))).then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){v("failed to asynchronously prepare wasm: "+t),J(t)}))}if(Y++,n.monitorRunDependencies&&n.monitorRunDependencies(Y),n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(t){v("Module.instantiateWasm callback failed with error: "+t),r(t)}(b||"function"!=typeof WebAssembly.instantiateStreaming||K(W)||y||"function"!=typeof fetch?s(i):fetch(W,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(i,(function(t){return v("wasm streaming compile failed: "+t),v("falling back to ArrayBuffer instantiation"),s(i)}))}))).catch(r)}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.lf).apply(null,arguments)},n._main=function(){return(n._main=n.asm.mf).apply(null,arguments)},n._duckdb_web_fs_glob_add_path=function(){return(n._duckdb_web_fs_glob_add_path=n.asm.of).apply(null,arguments)},n._duckdb_web_clear_response=function(){return(n._duckdb_web_clear_response=n.asm.pf).apply(null,arguments)},n._duckdb_web_fail_with=function(){return(n._duckdb_web_fail_with=n.asm.qf).apply(null,arguments)},n._duckdb_web_reset=function(){return(n._duckdb_web_reset=n.asm.rf).apply(null,arguments)},n._duckdb_web_connect=function(){return(n._duckdb_web_connect=n.asm.sf).apply(null,arguments)},n._duckdb_web_disconnect=function(){return(n._duckdb_web_disconnect=n.asm.tf).apply(null,arguments)},n._duckdb_web_flush_files=function(){return(n._duckdb_web_flush_files=n.asm.uf).apply(null,arguments)},n._duckdb_web_flush_file=function(){return(n._duckdb_web_flush_file=n.asm.vf).apply(null,arguments)},n._duckdb_web_open=function(){return(n._duckdb_web_open=n.asm.wf).apply(null,arguments)},n._duckdb_web_get_global_file_info=function(){return(n._duckdb_web_get_global_file_info=n.asm.xf).apply(null,arguments)},n._duckdb_web_collect_file_stats=function(){return(n._duckdb_web_collect_file_stats=n.asm.yf).apply(null,arguments)},n._duckdb_web_export_file_stats=function(){return(n._duckdb_web_export_file_stats=n.asm.zf).apply(null,arguments)},n._duckdb_web_fs_drop_file=function(){return(n._duckdb_web_fs_drop_file=n.asm.Af).apply(null,arguments)},n._duckdb_web_fs_drop_files=function(){return(n._duckdb_web_fs_drop_files=n.asm.Bf).apply(null,arguments)},n._duckdb_web_fs_glob_file_infos=function(){return(n._duckdb_web_fs_glob_file_infos=n.asm.Cf).apply(null,arguments)},n._duckdb_web_fs_get_file_info_by_id=function(){return(n._duckdb_web_fs_get_file_info_by_id=n.asm.Df).apply(null,arguments)},n._duckdb_web_fs_get_file_info_by_name=function(){return(n._duckdb_web_fs_get_file_info_by_name=n.asm.Ef).apply(null,arguments)},n._duckdb_web_fs_register_file_url=function(){return(n._duckdb_web_fs_register_file_url=n.asm.Ff).apply(null,arguments)},n._duckdb_web_fs_register_file_buffer=function(){return(n._duckdb_web_fs_register_file_buffer=n.asm.Gf).apply(null,arguments)},n._duckdb_web_copy_file_to_buffer=function(){return(n._duckdb_web_copy_file_to_buffer=n.asm.Hf).apply(null,arguments)},n._duckdb_web_copy_file_to_path=function(){return(n._duckdb_web_copy_file_to_path=n.asm.If).apply(null,arguments)},n._duckdb_web_get_version=function(){return(n._duckdb_web_get_version=n.asm.Jf).apply(null,arguments)},n._duckdb_web_get_feature_flags=function(){return(n._duckdb_web_get_feature_flags=n.asm.Kf).apply(null,arguments)},n._duckdb_web_tokenize=function(){return(n._duckdb_web_tokenize=n.asm.Lf).apply(null,arguments)},n._duckdb_web_udf_scalar_create=function(){return(n._duckdb_web_udf_scalar_create=n.asm.Mf).apply(null,arguments)},n._duckdb_web_prepared_create=function(){return(n._duckdb_web_prepared_create=n.asm.Nf).apply(null,arguments)},n._duckdb_web_prepared_close=function(){return(n._duckdb_web_prepared_close=n.asm.Of).apply(null,arguments)},n._duckdb_web_prepared_run=function(){return(n._duckdb_web_prepared_run=n.asm.Pf).apply(null,arguments)},n._duckdb_web_prepared_send=function(){return(n._duckdb_web_prepared_send=n.asm.Qf).apply(null,arguments)},n._duckdb_web_query_run=function(){return(n._duckdb_web_query_run=n.asm.Rf).apply(null,arguments)},n._duckdb_web_pending_query_start=function(){return(n._duckdb_web_pending_query_start=n.asm.Sf).apply(null,arguments)},n._duckdb_web_pending_query_poll=function(){return(n._duckdb_web_pending_query_poll=n.asm.Tf).apply(null,arguments)},n._duckdb_web_pending_query_cancel=function(){return(n._duckdb_web_pending_query_cancel=n.asm.Uf).apply(null,arguments)},n._duckdb_web_query_fetch_results=function(){return(n._duckdb_web_query_fetch_results=n.asm.Vf).apply(null,arguments)},n._duckdb_web_get_tablenames=function(){return(n._duckdb_web_get_tablenames=n.asm.Wf).apply(null,arguments)},n._duckdb_web_insert_arrow_from_ipc_stream=function(){return(n._duckdb_web_insert_arrow_from_ipc_stream=n.asm.Xf).apply(null,arguments)},n._duckdb_web_insert_csv_from_path=function(){return(n._duckdb_web_insert_csv_from_path=n.asm.Yf).apply(null,arguments)},n._duckdb_web_insert_json_from_path=function(){return(n._duckdb_web_insert_json_from_path=n.asm.Zf).apply(null,arguments)},n._htonl=function(){return(Ut=n._htonl=n.asm._f).apply(null,arguments)}),xt=n._htons=function(){return(xt=n._htons=n.asm.$f).apply(null,arguments)},Rt=n._ntohs=function(){return(Rt=n._ntohs=n.asm.ag).apply(null,arguments)},Lt=n._malloc=function(){return(Lt=n._malloc=n.asm.bg).apply(null,arguments)},Nt=n._free=function(){return(Nt=n._free=n.asm.cg).apply(null,arguments)},kt=n._setThrew=function(){return(kt=n._setThrew=n.asm.dg).apply(null,arguments)},Pt=n.setTempRet0=function(){return(Pt=n.setTempRet0=n.asm.eg).apply(null,arguments)},Ht=n.stackSave=function(){return(Ht=n.stackSave=n.asm.fg).apply(null,arguments)},Vt=n.stackRestore=function(){return(Vt=n.stackRestore=n.asm.gg).apply(null,arguments)},zt=n.stackAlloc=function(){return(zt=n.stackAlloc=n.asm.hg).apply(null,arguments)},Wt=n.___cxa_can_catch=function(){return(Wt=n.___cxa_can_catch=n.asm.ig).apply(null,arguments)},qt=n.___cxa_is_pointer_type=function(){return(qt=n.___cxa_is_pointer_type=n.asm.jg).apply(null,arguments)},Yt=n.dynCall_jiiii=function(){return(Yt=n.dynCall_jiiii=n.asm.kg).apply(null,arguments)},$t=n.dynCall_iiiiij=function(){return($t=n.dynCall_iiiiij=n.asm.lg).apply(null,arguments)},Xt=n.dynCall_iiiiijj=function(){return(Xt=n.dynCall_iiiiijj=n.asm.mg).apply(null,arguments)},Jt=n.dynCall_viijii=function(){return(Jt=n.dynCall_viijii=n.asm.ng).apply(null,arguments)},Kt=n.dynCall_j=function(){return(Kt=n.dynCall_j=n.asm.og).apply(null,arguments)},Gt=n.dynCall_ji=function(){return(Gt=n.dynCall_ji=n.asm.pg).apply(null,arguments)},Zt=n.dynCall_iij=function(){return(Zt=n.dynCall_iij=n.asm.qg).apply(null,arguments)},Qt=n.dynCall_viij=function(){return(Qt=n.dynCall_viij=n.asm.rg).apply(null,arguments)},te=n.dynCall_viijji=function(){return(te=n.dynCall_viijji=n.asm.sg).apply(null,arguments)},ee=n.dynCall_viijj=function(){return(ee=n.dynCall_viijj=n.asm.tg).apply(null,arguments)},ie=n.dynCall_viiijj=function(){return(ie=n.dynCall_viiijj=n.asm.ug).apply(null,arguments)},re=n.dynCall_viiji=function(){return(re=n.dynCall_viiji=n.asm.vg).apply(null,arguments)},ne=n.dynCall_vijjj=function(){return(ne=n.dynCall_vijjj=n.asm.wg).apply(null,arguments)},se=n.dynCall_iiijj=function(){return(se=n.dynCall_iiijj=n.asm.xg).apply(null,arguments)},ae=n.dynCall_viiij=function(){return(ae=n.dynCall_viiij=n.asm.yg).apply(null,arguments)},oe=n.dynCall_viijij=function(){return(oe=n.dynCall_viijij=n.asm.zg).apply(null,arguments)},le=n.dynCall_viiiij=function(){return(le=n.dynCall_viiiij=n.asm.Ag).apply(null,arguments)},ue=n.dynCall_jj=function(){return(ue=n.dynCall_jj=n.asm.Bg).apply(null,arguments)},ce=n.dynCall_viji=function(){return(ce=n.dynCall_viji=n.asm.Cg).apply(null,arguments)},he=n.dynCall_iiij=function(){return(he=n.dynCall_iiij=n.asm.Dg).apply(null,arguments)},de=n.dynCall_vij=function(){return(de=n.dynCall_vij=n.asm.Eg).apply(null,arguments)},fe=n.dynCall_iiiij=function(){return(fe=n.dynCall_iiiij=n.asm.Fg).apply(null,arguments)},pe=n.dynCall_iiji=function(){return(pe=n.dynCall_iiji=n.asm.Gg).apply(null,arguments)},ye=n.dynCall_iiiji=function(){return(ye=n.dynCall_iiiji=n.asm.Hg).apply(null,arguments)},_e=n.dynCall_iijj=function(){return(_e=n.dynCall_iijj=n.asm.Ig).apply(null,arguments)},be=n.dynCall_iiiiiiijj=function(){return(be=n.dynCall_iiiiiiijj=n.asm.Jg).apply(null,arguments)},me=n.dynCall_iiiijj=function(){return(me=n.dynCall_iiiijj=n.asm.Kg).apply(null,arguments)},ve=n.dynCall_iiijii=function(){return(ve=n.dynCall_iiijii=n.asm.Lg).apply(null,arguments)},ge=n.dynCall_jii=function(){return(ge=n.dynCall_jii=n.asm.Mg).apply(null,arguments)},we=n.dynCall_jiii=function(){return(we=n.dynCall_jiii=n.asm.Ng).apply(null,arguments)},je=n.dynCall_jij=function(){return(je=n.dynCall_jij=n.asm.Og).apply(null,arguments)},Ie=n.dynCall_iiiiiji=function(){return(Ie=n.dynCall_iiiiiji=n.asm.Pg).apply(null,arguments)},Se=n.dynCall_iijji=function(){return(Se=n.dynCall_iijji=n.asm.Qg).apply(null,arguments)},Ce=n.dynCall_iijii=function(){return(Ce=n.dynCall_iijii=n.asm.Rg).apply(null,arguments)},Ae=n.dynCall_iijjii=function(){return(Ae=n.dynCall_iijjii=n.asm.Sg).apply(null,arguments)},Te=n.dynCall_vijj=function(){return(Te=n.dynCall_vijj=n.asm.Tg).apply(null,arguments)},Oe=n.dynCall_vijijj=function(){return(Oe=n.dynCall_vijijj=n.asm.Ug).apply(null,arguments)},Be=n.dynCall_viiijjj=function(){return(Be=n.dynCall_viiijjj=n.asm.Vg).apply(null,arguments)},Ee=n.dynCall_iji=function(){return(Ee=n.dynCall_iji=n.asm.Wg).apply(null,arguments)},Fe=n.dynCall_viijjji=function(){return(Fe=n.dynCall_viijjji=n.asm.Xg).apply(null,arguments)},De=n.dynCall_vijiiii=function(){return(De=n.dynCall_vijiiii=n.asm.Yg).apply(null,arguments)},Me=n.dynCall_viiijii=function(){return(Me=n.dynCall_viiijii=n.asm.Zg).apply(null,arguments)},Ue=n.dynCall_viiiiiij=function(){return(Ue=n.dynCall_viiiiiij=n.asm._g).apply(null,arguments)},xe=n.dynCall_iijjijj=function(){return(xe=n.dynCall_iijjijj=n.asm.$g).apply(null,arguments)},Re=n.dynCall_viiiijiiiii=function(){return(Re=n.dynCall_viiiijiiiii=n.asm.ah).apply(null,arguments)},Le=n.dynCall_viiiijiiii=function(){return(Le=n.dynCall_viiiijiiii=n.asm.bh).apply(null,arguments)},Ne=n.dynCall_ijji=function(){return(Ne=n.dynCall_ijji=n.asm.ch).apply(null,arguments)},ke=n.dynCall_iiijiii=function(){return(ke=n.dynCall_iiijiii=n.asm.dh).apply(null,arguments)},Pe=n.dynCall_iiiiijii=function(){return(Pe=n.dynCall_iiiiijii=n.asm.eh).apply(null,arguments)},He=n.dynCall_viijiiii=function(){return(He=n.dynCall_viijiiii=n.asm.fh).apply(null,arguments)},Ve=n.dynCall_viijiiiii=function(){return(Ve=n.dynCall_viijiiiii=n.asm.gh).apply(null,arguments)},ze=n.dynCall_iiijiij=function(){return(ze=n.dynCall_iiijiij=n.asm.hh).apply(null,arguments)},We=n.dynCall_vijiii=function(){return(We=n.dynCall_vijiii=n.asm.ih).apply(null,arguments)},qe=n.dynCall_iijjiii=function(){return(qe=n.dynCall_iijjiii=n.asm.jh).apply(null,arguments)},Ye=n.dynCall_iijjiiii=function(){return(Ye=n.dynCall_iijjiiii=n.asm.kh).apply(null,arguments)},$e=n.dynCall_viiiji=function(){return($e=n.dynCall_viiiji=n.asm.lh).apply(null,arguments)},Xe=n.dynCall_viijiii=function(){return(Xe=n.dynCall_viijiii=n.asm.mh).apply(null,arguments)},Je=n.dynCall_vijiiiii=function(){return(Je=n.dynCall_vijiiiii=n.asm.nh).apply(null,arguments)},Ke=n.dynCall_jiiiii=function(){return(Ke=n.dynCall_jiiiii=n.asm.oh).apply(null,arguments)},Ge=n.dynCall_iijiiii=function(){return(Ge=n.dynCall_iijiiii=n.asm.ph).apply(null,arguments)},Ze=n.dynCall_vjjii=function(){return(Ze=n.dynCall_vjjii=n.asm.qh).apply(null,arguments)},Qe=n.dynCall_viiiijii=function(){return(Qe=n.dynCall_viiiijii=n.asm.rh).apply(null,arguments)},ti=n.dynCall_iiiijiii=function(){return(ti=n.dynCall_iiiijiii=n.asm.sh).apply(null,arguments)},ei=n.dynCall_vijii=function(){return(ei=n.dynCall_vijii=n.asm.th).apply(null,arguments)},ii=n.dynCall_vijij=function(){return(ii=n.dynCall_vijij=n.asm.uh).apply(null,arguments)},ri=n.dynCall_iiijjjj=function(){return(ri=n.dynCall_iiijjjj=n.asm.vh).apply(null,arguments)},ni=n.dynCall_jiij=function(){return(ni=n.dynCall_jiij=n.asm.wh).apply(null,arguments)},si=n.dynCall_viijjj=function(){return(si=n.dynCall_viijjj=n.asm.xh).apply(null,arguments)},ai=n.dynCall_jiiij=function(){return(ai=n.dynCall_jiiij=n.asm.yh).apply(null,arguments)},oi=n.dynCall_iiiiiijjiijjj=function(){return(oi=n.dynCall_iiiiiijjiijjj=n.asm.zh).apply(null,arguments)},li=n.dynCall_viijiiji=function(){return(li=n.dynCall_viijiiji=n.asm.Ah).apply(null,arguments)},ui=n.dynCall_iiiijjii=function(){return(ui=n.dynCall_iiiijjii=n.asm.Bh).apply(null,arguments)},ci=n.dynCall_iiiijji=function(){return(ci=n.dynCall_iiiijji=n.asm.Ch).apply(null,arguments)},hi=n.dynCall_iiijjii=function(){return(hi=n.dynCall_iiijjii=n.asm.Dh).apply(null,arguments)},di=n.dynCall_vjjijij=function(){return(di=n.dynCall_vjjijij=n.asm.Eh).apply(null,arguments)},fi=n.dynCall_vijjji=function(){return(fi=n.dynCall_vijjji=n.asm.Fh).apply(null,arguments)},pi=n.dynCall_viiiiiji=function(){return(pi=n.dynCall_viiiiiji=n.asm.Gh).apply(null,arguments)},yi=n.dynCall_jiiiji=function(){return(yi=n.dynCall_jiiiji=n.asm.Hh).apply(null,arguments)},_i=n.dynCall_viiijjii=function(){return(_i=n.dynCall_viiijjii=n.asm.Ih).apply(null,arguments)},bi=n.dynCall_jijij=function(){return(bi=n.dynCall_jijij=n.asm.Jh).apply(null,arguments)},mi=n.dynCall_viiiijj=function(){return(mi=n.dynCall_viiiijj=n.asm.Kh).apply(null,arguments)},vi=n.dynCall_jijjij=function(){return(vi=n.dynCall_jijjij=n.asm.Lh).apply(null,arguments)},gi=n.dynCall_jiijii=function(){return(gi=n.dynCall_jiijii=n.asm.Mh).apply(null,arguments)},wi=n.dynCall_jijiii=function(){return(wi=n.dynCall_jijiii=n.asm.Nh).apply(null,arguments)},ji=n.dynCall_viijiiij=function(){return(ji=n.dynCall_viijiiij=n.asm.Oh).apply(null,arguments)},Ii=n.dynCall_vijiiiji=function(){return(Ii=n.dynCall_vijiiiji=n.asm.Ph).apply(null,arguments)},Si=n.dynCall_jiiji=function(){return(Si=n.dynCall_jiiji=n.asm.Qh).apply(null,arguments)},Ci=n.dynCall_viiijij=function(){return(Ci=n.dynCall_viiijij=n.asm.Rh).apply(null,arguments)},Ai=n.dynCall_viijiij=function(){return(Ai=n.dynCall_viijiij=n.asm.Sh).apply(null,arguments)},Ti=n.dynCall_viiiiijj=function(){return(Ti=n.dynCall_viiiiijj=n.asm.Th).apply(null,arguments)},Oi=n.dynCall_viiijji=function(){return(Oi=n.dynCall_viiijji=n.asm.Uh).apply(null,arguments)},Bi=n.dynCall_viijjiij=function(){return(Bi=n.dynCall_viijjiij=n.asm.Vh).apply(null,arguments)},Ei=n.dynCall_iiijiiji=function(){return(Ei=n.dynCall_iiijiiji=n.asm.Wh).apply(null,arguments)},Fi=n.dynCall_iiijjji=function(){return(Fi=n.dynCall_iiijjji=n.asm.Xh).apply(null,arguments)},Di=n.dynCall_viijjiijjj=function(){return(Di=n.dynCall_viijjiijjj=n.asm.Yh).apply(null,arguments)},Mi=n.dynCall_viijjiijj=function(){return(Mi=n.dynCall_viijjiijj=n.asm.Zh).apply(null,arguments)},Ui=n.dynCall_iiijji=function(){return(Ui=n.dynCall_iiijji=n.asm._h).apply(null,arguments)},xi=n.dynCall_viiijiii=function(){return(xi=n.dynCall_viiijiii=n.asm.$h).apply(null,arguments)},Ri=n.dynCall_iiiiijiii=function(){return(Ri=n.dynCall_iiiiijiii=n.asm.ai).apply(null,arguments)},Li=n.dynCall_vijji=function(){return(Li=n.dynCall_vijji=n.asm.bi).apply(null,arguments)},Ni=n.dynCall_jiiiij=function(){return(Ni=n.dynCall_jiiiij=n.asm.ci).apply(null,arguments)},ki=n.dynCall_viiijjji=function(){return(ki=n.dynCall_viiijjji=n.asm.di).apply(null,arguments)},Pi=n.dynCall_jiiijii=function(){return(Pi=n.dynCall_jiiijii=n.asm.ei).apply(null,arguments)},Hi=n.dynCall_jiijiii=function(){return(Hi=n.dynCall_jiijiii=n.asm.fi).apply(null,arguments)},Vi=n.dynCall_viiijjij=function(){return(Vi=n.dynCall_viiijjij=n.asm.gi).apply(null,arguments)},zi=n.dynCall_vijijjiij=function(){return(zi=n.dynCall_vijijjiij=n.asm.hi).apply(null,arguments)},Wi=n.dynCall_viiijjiij=function(){return(Wi=n.dynCall_viiijjiij=n.asm.ii).apply(null,arguments)},qi=n.dynCall_viiiijijji=function(){return(qi=n.dynCall_viiiijijji=n.asm.ji).apply(null,arguments)},Yi=n.dynCall_viijiiiij=function(){return(Yi=n.dynCall_viijiiiij=n.asm.ki).apply(null,arguments)},$i=n.dynCall_viiijiiiijjj=function(){return($i=n.dynCall_viiijiiiijjj=n.asm.li).apply(null,arguments)},Xi=n.dynCall_viijijiiiijjj=function(){return(Xi=n.dynCall_viijijiiiijjj=n.asm.mi).apply(null,arguments)},Ji=n.dynCall_iijjj=function(){return(Ji=n.dynCall_iijjj=n.asm.ni).apply(null,arguments)},Ki=n.dynCall_vijijiiiijjj=function(){return(Ki=n.dynCall_vijijiiiijjj=n.asm.oi).apply(null,arguments)},Gi=n.dynCall_jd=function(){return(Gi=n.dynCall_jd=n.asm.pi).apply(null,arguments)},Zi=n.dynCall_jf=function(){return(Zi=n.dynCall_jf=n.asm.qi).apply(null,arguments)},Qi=n.dynCall_iiiiiij=function(){return(Qi=n.dynCall_iiiiiij=n.asm.ri).apply(null,arguments)},tr=n.dynCall_iiiiiiiij=function(){return(tr=n.dynCall_iiiiiiiij=n.asm.si).apply(null,arguments)},er=n.dynCall_iiiiiiji=function(){return(er=n.dynCall_iiiiiiji=n.asm.ti).apply(null,arguments)},ir=n.dynCall_vijiji=function(){return(ir=n.dynCall_vijiji=n.asm.ui).apply(null,arguments)},rr=n.dynCall_vijjij=function(){return(rr=n.dynCall_vijjij=n.asm.vi).apply(null,arguments)},nr=n.dynCall_viiiijiiiiiiii=function(){return(nr=n.dynCall_viiiijiiiiiiii=n.asm.wi).apply(null,arguments)},sr=n.dynCall_ij=function(){return(sr=n.dynCall_ij=n.asm.xi).apply(null,arguments)},ar=n.dynCall_jjj=function(){return(ar=n.dynCall_jjj=n.asm.yi).apply(null,arguments)},or=n.dynCall_jjiji=function(){return(or=n.dynCall_jjiji=n.asm.zi).apply(null,arguments)},lr=n.dynCall_vjii=function(){return(lr=n.dynCall_vjii=n.asm.Ai).apply(null,arguments)},ur=n.dynCall_jjjjjjd=function(){return(ur=n.dynCall_jjjjjjd=n.asm.Bi).apply(null,arguments)},cr=n.dynCall_ijii=function(){return(cr=n.dynCall_ijii=n.asm.Ci).apply(null,arguments)},hr=n.dynCall_vjiiii=function(){return(hr=n.dynCall_vjiiii=n.asm.Di).apply(null,arguments)},dr=n.dynCall_viiiiijiiii=function(){return(dr=n.dynCall_viiiiijiiii=n.asm.Ei).apply(null,arguments)},fr=n.dynCall_viiiiijiii=function(){return(fr=n.dynCall_viiiiijiii=n.asm.Fi).apply(null,arguments)},pr=n.dynCall_vjiiiji=function(){return(pr=n.dynCall_vjiiiji=n.asm.Gi).apply(null,arguments)},yr=n.dynCall_viijiiiiii=function(){return(yr=n.dynCall_viijiiiiii=n.asm.Hi).apply(null,arguments)},_r=n.dynCall_jjjji=function(){return(_r=n.dynCall_jjjji=n.asm.Ii).apply(null,arguments)},br=n.dynCall_jjjii=function(){return(br=n.dynCall_jjjii=n.asm.Ji).apply(null,arguments)},mr=n.dynCall_jji=function(){return(mr=n.dynCall_jji=n.asm.Ki).apply(null,arguments)},vr=n.dynCall_viiiiji=function(){return(vr=n.dynCall_viiiiji=n.asm.Li).apply(null,arguments)},gr=n.dynCall_iijiji=function(){return(gr=n.dynCall_iijiji=n.asm.Mi).apply(null,arguments)},wr=n.dynCall_viijjii=function(){return(wr=n.dynCall_viijjii=n.asm.Ni).apply(null,arguments)},jr=n.dynCall_iiiiiiiiiiji=function(){return(jr=n.dynCall_iiiiiiiiiiji=n.asm.Oi).apply(null,arguments)},Ir=n.dynCall_jiiijjj=function(){return(Ir=n.dynCall_jiiijjj=n.asm.Pi).apply(null,arguments)},Sr=n.dynCall_viiijijj=function(){return(Sr=n.dynCall_viiijijj=n.asm.Qi).apply(null,arguments)},Cr=n.dynCall_jiiiiji=function(){return(Cr=n.dynCall_jiiiiji=n.asm.Ri).apply(null,arguments)},Ar=n.dynCall_iiiiijij=function(){return(Ar=n.dynCall_iiiiijij=n.asm.Si).apply(null,arguments)},Tr=n.dynCall_jiiiiiii=function(){return(Tr=n.dynCall_jiiiiiii=n.asm.Ti).apply(null,arguments)},Or=n.dynCall_fiijii=function(){return(Or=n.dynCall_fiijii=n.asm.Ui).apply(null,arguments)},Br=n.dynCall_diijii=function(){return(Br=n.dynCall_diijii=n.asm.Vi).apply(null,arguments)},Er=n.dynCall_iiiiiiijii=function(){return(Er=n.dynCall_iiiiiiijii=n.asm.Wi).apply(null,arguments)},Fr=n.dynCall_iiiiji=function(){return(Fr=n.dynCall_iiiiji=n.asm.Xi).apply(null,arguments)},Dr=n.dynCall_iiiijii=function(){return(Dr=n.dynCall_iiiijii=n.asm.Yi).apply(null,arguments)},Mr=n.dynCall_viiiiiiji=function(){return(Mr=n.dynCall_viiiiiiji=n.asm.Zi).apply(null,arguments)},Ur=n.dynCall_viiiijiii=function(){return(Ur=n.dynCall_viiiijiii=n.asm._i).apply(null,arguments)},xr=n.dynCall_iiidj=function(){return(xr=n.dynCall_iiidj=n.asm.$i).apply(null,arguments)},Rr=n.dynCall_iiiiiiij=function(){return(Rr=n.dynCall_iiiiiiij=n.asm.aj).apply(null,arguments)},Lr=n.dynCall_iiiiiiiiiiiij=function(){return(Lr=n.dynCall_iiiiiiiiiiiij=n.asm.bj).apply(null,arguments)},Nr=n.dynCall_iiiiiiiiiij=function(){return(Nr=n.dynCall_iiiiiiiiiij=n.asm.cj).apply(null,arguments)},kr=n.dynCall_iiiiiijii=function(){return(kr=n.dynCall_iiiiiijii=n.asm.dj).apply(null,arguments)},Pr=n.dynCall_iiijjiiji=function(){return(Pr=n.dynCall_iiijjiiji=n.asm.ej).apply(null,arguments)},Hr=n.dynCall_iiijjiij=function(){return(Hr=n.dynCall_iiijjiij=n.asm.fj).apply(null,arguments)},Vr=n.dynCall_iiidjiij=function(){return(Vr=n.dynCall_iiidjiij=n.asm.gj).apply(null,arguments)},zr=n.dynCall_iiiiiiiji=function(){return(zr=n.dynCall_iiiiiiiji=n.asm.hj).apply(null,arguments)},Wr=n.dynCall_iiiidjj=function(){return(Wr=n.dynCall_iiiidjj=n.asm.ij).apply(null,arguments)},qr=n.dynCall_iiiijjj=function(){return(qr=n.dynCall_iiiijjj=n.asm.jj).apply(null,arguments)},Yr=n.dynCall_iiiiiiiiji=function(){return(Yr=n.dynCall_iiiiiiiiji=n.asm.kj).apply(null,arguments)},$r=n.dynCall_jiiiiiijii=function(){return($r=n.dynCall_jiiiiiijii=n.asm.lj).apply(null,arguments)},Xr=n.dynCall_viiiijji=function(){return(Xr=n.dynCall_viiiijji=n.asm.mj).apply(null,arguments)},Jr=n.dynCall_jiiiiii=function(){return(Jr=n.dynCall_jiiiiii=n.asm.nj).apply(null,arguments)},Kr=n.dynCall_jiijjjii=function(){return(Kr=n.dynCall_jiijjjii=n.asm.oj).apply(null,arguments)},Gr=n.dynCall_jiiiijii=function(){return(Gr=n.dynCall_jiiiijii=n.asm.pj).apply(null,arguments)},Zr=n.dynCall_jiiiiijiiii=function(){return(Zr=n.dynCall_jiiiiijiiii=n.asm.qj).apply(null,arguments)},Qr=n.dynCall_jiiijiii=function(){return(Qr=n.dynCall_jiiijiii=n.asm.rj).apply(null,arguments)},tn=n.dynCall_viiijijiji=function(){return(tn=n.dynCall_viiijijiji=n.asm.sj).apply(null,arguments)},en=n.dynCall_iiiiijjj=function(){return(en=n.dynCall_iiiiijjj=n.asm.tj).apply(null,arguments)},rn=n.dynCall_iiiijjjj=function(){return(rn=n.dynCall_iiiijjjj=n.asm.uj).apply(null,arguments)},nn=n.dynCall_iiijjj=function(){return(nn=n.dynCall_iiijjj=n.asm.vj).apply(null,arguments)},sn=n.dynCall_jiiijj=function(){return(sn=n.dynCall_jiiijj=n.asm.wj).apply(null,arguments)},an=n.dynCall_vj=function(){return(an=n.dynCall_vj=n.asm.xj).apply(null,arguments)},on=n.dynCall_ijjiii=function(){return(on=n.dynCall_ijjiii=n.asm.yj).apply(null,arguments)},ln=n.dynCall_iijiii=function(){return(ln=n.dynCall_iijiii=n.asm.zj).apply(null,arguments)},un=n.dynCall_vijiijj=function(){return(un=n.dynCall_vijiijj=n.asm.Aj).apply(null,arguments)},cn=n.dynCall_vifiijj=function(){return(cn=n.dynCall_vifiijj=n.asm.Bj).apply(null,arguments)},hn=n.dynCall_vidiijj=function(){return(hn=n.dynCall_vidiijj=n.asm.Cj).apply(null,arguments)},dn=n.dynCall_viiiiij=function(){return(dn=n.dynCall_viiiiij=n.asm.Dj).apply(null,arguments)},fn=n.dynCall_vijijjji=function(){return(fn=n.dynCall_vijijjji=n.asm.Ej).apply(null,arguments)},pn=n.dynCall_jijj=function(){return(pn=n.dynCall_jijj=n.asm.Fj).apply(null,arguments)},yn=n.dynCall_viijiijj=function(){return(yn=n.dynCall_viijiijj=n.asm.Gj).apply(null,arguments)},_n=n.dynCall_viijijj=function(){return(_n=n.dynCall_viijijj=n.asm.Hj).apply(null,arguments)},bn=n.dynCall_viiiiijjji=function(){return(bn=n.dynCall_viiiiijjji=n.asm.Ij).apply(null,arguments)},mn=n.dynCall_iiijiijj=function(){return(mn=n.dynCall_iiijiijj=n.asm.Jj).apply(null,arguments)},vn=n.dynCall_viiijijjj=function(){return(vn=n.dynCall_viiijijjj=n.asm.Kj).apply(null,arguments)},gn=n.dynCall_iijiijj=function(){return(gn=n.dynCall_iijiijj=n.asm.Lj).apply(null,arguments)},wn=n.dynCall_viiijjjji=function(){return(wn=n.dynCall_viiijjjji=n.asm.Mj).apply(null,arguments)},jn=n.dynCall_vijjiii=function(){return(jn=n.dynCall_vijjiii=n.asm.Nj).apply(null,arguments)},In=n.dynCall_vijijjiiiii=function(){return(In=n.dynCall_vijijjiiiii=n.asm.Oj).apply(null,arguments)},Sn=n.dynCall_vijjiiiii=function(){return(Sn=n.dynCall_vijjiiiii=n.asm.Pj).apply(null,arguments)},Cn=n.dynCall_iiiiiijji=function(){return(Cn=n.dynCall_iiiiiijji=n.asm.Qj).apply(null,arguments)},An=n.dynCall_jijiiii=function(){return(An=n.dynCall_jijiiii=n.asm.Rj).apply(null,arguments)},Tn=n.dynCall_viiijiji=function(){return(Tn=n.dynCall_viiijiji=n.asm.Sj).apply(null,arguments)},On=n.dynCall_iiijjjii=function(){return(On=n.dynCall_iiijjjii=n.asm.Tj).apply(null,arguments)},Bn=n.dynCall_iiiiijjji=function(){return(Bn=n.dynCall_iiiiijjji=n.asm.Uj).apply(null,arguments)},En=n.dynCall_viijiji=function(){return(En=n.dynCall_viijiji=n.asm.Vj).apply(null,arguments)};function Fn(t){var e=n._main;try{var i=e(0,0);return function(t,e){j=t,function(t){j=t,z()||(n.onExit&&n.onExit(t),I=!0),d(t,new Z(t))}(t)}(i),i}catch(t){return function(t){if(t instanceof Z||"unwind"==t)return j;d(1,t)}(t)}}function Dn(t){function e(){Dt||(Dt=!0,n.calledRun=!0,!I&&(Q(P),Q(H),i(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Mn&&Fn(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)t=n.postRun.shift(),V.unshift(t);var t;Q(V)}()))}t=t||c,Y>0||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),k.unshift(t);var t;Q(k)}(),Y>0)||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e())}if(n.ccall=function(t,e,i,r,s){var a={string:t=>{var e=0;if(null!=t&&0!==t){var i=1+(t.length<<2);R(t,e=zt(i),i)}return e},array:t=>{var e=zt(t.length);return Ft(t,e),e}},o=function(t){return n["_"+t]}(t),l=[],u=0;if(r)for(var c=0;c0;)n.preInit.pop()();var Mn=!0;return n.noInitialRun&&(Mn=!1),Dn(),e.ready}})(),Vp=_I,Qo=class{constructor(t,e){this._bindings=t,this._conn=e}close(){this._bindings.disconnect(this._conn)}useUnsafe(t){return t(this._bindings,this._conn)}query(t){let e=this._bindings.runQuery(this._conn,t),i=Lt.from(e);return console.assert(i.isSync()),console.assert(i.isFile()),new Rt(i)}async send(t){let e=this._bindings.startPendingQuery(this._conn,t);for(;null==e;)e=await new Promise(((t,e)=>{try{t(this._bindings.pollPendingQuery(this._conn))}catch(t){e(t)}}));let i=new ta(this._bindings,this._conn,e),r=Lt.from(i);return console.assert(r.isSync()),console.assert(r.isStream()),r}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(t){return this._bindings.getTableNames(this._conn,t)}prepare(t){let e=this._bindings.createPrepared(this._conn,t);return new pl(this._bindings,this._conn,e)}createScalarFunction(t,e,i){this._bindings.createScalarFunction(this._conn,t,e,i)}insertArrowTable(t,e){let i=Jo(t,"stream");this.insertArrowFromIPCStream(i,e)}insertArrowFromIPCStream(t,e){this._bindings.insertArrowFromIPCStream(this._conn,t,e)}insertCSVFromPath(t,e){this._bindings.insertCSVFromPath(this._conn,t,e)}insertJSONFromPath(t,e){this._bindings.insertJSONFromPath(this._conn,t,e)}},ta=class{constructor(t,e,i){this.bindings=t,this.conn=e,this.header=i,this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let t=this.bindings.fetchQueryResults(this.conn);return this._depleted=0==t.length,{done:this._depleted,value:t}}[Symbol.iterator](){return this}},pl=class{constructor(t,e,i){this.bindings=t,this.connectionId=e,this.statementId=i}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...t){let e=this.bindings.runPrepared(this.connectionId,this.statementId,t),i=Lt.from(e);return console.assert(i.isSync()),console.assert(i.isFile()),new Rt(i)}send(...t){let e=this.bindings.sendPrepared(this.connectionId,this.statementId,t),i=new ta(this.bindings,this.connectionId,e),r=Lt.from(i);return console.assert(r.isSync()),console.assert(r.isStream()),r}},Wp=new TextEncoder,Hp=new TextDecoder("utf-8");function yl(t,e,i){let r=Wp.encode(i),n=t._malloc(r.byteLength),s=t.HEAPU8.subarray(n,n+r.byteLength);s.set(r),t.HEAPF64[0+(e>>3)]=1,t.HEAPF64[1+(e>>3)]=n,t.HEAPF64[2+(e>>3)]=s.byteLength}function ml(t){switch(t){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function _l(t,e,i,r){let n=t.HEAPU8.subarray(e,e+r*ml(i));switch(i){case"UINT8":return new Uint8Array(n.buffer,n.byteOffset,r);case"INT8":return new Int8Array(n.buffer,n.byteOffset,r);case"INT32":return new Int32Array(n.buffer,n.byteOffset,r);case"FLOAT":return new Float32Array(n.buffer,n.byteOffset,r);case"DOUBLE":case"VARCHAR":return new Float64Array(n.buffer,n.byteOffset,r);default:return new Array(0)}}function zp(t,e,i){let r=t.HEAPU8.subarray(e,e+i);return new Uint8Array(r.buffer,r.byteOffset,i)}function ea(t,e,i){let r=t.HEAPU8.subarray(e,e+8*i);return new Float64Array(r.buffer,r.byteOffset,i)}function $p(t,e,i,r,n,s,a,o){try{let l=t._udfFunctions.get(r);if(!l)return void yl(e,i,"Unknown UDF with id: "+r);let u=Hp.decode(e.HEAPU8.subarray(n,n+s)),c=JSON.parse(u),h=ea(e,a,o/8),d=t=>{var i;let r=null;switch(void 0!==t.validityBuffer&&(r=zp(e,h[t.validityBuffer],c.rows)),t.physicalType){case"VARCHAR":{if(null===t.dataBuffer||void 0===t.dataBuffer)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(null===t.lengthBuffer||void 0===t.lengthBuffer)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let i=_l(e,h[t.dataBuffer],t.physicalType,c.rows),n=[],s=ea(e,h[t.lengthBuffer],c.rows);for(let t=0;tn[t]}case"STRUCT":{let e={},n=[];for(let r=0;r<((null==(i=t.children)?void 0:i.length)||0);++r){let i=t.children[r],s=d(i);n.push((t=>{e[i.name]=s(t)}))}return null!=r?t=>{if(!r[t])return null;for(let e of n)e(t);return e}:t=>{for(let e of n)e(t);return e}}default:{if(void 0===t.dataBuffer)throw new Error("malformed data view, expected data buffer for argument of type: "+t.physicalType);let i=_l(e,h[t.dataBuffer],t.physicalType,c.rows);return null!=r?t=>r[t]?i[t]:null:t=>i[t]}}},f=[];for(let t=0;t>3)]=0,e.HEAPF64[1+(i>>3)]=I,e.HEAPF64[2+(i>>3)]=0}catch(t){yl(e,i,t.toString())}}function bI(){let t=new TextDecoder;return e=>(typeof SharedArrayBuffer<"u"&&e.buffer instanceof SharedArrayBuffer&&(e=new Uint8Array(e)),t.decode(e))}var vI=bI();function Ai(t,e){console.error(`FAIL WITH: ${e}`),t.ccall("duckdb_web_fail_with",null,["string"],[e])}function Or(t,e,i){let r=t.HEAPU8.subarray(e,e+i),n=new Uint8Array(new ArrayBuffer(r.byteLength));return n.set(r),n}function tt(t,e,i){return vI(t.HEAPU8.subarray(e,e+i))}function yt(t,e,i,r){let n=t.stackSave(),s=t.stackAlloc(24);i.unshift("number"),r.unshift(s),t.ccall(e,null,i,r);let a=t.HEAPF64[0+(s>>3)],o=t.HEAPF64[1+(s>>3)],l=t.HEAPF64[2+(s>>3)];return t.stackRestore(n),[a,o,l]}function At(t){t.ccall("duckdb_web_clear_response",null,[],[])}var ia=class{constructor(t){let e=new Float64Array(t.buffer,t.byteOffset,t.byteLength/8),i=new Uint8Array(new ArrayBuffer(t.byteLength));i.set(t.subarray(56)),this.totalFileReadsCold=e[0],this.totalFileReadsAhead=e[1],this.totalFileReadsCached=e[2],this.totalFileWrites=e[3],this.totalPageAccesses=e[4],this.totalPageLoads=e[5],this.blockSize=e[6],this.blockStats=i}getBlockStats(t,e){return(e=e||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0}).file_writes=15&this.blockStats[3*t+0],e.file_reads_cold=this.blockStats[3*t+0]>>4,e.file_reads_ahead=15&this.blockStats[3*t+1],e.file_reads_cached=this.blockStats[3*t+1]>>4,e.page_accesses=15&this.blockStats[3*t+1],e.page_loads=this.blockStats[3*t+1]>>4,e}},gI=new TextEncoder,ra=class{constructor(t,e){this._instance=null,this._initPromise=null,this._initPromiseResolver=()=>{},this.onInstantiationProgress=[],this._logger=t,this._runtime=e,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(t=(t=>{})){return null!=this._instance||(null!=this._initPromise&&(this.onInstantiationProgress.push(t),await this._initPromise),this._initPromise=new Promise((t=>{this._initPromiseResolver=t})),this.onInstantiationProgress=[t],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter((e=>e!=t))),this}open(t){let[e,i,r]=yt(this.mod,"duckdb_web_open",["string"],[JSON.stringify(t)]);if(0!==e)throw new Error(tt(this.mod,i,r));At(this.mod)}reset(){let[t,e,i]=yt(this.mod,"duckdb_web_reset",[],[]);if(0!==t)throw new Error(tt(this.mod,e,i));At(this.mod)}getVersion(){let[t,e,i]=yt(this.mod,"duckdb_web_get_version",[],[]);if(0!==t)throw new Error(tt(this.mod,e,i));let r=tt(this.mod,e,i);return At(this.mod),r}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(t){let[e,i,r]=yt(this.mod,"duckdb_web_tokenize",["string"],[t]);if(0!==e)throw new Error(tt(this.mod,i,r));let n=tt(this.mod,i,r);return At(this.mod),JSON.parse(n)}connect(){let t=this.mod.ccall("duckdb_web_connect","number",[],[]);return new Qo(this,t)}disconnect(t){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[t]),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"dropUDFFunctions",connectionId:t})}runQuery(t,e){let[i,r,n]=yt(this.mod,"duckdb_web_query_run",["number","string"],[t,e]);if(0!==i)throw new Error(tt(this.mod,r,n));let s=Or(this.mod,r,n);return At(this.mod),s}startPendingQuery(t,e){let[i,r,n]=yt(this.mod,"duckdb_web_pending_query_start",["number","string"],[t,e]);if(0!==i)throw new Error(tt(this.mod,r,n));if(0==r)return null;let s=Or(this.mod,r,n);return At(this.mod),s}pollPendingQuery(t){let[e,i,r]=yt(this.mod,"duckdb_web_pending_query_poll",["number"],[t]);if(0!==e)throw new Error(tt(this.mod,i,r));if(0==i)return null;let n=Or(this.mod,i,r);return At(this.mod),n}cancelPendingQuery(t){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[t])}fetchQueryResults(t){let[e,i,r]=yt(this.mod,"duckdb_web_query_fetch_results",["number"],[t]);if(0!==e)throw new Error(tt(this.mod,i,r));let n=Or(this.mod,i,r);return At(this.mod),n}getTableNames(t,e){let[i,r,n]=yt(this.mod,"duckdb_web_get_tablenames",["number","string"],[t,e]);if(0!==i)throw new Error(tt(this.mod,r,n));let s=tt(this.mod,r,n);return At(this.mod),JSON.parse(s)}createScalarFunction(t,e,i,r){let n={functionId:this._nextUDFId,name:e,returnType:un(i)},s={functionId:n.functionId,connectionId:t,name:e,returnType:i,func:r};this._nextUDFId+=1;let[a,o,l]=yt(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[t,JSON.stringify(n)]);if(0!==a)throw new Error(tt(this.mod,o,l));if(At(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(s.functionId,s),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"registerUDFFunction",udf:s})}createPrepared(t,e){let[i,r,n]=yt(this.mod,"duckdb_web_prepared_create",["number","string"],[t,e]);if(0!==i)throw new Error(tt(this.mod,r,n));return At(this.mod),r}closePrepared(t,e){let[i,r,n]=yt(this.mod,"duckdb_web_prepared_close",["number","number"],[t,e]);if(0!==i)throw new Error(tt(this.mod,r,n));At(this.mod)}runPrepared(t,e,i){let[r,n,s]=yt(this.mod,"duckdb_web_prepared_run",["number","number","string"],[t,e,JSON.stringify(i)]);if(0!==r)throw new Error(tt(this.mod,n,s));let a=Or(this.mod,n,s);return At(this.mod),a}sendPrepared(t,e,i){let[r,n,s]=yt(this.mod,"duckdb_web_prepared_send",["number","number","string"],[t,e,JSON.stringify(i)]);if(0!==r)throw new Error(tt(this.mod,n,s));let a=Or(this.mod,n,s);return At(this.mod),a}insertArrowFromIPCStream(t,e,i){if(0==e.length)return;let r=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(r,r+e.length).set(e);let n=i?JSON.stringify(i):"",[s,a,o]=yt(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[t,r,e.length,n]);if(0!==s)throw new Error(tt(this.mod,a,o))}insertCSVFromPath(t,e,i){if(void 0!==i.columns){i.columnsFlat=[];for(let t in i.columns)i.columnsFlat.push(qo(t,i.columns[t]))}let r={...i};r.columns=r.columnsFlat,delete r.columnsFlat;let n=JSON.stringify(r),[s,a,o]=yt(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[t,e,n]);if(0!==s)throw new Error(tt(this.mod,a,o))}insertJSONFromPath(t,e,i){if(void 0!==i.columns){i.columnsFlat=[];for(let t in i.columns)i.columnsFlat.push(qo(t,i.columns[t]))}let r={...i};r.columns=r.columnsFlat,delete r.columnsFlat;let n=JSON.stringify(r),[s,a,o]=yt(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[t,e,n]);if(0!==s)throw new Error(tt(this.mod,a,o))}globFiles(t){let[e,i,r]=yt(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[t]);if(0!==e)throw new Error(tt(this.mod,i,r));let n=tt(this.mod,i,r);At(this.mod);let s=JSON.parse(n);return null==s?[]:s}registerFileURL(t,e,i,r=!1){void 0===e&&(e=t);let[n,s,a]=yt(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[t,e,i,r]);if(0!==n)throw new Error(tt(this.mod,s,a));At(this.mod)}registerFileText(t,e){let i=gI.encode(e);this.registerFileBuffer(t,i)}registerFileBuffer(t,e){let i=this.mod._malloc(e.length);this.mod.HEAPU8.subarray(i,i+e.length).set(e);let[r,n,s]=yt(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[t,i,e.length]);if(0!==r)throw new Error(tt(this.mod,n,s));At(this.mod)}registerFileHandle(t,e,i,r){let[n,s,a]=yt(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[t,t,i,r]);if(0!==n)throw new Error(tt(this.mod,s,a));if(At(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(t,e),this.pthread){for(let i of this.pthread.runningWorkers)i.postMessage({cmd:"registerFileHandle",fileName:t,fileHandle:e});for(let e of this.pthread.unusedWorkers)e.postMessage({cmd:"dropFileHandle",fileName:t})}}dropFile(t){let[e,i,r]=yt(this.mod,"duckdb_web_fs_drop_file",["string"],[t]);if(0!==e)throw new Error(tt(this.mod,i,r));At(this.mod)}dropFiles(){let[t,e,i]=yt(this.mod,"duckdb_web_fs_drop_files",[],[]);if(0!==t)throw new Error(tt(this.mod,e,i));At(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(t,e){let[i,r,n]=yt(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[t,e]);if(0!==i)throw new Error(tt(this.mod,r,n));At(this.mod)}copyFileToBuffer(t){let[e,i,r]=yt(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[t]);if(0!==e)throw new Error(tt(this.mod,i,r));let n=this.mod.HEAPU8.subarray(i,i+r),s=new Uint8Array(n.length);return s.set(n),At(this.mod),s}collectFileStatistics(t,e){let[i,r,n]=yt(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[t,e]);if(0!==i)throw new Error(tt(this.mod,r,n))}exportFileStatistics(t){let[e,i,r]=yt(this.mod,"duckdb_web_export_file_stats",["string"],[t]);if(0!==e)throw new Error(tt(this.mod,i,r));return new ia(this.mod.HEAPU8.subarray(i,i+r))}},na=class extends ra{constructor(t,e,i,r){super(t,e),this.mainModuleURL=i,this.pthreadWorkerURL=r}locateFile(t,e){if(t.endsWith(".wasm"))return this.mainModuleURL;if(t.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error(`WASM instantiation requested unexpected file: prefix=${e} path=${t}`)}instantiateWasm(t,e){globalThis.DUCKDB_RUNTIME=this._runtime;let i=this.onInstantiationProgress;if(WebAssembly.instantiateStreaming)if("function"==typeof TransformStream){let r=(async()=>{var t;let e=new Request(this.mainModuleURL),r=await fetch(e),n=r.headers.get("content-length"),s=n&&parseInt(n,10)||0,a=new Date,o={startedAt:a,updatedAt:a,bytesTotal:s||0,bytesLoaded:0},l=new TransformStream({transform(t,e){o.bytesLoaded+=t.byteLength;let r=new Date;if(r.getTime()-o.updatedAt.getTime()<20)return o.updatedAt=r,void e.enqueue(t);for(let t of i)t(o);e.enqueue(t)}});return new Response(null==(t=r.body)?void 0:t.pipeThrough(l),r)})();WebAssembly.instantiateStreaming(r,t).then((t=>{e(t.instance,t.module)}))}else{console.warn("instantiating without progress handler since transform streams are unavailable");let i=new Request(this.mainModuleURL);WebAssembly.instantiateStreaming(fetch(i),t).then((t=>{e(t.instance,t.module)}))}else if("function"==typeof XMLHttpRequest){let r=new XMLHttpRequest,n=this.mainModuleURL,s=new Date,a={startedAt:s,updatedAt:s,bytesTotal:0,bytesLoaded:0};r.open("GET",n),r.responseType="arraybuffer",r.onerror=t=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+t}),new Error(t.toString())},r.onprogress=t=>{a.bytesTotal=t.total,a.bytesLoaded=t.loaded;let e=new Date;if(e.getTime()-a.updatedAt.getTime()<20)a.updatedAt=e;else for(let t of i)t(a)},r.onload=()=>{WebAssembly.instantiate(r.response,t).then((t=>{e(t.instance,t.module)})).catch((t=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+t}),new Error(t)}))},r.send()}else console.warn("instantiating with manual fetch since streaming instantiation and xhrs are unavailable"),(async()=>{let i=new Request(this.mainModuleURL),r=await(await fetch(i)).arrayBuffer();WebAssembly.instantiate(r,t).then((t=>{e(t.instance,t.module)}))})();return[]}},sa=class extends na{constructor(t,e,i,r=null){super(t,e,i,r)}instantiateImpl(t){return Vp({...t,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}},ur=Df(Yp()),Xp=function(t,e,i){var r;if(null!=(r=null==t?void 0:t.endpoint)&&r.startsWith("http")){let e=`${null==t?void 0:t.endpoint}`,i=e.indexOf("://")+3;return e.substring(i)}return null!=t&&t.endpoint?`${i}.${null==t?void 0:t.endpoint}`:`${i}.s3.amazonaws.com`};function wI(t,e,i){var r,n,s,a;let o=Gp(e);return{url:o.path,query:"",host:Xp(t,e,o.bucket),region:null!=(r=null==t?void 0:t.region)?r:"",service:"s3",method:i,accessKeyId:null!=(n=null==t?void 0:t.accessKeyId)?n:"",secretAccessKey:null!=(s=null==t?void 0:t.secretAccessKey)?s:"",sessionToken:null!=(a=null==t?void 0:t.sessionToken)?a:"",dateNow:(new Date).toISOString().replace(/-/g,"").split("T")[0],datetimeNow:(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function jI(t,e=!1){let i="0123456789ABCDEF",r="";for(let n=0;n="A"&&s<="Z"||s>="a"&&s<="z"||s>="0"&&s<="9"||"_"==s||"-"==s||"~"==s||"."==s?r+=s:"/"==s?r+=e?"%2F":s:(r+="%",r+=i[s.charCodeAt(0)>>4],r+=i[15&s.charCodeAt(0)])}return r}function SI(t,e=null){var i;let r=null!=(i=null==e?void 0:e.contentHash)?i:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",n=new Map;n.set("x-amz-date",t.datetimeNow),n.set("x-amz-content-sha256",r),t.sessionToken&&n.set("x-amz-security-token",t.sessionToken);let s="";null!=e&&e.contentType&&(s+="content-type;"),s+="host;x-amz-content-sha256;x-amz-date",t.sessionToken&&(s+=";x-amz-security-token");let a=t.method+"\n"+jI(t.url)+"\n"+t.query;null!=e&&e.contentType&&(a+="\ncontent-type:"+(null==e?void 0:e.contentType)),a+="\nhost:"+t.host+"\nx-amz-content-sha256:"+r+"\nx-amz-date:"+t.datetimeNow,t.sessionToken&&t.sessionToken.length>0&&(a+="\nx-amz-security-token:"+t.sessionToken),a+="\n\n"+s+"\n"+r;let o=(0,ur.sha256)(a),l="AWS4-HMAC-SHA256\n"+t.datetimeNow+"\n"+t.dateNow+"/"+t.region+"/"+t.service+"/aws4_request\n"+o,u="AWS4"+t.secretAccessKey,c=ur.sha256.hmac.arrayBuffer(u,t.dateNow),h=ur.sha256.hmac.arrayBuffer(c,t.region),d=ur.sha256.hmac.arrayBuffer(h,t.service),f=ur.sha256.hmac.arrayBuffer(d,"aws4_request"),p=ur.sha256.hmac(f,l);return n.set("Authorization","AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+t.dateNow+"/"+t.region+"/"+t.service+"/aws4_request, SignedHeaders="+s+", Signature="+p),n}var II=function(t,e,i,r=null,n=null){return SI(wI(t,e,i),{contentType:r,contentHash:n?ur.sha256.hex(n):null})};function dr(t,e,i,r,n=null,s=null){((null==e?void 0:e.accessKeyId)||(null==e?void 0:e.sessionToken))&&(II(e,i,r,n,s).forEach(((e,i)=>{t.setRequestHeader(i,e)})),n&&t.setRequestHeader("content-type",n))}function Gp(t){if(0!=t.indexOf("s3://"))throw new Error("URL needs to start with s3://");let e=t.indexOf("/",5);if(-1==e)throw new Error("URL needs to contain a '/' after the host");let i=t.substring(5,e);if(!i)throw new Error("URL needs to contain a bucket name");let r=t.substring(e);if(!r)throw new Error("URL needs to contain key");return{bucket:i,path:r}}function fr(t,e){var i;let r=Gp(e);return null!=(i=null==t?void 0:t.endpoint)&&i.startsWith("http")?`${null==t?void 0:t.endpoint}/${r.bucket}`+r.path:"https://"+Xp(t,e,r.bucket)+r.path}var _t={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(t,e){try{let i=_t._fileInfoCache.get(e),[r,n,s]=yt(t,"duckdb_web_fs_get_file_info_by_id",["number","number"],[e,(null==i?void 0:i.cacheEpoch)||0]);if(0!==r)return null;if(0===s)return i;let a=tt(t,n,s);At(t);let o=JSON.parse(a);if(null==o)return null;let l={...o,blob:null};return _t._fileInfoCache.set(e,l),l}catch(t){return null}},getGlobalFileInfo(t){var e;try{let[i,r,n]=yt(t,"duckdb_web_get_global_file_info",["number"],[(null==(e=_t._globalFileInfo)?void 0:e.cacheEpoch)||0]);if(0!==i)return null;if(0===n)return _t._globalFileInfo;let s=tt(t,r,n);At(t);let a=JSON.parse(s);return null==a?null:(_t._globalFileInfo={...a,blob:null},_t._globalFileInfo)}catch(t){return null}},testPlatformFeature:(t,e)=>1===e?typeof BigInt64Array<"u":(console.warn(`test for unknown feature: ${e}`),!1),getDefaultDataProtocol:t=>2,openFile:(t,e,i)=>{var r;try{_t._fileInfoCache.delete(e);let n=_t.getFileInfo(t,e);switch(null==n?void 0:n.dataProtocol){case 4:case 5:{if(1&i&&2&i)throw new Error(`Opening file ${n.fileName} failed: cannot open file with both read and write flags set`);if(32&i)throw new Error(`Opening file ${n.fileName} failed: appending to HTTP/S3 files is not supported`);if(2&i){let e=new XMLHttpRequest;if(5==n.dataProtocol?(e.open("HEAD",fr(n.s3Config,n.dataUrl),!1),dr(e,n.s3Config,n.dataUrl,"HEAD")):e.open("HEAD",n.dataUrl,!1),e.send(null),200!=e.status&&404!=e.status)throw new Error(`Opening file ${n.fileName} failed: Unexpected return status from server (${e.status})`);if(404==e.status&&!(8&i||16&i))throw new Error(`Opening file ${n.fileName} failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag.`);let r=t._malloc(1),s=new Uint8Array;t.HEAPU8.set(s,r);let a=t._malloc(16);return t.HEAPF64[0+(a>>3)]=1,t.HEAPF64[1+(a>>3)]=r,a}if(1!=i)throw new Error(`Opening file ${n.fileName} failed: unsupported file flags: ${i}`);let e=null;try{let e=new XMLHttpRequest;5==n.dataProtocol?(e.open("HEAD",fr(n.s3Config,n.dataUrl),!1),dr(e,n.s3Config,n.dataUrl,"HEAD")):e.open("HEAD",n.dataUrl,!1),e.setRequestHeader("Range","bytes=0-"),e.send(null);let i=e.getResponseHeader("Content-Length");if(206==e.status&&null!==i){let e=t._malloc(16);return t.HEAPF64[0+(e>>3)]=+i,t.HEAPF64[1+(e>>3)]=0,e}}catch(t){e=t,console.warn(`HEAD request with range header failed: ${t}`)}if(n.allowFullHttpReads){console.warn(`falling back to full HTTP read for: ${n.dataUrl}`);let e=new XMLHttpRequest;if(5==n.dataProtocol?(e.open("GET",fr(n.s3Config,n.dataUrl),!1),dr(e,n.s3Config,n.dataUrl,"GET")):e.open("GET",n.dataUrl,!1),e.responseType="arraybuffer",e.send(null),200==e.status){let i=t._malloc(e.response.byteLength),r=new Uint8Array(e.response,0,e.response.byteLength);t.HEAPU8.set(r,i);let n=t._malloc(16);return t.HEAPF64[0+(n>>3)]=e.response.byteLength,t.HEAPF64[1+(n>>3)]=i,n}}if(null!=e)throw new Error(`Reading file ${n.fileName} failed with error: ${e}`);return 0}case 2:{let e=null==(r=_t._files)?void 0:r.get(n.fileName);if(e){let i=t._malloc(16);return t.HEAPF64[0+(i>>3)]=e.size,t.HEAPF64[1+(i>>3)]=0,i}console.warn(`Buffering missing file: ${n.fileName}`);let i=t._malloc(16),s=t._malloc(1);return t.HEAPF64[0+(i>>3)]=1,t.HEAPF64[1+(i>>3)]=s,i}}}catch(e){console.error(e.toString()),Ai(t,e.toString())}return 0},glob:(t,e,i)=>{try{let r=tt(t,e,i);if(r.startsWith("http")||r.startsWith("s3://")){let e=new XMLHttpRequest;if(r.startsWith("s3://")){let i=_t.getGlobalFileInfo(t);e.open("HEAD",fr(null==i?void 0:i.s3Config,r),!1),dr(e,null==i?void 0:i.s3Config,r,"HEAD")}else e.open("HEAD",r,!1);if(e.send(null),200!=e.status&&206!==e.status)return void Ai(t,`HEAD request failed: ${r}`);t.ccall("duckdb_web_fs_glob_add_path",null,["string"],[r])}}catch(e){return Ai(t,e.toString()),0}},checkFile:(t,e,i)=>{try{let r=tt(t,e,i);if(r.startsWith("http")||r.startsWith("s3://")){let e=new XMLHttpRequest;if(r.startsWith("s3://")){let i=_t.getGlobalFileInfo(t);e.open("HEAD",fr(null==i?void 0:i.s3Config,r),!1),dr(e,null==i?void 0:i.s3Config,r,"HEAD")}else e.open("HEAD",r,!1);return e.send(null),206==e.status||200==e.status}}catch(t){return!1}return!1},syncFile:(t,e)=>{},closeFile:(t,e)=>{var i;let r=_t.getFileInfo(t,e);switch(_t._fileInfoCache.delete(e),null==r?void 0:r.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let t=null==(i=_t._files)?void 0:i.get(r.fileName);if(!t)throw new Error(`No OPFS access handle registered with name: ${r.fileName}`);return t.flush()}}},truncateFile:(t,e,i)=>{var r;let n=_t.getFileInfo(t,e);switch(null==n?void 0:n.dataProtocol){case 4:return void Ai(t,"Cannot truncate a http file");case 5:return void Ai(t,"Cannot truncate an s3 file");case 0:case 1:case 2:return void Ai(t,"truncateFile not implemented");case 3:{let t=null==(r=_t._files)?void 0:r.get(n.fileName);if(!t)throw new Error(`No OPFS access handle registered with name: ${n.fileName}`);return t.truncate(i)}}return 0},readFile(t,e,i,r,n){var s,a;try{let o=_t.getFileInfo(t,e);switch(null==o?void 0:o.dataProtocol){case 4:case 5:if(!o.dataUrl)throw new Error(`Missing data URL for file ${e}`);try{let e=new XMLHttpRequest;if(5==o.dataProtocol?(e.open("GET",fr(null==o?void 0:o.s3Config,o.dataUrl),!1),dr(e,null==o?void 0:o.s3Config,o.dataUrl,"GET")):e.open("GET",o.dataUrl,!1),e.responseType="arraybuffer",e.setRequestHeader("Range",`bytes=${n}-${n+r-1}`),e.send(null),206==e.status||200==e.status&&r==e.response.byteLength&&0==n){let n=new Uint8Array(e.response,0,Math.min(e.response.byteLength,r));return t.HEAPU8.set(n,i),n.byteLength}throw 200==e.status?new Error(`Range request for ${o.dataUrl} did not return a partial response: ${e.status} "${e.statusText}"`):new Error(`Range request for ${o.dataUrl} did returned non-success status: ${e.status} "${e.statusText}"`)}catch(t){throw new Error(`Range request for ${o.dataUrl} failed with error: ${t}"`)}case 2:{let e=null==(s=_t._files)?void 0:s.get(o.fileName);if(!e)throw new Error(`No HTML5 file registered with name: ${o.fileName}`);let a=e.slice(n,n+r),l=new Uint8Array((new FileReaderSync).readAsArrayBuffer(a));return t.HEAPU8.set(l,i),l.byteLength}case 3:{let e=null==(a=_t._files)?void 0:a.get(o.fileName);if(!e)throw new Error(`No OPFS access handle registered with name: ${o.fileName}`);let s=t.HEAPU8.subarray(i,i+r);return e.read(s,{at:n})}}return 0}catch(e){return Ai(t,e.toString()),0}},writeFile:(t,e,i,r,n)=>{var s;let a=_t.getFileInfo(t,e);switch(null==a?void 0:a.dataProtocol){case 4:return Ai(t,"Cannot write to HTTP file"),0;case 5:{let e=t.HEAPU8.subarray(i,i+r),n=new XMLHttpRequest;return n.open("PUT",fr(null==a?void 0:a.s3Config,a.dataUrl),!1),dr(n,null==a?void 0:a.s3Config,a.dataUrl,"PUT","",e),n.send(e),r}case 2:return Ai(t,"cannot write using the html5 file reader api"),0;case 3:{let e=null==(s=_t._files)?void 0:s.get(a.fileName);if(!e)throw new Error(`No OPFS access handle registered with name: ${a.fileName}`);let o=t.HEAPU8.subarray(i,i+r);return e.write(o,{at:n})}}return 0},getLastFileModificationTime:(t,e)=>{var i;let r=_t.getFileInfo(t,e);switch(null==r?void 0:r.dataProtocol){case 2:if(!(null==(i=_t._files)?void 0:i.get(r.fileName)))throw Error(`No handle available for file: ${r.fileName}`);return 0;case 4:case 5:return(new Date).getTime()}return 0},checkDirectory:(t,e,i)=>{let r=tt(t,e,i);return console.log(`checkDirectory: ${r}`),!1},createDirectory:(t,e,i)=>{let r=tt(t,e,i);console.log(`createDirectory: ${r}`)},removeDirectory:(t,e,i)=>{let r=tt(t,e,i);console.log(`removeDirectory: ${r}`)},listDirectoryEntries:(t,e,i)=>{let r=tt(t,e,i);return console.log(`listDirectoryEntries: ${r}`),!1},moveFile:(t,e,i,r,n)=>{var s,a;let o=tt(t,e,i),l=tt(t,r,n),u=null==(s=_t._files)?void 0:s.get(o);void 0!==u&&(_t._files.delete(u),_t._files.set(l,u));for(let[t,e]of(null==(a=_t._fileInfoCache)?void 0:a.entries())||[])if(e.dataUrl==o){_t._fileInfoCache.delete(t);break}return!0},removeFile:(t,e,i)=>{},callScalarUDF:(t,e,i,r,n,s,a)=>{$p(_t,t,e,i,r,n,s,a)}},bl=class extends Zo{postMessage(t,e){globalThis.postMessage(t,e)}async instantiate(t,e,i){return await new sa(this,_t,t,e).instantiate(i)}};function Kp(){let t=new bl;globalThis.onmessage=async e=>{await t.onMessage(e.data)}}return Kp(),Ow(CI)})(); \ No newline at end of file diff --git a/static/assets/duckdb-browser-mvp.worker.2becea0c54c097de0a11.js.LICENSE.txt b/static/assets/duckdb-browser-mvp.worker.2becea0c54c097de0a11.js.LICENSE.txt deleted file mode 100644 index 7bcb1f4c4..000000000 --- a/static/assets/duckdb-browser-mvp.worker.2becea0c54c097de0a11.js.LICENSE.txt +++ /dev/null @@ -1,8 +0,0 @@ -/** - * [js-sha256]{@link https://github.com/emn178/js-sha256} - * - * @version 0.9.0 - * @author Chen, Yi-Cyuan [emn178@gmail.com] - * @copyright Chen, Yi-Cyuan 2014-2017 - * @license MIT - */ diff --git a/static/assets/duckdb-browser-mvp.worker.f9beb4e5905c48199a83.js b/static/assets/duckdb-browser-mvp.worker.f9beb4e5905c48199a83.js new file mode 100644 index 000000000..1b559d649 --- /dev/null +++ b/static/assets/duckdb-browser-mvp.worker.f9beb4e5905c48199a83.js @@ -0,0 +1,2 @@ +/*! For license information please see duckdb-browser-mvp.worker.f9beb4e5905c48199a83.js.LICENSE.txt */ +"use strict";var duckdb=(()=>{var Vl=Object.create,Fi=Object.defineProperty,zl=Object.getOwnPropertyDescriptor,$l=Object.getOwnPropertyNames,ql=Object.getPrototypeOf,Xl=Object.prototype.hasOwnProperty,ya=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e),Ql=(e,t,r)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xi=(c=function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')},typeof require<"u"?require:typeof Proxy<"u"?new Proxy(c,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):c),c,pr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),mr=(e,t)=>{for(var r in t)Fi(e,r,{get:t[r],enumerable:!0})},Io=(e,t,r,i)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of $l(t))!Xl.call(e,n)&&n!==r&&Fi(e,n,{get:()=>t[n],enumerable:!(i=zl(t,n))||i.enumerable});return e},Bo=(e,t,r)=>(r=null!=e?Vl(ql(e)):{},Io(!t&&e&&e.__esModule?r:Fi(r,"default",{value:e,enumerable:!0}),e)),Yl=e=>Io(Fi({},"__esModule",{value:!0}),e),Qe=(e,t,r)=>(Ql(e,"symbol"!=typeof t?t+"":t,r),r),Jl=function(e,t){this[0]=e,this[1]=t},Pr=e=>{var t,r=e[ya("asyncIterator")],i=!1,n={};return null==r?(r=e[ya("iterator")](),t=e=>n[e]=t=>r[e](t)):(r=r.call(e),t=e=>n[e]=t=>{if(i){if(i=!1,"throw"===e)throw t;return t}return i=!0,{done:!1,value:new Jl(new Promise((i=>{var n=r[e](t);if(!(n instanceof Object))throw TypeError("Object expected");i(n)})),1)}}),n[ya("iterator")]=()=>n,t("next"),"throw"in r?t("throw"):n.throw=e=>{throw e},"return"in r&&t("return"),n},wo=pr((()=>{})),Eo=pr((()=>{})),Fl=pr((()=>{})),Lo=pr(((e,t)=>{t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}})),Cl=pr(((exports,module)=>{var DuckDB=(()=>{var c,_scriptName=typeof document<"u"?null==(c=document.currentScript)?void 0:c.src:void 0;return typeof __filename<"u"&&(_scriptName=_scriptName||__filename),function(moduleArg={}){var moduleRtn,Module=moduleArg,readyPromiseResolve,readyPromiseReject,readyPromise=new Promise(((e,t)=>{readyPromiseResolve=e,readyPromiseReject=t})),ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER=typeof WorkerGlobalScope<"u",ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type,ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER,moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=wo(),nodePath=Eo();scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,i)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?i(e):r(t?n.buffer:n)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:typeof document<"u"&&document.currentScript&&(scriptDirectory=document.currentScript.src),_scriptName&&(scriptDirectory=_scriptName),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary=Module.wasmBinary,wasmMemory,ABORT=!1,EXITSTATUS,HEAP,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function assert(e,t){e||abort(t)}function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||16777216;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:65536})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATEXIT__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),!Module.noFSInit&&!FS.initialized&&FS.init(),FS.ignorePermissions=!1,TTY.init(),SOCKFS.root=FS.mount(SOCKFS,{},null),PIPEFS.root=FS.mount(PIPEFS,{},null),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPreMain(e){__ATMAIN__.unshift(e)}function addOnExit(e){}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){var t;runDependencies++,null==(t=Module.monitorRunDependencies)||t.call(Module,runDependencies)}function removeRunDependency(e){var t;if(runDependencies--,null==(t=Module.monitorRunDependencies)||t.call(Module,runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var r=dependenciesFulfilled;dependenciesFulfilled=null,r()}}function abort(e){var t;null==(t=Module.onAbort)||t.call(Module,e),err(e="Aborted("+e+")"),ABORT=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw readyPromiseReject(r),r}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="./duckdb-mvp.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err("failed to asynchronously prepare wasm: ".concat(e)),abort(e)}))}function instantiateAsync(e,t,r,i){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,i):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(i,(function(e){return err("wasm streaming compile failed: ".concat(e)),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,i)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit((wasmExports=applySignatureConversions(wasmExports)).__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){err("Module.instantiateWasm callback failed with error: ".concat(e)),readyPromiseReject(e)}return null!=wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})).catch(readyPromiseReject),{}}var tempDouble,tempI64,ASM_CONSTS={2178744:(e,t)=>{var r="object"==typeof runtime&&runtime&&"function"==typeof runtime.whereToLoad&&runtime.whereToLoad?runtime.whereToLoad(UTF8ToString(e)):UTF8ToString(t),i=lengthBytesUTF8(r)+1,n=_malloc(i);return stringToUTF8(r,n,i),n},2179110:(e,t)=>{var r=UTF8ToString(e);if(typeof XMLHttpRequest>"u"){let e=Fl(),t=Eo(),c=wo();var i=r.split("/"),n=i.length,a=t.join(e.homedir(),".duckdb/extensions/"+i[n-4]+"/"+i[n-3]+"/"+i[n-2]+"/"),s=t.join(a,i[n-1]);try{if(c.existsSync(a)||c.mkdirSync(a,{recursive:!0}),c.existsSync(s))o=c.readFileSync(s);else{let e=new Int32Array(new SharedArrayBuffer(8));var o,l=new(0,xi("node:worker_threads").Worker)("const {Worker,isMainThread,parentPort,workerData,} = require('node:worker_threads');var times = 0;var SAB = 23;var Z = 0; async function ZZZ(e) {var x = await fetch(e);var res = await x.arrayBuffer();Atomics.store(SAB, 1, res.byteLength);Atomics.store(SAB, 0, 1);Atomics.notify(SAB, 1);Atomics.notify(SAB, 0);Z = res;};parentPort.on('message', function(event) {if (times == 0) {times++;SAB = event;} else if (times == 1) {times++; ZZZ(event);} else {const a = new Uint8Array(Z);const b = new Uint8Array(event.buffer);var K = Z.byteLength;for (var i = 0; i < K; i++) {b[i] = a[i];}Atomics.notify(event, 0);Atomics.store(SAB, 0, 2);Atomics.notify(SAB, 0);}});",{eval:!0});e[0]=0,e[2]=4,l.postMessage(e),l.postMessage(r),Atomics.wait(e,0,0);let t=new Int32Array(new SharedArrayBuffer(e[1]+3-(e[1]+3)%4));l.postMessage(t),Atomics.wait(e,0,1),o=new Uint8Array(t.buffer,0,e[1]),l.terminate(),c.writeFileSync(s,o)}}catch(e){return console.log("Error fetching module",e),0}}else{let e=new XMLHttpRequest;if(e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),200!=e.status)return 0;o=e.response}WebAssembly.validate(o);for(var c=o.byteLength,_=_malloc(c+4),u=new Uint8Array(o),d=0;d{if(!e)return AL.alcErr=40964,1},2181799:e=>AL.currentCtx?e?void 0:(AL.currentCtx.err=40963,1):(err("alGetProcAddress() called without a valid context"),1)};class ExitStatus{constructor(e){Qe(this,"name","ExitStatus"),this.message="Program terminated with exit(".concat(e,")"),this.status=e}}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder=typeof TextDecoder<"u"?new TextDecoder:void 0,UTF8ArrayToString=(e,t=0,r=NaN)=>{for(var i=(t>>>=0)+r,n=t;e[n]&&!(n>=i);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var a="";t>10,56320|1023&c)}}else a+=String.fromCharCode((31&s)<<6|o)}else a+=String.fromCharCode(s)}return a},getDylinkMetadata=e=>{var t=0,r=0;function i(){for(var r=0,i=1;;){var n=e[t++];if(r+=(127&n)*i,i*=128,!(128&n))break}return r}function n(){var r=i();return UTF8ArrayToString(e,(t+=r)-r,r)}function a(e,t){if(e)throw new Error(t)}var s="dylink.0";if(e instanceof WebAssembly.Module){var o=WebAssembly.Module.customSections(e,s);0===o.length&&(s="dylink",o=WebAssembly.Module.customSections(e,s)),a(0===o.length,"need dylink section"),r=(e=new Uint8Array(o[0])).length}else{a(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),a(0!==e[8],"need the dylink section to be first"),t=9;var l=i();r=t+l,s=n()}var c={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==s){c.memorySize=i(),c.memoryAlign=i(),c.tableSize=i(),c.tableAlign=i();for(var _=i(),u=0;u<_;++u){var d=n();c.neededDynlibs.push(d)}}else for(a("dylink.0"!==s);t>>0];case"i16":return HEAP16[e>>>1>>>0];case"i32":return HEAP32[e>>>2>>>0];case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return HEAPF32[e>>>2>>>0];case"double":return HEAPF64[e>>>3>>>0];case"*":return HEAPU32[e>>>2>>>0];default:abort("invalid type for getValue: ".concat(t))}}var newDSO=(e,t,r)=>{var i={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=i,null!=t&&(LDSO.loadedLibsByHandle[t]=i),i},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=2320176,alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return _calloc(e,1);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},i=1;i{var r=e.slice(0,1),i=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(i.length,t);for(var a=0;a{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var i=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,i),i.push(...r),i.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(i));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},wasmTable=new WebAssembly.Table({initial:42013,element:"anyfunc"}),getWasmTableEntry=e=>wasmTable.get(e),updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){throw e instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":e}return wasmTable.length-1},setWasmTableEntry=(e,t)=>wasmTable.set(e,t),addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var i=getEmptyTableSlot();try{setWasmTableEntry(i,e)}catch(r){if(!(r instanceof TypeError))throw r;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(i,n)}return functionsInTableMap.set(e,i),i},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var i=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||(GOT[r]=new WebAssembly.Global({value:"i32",mutable:!0})),(t||0==GOT[r].value)&&("function"==typeof i?GOT[r].value=addFunction(i):"number"==typeof i?GOT[r].value=i:err("unhandled export type for '".concat(r,"': ").concat(typeof i)))}},relocateExports=(e,t,r)=>{var i={};for(var n in e){var a=e[n];"object"==typeof a&&(a=a.value),"number"==typeof a&&(a+=t),i[n]=a}return updateGOT(i,r),i},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},setTempRet0=e=>__emscripten_tempret_set(e),_setTempRet0=setTempRet0;Module._setTempRet0=_setTempRet0;var createDyncallWrapper=e=>{var t=[];t.push([0,97,115,109,1,0,0,0]);var r=[e[0].replace("j","i"),"i",e.slice(1).replace(/j/g,"ii")].join(""),i=[3];generateFuncType(r,i),generateFuncType(e,i),generateFuncType("vi",i);var n=[1];uleb128Encode(i.length,n),n.push(...i),t.push(n),t.push([2,15,2,1,101,1,116,1,112,0,0,1,101,1,114,0,2]),t.push([3,2,1,0]),t.push([7,5,1,1,102,0,1]);var a=[];function s(e){a.push(32),uleb128Encode(e,a)}"j"===e[0]?a=[1,1,126]:a.push(0);for(var o=1,l=1;l("dynCall_"+(e=e.replace(/p/g,"i"))in Module||(Module["dynCall_"+e]=createDyncallWrapper(e)),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>{if(e.includes("j"))return dynCallLegacy(e,t,r);var i=getWasmTableEntry(t)(...r);return"p"==e[0]?i>>>0:i},stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var i=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")?r=wasmImports[e]=createInvokeFunction(e.split("_")[1]):e.startsWith("__cxa_find_matching_catch_")&&(r=wasmImports[e]=(...e)=>findMatchingCatch(e)),{sym:r,name:e}},UTF8ToString=(e,t)=>(e>>>=0)?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8>>>0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8>>>0]=1,HEAPU32[handle+12>>>2>>>0]=memoryBase,HEAP32[handle+16>>>2>>>0]=metadata.memorySize,HEAPU32[handle+20>>>2>>>0]=tableBase,HEAP32[handle+24>>>2>>>0]=metadata.tableSize)}else memoryBase=HEAPU32[handle+12>>>2>>>0],tableBase=HEAPU32[handle+20>>>2>>>0];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){if(t.startsWith("invoke_"))return createDyncallWrapper(t.substring(7));switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return t in wasmImports&&!wasmImports[t].stub?wasmImports[t]:(t in e||(e[t]=(...e)=>(r||(r=resolveSymbol(t)),r(...e))),e[t]);var r}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func="(".concat(args,") => { ").concat(body," };");ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start ").concat(body,";");moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,i]of(registerDynCallSymbols(e),Object.entries(e)))isSymbolDefined(n=r)||(wasmImports[n]=i);var n},asyncLoad=(e,t,r,i)=>{var n=i?"":"al ".concat(e);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!r)throw'Loading data file "'.concat(e,'" failed.');r()})),n&&addRunDependency(n)},preloadPlugins=Module.preloadPlugins||[],registerWasmPlugin=()=>{var e={promiseChainEnd:Promise.resolve(),canHandle:e=>!Module.noWasmDecoding&&e.endsWith(".so"),handle:(t,r,i,n)=>{e.promiseChainEnd=e.promiseChainEnd.then((()=>loadWebAssemblyModule(t,{loadAsync:!0,nodelete:!0},r,{}))).then((e=>{preloadedWasm[r]=e,i(t)}),(e=>{err("failed to instantiate wasm: ".concat(r,": ").concat(e)),n()}))}};preloadPlugins.push(e)},preloadedWasm={},registerDynCallSymbols=e=>{for(var[t,r]of Object.entries(e))t.startsWith("dynCall_")&&!Module.hasOwnProperty(t)&&(Module[t]=r)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,i){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):(r&&Object.assign(r,n.exports),registerDynCallSymbols(n.exports)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,i&&(LDSO.loadedLibsByHandle[i]=n),!t.loadAsync||Promise.resolve(!0);function a(){if(i){var r=HEAPU32[i+28>>>2>>>0],n=HEAPU32[i+32>>>2>>>0];if(r&&n){var a=HEAP8.slice(r,r+n);return t.loadAsync?Promise.resolve(a):a}}var s=locateFile(e);if(t.loadAsync)return new Promise(((e,t)=>asyncLoad(s,e,t)));if(!readBinary)throw new Error("".concat(s,": file not found, and synchronous loading of external files is not available"));return readBinary(s)}function s(){var n=preloadedWasm[e];return n?t.loadAsync?Promise.resolve(n):n:t.loadAsync?a().then((n=>loadWebAssemblyModule(n,t,e,r,i))):loadWebAssemblyModule(a(),t,e,r,i)}function o(t){n.global?mergeLibSymbols(t,e):r&&(Object.assign(r,t),registerDynCallSymbols(t)),n.exports=t}return(n=newDSO(e,i,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?s().then((e=>(o(e),!0))):(o(s()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error("bad export type for '".concat(e,"': ").concat(typeof r));t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e>>>0]=t;break;case"i16":HEAP16[e>>>1>>>0]=t;break;case"i32":HEAP32[e>>>2>>>0]=t;break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":HEAPF32[e>>>2>>>0]=t;break;case"double":HEAPF64[e>>>3>>>0]=t;break;case"*":HEAPU32[e>>>2>>>0]=t;break;default:abort("invalid type for setValue: ".concat(r))}}function __ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm(...e){return wasmImports._ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm(...e)}__ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm.stub=!0;var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function ___assert_fail(e,t,r,i){t>>>=0,i>>>=0,abort("Assertion failed: ".concat(UTF8ToString(e>>>=0),", at: ")+[t?UTF8ToString(t):"unknown filename",r,i?UTF8ToString(i):"unknown function"])}function ___call_sighandler(e,t){return getWasmTableEntry(e>>>=0)(t)}___assert_fail.sig="vppip",___call_sighandler.sig="vpi";var exceptionCaught=[],uncaughtExceptionCount=0;function ___cxa_begin_catch(e){var t=new ExceptionInfo(e>>>=0);return t.get_caught()||(t.set_caught(!0),uncaughtExceptionCount--),t.set_rethrown(!1),exceptionCaught.push(t),___cxa_increment_exception_refcount(e),___cxa_get_exception_ptr(e)}function ___cxa_current_primary_exception(){if(!exceptionCaught.length)return 0;var e=exceptionCaught[exceptionCaught.length-1];return ___cxa_increment_exception_refcount(e.excPtr),e.excPtr}___cxa_begin_catch.sig="pp",___cxa_current_primary_exception.sig="p";var exceptionLast=0,___cxa_end_catch=()=>{_setThrew(0,0);var e=exceptionCaught.pop();___cxa_decrement_exception_refcount(e.excPtr),exceptionLast=0};___cxa_end_catch.sig="v";class ExceptionInfo{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){HEAPU32[this.ptr+4>>>2>>>0]=e}get_type(){return HEAPU32[this.ptr+4>>>2>>>0]}set_destructor(e){HEAPU32[this.ptr+8>>>2>>>0]=e}get_destructor(){return HEAPU32[this.ptr+8>>>2>>>0]}set_caught(e){e=e?1:0,HEAP8[this.ptr+12>>>0]=e}get_caught(){return 0!=HEAP8[this.ptr+12>>>0]}set_rethrown(e){e=e?1:0,HEAP8[this.ptr+13>>>0]=e}get_rethrown(){return 0!=HEAP8[this.ptr+13>>>0]}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){HEAPU32[this.ptr+16>>>2>>>0]=e}get_adjusted_ptr(){return HEAPU32[this.ptr+16>>>2>>>0]}}function ___resumeException(e){throw exceptionLast||(exceptionLast=e>>>=0),exceptionLast}___resumeException.sig="vp";var findMatchingCatch=e=>{var t=exceptionLast;if(!t)return setTempRet0(0),0;var r=new ExceptionInfo(t);r.set_adjusted_ptr(t);var i=r.get_type();if(!i)return setTempRet0(0),t;for(var n of e){if(0===n||n===i)break;var a=r.ptr+16;if(___cxa_can_catch(n,i,a))return setTempRet0(n),t}return setTempRet0(i),t};function ___cxa_find_matching_catch_2(){return findMatchingCatch([])}function ___cxa_find_matching_catch_3(e){return findMatchingCatch([e>>>=0])}function ___cxa_find_matching_catch_4(e,t){return findMatchingCatch([e>>>=0,t>>>=0])}___cxa_find_matching_catch_2.sig="p",___cxa_find_matching_catch_3.sig="pp",___cxa_find_matching_catch_4.sig="ppp";var ___cxa_rethrow=()=>{var e=exceptionCaught.pop();e||abort("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(exceptionCaught.push(e),e.set_rethrown(!0),e.set_caught(!1),uncaughtExceptionCount++),exceptionLast=t};function ___cxa_rethrow_primary_exception(e){if(e>>>=0){var t=new ExceptionInfo(e);exceptionCaught.push(t),t.set_rethrown(!0),___cxa_rethrow()}}function ___cxa_throw(e,t,r){throw t>>>=0,r>>>=0,new ExceptionInfo(e>>>=0).init(t,r),uncaughtExceptionCount++,exceptionLast=e}___cxa_rethrow.sig="v",___cxa_rethrow_primary_exception.sig="vp",___cxa_throw.sig="vppp";var ___cxa_uncaught_exceptions=()=>uncaughtExceptionCount;___cxa_uncaught_exceptions.sig="i";var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_high=2320176,___stack_low=2254640,___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},2320176),PATH={isAbs:e=>"/"===e.charAt(0),splitPath:e=>/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1),normalizeArray:(e,t)=>{for(var r=0,i=e.length-1;i>=0;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r;r--)e.unshift("..");return e},normalize:e=>{var t=PATH.isAbs(e),r="/"===e.substr(-1);return!(e=PATH.normalizeArray(e.split("/").filter((e=>!!e)),!t).join("/"))&&!t&&(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:e=>{var t=PATH.splitPath(e),r=t[0],i=t[1];return r||i?(i&&(i=i.substr(0,i.length-1)),r+i):"."},basename:e=>{if("/"===e)return"/";var t=(e=(e=PATH.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},join:(...e)=>PATH.normalize(e.join("/")),join2:(e,t)=>PATH.normalize(e+"/"+t)},initRandomFill=()=>{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);if(ENVIRONMENT_IS_NODE)try{var e=xi("crypto");if(e.randomFillSync)return t=>e.randomFillSync(t);var t=e.randomBytes;return e=>(e.set(t(e.byteLength)),e)}catch(e){}abort("initRandomDevice")},randomFill=e=>(randomFill=initRandomFill())(e),PATH_FS={resolve:(...e)=>{for(var t="",r=!1,i=e.length-1;i>=-1&&!r;i--){var n=i>=0?e[i]:FS.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");if(!n)return"";t=n+"/"+t,r=PATH.isAbs(n)}return(r?"/":"")+(t=PATH.normalizeArray(t.split("/").filter((e=>!!e)),!r).join("/"))||"."},relative:(e,t)=>{function r(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=PATH_FS.resolve(e).substr(1),t=PATH_FS.resolve(t).substr(1);for(var i=r(e.split("/")),n=r(t.split("/")),a=Math.min(i.length,n.length),s=a,o=0;o{for(var t=0,r=0;r=55296&&i<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,i)=>{if(!(i>0))return 0;for(var n=r>>>=0,a=r+i-1,s=0;s=55296&&o<=57343&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++s)),o<=127){if(r>=a)break;t[r++>>>0]=o}else if(o<=2047){if(r+1>=a)break;t[r++>>>0]=192|o>>6,t[r++>>>0]=128|63&o}else if(o<=65535){if(r+2>=a)break;t[r++>>>0]=224|o>>12,t[r++>>>0]=128|o>>6&63,t[r++>>>0]=128|63&o}else{if(r+3>=a)break;t[r++>>>0]=240|o>>18,t[r++>>>0]=128|o>>12&63,t[r++>>>0]=128|o>>6&63,t[r++>>>0]=128|63&o}}return t[r>>>0]=0,r-n};function intArrayFromString(e,t,r){var i=r>0?r:lengthBytesUTF8(e)+1,n=new Array(i),a=stringToUTF8Array(e,n,0,n.length);return t&&(n.length=a),n}var FS_stdin_getChar=()=>{if(!FS_stdin_getChar_buffer.length){var e=null;if(ENVIRONMENT_IS_NODE){var t=Buffer.alloc(256),r=0,i=process.stdin.fd;try{r=fs.readSync(i,t,0,256)}catch(e){if(!e.toString().includes("EOF"))throw e;r=0}r>0&&(e=t.slice(0,r).toString("utf-8"))}else typeof window<"u"&&"function"==typeof window.prompt&&null!==(e=window.prompt("Input: "))&&(e+="\n");if(!e)return null;FS_stdin_getChar_buffer=intArrayFromString(e,!0)}return FS_stdin_getChar_buffer.shift()},TTY={ttys:[],init(){},shutdown(){},register(e,t){TTY.ttys[e]={input:[],output:[],ops:t},FS.registerDevice(e,TTY.stream_ops)},stream_ops:{open(e){var t=TTY.ttys[e.node.rdev];if(!t)throw new FS.ErrnoError(43);e.tty=t,e.seekable=!1},close(e){e.tty.ops.fsync(e.tty)},fsync(e){e.tty.ops.fsync(e.tty)},read(e,t,r,i,n){if(!e.tty||!e.tty.ops.get_char)throw new FS.ErrnoError(60);for(var a=0,s=0;sFS_stdin_getChar(),put_char(e,t){null===t||10===t?(out(UTF8ArrayToString(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(out(UTF8ArrayToString(e.output)),e.output=[])},ioctl_tcgets:e=>({c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}),ioctl_tcsets:(e,t,r)=>0,ioctl_tiocgwinsz:e=>[24,80]},default_tty1_ops:{put_char(e,t){null===t||10===t?(err(UTF8ArrayToString(e.output)),e.output=[]):0!=t&&e.output.push(t)},fsync(e){e.output&&e.output.length>0&&(err(UTF8ArrayToString(e.output)),e.output=[])}}},zeroMemory=(e,t)=>{HEAPU8.fill(0,e,e+t)},mmapAlloc=e=>{e=alignMemory(e,65536);var t=_emscripten_builtin_memalign(65536,e);return t&&zeroMemory(t,e),t},MEMFS={ops_table:null,mount:e=>MEMFS.createNode(null,"/",16895,0),createNode(e,t,r,i){if(FS.isBlkdev(r)||FS.isFIFO(r))throw new FS.ErrnoError(63);MEMFS.ops_table||(MEMFS.ops_table={dir:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,lookup:MEMFS.node_ops.lookup,mknod:MEMFS.node_ops.mknod,rename:MEMFS.node_ops.rename,unlink:MEMFS.node_ops.unlink,rmdir:MEMFS.node_ops.rmdir,readdir:MEMFS.node_ops.readdir,symlink:MEMFS.node_ops.symlink},stream:{llseek:MEMFS.stream_ops.llseek}},file:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:{llseek:MEMFS.stream_ops.llseek,read:MEMFS.stream_ops.read,write:MEMFS.stream_ops.write,allocate:MEMFS.stream_ops.allocate,mmap:MEMFS.stream_ops.mmap,msync:MEMFS.stream_ops.msync}},link:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr,readlink:MEMFS.node_ops.readlink},stream:{}},chrdev:{node:{getattr:MEMFS.node_ops.getattr,setattr:MEMFS.node_ops.setattr},stream:FS.chrdev_stream_ops}});var n=FS.createNode(e,t,r,i);return FS.isDir(n.mode)?(n.node_ops=MEMFS.ops_table.dir.node,n.stream_ops=MEMFS.ops_table.dir.stream,n.contents={}):FS.isFile(n.mode)?(n.node_ops=MEMFS.ops_table.file.node,n.stream_ops=MEMFS.ops_table.file.stream,n.usedBytes=0,n.contents=null):FS.isLink(n.mode)?(n.node_ops=MEMFS.ops_table.link.node,n.stream_ops=MEMFS.ops_table.link.stream):FS.isChrdev(n.mode)&&(n.node_ops=MEMFS.ops_table.chrdev.node,n.stream_ops=MEMFS.ops_table.chrdev.stream),n.timestamp=Date.now(),e&&(e.contents[t]=n,e.timestamp=n.timestamp),n},getFileDataAsTypedArray:e=>e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0),expandFileStorage(e,t){var r=e.contents?e.contents.length:0;if(!(r>=t)){t=Math.max(t,r*(r<1048576?2:1.125)>>>0),0!=r&&(t=Math.max(t,256));var i=e.contents;e.contents=new Uint8Array(t),e.usedBytes>0&&e.contents.set(i.subarray(0,e.usedBytes),0)}},resizeFileStorage(e,t){if(e.usedBytes!=t)if(0==t)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr(e){var t={};return t.dev=FS.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,FS.isDir(e.mode)?t.size=4096:FS.isFile(e.mode)?t.size=e.usedBytes:FS.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&MEMFS.resizeFileStorage(e,t.size)},lookup(e,t){throw FS.genericErrors[44]},mknod:(e,t,r,i)=>MEMFS.createNode(e,t,r,i),rename(e,t,r){if(FS.isDir(e.mode)){var i;try{i=FS.lookupNode(t,r)}catch(e){}if(i)for(var n in i.contents)throw new FS.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp},unlink(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir(e,t){var r=FS.lookupNode(e,t);for(var i in r.contents)throw new FS.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir(e){var t=[".",".."];for(var r of Object.keys(e.contents))t.push(r);return t},symlink(e,t,r){var i=MEMFS.createNode(e,t,41471,0);return i.link=r,i},readlink(e){if(!FS.isLink(e.mode))throw new FS.ErrnoError(28);return e.link}},stream_ops:{read(e,t,r,i,n){var a=e.node.contents;if(n>=e.node.usedBytes)return 0;var s=Math.min(e.node.usedBytes-n,i);if(s>8&&a.subarray)t.set(a.subarray(n,n+s),r);else for(var o=0;o0||r+t>>0))}else s=!1,a=o.byteOffset;return{ptr:a,allocated:s}},msync:(e,t,r,i,n)=>(MEMFS.stream_ops.write(e,t,0,i,r,!1),0)}},FS_createDataFile=(e,t,r,i,n,a)=>{FS.createDataFile(e,t,r,i,n,a)},FS_handledByPreloadPlugin=(e,t,r,i)=>{typeof Browser<"u"&&Browser.init();var n=!1;return preloadPlugins.forEach((a=>{n||a.canHandle(t)&&(a.handle(e,t,r,i),n=!0)})),n},FS_createPreloadedFile=(e,t,r,i,n,a,s,o,l,c)=>{var _=t?PATH_FS.resolve(PATH.join2(e,t)):e,u="cp ".concat(_);function d(r){function d(r){null==c||c(),o||FS_createDataFile(e,t,r,i,n,l),null==a||a(),removeRunDependency(u)}FS_handledByPreloadPlugin(r,_,d,(()=>{null==s||s(),removeRunDependency(u)}))||d(r)}addRunDependency(u),"string"==typeof r?asyncLoad(r,d,s):d(r)},FS_modeStringToFlags=e=>{var t={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[e];if(typeof t>"u")throw new Error("Unknown file open mode: ".concat(e));return t},FS_getMode=(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},FS={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:class{constructor(e){Qe(this,"name","ErrnoError"),this.errno=e}},genericErrors:{},filesystems:null,syncFSRequests:0,readFiles:{},FSStream:class{constructor(){Qe(this,"shared",{})}get object(){return this.node}set object(e){this.node=e}get isRead(){return 1!=(2097155&this.flags)}get isWrite(){return 0!=(2097155&this.flags)}get isAppend(){return 1024&this.flags}get flags(){return this.shared.flags}set flags(e){this.shared.flags=e}get position(){return this.shared.position}set position(e){this.shared.position=e}},FSNode:class{constructor(e,t,r,i){Qe(this,"node_ops",{}),Qe(this,"stream_ops",{}),Qe(this,"readMode",365),Qe(this,"writeMode",146),Qe(this,"mounted",null),e||(e=this),this.parent=e,this.mount=e.mount,this.id=FS.nextInode++,this.name=t,this.mode=r,this.rdev=i}get read(){return(this.mode&this.readMode)===this.readMode}set read(e){e?this.mode|=this.readMode:this.mode&=~this.readMode}get write(){return(this.mode&this.writeMode)===this.writeMode}set write(e){e?this.mode|=this.writeMode:this.mode&=~this.writeMode}get isFolder(){return FS.isDir(this.mode)}get isDevice(){return FS.isChrdev(this.mode)}},lookupPath(e,t={}){if(!(e=PATH_FS.resolve(e)))return{path:"",node:null};if((t=Object.assign({follow_mount:!0,recurse_count:0},t)).recurse_count>8)throw new FS.ErrnoError(32);for(var r=e.split("/").filter((e=>!!e)),i=FS.root,n="/",a=0;a40)throw new FS.ErrnoError(32)}}return{path:n,node:i}},getPath(e){for(var t;;){if(FS.isRoot(e)){var r=e.mount.mountpoint;return t?"/"!==r[r.length-1]?"".concat(r,"/").concat(t):r+t:r}t=t?"".concat(e.name,"/").concat(t):e.name,e=e.parent}},hashName(e,t){for(var r=0,i=0;i>>0)%FS.nameTable.length},hashAddNode(e){var t=FS.hashName(e.parent.id,e.name);e.name_next=FS.nameTable[t],FS.nameTable[t]=e},hashRemoveNode(e){var t=FS.hashName(e.parent.id,e.name);if(FS.nameTable[t]===e)FS.nameTable[t]=e.name_next;else for(var r=FS.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode(e,t){var r=FS.mayLookup(e);if(r)throw new FS.ErrnoError(r);for(var i=FS.hashName(e.id,t),n=FS.nameTable[i];n;n=n.name_next){var a=n.name;if(n.parent.id===e.id&&a===t)return n}return FS.lookup(e,t)},createNode(e,t,r,i){var n=new FS.FSNode(e,t,r,i);return FS.hashAddNode(n),n},destroyNode(e){FS.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagsToPermissionString(e){var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>FS.ignorePermissions?0:t.includes("r")&&!(292&e.mode)||t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0,mayLookup:e=>FS.isDir(e.mode)?FS.nodePermissions(e,"x")||(e.node_ops.lookup?0:2):54,mayCreate(e,t){try{return FS.lookupNode(e,t),20}catch(e){}return FS.nodePermissions(e,"wx")},mayDelete(e,t,r){var i;try{i=FS.lookupNode(e,t)}catch(e){return e.errno}var n=FS.nodePermissions(e,"wx");if(n)return n;if(r){if(!FS.isDir(i.mode))return 54;if(FS.isRoot(i)||FS.getPath(i)===FS.cwd())return 10}else if(FS.isDir(i.mode))return 31;return 0},mayOpen:(e,t)=>e?FS.isLink(e.mode)?32:FS.isDir(e.mode)&&("r"!==FS.flagsToPermissionString(t)||512&t)?31:FS.nodePermissions(e,FS.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd(){for(var e=0;e<=FS.MAX_OPEN_FDS;e++)if(!FS.streams[e])return e;throw new FS.ErrnoError(33)},getStreamChecked(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},getStream:e=>FS.streams[e],createStream:(e,t=-1)=>(e=Object.assign(new FS.FSStream,e),-1==t&&(t=FS.nextfd()),e.fd=t,FS.streams[t]=e,e),closeStream(e){FS.streams[e]=null},dupStream(e,t=-1){var r,i,n=FS.createStream(e,t);return null==(i=null==(r=n.stream_ops)?void 0:r.dup)||i.call(r,n),n},chrdev_stream_ops:{open(e){var t,r,i=FS.getDevice(e.node.rdev);e.stream_ops=i.stream_ops,null==(r=(t=e.stream_ops).open)||r.call(t,e)},llseek(){throw new FS.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice(e,t){FS.devices[e]={stream_ops:t}},getDevice:e=>FS.devices[e],getMounts(e){for(var t=[],r=[e];r.length;){var i=r.pop();t.push(i),r.push(...i.mounts)}return t},syncfs(e,t){"function"==typeof e&&(t=e,e=!1),FS.syncFSRequests++,FS.syncFSRequests>1&&err("warning: ".concat(FS.syncFSRequests," FS.syncfs operations in flight at once, probably just doing extra work"));var r=FS.getMounts(FS.root.mount),i=0;function n(e){return FS.syncFSRequests--,t(e)}function a(e){if(e)return a.errored?void 0:(a.errored=!0,n(e));++i>=r.length&&n(null)}r.forEach((t=>{if(!t.type.syncfs)return a(null);t.type.syncfs(t,e,a)}))},mount(e,t,r){var i,n="/"===r,a=!r;if(n&&FS.root)throw new FS.ErrnoError(10);if(!n&&!a){var s=FS.lookupPath(r,{follow_mount:!1});if(r=s.path,i=s.node,FS.isMountpoint(i))throw new FS.ErrnoError(10);if(!FS.isDir(i.mode))throw new FS.ErrnoError(54)}var o={type:e,opts:t,mountpoint:r,mounts:[]},l=e.mount(o);return l.mount=o,o.root=l,n?FS.root=l:i&&(i.mounted=o,i.mount&&i.mount.mounts.push(o)),l},unmount(e){var t=FS.lookupPath(e,{follow_mount:!1});if(!FS.isMountpoint(t.node))throw new FS.ErrnoError(28);var r=t.node,i=r.mounted,n=FS.getMounts(i);Object.keys(FS.nameTable).forEach((e=>{for(var t=FS.nameTable[e];t;){var r=t.name_next;n.includes(t.mount)&&FS.destroyNode(t),t=r}})),r.mounted=null;var a=r.mount.mounts.indexOf(i);r.mount.mounts.splice(a,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod(e,t,r){var i=FS.lookupPath(e,{parent:!0}).node,n=PATH.basename(e);if(!n||"."===n||".."===n)throw new FS.ErrnoError(28);var a=FS.mayCreate(i,n);if(a)throw new FS.ErrnoError(a);if(!i.node_ops.mknod)throw new FS.ErrnoError(63);return i.node_ops.mknod(i,n,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,FS.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,FS.mknod(e,t,0)),mkdirTree(e,t){for(var r=e.split("/"),i="",n=0;n(typeof r>"u"&&(r=t,t=438),t|=8192,FS.mknod(e,t,r)),symlink(e,t){if(!PATH_FS.resolve(e))throw new FS.ErrnoError(44);var r=FS.lookupPath(t,{parent:!0}).node;if(!r)throw new FS.ErrnoError(44);var i=PATH.basename(t),n=FS.mayCreate(r,i);if(n)throw new FS.ErrnoError(n);if(!r.node_ops.symlink)throw new FS.ErrnoError(63);return r.node_ops.symlink(r,i,e)},rename(e,t){var r,i,n=PATH.dirname(e),a=PATH.dirname(t),s=PATH.basename(e),o=PATH.basename(t);if(r=FS.lookupPath(e,{parent:!0}).node,i=FS.lookupPath(t,{parent:!0}).node,!r||!i)throw new FS.ErrnoError(44);if(r.mount!==i.mount)throw new FS.ErrnoError(75);var l,c=FS.lookupNode(r,s),_=PATH_FS.relative(e,a);if("."!==_.charAt(0))throw new FS.ErrnoError(28);if("."!==(_=PATH_FS.relative(t,n)).charAt(0))throw new FS.ErrnoError(55);try{l=FS.lookupNode(i,o)}catch(e){}if(c!==l){var u=FS.isDir(c.mode),d=FS.mayDelete(r,s,u);if(d)throw new FS.ErrnoError(d);if(d=l?FS.mayDelete(i,o,u):FS.mayCreate(i,o))throw new FS.ErrnoError(d);if(!r.node_ops.rename)throw new FS.ErrnoError(63);if(FS.isMountpoint(c)||l&&FS.isMountpoint(l))throw new FS.ErrnoError(10);if(i!==r&&(d=FS.nodePermissions(r,"w")))throw new FS.ErrnoError(d);FS.hashRemoveNode(c);try{r.node_ops.rename(c,i,o),c.parent=i}catch(e){throw e}finally{FS.hashAddNode(c)}}},rmdir(e){var t=FS.lookupPath(e,{parent:!0}).node,r=PATH.basename(e),i=FS.lookupNode(t,r),n=FS.mayDelete(t,r,!0);if(n)throw new FS.ErrnoError(n);if(!t.node_ops.rmdir)throw new FS.ErrnoError(63);if(FS.isMountpoint(i))throw new FS.ErrnoError(10);t.node_ops.rmdir(t,r),FS.destroyNode(i)},readdir(e){var t=FS.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new FS.ErrnoError(54);return t.node_ops.readdir(t)},unlink(e){var t=FS.lookupPath(e,{parent:!0}).node;if(!t)throw new FS.ErrnoError(44);var r=PATH.basename(e),i=FS.lookupNode(t,r),n=FS.mayDelete(t,r,!1);if(n)throw new FS.ErrnoError(n);if(!t.node_ops.unlink)throw new FS.ErrnoError(63);if(FS.isMountpoint(i))throw new FS.ErrnoError(10);t.node_ops.unlink(t,r),FS.destroyNode(i)},readlink(e){var t=FS.lookupPath(e).node;if(!t)throw new FS.ErrnoError(44);if(!t.node_ops.readlink)throw new FS.ErrnoError(28);return PATH_FS.resolve(FS.getPath(t.parent),t.node_ops.readlink(t))},stat(e,t){var r=FS.lookupPath(e,{follow:!t}).node;if(!r)throw new FS.ErrnoError(44);if(!r.node_ops.getattr)throw new FS.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>FS.stat(e,!0),chmod(e,t,r){var i;if(!(i="string"==typeof e?FS.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);i.node_ops.setattr(i,{mode:4095&t|-4096&i.mode,timestamp:Date.now()})},lchmod(e,t){FS.chmod(e,t,!0)},fchmod(e,t){var r=FS.getStreamChecked(e);FS.chmod(r.node,t)},chown(e,t,r,i){var n;if(!(n="string"==typeof e?FS.lookupPath(e,{follow:!i}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);n.node_ops.setattr(n,{timestamp:Date.now()})},lchown(e,t,r){FS.chown(e,t,r,!0)},fchown(e,t,r){var i=FS.getStreamChecked(e);FS.chown(i.node,t,r)},truncate(e,t){if(t<0)throw new FS.ErrnoError(28);var r;if(!(r="string"==typeof e?FS.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new FS.ErrnoError(63);if(FS.isDir(r.mode))throw new FS.ErrnoError(31);if(!FS.isFile(r.mode))throw new FS.ErrnoError(28);var i=FS.nodePermissions(r,"w");if(i)throw new FS.ErrnoError(i);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate(e,t){var r=FS.getStreamChecked(e);if(!(2097155&r.flags))throw new FS.ErrnoError(28);FS.truncate(r.node,t)},utime(e,t,r){var i=FS.lookupPath(e,{follow:!0}).node;i.node_ops.setattr(i,{timestamp:Math.max(t,r)})},open(e,t,r){if(""===e)throw new FS.ErrnoError(44);var i;if(r=64&(t="string"==typeof t?FS_modeStringToFlags(t):t)?4095&(r=typeof r>"u"?438:r)|32768:0,"object"==typeof e)i=e;else{e=PATH.normalize(e);try{i=FS.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var n=!1;if(64&t)if(i){if(128&t)throw new FS.ErrnoError(20)}else i=FS.mknod(e,r,0),n=!0;if(!i)throw new FS.ErrnoError(44);if(FS.isChrdev(i.mode)&&(t&=-513),65536&t&&!FS.isDir(i.mode))throw new FS.ErrnoError(54);if(!n){var a=FS.mayOpen(i,t);if(a)throw new FS.ErrnoError(a)}512&t&&!n&&FS.truncate(i,0),t&=-131713;var s=FS.createStream({node:i,path:FS.getPath(i),flags:t,seekable:!0,position:0,stream_ops:i.stream_ops,ungotten:[],error:!1});return s.stream_ops.open&&s.stream_ops.open(s),Module.logReadFiles&&!(1&t)&&(e in FS.readFiles||(FS.readFiles[e]=1)),s},close(e){if(FS.isClosed(e))throw new FS.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{FS.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new FS.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new FS.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read(e,t,r,i,n){if(i<0||n<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(1==(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.read)throw new FS.ErrnoError(28);var a=typeof n<"u";if(a){if(!e.seekable)throw new FS.ErrnoError(70)}else n=e.position;var s=e.stream_ops.read(e,t,r,i,n);return a||(e.position+=s),s},write(e,t,r,i,n,a){if(i<0||n<0)throw new FS.ErrnoError(28);if(FS.isClosed(e))throw new FS.ErrnoError(8);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(FS.isDir(e.node.mode))throw new FS.ErrnoError(31);if(!e.stream_ops.write)throw new FS.ErrnoError(28);e.seekable&&1024&e.flags&&FS.llseek(e,0,2);var s=typeof n<"u";if(s){if(!e.seekable)throw new FS.ErrnoError(70)}else n=e.position;var o=e.stream_ops.write(e,t,r,i,n,a);return s||(e.position+=o),o},allocate(e,t,r){if(FS.isClosed(e))throw new FS.ErrnoError(8);if(t<0||r<=0)throw new FS.ErrnoError(28);if(!(2097155&e.flags))throw new FS.ErrnoError(8);if(!FS.isFile(e.node.mode)&&!FS.isDir(e.node.mode))throw new FS.ErrnoError(43);if(!e.stream_ops.allocate)throw new FS.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap(e,t,r,i,n){if(2&i&&!(2&n)&&2!=(2097155&e.flags))throw new FS.ErrnoError(2);if(1==(2097155&e.flags))throw new FS.ErrnoError(2);if(!e.stream_ops.mmap)throw new FS.ErrnoError(43);if(!t)throw new FS.ErrnoError(28);return e.stream_ops.mmap(e,t,r,i,n)},msync:(e,t,r,i,n)=>e.stream_ops.msync?e.stream_ops.msync(e,t,r,i,n):0,ioctl(e,t,r){if(!e.stream_ops.ioctl)throw new FS.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile(e,t={}){if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'.concat(t.encoding,'"'));var r,i=FS.open(e,t.flags),n=FS.stat(e).size,a=new Uint8Array(n);return FS.read(i,a,0,n,0),"utf8"===t.encoding?r=UTF8ArrayToString(a):"binary"===t.encoding&&(r=a),FS.close(i),r},writeFile(e,t,r={}){r.flags=r.flags||577;var i=FS.open(e,r.flags,r.mode);if("string"==typeof t){var n=new Uint8Array(lengthBytesUTF8(t)+1),a=stringToUTF8Array(t,n,0,n.length);FS.write(i,n,0,a,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");FS.write(i,t,0,t.byteLength,void 0,r.canOwn)}FS.close(i)},cwd:()=>FS.currentPath,chdir(e){var t=FS.lookupPath(e,{follow:!0});if(null===t.node)throw new FS.ErrnoError(44);if(!FS.isDir(t.node.mode))throw new FS.ErrnoError(54);var r=FS.nodePermissions(t.node,"x");if(r)throw new FS.ErrnoError(r);FS.currentPath=t.path},createDefaultDirectories(){FS.mkdir("/tmp"),FS.mkdir("/home"),FS.mkdir("/home/web_user")},createDefaultDevices(){FS.mkdir("/dev"),FS.registerDevice(FS.makedev(1,3),{read:()=>0,write:(e,t,r,i,n)=>i}),FS.mkdev("/dev/null",FS.makedev(1,3)),TTY.register(FS.makedev(5,0),TTY.default_tty_ops),TTY.register(FS.makedev(6,0),TTY.default_tty1_ops),FS.mkdev("/dev/tty",FS.makedev(5,0)),FS.mkdev("/dev/tty1",FS.makedev(6,0));var e=new Uint8Array(1024),t=0,r=()=>(0===t&&(t=randomFill(e).byteLength),e[--t]);FS.createDevice("/dev","random",r),FS.createDevice("/dev","urandom",r),FS.mkdir("/dev/shm"),FS.mkdir("/dev/shm/tmp")},createSpecialDirectories(){FS.mkdir("/proc");var e=FS.mkdir("/proc/self");FS.mkdir("/proc/self/fd"),FS.mount({mount(){var t=FS.createNode(e,"fd",16895,73);return t.node_ops={lookup(e,t){var r=+t,i=FS.getStreamChecked(r),n={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>i.path}};return n.parent=n,n}},t}},{},"/proc/self/fd")},createStandardStreams(e,t,r){e?FS.createDevice("/dev","stdin",e):FS.symlink("/dev/tty","/dev/stdin"),t?FS.createDevice("/dev","stdout",null,t):FS.symlink("/dev/tty","/dev/stdout"),r?FS.createDevice("/dev","stderr",null,r):FS.symlink("/dev/tty1","/dev/stderr"),FS.open("/dev/stdin",0),FS.open("/dev/stdout",1),FS.open("/dev/stderr",1)},staticInit(){[44].forEach((e=>{FS.genericErrors[e]=new FS.ErrnoError(e),FS.genericErrors[e].stack=""})),FS.nameTable=new Array(4096),FS.mount(MEMFS,{},"/"),FS.createDefaultDirectories(),FS.createDefaultDevices(),FS.createSpecialDirectories(),FS.filesystems={MEMFS}},init(e,t,r){FS.initialized=!0,null!=e||(e=Module.stdin),null!=t||(t=Module.stdout),null!=r||(r=Module.stderr),FS.createStandardStreams(e,t,r)},quit(){FS.initialized=!1;for(var e=0;ethis.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[t]}}setDataGetter(e){this.getter=e}cacheLength(){var e=new XMLHttpRequest;if(e.open("HEAD",r,!1),e.send(null),!(e.status>=200&&e.status<300||304===e.status))throw new Error("Couldn't load "+r+". Status: "+e.status);var t,i=Number(e.getResponseHeader("Content-length")),n=(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t,a=(t=e.getResponseHeader("Content-Encoding"))&&"gzip"===t,s=1048576;n||(s=i);var o=this;o.setDataGetter((e=>{var t=e*s,n=(e+1)*s-1;if(n=Math.min(n,i-1),typeof o.chunks[e]>"u"&&(o.chunks[e]=((e,t)=>{if(e>t)throw new Error("invalid range ("+e+", "+t+") or no bytes requested!");if(t>i-1)throw new Error("only "+i+" bytes available! programmer error!");var n=new XMLHttpRequest;if(n.open("GET",r,!1),i!==s&&n.setRequestHeader("Range","bytes="+e+"-"+t),n.responseType="arraybuffer",n.overrideMimeType&&n.overrideMimeType("text/plain; charset=x-user-defined"),n.send(null),!(n.status>=200&&n.status<300||304===n.status))throw new Error("Couldn't load "+r+". Status: "+n.status);return void 0!==n.response?new Uint8Array(n.response||[]):intArrayFromString(n.responseText||"",!0)})(t,n)),typeof o.chunks[e]>"u")throw new Error("doXHR failed!");return o.chunks[e]})),(a||!i)&&(s=i=1,i=this.getter(0).length,s=i,out("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=i,this._chunkSize=s,this.lengthKnown=!0}get length(){return this.lengthKnown||this.cacheLength(),this._length}get chunkSize(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}if(typeof XMLHttpRequest<"u"){if(!ENVIRONMENT_IS_WORKER)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var s={isDevice:!1,contents:new a}}else s={isDevice:!1,url:r};var o=FS.createFile(e,t,s,i,n);s.contents?o.contents=s.contents:s.url&&(o.contents=null,o.url=s.url),Object.defineProperties(o,{usedBytes:{get:function(){return this.contents.length}}});var l={};function c(e,t,r,i,n){var a=e.node.contents;if(n>=a.length)return 0;var s=Math.min(a.length-n,i);if(a.slice)for(var o=0;o{var t=o.stream_ops[e];l[e]=(...e)=>(FS.forceLoadFile(o),t(...e))})),l.read=(e,t,r,i,n)=>(FS.forceLoadFile(o),c(e,t,r,i,n)),l.mmap=(e,t,r,i,n)=>{FS.forceLoadFile(o);var a=mmapAlloc(t);if(!a)throw new FS.ErrnoError(48);return c(e,HEAP8,a,t,r),{ptr:a,allocated:!0}},o.stream_ops=l,o}},SYSCALLS={DEFAULT_POLLMASK:5,calculateAt(e,t,r){if(PATH.isAbs(t))return t;var i;if(i=-100===e?FS.cwd():SYSCALLS.getStreamFromFD(e).path,0==t.length){if(!r)throw new FS.ErrnoError(44);return i}return PATH.join2(i,t)},doStat(e,t,r){var i=e(t);HEAP32[r>>>2>>>0]=i.dev,HEAP32[r+4>>>2>>>0]=i.mode,HEAPU32[r+8>>>2>>>0]=i.nlink,HEAP32[r+12>>>2>>>0]=i.uid,HEAP32[r+16>>>2>>>0]=i.gid,HEAP32[r+20>>>2>>>0]=i.rdev,tempI64=[i.size>>>0,(tempDouble=i.size,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+24>>>2>>>0]=tempI64[0],HEAP32[r+28>>>2>>>0]=tempI64[1],HEAP32[r+32>>>2>>>0]=4096,HEAP32[r+36>>>2>>>0]=i.blocks;var n=i.atime.getTime(),a=i.mtime.getTime(),s=i.ctime.getTime();return tempI64=[Math.floor(n/1e3)>>>0,(tempDouble=Math.floor(n/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+40>>>2>>>0]=tempI64[0],HEAP32[r+44>>>2>>>0]=tempI64[1],HEAPU32[r+48>>>2>>>0]=n%1e3*1e3*1e3,tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+56>>>2>>>0]=tempI64[0],HEAP32[r+60>>>2>>>0]=tempI64[1],HEAPU32[r+64>>>2>>>0]=a%1e3*1e3*1e3,tempI64=[Math.floor(s/1e3)>>>0,(tempDouble=Math.floor(s/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+72>>>2>>>0]=tempI64[0],HEAP32[r+76>>>2>>>0]=tempI64[1],HEAPU32[r+80>>>2>>>0]=s%1e3*1e3*1e3,tempI64=[i.ino>>>0,(tempDouble=i.ino,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+88>>>2>>>0]=tempI64[0],HEAP32[r+92>>>2>>>0]=tempI64[1],0},doMsync(e,t,r,i,n){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&i)return 0;var a=HEAPU8.slice(e,e+r);FS.msync(t,a,n,r,i)},getStreamFromFD:e=>FS.getStreamChecked(e),varargs:void 0,getStr:e=>UTF8ToString(e)},___syscall__newselect=function(e,t,r,i,n){t>>>=0,r>>>=0,i>>>=0,n>>>=0;try{for(var a=0,s=t?HEAP32[t>>>2>>>0]:0,o=t?HEAP32[t+4>>>2>>>0]:0,l=r?HEAP32[r>>>2>>>0]:0,c=r?HEAP32[r+4>>>2>>>0]:0,_=i?HEAP32[i>>>2>>>0]:0,u=i?HEAP32[i+4>>>2>>>0]:0,d=0,p=0,f=0,m=0,h=0,g=0,v=(t?HEAP32[t>>>2>>>0]:0)|(r?HEAP32[r>>>2>>>0]:0)|(i?HEAP32[i>>>2>>>0]:0),y=(t?HEAP32[t+4>>>2>>>0]:0)|(r?HEAP32[r+4>>>2>>>0]:0)|(i?HEAP32[i+4>>>2>>>0]:0),b=(e,t,r,i)=>e<32?t&i:r&i,S=0;S>>2>>>0]:0)+(t?HEAP32[n+4>>>2>>>0]:0)/1e6)),L=E.stream_ops.poll(E,A)}1&L&&b(S,s,o,w)&&(S<32?d|=w:p|=w,a++),4&L&&b(S,l,c,w)&&(S<32?f|=w:m|=w,a++),2&L&&b(S,_,u,w)&&(S<32?h|=w:g|=w,a++)}}return t&&(HEAP32[t>>>2>>>0]=d,HEAP32[t+4>>>2>>>0]=p),r&&(HEAP32[r>>>2>>>0]=f,HEAP32[r+4>>>2>>>0]=m),i&&(HEAP32[i>>>2>>>0]=h,HEAP32[i+4>>>2>>>0]=g),a}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}};___syscall__newselect.sig="iipppp";var SOCKFS={websocketArgs:{},callbacks:{},on(e,t){SOCKFS.callbacks[e]=t},emit(e,t){var r,i;null==(i=(r=SOCKFS.callbacks)[e])||i.call(r,t)},mount(e){var t;return SOCKFS.websocketArgs=Module.websocket||{},(null!=(t=Module.websocket)?t:Module.websocket={}).on=SOCKFS.on,FS.createNode(null,"/",16895,0)},createSocket(e,t,r){if(1==(t&=-526337)&&r&&6!=r)throw new FS.ErrnoError(66);var i={family:e,type:t,protocol:r,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:SOCKFS.websocket_sock_ops},n=SOCKFS.nextname(),a=FS.createNode(SOCKFS.root,n,49152,0);a.sock=i;var s=FS.createStream({path:n,node:a,flags:2,seekable:!1,stream_ops:SOCKFS.stream_ops});return i.stream=s,i},getSocket(e){var t=FS.getStream(e);return t&&FS.isSocket(t.node.mode)?t.node.sock:null},stream_ops:{poll(e){var t=e.node.sock;return t.sock_ops.poll(t)},ioctl(e,t,r){var i=e.node.sock;return i.sock_ops.ioctl(i,t,r)},read(e,t,r,i,n){var a=e.node.sock,s=a.sock_ops.recvmsg(a,i);return s?(t.set(s.buffer,r),s.buffer.length):0},write(e,t,r,i,n){var a=e.node.sock;return a.sock_ops.sendmsg(a,t,r,i)},close(e){var t=e.node.sock;t.sock_ops.close(t)}},nextname:()=>(SOCKFS.nextname.current||(SOCKFS.nextname.current=0),"socket["+SOCKFS.nextname.current+++"]"),websocket_sock_ops:{createPeer(e,t,r){var i;if("object"==typeof t&&(i=t,t=null,r=null),i)if(i._socket)t=i._socket.remoteAddress,r=i._socket.remotePort;else{var n=/ws[s]?:\/\/([^:]+):(\d+)/.exec(i.url);if(!n)throw new Error("WebSocket URL must be in the format ws(s)://address:port");t=n[1],r=parseInt(n[2],10)}else try{var a="ws:#".replace("#","//"),s="binary",o=void 0;if(SOCKFS.websocketArgs.url&&(a=SOCKFS.websocketArgs.url),SOCKFS.websocketArgs.subprotocol?s=SOCKFS.websocketArgs.subprotocol:null===SOCKFS.websocketArgs.subprotocol&&(s="null"),"ws://"===a||"wss://"===a){var l=t.split("/");a=a+l[0]+":"+r+"/"+l.slice(1).join("/")}"null"!==s&&(o=s=s.replace(/^ +| +$/g,"").split(/ *, */)),(i=new(ENVIRONMENT_IS_NODE?Lo():WebSocket)(a,o)).binaryType="arraybuffer"}catch(e){throw new FS.ErrnoError(23)}var c={addr:t,port:r,socket:i,msg_send_queue:[]};return SOCKFS.websocket_sock_ops.addPeer(e,c),SOCKFS.websocket_sock_ops.handlePeerEvents(e,c),2===e.type&&typeof e.sport<"u"&&c.msg_send_queue.push(new Uint8Array([255,255,255,255,112,111,114,116,(65280&e.sport)>>8,255&e.sport])),c},getPeer:(e,t,r)=>e.peers[t+":"+r],addPeer(e,t){e.peers[t.addr+":"+t.port]=t},removePeer(e,t){delete e.peers[t.addr+":"+t.port]},handlePeerEvents(e,t){var r=!0,i=function(){e.connecting=!1,SOCKFS.emit("open",e.stream.fd);try{for(var r=t.msg_send_queue.shift();r;)t.socket.send(r),r=t.msg_send_queue.shift()}catch(e){t.socket.close()}};function n(i){if("string"==typeof i)i=(new TextEncoder).encode(i);else{if(assert(void 0!==i.byteLength),0==i.byteLength)return;i=new Uint8Array(i)}var n=r;if(r=!1,n&&10===i.length&&255===i[0]&&255===i[1]&&255===i[2]&&255===i[3]&&112===i[4]&&111===i[5]&&114===i[6]&&116===i[7]){var a=i[8]<<8|i[9];return SOCKFS.websocket_sock_ops.removePeer(e,t),t.port=a,void SOCKFS.websocket_sock_ops.addPeer(e,t)}e.recv_queue.push({addr:t.addr,port:t.port,data:i}),SOCKFS.emit("message",e.stream.fd)}ENVIRONMENT_IS_NODE?(t.socket.on("open",i),t.socket.on("message",(function(e,t){t&&n(new Uint8Array(e).buffer)})),t.socket.on("close",(function(){SOCKFS.emit("close",e.stream.fd)})),t.socket.on("error",(function(t){e.error=14,SOCKFS.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])}))):(t.socket.onopen=i,t.socket.onclose=function(){SOCKFS.emit("close",e.stream.fd)},t.socket.onmessage=function(e){n(e.data)},t.socket.onerror=function(t){e.error=14,SOCKFS.emit("error",[e.stream.fd,e.error,"ECONNREFUSED: Connection refused"])})},poll(e){if(1===e.type&&e.server)return e.pending.length?65:0;var t=0,r=1===e.type?SOCKFS.websocket_sock_ops.getPeer(e,e.daddr,e.dport):null;return(e.recv_queue.length||!r||r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(t|=65),(!r||r&&r.socket.readyState===r.socket.OPEN)&&(t|=4),(r&&r.socket.readyState===r.socket.CLOSING||r&&r.socket.readyState===r.socket.CLOSED)&&(e.connecting?t|=4:t|=16),t},ioctl(e,t,r){if(21531===t){var i=0;return e.recv_queue.length&&(i=e.recv_queue[0].data.length),HEAP32[r>>>2>>>0]=i,0}return 28},close(e){if(e.server){try{e.server.close()}catch(e){}e.server=null}for(var t=Object.keys(e.peers),r=0;r{var t=SOCKFS.getSocket(e);if(!t)throw new FS.ErrnoError(8);return t},Sockets={BUFFER_SIZE:10240,MAX_BUFFER_SIZE:10485760,nextFd:1,fds:{},nextport:1,maxport:65535,peer:null,connections:{},portmap:{},localAddr:4261412874,addrPool:[33554442,50331658,67108874,83886090,100663306,117440522,134217738,150994954,167772170,184549386,201326602,218103818,234881034]},inetPton4=e=>{for(var t=e.split("."),r=0;r<4;r++){var i=Number(t[r]);if(isNaN(i))return null;t[r]=i}return(t[0]|t[1]<<8|t[2]<<16|t[3]<<24)>>>0},jstoi_q=e=>parseInt(e),inetPton6=e=>{var t,r,i,n,a=[];if(!/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i.test(e))return null;if("::"===e)return[0,0,0,0,0,0,0,0];for((e=e.startsWith("::")?e.replace("::","Z:"):e.replace("::",":Z:")).indexOf(".")>0?((t=(e=e.replace(new RegExp("[.]","g"),":")).split(":"))[t.length-4]=jstoi_q(t[t.length-4])+256*jstoi_q(t[t.length-3]),t[t.length-3]=jstoi_q(t[t.length-2])+256*jstoi_q(t[t.length-1]),t=t.slice(0,t.length-2)):t=e.split(":"),i=0,n=0,r=0;r{switch(t){case 2:r=inetPton4(r),zeroMemory(e,16),n&&(HEAP32[n>>>2>>>0]=16),HEAP16[e>>>1>>>0]=t,HEAP32[e+4>>>2>>>0]=r,HEAP16[e+2>>>1>>>0]=_htons(i);break;case 10:r=inetPton6(r),zeroMemory(e,28),n&&(HEAP32[n>>>2>>>0]=28),HEAP32[e>>>2>>>0]=t,HEAP32[e+8>>>2>>>0]=r[0],HEAP32[e+12>>>2>>>0]=r[1],HEAP32[e+16>>>2>>>0]=r[2],HEAP32[e+20>>>2>>>0]=r[3],HEAP16[e+2>>>1>>>0]=_htons(i);break;default:return 5}return 0},DNS={address_map:{id:1,addrs:{},names:{}},lookup_name(e){var t,r=inetPton4(e);if(null!==r||null!==(r=inetPton6(e)))return e;if(DNS.address_map.addrs[e])t=DNS.address_map.addrs[e];else{var i=DNS.address_map.id++;assert(i<65535,"exceeded max address mappings of 65535"),t="172.29."+(255&i)+"."+(65280&i),DNS.address_map.names[t]=e,DNS.address_map.addrs[e]=t}return t},lookup_addr:e=>DNS.address_map.names[e]?DNS.address_map.names[e]:null};function ___syscall_accept4(e,t,r,i,n,a){t>>>=0,r>>>=0;try{var s=getSocketFromFD(e),o=s.sock_ops.accept(s);return t&&writeSockaddr(t,o.family,DNS.lookup_name(o.daddr),o.dport,r),o.stream.fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_accept4.sig="iippiii";var inetNtop4=e=>(255&e)+"."+(e>>8&255)+"."+(e>>16&255)+"."+(e>>24&255),inetNtop6=e=>{var t="",r=0,i=0,n=0,a=0,s=0,o=0,l=[65535&e[0],e[0]>>16,65535&e[1],e[1]>>16,65535&e[2],e[2]>>16,65535&e[3],e[3]>>16],c=!0,_="";for(o=0;o<5;o++)if(0!==l[o]){c=!1;break}if(c){if(_=inetNtop4(l[6]|l[7]<<16),-1===l[5])return(t="::ffff:")+_;if(0===l[5])return"0.0.0.0"===_&&(_=""),"0.0.0.1"===_&&(_="1"),(t="::")+_}for(r=0;r<8;r++)0===l[r]&&(r-n>1&&(s=0),n=r,s++),s>i&&(a=r-(i=s)+1);for(r=0;r<8;r++)i>1&&0===l[r]&&r>=a&&r{var r,i=HEAP16[e>>>1>>>0],n=_ntohs(HEAPU16[e+2>>>1>>>0]);switch(i){case 2:if(16!==t)return{errno:28};r=HEAP32[e+4>>>2>>>0],r=inetNtop4(r);break;case 10:if(28!==t)return{errno:28};r=[HEAP32[e+8>>>2>>>0],HEAP32[e+12>>>2>>>0],HEAP32[e+16>>>2>>>0],HEAP32[e+20>>>2>>>0]],r=inetNtop6(r);break;default:return{errno:5}}return{family:i,addr:r,port:n}},getSocketAddress=(e,t)=>{var r=readSockaddr(e,t);if(r.errno)throw new FS.ErrnoError(r.errno);return r.addr=DNS.lookup_addr(r.addr)||r.addr,r};function ___syscall_bind(e,t,r,i,n,a){t>>>=0,r>>>=0;try{var s=getSocketFromFD(e),o=getSocketAddress(t,r);return s.sock_ops.bind(s,o.addr,o.port),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_chdir(e){e>>>=0;try{return e=SYSCALLS.getStr(e),FS.chdir(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_chmod(e,t){e>>>=0;try{return e=SYSCALLS.getStr(e),FS.chmod(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_connect(e,t,r,i,n,a){t>>>=0,r>>>=0;try{var s=getSocketFromFD(e),o=getSocketAddress(t,r);return s.sock_ops.connect(s,o.addr,o.port),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_dup(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.dupStream(t).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_dup3(e,t,r){try{var i=SYSCALLS.getStreamFromFD(e);if(i.fd===t)return-28;if(t<0||t>=FS.MAX_OPEN_FDS)return-8;var n=FS.getStream(t);return n&&FS.close(n),FS.dupStream(i,t).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_faccessat(e,t,r,i){t>>>=0;try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),-8&r)return-28;var n=FS.lookupPath(t,{follow:!0}).node;if(!n)return-44;var a="";return 4&r&&(a+="r"),2&r&&(a+="w"),1&r&&(a+="x"),a&&FS.nodePermissions(n,a)?-2:0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_bind.sig="iippiii",___syscall_chdir.sig="ip",___syscall_chmod.sig="ipi",___syscall_connect.sig="iippiii",___syscall_dup.sig="ii",___syscall_dup3.sig="iiii",___syscall_faccessat.sig="iipii";var ___syscall_fadvise64=(e,t,r,i)=>0;function ___syscall_fallocate(e,t,r,i,n,a){var s=convertI32PairToI53Checked(r,i),o=convertI32PairToI53Checked(n,a);try{if(isNaN(s))return 61;var l=SYSCALLS.getStreamFromFD(e);return FS.allocate(l,s,o),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchdir(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.chdir(t.path),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchmod(e,t){try{return FS.fchmod(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchmodat2(e,t,r,i){t>>>=0;try{var n=256&i;return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),FS.chmod(t,r,n),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchown32(e,t,r){try{return FS.fchown(e,t,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fchownat(e,t,r,i,n){t>>>=0;try{t=SYSCALLS.getStr(t);var a=256&n;return n&=-257,t=SYSCALLS.calculateAt(e,t),(a?FS.lchown:FS.chown)(t,r,i),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_fadvise64.sig="iiiiiii",___syscall_fallocate.sig="iiiiiii",___syscall_fchdir.sig="ii",___syscall_fchmod.sig="iii",___syscall_fchmodat2.sig="iipii",___syscall_fchown32.sig="iiii",___syscall_fchownat.sig="iipiii";var syscallGetVarargI=()=>{var e=HEAP32[+SYSCALLS.varargs>>>2>>>0];return SYSCALLS.varargs+=4,e},syscallGetVarargP=syscallGetVarargI;function ___syscall_fcntl64(e,t,r){r>>>=0,SYSCALLS.varargs=r;try{var i=SYSCALLS.getStreamFromFD(e);switch(t){case 0:if((n=syscallGetVarargI())<0)return-28;for(;FS.streams[n];)n++;return FS.dupStream(i,n).fd;case 1:case 2:case 13:case 14:return 0;case 3:return i.flags;case 4:var n=syscallGetVarargI();return i.flags|=n,0;case 12:return n=syscallGetVarargP(),HEAP16[n+0>>>1>>>0]=2,0}return-28}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fdatasync(e){try{return SYSCALLS.getStreamFromFD(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstat64(e,t){t>>>=0;try{var r=SYSCALLS.getStreamFromFD(e);return SYSCALLS.doStat(FS.stat,r.path,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_statfs64(e,t,r){e>>>=0,r>>>=0;try{return e=SYSCALLS.getStr(e),HEAP32[r+4>>>2>>>0]=4096,HEAP32[r+40>>>2>>>0]=4096,HEAP32[r+8>>>2>>>0]=1e6,HEAP32[r+12>>>2>>>0]=5e5,HEAP32[r+16>>>2>>>0]=5e5,HEAP32[r+20>>>2>>>0]=FS.nextInode,HEAP32[r+24>>>2>>>0]=1e6,HEAP32[r+28>>>2>>>0]=42,HEAP32[r+44>>>2>>>0]=2,HEAP32[r+36>>>2>>>0]=255,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_fstatfs64(e,t,r){t>>>=0,r>>>=0;try{return SYSCALLS.getStreamFromFD(e),___syscall_statfs64(0,t,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ftruncate64(e,t,r){var i=convertI32PairToI53Checked(t,r);try{return isNaN(i)?61:(FS.ftruncate(e,i),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_fcntl64.sig="iiip",___syscall_fdatasync.sig="ii",___syscall_fstat64.sig="iip",___syscall_statfs64.sig="ippp",___syscall_fstatfs64.sig="iipp",___syscall_ftruncate64.sig="iiii";var stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r);function ___syscall_getcwd(e,t){e>>>=0,t>>>=0;try{if(0===t)return-28;var r=FS.cwd(),i=lengthBytesUTF8(r)+1;return t"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getdents64(e,t,r){t>>>=0,r>>>=0;try{var i=SYSCALLS.getStreamFromFD(e);i.getdents||(i.getdents=FS.readdir(i.path));for(var n=280,a=0,s=FS.llseek(i,0,1),o=Math.floor(s/n);o>>0,(tempDouble=l,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+a>>>2>>>0]=tempI64[0],HEAP32[t+a+4>>>2>>>0]=tempI64[1],tempI64=[(o+1)*n>>>0,(tempDouble=(o+1)*n,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+a+8>>>2>>>0]=tempI64[0],HEAP32[t+a+12>>>2>>>0]=tempI64[1],HEAP16[t+a+16>>>1>>>0]=280,HEAP8[t+a+18>>>0]=c,stringToUTF8(_,t+a+19,256),a+=n,o+=1}return FS.llseek(i,o*n,0),a}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getpeername(e,t,r,i,n,a){t>>>=0,r>>>=0;try{var s=getSocketFromFD(e);return s.daddr?(writeSockaddr(t,s.family,DNS.lookup_name(s.daddr),s.dport,r),0):-53}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getsockname(e,t,r,i,n,a){t>>>=0,r>>>=0;try{var s=getSocketFromFD(e);return writeSockaddr(t,s.family,DNS.lookup_name(s.saddr||"0.0.0.0"),s.sport,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_getsockopt(e,t,r,i,n,a){i>>>=0,n>>>=0;try{var s=getSocketFromFD(e);return 1===t&&4===r?(HEAP32[i>>>2>>>0]=s.error,HEAP32[n>>>2>>>0]=4,s.error=null,0):-50}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_ioctl(e,t,r){r>>>=0,SYSCALLS.varargs=r;try{var i=SYSCALLS.getStreamFromFD(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return i.tty?0:-59;case 21505:if(!i.tty)return-59;if(i.tty.ops.ioctl_tcgets){var n=i.tty.ops.ioctl_tcgets(i),a=syscallGetVarargP();HEAP32[a>>>2>>>0]=n.c_iflag||0,HEAP32[a+4>>>2>>>0]=n.c_oflag||0,HEAP32[a+8>>>2>>>0]=n.c_cflag||0,HEAP32[a+12>>>2>>>0]=n.c_lflag||0;for(var s=0;s<32;s++)HEAP8[a+s+17>>>0]=n.c_cc[s]||0;return 0}return 0;case 21506:case 21507:case 21508:if(!i.tty)return-59;if(i.tty.ops.ioctl_tcsets){a=syscallGetVarargP();var o=HEAP32[a>>>2>>>0],l=HEAP32[a+4>>>2>>>0],c=HEAP32[a+8>>>2>>>0],_=HEAP32[a+12>>>2>>>0],u=[];for(s=0;s<32;s++)u.push(HEAP8[a+s+17>>>0]);return i.tty.ops.ioctl_tcsets(i.tty,t,{c_iflag:o,c_oflag:l,c_cflag:c,c_lflag:_,c_cc:u})}return 0;case 21519:return i.tty?(a=syscallGetVarargP(),HEAP32[a>>>2>>>0]=0,0):-59;case 21520:return i.tty?-28:-59;case 21531:return a=syscallGetVarargP(),FS.ioctl(i,t,a);case 21523:if(!i.tty)return-59;if(i.tty.ops.ioctl_tiocgwinsz){var d=i.tty.ops.ioctl_tiocgwinsz(i.tty);a=syscallGetVarargP(),HEAP16[a>>>1>>>0]=d[0],HEAP16[a+2>>>1>>>0]=d[1]}return 0;default:return-28}}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_listen(e,t){try{var r=getSocketFromFD(e);return r.sock_ops.listen(r,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_lstat64(e,t){e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.lstat,e,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mkdirat(e,t,r){t>>>=0;try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),"/"===(t=PATH.normalize(t))[t.length-1]&&(t=t.substr(0,t.length-1)),FS.mkdir(t,r,0),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_mknodat(e,t,r,i){t>>>=0;try{switch(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),61440&r){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return FS.mknod(t,r,i),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_newfstatat(e,t,r,i){t>>>=0,r>>>=0;try{t=SYSCALLS.getStr(t);var n=256&i,a=4096&i;return i&=-6401,t=SYSCALLS.calculateAt(e,t,a),SYSCALLS.doStat(n?FS.lstat:FS.stat,t,r)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_openat(e,t,r,i){t>>>=0,i>>>=0,SYSCALLS.varargs=i;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t);var n=i?syscallGetVarargI():0;return FS.open(t,r,n).fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_getcwd.sig="ipp",___syscall_getdents64.sig="iipp",___syscall_getpeername.sig="iippiii",___syscall_getsockname.sig="iippiii",___syscall_getsockopt.sig="iiiippi",___syscall_ioctl.sig="iiip",___syscall_listen.sig="iiiiiii",___syscall_lstat64.sig="ipp",___syscall_mkdirat.sig="iipi",___syscall_mknodat.sig="iipii",___syscall_newfstatat.sig="iippi",___syscall_openat.sig="iipip";var PIPEFS={BUCKET_BUFFER_SIZE:8192,mount:e=>FS.createNode(null,"/",16895,0),createPipe(){var e={buckets:[],refcnt:2};e.buckets.push({buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:0,roffset:0});var t=PIPEFS.nextname(),r=PIPEFS.nextname(),i=FS.createNode(PIPEFS.root,t,4096,0),n=FS.createNode(PIPEFS.root,r,4096,0);i.pipe=e,n.pipe=e;var a=FS.createStream({path:t,node:i,flags:0,seekable:!1,stream_ops:PIPEFS.stream_ops});i.stream=a;var s=FS.createStream({path:r,node:n,flags:1,seekable:!1,stream_ops:PIPEFS.stream_ops});return n.stream=s,{readable_fd:a.fd,writable_fd:s.fd}},stream_ops:{poll(e){var t=e.node.pipe;if(1==(2097155&e.flags))return 260;if(t.buckets.length>0)for(var r=0;r0)return 65}return 0},ioctl:(e,t,r)=>28,fsync:e=>28,read(e,t,r,i,n){for(var a=e.node.pipe,s=0,o=0;o=o)return l.buffer.set(s,l.offset),l.offset+=o,o;c>0&&(l.buffer.set(s.subarray(0,c),l.offset),l.offset+=c,s=s.subarray(c,s.byteLength));for(var _=s.byteLength/PIPEFS.BUCKET_BUFFER_SIZE|0,u=s.byteLength%PIPEFS.BUCKET_BUFFER_SIZE,d=0;d<_;d++){var p={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:PIPEFS.BUCKET_BUFFER_SIZE,roffset:0};a.buckets.push(p),p.buffer.set(s.subarray(0,PIPEFS.BUCKET_BUFFER_SIZE)),s=s.subarray(PIPEFS.BUCKET_BUFFER_SIZE,s.byteLength)}return u>0&&(p={buffer:new Uint8Array(PIPEFS.BUCKET_BUFFER_SIZE),offset:s.byteLength,roffset:0},a.buckets.push(p),p.buffer.set(s)),o},close(e){var t=e.node.pipe;t.refcnt--,0===t.refcnt&&(t.buckets=null)}},nextname:()=>(PIPEFS.nextname.current||(PIPEFS.nextname.current=0),"pipe["+PIPEFS.nextname.current+++"]")};function ___syscall_pipe(e){e>>>=0;try{if(0==e)throw new FS.ErrnoError(21);var t=PIPEFS.createPipe();return HEAP32[e>>>2>>>0]=t.readable_fd,HEAP32[e+4>>>2>>>0]=t.writable_fd,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_poll(e,t,r){e>>>=0;try{for(var i=0,n=0;n>>2>>>0],o=HEAP16[a+4>>>1>>>0],l=32,c=FS.getStream(s);c&&(l=SYSCALLS.DEFAULT_POLLMASK,c.stream_ops.poll&&(l=c.stream_ops.poll(c,-1))),(l&=24|o)&&i++,HEAP16[a+6>>>1>>>0]=l}return i}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_readlinkat(e,t,r,i){t>>>=0,r>>>=0,i>>>=0;try{if(t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),i<=0)return-28;var n=FS.readlink(t),a=Math.min(i,lengthBytesUTF8(n)),s=HEAP8[r+a>>>0];return stringToUTF8(n,r,i+1),HEAP8[r+a>>>0]=s,a}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_recvfrom(e,t,r,i,n,a){t>>>=0,r>>>=0,n>>>=0,a>>>=0;try{var s=getSocketFromFD(e),o=s.sock_ops.recvmsg(s,r);return o?(n&&writeSockaddr(n,s.family,DNS.lookup_name(o.addr),o.port,a),HEAPU8.set(o.buffer,t>>>0),o.buffer.byteLength):0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_recvmsg(e,t,r,i,n,a){t>>>=0;try{for(var s=getSocketFromFD(e),o=HEAPU32[t+8>>>2>>>0],l=HEAP32[t+12>>>2>>>0],c=0,_=0;_>>2>>>0];var u=s.sock_ops.recvmsg(s,c);if(!u)return 0;var d=HEAPU32[t>>>2>>>0];d&&writeSockaddr(d,s.family,DNS.lookup_name(u.addr),u.port);var p=0,f=u.buffer.byteLength;for(_=0;f>0&&_>>2>>>0],h=HEAP32[o+(8*_+4)>>>2>>>0];if(h){var g=Math.min(h,f),v=u.buffer.subarray(p,p+g);HEAPU8.set(v,m+p>>>0),p+=g,f-=g}}return p}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_renameat(e,t,r,i){t>>>=0,i>>>=0;try{return t=SYSCALLS.getStr(t),i=SYSCALLS.getStr(i),t=SYSCALLS.calculateAt(e,t),i=SYSCALLS.calculateAt(r,i),FS.rename(t,i),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_rmdir(e){e>>>=0;try{return e=SYSCALLS.getStr(e),FS.rmdir(e),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_sendmsg(e,t,r,i,n,a){t>>>=0;try{var s,o,l=getSocketFromFD(e),c=HEAPU32[t+8>>>2>>>0],_=HEAP32[t+12>>>2>>>0],u=HEAPU32[t>>>2>>>0],d=HEAP32[t+4>>>2>>>0];if(u){var p=getSocketAddress(u,d);o=p.port,s=p.addr}for(var f=0,m=0;m<_;m++)f+=HEAP32[c+(8*m+4)>>>2>>>0];var h=new Uint8Array(f),g=0;for(m=0;m<_;m++)for(var v=HEAPU32[c+(8*m+0)>>>2>>>0],y=HEAP32[c+(8*m+4)>>>2>>>0],b=0;b>>0];return l.sock_ops.sendmsg(l,h,0,f,s,o)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_sendto(e,t,r,i,n,a){t>>>=0,r>>>=0,n>>>=0,a>>>=0;try{var s=getSocketFromFD(e);if(!n)return FS.write(s.stream,HEAP8,t,r);var o=getSocketAddress(n,a);return s.sock_ops.sendmsg(s,HEAP8,t,r,o.addr,o.port)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_socket(e,t,r){try{return SOCKFS.createSocket(e,t,r).stream.fd}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_stat64(e,t){e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),SYSCALLS.doStat(FS.stat,e,t)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_symlink(e,t){e>>>=0,t>>>=0;try{return e=SYSCALLS.getStr(e),t=SYSCALLS.getStr(t),FS.symlink(e,t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_symlinkat(e,t,r){e>>>=0,r>>>=0;try{return r=SYSCALLS.calculateAt(t,r),FS.symlink(e,r),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_truncate64(e,t,r){e>>>=0;var i=convertI32PairToI53Checked(t,r);try{return isNaN(i)?61:(e=SYSCALLS.getStr(e),FS.truncate(e,i),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function ___syscall_unlinkat(e,t,r){t>>>=0;try{return t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t),0===r?FS.unlink(t):512===r?FS.rmdir(t):abort("Invalid flags passed to unlinkat"),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_pipe.sig="ip",___syscall_poll.sig="ipii",___syscall_readlinkat.sig="iippp",___syscall_recvfrom.sig="iippipp",___syscall_recvmsg.sig="iipiiii",___syscall_renameat.sig="iipip",___syscall_rmdir.sig="ip",___syscall_sendmsg.sig="iipippi",___syscall_sendto.sig="iippipp",___syscall_socket.sig="iiiiiii",___syscall_stat64.sig="ipp",___syscall_symlink.sig="ipp",___syscall_symlinkat.sig="ipip",___syscall_truncate64.sig="ipii",___syscall_unlinkat.sig="iipi";var readI53FromI64=e=>HEAPU32[e>>>2>>>0]+4294967296*HEAP32[e+4>>>2>>>0];function ___syscall_utimensat(e,t,r,i){t>>>=0,r>>>=0;try{t=SYSCALLS.getStr(t),t=SYSCALLS.calculateAt(e,t,!0);var n,a,s=Date.now();if(r){var o=readI53FromI64(r),l=HEAP32[r+8>>>2>>>0];n=1073741823==l?s:1073741822==l?-1:1e3*o+l/1e6,o=readI53FromI64(r+=16),a=1073741823==(l=HEAP32[r+8>>>2>>>0])?s:1073741822==l?-1:1e3*o+l/1e6}else n=s,a=s;return(-1!=a||-1!=n)&&FS.utime(t,n,a),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}___syscall_utimensat.sig="iippi";var ___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var ENV={},stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},dlSetError=e=>{var t=stackSave(),r=stringToUTF8OnStack(e);___dl_seterr(r,0),stackRestore(t)},dlopenInternal=(e,t)=>{var r=UTF8ToString(e+36),i=HEAP32[e+4>>>2>>>0];r=PATH.normalize(r);var n=!!(256&i),a=n?null:{},s={global:n,nodelete:!!(4096&i),loadAsync:t.loadAsync};if(t.loadAsync)return loadDynamicLibrary(r,s,a,e);try{return loadDynamicLibrary(r,s,a,e)}catch(e){return dlSetError("Could not load dynamic lib: ".concat(r,"\n").concat(e)),0}};function __dlopen_js(e){return dlopenInternal(e>>>=0,{loadAsync:!1})}function __dlsym_js(e,t,r){e>>>=0,r>>>=0,t=UTF8ToString(t>>>=0);var i,n,a=LDSO.loadedLibsByHandle[e];if(!a.exports.hasOwnProperty(t)||a.exports[t].stub)return dlSetError('Tried to lookup unknown symbol "'.concat(t,'" in dynamic lib: ').concat(a.name)),0;n=Object.keys(a.exports).indexOf(t);var s="orig$"+t;if((i=a.exports[s])?n=Object.keys(a.exports).indexOf(s):i=a.exports[t],"function"==typeof i){var o=getFunctionAddress(i);o?i=o:(i=addFunction(i,i.sig),HEAPU32[r>>>2>>>0]=n)}return i}function __embind_register_bigint(e,t,r,i,n){}__dlopen_js.sig="pp",__dlsym_js.sig="pppp",__embind_register_bigint.sig="vpppiiii";var embind_init_charCodes=()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);embind_charCodes=e},embind_charCodes,readLatin1String=e=>{for(var t="",r=e;HEAPU8[r>>>0];)t+=embind_charCodes[HEAPU8[r++>>>0]];return t},awaitingDependencies={},registeredTypes={},typeDependencies={},BindingError,throwBindingError=e=>{throw new BindingError(e)},InternalError,throwInternalError=e=>{throw new InternalError(e)},whenDependentTypesAreResolved=(e,t,r)=>{function i(t){var i=r(t);i.length!==e.length&&throwInternalError("Mismatched type converter count");for(var n=0;ntypeDependencies[e]=t));var n=new Array(t.length),a=[],s=0;t.forEach(((e,t)=>{registeredTypes.hasOwnProperty(e)?n[t]=registeredTypes[e]:(a.push(e),awaitingDependencies.hasOwnProperty(e)||(awaitingDependencies[e]=[]),awaitingDependencies[e].push((()=>{n[t]=registeredTypes[e],++s===a.length&&i(n)})))})),0===a.length&&i(n)};function sharedRegisterType(e,t,r={}){var i=t.name;if(e||throwBindingError('type "'.concat(i,'" must have a positive integer typeid pointer')),registeredTypes.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;throwBindingError("Cannot register type '".concat(i,"' twice"))}if(registeredTypes[e]=t,delete typeDependencies[e],awaitingDependencies.hasOwnProperty(e)){var n=awaitingDependencies[e];delete awaitingDependencies[e],n.forEach((e=>e()))}}function registerType(e,t,r={}){return sharedRegisterType(e,t,r)}var GenericWireTypeSize=8;function __embind_register_bool(e,t,r,i){registerType(e>>>=0,{name:t=readLatin1String(t>>>=0),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?r:i},argPackAdvance:GenericWireTypeSize,readValueFromPointer:function(e){return this.fromWireType(HEAPU8[e>>>0])},destructorFunction:null})}__embind_register_bool.sig="vppii";var emval_freelist=[],emval_handles=[];function __emval_decref(e){(e>>>=0)>9&&0==--emval_handles[e+1]&&(emval_handles[e]=void 0,emval_freelist.push(e))}__emval_decref.sig="vp";var count_emval_handles=()=>emval_handles.length/2-5-emval_freelist.length,init_emval=()=>{emval_handles.push(0,1,void 0,1,null,1,!0,1,!1,1),Module.count_emval_handles=count_emval_handles},Emval={toValue:e=>(e||throwBindingError("Cannot use deleted val. handle = "+e),emval_handles[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let t=emval_freelist.pop()||emval_handles.length;return emval_handles[t]=e,emval_handles[t+1]=1,t}}}};function readPointer(e){return this.fromWireType(HEAPU32[e>>>2>>>0])}var EmValType={name:"emscripten::val",fromWireType:e=>{var t=Emval.toValue(e);return __emval_decref(e),t},toWireType:(e,t)=>Emval.toHandle(t),argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:null};function __embind_register_emval(e){return registerType(e>>>=0,EmValType)}__embind_register_emval.sig="vp";var embindRepr=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},floatReadValueFromPointer=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(HEAPF32[e>>>2>>>0])};case 8:return function(e){return this.fromWireType(HEAPF64[e>>>3>>>0])};default:throw new TypeError("invalid float width (".concat(t,"): ").concat(e))}},__embind_register_float=function(e,t,r){r>>>=0,registerType(e>>>=0,{name:t=readLatin1String(t>>>=0),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:GenericWireTypeSize,readValueFromPointer:floatReadValueFromPointer(t,r),destructorFunction:null})};__embind_register_float.sig="vppp";var integerReadValueFromPointer=(e,t,r)=>{switch(t){case 1:return r?e=>HEAP8[e>>>0]:e=>HEAPU8[e>>>0];case 2:return r?e=>HEAP16[e>>>1>>>0]:e=>HEAPU16[e>>>1>>>0];case 4:return r?e=>HEAP32[e>>>2>>>0]:e=>HEAPU32[e>>>2>>>0];default:throw new TypeError("invalid integer width (".concat(t,"): ").concat(e))}};function __embind_register_integer(e,t,r,i,n){e>>>=0,r>>>=0,t=readLatin1String(t>>>=0),-1===n&&(n=4294967295);var a=e=>e;if(0===i){var s=32-8*r;a=e=>e<>>s}var o=t.includes("unsigned");registerType(e,{name:t,fromWireType:a,toWireType:o?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:GenericWireTypeSize,readValueFromPointer:integerReadValueFromPointer(t,r,0!==i),destructorFunction:null})}function __embind_register_memory_view(e,t,r){r>>>=0;var i=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function n(e){var t=HEAPU32[e>>>2>>>0],r=HEAPU32[e+4>>>2>>>0];return new i(HEAP8.buffer,r,t)}registerType(e>>>=0,{name:r=readLatin1String(r),fromWireType:n,argPackAdvance:GenericWireTypeSize,readValueFromPointer:n},{ignoreDuplicateRegistrations:!0})}function __embind_register_std_string(e,t){e>>>=0;var r="std::string"===(t=readLatin1String(t>>>=0));registerType(e,{name:t,fromWireType(e){var t,i=HEAPU32[e>>>2>>>0],n=e+4;if(r)for(var a=n,s=0;s<=i;++s){var o=n+s;if(s==i||0==HEAPU8[o>>>0]){var l=UTF8ToString(a,o-a);void 0===t?t=l:(t+="\0",t+=l),a=o+1}}else{var c=new Array(i);for(s=0;s>>0]);t=c.join("")}return _free(e),t},toWireType(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var i,n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||throwBindingError("Cannot pass non-string to std::string"),i=r&&n?lengthBytesUTF8(t):t.length;var a=_malloc(4+i+1),s=a+4;if(HEAPU32[a>>>2>>>0]=i,r&&n)stringToUTF8(t,s,i+1);else if(n)for(var o=0;o255&&(_free(s),throwBindingError("String has UTF-16 code units that do not fit in 8 bits")),HEAPU8[s+o>>>0]=l}else for(o=0;o>>0]=t[o];return null!==e&&e.push(_free,a),a},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(e){_free(e)}})}__embind_register_integer.sig="vpppii",__embind_register_memory_view.sig="vpip",__embind_register_std_string.sig="vpp";var UTF16Decoder=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,UTF16ToString=(e,t)=>{for(var r=e,i=r>>1,n=i+t/2;!(i>=n)&&HEAPU16[i>>>0];)++i;if((r=i<<1)-e>32&&UTF16Decoder)return UTF16Decoder.decode(HEAPU8.subarray(e>>>0,r>>>0));for(var a="",s=0;!(s>=t/2);++s){var o=HEAP16[e+2*s>>>1>>>0];if(0==o)break;a+=String.fromCharCode(o)}return a},stringToUTF16=(e,t,r)=>{if(null!=r||(r=2147483647),r<2)return 0;for(var i=t,n=(r-=2)<2*e.length?r/2:e.length,a=0;a>>1>>>0]=s,t+=2}return HEAP16[t>>>1>>>0]=0,t-i},lengthBytesUTF16=e=>2*e.length,UTF32ToString=(e,t)=>{for(var r=0,i="";!(r>=t/4);){var n=HEAP32[e+4*r>>>2>>>0];if(0==n)break;if(++r,n>=65536){var a=n-65536;i+=String.fromCharCode(55296|a>>10,56320|1023&a)}else i+=String.fromCharCode(n)}return i},stringToUTF32=(e,t,r)=>{if(null!=r||(r=2147483647),r<4)return 0;for(var i=t>>>=0,n=i+r-4,a=0;a=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),HEAP32[t>>>2>>>0]=s,(t+=4)+4>n)break}return HEAP32[t>>>2>>>0]=0,t-i},lengthBytesUTF32=e=>{for(var t=0,r=0;r=55296&&i<=57343&&++r,t+=4}return t},__embind_register_std_wstring=function(e,t,r){var i,n,a,s;e>>>=0,t>>>=0,r=readLatin1String(r>>>=0),2===t?(i=UTF16ToString,n=stringToUTF16,s=lengthBytesUTF16,a=e=>HEAPU16[e>>>1>>>0]):4===t&&(i=UTF32ToString,n=stringToUTF32,s=lengthBytesUTF32,a=e=>HEAPU32[e>>>2>>>0]),registerType(e,{name:r,fromWireType:e=>{for(var r,n=HEAPU32[e>>>2>>>0],s=e+4,o=0;o<=n;++o){var l=e+4+o*t;if(o==n||0==a(l)){var c=i(s,l-s);void 0===r?r=c:(r+="\0",r+=c),s=l+t}}return _free(e),r},toWireType:(e,i)=>{"string"!=typeof i&&throwBindingError("Cannot pass non-string to C++ string type ".concat(r));var a=s(i),o=_malloc(4+a+t);return HEAPU32[o>>>2>>>0]=a/t,n(i,o+4,a+t),null!==e&&e.push(_free,o),o},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction(e){_free(e)}})};__embind_register_std_wstring.sig="vppp";var __embind_register_void=function(e,t){registerType(e>>>=0,{isVoid:!0,name:t=readLatin1String(t>>>=0),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})};__embind_register_void.sig="vpp";var handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{var t;EXITSTATUS=e,keepRuntimeAlive()||(null==(t=Module.onExit)||t.call(Module,e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},_exit=exitJS;_exit.sig="vi";var maybeExit=()=>{if(!keepRuntimeAlive())try{_exit(EXITSTATUS)}catch(e){handleException(e)}},callUserCallback=e=>{if(!ABORT)try{e(),maybeExit()}catch(e){handleException(e)}};function __emscripten_dlopen_js(e,t,r,i){function n(t){var n=UTF8ToString(e+36);dlSetError("'Could not load dynamic lib: ".concat(n,"\n").concat(t)),callUserCallback((()=>getWasmTableEntry(r)(e,i)))}t>>>=0,r>>>=0,i>>>=0;var a=dlopenInternal(e>>>=0,{loadAsync:!0});a?a.then((function(){callUserCallback((()=>getWasmTableEntry(t)(e,i)))}),n):n()}__emscripten_dlopen_js.sig="vpppp";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var getExecutableName=()=>thisProgram||"./this.program";function __emscripten_get_progname(e,t){e>>>=0,stringToUTF8(getExecutableName(),e,t)}function __emscripten_lookup_name(e){var t=UTF8ToString(e>>>=0);return inetPton4(DNS.lookup_name(t))}function __emscripten_memcpy_js(e,t,r){return e>>>=0,t>>>=0,r>>>=0,HEAPU8.copyWithin(e>>>0,t>>>0,t+r>>>0)}__emscripten_get_progname.sig="vpi",__emscripten_lookup_name.sig="ip",__emscripten_memcpy_js.sig="vppp";var __emscripten_runtime_keepalive_clear=()=>{noExitRuntime=!1,runtimeKeepaliveCounter=0};function __emscripten_set_offscreencanvas_size(e,t,r){return-1}function __emscripten_system(e){if(e>>>=0,ENVIRONMENT_IS_NODE){if(!e)return 1;var t=UTF8ToString(e);if(!t.length)return 0;var r=["child_process"].map(xi).spawnSync(t,[],{shell:!0,stdio:"inherit"}),i=(e,t)=>e<<8|t;return null===r.status?i(0,(e=>{switch(e){case"SIGHUP":return 1;case"SIGQUIT":return 3;case"SIGFPE":return 8;case"SIGKILL":return 9;case"SIGALRM":return 14;case"SIGTERM":return 15;default:return 2}})(r.signal)):i(r.status,0)}return e?-52:0}__emscripten_runtime_keepalive_clear.sig="v",__emscripten_set_offscreencanvas_size.sig="ipii",__emscripten_system.sig="ip";var __emscripten_throw_longjmp=()=>{throw 1/0};function __gmtime_js(e,t,r){var i=convertI32PairToI53Checked(e,t);r>>>=0;var n=new Date(1e3*i);HEAP32[r>>>2>>>0]=n.getUTCSeconds(),HEAP32[r+4>>>2>>>0]=n.getUTCMinutes(),HEAP32[r+8>>>2>>>0]=n.getUTCHours(),HEAP32[r+12>>>2>>>0]=n.getUTCDate(),HEAP32[r+16>>>2>>>0]=n.getUTCMonth(),HEAP32[r+20>>>2>>>0]=n.getUTCFullYear()-1900,HEAP32[r+24>>>2>>>0]=n.getUTCDay();var a=Date.UTC(n.getUTCFullYear(),0,1,0,0,0,0),s=(n.getTime()-a)/864e5|0;HEAP32[r+28>>>2>>>0]=s}__emscripten_throw_longjmp.sig="v",__gmtime_js.sig="viip";var isLeapYear=e=>e%4==0&&(e%100!=0||e%400==0),MONTH_DAYS_LEAP_CUMULATIVE=[0,31,60,91,121,152,182,213,244,274,305,335],MONTH_DAYS_REGULAR_CUMULATIVE=[0,31,59,90,120,151,181,212,243,273,304,334],ydayFromDate=e=>(isLeapYear(e.getFullYear())?MONTH_DAYS_LEAP_CUMULATIVE:MONTH_DAYS_REGULAR_CUMULATIVE)[e.getMonth()]+e.getDate()-1;function __localtime_js(e,t,r){var i=convertI32PairToI53Checked(e,t);r>>>=0;var n=new Date(1e3*i);HEAP32[r>>>2>>>0]=n.getSeconds(),HEAP32[r+4>>>2>>>0]=n.getMinutes(),HEAP32[r+8>>>2>>>0]=n.getHours(),HEAP32[r+12>>>2>>>0]=n.getDate(),HEAP32[r+16>>>2>>>0]=n.getMonth(),HEAP32[r+20>>>2>>>0]=n.getFullYear()-1900,HEAP32[r+24>>>2>>>0]=n.getDay();var a=0|ydayFromDate(n);HEAP32[r+28>>>2>>>0]=a,HEAP32[r+36>>>2>>>0]=-60*n.getTimezoneOffset();var s=new Date(n.getFullYear(),0,1),o=new Date(n.getFullYear(),6,1).getTimezoneOffset(),l=s.getTimezoneOffset(),c=0|(o!=l&&n.getTimezoneOffset()==Math.min(l,o));HEAP32[r+32>>>2>>>0]=c}__localtime_js.sig="viip";var __mktime_js=function(e){e>>>=0;var t=(()=>{var t=new Date(HEAP32[e+20>>>2>>>0]+1900,HEAP32[e+16>>>2>>>0],HEAP32[e+12>>>2>>>0],HEAP32[e+8>>>2>>>0],HEAP32[e+4>>>2>>>0],HEAP32[e>>>2>>>0],0),r=HEAP32[e+32>>>2>>>0],i=t.getTimezoneOffset(),n=new Date(t.getFullYear(),0,1),a=new Date(t.getFullYear(),6,1).getTimezoneOffset(),s=n.getTimezoneOffset(),o=Math.min(s,a);if(r<0)HEAP32[e+32>>>2>>>0]=+(a!=s&&o==i);else if(r>0!=(o==i)){var l=Math.max(s,a),c=r>0?o:l;t.setTime(t.getTime()+6e4*(c-i))}HEAP32[e+24>>>2>>>0]=t.getDay();var _=0|ydayFromDate(t);HEAP32[e+28>>>2>>>0]=_,HEAP32[e>>>2>>>0]=t.getSeconds(),HEAP32[e+4>>>2>>>0]=t.getMinutes(),HEAP32[e+8>>>2>>>0]=t.getHours(),HEAP32[e+12>>>2>>>0]=t.getDate(),HEAP32[e+16>>>2>>>0]=t.getMonth(),HEAP32[e+20>>>2>>>0]=t.getYear();var u=t.getTime();return isNaN(u)?-1:u/1e3})();return setTempRet0((tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),t>>>0};function __mmap_js(e,t,r,i,n,a,s,o){e>>>=0;var l=convertI32PairToI53Checked(n,a);s>>>=0,o>>>=0;try{if(isNaN(l))return 61;var c=SYSCALLS.getStreamFromFD(i),_=FS.mmap(c,e,l,t,r),u=_.ptr;return HEAP32[s>>>2>>>0]=_.allocated,HEAPU32[o>>>2>>>0]=u,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __msync_js(e,t,r,i,n,a,s){e>>>=0,t>>>=0;var o=convertI32PairToI53Checked(a,s);try{return isNaN(o)?61:(SYSCALLS.doMsync(e,SYSCALLS.getStreamFromFD(n),t,i,o),0)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __munmap_js(e,t,r,i,n,a,s){e>>>=0,t>>>=0;var o=convertI32PairToI53Checked(a,s);try{var l=SYSCALLS.getStreamFromFD(n);2&r&&SYSCALLS.doMsync(e,l,t,i,o)}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}__mktime_js.sig="ip",__mmap_js.sig="ipiiiiipp",__msync_js.sig="ippiiiii",__munmap_js.sig="ippiiiii";var timers={},_emscripten_get_now=()=>performance.now();_emscripten_get_now.sig="d";var __setitimer_js=(e,t)=>{if(timers[e]&&(clearTimeout(timers[e].id),delete timers[e]),!t)return 0;var r=setTimeout((()=>{delete timers[e],callUserCallback((()=>__emscripten_timeout(e,_emscripten_get_now())))}),t);return timers[e]={id:r,timeout_ms:t},0};__setitimer_js.sig="iid";var __timegm_js=function(e){e>>>=0;var t=(()=>{var t=Date.UTC(HEAP32[e+20>>>2>>>0]+1900,HEAP32[e+16>>>2>>>0],HEAP32[e+12>>>2>>>0],HEAP32[e+8>>>2>>>0],HEAP32[e+4>>>2>>>0],HEAP32[e>>>2>>>0],0),r=new Date(t);HEAP32[e+24>>>2>>>0]=r.getUTCDay();var i=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),n=(r.getTime()-i)/864e5|0;return HEAP32[e+28>>>2>>>0]=n,r.getTime()/1e3})();return setTempRet0((tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)),t>>>0};__timegm_js.sig="ip";var __tzset_js=function(e,t,r,i){e>>>=0,t>>>=0,r>>>=0,i>>>=0;var n=(new Date).getFullYear(),a=new Date(n,0,1),s=new Date(n,6,1),o=a.getTimezoneOffset(),l=s.getTimezoneOffset(),c=Math.max(o,l);HEAPU32[e>>>2>>>0]=60*c,HEAP32[t>>>2>>>0]=+(o!=l);var _=e=>{var t=e>=0?"-":"+",r=Math.abs(e),i=String(Math.floor(r/60)).padStart(2,"0"),n=String(r%60).padStart(2,"0");return"UTC".concat(t).concat(i).concat(n)},u=_(o),d=_(l);l{if(MainLoop.timingMode=e,MainLoop.timingValue=t,!MainLoop.func)return 1;if(MainLoop.running||(MainLoop.running=!0),0==e)MainLoop.scheduler=function(){var e=0|Math.max(0,MainLoop.tickStartTime+t-_emscripten_get_now());setTimeout(MainLoop.runner,e)},MainLoop.method="timeout";else if(1==e)MainLoop.scheduler=function(){MainLoop.requestAnimationFrame(MainLoop.runner)},MainLoop.method="rAF";else if(2==e){if(typeof MainLoop.setImmediate>"u")if(typeof setImmediate>"u"){var r=[],i="setimmediate";addEventListener("message",(e=>{(e.data===i||e.data.target===i)&&(e.stopPropagation(),r.shift()())}),!0),MainLoop.setImmediate=e=>{r.push(e),ENVIRONMENT_IS_WORKER?(null!=Module.setImmediates||(Module.setImmediates=[]),Module.setImmediates.push(e),postMessage({target:i})):postMessage(i,"*")}}else MainLoop.setImmediate=setImmediate;MainLoop.scheduler=function(){MainLoop.setImmediate(MainLoop.runner)},MainLoop.method="immediate"}return 0};_emscripten_set_main_loop_timing.sig="iii";var setMainLoop=(e,t,r,i,n)=>{MainLoop.func=e,MainLoop.arg=i;var a=MainLoop.currentlyRunningMainloop;function s(){return!(a0){Date.now();var t=MainLoop.queue.shift();if(t.func(t.arg),MainLoop.remainingBlockers){var r=MainLoop.remainingBlockers,i=r%1==0?r-1:Math.floor(r);t.counted?MainLoop.remainingBlockers=i:(i+=.5,MainLoop.remainingBlockers=(8*r+i)/9)}if(MainLoop.updateStatus(),!s())return;return void setTimeout(MainLoop.runner,0)}if(s()){if(MainLoop.currentFrameNumber=MainLoop.currentFrameNumber+1|0,1==MainLoop.timingMode&&MainLoop.timingValue>1&&MainLoop.currentFrameNumber%MainLoop.timingValue!=0)return void MainLoop.scheduler();0==MainLoop.timingMode&&(MainLoop.tickStartTime=_emscripten_get_now()),MainLoop.runIter(e),s()&&MainLoop.scheduler()}}},n||(t&&t>0?_emscripten_set_main_loop_timing(0,1e3/t):_emscripten_set_main_loop_timing(1,1),MainLoop.scheduler()),r)throw"unwind"},MainLoop={running:!1,scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],preMainLoop:[],postMainLoop:[],pause(){MainLoop.scheduler=null,MainLoop.currentlyRunningMainloop++},resume(){MainLoop.currentlyRunningMainloop++;var e=MainLoop.timingMode,t=MainLoop.timingValue,r=MainLoop.func;MainLoop.func=null,setMainLoop(r,0,!1,MainLoop.arg,!0),_emscripten_set_main_loop_timing(e,t),MainLoop.scheduler()},updateStatus(){var e,t;if(Module.setStatus){var r=Module.statusMessage||"Please wait...",i=null!=(e=MainLoop.remainingBlockers)?e:0,n=null!=(t=MainLoop.expectedBlockers)?t:0;i?i=MainLoop.nextRAF;)MainLoop.nextRAF+=1e3/60;var r=Math.max(MainLoop.nextRAF-t,0);setTimeout(e,r)},requestAnimationFrame(e){"function"!=typeof requestAnimationFrame?(0,MainLoop.fakeRequestAnimationFrame)(e):requestAnimationFrame(e)}},AL={QUEUE_INTERVAL:25,QUEUE_LOOKAHEAD:.1,DEVICE_NAME:"Emscripten OpenAL",CAPTURE_DEVICE_NAME:"Emscripten OpenAL capture",ALC_EXTENSIONS:{ALC_SOFT_pause_device:!0,ALC_SOFT_HRTF:!0},AL_EXTENSIONS:{AL_EXT_float32:!0,AL_SOFT_loop_points:!0,AL_SOFT_source_length:!0,AL_EXT_source_distance_model:!0,AL_SOFT_source_spatialize:!0},_alcErr:0,alcErr:0,deviceRefCounts:{},alcStringCache:{},paused:!1,stringCache:{},contexts:{},currentCtx:null,buffers:{0:{id:0,refCount:0,audioBuf:null,frequency:0,bytesPerSample:2,channels:1,length:0}},paramArray:[],_nextId:1,newId:()=>AL.freeIds.length>0?AL.freeIds.pop():AL._nextId++,freeIds:[],scheduleContextAudio:e=>{if(1!==MainLoop.timingMode||"visible"==document.visibilityState)for(var t in e.sources)AL.scheduleSourceAudio(e.sources[t])},scheduleSourceAudio:(e,t)=>{if((1!==MainLoop.timingMode||"visible"==document.visibilityState)&&4114===e.state){for(var r=AL.updateSourceTime(e),i=e.bufStartTime,n=e.bufOffset,a=e.bufsProcessed,s=0;s=e.bufQueue.length){if(!e.looping)break;a%=e.bufQueue.length}var c=e.bufQueue[a%e.bufQueue.length];if(0===c.length){if(++l===e.bufQueue.length)break}else{var _;(_=e.context.audioCtx.createBufferSource()).buffer=c.audioBuf,_.playbackRate.value=e.playbackRate,(c.audioBuf._loopStart||c.audioBuf._loopEnd)&&(_.loopStart=c.audioBuf._loopStart,_.loopEnd=c.audioBuf._loopEnd);var u=0;4136===e.type&&e.looping?(u=Number.POSITIVE_INFINITY,_.loop=!0,c.audioBuf._loopStart&&(_.loopStart=c.audioBuf._loopStart),c.audioBuf._loopEnd&&(_.loopEnd=c.audioBuf._loopEnd)):u=(c.audioBuf.duration-n)/e.playbackRate,_._startOffset=n,_._duration=u,_._skipCount=l,l=0,_.connect(e.gain),typeof _.start<"u"?(i=Math.max(i,e.context.audioCtx.currentTime),_.start(i,n)):typeof _.noteOn<"u"&&(i=Math.max(i,e.context.audioCtx.currentTime),_.noteOn(i)),_._startTime=i,e.audioQueue.push(_),i+=u}n=0,a++}}},updateSourceTime:e=>{var t=e.context.audioCtx.currentTime;if(4114!==e.state)return t;isFinite(e.bufStartTime)||(e.bufStartTime=t-e.bufOffset/e.playbackRate,e.bufOffset=0);for(var r=0;e.audioQueue.length;){var i=e.audioQueue[0];if(e.bufsProcessed+=i._skipCount,t<(r=i._startTime+i._duration))break;e.audioQueue.shift(),e.bufStartTime=r,e.bufOffset=0,e.bufsProcessed++}if(e.bufsProcessed>=e.bufQueue.length&&!e.looping)AL.setSourceState(e,4116);else if(4136===e.type&&e.looping)if(0===(c=e.bufQueue[0]).length)e.bufOffset=0;else{var n=(t-e.bufStartTime)*e.playbackRate,a=c.audioBuf._loopStart||0,s=c.audioBuf._loopEnd||c.audioBuf.duration;s<=a&&(s=c.audioBuf.duration),e.bufOffset=n0&&(e.bufStartTime+=Math.floor((t-e.bufStartTime)/o)*o)}for(var l=0;l=e.bufQueue.length){if(!e.looping){AL.setSourceState(e,4116);break}e.bufsProcessed%=e.bufQueue.length}var c;if((c=e.bufQueue[e.bufsProcessed]).length>0){if(t<(r=e.bufStartTime+c.audioBuf.duration/e.playbackRate)){e.bufOffset=(t-e.bufStartTime)*e.playbackRate;break}e.bufStartTime=r}e.bufOffset=0,e.bufsProcessed++}}return t},cancelPendingSourceAudio:e=>{AL.updateSourceTime(e);for(var t=1;t1&&(e.audioQueue.length=1)},stopSourceAudio:e=>{for(var t=0;t{4114===t?((4114===e.state||4116==e.state)&&(e.bufsProcessed=0,e.bufOffset=0),AL.stopSourceAudio(e),e.state=4114,e.bufStartTime=Number.NEGATIVE_INFINITY,AL.scheduleSourceAudio(e)):4115===t?4114===e.state&&(AL.updateSourceTime(e),AL.stopSourceAudio(e),e.state=4115):4116===t?4113!==e.state&&(e.state=4116,e.bufsProcessed=e.bufQueue.length,e.bufStartTime=Number.NEGATIVE_INFINITY,e.bufOffset=0,AL.stopSourceAudio(e)):4113===t&&4113!==e.state&&(e.state=4113,e.bufsProcessed=0,e.bufStartTime=Number.NEGATIVE_INFINITY,e.bufOffset=0,AL.stopSourceAudio(e))},initSourcePanner:e=>{if(4144!==e.type){for(var t=AL.buffers[0],r=0;r{for(var t in e.sources)AL.updateSourceGlobal(e.sources[t])},updateSourceGlobal:e=>{var t=e.panner;if(t)switch(t.refDistance=e.refDistance,t.maxDistance=e.maxDistance,t.rolloffFactor=e.rolloffFactor,t.panningModel=e.context.hrtf?"HRTF":"equalpower",e.context.sourceDistanceModel?e.distanceModel:e.context.distanceModel){case 0:t.distanceModel="inverse",t.refDistance=340282e33;break;case 53249:case 53250:t.distanceModel="inverse";break;case 53251:case 53252:t.distanceModel="linear";break;case 53253:case 53254:t.distanceModel="exponential"}},updateListenerSpace:e=>{var t=e.audioCtx.listener;for(var r in t.positionX?(t.positionX.value=e.listener.position[0],t.positionY.value=e.listener.position[1],t.positionZ.value=e.listener.position[2]):t.setPosition(e.listener.position[0],e.listener.position[1],e.listener.position[2]),t.forwardX?(t.forwardX.value=e.listener.direction[0],t.forwardY.value=e.listener.direction[1],t.forwardZ.value=e.listener.direction[2],t.upX.value=e.listener.up[0],t.upY.value=e.listener.up[1],t.upZ.value=e.listener.up[2]):t.setOrientation(e.listener.direction[0],e.listener.direction[1],e.listener.direction[2],e.listener.up[0],e.listener.up[1],e.listener.up[2]),e.sources)AL.updateSourceSpace(e.sources[r])},updateSourceSpace:e=>{if(e.panner){var t=e.panner,r=e.position[0],i=e.position[1],n=e.position[2],a=e.direction[0],s=e.direction[1],o=e.direction[2],l=e.context.listener,c=l.position[0],_=l.position[1],u=l.position[2];if(e.relative){var d=-l.direction[0],p=-l.direction[1],f=-l.direction[2],m=l.up[0],h=l.up[1],g=l.up[2],v=(e,t,r)=>{var i=Math.sqrt(e*e+t*t+r*r);return i{if(4114===e.state){AL.cancelPendingSourceAudio(e);var t,r=e.audioQueue[0];if(!r)return;t=4136===e.type&&e.looping?Number.POSITIVE_INFINITY:(r.buffer.duration-r._startOffset)/e.playbackRate,r._duration=t,r.playbackRate.value=e.playbackRate,AL.scheduleSourceAudio(e)}},sourceDuration:e=>{for(var t=0,r=0;r{AL.updateSourceTime(e);for(var t=0,r=0;r{var r=4114==e.state;if(r&&AL.setSourceState(e,4113),null!==e.bufQueue[e.bufsProcessed].audioBuf){for(e.bufsProcessed=0;t>e.bufQueue[e.bufsProcessed].audioBuf.duration;)t-=e.bufQueue[e.bufsProcessed].audioBuf.duration,e.bufsProcessed++;e.bufOffset=t}r&&AL.setSourceState(e,4114)},getGlobalParam:(e,t)=>{if(!AL.currentCtx)return null;switch(t){case 49152:return AL.currentCtx.dopplerFactor;case 49155:return AL.currentCtx.speedOfSound;case 53248:return AL.currentCtx.distanceModel;default:return AL.currentCtx.err=40962,null}},setGlobalParam:(e,t,r)=>{if(AL.currentCtx)switch(t){case 49152:if(!Number.isFinite(r)||r<0)return void(AL.currentCtx.err=40963);AL.currentCtx.dopplerFactor=r,AL.updateListenerSpace(AL.currentCtx);break;case 49155:if(!Number.isFinite(r)||r<=0)return void(AL.currentCtx.err=40963);AL.currentCtx.speedOfSound=r,AL.updateListenerSpace(AL.currentCtx);break;case 53248:switch(r){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:AL.currentCtx.distanceModel=r,AL.updateContextGlobal(AL.currentCtx);break;default:return void(AL.currentCtx.err=40963)}break;default:return void(AL.currentCtx.err=40962)}},getListenerParam:(e,t)=>{if(!AL.currentCtx)return null;switch(t){case 4100:return AL.currentCtx.listener.position;case 4102:return AL.currentCtx.listener.velocity;case 4111:return AL.currentCtx.listener.direction.concat(AL.currentCtx.listener.up);case 4106:return AL.currentCtx.gain.gain.value;default:return AL.currentCtx.err=40962,null}},setListenerParam:(e,t,r)=>{if(AL.currentCtx){if(null===r)return void(AL.currentCtx.err=40962);var i=AL.currentCtx.listener;switch(t){case 4100:if(!Number.isFinite(r[0])||!Number.isFinite(r[1])||!Number.isFinite(r[2]))return void(AL.currentCtx.err=40963);i.position[0]=r[0],i.position[1]=r[1],i.position[2]=r[2],AL.updateListenerSpace(AL.currentCtx);break;case 4102:if(!Number.isFinite(r[0])||!Number.isFinite(r[1])||!Number.isFinite(r[2]))return void(AL.currentCtx.err=40963);i.velocity[0]=r[0],i.velocity[1]=r[1],i.velocity[2]=r[2],AL.updateListenerSpace(AL.currentCtx);break;case 4106:if(!Number.isFinite(r)||r<0)return void(AL.currentCtx.err=40963);AL.currentCtx.gain.gain.value=r;break;case 4111:if(!(Number.isFinite(r[0])&&Number.isFinite(r[1])&&Number.isFinite(r[2])&&Number.isFinite(r[3])&&Number.isFinite(r[4])&&Number.isFinite(r[5])))return void(AL.currentCtx.err=40963);i.direction[0]=r[0],i.direction[1]=r[1],i.direction[2]=r[2],i.up[0]=r[3],i.up[1]=r[4],i.up[2]=r[5],AL.updateListenerSpace(AL.currentCtx);break;default:return void(AL.currentCtx.err=40962)}}},getBufferParam:(e,t,r)=>{if(AL.currentCtx){var i=AL.buffers[t];if(!i||0===t)return void(AL.currentCtx.err=40961);switch(r){case 8193:return i.frequency;case 8194:return 8*i.bytesPerSample;case 8195:return i.channels;case 8196:return i.length*i.bytesPerSample*i.channels;case 8213:return 0===i.length?[0,0]:[(i.audioBuf._loopStart||0)*i.frequency,(i.audioBuf._loopEnd||i.length)*i.frequency];default:return AL.currentCtx.err=40962,null}}},setBufferParam:(e,t,r,i)=>{if(AL.currentCtx){var n=AL.buffers[t];if(!n||0===t)return void(AL.currentCtx.err=40961);if(null===i)return void(AL.currentCtx.err=40962);switch(r){case 8196:if(0!==i)return void(AL.currentCtx.err=40963);break;case 8213:if(i[0]<0||i[0]>n.length||i[1]<0||i[1]>n.Length||i[0]>=i[1])return void(AL.currentCtx.err=40963);if(n.refCount>0)return void(AL.currentCtx.err=40964);n.audioBuf&&(n.audioBuf._loopStart=i[0]/n.frequency,n.audioBuf._loopEnd=i[1]/n.frequency);break;default:return void(AL.currentCtx.err=40962)}}},getSourceParam:(e,t,r)=>{if(!AL.currentCtx)return null;var i=AL.currentCtx.sources[t];if(!i)return AL.currentCtx.err=40961,null;switch(r){case 514:return i.relative;case 4097:return i.coneInnerAngle;case 4098:return i.coneOuterAngle;case 4099:return i.pitch;case 4100:return i.position;case 4101:return i.direction;case 4102:return i.velocity;case 4103:return i.looping;case 4105:return 4136===i.type?i.bufQueue[0].id:0;case 4106:return i.gain.gain.value;case 4109:return i.minGain;case 4110:return i.maxGain;case 4112:return i.state;case 4117:return 1===i.bufQueue.length&&0===i.bufQueue[0].id?0:i.bufQueue.length;case 4118:return 1===i.bufQueue.length&&0===i.bufQueue[0].id||i.looping?0:i.bufsProcessed;case 4128:return i.refDistance;case 4129:return i.rolloffFactor;case 4130:return i.coneOuterGain;case 4131:return i.maxDistance;case 4132:return AL.sourceTell(i);case 4133:return(n=AL.sourceTell(i))>0&&(n*=i.bufQueue[0].frequency),n;case 4134:var n;return(n=AL.sourceTell(i))>0&&(n*=i.bufQueue[0].frequency*i.bufQueue[0].bytesPerSample),n;case 4135:return i.type;case 4628:return i.spatialize;case 8201:for(var a=0,s=0,o=0;o{if(AL.currentCtx){var n=AL.currentCtx.sources[t];if(!n)return void(AL.currentCtx.err=40961);if(null===i)return void(AL.currentCtx.err=40962);switch(r){case 514:if(1===i)n.relative=!0,AL.updateSourceSpace(n);else{if(0!==i)return void(AL.currentCtx.err=40963);n.relative=!1,AL.updateSourceSpace(n)}break;case 4097:if(!Number.isFinite(i))return void(AL.currentCtx.err=40963);n.coneInnerAngle=i,n.panner&&(n.panner.coneInnerAngle=i%360);break;case 4098:if(!Number.isFinite(i))return void(AL.currentCtx.err=40963);n.coneOuterAngle=i,n.panner&&(n.panner.coneOuterAngle=i%360);break;case 4099:if(!Number.isFinite(i)||i<=0)return void(AL.currentCtx.err=40963);if(n.pitch===i)break;n.pitch=i,AL.updateSourceRate(n);break;case 4100:if(!Number.isFinite(i[0])||!Number.isFinite(i[1])||!Number.isFinite(i[2]))return void(AL.currentCtx.err=40963);n.position[0]=i[0],n.position[1]=i[1],n.position[2]=i[2],AL.updateSourceSpace(n);break;case 4101:if(!Number.isFinite(i[0])||!Number.isFinite(i[1])||!Number.isFinite(i[2]))return void(AL.currentCtx.err=40963);n.direction[0]=i[0],n.direction[1]=i[1],n.direction[2]=i[2],AL.updateSourceSpace(n);break;case 4102:if(!Number.isFinite(i[0])||!Number.isFinite(i[1])||!Number.isFinite(i[2]))return void(AL.currentCtx.err=40963);n.velocity[0]=i[0],n.velocity[1]=i[1],n.velocity[2]=i[2],AL.updateSourceSpace(n);break;case 4103:if(1===i)n.looping=!0,AL.updateSourceTime(n),4136===n.type&&n.audioQueue.length>0&&((a=n.audioQueue[0]).loop=!0,a._duration=Number.POSITIVE_INFINITY);else{if(0!==i)return void(AL.currentCtx.err=40963);n.looping=!1;var a,s=AL.updateSourceTime(n);4136===n.type&&n.audioQueue.length>0&&((a=n.audioQueue[0]).loop=!1,a._duration=n.bufQueue[0].audioBuf.duration/n.playbackRate,a._startTime=s-n.bufOffset/n.playbackRate)}break;case 4105:if(4114===n.state||4115===n.state)return void(AL.currentCtx.err=40964);if(0===i){for(var o in n.bufQueue)n.bufQueue[o].refCount--;n.bufQueue.length=1,n.bufQueue[0]=AL.buffers[0],n.bufsProcessed=0,n.type=4144}else{if(!(d=AL.buffers[i]))return void(AL.currentCtx.err=40963);for(var o in n.bufQueue)n.bufQueue[o].refCount--;n.bufQueue.length=0,d.refCount++,n.bufQueue=[d],n.bufsProcessed=0,n.type=4136}AL.initSourcePanner(n),AL.scheduleSourceAudio(n);break;case 4106:if(!Number.isFinite(i)||i<0)return void(AL.currentCtx.err=40963);n.gain.gain.value=i;break;case 4109:if(!Number.isFinite(i)||i<0||i>Math.min(n.maxGain,1))return void(AL.currentCtx.err=40963);n.minGain=i;break;case 4110:if(!Number.isFinite(i)||i1)return void(AL.currentCtx.err=40963);n.maxGain=i;break;case 4128:if(!Number.isFinite(i)||i<0)return void(AL.currentCtx.err=40963);n.refDistance=i,n.panner&&(n.panner.refDistance=i);break;case 4129:if(!Number.isFinite(i)||i<0)return void(AL.currentCtx.err=40963);n.rolloffFactor=i,n.panner&&(n.panner.rolloffFactor=i);break;case 4130:if(!Number.isFinite(i)||i<0||i>1)return void(AL.currentCtx.err=40963);n.coneOuterGain=i,n.panner&&(n.panner.coneOuterGain=i);break;case 4131:if(!Number.isFinite(i)||i<0)return void(AL.currentCtx.err=40963);n.maxDistance=i,n.panner&&(n.panner.maxDistance=i);break;case 4132:if(i<0||i>AL.sourceDuration(n))return void(AL.currentCtx.err=40963);AL.sourceSeek(n,i);break;case 4133:if((_=AL.sourceDuration(n))>0){var l;for(var c in n.bufQueue)if(c){l=n.bufQueue[c].frequency;break}i/=l}if(i<0||i>_)return void(AL.currentCtx.err=40963);AL.sourceSeek(n,i);break;case 4134:var _;if((_=AL.sourceDuration(n))>0){var u;for(var c in n.bufQueue)if(c){var d;u=(d=n.bufQueue[c]).frequency*d.bytesPerSample*d.channels;break}i/=u}if(i<0||i>_)return void(AL.currentCtx.err=40963);AL.sourceSeek(n,i);break;case 4628:if(0!==i&&1!==i&&2!==i)return void(AL.currentCtx.err=40963);n.spatialize=i,AL.initSourcePanner(n);break;case 8201:case 8202:case 8203:AL.currentCtx.err=40964;break;case 53248:switch(i){case 0:case 53249:case 53250:case 53251:case 53252:case 53253:case 53254:n.distanceModel=i,AL.currentCtx.sourceDistanceModel&&AL.updateContextGlobal(AL.currentCtx);break;default:return void(AL.currentCtx.err=40963)}break;default:return void(AL.currentCtx.err=40962)}}},captures:{},sharedCaptureAudioCtx:null,requireValidCaptureDevice:(e,t)=>{if(0===e)return AL.alcErr=40961,null;var r=AL.captures[e];return r?r.mediaStreamError?(AL.alcErr=40961,null):r:(AL.alcErr=40961,null)}},_alBuffer3f=(e,t,r,i,n)=>{AL.setBufferParam("alBuffer3f",e,t,null)};_alBuffer3f.sig="viifff";var _alBuffer3i=(e,t,r,i,n)=>{AL.setBufferParam("alBuffer3i",e,t,null)};function _alBufferData(e,t,r,i,n){if(r>>>=0,AL.currentCtx){var a=AL.buffers[e];if(!a)return void(AL.currentCtx.err=40963);if(n<=0)return void(AL.currentCtx.err=40963);var s=null;try{switch(t){case 4352:if(i>0)for(var o=(s=AL.currentCtx.audioCtx.createBuffer(1,i,n)).getChannelData(0),l=0;l>>0]-1;a.bytesPerSample=1,a.channels=1,a.length=i;break;case 4353:if(i>0)for(o=(s=AL.currentCtx.audioCtx.createBuffer(1,i>>1,n)).getChannelData(0),r>>=1,l=0;l>1;++l)o[l]=30517578125e-15*HEAP16[r++>>>0];a.bytesPerSample=2,a.channels=1,a.length=i>>1;break;case 4354:if(i>0){o=(s=AL.currentCtx.audioCtx.createBuffer(2,i>>1,n)).getChannelData(0);var c=s.getChannelData(1);for(l=0;l>1;++l)o[l]=.0078125*HEAPU8[r++>>>0]-1,c[l]=.0078125*HEAPU8[r++>>>0]-1}a.bytesPerSample=1,a.channels=2,a.length=i>>1;break;case 4355:if(i>0)for(o=(s=AL.currentCtx.audioCtx.createBuffer(2,i>>2,n)).getChannelData(0),c=s.getChannelData(1),r>>=1,l=0;l>2;++l)o[l]=30517578125e-15*HEAP16[r++>>>0],c[l]=30517578125e-15*HEAP16[r++>>>0];a.bytesPerSample=2,a.channels=2,a.length=i>>2;break;case 65552:if(i>0)for(o=(s=AL.currentCtx.audioCtx.createBuffer(1,i>>2,n)).getChannelData(0),r>>=2,l=0;l>2;++l)o[l]=HEAPF32[r++>>>0];a.bytesPerSample=4,a.channels=1,a.length=i>>2;break;case 65553:if(i>0)for(o=(s=AL.currentCtx.audioCtx.createBuffer(2,i>>3,n)).getChannelData(0),c=s.getChannelData(1),r>>=2,l=0;l>3;++l)o[l]=HEAPF32[r++>>>0],c[l]=HEAPF32[r++>>>0];a.bytesPerSample=4,a.channels=2,a.length=i>>3;break;default:return void(AL.currentCtx.err=40963)}a.frequency=n,a.audioBuf=s}catch(e){return void(AL.currentCtx.err=40963)}}}_alBuffer3i.sig="viiiii",_alBufferData.sig="viipii";var _alBufferf=(e,t,r)=>{AL.setBufferParam("alBufferf",e,t,null)};function _alBufferfv(e,t,r){if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);AL.setBufferParam("alBufferfv",e,t,null)}}_alBufferf.sig="viif",_alBufferfv.sig="viip";var _alBufferi=(e,t,r)=>{AL.setBufferParam("alBufferi",e,t,null)};function _alBufferiv(e,t,r){if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);8213===t?(AL.paramArray[0]=HEAP32[r>>>2>>>0],AL.paramArray[1]=HEAP32[r+4>>>2>>>0],AL.setBufferParam("alBufferiv",e,t,AL.paramArray)):AL.setBufferParam("alBufferiv",e,t,null)}}function _alDeleteBuffers(e,t){if(t>>>=0,AL.currentCtx){for(var r=0;r>>2>>>0])){if(!AL.buffers[i])return void(AL.currentCtx.err=40961);if(AL.buffers[i].refCount)return void(AL.currentCtx.err=40964)}for(r=0;r>>2>>>0])&&(AL.deviceRefCounts[AL.buffers[i].deviceId]--,delete AL.buffers[i],AL.freeIds.push(i))}}}_alBufferi.sig="viii",_alBufferiv.sig="viip",_alDeleteBuffers.sig="vip";var _alSourcei=(e,t,r)=>{switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:AL.setSourceParam("alSourcei",e,t,r);break;default:AL.setSourceParam("alSourcei",e,t,null)}};function _alDeleteSources(e,t){if(t>>>=0,AL.currentCtx){for(var r=0;r>>2>>>0];if(!AL.currentCtx.sources[i])return void(AL.currentCtx.err=40961)}for(r=0;r>>2>>>0],AL.setSourceState(AL.currentCtx.sources[i],4116),_alSourcei(i,4105,0),delete AL.currentCtx.sources[i],AL.freeIds.push(i)}}_alSourcei.sig="viii",_alDeleteSources.sig="vip";var _alDisable=e=>{if(AL.currentCtx){if(512!==e)return void(AL.currentCtx.err=40962);AL.currentCtx.sourceDistanceModel=!1,AL.updateContextGlobal(AL.currentCtx)}};_alDisable.sig="vi";var _alDistanceModel=e=>{AL.setGlobalParam("alDistanceModel",53248,e)};_alDistanceModel.sig="vi";var _alDopplerFactor=e=>{AL.setGlobalParam("alDopplerFactor",49152,e)};_alDopplerFactor.sig="vf";var _alDopplerVelocity=e=>{warnOnce("alDopplerVelocity() is deprecated, and only kept for compatibility with OpenAL 1.0. Use alSpeedOfSound() instead."),AL.currentCtx&&e<=0&&(AL.currentCtx.err=40963)};_alDopplerVelocity.sig="vf";var _alEnable=e=>{if(AL.currentCtx){if(512!==e)return void(AL.currentCtx.err=40962);AL.currentCtx.sourceDistanceModel=!0,AL.updateContextGlobal(AL.currentCtx)}};function _alGenBuffers(e,t){if(t>>>=0,AL.currentCtx)for(var r=0;r>>2>>>0]=i.id}}function _alGenSources(e,t){if(t>>>=0,AL.currentCtx)for(var r=0;r>>2>>>0]=n.id}}_alEnable.sig="vi",_alGenBuffers.sig="vip",_alGenSources.sig="vip";var _alGetBoolean=e=>{var t=AL.getGlobalParam("alGetBoolean",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return 0!==t?1:0;default:return AL.currentCtx.err=40962,0}};function _alGetBooleanv(e,t){t>>>=0;var r=AL.getGlobalParam("alGetBooleanv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:HEAP8[t>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetBuffer3f(e,t,r,i,n){if(r>>>=0,i>>>=0,n>>>=0,null!==AL.getBufferParam("alGetBuffer3f",e,t)){if(!r||!i||!n)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBuffer3i(e,t,r,i,n){if(r>>>=0,i>>>=0,n>>>=0,null!==AL.getBufferParam("alGetBuffer3i",e,t)){if(!r||!i||!n)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferf(e,t,r){if(r>>>=0,null!==AL.getBufferParam("alGetBufferf",e,t)){if(!r)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferfv(e,t,r){if(r>>>=0,null!==AL.getBufferParam("alGetBufferfv",e,t)){if(!r)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetBufferi(e,t,r){r>>>=0;var i=AL.getBufferParam("alGetBufferi",e,t);if(null!==i){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 8193:case 8194:case 8195:case 8196:HEAP32[r>>>2>>>0]=i;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetBufferiv(e,t,r){r>>>=0;var i=AL.getBufferParam("alGetBufferiv",e,t);if(null!==i){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 8193:case 8194:case 8195:case 8196:HEAP32[r>>>2>>>0]=i;break;case 8213:HEAP32[r>>>2>>>0]=i[0],HEAP32[r+4>>>2>>>0]=i[1];break;default:return void(AL.currentCtx.err=40962)}}}_alGetBoolean.sig="ii",_alGetBooleanv.sig="vip",_alGetBuffer3f.sig="viippp",_alGetBuffer3i.sig="viippp",_alGetBufferf.sig="viip",_alGetBufferfv.sig="viip",_alGetBufferi.sig="viip",_alGetBufferiv.sig="viip";var _alGetDouble=e=>{var t=AL.getGlobalParam("alGetDouble",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return AL.currentCtx.err=40962,0}};function _alGetDoublev(e,t){t>>>=0;var r=AL.getGlobalParam("alGetDoublev",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:HEAPF64[t>>>3>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetEnumValue(e){if(e>>>=0,!AL.currentCtx)return 0;if(!e)return AL.currentCtx.err=40963,0;switch(UTF8ToString(e)){case"AL_BITS":return 8194;case"AL_BUFFER":return 4105;case"AL_BUFFERS_PROCESSED":return 4118;case"AL_BUFFERS_QUEUED":return 4117;case"AL_BYTE_OFFSET":return 4134;case"AL_CHANNELS":return 8195;case"AL_CONE_INNER_ANGLE":return 4097;case"AL_CONE_OUTER_ANGLE":return 4098;case"AL_CONE_OUTER_GAIN":return 4130;case"AL_DIRECTION":return 4101;case"AL_DISTANCE_MODEL":return 53248;case"AL_DOPPLER_FACTOR":return 49152;case"AL_DOPPLER_VELOCITY":return 49153;case"AL_EXPONENT_DISTANCE":return 53253;case"AL_EXPONENT_DISTANCE_CLAMPED":return 53254;case"AL_EXTENSIONS":return 45060;case"AL_FORMAT_MONO16":return 4353;case"AL_FORMAT_MONO8":return 4352;case"AL_FORMAT_STEREO16":return 4355;case"AL_FORMAT_STEREO8":return 4354;case"AL_FREQUENCY":return 8193;case"AL_GAIN":return 4106;case"AL_INITIAL":return 4113;case"AL_INVALID":return-1;case"AL_ILLEGAL_ENUM":case"AL_INVALID_ENUM":return 40962;case"AL_INVALID_NAME":return 40961;case"AL_ILLEGAL_COMMAND":case"AL_INVALID_OPERATION":return 40964;case"AL_INVALID_VALUE":return 40963;case"AL_INVERSE_DISTANCE":return 53249;case"AL_INVERSE_DISTANCE_CLAMPED":return 53250;case"AL_LINEAR_DISTANCE":return 53251;case"AL_LINEAR_DISTANCE_CLAMPED":return 53252;case"AL_LOOPING":return 4103;case"AL_MAX_DISTANCE":return 4131;case"AL_MAX_GAIN":return 4110;case"AL_MIN_GAIN":return 4109;case"AL_NONE":case"AL_NO_ERROR":return 0;case"AL_ORIENTATION":return 4111;case"AL_OUT_OF_MEMORY":return 40965;case"AL_PAUSED":return 4115;case"AL_PENDING":return 8209;case"AL_PITCH":return 4099;case"AL_PLAYING":return 4114;case"AL_POSITION":return 4100;case"AL_PROCESSED":return 8210;case"AL_REFERENCE_DISTANCE":return 4128;case"AL_RENDERER":return 45059;case"AL_ROLLOFF_FACTOR":return 4129;case"AL_SAMPLE_OFFSET":return 4133;case"AL_SEC_OFFSET":return 4132;case"AL_SIZE":return 8196;case"AL_SOURCE_RELATIVE":return 514;case"AL_SOURCE_STATE":return 4112;case"AL_SOURCE_TYPE":return 4135;case"AL_SPEED_OF_SOUND":return 49155;case"AL_STATIC":return 4136;case"AL_STOPPED":return 4116;case"AL_STREAMING":return 4137;case"AL_UNDETERMINED":return 4144;case"AL_UNUSED":return 8208;case"AL_VELOCITY":return 4102;case"AL_VENDOR":return 45057;case"AL_VERSION":return 45058;case"AL_AUTO_SOFT":return 2;case"AL_SOURCE_DISTANCE_MODEL":return 512;case"AL_SOURCE_SPATIALIZE_SOFT":return 4628;case"AL_LOOP_POINTS_SOFT":return 8213;case"AL_BYTE_LENGTH_SOFT":return 8201;case"AL_SAMPLE_LENGTH_SOFT":return 8202;case"AL_SEC_LENGTH_SOFT":return 8203;case"AL_FORMAT_MONO_FLOAT32":return 65552;case"AL_FORMAT_STEREO_FLOAT32":return 65553;default:return AL.currentCtx.err=40963,0}}_alGetDouble.sig="di",_alGetDoublev.sig="vip",_alGetEnumValue.sig="ip";var _alGetError=()=>{if(!AL.currentCtx)return 40964;var e=AL.currentCtx.err;return AL.currentCtx.err=0,e};_alGetError.sig="i";var _alGetFloat=e=>{var t=AL.getGlobalParam("alGetFloat",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return 0}};function _alGetFloatv(e,t){t>>>=0;var r=AL.getGlobalParam("alGetFloatv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:HEAPF32[t>>>2>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}_alGetFloat.sig="fi",_alGetFloatv.sig="vip";var _alGetInteger=e=>{var t=AL.getGlobalParam("alGetInteger",e);if(null===t)return 0;switch(e){case 49152:case 49155:case 53248:return t;default:return AL.currentCtx.err=40962,0}};function _alGetIntegerv(e,t){t>>>=0;var r=AL.getGlobalParam("alGetIntegerv",e);if(null!==r&&t)switch(e){case 49152:case 49155:case 53248:HEAP32[t>>>2>>>0]=r;break;default:return void(AL.currentCtx.err=40962)}}function _alGetListener3f(e,t,r,i){t>>>=0,r>>>=0,i>>>=0;var n=AL.getListenerParam("alGetListener3f",e);if(null!==n){if(!t||!r||!i)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:HEAPF32[t>>>2>>>0]=n[0],HEAPF32[r>>>2>>>0]=n[1],HEAPF32[i>>>2>>>0]=n[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListener3i(e,t,r,i){t>>>=0,r>>>=0,i>>>=0;var n=AL.getListenerParam("alGetListener3i",e);if(null!==n){if(!t||!r||!i)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:HEAP32[t>>>2>>>0]=n[0],HEAP32[r>>>2>>>0]=n[1],HEAP32[i>>>2>>>0]=n[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListenerf(e,t){t>>>=0;var r=AL.getListenerParam("alGetListenerf",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);if(4106!==e)return void(AL.currentCtx.err=40962);HEAPF32[t>>>2>>>0]=r}}function _alGetListenerfv(e,t){t>>>=0;var r=AL.getListenerParam("alGetListenerfv",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:HEAPF32[t>>>2>>>0]=r[0],HEAPF32[t+4>>>2>>>0]=r[1],HEAPF32[t+8>>>2>>>0]=r[2];break;case 4111:HEAPF32[t>>>2>>>0]=r[0],HEAPF32[t+4>>>2>>>0]=r[1],HEAPF32[t+8>>>2>>>0]=r[2],HEAPF32[t+12>>>2>>>0]=r[3],HEAPF32[t+16>>>2>>>0]=r[4],HEAPF32[t+20>>>2>>>0]=r[5];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetListeneri(e,t){if(t>>>=0,null!==AL.getListenerParam("alGetListeneri",e)){if(!t)return void(AL.currentCtx.err=40963);AL.currentCtx.err=40962}}function _alGetListeneriv(e,t){t>>>=0;var r=AL.getListenerParam("alGetListeneriv",e);if(null!==r){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:HEAP32[t>>>2>>>0]=r[0],HEAP32[t+4>>>2>>>0]=r[1],HEAP32[t+8>>>2>>>0]=r[2];break;case 4111:HEAP32[t>>>2>>>0]=r[0],HEAP32[t+4>>>2>>>0]=r[1],HEAP32[t+8>>>2>>>0]=r[2],HEAP32[t+12>>>2>>>0]=r[3],HEAP32[t+16>>>2>>>0]=r[4],HEAP32[t+20>>>2>>>0]=r[5];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSource3f(e,t,r,i,n){r>>>=0,i>>>=0,n>>>=0;var a=AL.getSourceParam("alGetSource3f",e,t);if(null!==a){if(!r||!i||!n)return void(AL.currentCtx.err=40963);switch(t){case 4100:case 4101:case 4102:HEAPF32[r>>>2>>>0]=a[0],HEAPF32[i>>>2>>>0]=a[1],HEAPF32[n>>>2>>>0]=a[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSource3i(e,t,r,i,n){r>>>=0,i>>>=0,n>>>=0;var a=AL.getSourceParam("alGetSource3i",e,t);if(null!==a){if(!r||!i||!n)return void(AL.currentCtx.err=40963);switch(t){case 4100:case 4101:case 4102:HEAP32[r>>>2>>>0]=a[0],HEAP32[i>>>2>>>0]=a[1],HEAP32[n>>>2>>>0]=a[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcef(e,t,r){r>>>=0;var i=AL.getSourceParam("alGetSourcef",e,t);if(null!==i){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:HEAPF32[r>>>2>>>0]=i;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcefv(e,t,r){r>>>=0;var i=AL.getSourceParam("alGetSourcefv",e,t);if(null!==i){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:HEAPF32[r>>>2>>>0]=i[0];break;case 4100:case 4101:case 4102:HEAPF32[r>>>2>>>0]=i[0],HEAPF32[r+4>>>2>>>0]=i[1],HEAPF32[r+8>>>2>>>0]=i[2];break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourcei(e,t,r){r>>>=0;var i=AL.getSourceParam("alGetSourcei",e,t);if(null!==i){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:HEAP32[r>>>2>>>0]=i;break;default:return void(AL.currentCtx.err=40962)}}}function _alGetSourceiv(e,t,r){r>>>=0;var i=AL.getSourceParam("alGetSourceiv",e,t);if(null!==i){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4112:case 4117:case 4118:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4135:case 4628:case 8201:case 8202:case 53248:HEAP32[r>>>2>>>0]=i;break;case 4100:case 4101:case 4102:HEAP32[r>>>2>>>0]=i[0],HEAP32[r+4>>>2>>>0]=i[1],HEAP32[r+8>>>2>>>0]=i[2];break;default:return void(AL.currentCtx.err=40962)}}}_alGetInteger.sig="ii",_alGetIntegerv.sig="vip",_alGetListener3f.sig="vippp",_alGetListener3i.sig="vippp",_alGetListenerf.sig="vip",_alGetListenerfv.sig="vip",_alGetListeneri.sig="vip",_alGetListeneriv.sig="vip",_alGetSource3f.sig="viippp",_alGetSource3i.sig="viippp",_alGetSourcef.sig="viip",_alGetSourcefv.sig="viip",_alGetSourcei.sig="viip",_alGetSourceiv.sig="viip";var stringToNewUTF8=e=>{var t=lengthBytesUTF8(e)+1,r=_malloc(t);return r&&stringToUTF8(e,r,t),r};function _alGetString(e){if(AL.stringCache[e])return AL.stringCache[e];var t;switch(e){case 0:t="No Error";break;case 40961:t="Invalid Name";break;case 40962:t="Invalid Enum";break;case 40963:t="Invalid Value";break;case 40964:t="Invalid Operation";break;case 40965:t="Out of Memory";break;case 45057:t="Emscripten";break;case 45058:t="1.1";break;case 45059:t="WebAudio";break;case 45060:t=Object.keys(AL.AL_EXTENSIONS).join(" ");break;default:return AL.currentCtx&&(AL.currentCtx.err=40962),0}return t=stringToNewUTF8(t),AL.stringCache[e]=t,t}_alGetString.sig="pi";var _alIsBuffer=e=>!(!AL.currentCtx||e>AL.buffers.length||!AL.buffers[e]);_alIsBuffer.sig="ii";var _alIsEnabled=e=>AL.currentCtx?512===e?AL.currentCtx.sourceDistanceModel?0:1:(AL.currentCtx.err=40962,0):0;function _alIsExtensionPresent(e){var t=UTF8ToString(e>>>=0);return AL.AL_EXTENSIONS[t]?1:0}_alIsEnabled.sig="ii",_alIsExtensionPresent.sig="ip";var _alIsSource=e=>!(!AL.currentCtx||!AL.currentCtx.sources[e]);_alIsSource.sig="ii";var _alListener3f=(e,t,r,i)=>{switch(e){case 4100:case 4102:AL.paramArray[0]=t,AL.paramArray[1]=r,AL.paramArray[2]=i,AL.setListenerParam("alListener3f",e,AL.paramArray);break;default:AL.setListenerParam("alListener3f",e,null)}};_alListener3f.sig="vifff";var _alListener3i=(e,t,r,i)=>{switch(e){case 4100:case 4102:AL.paramArray[0]=t,AL.paramArray[1]=r,AL.paramArray[2]=i,AL.setListenerParam("alListener3i",e,AL.paramArray);break;default:AL.setListenerParam("alListener3i",e,null)}};_alListener3i.sig="viiii";var _alListenerf=(e,t)=>{4106===e?AL.setListenerParam("alListenerf",e,t):AL.setListenerParam("alListenerf",e,null)};function _alListenerfv(e,t){if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:AL.paramArray[0]=HEAPF32[t>>>2>>>0],AL.paramArray[1]=HEAPF32[t+4>>>2>>>0],AL.paramArray[2]=HEAPF32[t+8>>>2>>>0],AL.setListenerParam("alListenerfv",e,AL.paramArray);break;case 4111:AL.paramArray[0]=HEAPF32[t>>>2>>>0],AL.paramArray[1]=HEAPF32[t+4>>>2>>>0],AL.paramArray[2]=HEAPF32[t+8>>>2>>>0],AL.paramArray[3]=HEAPF32[t+12>>>2>>>0],AL.paramArray[4]=HEAPF32[t+16>>>2>>>0],AL.paramArray[5]=HEAPF32[t+20>>>2>>>0],AL.setListenerParam("alListenerfv",e,AL.paramArray);break;default:AL.setListenerParam("alListenerfv",e,null)}}}_alListenerf.sig="vif",_alListenerfv.sig="vip";var _alListeneri=(e,t)=>{AL.setListenerParam("alListeneri",e,null)};function _alListeneriv(e,t){if(t>>>=0,AL.currentCtx){if(!t)return void(AL.currentCtx.err=40963);switch(e){case 4100:case 4102:AL.paramArray[0]=HEAP32[t>>>2>>>0],AL.paramArray[1]=HEAP32[t+4>>>2>>>0],AL.paramArray[2]=HEAP32[t+8>>>2>>>0],AL.setListenerParam("alListeneriv",e,AL.paramArray);break;case 4111:AL.paramArray[0]=HEAP32[t>>>2>>>0],AL.paramArray[1]=HEAP32[t+4>>>2>>>0],AL.paramArray[2]=HEAP32[t+8>>>2>>>0],AL.paramArray[3]=HEAP32[t+12>>>2>>>0],AL.paramArray[4]=HEAP32[t+16>>>2>>>0],AL.paramArray[5]=HEAP32[t+20>>>2>>>0],AL.setListenerParam("alListeneriv",e,AL.paramArray);break;default:AL.setListenerParam("alListeneriv",e,null)}}}_alListeneri.sig="vii",_alListeneriv.sig="vip";var _alSource3f=(e,t,r,i,n)=>{switch(t){case 4100:case 4101:case 4102:AL.paramArray[0]=r,AL.paramArray[1]=i,AL.paramArray[2]=n,AL.setSourceParam("alSource3f",e,t,AL.paramArray);break;default:AL.setSourceParam("alSource3f",e,t,null)}};_alSource3f.sig="viifff";var _alSource3i=(e,t,r,i,n)=>{switch(t){case 4100:case 4101:case 4102:AL.paramArray[0]=r,AL.paramArray[1]=i,AL.paramArray[2]=n,AL.setSourceParam("alSource3i",e,t,AL.paramArray);break;default:AL.setSourceParam("alSource3i",e,t,null)}};_alSource3i.sig="viiiii";var _alSourcePause=e=>{if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4115)}};function _alSourcePausev(e,t){if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[i],4115)}}}_alSourcePause.sig="vi",_alSourcePausev.sig="vip";var _alSourcePlay=e=>{if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4114)}};function _alSourcePlayv(e,t){if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[i],4114)}}}function _alSourceQueueBuffers(e,t,r){if(r>>>=0,AL.currentCtx){var i=AL.currentCtx.sources[e];if(!i)return void(AL.currentCtx.err=40961);if(4136===i.type)return void(AL.currentCtx.err=40964);if(0!==t){for(var n=AL.buffers[0],a=0;a>>2>>>0];if(!(o=AL.buffers[s]))return void(AL.currentCtx.err=40961);0!==n.id&&(o.frequency!==n.frequency||o.bytesPerSample!==n.bytesPerSample||o.channels!==n.channels)&&(AL.currentCtx.err=40964)}for(1===i.bufQueue.length&&0===i.bufQueue[0].id&&(i.bufQueue.length=0),i.type=4137,a=0;a>>2>>>0],(o=AL.buffers[s]).refCount++,i.bufQueue.push(o)}i.looping&&AL.cancelPendingSourceAudio(i),AL.initSourcePanner(i),AL.scheduleSourceAudio(i)}}}_alSourcePlay.sig="vi",_alSourcePlayv.sig="vip",_alSourceQueueBuffers.sig="viip";var _alSourceRewind=e=>{if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4116),AL.setSourceState(t,4113)}};function _alSourceRewindv(e,t){if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[i],4113)}}}_alSourceRewind.sig="vi",_alSourceRewindv.sig="vip";var _alSourceStop=e=>{if(AL.currentCtx){var t=AL.currentCtx.sources[e];if(!t)return void(AL.currentCtx.err=40961);AL.setSourceState(t,4116)}};function _alSourceStopv(e,t){if(t>>>=0,AL.currentCtx){t||(AL.currentCtx.err=40963);for(var r=0;r>>2>>>0]])return void(AL.currentCtx.err=40961);for(r=0;r>>2>>>0];AL.setSourceState(AL.currentCtx.sources[i],4116)}}}function _alSourceUnqueueBuffers(e,t,r){if(r>>>=0,AL.currentCtx){var i=AL.currentCtx.sources[e];if(!i)return void(AL.currentCtx.err=40961);if(t>(1===i.bufQueue.length&&0===i.bufQueue[0].id?0:i.bufsProcessed))return void(AL.currentCtx.err=40963);if(0!==t){for(var n=0;n>>2>>>0]=a.id,i.bufsProcessed--}0===i.bufQueue.length&&i.bufQueue.push(AL.buffers[0]),AL.initSourcePanner(i),AL.scheduleSourceAudio(i)}}}_alSourceStop.sig="vi",_alSourceStopv.sig="vip",_alSourceUnqueueBuffers.sig="viip";var _alSourcef=(e,t,r)=>{switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:AL.setSourceParam("alSourcef",e,t,r);break;default:AL.setSourceParam("alSourcef",e,t,null)}};function _alSourcefv(e,t,r){if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 4097:case 4098:case 4099:case 4106:case 4109:case 4110:case 4128:case 4129:case 4130:case 4131:case 4132:case 4133:case 4134:case 8203:var i=HEAPF32[r>>>2>>>0];AL.setSourceParam("alSourcefv",e,t,i);break;case 4100:case 4101:case 4102:AL.paramArray[0]=HEAPF32[r>>>2>>>0],AL.paramArray[1]=HEAPF32[r+4>>>2>>>0],AL.paramArray[2]=HEAPF32[r+8>>>2>>>0],AL.setSourceParam("alSourcefv",e,t,AL.paramArray);break;default:AL.setSourceParam("alSourcefv",e,t,null)}}}function _alSourceiv(e,t,r){if(r>>>=0,AL.currentCtx){if(!r)return void(AL.currentCtx.err=40963);switch(t){case 514:case 4097:case 4098:case 4103:case 4105:case 4128:case 4129:case 4131:case 4132:case 4133:case 4134:case 4628:case 8201:case 8202:case 53248:var i=HEAP32[r>>>2>>>0];AL.setSourceParam("alSourceiv",e,t,i);break;case 4100:case 4101:case 4102:AL.paramArray[0]=HEAP32[r>>>2>>>0],AL.paramArray[1]=HEAP32[r+4>>>2>>>0],AL.paramArray[2]=HEAP32[r+8>>>2>>>0],AL.setSourceParam("alSourceiv",e,t,AL.paramArray);break;default:AL.setSourceParam("alSourceiv",e,t,null)}}}_alSourcef.sig="viif",_alSourcefv.sig="viip",_alSourceiv.sig="viip";var _alSpeedOfSound=e=>{AL.setGlobalParam("alSpeedOfSound",49155,e)};_alSpeedOfSound.sig="vf";var _alcCaptureCloseDevice=function(e){var t,r,i,n;e>>>=0;var a=AL.requireValidCaptureDevice(e,"alcCaptureCloseDevice");return!!a&&(delete AL.captures[e],AL.freeIds.push(e),null==(t=a.mediaStreamSourceNode)||t.disconnect(),null==(r=a.mergerNode)||r.disconnect(),null==(i=a.splitterNode)||i.disconnect(),null==(n=a.scriptProcessorNode)||n.disconnect(),a.mediaStream&&a.mediaStream.getTracks().forEach((e=>e.stop())),delete a.buffers,a.capturedFrameCount=0,a.isCapturing=!1,!0)};_alcCaptureCloseDevice.sig="ip";var listenOnce=(e,t,r)=>{e.addEventListener(t,r,{once:!0})},autoResumeAudioContext=(e,t)=>{t||(t=[document,document.getElementById("canvas")]),["keydown","mousedown","touchstart"].forEach((r=>{t.forEach((t=>{t&&listenOnce(t,r,(()=>{"suspended"===e.state&&e.resume()}))}))}))};function _alcCaptureOpenDevice(e,t,r,i){var n;e>>>=0;var a=AL.CAPTURE_DEVICE_NAME;if(0!==e&&(a=UTF8ToString(e))!==AL.CAPTURE_DEVICE_NAME)return AL.alcErr=40965,0;if(i<0)return AL.alcErr=40964,0;if(navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia,!(navigator.getUserMedia||navigator.mediaDevices&&navigator.mediaDevices.getUserMedia))return AL.alcErr=40965,0;var s,o,l,c=window.AudioContext||window.webkitAudioContext;if(!AL.sharedCaptureAudioCtx)try{AL.sharedCaptureAudioCtx=new c}catch(e){return AL.alcErr=40965,0}switch(autoResumeAudioContext(AL.sharedCaptureAudioCtx),r){case 65552:case 4353:case 4352:s=1;break;case 65553:case 4355:case 4354:s=2;break;default:return AL.alcErr=40964,0}switch(r){case 65552:case 65553:o="f32",l=function(e){return new Float32Array(e)};break;case 4353:case 4355:o="i16",l=function(e){return new Int16Array(e)};break;case 4352:case 4354:o="u8",l=function(e){return new Uint8Array(e)}}var _=[];try{for(var u=0;u{d.mediaStreamError=e},f=e=>{d.mediaStreamSourceNode=d.audioCtx.createMediaStreamSource(e),d.mediaStream=e;var t=1;switch(d.mediaStreamSourceNode.channelCountMode){case"max":t=s;break;case"clamped-max":t=Math.min(s,d.mediaStreamSourceNode.channelCount);break;case"explicit":t=d.mediaStreamSourceNode.channelCount}d.inputChannelCount=t,d.scriptProcessorNode=d.audioCtx.createScriptProcessor(512,t,s),t>s?(d.mergerNode=d.audioCtx.createChannelMerger(t),d.mediaStreamSourceNode.connect(d.mergerNode),d.mergerNode.connect(d.scriptProcessorNode)):t{if(d.isCapturing){var t=d,i=e.inputBuffer;switch(r){case 65552:for(var n=i.getChannelData(0),a=0;a>>=0,t>>>=0;var i=AL.requireValidCaptureDevice(e,"alcCaptureSamples");if(i){var n=i.requestedSampleRate,a=i.audioCtx.sampleRate/n;if(r<0||r>i.capturedFrameCount/a)AL.alcErr=40964;else{var s;switch(i.requestedSampleType){case"f32":s=function(e,r){HEAPF32[t+4*e>>>2>>>0]=r};break;case"i16":s=function(e,r){HEAP16[t+2*e>>>1>>>0]=r};break;case"u8":s=function(e,r){HEAP8[t+e>>>0]=r};break;default:return}if(Math.floor(a)==a)for(var o=0,l=0;l>>=0;var t=AL.requireValidCaptureDevice(e,"alcCaptureStart");t&&(t.isCapturing||(t.isCapturing=!0,t.capturedFrameCount=0,t.capturePlayhead=0))}function _alcCaptureStop(e){e>>>=0;var t=AL.requireValidCaptureDevice(e,"alcCaptureStop");t&&(t.isCapturing=!1)}function _alcCloseDevice(e){return!((e>>>=0)in AL.deviceRefCounts)||AL.deviceRefCounts[e]>0?0:(delete AL.deviceRefCounts[e],AL.freeIds.push(e),1)}function _alcCreateContext(e,t){if(t>>>=0,!((e>>>=0)in AL.deviceRefCounts))return AL.alcErr=40961,0;var r=null,i=[],n=null;if(t>>=2)for(var a=0,s=0;a=HEAP32[t++>>>0],i.push(a),0!==a;)switch(s=HEAP32[t++>>>0],i.push(s),a){case 4103:r||(r={}),r.sampleRate=s;break;case 4112:case 4113:break;case 6546:switch(s){case 0:n=!1;break;case 1:n=!0;break;case 2:break;default:return AL.alcErr=40964,0}break;case 6550:if(0!==s)return AL.alcErr=40964,0;break;default:return AL.alcErr=40964,0}var o=window.AudioContext||window.webkitAudioContext,l=null;try{l=r?new o(r):new o}catch(e){return"NotSupportedError"===e.name?AL.alcErr=40964:AL.alcErr=40961,0}autoResumeAudioContext(l),typeof l.createGain>"u"&&(l.createGain=l.createGainNode);var c=l.createGain();c.connect(l.destination);var _={deviceId:e,id:AL.newId(),attrs:i,audioCtx:l,listener:{position:[0,0,0],velocity:[0,0,0],direction:[0,0,0],up:[0,0,0]},sources:[],interval:setInterval((()=>AL.scheduleContextAudio(_)),AL.QUEUE_INTERVAL),gain:c,distanceModel:53250,speedOfSound:343.3,dopplerFactor:1,sourceDistanceModel:!1,hrtf:n||!1,_err:0,get err(){return this._err},set err(e){(0===this._err||0===e)&&(this._err=e)}};if(AL.deviceRefCounts[e]++,AL.contexts[_.id]=_,null!==n)for(var u in AL.contexts){var d=AL.contexts[u];d.deviceId===e&&(d.hrtf=n,AL.updateContextGlobal(d))}return _.id}function _alcDestroyContext(e){e>>>=0;var t=AL.contexts[e];AL.currentCtx!==t?(AL.contexts[e].interval&&clearInterval(AL.contexts[e].interval),AL.deviceRefCounts[t.deviceId]--,delete AL.contexts[e],AL.freeIds.push(e)):AL.alcErr=40962}function _alcGetContextsDevice(e){return(e>>>=0)in AL.contexts?AL.contexts[e].deviceId:0}function _alcGetCurrentContext(){return null!==AL.currentCtx?AL.currentCtx.id:0}function _alcGetEnumValue(e,t){if(t>>>=0,0!=(e>>>=0)&&!(e in AL.deviceRefCounts))return 0;if(!t)return AL.alcErr=40964,0;switch(UTF8ToString(t)){case"ALC_NO_ERROR":case"ALC_HRTF_DISABLED_SOFT":return 0;case"ALC_INVALID_DEVICE":return 40961;case"ALC_INVALID_CONTEXT":return 40962;case"ALC_INVALID_ENUM":return 40963;case"ALC_INVALID_VALUE":return 40964;case"ALC_OUT_OF_MEMORY":return 40965;case"ALC_MAJOR_VERSION":return 4096;case"ALC_MINOR_VERSION":return 4097;case"ALC_ATTRIBUTES_SIZE":return 4098;case"ALC_ALL_ATTRIBUTES":return 4099;case"ALC_DEFAULT_DEVICE_SPECIFIER":return 4100;case"ALC_DEVICE_SPECIFIER":return 4101;case"ALC_EXTENSIONS":return 4102;case"ALC_FREQUENCY":return 4103;case"ALC_REFRESH":return 4104;case"ALC_SYNC":return 4105;case"ALC_MONO_SOURCES":return 4112;case"ALC_STEREO_SOURCES":return 4113;case"ALC_CAPTURE_DEVICE_SPECIFIER":return 784;case"ALC_CAPTURE_DEFAULT_DEVICE_SPECIFIER":return 785;case"ALC_CAPTURE_SAMPLES":return 786;case"ALC_HRTF_SOFT":return 6546;case"ALC_HRTF_ID_SOFT":return 6550;case"ALC_DONT_CARE_SOFT":case"ALC_HRTF_DENIED_SOFT":return 2;case"ALC_HRTF_STATUS_SOFT":return 6547;case"ALC_NUM_HRTF_SPECIFIERS_SOFT":return 6548;case"ALC_HRTF_SPECIFIER_SOFT":return 6549;case"ALC_HRTF_ENABLED_SOFT":return 1;case"ALC_HRTF_REQUIRED_SOFT":return 3;case"ALC_HRTF_HEADPHONES_DETECTED_SOFT":return 4;case"ALC_HRTF_UNSUPPORTED_FORMAT_SOFT":return 5;default:return AL.alcErr=40964,0}}function _alcGetError(e){var t=AL.alcErr;return AL.alcErr=0,t}function _alcGetIntegerv(e,t,r,i){if(e>>>=0,i>>>=0,0!==r&&i)switch(t){case 4096:case 4097:HEAP32[i>>>2>>>0]=1;break;case 4098:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);HEAP32[i>>>2>>>0]=AL.currentCtx.attrs.length;break;case 4099:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);for(var n=0;n>>2>>>0]=AL.currentCtx.attrs[n];break;case 4103:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);HEAP32[i>>>2>>>0]=AL.currentCtx.audioCtx.sampleRate;break;case 4112:case 4113:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);HEAP32[i>>>2>>>0]=2147483647;break;case 6546:case 6547:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);var a=0;for(var s in AL.contexts){var o=AL.contexts[s];o.deviceId===e&&(a=o.hrtf?1:0)}HEAP32[i>>>2>>>0]=a;break;case 6548:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);HEAP32[i>>>2>>>0]=1;break;case 131075:if(!(e in AL.deviceRefCounts))return void(AL.alcErr=40961);if(!AL.currentCtx)return void(AL.alcErr=40962);HEAP32[i>>>2>>>0]=1;case 786:var l=AL.requireValidCaptureDevice(e,"alcGetIntegerv");if(!l)return;var c=l.capturedFrameCount,_=l.requestedSampleRate,u=l.audioCtx.sampleRate,d=Math.floor(c*(_/u));HEAP32[i>>>2>>>0]=d;break;default:return void(AL.alcErr=40963)}}function _alcGetString(e,t){if(e>>>=0,AL.alcStringCache[t])return AL.alcStringCache[t];var r;switch(t){case 0:r="No Error";break;case 40961:r="Invalid Device";break;case 40962:r="Invalid Context";break;case 40963:r="Invalid Enum";break;case 40964:r="Invalid Value";break;case 40965:r="Out of Memory";break;case 4100:if(!(typeof AudioContext<"u"||typeof webkitAudioContext<"u"))return 0;r=AL.DEVICE_NAME;break;case 4101:r=typeof AudioContext<"u"||typeof webkitAudioContext<"u"?AL.DEVICE_NAME+"\0":"\0";break;case 785:r=AL.CAPTURE_DEVICE_NAME;break;case 784:if(0===e)r=AL.CAPTURE_DEVICE_NAME+"\0";else{var i=AL.requireValidCaptureDevice(e,"alcGetString");if(!i)return 0;r=i.deviceName}break;case 4102:if(!e)return AL.alcErr=40961,0;r=Object.keys(AL.ALC_EXTENSIONS).join(" ");break;default:return AL.alcErr=40963,0}return r=stringToNewUTF8(r),AL.alcStringCache[t]=r,r}function _alcIsExtensionPresent(e,t){var r=UTF8ToString(t>>>=0);return AL.ALC_EXTENSIONS[r]?1:0}function _alcMakeContextCurrent(e){return e>>>=0,AL.currentCtx=0===e?null:AL.contexts[e],1}function _alcOpenDevice(e){if((e>>>=0)&&UTF8ToString(e)!==AL.DEVICE_NAME)return 0;if(typeof AudioContext<"u"||typeof webkitAudioContext<"u"){var t=AL.newId();return AL.deviceRefCounts[t]=0,t}return 0}function _alcProcessContext(e){}function _alcSuspendContext(e){}function _duckdb_web_fs_directory_create(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.createDirectory(Module,e,t)}function _duckdb_web_fs_directory_exists(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkDirectory(Module,e,t)}function _duckdb_web_fs_directory_list_files(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.listDirectoryEntries(Module,e,t)}function _duckdb_web_fs_directory_remove(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.removeDirectory(Module,e,t)}function _duckdb_web_fs_file_close(e){return globalThis.DUCKDB_RUNTIME.closeFile(Module,e)}function _duckdb_web_fs_file_exists(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.checkFile(Module,e,t)}function _duckdb_web_fs_file_get_last_modified_time(e){return globalThis.DUCKDB_RUNTIME.getLastFileModificationTime(Module,e)}function _duckdb_web_fs_file_move(e,t,r,i){return e>>>=0,r>>>=0,globalThis.DUCKDB_RUNTIME.moveFile(Module,e,t,r,i)}function _duckdb_web_fs_file_open(e,t){return globalThis.DUCKDB_RUNTIME.openFile(Module,e,t)}function _duckdb_web_fs_file_read(e,t,r,i){return t>>>=0,globalThis.DUCKDB_RUNTIME.readFile(Module,e,t,r,i)}function _duckdb_web_fs_file_truncate(e,t){return globalThis.DUCKDB_RUNTIME.truncateFile(Module,e,t)}function _duckdb_web_fs_file_write(e,t,r,i){return t>>>=0,globalThis.DUCKDB_RUNTIME.writeFile(Module,e,t,r,i)}function _duckdb_web_fs_get_default_data_protocol(e){return globalThis.DUCKDB_RUNTIME.getDefaultDataProtocol(e)}function _duckdb_web_fs_glob(e,t){return e>>>=0,globalThis.DUCKDB_RUNTIME.glob(Module,e,t)}function _duckdb_web_test_platform_feature(e){return globalThis.DUCKDB_RUNTIME.testPlatformFeature(Module,e)}function _duckdb_web_udf_scalar_call(e,t,r,i,n,a){return e>>>=0,r>>>=0,n>>>=0,globalThis.DUCKDB_RUNTIME.callScalarUDF(Module,e,t,r,i,n,a)}_alcCaptureOpenDevice.sig="ppiii",_alcCaptureSamples.sig="vppi",_alcCaptureStart.sig="vp",_alcCaptureStop.sig="vp",_alcCloseDevice.sig="ip",_alcCreateContext.sig="ppp",_alcDestroyContext.sig="vp",_alcGetContextsDevice.sig="pp",_alcGetCurrentContext.sig="p",_alcGetEnumValue.sig="ipp",_alcGetError.sig="ip",_alcGetIntegerv.sig="vpiip",_alcGetString.sig="ppi",_alcIsExtensionPresent.sig="ipp",_alcMakeContextCurrent.sig="ip",_alcOpenDevice.sig="pp",_alcProcessContext.sig="vp",_alcSuspendContext.sig="vp",_duckdb_web_fs_directory_create.sig="vpi",_duckdb_web_fs_directory_exists.sig="ipi",_duckdb_web_fs_directory_list_files.sig="ipi",_duckdb_web_fs_directory_remove.sig="vpi",_duckdb_web_fs_file_close.sig="vi",_duckdb_web_fs_file_exists.sig="ipi",_duckdb_web_fs_file_get_last_modified_time.sig="ii",_duckdb_web_fs_file_move.sig="vpipi",_duckdb_web_fs_file_open.sig="pii",_duckdb_web_fs_file_read.sig="iipid",_duckdb_web_fs_file_truncate.sig="vid",_duckdb_web_fs_file_write.sig="iipid",_duckdb_web_fs_get_default_data_protocol.sig="i",_duckdb_web_fs_glob.sig="vpi",_duckdb_web_test_platform_feature.sig="ii",_duckdb_web_udf_scalar_call.sig="vpipipi";var _emscripten_alcDevicePauseSOFT=e=>{if(e in AL.deviceRefCounts){if(!AL.paused)for(var t in AL.paused=!0,AL.contexts){var r=AL.contexts[t];r.deviceId===e&&(r.audioCtx.suspend(),clearInterval(r.interval),r.interval=null)}}else AL.alcErr=40961};_emscripten_alcDevicePauseSOFT.sig="vi";var _emscripten_alcDeviceResumeSOFT=e=>{if(e in AL.deviceRefCounts){if(AL.paused)for(var t in AL.paused=!1,AL.contexts){var r=AL.contexts[t];r.deviceId===e&&(r.interval=setInterval((()=>AL.scheduleContextAudio(r)),AL.QUEUE_INTERVAL),r.audioCtx.resume())}}else AL.alcErr=40961};_emscripten_alcDeviceResumeSOFT.sig="vi";var _emscripten_alcGetStringiSOFT=(e,t,r)=>{return e in AL.deviceRefCounts?AL.alcStringCache[t]?AL.alcStringCache[t]:6549!==t?0!==r?(AL.alcErr=40963,0):_alcGetString(e,t):0!==r?(AL.alcErr=40964,0):(i=stringToNewUTF8(i="Web Audio HRTF"),AL.alcStringCache[t]=i,i):(AL.alcErr=40961,0);var i};_emscripten_alcGetStringiSOFT.sig="iiii";var _emscripten_alcResetDeviceSOFT=(e,t)=>{if(!(e in AL.deviceRefCounts))return AL.alcErr=40961,0;var r=null;if(t>>=2)for(var i=0,n=0;0!==(i=HEAP32[t++>>>0]);)6546===(n=HEAP32[t++>>>0],i)&&(1===n?r=!0:0===n&&(r=!1));if(null!==r)for(var a in AL.contexts){var s=AL.contexts[a];s.deviceId===e&&(s.hrtf=r,AL.updateContextGlobal(s))}return 1};_emscripten_alcResetDeviceSOFT.sig="iii";var readEmAsmArgsArray=[],readEmAsmArgs=(e,t)=>{readEmAsmArgsArray.length=0;for(var r;r=HEAPU8[e++>>>0];){var i=105!=r;t+=(i&=112!=r)&&t%8?4:0,readEmAsmArgsArray.push(112==r?HEAPU32[t>>>2>>>0]:105==r?HEAP32[t>>>2>>>0]:HEAPF64[t>>>3>>>0]),t+=i?8:4}return readEmAsmArgsArray},runEmAsmFunction=(e,t,r)=>{var i=readEmAsmArgs(t,r);return ASM_CONSTS[e](...i)};function _emscripten_asm_const_int(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}function _emscripten_asm_const_ptr(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}function _emscripten_console_error(e){e>>>=0,console.error(UTF8ToString(e))}function _emscripten_console_log(e){e>>>=0,console.log(UTF8ToString(e))}function _emscripten_console_trace(e){e>>>=0,console.trace(UTF8ToString(e))}function _emscripten_console_warn(e){e>>>=0,console.warn(UTF8ToString(e))}_emscripten_asm_const_int.sig="ippp",_emscripten_asm_const_ptr.sig="pppp",_emscripten_console_error.sig="vp",_emscripten_console_log.sig="vp",_emscripten_console_trace.sig="vp",_emscripten_console_warn.sig="vp";var _emscripten_date_now=()=>Date.now();function _emscripten_err(e){return err(UTF8ToString(e>>>=0))}_emscripten_date_now.sig="d",_emscripten_err.sig="vp";var getHeapMax=()=>4294901760;function _emscripten_get_heap_max(){return getHeapMax()}_emscripten_get_heap_max.sig="p";var _emscripten_get_now_res=()=>ENVIRONMENT_IS_NODE?1:1e3;_emscripten_get_now_res.sig="d";var GLctx,webgl_enable_ANGLE_instanced_arrays=e=>{var t=e.getExtension("ANGLE_instanced_arrays");if(t)return e.vertexAttribDivisor=(e,r)=>t.vertexAttribDivisorANGLE(e,r),e.drawArraysInstanced=(e,r,i,n)=>t.drawArraysInstancedANGLE(e,r,i,n),e.drawElementsInstanced=(e,r,i,n,a)=>t.drawElementsInstancedANGLE(e,r,i,n,a),1},webgl_enable_OES_vertex_array_object=e=>{var t=e.getExtension("OES_vertex_array_object");if(t)return e.createVertexArray=()=>t.createVertexArrayOES(),e.deleteVertexArray=e=>t.deleteVertexArrayOES(e),e.bindVertexArray=e=>t.bindVertexArrayOES(e),e.isVertexArray=e=>t.isVertexArrayOES(e),1},webgl_enable_WEBGL_draw_buffers=e=>{var t=e.getExtension("WEBGL_draw_buffers");if(t)return e.drawBuffers=(e,r)=>t.drawBuffersWEBGL(e,r),1},webgl_enable_EXT_polygon_offset_clamp=e=>!!(e.extPolygonOffsetClamp=e.getExtension("EXT_polygon_offset_clamp")),webgl_enable_EXT_clip_control=e=>!!(e.extClipControl=e.getExtension("EXT_clip_control")),webgl_enable_WEBGL_polygon_mode=e=>!!(e.webglPolygonMode=e.getExtension("WEBGL_polygon_mode")),webgl_enable_WEBGL_multi_draw=e=>!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw")),getEmscriptenSupportedExtensions=e=>{var t=["ANGLE_instanced_arrays","EXT_blend_minmax","EXT_disjoint_timer_query","EXT_frag_depth","EXT_shader_texture_lod","EXT_sRGB","OES_element_index_uint","OES_fbo_render_mipmap","OES_standard_derivatives","OES_texture_float","OES_texture_half_float","OES_texture_half_float_linear","OES_vertex_array_object","WEBGL_color_buffer_float","WEBGL_depth_texture","WEBGL_draw_buffers","EXT_clip_control","EXT_color_buffer_half_float","EXT_depth_clamp","EXT_float_blend","EXT_polygon_offset_clamp","EXT_texture_compression_bptc","EXT_texture_compression_rgtc","EXT_texture_filter_anisotropic","KHR_parallel_shader_compile","OES_texture_float_linear","WEBGL_blend_func_extended","WEBGL_compressed_texture_astc","WEBGL_compressed_texture_etc","WEBGL_compressed_texture_etc1","WEBGL_compressed_texture_s3tc","WEBGL_compressed_texture_s3tc_srgb","WEBGL_debug_renderer_info","WEBGL_debug_shaders","WEBGL_lose_context","WEBGL_multi_draw","WEBGL_polygon_mode"];return(e.getSupportedExtensions()||[]).filter((e=>t.includes(e)))},GL={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],stringCache:{},unpackAlignment:4,unpackRowLength:0,recordError:e=>{GL.lastError||(GL.lastError=e)},getNewId:e=>{for(var t=GL.counter++,r=e.length;r{for(var n=0;n>>2>>>0]=s}},getSource:(e,t,r,i)=>{for(var n="",a=0;a>>2>>>0]:void 0;n+=UTF8ToString(HEAPU32[r+4*a>>>2>>>0],s)}return n},createContext:(e,t)=>{if(!e.getContextSafariWebGL2Fixed){let t=function(t,r){var i=e.getContextSafariWebGL2Fixed(t,r);return"webgl"==t==i instanceof WebGLRenderingContext?i:null};e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=t}var r=e.getContext("webgl",t);return r?GL.registerContext(r,t):0},registerContext:(e,t)=>{var r=GL.getNewId(GL.contexts),i={handle:r,attributes:t,version:t.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=i),GL.contexts[r]=i,(typeof t.enableExtensionsByDefault>"u"||t.enableExtensionsByDefault)&&GL.initExtensions(i),r},makeContextCurrent:e=>{var t;return GL.currentContext=GL.contexts[e],Module.ctx=GLctx=null==(t=GL.currentContext)?void 0:t.GLctx,!(e&&!GLctx)},getContext:e=>GL.contexts[e],deleteContext:e=>{GL.currentContext===GL.contexts[e]&&(GL.currentContext=null),"object"==typeof JSEvents&&JSEvents.removeAllHandlersOnTarget(GL.contexts[e].GLctx.canvas),GL.contexts[e]&&GL.contexts[e].GLctx.canvas&&(GL.contexts[e].GLctx.canvas.GLctxObject=void 0),GL.contexts[e]=null},initExtensions:e=>{if(e||(e=GL.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var t=e.GLctx;webgl_enable_WEBGL_multi_draw(t),webgl_enable_EXT_polygon_offset_clamp(t),webgl_enable_EXT_clip_control(t),webgl_enable_WEBGL_polygon_mode(t),webgl_enable_ANGLE_instanced_arrays(t),webgl_enable_OES_vertex_array_object(t),webgl_enable_WEBGL_draw_buffers(t),t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query"),getEmscriptenSupportedExtensions(t).forEach((e=>{!e.includes("lose_context")&&!e.includes("debug")&&t.getExtension(e)}))}}},_glActiveTexture=e=>GLctx.activeTexture(e);_glActiveTexture.sig="vi";var _emscripten_glActiveTexture=_glActiveTexture;_emscripten_glActiveTexture.sig="vi";var _glAttachShader=(e,t)=>{GLctx.attachShader(GL.programs[e],GL.shaders[t])};_glAttachShader.sig="vii";var _emscripten_glAttachShader=_glAttachShader;_emscripten_glAttachShader.sig="vii";var _glBeginQueryEXT=(e,t)=>{GLctx.disjointTimerQueryExt.beginQueryEXT(e,GL.queries[t])};_glBeginQueryEXT.sig="vii";var _emscripten_glBeginQueryEXT=_glBeginQueryEXT;function _glBindAttribLocation(e,t,r){r>>>=0,GLctx.bindAttribLocation(GL.programs[e],t,UTF8ToString(r))}_glBindAttribLocation.sig="viip";var _emscripten_glBindAttribLocation=_glBindAttribLocation;_emscripten_glBindAttribLocation.sig="viip";var _glBindBuffer=(e,t)=>{GLctx.bindBuffer(e,GL.buffers[t])};_glBindBuffer.sig="vii";var _emscripten_glBindBuffer=_glBindBuffer;_emscripten_glBindBuffer.sig="vii";var _glBindFramebuffer=(e,t)=>{GLctx.bindFramebuffer(e,GL.framebuffers[t])};_glBindFramebuffer.sig="vii";var _emscripten_glBindFramebuffer=_glBindFramebuffer;_emscripten_glBindFramebuffer.sig="vii";var _glBindRenderbuffer=(e,t)=>{GLctx.bindRenderbuffer(e,GL.renderbuffers[t])};_glBindRenderbuffer.sig="vii";var _emscripten_glBindRenderbuffer=_glBindRenderbuffer;_emscripten_glBindRenderbuffer.sig="vii";var _glBindTexture=(e,t)=>{GLctx.bindTexture(e,GL.textures[t])};_glBindTexture.sig="vii";var _emscripten_glBindTexture=_glBindTexture;_emscripten_glBindTexture.sig="vii";var _glBindVertexArray=e=>{GLctx.bindVertexArray(GL.vaos[e])};_glBindVertexArray.sig="vi";var _glBindVertexArrayOES=_glBindVertexArray;_glBindVertexArrayOES.sig="vi";var _emscripten_glBindVertexArrayOES=_glBindVertexArrayOES;_emscripten_glBindVertexArrayOES.sig="vi";var _glBlendColor=(e,t,r,i)=>GLctx.blendColor(e,t,r,i);_glBlendColor.sig="vffff";var _emscripten_glBlendColor=_glBlendColor;_emscripten_glBlendColor.sig="vffff";var _glBlendEquation=e=>GLctx.blendEquation(e);_glBlendEquation.sig="vi";var _emscripten_glBlendEquation=_glBlendEquation;_emscripten_glBlendEquation.sig="vi";var _glBlendEquationSeparate=(e,t)=>GLctx.blendEquationSeparate(e,t);_glBlendEquationSeparate.sig="vii";var _emscripten_glBlendEquationSeparate=_glBlendEquationSeparate;_emscripten_glBlendEquationSeparate.sig="vii";var _glBlendFunc=(e,t)=>GLctx.blendFunc(e,t);_glBlendFunc.sig="vii";var _emscripten_glBlendFunc=_glBlendFunc;_emscripten_glBlendFunc.sig="vii";var _glBlendFuncSeparate=(e,t,r,i)=>GLctx.blendFuncSeparate(e,t,r,i);_glBlendFuncSeparate.sig="viiii";var _emscripten_glBlendFuncSeparate=_glBlendFuncSeparate;function _glBufferData(e,t,r,i){t>>>=0,r>>>=0,GLctx.bufferData(e,r?HEAPU8.subarray(r>>>0,r+t>>>0):t,i)}_emscripten_glBlendFuncSeparate.sig="viiii",_glBufferData.sig="vippi";var _emscripten_glBufferData=_glBufferData;function _glBufferSubData(e,t,r,i){t>>>=0,r>>>=0,i>>>=0,GLctx.bufferSubData(e,t,HEAPU8.subarray(i>>>0,i+r>>>0))}_emscripten_glBufferData.sig="vippi",_glBufferSubData.sig="vippp";var _emscripten_glBufferSubData=_glBufferSubData;_emscripten_glBufferSubData.sig="vippp";var _glCheckFramebufferStatus=e=>GLctx.checkFramebufferStatus(e);_glCheckFramebufferStatus.sig="ii";var _emscripten_glCheckFramebufferStatus=_glCheckFramebufferStatus;_emscripten_glCheckFramebufferStatus.sig="ii";var _glClear=e=>GLctx.clear(e);_glClear.sig="vi";var _emscripten_glClear=_glClear;_emscripten_glClear.sig="vi";var _glClearColor=(e,t,r,i)=>GLctx.clearColor(e,t,r,i);_glClearColor.sig="vffff";var _emscripten_glClearColor=_glClearColor;_emscripten_glClearColor.sig="vffff";var _glClearDepthf=e=>GLctx.clearDepth(e);_glClearDepthf.sig="vf";var _emscripten_glClearDepthf=_glClearDepthf;_emscripten_glClearDepthf.sig="vf";var _glClearStencil=e=>GLctx.clearStencil(e);_glClearStencil.sig="vi";var _emscripten_glClearStencil=_glClearStencil;_emscripten_glClearStencil.sig="vi";var _glClipControlEXT=(e,t)=>{GLctx.extClipControl.clipControlEXT(e,t)};_glClipControlEXT.sig="vii";var _emscripten_glClipControlEXT=_glClipControlEXT,_glColorMask=(e,t,r,i)=>{GLctx.colorMask(!!e,!!t,!!r,!!i)};_glColorMask.sig="viiii";var _emscripten_glColorMask=_glColorMask;_emscripten_glColorMask.sig="viiii";var _glCompileShader=e=>{GLctx.compileShader(GL.shaders[e])};_glCompileShader.sig="vi";var _emscripten_glCompileShader=_glCompileShader;function _glCompressedTexImage2D(e,t,r,i,n,a,s,o){o>>>=0,GLctx.compressedTexImage2D(e,t,r,i,n,a,HEAPU8.subarray(o>>>0,o+s>>>0))}_emscripten_glCompileShader.sig="vi",_glCompressedTexImage2D.sig="viiiiiiip";var _emscripten_glCompressedTexImage2D=_glCompressedTexImage2D;function _glCompressedTexSubImage2D(e,t,r,i,n,a,s,o,l){l>>>=0,GLctx.compressedTexSubImage2D(e,t,r,i,n,a,s,HEAPU8.subarray(l>>>0,l+o>>>0))}_emscripten_glCompressedTexImage2D.sig="viiiiiiip",_glCompressedTexSubImage2D.sig="viiiiiiiip";var _emscripten_glCompressedTexSubImage2D=_glCompressedTexSubImage2D;_emscripten_glCompressedTexSubImage2D.sig="viiiiiiiip";var _glCopyTexImage2D=(e,t,r,i,n,a,s,o)=>GLctx.copyTexImage2D(e,t,r,i,n,a,s,o);_glCopyTexImage2D.sig="viiiiiiii";var _emscripten_glCopyTexImage2D=_glCopyTexImage2D;_emscripten_glCopyTexImage2D.sig="viiiiiiii";var _glCopyTexSubImage2D=(e,t,r,i,n,a,s,o)=>GLctx.copyTexSubImage2D(e,t,r,i,n,a,s,o);_glCopyTexSubImage2D.sig="viiiiiiii";var _emscripten_glCopyTexSubImage2D=_glCopyTexSubImage2D;_emscripten_glCopyTexSubImage2D.sig="viiiiiiii";var _glCreateProgram=()=>{var e=GL.getNewId(GL.programs),t=GLctx.createProgram();return t.name=e,t.maxUniformLength=t.maxAttributeLength=t.maxUniformBlockNameLength=0,t.uniformIdCounter=1,GL.programs[e]=t,e};_glCreateProgram.sig="i";var _emscripten_glCreateProgram=_glCreateProgram;_emscripten_glCreateProgram.sig="i";var _glCreateShader=e=>{var t=GL.getNewId(GL.shaders);return GL.shaders[t]=GLctx.createShader(e),t};_glCreateShader.sig="ii";var _emscripten_glCreateShader=_glCreateShader;_emscripten_glCreateShader.sig="ii";var _glCullFace=e=>GLctx.cullFace(e);_glCullFace.sig="vi";var _emscripten_glCullFace=_glCullFace;function _glDeleteBuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],n=GL.buffers[i];n&&(GLctx.deleteBuffer(n),n.name=0,GL.buffers[i]=null)}}_emscripten_glCullFace.sig="vi",_glDeleteBuffers.sig="vip";var _emscripten_glDeleteBuffers=_glDeleteBuffers;function _glDeleteFramebuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],n=GL.framebuffers[i];n&&(GLctx.deleteFramebuffer(n),n.name=0,GL.framebuffers[i]=null)}}_emscripten_glDeleteBuffers.sig="vip",_glDeleteFramebuffers.sig="vip";var _emscripten_glDeleteFramebuffers=_glDeleteFramebuffers;_emscripten_glDeleteFramebuffers.sig="vip";var _glDeleteProgram=e=>{if(e){var t=GL.programs[e];if(!t)return void GL.recordError(1281);GLctx.deleteProgram(t),t.name=0,GL.programs[e]=null}};_glDeleteProgram.sig="vi";var _emscripten_glDeleteProgram=_glDeleteProgram;function _glDeleteQueriesEXT(e,t){t>>>=0;for(var r=0;r>>2>>>0],n=GL.queries[i];n&&(GLctx.disjointTimerQueryExt.deleteQueryEXT(n),GL.queries[i]=null)}}_emscripten_glDeleteProgram.sig="vi",_glDeleteQueriesEXT.sig="vip";var _emscripten_glDeleteQueriesEXT=_glDeleteQueriesEXT;function _glDeleteRenderbuffers(e,t){t>>>=0;for(var r=0;r>>2>>>0],n=GL.renderbuffers[i];n&&(GLctx.deleteRenderbuffer(n),n.name=0,GL.renderbuffers[i]=null)}}_glDeleteRenderbuffers.sig="vip";var _emscripten_glDeleteRenderbuffers=_glDeleteRenderbuffers;_emscripten_glDeleteRenderbuffers.sig="vip";var _glDeleteShader=e=>{if(e){var t=GL.shaders[e];if(!t)return void GL.recordError(1281);GLctx.deleteShader(t),GL.shaders[e]=null}};_glDeleteShader.sig="vi";var _emscripten_glDeleteShader=_glDeleteShader;function _glDeleteTextures(e,t){t>>>=0;for(var r=0;r>>2>>>0],n=GL.textures[i];n&&(GLctx.deleteTexture(n),n.name=0,GL.textures[i]=null)}}_emscripten_glDeleteShader.sig="vi",_glDeleteTextures.sig="vip";var _emscripten_glDeleteTextures=_glDeleteTextures;function _glDeleteVertexArrays(e,t){t>>>=0;for(var r=0;r>>2>>>0];GLctx.deleteVertexArray(GL.vaos[i]),GL.vaos[i]=null}}_emscripten_glDeleteTextures.sig="vip",_glDeleteVertexArrays.sig="vip";var _glDeleteVertexArraysOES=_glDeleteVertexArrays;_glDeleteVertexArraysOES.sig="vip";var _emscripten_glDeleteVertexArraysOES=_glDeleteVertexArraysOES;_emscripten_glDeleteVertexArraysOES.sig="vip";var _glDepthFunc=e=>GLctx.depthFunc(e);_glDepthFunc.sig="vi";var _emscripten_glDepthFunc=_glDepthFunc;_emscripten_glDepthFunc.sig="vi";var _glDepthMask=e=>{GLctx.depthMask(!!e)};_glDepthMask.sig="vi";var _emscripten_glDepthMask=_glDepthMask;_emscripten_glDepthMask.sig="vi";var _glDepthRangef=(e,t)=>GLctx.depthRange(e,t);_glDepthRangef.sig="vff";var _emscripten_glDepthRangef=_glDepthRangef;_emscripten_glDepthRangef.sig="vff";var _glDetachShader=(e,t)=>{GLctx.detachShader(GL.programs[e],GL.shaders[t])};_glDetachShader.sig="vii";var _emscripten_glDetachShader=_glDetachShader;_emscripten_glDetachShader.sig="vii";var _glDisable=e=>GLctx.disable(e);_glDisable.sig="vi";var _emscripten_glDisable=_glDisable;_emscripten_glDisable.sig="vi";var _glDisableVertexAttribArray=e=>{GLctx.disableVertexAttribArray(e)};_glDisableVertexAttribArray.sig="vi";var _emscripten_glDisableVertexAttribArray=_glDisableVertexAttribArray;_emscripten_glDisableVertexAttribArray.sig="vi";var _glDrawArrays=(e,t,r)=>{GLctx.drawArrays(e,t,r)};_glDrawArrays.sig="viii";var _emscripten_glDrawArrays=_glDrawArrays;_emscripten_glDrawArrays.sig="viii";var _glDrawArraysInstanced=(e,t,r,i)=>{GLctx.drawArraysInstanced(e,t,r,i)};_glDrawArraysInstanced.sig="viiii";var _glDrawArraysInstancedANGLE=_glDrawArraysInstanced,_emscripten_glDrawArraysInstancedANGLE=_glDrawArraysInstancedANGLE,tempFixedLengthArray=[];function _glDrawBuffers(e,t){t>>>=0;for(var r=tempFixedLengthArray[e],i=0;i>>2>>>0];GLctx.drawBuffers(r)}_glDrawBuffers.sig="vip";var _glDrawBuffersWEBGL=_glDrawBuffers,_emscripten_glDrawBuffersWEBGL=_glDrawBuffersWEBGL;function _glDrawElements(e,t,r,i){i>>>=0,GLctx.drawElements(e,t,r,i)}_glDrawElements.sig="viiip";var _emscripten_glDrawElements=_glDrawElements;function _glDrawElementsInstanced(e,t,r,i,n){i>>>=0,GLctx.drawElementsInstanced(e,t,r,i,n)}_emscripten_glDrawElements.sig="viiip",_glDrawElementsInstanced.sig="viiipi";var _glDrawElementsInstancedANGLE=_glDrawElementsInstanced,_emscripten_glDrawElementsInstancedANGLE=_glDrawElementsInstancedANGLE,_glEnable=e=>GLctx.enable(e);_glEnable.sig="vi";var _emscripten_glEnable=_glEnable;_emscripten_glEnable.sig="vi";var _glEnableVertexAttribArray=e=>{GLctx.enableVertexAttribArray(e)};_glEnableVertexAttribArray.sig="vi";var _emscripten_glEnableVertexAttribArray=_glEnableVertexAttribArray;_emscripten_glEnableVertexAttribArray.sig="vi";var _glEndQueryEXT=e=>{GLctx.disjointTimerQueryExt.endQueryEXT(e)};_glEndQueryEXT.sig="vi";var _emscripten_glEndQueryEXT=_glEndQueryEXT,_glFinish=()=>GLctx.finish();_glFinish.sig="v";var _emscripten_glFinish=_glFinish;_emscripten_glFinish.sig="v";var _glFlush=()=>GLctx.flush();_glFlush.sig="v";var _emscripten_glFlush=_glFlush;_emscripten_glFlush.sig="v";var _glFramebufferRenderbuffer=(e,t,r,i)=>{GLctx.framebufferRenderbuffer(e,t,r,GL.renderbuffers[i])};_glFramebufferRenderbuffer.sig="viiii";var _emscripten_glFramebufferRenderbuffer=_glFramebufferRenderbuffer;_emscripten_glFramebufferRenderbuffer.sig="viiii";var _glFramebufferTexture2D=(e,t,r,i,n)=>{GLctx.framebufferTexture2D(e,t,r,GL.textures[i],n)};_glFramebufferTexture2D.sig="viiiii";var _emscripten_glFramebufferTexture2D=_glFramebufferTexture2D;_emscripten_glFramebufferTexture2D.sig="viiiii";var _glFrontFace=e=>GLctx.frontFace(e);_glFrontFace.sig="vi";var _emscripten_glFrontFace=_glFrontFace;function _glGenBuffers(e,t){t>>>=0,GL.genObject(e,t,"createBuffer",GL.buffers)}_emscripten_glFrontFace.sig="vi",_glGenBuffers.sig="vip";var _emscripten_glGenBuffers=_glGenBuffers;function _glGenFramebuffers(e,t){t>>>=0,GL.genObject(e,t,"createFramebuffer",GL.framebuffers)}_emscripten_glGenBuffers.sig="vip",_glGenFramebuffers.sig="vip";var _emscripten_glGenFramebuffers=_glGenFramebuffers;function _glGenQueriesEXT(e,t){t>>>=0;for(var r=0;r>>2>>>0]=0;return}var n=GL.getNewId(GL.queries);i.name=n,GL.queries[n]=i,HEAP32[t+4*r>>>2>>>0]=n}}_emscripten_glGenFramebuffers.sig="vip",_glGenQueriesEXT.sig="vip";var _emscripten_glGenQueriesEXT=_glGenQueriesEXT;function _glGenRenderbuffers(e,t){t>>>=0,GL.genObject(e,t,"createRenderbuffer",GL.renderbuffers)}_glGenRenderbuffers.sig="vip";var _emscripten_glGenRenderbuffers=_glGenRenderbuffers;function _glGenTextures(e,t){t>>>=0,GL.genObject(e,t,"createTexture",GL.textures)}_emscripten_glGenRenderbuffers.sig="vip",_glGenTextures.sig="vip";var _emscripten_glGenTextures=_glGenTextures;function _glGenVertexArrays(e,t){t>>>=0,GL.genObject(e,t,"createVertexArray",GL.vaos)}_emscripten_glGenTextures.sig="vip",_glGenVertexArrays.sig="vip";var _glGenVertexArraysOES=_glGenVertexArrays;_glGenVertexArraysOES.sig="vip";var _emscripten_glGenVertexArraysOES=_glGenVertexArraysOES;_emscripten_glGenVertexArraysOES.sig="vip";var _glGenerateMipmap=e=>GLctx.generateMipmap(e);_glGenerateMipmap.sig="vi";var _emscripten_glGenerateMipmap=_glGenerateMipmap;_emscripten_glGenerateMipmap.sig="vi";var __glGetActiveAttribOrUniform=(e,t,r,i,n,a,s,o)=>{t=GL.programs[t];var l=GLctx[e](t,r);if(l){var c=o&&stringToUTF8(l.name,o,i);n&&(HEAP32[n>>>2>>>0]=c),a&&(HEAP32[a>>>2>>>0]=l.size),s&&(HEAP32[s>>>2>>>0]=l.type)}};function _glGetActiveAttrib(e,t,r,i,n,a,s){__glGetActiveAttribOrUniform("getActiveAttrib",e,t,r,i>>>=0,n>>>=0,a>>>=0,s>>>=0)}_glGetActiveAttrib.sig="viiipppp";var _emscripten_glGetActiveAttrib=_glGetActiveAttrib;function _glGetActiveUniform(e,t,r,i,n,a,s){__glGetActiveAttribOrUniform("getActiveUniform",e,t,r,i>>>=0,n>>>=0,a>>>=0,s>>>=0)}_emscripten_glGetActiveAttrib.sig="viiipppp",_glGetActiveUniform.sig="viiipppp";var _emscripten_glGetActiveUniform=_glGetActiveUniform;function _glGetAttachedShaders(e,t,r,i){r>>>=0,i>>>=0;var n=GLctx.getAttachedShaders(GL.programs[e]),a=n.length;a>t&&(a=t),HEAP32[r>>>2>>>0]=a;for(var s=0;s>>2>>>0]=o}}_emscripten_glGetActiveUniform.sig="viiipppp",_glGetAttachedShaders.sig="viipp";var _emscripten_glGetAttachedShaders=_glGetAttachedShaders;function _glGetAttribLocation(e,t){return t>>>=0,GLctx.getAttribLocation(GL.programs[e],UTF8ToString(t))}_emscripten_glGetAttachedShaders.sig="viipp",_glGetAttribLocation.sig="iip";var _emscripten_glGetAttribLocation=_glGetAttribLocation;_emscripten_glGetAttribLocation.sig="iip";var writeI53ToI64=(e,t)=>{HEAPU32[e>>>2>>>0]=t;var r=HEAPU32[e>>>2>>>0];HEAPU32[e+4>>>2>>>0]=(t-r)/4294967296},emscriptenWebGLGet=(e,t,r)=>{if(t){var i=void 0;switch(e){case 36346:i=1;break;case 36344:return void(0!=r&&1!=r&&GL.recordError(1280));case 36345:i=0;break;case 34466:var n=GLctx.getParameter(34467);i=n?n.length:0}if(void 0===i){var a=GLctx.getParameter(e);switch(typeof a){case"number":i=a;break;case"boolean":i=a?1:0;break;case"string":return void GL.recordError(1280);case"object":if(null===a)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 34068:i=0;break;default:return void GL.recordError(1280)}else{if(a instanceof Float32Array||a instanceof Uint32Array||a instanceof Int32Array||a instanceof Array){for(var s=0;s>>2>>>0]=a[s];break;case 2:HEAPF32[t+4*s>>>2>>>0]=a[s];break;case 4:HEAP8[t+s>>>0]=a[s]?1:0}return}try{i=0|a.name}catch(t){return GL.recordError(1280),void err("GL_INVALID_ENUM in glGet".concat(r,"v: Unknown object returned from WebGL getParameter(").concat(e,")! (error: ").concat(t,")"))}}break;default:return GL.recordError(1280),void err("GL_INVALID_ENUM in glGet".concat(r,"v: Native code calling glGet").concat(r,"v(").concat(e,") and it returns ").concat(a," of type ").concat(typeof a,"!"))}}switch(r){case 1:writeI53ToI64(t,i);break;case 0:HEAP32[t>>>2>>>0]=i;break;case 2:HEAPF32[t>>>2>>>0]=i;break;case 4:HEAP8[t>>>0]=i?1:0}}else GL.recordError(1281)};function _glGetBooleanv(e,t){return emscriptenWebGLGet(e,t>>>=0,4)}_glGetBooleanv.sig="vip";var _emscripten_glGetBooleanv=_glGetBooleanv;function _glGetBufferParameteriv(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.getBufferParameter(e,t):GL.recordError(1281)}_emscripten_glGetBooleanv.sig="vip",_glGetBufferParameteriv.sig="viip";var _emscripten_glGetBufferParameteriv=_glGetBufferParameteriv;_emscripten_glGetBufferParameteriv.sig="viip";var _glGetError=()=>{var e=GLctx.getError()||GL.lastError;return GL.lastError=0,e};_glGetError.sig="i";var _emscripten_glGetError=_glGetError;function _glGetFloatv(e,t){return emscriptenWebGLGet(e,t>>>=0,2)}_emscripten_glGetError.sig="i",_glGetFloatv.sig="vip";var _emscripten_glGetFloatv=_glGetFloatv;function _glGetFramebufferAttachmentParameteriv(e,t,r,i){i>>>=0;var n=GLctx.getFramebufferAttachmentParameter(e,t,r);(n instanceof WebGLRenderbuffer||n instanceof WebGLTexture)&&(n=0|n.name),HEAP32[i>>>2>>>0]=n}_emscripten_glGetFloatv.sig="vip",_glGetFramebufferAttachmentParameteriv.sig="viiip";var _emscripten_glGetFramebufferAttachmentParameteriv=_glGetFramebufferAttachmentParameteriv;function _glGetIntegerv(e,t){return emscriptenWebGLGet(e,t>>>=0,0)}_emscripten_glGetFramebufferAttachmentParameteriv.sig="viiip",_glGetIntegerv.sig="vip";var _emscripten_glGetIntegerv=_glGetIntegerv;function _glGetProgramInfoLog(e,t,r,i){r>>>=0,i>>>=0;var n=GLctx.getProgramInfoLog(GL.programs[e]);null===n&&(n="(unknown error)");var a=t>0&&i?stringToUTF8(n,i,t):0;r&&(HEAP32[r>>>2>>>0]=a)}_emscripten_glGetIntegerv.sig="vip",_glGetProgramInfoLog.sig="viipp";var _emscripten_glGetProgramInfoLog=_glGetProgramInfoLog;function _glGetProgramiv(e,t,r){if(r>>>=0)if(e>=GL.counter)GL.recordError(1281);else if(e=GL.programs[e],35716==t){var i=GLctx.getProgramInfoLog(e);null===i&&(i="(unknown error)"),HEAP32[r>>>2>>>0]=i.length+1}else if(35719==t){if(!e.maxUniformLength)for(var n=GLctx.getProgramParameter(e,35718),a=0;a>>2>>>0]=e.maxUniformLength}else if(35722==t){if(!e.maxAttributeLength){var s=GLctx.getProgramParameter(e,35721);for(a=0;a>>2>>>0]=e.maxAttributeLength}else if(35381==t){if(!e.maxUniformBlockNameLength){var o=GLctx.getProgramParameter(e,35382);for(a=0;a>>2>>>0]=e.maxUniformBlockNameLength}else HEAP32[r>>>2>>>0]=GLctx.getProgramParameter(e,t);else GL.recordError(1281)}_emscripten_glGetProgramInfoLog.sig="viipp",_glGetProgramiv.sig="viip";var _emscripten_glGetProgramiv=_glGetProgramiv;function _glGetQueryObjecti64vEXT(e,t,r){if(r>>>=0){var i,n=GL.queries[e];i=GLctx.disjointTimerQueryExt.getQueryObjectEXT(n,t),writeI53ToI64(r,"boolean"==typeof i?i?1:0:i)}else GL.recordError(1281)}_emscripten_glGetProgramiv.sig="viip",_glGetQueryObjecti64vEXT.sig="viip";var _emscripten_glGetQueryObjecti64vEXT=_glGetQueryObjecti64vEXT;function _glGetQueryObjectivEXT(e,t,r){if(r>>>=0){var i,n=GL.queries[e],a=GLctx.disjointTimerQueryExt.getQueryObjectEXT(n,t);i="boolean"==typeof a?a?1:0:a,HEAP32[r>>>2>>>0]=i}else GL.recordError(1281)}_glGetQueryObjectivEXT.sig="viip";var _emscripten_glGetQueryObjectivEXT=_glGetQueryObjectivEXT,_glGetQueryObjectui64vEXT=_glGetQueryObjecti64vEXT,_emscripten_glGetQueryObjectui64vEXT=_glGetQueryObjectui64vEXT,_glGetQueryObjectuivEXT=_glGetQueryObjectivEXT,_emscripten_glGetQueryObjectuivEXT=_glGetQueryObjectuivEXT;function _glGetQueryivEXT(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.disjointTimerQueryExt.getQueryEXT(e,t):GL.recordError(1281)}_glGetQueryivEXT.sig="viip";var _emscripten_glGetQueryivEXT=_glGetQueryivEXT;function _glGetRenderbufferParameteriv(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.getRenderbufferParameter(e,t):GL.recordError(1281)}_glGetRenderbufferParameteriv.sig="viip";var _emscripten_glGetRenderbufferParameteriv=_glGetRenderbufferParameteriv;function _glGetShaderInfoLog(e,t,r,i){r>>>=0,i>>>=0;var n=GLctx.getShaderInfoLog(GL.shaders[e]);null===n&&(n="(unknown error)");var a=t>0&&i?stringToUTF8(n,i,t):0;r&&(HEAP32[r>>>2>>>0]=a)}_emscripten_glGetRenderbufferParameteriv.sig="viip",_glGetShaderInfoLog.sig="viipp";var _emscripten_glGetShaderInfoLog=_glGetShaderInfoLog;function _glGetShaderPrecisionFormat(e,t,r,i){r>>>=0,i>>>=0;var n=GLctx.getShaderPrecisionFormat(e,t);HEAP32[r>>>2>>>0]=n.rangeMin,HEAP32[r+4>>>2>>>0]=n.rangeMax,HEAP32[i>>>2>>>0]=n.precision}_emscripten_glGetShaderInfoLog.sig="viipp",_glGetShaderPrecisionFormat.sig="viipp";var _emscripten_glGetShaderPrecisionFormat=_glGetShaderPrecisionFormat;function _glGetShaderSource(e,t,r,i){r>>>=0,i>>>=0;var n=GLctx.getShaderSource(GL.shaders[e]);if(n){var a=t>0&&i?stringToUTF8(n,i,t):0;r&&(HEAP32[r>>>2>>>0]=a)}}_emscripten_glGetShaderPrecisionFormat.sig="viipp",_glGetShaderSource.sig="viipp";var _emscripten_glGetShaderSource=_glGetShaderSource;function _glGetShaderiv(e,t,r){if(r>>>=0)if(35716==t){var i=GLctx.getShaderInfoLog(GL.shaders[e]);null===i&&(i="(unknown error)");var n=i?i.length+1:0;HEAP32[r>>>2>>>0]=n}else if(35720==t){var a=GLctx.getShaderSource(GL.shaders[e]),s=a?a.length+1:0;HEAP32[r>>>2>>>0]=s}else HEAP32[r>>>2>>>0]=GLctx.getShaderParameter(GL.shaders[e],t);else GL.recordError(1281)}_emscripten_glGetShaderSource.sig="viipp",_glGetShaderiv.sig="viip";var _emscripten_glGetShaderiv=_glGetShaderiv;_emscripten_glGetShaderiv.sig="viip";var webglGetExtensions=function(){var e=getEmscriptenSupportedExtensions(GLctx);return e.concat(e.map((e=>"GL_"+e)))};function _glGetString(e){var t=GL.stringCache[e];if(!t){switch(e){case 7939:t=stringToNewUTF8(webglGetExtensions().join(" "));break;case 7936:case 7937:case 37445:case 37446:var r=GLctx.getParameter(e);r||GL.recordError(1280),t=r?stringToNewUTF8(r):0;break;case 7938:var i=GLctx.getParameter(7938),n="OpenGL ES 2.0 (".concat(i,")");t=stringToNewUTF8(n);break;case 35724:var a=GLctx.getParameter(35724),s=a.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==s&&(3==s[1].length&&(s[1]=s[1]+"0"),a="OpenGL ES GLSL ES ".concat(s[1]," (").concat(a,")")),t=stringToNewUTF8(a);break;default:GL.recordError(1280)}GL.stringCache[e]=t}return t}_glGetString.sig="pi";var _emscripten_glGetString=_glGetString;function _glGetTexParameterfv(e,t,r){(r>>>=0)?HEAPF32[r>>>2>>>0]=GLctx.getTexParameter(e,t):GL.recordError(1281)}_emscripten_glGetString.sig="pi",_glGetTexParameterfv.sig="viip";var _emscripten_glGetTexParameterfv=_glGetTexParameterfv;function _glGetTexParameteriv(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.getTexParameter(e,t):GL.recordError(1281)}_emscripten_glGetTexParameterfv.sig="viip",_glGetTexParameteriv.sig="viip";var _emscripten_glGetTexParameteriv=_glGetTexParameteriv;_emscripten_glGetTexParameteriv.sig="viip";var webglGetLeftBracePos=e=>"]"==e.slice(-1)&&e.lastIndexOf("["),webglPrepareUniformLocationsBeforeFirstUse=e=>{var t,r,i=e.uniformLocsById,n=e.uniformSizeAndIdsByName;if(!i){e.uniformLocsById=i={},e.uniformArrayNamesById={};var a=GLctx.getProgramParameter(e,35718);for(t=0;t0?o.slice(0,c):o,u=e.uniformIdCounter;for(e.uniformIdCounter+=l,n[_]=[l,u],r=0;r>>=0),e=GL.programs[e]){webglPrepareUniformLocationsBeforeFirstUse(e);var r=e.uniformLocsById,i=0,n=t,a=webglGetLeftBracePos(t);a>0&&(i=jstoi_q(t.slice(a+1))>>>0,n=t.slice(0,a));var s=e.uniformSizeAndIdsByName[n];if(s&&i{var t=GLctx.currentProgram;if(t){var r=t.uniformLocsById[e];return"number"==typeof r&&(t.uniformLocsById[e]=r=GLctx.getUniformLocation(t,t.uniformArrayNamesById[e]+(r>0?"[".concat(r,"]"):""))),r}GL.recordError(1282)},emscriptenWebGLGetUniform=(e,t,r,i)=>{if(r){e=GL.programs[e],webglPrepareUniformLocationsBeforeFirstUse(e);var n=GLctx.getUniform(e,webglGetUniformLocation(t));if("number"==typeof n||"boolean"==typeof n)switch(i){case 0:HEAP32[r>>>2>>>0]=n;break;case 2:HEAPF32[r>>>2>>>0]=n}else for(var a=0;a>>2>>>0]=n[a];break;case 2:HEAPF32[r+4*a>>>2>>>0]=n[a]}}else GL.recordError(1281)};function _glGetUniformfv(e,t,r){emscriptenWebGLGetUniform(e,t,r>>>=0,2)}_glGetUniformfv.sig="viip";var _emscripten_glGetUniformfv=_glGetUniformfv;function _glGetUniformiv(e,t,r){emscriptenWebGLGetUniform(e,t,r>>>=0,0)}_emscripten_glGetUniformfv.sig="viip",_glGetUniformiv.sig="viip";var _emscripten_glGetUniformiv=_glGetUniformiv;function _glGetVertexAttribPointerv(e,t,r){(r>>>=0)?HEAP32[r>>>2>>>0]=GLctx.getVertexAttribOffset(e,t):GL.recordError(1281)}_emscripten_glGetUniformiv.sig="viip",_glGetVertexAttribPointerv.sig="viip";var _emscripten_glGetVertexAttribPointerv=_glGetVertexAttribPointerv;_emscripten_glGetVertexAttribPointerv.sig="viip";var emscriptenWebGLGetVertexAttrib=(e,t,r,i)=>{if(r){var n=GLctx.getVertexAttrib(e,t);if(34975==t)HEAP32[r>>>2>>>0]=n&&n.name;else if("number"==typeof n||"boolean"==typeof n)switch(i){case 0:HEAP32[r>>>2>>>0]=n;break;case 2:HEAPF32[r>>>2>>>0]=n;break;case 5:HEAP32[r>>>2>>>0]=Math.fround(n)}else for(var a=0;a>>2>>>0]=n[a];break;case 2:HEAPF32[r+4*a>>>2>>>0]=n[a];break;case 5:HEAP32[r+4*a>>>2>>>0]=Math.fround(n[a])}}else GL.recordError(1281)};function _glGetVertexAttribfv(e,t,r){emscriptenWebGLGetVertexAttrib(e,t,r>>>=0,2)}_glGetVertexAttribfv.sig="viip";var _emscripten_glGetVertexAttribfv=_glGetVertexAttribfv;function _glGetVertexAttribiv(e,t,r){emscriptenWebGLGetVertexAttrib(e,t,r>>>=0,5)}_emscripten_glGetVertexAttribfv.sig="viip",_glGetVertexAttribiv.sig="viip";var _emscripten_glGetVertexAttribiv=_glGetVertexAttribiv;_emscripten_glGetVertexAttribiv.sig="viip";var _glHint=(e,t)=>GLctx.hint(e,t);_glHint.sig="vii";var _emscripten_glHint=_glHint;_emscripten_glHint.sig="vii";var _glIsBuffer=e=>{var t=GL.buffers[e];return t?GLctx.isBuffer(t):0};_glIsBuffer.sig="ii";var _emscripten_glIsBuffer=_glIsBuffer;_emscripten_glIsBuffer.sig="ii";var _glIsEnabled=e=>GLctx.isEnabled(e);_glIsEnabled.sig="ii";var _emscripten_glIsEnabled=_glIsEnabled;_emscripten_glIsEnabled.sig="ii";var _glIsFramebuffer=e=>{var t=GL.framebuffers[e];return t?GLctx.isFramebuffer(t):0};_glIsFramebuffer.sig="ii";var _emscripten_glIsFramebuffer=_glIsFramebuffer;_emscripten_glIsFramebuffer.sig="ii";var _glIsProgram=e=>(e=GL.programs[e])?GLctx.isProgram(e):0;_glIsProgram.sig="ii";var _emscripten_glIsProgram=_glIsProgram;_emscripten_glIsProgram.sig="ii";var _glIsQueryEXT=e=>{var t=GL.queries[e];return t?GLctx.disjointTimerQueryExt.isQueryEXT(t):0};_glIsQueryEXT.sig="ii";var _emscripten_glIsQueryEXT=_glIsQueryEXT,_glIsRenderbuffer=e=>{var t=GL.renderbuffers[e];return t?GLctx.isRenderbuffer(t):0};_glIsRenderbuffer.sig="ii";var _emscripten_glIsRenderbuffer=_glIsRenderbuffer;_emscripten_glIsRenderbuffer.sig="ii";var _glIsShader=e=>{var t=GL.shaders[e];return t?GLctx.isShader(t):0};_glIsShader.sig="ii";var _emscripten_glIsShader=_glIsShader;_emscripten_glIsShader.sig="ii";var _glIsTexture=e=>{var t=GL.textures[e];return t?GLctx.isTexture(t):0};_glIsTexture.sig="ii";var _emscripten_glIsTexture=_glIsTexture;_emscripten_glIsTexture.sig="ii";var _glIsVertexArray=e=>{var t=GL.vaos[e];return t?GLctx.isVertexArray(t):0};_glIsVertexArray.sig="ii";var _glIsVertexArrayOES=_glIsVertexArray;_glIsVertexArrayOES.sig="ii";var _emscripten_glIsVertexArrayOES=_glIsVertexArrayOES;_emscripten_glIsVertexArrayOES.sig="ii";var _glLineWidth=e=>GLctx.lineWidth(e);_glLineWidth.sig="vf";var _emscripten_glLineWidth=_glLineWidth;_emscripten_glLineWidth.sig="vf";var _glLinkProgram=e=>{e=GL.programs[e],GLctx.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}};_glLinkProgram.sig="vi";var _emscripten_glLinkProgram=_glLinkProgram;_emscripten_glLinkProgram.sig="vi";var _glPixelStorei=(e,t)=>{3317==e?GL.unpackAlignment=t:3314==e&&(GL.unpackRowLength=t),GLctx.pixelStorei(e,t)};_glPixelStorei.sig="vii";var _emscripten_glPixelStorei=_glPixelStorei;_emscripten_glPixelStorei.sig="vii";var _glPolygonModeWEBGL=(e,t)=>{GLctx.webglPolygonMode.polygonModeWEBGL(e,t)};_glPolygonModeWEBGL.sig="vii";var _emscripten_glPolygonModeWEBGL=_glPolygonModeWEBGL,_glPolygonOffset=(e,t)=>GLctx.polygonOffset(e,t);_glPolygonOffset.sig="vff";var _emscripten_glPolygonOffset=_glPolygonOffset;_emscripten_glPolygonOffset.sig="vff";var _glPolygonOffsetClampEXT=(e,t,r)=>{GLctx.extPolygonOffsetClamp.polygonOffsetClampEXT(e,t,r)};_glPolygonOffsetClampEXT.sig="vfff";var _emscripten_glPolygonOffsetClampEXT=_glPolygonOffsetClampEXT,_glQueryCounterEXT=(e,t)=>{GLctx.disjointTimerQueryExt.queryCounterEXT(GL.queries[e],t)};_glQueryCounterEXT.sig="vii";var _emscripten_glQueryCounterEXT=_glQueryCounterEXT,computeUnpackAlignedImageSize=(e,t,r)=>{var i;return t*((GL.unpackRowLength||e)*r+(i=GL.unpackAlignment)-1&-i)},colorChannelsInGlTextureFormat=e=>({5:3,6:4,8:2,29502:3,29504:4}[e-6402]||1),heapObjectForWebGLType=e=>1==(e-=5120)?HEAPU8:4==e?HEAP32:6==e?HEAPF32:5==e||28922==e?HEAPU32:HEAPU16,toTypedArrayIndex=(e,t)=>e>>>31-Math.clz32(t.BYTES_PER_ELEMENT),emscriptenWebGLGetTexPixelData=(e,t,r,i,n,a)=>{var s=heapObjectForWebGLType(e),o=colorChannelsInGlTextureFormat(t)*s.BYTES_PER_ELEMENT,l=computeUnpackAlignedImageSize(r,i,o);return s.subarray(toTypedArrayIndex(n,s)>>>0,toTypedArrayIndex(n+l,s)>>>0)};function _glReadPixels(e,t,r,i,n,a,s){var o=emscriptenWebGLGetTexPixelData(a,n,r,i,s>>>=0,n);o?GLctx.readPixels(e,t,r,i,n,a,o):GL.recordError(1280)}_glReadPixels.sig="viiiiiip";var _emscripten_glReadPixels=_glReadPixels;_emscripten_glReadPixels.sig="viiiiiip";var _glReleaseShaderCompiler=()=>{};_glReleaseShaderCompiler.sig="v";var _emscripten_glReleaseShaderCompiler=_glReleaseShaderCompiler;_emscripten_glReleaseShaderCompiler.sig="v";var _glRenderbufferStorage=(e,t,r,i)=>GLctx.renderbufferStorage(e,t,r,i);_glRenderbufferStorage.sig="viiii";var _emscripten_glRenderbufferStorage=_glRenderbufferStorage;_emscripten_glRenderbufferStorage.sig="viiii";var _glSampleCoverage=(e,t)=>{GLctx.sampleCoverage(e,!!t)};_glSampleCoverage.sig="vfi";var _emscripten_glSampleCoverage=_glSampleCoverage;_emscripten_glSampleCoverage.sig="vfi";var _glScissor=(e,t,r,i)=>GLctx.scissor(e,t,r,i);_glScissor.sig="viiii";var _emscripten_glScissor=_glScissor;function _glShaderBinary(e,t,r,i,n){GL.recordError(1280)}_emscripten_glScissor.sig="viiii",_glShaderBinary.sig="vipipi";var _emscripten_glShaderBinary=_glShaderBinary;function _glShaderSource(e,t,r,i){r>>>=0,i>>>=0;var n=GL.getSource(e,t,r,i);GLctx.shaderSource(GL.shaders[e],n)}_emscripten_glShaderBinary.sig="vipipi",_glShaderSource.sig="viipp";var _emscripten_glShaderSource=_glShaderSource;_emscripten_glShaderSource.sig="viipp";var _glStencilFunc=(e,t,r)=>GLctx.stencilFunc(e,t,r);_glStencilFunc.sig="viii";var _emscripten_glStencilFunc=_glStencilFunc;_emscripten_glStencilFunc.sig="viii";var _glStencilFuncSeparate=(e,t,r,i)=>GLctx.stencilFuncSeparate(e,t,r,i);_glStencilFuncSeparate.sig="viiii";var _emscripten_glStencilFuncSeparate=_glStencilFuncSeparate;_emscripten_glStencilFuncSeparate.sig="viiii";var _glStencilMask=e=>GLctx.stencilMask(e);_glStencilMask.sig="vi";var _emscripten_glStencilMask=_glStencilMask;_emscripten_glStencilMask.sig="vi";var _glStencilMaskSeparate=(e,t)=>GLctx.stencilMaskSeparate(e,t);_glStencilMaskSeparate.sig="vii";var _emscripten_glStencilMaskSeparate=_glStencilMaskSeparate;_emscripten_glStencilMaskSeparate.sig="vii";var _glStencilOp=(e,t,r)=>GLctx.stencilOp(e,t,r);_glStencilOp.sig="viii";var _emscripten_glStencilOp=_glStencilOp;_emscripten_glStencilOp.sig="viii";var _glStencilOpSeparate=(e,t,r,i)=>GLctx.stencilOpSeparate(e,t,r,i);_glStencilOpSeparate.sig="viiii";var _emscripten_glStencilOpSeparate=_glStencilOpSeparate;function _glTexImage2D(e,t,r,i,n,a,s,o,l){var c=(l>>>=0)?emscriptenWebGLGetTexPixelData(o,s,i,n,l,r):null;GLctx.texImage2D(e,t,r,i,n,a,s,o,c)}_emscripten_glStencilOpSeparate.sig="viiii",_glTexImage2D.sig="viiiiiiiip";var _emscripten_glTexImage2D=_glTexImage2D;_emscripten_glTexImage2D.sig="viiiiiiiip";var _glTexParameterf=(e,t,r)=>GLctx.texParameterf(e,t,r);_glTexParameterf.sig="viif";var _emscripten_glTexParameterf=_glTexParameterf;function _glTexParameterfv(e,t,r){var i=HEAPF32[(r>>>=0)>>>2>>>0];GLctx.texParameterf(e,t,i)}_emscripten_glTexParameterf.sig="viif",_glTexParameterfv.sig="viip";var _emscripten_glTexParameterfv=_glTexParameterfv;_emscripten_glTexParameterfv.sig="viip";var _glTexParameteri=(e,t,r)=>GLctx.texParameteri(e,t,r);_glTexParameteri.sig="viii";var _emscripten_glTexParameteri=_glTexParameteri;function _glTexParameteriv(e,t,r){var i=HEAP32[(r>>>=0)>>>2>>>0];GLctx.texParameteri(e,t,i)}_emscripten_glTexParameteri.sig="viii",_glTexParameteriv.sig="viip";var _emscripten_glTexParameteriv=_glTexParameteriv;function _glTexSubImage2D(e,t,r,i,n,a,s,o,l){var c=(l>>>=0)?emscriptenWebGLGetTexPixelData(o,s,n,a,l,0):null;GLctx.texSubImage2D(e,t,r,i,n,a,s,o,c)}_emscripten_glTexParameteriv.sig="viip",_glTexSubImage2D.sig="viiiiiiiip";var _emscripten_glTexSubImage2D=_glTexSubImage2D;_emscripten_glTexSubImage2D.sig="viiiiiiiip";var _glUniform1f=(e,t)=>{GLctx.uniform1f(webglGetUniformLocation(e),t)};_glUniform1f.sig="vif";var _emscripten_glUniform1f=_glUniform1f;_emscripten_glUniform1f.sig="vif";var miniTempWebGLFloatBuffers=[];function _glUniform1fv(e,t,r){if(r>>>=0,t<=288)for(var i=miniTempWebGLFloatBuffers[t],n=0;n>>2>>>0];else i=HEAPF32.subarray(r>>>2>>>0,r+4*t>>>2>>>0);GLctx.uniform1fv(webglGetUniformLocation(e),i)}_glUniform1fv.sig="viip";var _emscripten_glUniform1fv=_glUniform1fv;_emscripten_glUniform1fv.sig="viip";var _glUniform1i=(e,t)=>{GLctx.uniform1i(webglGetUniformLocation(e),t)};_glUniform1i.sig="vii";var _emscripten_glUniform1i=_glUniform1i;_emscripten_glUniform1i.sig="vii";var miniTempWebGLIntBuffers=[];function _glUniform1iv(e,t,r){if(r>>>=0,t<=288)for(var i=miniTempWebGLIntBuffers[t],n=0;n>>2>>>0];else i=HEAP32.subarray(r>>>2>>>0,r+4*t>>>2>>>0);GLctx.uniform1iv(webglGetUniformLocation(e),i)}_glUniform1iv.sig="viip";var _emscripten_glUniform1iv=_glUniform1iv;_emscripten_glUniform1iv.sig="viip";var _glUniform2f=(e,t,r)=>{GLctx.uniform2f(webglGetUniformLocation(e),t,r)};_glUniform2f.sig="viff";var _emscripten_glUniform2f=_glUniform2f;function _glUniform2fv(e,t,r){if(r>>>=0,t<=144)for(var i=miniTempWebGLFloatBuffers[t*=2],n=0;n>>2>>>0],i[n+1]=HEAPF32[r+(4*n+4)>>>2>>>0];else i=HEAPF32.subarray(r>>>2>>>0,r+8*t>>>2>>>0);GLctx.uniform2fv(webglGetUniformLocation(e),i)}_emscripten_glUniform2f.sig="viff",_glUniform2fv.sig="viip";var _emscripten_glUniform2fv=_glUniform2fv;_emscripten_glUniform2fv.sig="viip";var _glUniform2i=(e,t,r)=>{GLctx.uniform2i(webglGetUniformLocation(e),t,r)};_glUniform2i.sig="viii";var _emscripten_glUniform2i=_glUniform2i;function _glUniform2iv(e,t,r){if(r>>>=0,t<=144)for(var i=miniTempWebGLIntBuffers[t*=2],n=0;n>>2>>>0],i[n+1]=HEAP32[r+(4*n+4)>>>2>>>0];else i=HEAP32.subarray(r>>>2>>>0,r+8*t>>>2>>>0);GLctx.uniform2iv(webglGetUniformLocation(e),i)}_emscripten_glUniform2i.sig="viii",_glUniform2iv.sig="viip";var _emscripten_glUniform2iv=_glUniform2iv;_emscripten_glUniform2iv.sig="viip";var _glUniform3f=(e,t,r,i)=>{GLctx.uniform3f(webglGetUniformLocation(e),t,r,i)};_glUniform3f.sig="vifff";var _emscripten_glUniform3f=_glUniform3f;function _glUniform3fv(e,t,r){if(r>>>=0,t<=96)for(var i=miniTempWebGLFloatBuffers[t*=3],n=0;n>>2>>>0],i[n+1]=HEAPF32[r+(4*n+4)>>>2>>>0],i[n+2]=HEAPF32[r+(4*n+8)>>>2>>>0];else i=HEAPF32.subarray(r>>>2>>>0,r+12*t>>>2>>>0);GLctx.uniform3fv(webglGetUniformLocation(e),i)}_emscripten_glUniform3f.sig="vifff",_glUniform3fv.sig="viip";var _emscripten_glUniform3fv=_glUniform3fv;_emscripten_glUniform3fv.sig="viip";var _glUniform3i=(e,t,r,i)=>{GLctx.uniform3i(webglGetUniformLocation(e),t,r,i)};_glUniform3i.sig="viiii";var _emscripten_glUniform3i=_glUniform3i;function _glUniform3iv(e,t,r){if(r>>>=0,t<=96)for(var i=miniTempWebGLIntBuffers[t*=3],n=0;n>>2>>>0],i[n+1]=HEAP32[r+(4*n+4)>>>2>>>0],i[n+2]=HEAP32[r+(4*n+8)>>>2>>>0];else i=HEAP32.subarray(r>>>2>>>0,r+12*t>>>2>>>0);GLctx.uniform3iv(webglGetUniformLocation(e),i)}_emscripten_glUniform3i.sig="viiii",_glUniform3iv.sig="viip";var _emscripten_glUniform3iv=_glUniform3iv;_emscripten_glUniform3iv.sig="viip";var _glUniform4f=(e,t,r,i,n)=>{GLctx.uniform4f(webglGetUniformLocation(e),t,r,i,n)};_glUniform4f.sig="viffff";var _emscripten_glUniform4f=_glUniform4f;function _glUniform4fv(e,t,r){if(r>>>=0,t<=72){var i=miniTempWebGLFloatBuffers[4*t],n=HEAPF32;r>>>=2,t*=4;for(var a=0;a>>0],i[a+1]=n[s+1>>>0],i[a+2]=n[s+2>>>0],i[a+3]=n[s+3>>>0]}}else i=HEAPF32.subarray(r>>>2>>>0,r+16*t>>>2>>>0);GLctx.uniform4fv(webglGetUniformLocation(e),i)}_emscripten_glUniform4f.sig="viffff",_glUniform4fv.sig="viip";var _emscripten_glUniform4fv=_glUniform4fv;_emscripten_glUniform4fv.sig="viip";var _glUniform4i=(e,t,r,i,n)=>{GLctx.uniform4i(webglGetUniformLocation(e),t,r,i,n)};_glUniform4i.sig="viiiii";var _emscripten_glUniform4i=_glUniform4i;function _glUniform4iv(e,t,r){if(r>>>=0,t<=72)for(var i=miniTempWebGLIntBuffers[t*=4],n=0;n>>2>>>0],i[n+1]=HEAP32[r+(4*n+4)>>>2>>>0],i[n+2]=HEAP32[r+(4*n+8)>>>2>>>0],i[n+3]=HEAP32[r+(4*n+12)>>>2>>>0];else i=HEAP32.subarray(r>>>2>>>0,r+16*t>>>2>>>0);GLctx.uniform4iv(webglGetUniformLocation(e),i)}_emscripten_glUniform4i.sig="viiiii",_glUniform4iv.sig="viip";var _emscripten_glUniform4iv=_glUniform4iv;function _glUniformMatrix2fv(e,t,r,i){if(i>>>=0,t<=72)for(var n=miniTempWebGLFloatBuffers[t*=4],a=0;a>>2>>>0],n[a+1]=HEAPF32[i+(4*a+4)>>>2>>>0],n[a+2]=HEAPF32[i+(4*a+8)>>>2>>>0],n[a+3]=HEAPF32[i+(4*a+12)>>>2>>>0];else n=HEAPF32.subarray(i>>>2>>>0,i+16*t>>>2>>>0);GLctx.uniformMatrix2fv(webglGetUniformLocation(e),!!r,n)}_emscripten_glUniform4iv.sig="viip",_glUniformMatrix2fv.sig="viiip";var _emscripten_glUniformMatrix2fv=_glUniformMatrix2fv;function _glUniformMatrix3fv(e,t,r,i){if(i>>>=0,t<=32)for(var n=miniTempWebGLFloatBuffers[t*=9],a=0;a>>2>>>0],n[a+1]=HEAPF32[i+(4*a+4)>>>2>>>0],n[a+2]=HEAPF32[i+(4*a+8)>>>2>>>0],n[a+3]=HEAPF32[i+(4*a+12)>>>2>>>0],n[a+4]=HEAPF32[i+(4*a+16)>>>2>>>0],n[a+5]=HEAPF32[i+(4*a+20)>>>2>>>0],n[a+6]=HEAPF32[i+(4*a+24)>>>2>>>0],n[a+7]=HEAPF32[i+(4*a+28)>>>2>>>0],n[a+8]=HEAPF32[i+(4*a+32)>>>2>>>0];else n=HEAPF32.subarray(i>>>2>>>0,i+36*t>>>2>>>0);GLctx.uniformMatrix3fv(webglGetUniformLocation(e),!!r,n)}_emscripten_glUniformMatrix2fv.sig="viiip",_glUniformMatrix3fv.sig="viiip";var _emscripten_glUniformMatrix3fv=_glUniformMatrix3fv;function _glUniformMatrix4fv(e,t,r,i){if(i>>>=0,t<=18){var n=miniTempWebGLFloatBuffers[16*t],a=HEAPF32;i>>>=2,t*=16;for(var s=0;s>>0],n[s+1]=a[o+1>>>0],n[s+2]=a[o+2>>>0],n[s+3]=a[o+3>>>0],n[s+4]=a[o+4>>>0],n[s+5]=a[o+5>>>0],n[s+6]=a[o+6>>>0],n[s+7]=a[o+7>>>0],n[s+8]=a[o+8>>>0],n[s+9]=a[o+9>>>0],n[s+10]=a[o+10>>>0],n[s+11]=a[o+11>>>0],n[s+12]=a[o+12>>>0],n[s+13]=a[o+13>>>0],n[s+14]=a[o+14>>>0],n[s+15]=a[o+15>>>0]}}else n=HEAPF32.subarray(i>>>2>>>0,i+64*t>>>2>>>0);GLctx.uniformMatrix4fv(webglGetUniformLocation(e),!!r,n)}_emscripten_glUniformMatrix3fv.sig="viiip",_glUniformMatrix4fv.sig="viiip";var _emscripten_glUniformMatrix4fv=_glUniformMatrix4fv;_emscripten_glUniformMatrix4fv.sig="viiip";var _glUseProgram=e=>{e=GL.programs[e],GLctx.useProgram(e),GLctx.currentProgram=e};_glUseProgram.sig="vi";var _emscripten_glUseProgram=_glUseProgram;_emscripten_glUseProgram.sig="vi";var _glValidateProgram=e=>{GLctx.validateProgram(GL.programs[e])};_glValidateProgram.sig="vi";var _emscripten_glValidateProgram=_glValidateProgram;_emscripten_glValidateProgram.sig="vi";var _glVertexAttrib1f=(e,t)=>GLctx.vertexAttrib1f(e,t);_glVertexAttrib1f.sig="vif";var _emscripten_glVertexAttrib1f=_glVertexAttrib1f;function _glVertexAttrib1fv(e,t){t>>>=0,GLctx.vertexAttrib1f(e,HEAPF32[t>>>2])}_emscripten_glVertexAttrib1f.sig="vif",_glVertexAttrib1fv.sig="vip";var _emscripten_glVertexAttrib1fv=_glVertexAttrib1fv;_emscripten_glVertexAttrib1fv.sig="vip";var _glVertexAttrib2f=(e,t,r)=>GLctx.vertexAttrib2f(e,t,r);_glVertexAttrib2f.sig="viff";var _emscripten_glVertexAttrib2f=_glVertexAttrib2f;function _glVertexAttrib2fv(e,t){t>>>=0,GLctx.vertexAttrib2f(e,HEAPF32[t>>>2],HEAPF32[t+4>>>2])}_emscripten_glVertexAttrib2f.sig="viff",_glVertexAttrib2fv.sig="vip";var _emscripten_glVertexAttrib2fv=_glVertexAttrib2fv;_emscripten_glVertexAttrib2fv.sig="vip";var _glVertexAttrib3f=(e,t,r,i)=>GLctx.vertexAttrib3f(e,t,r,i);_glVertexAttrib3f.sig="vifff";var _emscripten_glVertexAttrib3f=_glVertexAttrib3f;function _glVertexAttrib3fv(e,t){t>>>=0,GLctx.vertexAttrib3f(e,HEAPF32[t>>>2],HEAPF32[t+4>>>2],HEAPF32[t+8>>>2])}_emscripten_glVertexAttrib3f.sig="vifff",_glVertexAttrib3fv.sig="vip";var _emscripten_glVertexAttrib3fv=_glVertexAttrib3fv;_emscripten_glVertexAttrib3fv.sig="vip";var _glVertexAttrib4f=(e,t,r,i,n)=>GLctx.vertexAttrib4f(e,t,r,i,n);_glVertexAttrib4f.sig="viffff";var _emscripten_glVertexAttrib4f=_glVertexAttrib4f;function _glVertexAttrib4fv(e,t){t>>>=0,GLctx.vertexAttrib4f(e,HEAPF32[t>>>2],HEAPF32[t+4>>>2],HEAPF32[t+8>>>2],HEAPF32[t+12>>>2])}_emscripten_glVertexAttrib4f.sig="viffff",_glVertexAttrib4fv.sig="vip";var _emscripten_glVertexAttrib4fv=_glVertexAttrib4fv;_emscripten_glVertexAttrib4fv.sig="vip";var _glVertexAttribDivisor=(e,t)=>{GLctx.vertexAttribDivisor(e,t)};_glVertexAttribDivisor.sig="vii";var _glVertexAttribDivisorANGLE=_glVertexAttribDivisor,_emscripten_glVertexAttribDivisorANGLE=_glVertexAttribDivisorANGLE;function _glVertexAttribPointer(e,t,r,i,n,a){a>>>=0,GLctx.vertexAttribPointer(e,t,r,!!i,n,a)}_glVertexAttribPointer.sig="viiiiip";var _emscripten_glVertexAttribPointer=_glVertexAttribPointer;_emscripten_glVertexAttribPointer.sig="viiiiip";var _glViewport=(e,t,r,i)=>GLctx.viewport(e,t,r,i);_glViewport.sig="viiii";var _emscripten_glViewport=_glViewport;function _emscripten_out(e){return out(UTF8ToString(e>>>=0))}_emscripten_glViewport.sig="viiii",_emscripten_out.sig="vp";class HandleAllocator{constructor(){Qe(this,"allocated",[void 0]),Qe(this,"freelist",[])}get(e){return this.allocated[e]}has(e){return void 0!==this.allocated[e]}allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t}free(e){this.allocated[e]=void 0,this.freelist.push(e)}}var promiseMap=new HandleAllocator,makePromise=()=>{var e={};return e.promise=new Promise(((t,r)=>{e.reject=r,e.resolve=t})),e.id=promiseMap.allocate(e),e};function _emscripten_promise_create(){return makePromise().id}function _emscripten_promise_destroy(e){e>>>=0,promiseMap.free(e)}_emscripten_promise_create.sig="p",_emscripten_promise_destroy.sig="vp";var getPromise=e=>promiseMap.get(e).promise;function _emscripten_promise_resolve(e,t,r){e>>>=0,r>>>=0;var i=promiseMap.get(e);switch(t){case 0:return void i.resolve(r);case 1:return void i.resolve(getPromise(r));case 2:return i.resolve(getPromise(r)),void _emscripten_promise_destroy(r);case 3:return void i.reject(r)}}_emscripten_promise_resolve.sig="vpip";var growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536|0;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}};function _emscripten_resize_heap(e){e>>>=0;var t=HEAPU8.length,r=getHeapMax();if(e>r)return!1;for(var i=1;i<=4;i*=2){var n=t*(1+.2/i);n=Math.min(n,e+100663296);var a=Math.min(r,alignMemory(Math.max(e,n),65536));if(growMemory(a))return!0}return!1}function _emscripten_wget_data(e,t,r,i){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_wget_data"}_emscripten_resize_heap.sig="ip",_emscripten_wget_data.sig="vpppp";var getEnvStrings=()=>{if(!getEnvStrings.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:getExecutableName()};for(var t in ENV)void 0===ENV[t]?delete e[t]:e[t]=ENV[t];var r=[];for(var t in e)r.push("".concat(t,"=").concat(e[t]));getEnvStrings.strings=r}return getEnvStrings.strings},stringToAscii=(e,t)=>{for(var r=0;r>>0]=e.charCodeAt(r);HEAP8[t>>>0]=0},_environ_get=function(e,t){e>>>=0,t>>>=0;var r=0;return getEnvStrings().forEach(((i,n)=>{var a=t+r;HEAPU32[e+4*n>>>2>>>0]=a,stringToAscii(i,a),r+=i.length+1})),0};_environ_get.sig="ipp";var _environ_sizes_get=function(e,t){e>>>=0,t>>>=0;var r=getEnvStrings();HEAPU32[e>>>2>>>0]=r.length;var i=0;return r.forEach((e=>i+=e.length+1)),HEAPU32[t>>>2>>>0]=i,0};function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_fdstat_get(e,t){t>>>=0;try{var r=SYSCALLS.getStreamFromFD(e),i=r.tty?2:FS.isDir(r.mode)?3:FS.isLink(r.mode)?7:4;return HEAP8[t>>>0]=i,HEAP16[t+2>>>1>>>0]=0,tempI64=[0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+8>>>2>>>0]=tempI64[0],HEAP32[t+12>>>2>>>0]=tempI64[1],tempI64=[0,(tempDouble=0,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+16>>>2>>>0]=tempI64[0],HEAP32[t+20>>>2>>>0]=tempI64[1],0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_environ_sizes_get.sig="ipp",_fd_close.sig="ii",_fd_fdstat_get.sig="iip";var doReadv=(e,t,r,i)=>{for(var n=0,a=0;a>>2>>>0],o=HEAPU32[t+4>>>2>>>0];t+=8;var l=FS.read(e,HEAP8,s,o,i);if(l<0)return-1;if(n+=l,l>>=0,r>>>=0;var s=convertI32PairToI53Checked(i,n);a>>>=0;try{if(isNaN(s))return 61;var o=SYSCALLS.getStreamFromFD(e),l=doReadv(o,t,r,s);return HEAPU32[a>>>2>>>0]=l,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_fd_pread.sig="iippiip";var doWritev=(e,t,r,i)=>{for(var n=0,a=0;a>>2>>>0],o=HEAPU32[t+4>>>2>>>0];t+=8;var l=FS.write(e,HEAP8,s,o,i);if(l<0)return-1;if(n+=l,l>>=0,r>>>=0;var s=convertI32PairToI53Checked(i,n);a>>>=0;try{if(isNaN(s))return 61;var o=SYSCALLS.getStreamFromFD(e),l=doWritev(o,t,r,s);return HEAPU32[a>>>2>>>0]=l,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_read(e,t,r,i){t>>>=0,r>>>=0,i>>>=0;try{var n=SYSCALLS.getStreamFromFD(e),a=doReadv(n,t,r);return HEAPU32[i>>>2>>>0]=a,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_seek(e,t,r,i,n){var a=convertI32PairToI53Checked(t,r);n>>>=0;try{if(isNaN(a))return 61;var s=SYSCALLS.getStreamFromFD(e);return FS.llseek(s,a,i),tempI64=[s.position>>>0,(tempDouble=s.position,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n>>>2>>>0]=tempI64[0],HEAP32[n+4>>>2>>>0]=tempI64[1],s.getdents&&0===a&&0===i&&(s.getdents=null),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_sync(e){var t;try{var r=SYSCALLS.getStreamFromFD(e);return null!=(t=r.stream_ops)&&t.fsync?r.stream_ops.fsync(r):0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _fd_write(e,t,r,i){t>>>=0,r>>>=0,i>>>=0;try{var n=SYSCALLS.getStreamFromFD(e),a=doWritev(n,t,r);return HEAPU32[i>>>2>>>0]=a,0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}function _getaddrinfo(e,t,r,i){e>>>=0,t>>>=0,i>>>=0;var n,a=0,s=0,o=0,l=0,c=0,_=0;function u(e,t,r,i,n,a){var s,o,l;return o=10===e?28:16,n=10===e?inetNtop6(n):inetNtop4(n),s=_malloc(o),assert(!writeSockaddr(s,e,n,a)),l=_malloc(32),HEAP32[l+4>>>2>>>0]=e,HEAP32[l+8>>>2>>>0]=t,HEAP32[l+12>>>2>>>0]=r,HEAPU32[l+24>>>2>>>0]=i,HEAPU32[l+20>>>2>>>0]=s,HEAP32[l+16>>>2>>>0]=10===e?28:16,HEAP32[l+28>>>2>>>0]=0,l}if((r>>>=0)&&(o=HEAP32[r>>>2>>>0],l=HEAP32[r+4>>>2>>>0],c=HEAP32[r+8>>>2>>>0],_=HEAP32[r+12>>>2>>>0]),c&&!_&&(_=2===c?17:6),!c&&_&&(c=17===_?2:1),0===_&&(_=6),0===c&&(c=1),!e&&!t)return-2;if(-1088&o||0!==r&&2&HEAP32[r>>>2>>>0]&&!e)return-1;if(32&o)return-2;if(0!==c&&1!==c&&2!==c)return-7;if(0!==l&&2!==l&&10!==l)return-6;if(t&&(t=UTF8ToString(t),s=parseInt(t,10),isNaN(s)))return 1024&o?-2:-8;if(!e)return 0===l&&(l=2),1&o||(a=2===l?_htonl(2130706433):[0,0,0,_htonl(1)]),n=u(l,c,_,null,a,s),HEAPU32[i>>>2>>>0]=n,0;if(e=UTF8ToString(e),null!==(a=inetPton4(e)))if(0===l||2===l)l=2;else{if(!(10===l&&8&o))return-2;a=[0,0,_htonl(65535),a],l=10}else if(null!==(a=inetPton6(e))){if(0!==l&&10!==l)return-2;l=10}return null!=a?(n=u(l,c,_,e,a,s),HEAPU32[i>>>2>>>0]=n,0):4&o?-2:(e=DNS.lookup_name(e),a=inetPton4(e),0===l?l=2:10===l&&(a=[0,0,_htonl(65535),a]),n=u(l,c,_,null,a,s),HEAPU32[i>>>2>>>0]=n,0)}function _getnameinfo(e,t,r,i,n,a,s){r>>>=0,n>>>=0;var o=readSockaddr(e>>>=0,t);if(o.errno)return-6;var l=o.port,c=o.addr,_=!1;if(r&&i){var u;if(1&s||!(u=DNS.lookup_addr(c))){if(8&s)return-2}else c=u;stringToUTF8(c,r,i)+1>=i&&(_=!0)}return n&&a&&stringToUTF8(l=""+l,n,a)+1>=a&&(_=!0),_?-12:0}function _llvm_eh_typeid_for(e){return e>>>0}function _pthread_kill(...e){return wasmImports.pthread_kill(...e)}function _random_get(e,t){e>>>=0,t>>>=0;try{return randomFill(HEAPU8.subarray(e>>>0,e+t>>>0)),0}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return e.errno}}_fd_pwrite.sig="iippiip",_fd_read.sig="iippp",_fd_seek.sig="iiiiip",_fd_sync.sig="ii",_fd_write.sig="iippp",_getaddrinfo.sig="ipppp",_getnameinfo.sig="ipipipii",_llvm_eh_typeid_for.sig="vp",_pthread_kill.stub=!0,_random_get.sig="ipp";var arraySum=(e,t)=>{for(var r=0,i=0;i<=t;r+=e[i++]);return r},MONTH_DAYS_LEAP=[31,29,31,30,31,30,31,31,30,31,30,31],MONTH_DAYS_REGULAR=[31,28,31,30,31,30,31,31,30,31,30,31],addDays=(e,t)=>{for(var r=new Date(e.getTime());t>0;){var i=isLeapYear(r.getFullYear()),n=r.getMonth(),a=(i?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[n];if(!(t>a-r.getDate()))return r.setDate(r.getDate()+t),r;t-=a-r.getDate()+1,r.setDate(1),n<11?r.setMonth(n+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r};function _strptime(e,t,r){e>>>=0,r>>>=0;for(var i=UTF8ToString(t>>>=0),n="\\!@#$^&*()+=-[]/{}|:<>?,.",a=0;a<25;++a)i=i.replace(new RegExp("\\"+n[a],"g"),"\\"+n[a]);var s={A:"%a",B:"%b",c:"%a %b %d %H:%M:%S %Y",D:"%m\\/%d\\/%y",e:"%d",F:"%Y-%m-%d",h:"%b",R:"%H\\:%M",r:"%I\\:%M\\:%S\\s%p",T:"%H\\:%M\\:%S",x:"%m\\/%d\\/(?:%y|%Y)",X:"%H\\:%M\\:%S"},o={a:"(?:Sun(?:day)?)|(?:Mon(?:day)?)|(?:Tue(?:sday)?)|(?:Wed(?:nesday)?)|(?:Thu(?:rsday)?)|(?:Fri(?:day)?)|(?:Sat(?:urday)?)",b:"(?:Jan(?:uary)?)|(?:Feb(?:ruary)?)|(?:Mar(?:ch)?)|(?:Apr(?:il)?)|May|(?:Jun(?:e)?)|(?:Jul(?:y)?)|(?:Aug(?:ust)?)|(?:Sep(?:tember)?)|(?:Oct(?:ober)?)|(?:Nov(?:ember)?)|(?:Dec(?:ember)?)",C:"\\d\\d",d:"0[1-9]|[1-9](?!\\d)|1\\d|2\\d|30|31",H:"\\d(?!\\d)|[0,1]\\d|20|21|22|23",I:"\\d(?!\\d)|0\\d|10|11|12",j:"00[1-9]|0?[1-9](?!\\d)|0?[1-9]\\d(?!\\d)|[1,2]\\d\\d|3[0-6]\\d",m:"0[1-9]|[1-9](?!\\d)|10|11|12",M:"0\\d|\\d(?!\\d)|[1-5]\\d",n:" ",p:"AM|am|PM|pm|A\\.M\\.|a\\.m\\.|P\\.M\\.|p\\.m\\.",S:"0\\d|\\d(?!\\d)|[1-5]\\d|60",U:"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53",W:"0\\d|\\d(?!\\d)|[1-4]\\d|50|51|52|53",w:"[0-6]",y:"\\d\\d",Y:"\\d\\d\\d\\d",t:" ",z:"Z|(?:[\\+\\-]\\d\\d:?(?:\\d\\d)?)"},l=[],c=i.replace(/%(.)/g,((e,t)=>s[t]||e)).replace(/%(.)/g,((e,t)=>{let r=o[t];return r?(l.push(t),"(".concat(r,")")):t})).replace(/\s+/g,"\\s*"),_=new RegExp("^"+c,"i").exec(UTF8ToString(e));if(_){var u,d=function(){function e(e,t,r){return"number"!=typeof e||isNaN(e)?t:e>=t?e<=r?e:r:t}return{year:e(HEAP32[r+20>>>2>>>0]+1900,1970,9999),month:e(HEAP32[r+16>>>2>>>0],0,11),day:e(HEAP32[r+12>>>2>>>0],1,31),hour:e(HEAP32[r+8>>>2>>>0],0,23),min:e(HEAP32[r+4>>>2>>>0],0,59),sec:e(HEAP32[r>>>2>>>0],0,59),gmtoff:0}}(),p=e=>{var t=l.indexOf(e);if(t>=0)return _[t+1]};if((u=p("S"))&&(d.sec=jstoi_q(u)),(u=p("M"))&&(d.min=jstoi_q(u)),u=p("H"))d.hour=jstoi_q(u);else if(u=p("I")){var f=jstoi_q(u);(u=p("p"))&&(f+="P"===u.toUpperCase()[0]?12:0),d.hour=f}if(u=p("Y"))d.year=jstoi_q(u);else if(u=p("y")){var m=jstoi_q(u);(u=p("C"))?m+=100*jstoi_q(u):m+=m<69?2e3:1900,d.year=m}if((u=p("m"))?d.month=jstoi_q(u)-1:(u=p("b"))&&(d.month={JAN:0,FEB:1,MAR:2,APR:3,MAY:4,JUN:5,JUL:6,AUG:7,SEP:8,OCT:9,NOV:10,DEC:11}[u.substring(0,3).toUpperCase()]||0),u=p("d"))d.day=jstoi_q(u);else if(u=p("j"))for(var h=jstoi_q(u),g=isLeapYear(d.year),v=0;v<12;++v){var y=arraySum(g?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,v-1);h<=y+(g?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR)[v]&&(d.day=h-y)}else if(u=p("a")){var b=u.substring(0,3).toUpperCase();if(u=p("U")){var S={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6}[b],w=jstoi_q(u);L=0===(E=new Date(d.year,0,1)).getDay()?addDays(E,S+7*(w-1)):addDays(E,7-E.getDay()+S+7*(w-1)),d.day=L.getDate(),d.month=L.getMonth()}else if(u=p("W")){var E,L;S={MON:0,TUE:1,WED:2,THU:3,FRI:4,SAT:5,SUN:6}[b],w=jstoi_q(u),L=1===(E=new Date(d.year,0,1)).getDay()?addDays(E,S+7*(w-1)):addDays(E,7-E.getDay()+1+S+7*(w-1)),d.day=L.getDate(),d.month=L.getMonth()}}if(u=p("z"))if("z"===u.toLowerCase())d.gmtoff=0;else{var A=u.match(/^((?:\-|\+)\d\d):?(\d\d)?/);d.gmtoff=3600*A[1],A[2]&&(d.gmtoff+=d.gmtoff>0?60*A[2]:60*-A[2])}var k=new Date(d.year,d.month,d.day,d.hour,d.min,d.sec,0);return HEAP32[r>>>2>>>0]=k.getSeconds(),HEAP32[r+4>>>2>>>0]=k.getMinutes(),HEAP32[r+8>>>2>>>0]=k.getHours(),HEAP32[r+12>>>2>>>0]=k.getDate(),HEAP32[r+16>>>2>>>0]=k.getMonth(),HEAP32[r+20>>>2>>>0]=k.getFullYear()-1900,HEAP32[r+24>>>2>>>0]=k.getDay(),HEAP32[r+28>>>2>>>0]=arraySum(isLeapYear(k.getFullYear())?MONTH_DAYS_LEAP:MONTH_DAYS_REGULAR,k.getMonth()-1)+k.getDate()-1,HEAP32[r+32>>>2>>>0]=0,HEAP32[r+36>>>2>>>0]=d.gmtoff,e+intArrayFromString(_[0]).length-1}return 0}_strptime.sig="pppp";var getCFunc=e=>Module["_"+e],writeArrayToMemory=(e,t)=>{HEAP8.set(e,t>>>0)},ccall=(e,t,r,i,n)=>{var a={string:e=>{var t=0;return null!=e&&0!==e&&(t=stringToUTF8OnStack(e)),t},array:e=>{var t=stackAlloc(e.length);return writeArrayToMemory(e,t),t}},s=getCFunc(e),o=[],l=0;if(i)for(var c=0;c{t>0x8000000000000000?(HEAPU32[e>>>2>>>0]=4294967295,HEAPU32[e+4>>>2>>>0]=2147483647):t<-0x8000000000000000?(HEAPU32[e>>>2>>>0]=0,HEAPU32[e+4>>>2>>>0]=2147483648):writeI53ToI64(e,t)},writeI53ToI64Signaling=(e,t)=>{if(t>0x8000000000000000||t<-0x8000000000000000)throw"RangeError: ".concat(t);writeI53ToI64(e,t)},writeI53ToU64Clamped=(e,t)=>{t>0x10000000000000000?(HEAPU32[e>>>2>>>0]=4294967295,HEAPU32[e+4>>>2>>>0]=4294967295):t<0?(HEAPU32[e>>>2>>>0]=0,HEAPU32[e+4>>>2>>>0]=0):writeI53ToI64(e,t)},writeI53ToU64Signaling=(e,t)=>{if(t<0||t>0x10000000000000000)throw"RangeError: ".concat(t);writeI53ToI64(e,t)},readI53FromU64=e=>HEAPU32[e>>>2>>>0]+4294967296*HEAPU32[e+4>>>2>>>0],convertI32PairToI53=(e,t)=>(e>>>0)+4294967296*t,convertU32PairToI53=(e,t)=>(e>>>0)+4294967296*(t>>>0),getTempRet0=e=>__emscripten_tempret_get(),_stackAlloc=stackAlloc,_stackSave=stackSave,_stackRestore=stackSave,_getTempRet0=getTempRet0;Module._getTempRet0=_getTempRet0;var ptrToString=e=>"0x"+e.toString(16).padStart(8,"0");function _emscripten_notify_memory_growth(e){updateMemoryViews()}_emscripten_notify_memory_growth.sig="vp";var withStackSave=e=>{var t=stackSave(),r=e();return stackRestore(t),r},ERRNO_CODES={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},strError=e=>UTF8ToString(_strerror(e)),Protocols={list:[],map:{}},_setprotoent=e=>{function t(e,t,r){var i=_malloc(e.length+1);stringToAscii(e,i);for(var n=0,a=r.length,s=_malloc(4*(a+1)),o=0;o>>2>>>0]=c}HEAPU32[s+n>>>2>>>0]=0;var _=_malloc(12);return HEAPU32[_>>>2>>>0]=i,HEAPU32[_+4>>>2>>>0]=s,HEAP32[_+8>>>2>>>0]=t,_}var r=Protocols.list,i=Protocols.map;if(0===r.length){var n=t("tcp",6,["TCP"]);r.push(n),i.tcp=i[6]=n,n=t("udp",17,["UDP"]),r.push(n),i.udp=i[17]=n}_setprotoent.index=0};_setprotoent.sig="vi";var _endprotoent=()=>{};function _getprotoent(e){return _setprotoent.index===Protocols.list.length?0:Protocols.list[_setprotoent.index++]}function _getprotobyname(e){return e=UTF8ToString(e>>>=0),_setprotoent(!0),Protocols.map[e]}function _getprotobynumber(e){return _setprotoent(!0),Protocols.map[e]}function _emscripten_run_script(ptr){ptr>>>=0,eval(UTF8ToString(ptr))}function _emscripten_run_script_int(ptr){return ptr>>>=0,0|eval(UTF8ToString(ptr))}function _emscripten_run_script_string(ptr){ptr>>>=0;var s=eval(UTF8ToString(ptr));if(null==s)return 0;s+="";var me=_emscripten_run_script_string,len=lengthBytesUTF8(s);return(!me.bufferSize||me.bufferSizeMath.random();_emscripten_random.sig="f";var warnOnce=e=>{warnOnce.shown||(warnOnce.shown={}),warnOnce.shown[e]||(warnOnce.shown[e]=1,ENVIRONMENT_IS_NODE&&(e="warning: "+e),err(e))},jsStackTrace=()=>(new Error).stack.toString(),getCallstack=e=>{var t=jsStackTrace(),r=t.lastIndexOf("_emscripten_log"),i=t.lastIndexOf("_emscripten_get_callstack"),n=t.indexOf("\n",Math.max(r,i))+1;t=t.slice(n),8&e&&typeof emscripten_source_map>"u"&&(warnOnce('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'),e^=8,e|=16);var a=t.split("\n");t="";var s=new RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"),o=new RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"),l=new RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)");for(var c in a){var _=a[c],u="",d="",p=0,f=0,m=l.exec(_);if(m&&5==m.length)u=m[1],d=m[2],p=m[3],f=m[4];else{if(!((m=s.exec(_)||o.exec(_))&&m.length>=4)){t+=_+"\n";continue}u=m[1],d=m[2],p=m[3],f=0|m[4]}var h=!1;if(8&e){var g=emscripten_source_map.originalPositionFor({line:p,column:f});(h=null==g?void 0:g.source)&&(64&e&&(g.source=g.source.substring(g.source.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=" at ".concat(u," (").concat(g.source,":").concat(g.line,":").concat(g.column,")\n"))}(16&e||!h)&&(64&e&&(d=d.substring(d.replace(/\\/g,"/").lastIndexOf("/")+1)),t+=(h?" = ".concat(u):" at ".concat(u))+" (".concat(d,":").concat(p,":").concat(f,")\n"))}return t.replace(/\s+$/,"")},emscriptenLog=(e,t)=>{24&e&&(t=t.replace(/\s+$/,""),t+=(t.length>0?"\n":"")+getCallstack(e)),1&e?4&e?console.error(t):2&e?console.warn(t):512&e?console.info(t):256&e?console.debug(t):console.log(t):6&e?err(t):out(t)},reallyNegative=e=>e<0||0===e&&1/e==-1/0,reSign=(e,t)=>{if(e<=0)return e;var r=t<=32?Math.abs(1<=r&&(t<=32||e>r)&&(e=-2*r+e),e},unSign=(e,t)=>e>=0?e:t<=32?2*Math.abs(1<{for(var t=e;HEAPU8[t>>>0];)++t;return t-e},formatString=(e,t)=>{var r=e,i=t;function n(e){var t;return i=function(e,t){return("double"===t||"i64"===t)&&7&e&&(e+=4),e}(i,e),"double"===e?(t=HEAPF64[i>>>3>>>0],i+=8):"i64"==e?(t=[HEAP32[i>>>2>>>0],HEAP32[i+4>>>2>>>0]],i+=8):(e="i32",t=HEAP32[i>>>2>>>0],i+=4),t}for(var a,s,o,l=[];;){var c=r;if(0===(a=HEAP8[r>>>0]))break;if(s=HEAP8[r+1>>>0],37==a){var _=!1,u=!1,d=!1,p=!1,f=!1;e:for(;;){switch(s){case 43:_=!0;break;case 45:u=!0;break;case 35:d=!0;break;case 48:if(p)break e;p=!0;break;case 32:f=!0;break;default:break e}r++,s=HEAP8[r+1>>>0]}var m=0;if(42==s)m=n("i32"),r++,s=HEAP8[r+1>>>0];else for(;s>=48&&s<=57;)m=10*m+(s-48),r++,s=HEAP8[r+1>>>0];var h,g=!1,v=-1;if(46==s){if(v=0,g=!0,r++,42==(s=HEAP8[r+1>>>0]))v=n("i32"),r++;else for(;;){var y=HEAP8[r+1>>>0];if(y<48||y>57)break;v=10*v+(y-48),r++}s=HEAP8[r+1>>>0]}switch(v<0&&(v=6,g=!1),String.fromCharCode(s)){case"h":104==HEAP8[r+2>>>0]?(r++,h=1):h=2;break;case"l":108==HEAP8[r+2>>>0]?(r++,h=8):h=4;break;case"L":case"q":case"j":h=8;break;case"z":case"t":case"I":h=4;break;default:h=null}switch(h&&r++,s=HEAP8[r+1>>>0],String.fromCharCode(s)){case"d":case"i":case"u":case"o":case"x":case"X":case"p":var b=100==s||105==s;if(o=n("i"+8*(h=h||4)),8==h&&(o=117==s?convertU32PairToI53(o[0],o[1]):convertI32PairToI53(o[0],o[1])),h<=4){var S=Math.pow(256,h)-1;o=(b?reSign:unSign)(o&S,8*h)}var w=Math.abs(o),E="";if(100==s||105==s)k=reSign(o,8*h).toString(10);else if(117==s)k=unSign(o,8*h).toString(10),o=Math.abs(o);else if(111==s)k=(d?"0":"")+w.toString(8);else if(120==s||88==s){if(E=d&&0!=o?"0x":"",o<0){o=-o,k=(w-1).toString(16);for(var L=[],A=0;A=0&&(_?E="+"+E:f&&(E=" "+E)),"-"==k.charAt(0)&&(E="-"+E,k=k.substr(1));E.length+k.lengthl.push(e.charCodeAt(0))));break;case"f":case"F":case"e":case"E":case"g":case"G":var k;if(o=n("double"),isNaN(o))k="nan",p=!1;else if(isFinite(o)){var T=!1,D=Math.min(v,20);if(103==s||71==s){T=!0,v=v||1;var x=parseInt(o.toExponential(D).split("e")[1],10);v>x&&x>=-4?(s=(103==s?"f":"F").charCodeAt(0),v-=x+1):(s=(103==s?"e":"E").charCodeAt(0),v--),D=Math.min(v,20)}101==s||69==s?(k=o.toExponential(D),/[eE][-+]\d$/.test(k)&&(k=k.slice(0,-1)+"0"+k.slice(-1))):(102==s||70==s)&&(k=o.toFixed(D),0===o&&reallyNegative(o)&&(k="-"+k));var F=k.split("e");if(T&&!d)for(;F[0].length>1&&F[0].includes(".")&&("0"==F[0].slice(-1)||"."==F[0].slice(-1));)F[0]=F[0].slice(0,-1);else for(d&&-1==k.indexOf(".")&&(F[0]+=".");v>D++;)F[0]+="0";k=F[0]+(F.length>1?"e"+F[1]:""),69==s&&(k=k.toUpperCase()),o>=0&&(_?k="+"+k:f&&(k=" "+k))}else k=(o<0?"-":"")+"inf",p=!1;for(;k.lengthl.push(e.charCodeAt(0))));break;case"s":var C=n("i8*"),P=C?strLen(C):6;if(g&&(P=Math.min(P,v)),!u)for(;P>>0]);else l=l.concat(intArrayFromString("(null)".substr(0,P),!0));if(u)for(;P0;)l.push(32);u||l.push(n("i8"));break;case"n":var M=n("i32*");HEAP32[M>>>2>>>0]=l.length;break;case"%":l.push(a);break;default:for(A=c;A>>0])}r+=2}else l.push(a),r+=1}return l};function _emscripten_log(e,t,r){var i=formatString(t>>>=0,r>>>=0),n=UTF8ArrayToString(i);emscriptenLog(e,n)}function _emscripten_get_compiler_setting(e){throw"You must build with -sRETAIN_COMPILER_SETTINGS for getCompilerSetting or emscripten_get_compiler_setting to work"}_emscripten_log.sig="vipp",_emscripten_get_compiler_setting.sig="pp";var _emscripten_has_asyncify=()=>0;_emscripten_has_asyncify.sig="i";var _emscripten_debugger=()=>{};function _emscripten_print_double(e,t,r){var i=e+"";return(t>>>=0)?stringToUTF8(i,t,r):lengthBytesUTF8(i)}function _emscripten_asm_const_double(e,t,r){return runEmAsmFunction(e>>>=0,t>>>=0,r>>>=0)}_emscripten_debugger.sig="v",_emscripten_print_double.sig="idpi",_emscripten_asm_const_double.sig="dppp";var runMainThreadEmAsm=(e,t,r,i)=>{var n=readEmAsmArgs(t,r);return ASM_CONSTS[e](...n)};function _emscripten_asm_const_int_sync_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,1)}function _emscripten_asm_const_ptr_sync_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,1)}_emscripten_asm_const_int_sync_on_main_thread.sig="ippp",_emscripten_asm_const_ptr_sync_on_main_thread.sig="pppp";var _emscripten_asm_const_double_sync_on_main_thread=_emscripten_asm_const_int_sync_on_main_thread;function _emscripten_asm_const_async_on_main_thread(e,t,r){return runMainThreadEmAsm(e>>>=0,t>>>=0,r>>>=0,0)}_emscripten_asm_const_double_sync_on_main_thread.sig="dppp",_emscripten_asm_const_async_on_main_thread.sig="vppp";var jstoi_s=Number;function __Unwind_Backtrace(e,t){e>>>=0,t>>>=0;for(var r=getCallstack().split("\n"),i=0;i>>=0,err("Warning: _Unwind_RaiseException is not correctly implemented"),___cxa_throw(e,0,0)}function __Unwind_DeleteException(e){err("TODO: Unwind_DeleteException")}__Unwind_Backtrace.sig="ipp",__Unwind_GetIPInfo.sig="ppp",__Unwind_FindEnclosingFunction.sig="pp",__Unwind_RaiseException.sig="ip",__Unwind_DeleteException.sig="vp";var getDynCaller=(e,t)=>(...r)=>dynCall(e,t,r),_emscripten_exit_with_live_runtime=()=>{throw"unwind"};_emscripten_exit_with_live_runtime.sig="v";var _emscripten_force_exit=e=>{__emscripten_runtime_keepalive_clear(),_exit(e)};function _emscripten_outn(e,t){return out(UTF8ToString(e>>>=0,t>>>=0))}function _emscripten_errn(e,t){return err(UTF8ToString(e>>>=0,t>>>=0))}_emscripten_force_exit.sig="vi",_emscripten_outn.sig="vpp",_emscripten_errn.sig="vpp";var _emscripten_throw_number=e=>{throw e};function _emscripten_throw_string(e){throw UTF8ToString(e>>>=0)}_emscripten_throw_number.sig="vd",_emscripten_throw_string.sig="vp";var runtimeKeepalivePush=()=>{runtimeKeepaliveCounter+=1};runtimeKeepalivePush.sig="v";var runtimeKeepalivePop=()=>{runtimeKeepaliveCounter-=1};runtimeKeepalivePop.sig="v";var _emscripten_runtime_keepalive_push=runtimeKeepalivePush;_emscripten_runtime_keepalive_push.sig="v";var _emscripten_runtime_keepalive_pop=runtimeKeepalivePop;_emscripten_runtime_keepalive_pop.sig="v";var _emscripten_runtime_keepalive_check=keepRuntimeAlive;_emscripten_runtime_keepalive_check.sig="i";var asmjsMangle=e=>("__main_argc_argv"==e&&(e="main"),e.startsWith("dynCall_")?e:"_"+e),___global_base=1024;function __emscripten_fs_load_embedded_files(e){e>>>=0;do{var t=HEAPU32[e>>>2>>>0],r=HEAPU32[(e+=4)>>>2>>>0],i=HEAPU32[(e+=4)>>>2>>>0];e+=4;var n=UTF8ToString(t);FS.createPath("/",PATH.dirname(n),!0,!0),FS.createDataFile(n,null,HEAP8.subarray(i>>>0,i+r>>>0),!0,!0,!0)}while(HEAPU32[e>>>2>>>0])}__emscripten_fs_load_embedded_files.sig="vp";var POINTER_SIZE=4;function getNativeTypeSize(e){switch(e){case"i1":case"i8":case"u8":return 1;case"i16":case"u16":return 2;case"i32":case"u32":case"float":return 4;case"i64":case"u64":case"double":return 8;default:if("*"===e[e.length-1])return POINTER_SIZE;if("i"===e[0]){let t=Number(e.substr(1));return assert(t%8==0,"getNativeTypeSize invalid bits ".concat(t,", ").concat(e," type")),t/8}return 0}}var STACK_SIZE=65536,STACK_ALIGN=16,ASSERTIONS=0,cwrap=(e,t,r,i)=>{var n=!r||r.every((e=>"number"===e||"boolean"===e));return"string"!==t&&n&&!i?getCFunc(e):(...n)=>ccall(e,t,r,n,i)},removeFunction=e=>{functionsInTableMap.delete(getWasmTableEntry(e)),setWasmTableEntry(e,null),freeTableIndexes.push(e)},_emscripten_math_cbrt=Math.cbrt;_emscripten_math_cbrt.sig="dd";var _emscripten_math_pow=Math.pow;_emscripten_math_pow.sig="ddd";var _emscripten_math_random=Math.random;_emscripten_math_random.sig="d";var _emscripten_math_sign=Math.sign;_emscripten_math_sign.sig="dd";var _emscripten_math_sqrt=Math.sqrt;_emscripten_math_sqrt.sig="dd";var _emscripten_math_exp=Math.exp;_emscripten_math_exp.sig="dd";var _emscripten_math_expm1=Math.expm1;_emscripten_math_expm1.sig="dd";var _emscripten_math_fmod=(e,t)=>e%t;_emscripten_math_fmod.sig="ddd";var _emscripten_math_log=Math.log;_emscripten_math_log.sig="dd";var _emscripten_math_log1p=Math.log1p;_emscripten_math_log1p.sig="dd";var _emscripten_math_log10=Math.log10;_emscripten_math_log10.sig="dd";var _emscripten_math_log2=Math.log2;_emscripten_math_log2.sig="dd";var _emscripten_math_round=Math.round;_emscripten_math_round.sig="dd";var _emscripten_math_acos=Math.acos;_emscripten_math_acos.sig="dd";var _emscripten_math_acosh=Math.acosh;_emscripten_math_acosh.sig="dd";var _emscripten_math_asin=Math.asin;_emscripten_math_asin.sig="dd";var _emscripten_math_asinh=Math.asinh;_emscripten_math_asinh.sig="dd";var _emscripten_math_atan=Math.atan;_emscripten_math_atan.sig="dd";var _emscripten_math_atanh=Math.atanh;_emscripten_math_atanh.sig="dd";var _emscripten_math_atan2=Math.atan2;_emscripten_math_atan2.sig="ddd";var _emscripten_math_cos=Math.cos;_emscripten_math_cos.sig="dd";var _emscripten_math_cosh=Math.cosh;function _emscripten_math_hypot(e,t){t>>>=0;for(var r=[],i=0;i>>3>>>0]);return Math.hypot(...r)}_emscripten_math_cosh.sig="dd",_emscripten_math_hypot.sig="dip";var _emscripten_math_sin=Math.sin;_emscripten_math_sin.sig="dd";var _emscripten_math_sinh=Math.sinh;_emscripten_math_sinh.sig="dd";var _emscripten_math_tan=Math.tan;_emscripten_math_tan.sig="dd";var _emscripten_math_tanh=Math.tanh;function intArrayToString(e){for(var t=[],r=0;r255&&(i&=255),t.push(String.fromCharCode(i))}return t.join("")}_emscripten_math_tanh.sig="dd";var AsciiToString=e=>{e>>>=0;for(var t="";;){var r=HEAPU8[e++>>>0];if(!r)return t;t+=String.fromCharCode(r)}},JSEvents={removeAllEventListeners(){for(;JSEvents.eventHandlers.length;)JSEvents._removeHandler(JSEvents.eventHandlers.length-1);JSEvents.deferredCalls=[]},inEventHandler:0,deferredCalls:[],deferCall(e,t,r){function i(e,t){if(e.length!=t.length)return!1;for(var r in e)if(e[r]!=t[r])return!1;return!0}for(var n of JSEvents.deferredCalls)if(n.targetFunction==e&&i(n.argsList,r))return;JSEvents.deferredCalls.push({targetFunction:e,precedence:t,argsList:r}),JSEvents.deferredCalls.sort(((e,t)=>e.precedencet.targetFunction!=e))},canPerformEventHandlerRequests:()=>navigator.userActivation?navigator.userActivation.isActive:JSEvents.inEventHandler&&JSEvents.currentEventHandler.allowsDeferredCalls,runDeferredCalls(){if(JSEvents.canPerformEventHandlerRequests()){var e=JSEvents.deferredCalls;for(var t of(JSEvents.deferredCalls=[],e))t.targetFunction(...t.argsList)}},eventHandlers:[],removeAllHandlersOnTarget:(e,t)=>{for(var r=0;re?e==window?"#window":e==screen?"#screen":(null==e?void 0:e.nodeName)||"":"",fullscreenEnabled:()=>document.fullscreenEnabled||document.webkitFullscreenEnabled},maybeCStringToJsString=e=>e>2?UTF8ToString(e):e,specialHTMLTargets=[0,typeof document<"u"?document:0,typeof window<"u"?window:0],findEventTarget=e=>(e=maybeCStringToJsString(e),specialHTMLTargets[e]||(typeof document<"u"?document.querySelector(e):void 0)),registerKeyEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.keyEvent||(JSEvents.keyEvent=_malloc(160));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:i,handlerFunc:e=>{var r=JSEvents.keyEvent;HEAPF64[r>>>3>>>0]=e.timeStamp;var a=r>>>2;HEAP32[a+2>>>0]=e.location,HEAP8[r+12>>>0]=e.ctrlKey,HEAP8[r+13>>>0]=e.shiftKey,HEAP8[r+14>>>0]=e.altKey,HEAP8[r+15>>>0]=e.metaKey,HEAP8[r+16>>>0]=e.repeat,HEAP32[a+5>>>0]=e.charCode,HEAP32[a+6>>>0]=e.keyCode,HEAP32[a+7>>>0]=e.which,stringToUTF8(e.key||"",r+32,32),stringToUTF8(e.code||"",r+64,32),stringToUTF8(e.char||"",r+96,32),stringToUTF8(e.locale||"",r+128,32),getWasmTableEntry(i)(n,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)},findCanvasEventTarget=findEventTarget;function _emscripten_set_keypress_callback_on_thread(e,t,r,i,n){return registerKeyEventCallback(e>>>=0,t>>>=0,r,i>>>=0,1,"keypress",n>>>=0)}function _emscripten_set_keydown_callback_on_thread(e,t,r,i,n){return registerKeyEventCallback(e>>>=0,t>>>=0,r,i>>>=0,2,"keydown",n>>>=0)}function _emscripten_set_keyup_callback_on_thread(e,t,r,i,n){return registerKeyEventCallback(e>>>=0,t>>>=0,r,i>>>=0,3,"keyup",n>>>=0)}_emscripten_set_keypress_callback_on_thread.sig="ippipp",_emscripten_set_keydown_callback_on_thread.sig="ippipp",_emscripten_set_keyup_callback_on_thread.sig="ippipp";var getBoundingClientRect=e=>specialHTMLTargets.indexOf(e)<0?e.getBoundingClientRect():{left:0,top:0},fillMouseEventData=(e,t,r)=>{HEAPF64[e>>>3>>>0]=t.timeStamp;var i=e>>>2;HEAP32[i+2>>>0]=t.screenX,HEAP32[i+3>>>0]=t.screenY,HEAP32[i+4>>>0]=t.clientX,HEAP32[i+5>>>0]=t.clientY,HEAP8[e+24>>>0]=t.ctrlKey,HEAP8[e+25>>>0]=t.shiftKey,HEAP8[e+26>>>0]=t.altKey,HEAP8[e+27>>>0]=t.metaKey,HEAP16[2*i+14>>>0]=t.button,HEAP16[2*i+15>>>0]=t.buttons,HEAP32[i+8>>>0]=t.movementX,HEAP32[i+9>>>0]=t.movementY;var n=getBoundingClientRect(r);HEAP32[i+10>>>0]=t.clientX-(0|n.left),HEAP32[i+11>>>0]=t.clientY-(0|n.top)},registerMouseEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.mouseEvent||(JSEvents.mouseEvent=_malloc(64));var o={target:e=findEventTarget(e),allowsDeferredCalls:"mousemove"!=a&&"mouseenter"!=a&&"mouseleave"!=a,eventTypeString:a,callbackfunc:i,handlerFunc:(r=event)=>{fillMouseEventData(JSEvents.mouseEvent,r,e),getWasmTableEntry(i)(n,JSEvents.mouseEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_click_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,4,"click",n>>>=0)}function _emscripten_set_mousedown_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,5,"mousedown",n>>>=0)}function _emscripten_set_mouseup_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,6,"mouseup",n>>>=0)}function _emscripten_set_dblclick_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,7,"dblclick",n>>>=0)}function _emscripten_set_mousemove_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,8,"mousemove",n>>>=0)}function _emscripten_set_mouseenter_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,33,"mouseenter",n>>>=0)}function _emscripten_set_mouseleave_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,34,"mouseleave",n>>>=0)}function _emscripten_set_mouseover_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,35,"mouseover",n>>>=0)}function _emscripten_set_mouseout_callback_on_thread(e,t,r,i,n){return registerMouseEventCallback(e>>>=0,t>>>=0,r,i>>>=0,36,"mouseout",n>>>=0)}function _emscripten_get_mouse_status(e){return e>>>=0,JSEvents.mouseEvent?(HEAP8.set(HEAP8.subarray(JSEvents.mouseEvent>>>0,JSEvents.mouseEvent+64>>>0),e>>>0),0):-7}_emscripten_set_click_callback_on_thread.sig="ippipp",_emscripten_set_mousedown_callback_on_thread.sig="ippipp",_emscripten_set_mouseup_callback_on_thread.sig="ippipp",_emscripten_set_dblclick_callback_on_thread.sig="ippipp",_emscripten_set_mousemove_callback_on_thread.sig="ippipp",_emscripten_set_mouseenter_callback_on_thread.sig="ippipp",_emscripten_set_mouseleave_callback_on_thread.sig="ippipp",_emscripten_set_mouseover_callback_on_thread.sig="ippipp",_emscripten_set_mouseout_callback_on_thread.sig="ippipp",_emscripten_get_mouse_status.sig="ip";var registerWheelEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.wheelEvent||(JSEvents.wheelEvent=_malloc(96));var o={target:e,allowsDeferredCalls:!0,eventTypeString:a,callbackfunc:i,handlerFunc:(r=event)=>{var a=JSEvents.wheelEvent;fillMouseEventData(a,r,e),HEAPF64[a+64>>>3>>>0]=r.deltaX,HEAPF64[a+72>>>3>>>0]=r.deltaY,HEAPF64[a+80>>>3>>>0]=r.deltaZ,HEAP32[a+88>>>2>>>0]=r.deltaMode,getWasmTableEntry(i)(n,a,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_wheel_callback_on_thread(e,t,r,i,n){return t>>>=0,i>>>=0,n>>>=0,(e=findEventTarget(e>>>=0))?typeof e.onwheel<"u"?registerWheelEventCallback(e,t,r,i,9,"wheel",n):-1:-4}_emscripten_set_wheel_callback_on_thread.sig="ippipp";var registerUiEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.uiEvent||(JSEvents.uiEvent=_malloc(36));var o={target:e=findEventTarget(e),eventTypeString:a,callbackfunc:i,handlerFunc:(r=event)=>{if(r.target==e){var a=document.body;if(a){var s=JSEvents.uiEvent;HEAP32[s>>>2>>>0]=0,HEAP32[s+4>>>2>>>0]=a.clientWidth,HEAP32[s+8>>>2>>>0]=a.clientHeight,HEAP32[s+12>>>2>>>0]=innerWidth,HEAP32[s+16>>>2>>>0]=innerHeight,HEAP32[s+20>>>2>>>0]=outerWidth,HEAP32[s+24>>>2>>>0]=outerHeight,HEAP32[s+28>>>2>>>0]=0|pageXOffset,HEAP32[s+32>>>2>>>0]=0|pageYOffset,getWasmTableEntry(i)(n,s,t)&&r.preventDefault()}}},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_resize_callback_on_thread(e,t,r,i,n){return registerUiEventCallback(e>>>=0,t>>>=0,r,i>>>=0,10,"resize",n>>>=0)}function _emscripten_set_scroll_callback_on_thread(e,t,r,i,n){return registerUiEventCallback(e>>>=0,t>>>=0,r,i>>>=0,11,"scroll",n>>>=0)}_emscripten_set_resize_callback_on_thread.sig="ippipp",_emscripten_set_scroll_callback_on_thread.sig="ippipp";var registerFocusEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.focusEvent||(JSEvents.focusEvent=_malloc(256));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{var r=JSEvents.getNodeNameForTarget(e.target),a=e.target.id?e.target.id:"",s=JSEvents.focusEvent;stringToUTF8(r,s+0,128),stringToUTF8(a,s+128,128),getWasmTableEntry(i)(n,s,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_blur_callback_on_thread(e,t,r,i,n){return registerFocusEventCallback(e>>>=0,t>>>=0,r,i>>>=0,12,"blur",n>>>=0)}function _emscripten_set_focus_callback_on_thread(e,t,r,i,n){return registerFocusEventCallback(e>>>=0,t>>>=0,r,i>>>=0,13,"focus",n>>>=0)}function _emscripten_set_focusin_callback_on_thread(e,t,r,i,n){return registerFocusEventCallback(e>>>=0,t>>>=0,r,i>>>=0,14,"focusin",n>>>=0)}function _emscripten_set_focusout_callback_on_thread(e,t,r,i,n){return registerFocusEventCallback(e>>>=0,t>>>=0,r,i>>>=0,15,"focusout",n>>>=0)}_emscripten_set_blur_callback_on_thread.sig="ippipp",_emscripten_set_focus_callback_on_thread.sig="ippipp",_emscripten_set_focusin_callback_on_thread.sig="ippipp",_emscripten_set_focusout_callback_on_thread.sig="ippipp";var fillDeviceOrientationEventData=(e,t,r)=>{HEAPF64[e>>>3>>>0]=t.alpha,HEAPF64[e+8>>>3>>>0]=t.beta,HEAPF64[e+16>>>3>>>0]=t.gamma,HEAP8[e+24>>>0]=t.absolute},registerDeviceOrientationEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.deviceOrientationEvent||(JSEvents.deviceOrientationEvent=_malloc(32));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:i,handlerFunc:(r=event)=>{fillDeviceOrientationEventData(JSEvents.deviceOrientationEvent,r,e),getWasmTableEntry(i)(n,JSEvents.deviceOrientationEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_deviceorientation_callback_on_thread(e,t,r,i){return registerDeviceOrientationEventCallback(2,e>>>=0,t,r>>>=0,16,"deviceorientation",i>>>=0)}function _emscripten_get_deviceorientation_status(e){return e>>>=0,JSEvents.deviceOrientationEvent?(HEAP32.set(HEAP32.subarray(JSEvents.deviceOrientationEvent>>>0,32),e>>>0),0):-7}_emscripten_set_deviceorientation_callback_on_thread.sig="ipipp",_emscripten_get_deviceorientation_status.sig="ip";var fillDeviceMotionEventData=(e,t,r)=>{var i=t.acceleration,n=t.accelerationIncludingGravity,a=t.rotationRate;i=i||{},n=n||{},a=a||{},HEAPF64[e>>>3>>>0]=i.x,HEAPF64[e+8>>>3>>>0]=i.y,HEAPF64[e+16>>>3>>>0]=i.z,HEAPF64[e+24>>>3>>>0]=n.x,HEAPF64[e+32>>>3>>>0]=n.y,HEAPF64[e+40>>>3>>>0]=n.z,HEAPF64[e+48>>>3>>>0]=a.alpha,HEAPF64[e+56>>>3>>>0]=a.beta,HEAPF64[e+64>>>3>>>0]=a.gamma},registerDeviceMotionEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.deviceMotionEvent||(JSEvents.deviceMotionEvent=_malloc(80));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:i,handlerFunc:(r=event)=>{fillDeviceMotionEventData(JSEvents.deviceMotionEvent,r,e),getWasmTableEntry(i)(n,JSEvents.deviceMotionEvent,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_devicemotion_callback_on_thread(e,t,r,i){return registerDeviceMotionEventCallback(2,e>>>=0,t,r>>>=0,17,"devicemotion",i>>>=0)}function _emscripten_get_devicemotion_status(e){return e>>>=0,JSEvents.deviceMotionEvent?(HEAP32.set(HEAP32.subarray(JSEvents.deviceMotionEvent>>>0,80),e>>>0),0):-7}_emscripten_set_devicemotion_callback_on_thread.sig="ipipp",_emscripten_get_devicemotion_status.sig="ip";var screenOrientation=()=>{if(window.screen)return screen.orientation||screen.mozOrientation||screen.webkitOrientation},fillOrientationChangeEventData=e=>{var t=0,r=0,i=screenOrientation();"object"==typeof i?((t=["portrait-primary","portrait-secondary","landscape-primary","landscape-secondary"].indexOf(i.type))<0&&(t=["portrait","portrait","landscape","landscape"].indexOf(i.type)),t>=0&&(t=1<>>2>>>0]=t,HEAP32[e+4>>>2>>>0]=r},registerOrientationChangeEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.orientationChangeEvent||(JSEvents.orientationChangeEvent=_malloc(8));var o={target:e,eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{var r=JSEvents.orientationChangeEvent;fillOrientationChangeEventData(r),getWasmTableEntry(i)(n,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_orientationchange_callback_on_thread(e,t,r,i){return e>>>=0,r>>>=0,i>>>=0,window.screen&&screen.orientation?registerOrientationChangeEventCallback(screen.orientation,e,t,r,18,"change",i):-1}function _emscripten_get_orientation_status(e){return e>>>=0,!screenOrientation()&&typeof orientation>"u"?-1:(fillOrientationChangeEventData(e),0)}_emscripten_set_orientationchange_callback_on_thread.sig="ipipp",_emscripten_get_orientation_status.sig="ip";var _emscripten_lock_orientation=e=>{var t,r=[];if(1&e&&r.push("portrait-primary"),2&e&&r.push("portrait-secondary"),4&e&&r.push("landscape-primary"),8&e&&r.push("landscape-secondary"),screen.lockOrientation)t=screen.lockOrientation(r);else if(screen.mozLockOrientation)t=screen.mozLockOrientation(r);else{if(!screen.webkitLockOrientation)return-1;t=screen.webkitLockOrientation(r)}return t?0:-6};_emscripten_lock_orientation.sig="ii";var _emscripten_unlock_orientation=()=>{if(screen.unlockOrientation)screen.unlockOrientation();else if(screen.mozUnlockOrientation)screen.mozUnlockOrientation();else{if(!screen.webkitUnlockOrientation)return-1;screen.webkitUnlockOrientation()}return 0};_emscripten_unlock_orientation.sig="i";var fillFullscreenChangeEventData=e=>{var t=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement,r=!!t;HEAP8[e>>>0]=r,HEAP8[e+1>>>0]=JSEvents.fullscreenEnabled();var i=r?t:JSEvents.previousFullscreenElement,n=JSEvents.getNodeNameForTarget(i),a=(null==i?void 0:i.id)||"";stringToUTF8(n,e+2,128),stringToUTF8(a,e+130,128),HEAP32[e+260>>>2>>>0]=i?i.clientWidth:0,HEAP32[e+264>>>2>>>0]=i?i.clientHeight:0,HEAP32[e+268>>>2>>>0]=screen.width,HEAP32[e+272>>>2>>>0]=screen.height,r&&(JSEvents.previousFullscreenElement=t)},registerFullscreenChangeEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.fullscreenChangeEvent||(JSEvents.fullscreenChangeEvent=_malloc(276));var o={target:e,eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{var r=JSEvents.fullscreenChangeEvent;fillFullscreenChangeEventData(r),getWasmTableEntry(i)(n,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_fullscreenchange_callback_on_thread(e,t,r,i,n){return e>>>=0,t>>>=0,i>>>=0,n>>>=0,JSEvents.fullscreenEnabled()?(e=findEventTarget(e))?(registerFullscreenChangeEventCallback(e,t,r,i,19,"webkitfullscreenchange",n),registerFullscreenChangeEventCallback(e,t,r,i,19,"fullscreenchange",n)):-4:-1}function _emscripten_get_fullscreen_status(e){return e>>>=0,JSEvents.fullscreenEnabled()?(fillFullscreenChangeEventData(e),0):-1}function _emscripten_get_canvas_element_size(e,t,r){t>>>=0,r>>>=0;var i=findCanvasEventTarget(e>>>=0);if(!i)return-4;HEAP32[t>>>2>>>0]=i.width,HEAP32[r>>>2>>>0]=i.height}_emscripten_set_fullscreenchange_callback_on_thread.sig="ippipp",_emscripten_get_fullscreen_status.sig="ip",_emscripten_get_canvas_element_size.sig="ippp";var getCanvasElementSize=e=>{var t=stackSave(),r=stackAlloc(8),i=r+4,n=(_emscripten_get_canvas_element_size(stringToUTF8OnStack(e.id),r,i),[HEAP32[r>>>2>>>0],HEAP32[i>>>2>>>0]]);return stackRestore(t),n};function _emscripten_set_canvas_element_size(e,t,r){var i=findCanvasEventTarget(e>>>=0);return i?(i.width=t,i.height=r,0):-4}_emscripten_set_canvas_element_size.sig="ipii";var setCanvasElementSize=(e,t,r)=>{if(e.controlTransferredOffscreen){var i=stackSave();_emscripten_set_canvas_element_size(stringToUTF8OnStack(e.id),t,r),stackRestore(i)}else e.width=t,e.height=r},registerRestoreOldStyle=e=>{var t=getCanvasElementSize(e),r=t[0],i=t[1],n=e.style.width,a=e.style.height,s=e.style.backgroundColor,o=document.body.style.backgroundColor,l=e.style.paddingLeft,c=e.style.paddingRight,_=e.style.paddingTop,u=e.style.paddingBottom,d=e.style.marginLeft,p=e.style.marginRight,f=e.style.marginTop,m=e.style.marginBottom,h=document.body.style.margin,g=document.documentElement.style.overflow,v=document.body.scroll,y=e.style.imageRendering;function b(){document.fullscreenElement||document.webkitFullscreenElement||(document.removeEventListener("fullscreenchange",b),document.removeEventListener("webkitfullscreenchange",b),setCanvasElementSize(e,r,i),e.style.width=n,e.style.height=a,e.style.backgroundColor=s,o||(document.body.style.backgroundColor="white"),document.body.style.backgroundColor=o,e.style.paddingLeft=l,e.style.paddingRight=c,e.style.paddingTop=_,e.style.paddingBottom=u,e.style.marginLeft=d,e.style.marginRight=p,e.style.marginTop=f,e.style.marginBottom=m,document.body.style.margin=h,document.documentElement.style.overflow=g,document.body.scroll=v,e.style.imageRendering=y,e.GLctxObject&&e.GLctxObject.GLctx.viewport(0,0,r,i),currentFullscreenStrategy.canvasResizedCallback&&getWasmTableEntry(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData))}return document.addEventListener("fullscreenchange",b),document.addEventListener("webkitfullscreenchange",b),b},setLetterbox=(e,t,r)=>{e.style.paddingLeft=e.style.paddingRight=r+"px",e.style.paddingTop=e.style.paddingBottom=t+"px"},JSEvents_resizeCanvasForFullscreen=(e,t)=>{var r,i,n=registerRestoreOldStyle(e),a=t.softFullscreen?innerWidth:screen.width,s=t.softFullscreen?innerHeight:screen.height,o=getBoundingClientRect(e),l=o.width,c=o.height,_=getCanvasElementSize(e),u=_[0],d=_[1];if(3==t.scaleMode)setLetterbox(e,(s-c)/2,(a-l)/2),a=l,s=c;else if(2==t.scaleMode)if(a*d{if((0!=t.scaleMode||0!=t.canvasResolutionScaleMode)&&JSEvents_resizeCanvasForFullscreen(e,t),e.requestFullscreen)e.requestFullscreen();else{if(!e.webkitRequestFullscreen)return JSEvents.fullscreenEnabled()?-3:-1;e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}return currentFullscreenStrategy=t,t.canvasResizedCallback&&getWasmTableEntry(t.canvasResizedCallback)(37,0,t.canvasResizedCallbackUserData),0},hideEverythingExceptGivenElement=e=>{for(var t=e,r=t.parentNode,i=[];t!=document.body;){for(var n=r.children,a=0;a{for(var t of e)t.node.style.display=t.displayState},currentFullscreenStrategy={},restoreOldWindowedStyle=null,softFullscreenResizeWebGLRenderTarget=()=>{var e,t=devicePixelRatio,r=2==currentFullscreenStrategy.canvasResolutionScaleMode,i=2==currentFullscreenStrategy.scaleMode,n=0!=currentFullscreenStrategy.canvasResolutionScaleMode,a=3==currentFullscreenStrategy.scaleMode,s=r?Math.round(innerWidth*t):innerWidth,o=r?Math.round(innerHeight*t):innerHeight,l=s,c=o,_=currentFullscreenStrategy.target,u=getCanvasElementSize(_),d=u[0],p=u[1];if(i&&(l*pd*c&&(l=c*d/p|0),e=(o-c)/2|0),n&&(setCanvasElementSize(_,l,c),_.GLctxObject&&_.GLctxObject.GLctx.viewport(0,0,l,c)),r&&(e/=t,l/=t,c/=t,l=Math.round(1e4*l)/1e4,c=Math.round(1e4*c)/1e4,e=Math.round(1e4*e)/1e4),a){var f=(innerHeight-jstoi_q(_.style.height))/2,m=(innerWidth-jstoi_q(_.style.width))/2;setLetterbox(_,f,m)}else _.style.width=l+"px",_.style.height=c+"px",m=(innerWidth-l)/2,setLetterbox(_,e,m);!a&¤tFullscreenStrategy.canvasResizedCallback&&getWasmTableEntry(currentFullscreenStrategy.canvasResizedCallback)(37,0,currentFullscreenStrategy.canvasResizedCallbackUserData)},doRequestFullscreen=(e,t)=>JSEvents.fullscreenEnabled()?(e=findEventTarget(e))?e.requestFullscreen||e.webkitRequestFullscreen?JSEvents.canPerformEventHandlerRequests()?JSEvents_requestFullscreen(e,t):t.deferUntilInEventHandler?(JSEvents.deferCall(JSEvents_requestFullscreen,1,[e,t]),1):-2:-3:-4:-1;function _emscripten_request_fullscreen(e,t){return doRequestFullscreen(e>>>=0,{scaleMode:0,canvasResolutionScaleMode:0,filteringMode:0,deferUntilInEventHandler:t,canvasResizedCallbackTargetThread:2})}function _emscripten_request_fullscreen_strategy(e,t,r){e>>>=0;var i={scaleMode:HEAP32[(r>>>=0)>>>2>>>0],canvasResolutionScaleMode:HEAP32[r+4>>>2>>>0],filteringMode:HEAP32[r+8>>>2>>>0],deferUntilInEventHandler:t,canvasResizedCallback:HEAP32[r+12>>>2>>>0],canvasResizedCallbackUserData:HEAP32[r+16>>>2>>>0]};return doRequestFullscreen(e,i)}function _emscripten_enter_soft_fullscreen(e,t){if(t>>>=0,!(e=findEventTarget(e>>>=0)))return-4;var r={scaleMode:HEAP32[t>>>2>>>0],canvasResolutionScaleMode:HEAP32[t+4>>>2>>>0],filteringMode:HEAP32[t+8>>>2>>>0],canvasResizedCallback:HEAP32[t+12>>>2>>>0],canvasResizedCallbackUserData:HEAP32[t+16>>>2>>>0],target:e,softFullscreen:!0},i=JSEvents_resizeCanvasForFullscreen(e,r);document.documentElement.style.overflow="hidden",document.body.scroll="no",document.body.style.margin="0px";var n=hideEverythingExceptGivenElement(e);return restoreOldWindowedStyle=function(){i(),restoreHiddenElements(n),removeEventListener("resize",softFullscreenResizeWebGLRenderTarget),r.canvasResizedCallback&&getWasmTableEntry(r.canvasResizedCallback)(37,0,r.canvasResizedCallbackUserData),currentFullscreenStrategy=0},currentFullscreenStrategy=r,addEventListener("resize",softFullscreenResizeWebGLRenderTarget),r.canvasResizedCallback&&getWasmTableEntry(r.canvasResizedCallback)(37,0,r.canvasResizedCallbackUserData),0}_emscripten_request_fullscreen.sig="ipi",_emscripten_request_fullscreen_strategy.sig="ipip",_emscripten_enter_soft_fullscreen.sig="ipp";var _emscripten_exit_soft_fullscreen=()=>(null==restoreOldWindowedStyle||restoreOldWindowedStyle(),restoreOldWindowedStyle=null,0);_emscripten_exit_soft_fullscreen.sig="i";var _emscripten_exit_fullscreen=()=>{if(!JSEvents.fullscreenEnabled())return-1;JSEvents.removeDeferredCalls(JSEvents_requestFullscreen);var e=specialHTMLTargets[1];if(e.exitFullscreen)e.fullscreenElement&&e.exitFullscreen();else{if(!e.webkitExitFullscreen)return-1;e.webkitFullscreenElement&&e.webkitExitFullscreen()}return 0};_emscripten_exit_fullscreen.sig="i";var fillPointerlockChangeEventData=e=>{var t=document.pointerLockElement||document.mozPointerLockElement||document.webkitPointerLockElement||document.msPointerLockElement,r=!!t;HEAP8[e>>>0]=r;var i=JSEvents.getNodeNameForTarget(t),n=(null==t?void 0:t.id)||"";stringToUTF8(i,e+1,128),stringToUTF8(n,e+129,128)},registerPointerlockChangeEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.pointerlockChangeEvent||(JSEvents.pointerlockChangeEvent=_malloc(257));var o={target:e,eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{var r=JSEvents.pointerlockChangeEvent;fillPointerlockChangeEventData(r),getWasmTableEntry(i)(n,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_pointerlockchange_callback_on_thread(e,t,r,i,n){return e>>>=0,t>>>=0,i>>>=0,n>>>=0,document&&document.body&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?(e=findEventTarget(e))?(registerPointerlockChangeEventCallback(e,t,r,i,20,"mozpointerlockchange",n),registerPointerlockChangeEventCallback(e,t,r,i,20,"webkitpointerlockchange",n),registerPointerlockChangeEventCallback(e,t,r,i,20,"mspointerlockchange",n),registerPointerlockChangeEventCallback(e,t,r,i,20,"pointerlockchange",n)):-4:-1}_emscripten_set_pointerlockchange_callback_on_thread.sig="ippipp";var registerPointerlockErrorEventCallback=(e,t,r,i,n,a,s)=>{var o={target:e,eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{getWasmTableEntry(i)(n,0,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_pointerlockerror_callback_on_thread(e,t,r,i,n){return e>>>=0,t>>>=0,i>>>=0,n>>>=0,document&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?(e=findEventTarget(e))?(registerPointerlockErrorEventCallback(e,t,r,i,38,"mozpointerlockerror",n),registerPointerlockErrorEventCallback(e,t,r,i,38,"webkitpointerlockerror",n),registerPointerlockErrorEventCallback(e,t,r,i,38,"mspointerlockerror",n),registerPointerlockErrorEventCallback(e,t,r,i,38,"pointerlockerror",n)):-4:-1}function _emscripten_get_pointerlock_status(e){return(e>>>=0)&&fillPointerlockChangeEventData(e),document.body&&(document.body.requestPointerLock||document.body.mozRequestPointerLock||document.body.webkitRequestPointerLock||document.body.msRequestPointerLock)?0:-1}_emscripten_set_pointerlockerror_callback_on_thread.sig="ippipp",_emscripten_get_pointerlock_status.sig="ip";var requestPointerLock=e=>e.requestPointerLock?(e.requestPointerLock(),0):document.body.requestPointerLock?-3:-1;function _emscripten_request_pointerlock(e,t){return(e=findEventTarget(e>>>=0))?e.requestPointerLock?JSEvents.canPerformEventHandlerRequests()?requestPointerLock(e):t?(JSEvents.deferCall(requestPointerLock,2,[e]),1):-2:-1:-4}_emscripten_request_pointerlock.sig="ipi";var _emscripten_exit_pointerlock=()=>(JSEvents.removeDeferredCalls(requestPointerLock),document.exitPointerLock?(document.exitPointerLock(),0):-1);_emscripten_exit_pointerlock.sig="i";var _emscripten_vibrate=e=>navigator.vibrate?(navigator.vibrate(e),0):-1;function _emscripten_vibrate_pattern(e,t){if(e>>>=0,!navigator.vibrate)return-1;for(var r=[],i=0;i>>2>>>0];r.push(n)}return navigator.vibrate(r),0}_emscripten_vibrate.sig="ii",_emscripten_vibrate_pattern.sig="ipi";var fillVisibilityChangeEventData=e=>{var t=["hidden","visible","prerender","unloaded"].indexOf(document.visibilityState);HEAP8[e>>>0]=document.hidden,HEAP32[e+4>>>2>>>0]=t},registerVisibilityChangeEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.visibilityChangeEvent||(JSEvents.visibilityChangeEvent=_malloc(8));var o={target:e,eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{var r=JSEvents.visibilityChangeEvent;fillVisibilityChangeEventData(r),getWasmTableEntry(i)(n,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_visibilitychange_callback_on_thread(e,t,r,i){return e>>>=0,r>>>=0,i>>>=0,specialHTMLTargets[1]?registerVisibilityChangeEventCallback(specialHTMLTargets[1],e,t,r,21,"visibilitychange",i):-4}function _emscripten_get_visibility_status(e){return e>>>=0,typeof document.visibilityState>"u"&&typeof document.hidden>"u"?-1:(fillVisibilityChangeEventData(e),0)}_emscripten_set_visibilitychange_callback_on_thread.sig="ipipp",_emscripten_get_visibility_status.sig="ip";var registerTouchEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.touchEvent||(JSEvents.touchEvent=_malloc(1552));var o={target:e=findEventTarget(e),allowsDeferredCalls:"touchstart"==a||"touchend"==a,eventTypeString:a,callbackfunc:i,handlerFunc:r=>{var a={},s=r.touches;for(let e of s)e.isChanged=e.onTarget=0,a[e.identifier]=e;for(let e of r.changedTouches)e.isChanged=1,a[e.identifier]=e;for(let e of r.targetTouches)a[e.identifier].onTarget=1;var o=JSEvents.touchEvent;HEAPF64[o>>>3>>>0]=r.timeStamp,HEAP8[o+12>>>0]=r.ctrlKey,HEAP8[o+13>>>0]=r.shiftKey,HEAP8[o+14>>>0]=r.altKey,HEAP8[o+15>>>0]=r.metaKey;var l=o+16,c=getBoundingClientRect(e),_=0;for(let e of Object.values(a)){var u=l>>>2;if(HEAP32[u+0>>>0]=e.identifier,HEAP32[u+1>>>0]=e.screenX,HEAP32[u+2>>>0]=e.screenY,HEAP32[u+3>>>0]=e.clientX,HEAP32[u+4>>>0]=e.clientY,HEAP32[u+5>>>0]=e.pageX,HEAP32[u+6>>>0]=e.pageY,HEAP8[l+28>>>0]=e.isChanged,HEAP8[l+29>>>0]=e.onTarget,HEAP32[u+8>>>0]=e.clientX-(0|c.left),HEAP32[u+9>>>0]=e.clientY-(0|c.top),l+=48,++_>31)break}HEAP32[o+8>>>2>>>0]=_,getWasmTableEntry(i)(n,o,t)&&r.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_touchstart_callback_on_thread(e,t,r,i,n){return registerTouchEventCallback(e>>>=0,t>>>=0,r,i>>>=0,22,"touchstart",n>>>=0)}function _emscripten_set_touchend_callback_on_thread(e,t,r,i,n){return registerTouchEventCallback(e>>>=0,t>>>=0,r,i>>>=0,23,"touchend",n>>>=0)}function _emscripten_set_touchmove_callback_on_thread(e,t,r,i,n){return registerTouchEventCallback(e>>>=0,t>>>=0,r,i>>>=0,24,"touchmove",n>>>=0)}function _emscripten_set_touchcancel_callback_on_thread(e,t,r,i,n){return registerTouchEventCallback(e>>>=0,t>>>=0,r,i>>>=0,25,"touchcancel",n>>>=0)}_emscripten_set_touchstart_callback_on_thread.sig="ippipp",_emscripten_set_touchend_callback_on_thread.sig="ippipp",_emscripten_set_touchmove_callback_on_thread.sig="ippipp",_emscripten_set_touchcancel_callback_on_thread.sig="ippipp";var fillGamepadEventData=(e,t)=>{HEAPF64[e>>>3>>>0]=t.timestamp;for(var r=0;r>>3>>>0]=t.axes[r];for(r=0;r>>3>>>0]=t.buttons[r].value:HEAPF64[e+8*r+528>>>3>>>0]=t.buttons[r];for(r=0;r>>0]=t.buttons[r].pressed:HEAP8[e+r+1040>>>0]=1==t.buttons[r];HEAP8[e+1104>>>0]=t.connected,HEAP32[e+1108>>>2>>>0]=t.index,HEAP32[e+8>>>2>>>0]=t.axes.length,HEAP32[e+12>>>2>>>0]=t.buttons.length,stringToUTF8(t.id,e+1112,64),stringToUTF8(t.mapping,e+1176,64)},registerGamepadEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.gamepadEvent||(JSEvents.gamepadEvent=_malloc(1240));var o={target:findEventTarget(e),allowsDeferredCalls:!0,eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{var r=JSEvents.gamepadEvent;fillGamepadEventData(r,e.gamepad),getWasmTableEntry(i)(n,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)},_emscripten_sample_gamepad_data=()=>{try{if(navigator.getGamepads)return(JSEvents.lastGamepadState=navigator.getGamepads())?0:-1}catch(e){navigator.getGamepads=null}return-1};function _emscripten_set_gamepadconnected_callback_on_thread(e,t,r,i){return e>>>=0,r>>>=0,i>>>=0,_emscripten_sample_gamepad_data()?-1:registerGamepadEventCallback(2,e,t,r,26,"gamepadconnected",i)}function _emscripten_set_gamepaddisconnected_callback_on_thread(e,t,r,i){return e>>>=0,r>>>=0,i>>>=0,_emscripten_sample_gamepad_data()?-1:registerGamepadEventCallback(2,e,t,r,27,"gamepaddisconnected",i)}_emscripten_sample_gamepad_data.sig="i",_emscripten_set_gamepadconnected_callback_on_thread.sig="ipipp",_emscripten_set_gamepaddisconnected_callback_on_thread.sig="ipipp";var _emscripten_get_num_gamepads=()=>JSEvents.lastGamepadState.length;function _emscripten_get_gamepad_status(e,t){return t>>>=0,e<0||e>=JSEvents.lastGamepadState.length?-5:JSEvents.lastGamepadState[e]?(fillGamepadEventData(t,JSEvents.lastGamepadState[e]),0):-7}_emscripten_get_num_gamepads.sig="i",_emscripten_get_gamepad_status.sig="iip";var registerBeforeUnloadEventCallback=(e,t,r,i,n,a)=>{var s={target:findEventTarget(e),eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{var r=getWasmTableEntry(i)(n,0,t);if(r&&(r=UTF8ToString(r)),r)return e.preventDefault(),e.returnValue=r,r},useCapture:r};return JSEvents.registerOrRemoveHandler(s)};function _emscripten_set_beforeunload_callback_on_thread(e,t,r){return typeof onbeforeunload>"u"?-1:1!=(r>>>=0)?-5:registerBeforeUnloadEventCallback(2,e>>>=0,!0,t>>>=0,28,"beforeunload")}_emscripten_set_beforeunload_callback_on_thread.sig="ippp";var fillBatteryEventData=(e,t)=>{HEAPF64[e>>>3>>>0]=t.chargingTime,HEAPF64[e+8>>>3>>>0]=t.dischargingTime,HEAPF64[e+16>>>3>>>0]=t.level,HEAP8[e+24>>>0]=t.charging},battery=()=>navigator.battery||navigator.mozBattery||navigator.webkitBattery,registerBatteryEventCallback=(e,t,r,i,n,a,s)=>{JSEvents.batteryEvent||(JSEvents.batteryEvent=_malloc(32));var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{var r=JSEvents.batteryEvent;fillBatteryEventData(r,battery()),getWasmTableEntry(i)(n,r,t)&&e.preventDefault()},useCapture:r};return JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_batterychargingchange_callback_on_thread(e,t,r){return e>>>=0,t>>>=0,r>>>=0,battery()?registerBatteryEventCallback(battery(),e,!0,t,29,"chargingchange",r):-1}function _emscripten_set_batterylevelchange_callback_on_thread(e,t,r){return e>>>=0,t>>>=0,r>>>=0,battery()?registerBatteryEventCallback(battery(),e,!0,t,30,"levelchange",r):-1}function _emscripten_get_battery_status(e){return e>>>=0,battery()?(fillBatteryEventData(e,battery()),0):-1}function _emscripten_set_element_css_size(e,t,r){return(e=findEventTarget(e>>>=0))?(e.style.width=t+"px",e.style.height=r+"px",0):-4}function _emscripten_get_element_css_size(e,t,r){if(t>>>=0,r>>>=0,!(e=findEventTarget(e>>>=0)))return-4;var i=getBoundingClientRect(e);return HEAPF64[t>>>3>>>0]=i.width,HEAPF64[r>>>3>>>0]=i.height,0}_emscripten_set_batterychargingchange_callback_on_thread.sig="ippp",_emscripten_set_batterylevelchange_callback_on_thread.sig="ippp",_emscripten_get_battery_status.sig="ip",_emscripten_set_element_css_size.sig="ipdd",_emscripten_get_element_css_size.sig="ippp";var _emscripten_html5_remove_all_event_listeners=()=>JSEvents.removeAllEventListeners();_emscripten_html5_remove_all_event_listeners.sig="v";var _emscripten_request_animation_frame=function(e,t){return e>>>=0,t>>>=0,requestAnimationFrame((r=>getWasmTableEntry(e)(r,t)))};_emscripten_request_animation_frame.sig="ipp";var _emscripten_cancel_animation_frame=e=>cancelAnimationFrame(e);function _emscripten_request_animation_frame_loop(e,t){return e>>>=0,t>>>=0,requestAnimationFrame((function r(i){getWasmTableEntry(e)(i,t)&&requestAnimationFrame(r)}))}_emscripten_cancel_animation_frame.sig="vi",_emscripten_request_animation_frame_loop.sig="vpp";var _emscripten_performance_now=()=>performance.now();_emscripten_performance_now.sig="d";var _emscripten_get_device_pixel_ratio=()=>"number"==typeof devicePixelRatio&&devicePixelRatio||1;function _emscripten_get_callstack(e,t,r){t>>>=0;var i=getCallstack(e);return!t||r<=0?lengthBytesUTF8(i)+1:stringToUTF8(i,t,r)+1}_emscripten_get_device_pixel_ratio.sig="d",_emscripten_get_callstack.sig="iipi";var convertFrameToPC=e=>(abort("Cannot use convertFrameToPC (needed by __builtin_return_address) without -sUSE_OFFSET_CONVERTER"),0);function _emscripten_return_address(e){var t=jsStackTrace().split("\n");"Error"==t[0]&&t.shift();var r=t[e+3];return convertFrameToPC(r)}_emscripten_return_address.sig="pi";var UNWIND_CACHE={},saveInUnwindCache=e=>{e.forEach((e=>{var t=convertFrameToPC(e);t&&(UNWIND_CACHE[t]=e)}))};function _emscripten_stack_snapshot(){var e=jsStackTrace().split("\n");return"Error"==e[0]&&e.shift(),saveInUnwindCache(e),UNWIND_CACHE.last_addr=convertFrameToPC(e[3]),UNWIND_CACHE.last_stack=e,UNWIND_CACHE.last_addr}function _emscripten_stack_unwind_buffer(e,t,r){var i;e>>>=0,t>>>=0,UNWIND_CACHE.last_addr==e?i=UNWIND_CACHE.last_stack:("Error"==(i=jsStackTrace().split("\n"))[0]&&i.shift(),saveInUnwindCache(i));for(var n=3;i[n]&&convertFrameToPC(i[n])!=e;)++n;for(var a=0;a>>2>>>0]=convertFrameToPC(i[a+n]);return a}function _emscripten_pc_get_function(e){return abort("Cannot use emscripten_pc_get_function without -sUSE_OFFSET_CONVERTER"),0}_emscripten_stack_snapshot.sig="p",_emscripten_stack_unwind_buffer.sig="ippi",_emscripten_pc_get_function.sig="pp";var convertPCtoSourceLocation=e=>{if(UNWIND_CACHE.last_get_source_pc==e)return UNWIND_CACHE.last_source;var t,r;if(!r){var i=UNWIND_CACHE[e];if(!i)return null;((t=/\((.*):(\d+):(\d+)\)$/.exec(i))||(t=/@(.*):(\d+):(\d+)/.exec(i)))&&(r={file:t[1],line:t[2],column:t[3]})}return UNWIND_CACHE.last_get_source_pc=e,UNWIND_CACHE.last_source=r,r};function _emscripten_pc_get_file(e){var t=convertPCtoSourceLocation(e>>>=0);return t?(_emscripten_pc_get_file.ret&&_free(_emscripten_pc_get_file.ret),_emscripten_pc_get_file.ret=stringToNewUTF8(t.file),_emscripten_pc_get_file.ret):0}function _emscripten_pc_get_line(e){var t=convertPCtoSourceLocation(e>>>=0);return t?t.line:0}function _emscripten_pc_get_column(e){var t=convertPCtoSourceLocation(e>>>=0);return t&&t.column||0}_emscripten_pc_get_file.sig="pp",_emscripten_pc_get_line.sig="ip",_emscripten_pc_get_column.sig="ip";var _sched_yield=()=>0;Module._sched_yield=_sched_yield,_sched_yield.sig="i";var checkWasiClock=e=>0==e||1==e||2==e||3==e;function _clock_time_get(e,t,r,i){var n;if(convertI32PairToI53Checked(t,r),i>>>=0,!checkWasiClock(e))return 28;if(0===e)n=Date.now();else{if(!nowIsMonotonic)return 52;n=_emscripten_get_now()}var a=Math.round(1e3*n*1e3);return HEAP32[i>>>2>>>0]=a>>>0,HEAP32[i+4>>>2>>>0]=a/Math.pow(2,32)>>>0,0}function _clock_res_get(e,t){if(t>>>=0,!checkWasiClock(e))return 28;var r;if(0===e)r=1e6;else{if(!nowIsMonotonic)return 52;r=_emscripten_get_now_res()}return HEAP32[t>>>2>>>0]=r>>>0,HEAP32[t+4>>>2>>>0]=r/Math.pow(2,32)>>>0,0}_clock_time_get.sig="iiiip",_clock_res_get.sig="iip";var wasiRightsToMuslOFlags=e=>{if(2&e&&64&e)return 2;if(2&e)return 0;if(64&e)return 1;throw new FS.ErrnoError(28)},wasiOFlagsToMuslOFlags=e=>{var t=0;return 1&e&&(t|=64),8&e&&(t|=512),2&e&&(t|=65536),4&e&&(t|=128),t},_emscripten_unwind_to_js_event_loop=()=>{throw"unwind"};_emscripten_unwind_to_js_event_loop.sig="v";var safeSetTimeout=(e,t)=>setTimeout((()=>{callUserCallback(e)}),t),setImmediateWrapped=e=>{setImmediateWrapped.mapping||(setImmediateWrapped.mapping=[]);var t=setImmediateWrapped.mapping.length;return setImmediateWrapped.mapping[t]=setImmediate((()=>{setImmediateWrapped.mapping[t]=void 0,e()})),t},clearImmediateWrapped=e=>{clearImmediate(setImmediateWrapped.mapping[e]),setImmediateWrapped.mapping[e]=void 0},polyfillSetImmediate=()=>{},_emscripten_set_immediate=function(e,t){return e>>>=0,t>>>=0,emSetImmediate((()=>{callUserCallback((()=>getWasmTableEntry(e)(t)))}))};_emscripten_set_immediate.sig="ipp";var _emscripten_clear_immediate=e=>{emClearImmediate(e)};_emscripten_clear_immediate.sig="vi";var _emscripten_set_immediate_loop=function(e,t){e>>>=0,t>>>=0,emSetImmediate((function r(){callUserCallback((()=>{getWasmTableEntry(e)(t)&&emSetImmediate(r)}))}))};_emscripten_set_immediate_loop.sig="vpp";var _emscripten_set_timeout=function(e,t,r){return e>>>=0,r>>>=0,safeSetTimeout((()=>getWasmTableEntry(e)(r)),t)};_emscripten_set_timeout.sig="ipdp";var _emscripten_clear_timeout=clearTimeout;_emscripten_clear_timeout.sig="vi";var _emscripten_set_timeout_loop=function(e,t,r){return e>>>=0,r>>>=0,setTimeout((function i(){var n=_emscripten_get_now(),a=n+t;callUserCallback((()=>{getWasmTableEntry(e)(n,r)&&setTimeout(i,a-_emscripten_get_now())}))}),0)};_emscripten_set_timeout_loop.sig="vpdp";var _emscripten_set_interval=function(e,t,r){return e>>>=0,r>>>=0,setInterval((()=>{callUserCallback((()=>getWasmTableEntry(e)(r)))}),t)};_emscripten_set_interval.sig="ipdp";var _emscripten_clear_interval=e=>{clearInterval(e)};_emscripten_clear_interval.sig="vi";var registerPostMainLoop=e=>{typeof MainLoop<"u"&&MainLoop.postMainLoop.push(e)},registerPreMainLoop=e=>{typeof MainLoop<"u"&&MainLoop.preMainLoop.push(e)};function _emscripten_get_main_loop_timing(e,t){t>>>=0,(e>>>=0)&&(HEAP32[e>>>2>>>0]=MainLoop.timingMode),t&&(HEAP32[t>>>2>>>0]=MainLoop.timingValue)}function _emscripten_set_main_loop(e,t,r){var i=getWasmTableEntry(e>>>=0);setMainLoop(i,t,r)}_emscripten_get_main_loop_timing.sig="vpp",_emscripten_set_main_loop.sig="vpii";var _emscripten_set_main_loop_arg=function(e,t,r,i){e>>>=0,setMainLoop((()=>getWasmTableEntry(e)(t)),r,i,t>>>=0)};_emscripten_set_main_loop_arg.sig="vppii";var _emscripten_cancel_main_loop=()=>{MainLoop.pause(),MainLoop.func=null};_emscripten_cancel_main_loop.sig="v";var _emscripten_pause_main_loop=()=>{MainLoop.pause()};_emscripten_pause_main_loop.sig="v";var _emscripten_resume_main_loop=()=>{MainLoop.resume()};_emscripten_resume_main_loop.sig="v";var __emscripten_push_main_loop_blocker=function(e,t,r){e>>>=0,t>>>=0,r>>>=0,MainLoop.queue.push({func:()=>{getWasmTableEntry(e)(t)},name:UTF8ToString(r),counted:!0}),MainLoop.updateStatus()};__emscripten_push_main_loop_blocker.sig="vppp";var __emscripten_push_uncounted_main_loop_blocker=function(e,t,r){e>>>=0,t>>>=0,r>>>=0,MainLoop.queue.push({func:()=>{getWasmTableEntry(e)(t)},name:UTF8ToString(r),counted:!1}),MainLoop.updateStatus()};__emscripten_push_uncounted_main_loop_blocker.sig="vppp";var _emscripten_set_main_loop_expected_blockers=e=>{MainLoop.expectedBlockers=e,MainLoop.remainingBlockers=e,MainLoop.updateStatus()};_emscripten_set_main_loop_expected_blockers.sig="vi";var idsToPromises=(e,t)=>{for(var r=[],i=0;i>>2>>>0];r[i]=getPromise(n)}return r},makePromiseCallback=(e,t)=>r=>{var i=stackSave(),n=stackAlloc(POINTER_SIZE);HEAPU32[n>>>2>>>0]=0;try{var a=getWasmTableEntry(e)(n,t,r),s=HEAPU32[n>>>2>>>0]}catch(e){throw"number"!=typeof e?0:e}finally{stackRestore(i)}switch(a){case 0:return s;case 1:return getPromise(s);case 2:var o=getPromise(s);return _emscripten_promise_destroy(s),o;case 3:throw s}};function _emscripten_promise_then(e,t,r,i){t>>>=0,r>>>=0,i>>>=0;var n=getPromise(e>>>=0);return promiseMap.allocate({promise:n.then(makePromiseCallback(t,i),makePromiseCallback(r,i))})}_emscripten_promise_then.sig="ppppp";var _emscripten_promise_all=function(e,t,r){t>>>=0;var i=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.all(i).then((e=>{if(t)for(var i=0;i>>2>>>0]=n}return t}))})};_emscripten_promise_all.sig="pppp";var setPromiseResult=(e,t,r)=>{var i=t?0:3;HEAP32[e>>>2>>>0]=i,HEAPU32[e+4>>>2>>>0]=r},_emscripten_promise_all_settled=function(e,t,r){t>>>=0;var i=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.allSettled(i).then((e=>{if(t)for(var i=t,n=0;n>>=0;var i=idsToPromises(e>>>=0,r>>>=0);return promiseMap.allocate({promise:Promise.any(i).catch((e=>{if(t)for(var i=0;i>>2>>>0]=e.errors[i];throw t}))})};function _emscripten_promise_race(e,t){var r=idsToPromises(e>>>=0,t>>>=0);return promiseMap.allocate({promise:Promise.race(r)})}function _emscripten_promise_await(e,t){abort("emscripten_promise_await is only available with ASYNCIFY")}function ___cxa_call_unexpected(e){return abort("Unexpected exception thrown, this is not properly supported - aborting")}_emscripten_promise_any.sig="pppp",_emscripten_promise_race.sig="ppp",_emscripten_promise_await.sig="vpp",___cxa_call_unexpected.sig="vp";var getExceptionMessageCommon=e=>{var t=stackSave(),r=stackAlloc(4),i=stackAlloc(4);___get_exception_message(e,r,i);var n,a=HEAPU32[r>>>2>>>0],s=HEAPU32[i>>>2>>>0],o=UTF8ToString(a);return _free(a),s&&(n=UTF8ToString(s),_free(s)),stackRestore(t),[o,n]},incrementExceptionRefcount=e=>___cxa_increment_exception_refcount(e),decrementExceptionRefcount=e=>___cxa_decrement_exception_refcount(e),getExceptionMessage=e=>getExceptionMessageCommon(e),Browser={useWebGL:!1,isFullscreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init(){if(!Browser.initted){Browser.initted=!0;var e={canHandle:function(e){return!Module.noImageDecoding&&/\.(jpg|jpeg|png|bmp|webp)$/i.test(e)},handle:function(e,t,r,i){var n=new Blob([e],{type:Browser.getMimetype(t)});n.size!==e.length&&(n=new Blob([new Uint8Array(e).buffer],{type:Browser.getMimetype(t)}));var a=URL.createObjectURL(n),s=new Image;s.onload=()=>{var i=document.createElement("canvas");i.width=s.width,i.height=s.height,i.getContext("2d").drawImage(s,0,0),preloadedImages[t]=i,URL.revokeObjectURL(a),null==r||r(e)},s.onerror=e=>{err("Image ".concat(a," could not be decoded")),null==i||i()},s.src=a}};preloadPlugins.push(e);var t={canHandle:function(e){return!Module.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,r,i){var n=!1;function a(i){n||(n=!0,preloadedAudios[t]=i,null==r||r(e))}var s=new Blob([e],{type:Browser.getMimetype(t)}),o=URL.createObjectURL(s),l=new Audio;l.addEventListener("canplaythrough",(()=>a(l)),!1),l.onerror=function(r){n||(err("warning: browser could not fully decode audio ".concat(t,", trying slower base64 approach")),l.src="data:audio/x-"+t.substr(-3)+";base64,"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",i=0,n=0,a=0;a=6;){var s=i>>n-6&63;n-=6,r+=t[s]}return 2==n?(r+=t[(3&i)<<4],r+="=="):4==n&&(r+=t[(15&i)<<2],r+="="),r}(e),a(l))},l.src=o,safeSetTimeout((()=>{a(l)}),1e4)}};preloadPlugins.push(t);var r=Module.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||(()=>{}),r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||(()=>{}),r.exitPointerLock=r.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",i,!1),document.addEventListener("mozpointerlockchange",i,!1),document.addEventListener("webkitpointerlockchange",i,!1),document.addEventListener("mspointerlockchange",i,!1),Module.elementPointerLock&&r.addEventListener("click",(e=>{!Browser.pointerLock&&Module.canvas.requestPointerLock&&(Module.canvas.requestPointerLock(),e.preventDefault())}),!1))}function i(){Browser.pointerLock=document.pointerLockElement===Module.canvas||document.mozPointerLockElement===Module.canvas||document.webkitPointerLockElement===Module.canvas||document.msPointerLockElement===Module.canvas}},createContext(e,t,r,i){if(t&&Module.ctx&&e==Module.canvas)return Module.ctx;var n,a;if(t){var s={antialias:!1,alpha:!1,majorVersion:1};if(i)for(var o in i)s[o]=i[o];typeof GL<"u"&&(a=GL.createContext(e,s))&&(n=GL.getContext(a).GLctx)}else n=e.getContext("2d");return n?(r&&(Module.ctx=n,t&&GL.makeContextCurrent(a),Browser.useWebGL=t,Browser.moduleContextCreatedCallbacks.forEach((e=>e())),Browser.init()),n):null},fullscreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullscreen(e,t){Browser.lockPointer=e,Browser.resizeCanvas=t,typeof Browser.lockPointer>"u"&&(Browser.lockPointer=!0),typeof Browser.resizeCanvas>"u"&&(Browser.resizeCanvas=!1);var r=Module.canvas;function i(){var e,t;Browser.isFullscreen=!1;var i=r.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===i?(r.exitFullscreen=Browser.exitFullscreen,Browser.lockPointer&&r.requestPointerLock(),Browser.isFullscreen=!0,Browser.resizeCanvas?Browser.setFullscreenCanvasSize():Browser.updateCanvasDimensions(r)):(i.parentNode.insertBefore(r,i),i.parentNode.removeChild(i),Browser.resizeCanvas?Browser.setWindowedCanvasSize():Browser.updateCanvasDimensions(r)),null==(e=Module.onFullScreen)||e.call(Module,Browser.isFullscreen),null==(t=Module.onFullscreen)||t.call(Module,Browser.isFullscreen)}Browser.fullscreenHandlersInstalled||(Browser.fullscreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",i,!1),document.addEventListener("mozfullscreenchange",i,!1),document.addEventListener("webkitfullscreenchange",i,!1),document.addEventListener("MSFullscreenChange",i,!1));var n=document.createElement("div");r.parentNode.insertBefore(n,r),n.appendChild(r),n.requestFullscreen=n.requestFullscreen||n.mozRequestFullScreen||n.msRequestFullscreen||(n.webkitRequestFullscreen?()=>n.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):null)||(n.webkitRequestFullScreen?()=>n.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT):null),n.requestFullscreen()},exitFullscreen:()=>!!Browser.isFullscreen&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||(()=>{})).apply(document,[]),!0),safeSetTimeout:(e,t)=>safeSetTimeout(e,t),getMimetype:e=>({jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]),getUserMedia(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:e=>e.movementX||e.mozMovementX||e.webkitMovementX||0,getMovementY:e=>e.movementY||e.mozMovementY||e.webkitMovementY||0,getMouseWheelDelta(e){var t=0;switch(e.type){case"DOMMouseScroll":t=e.detail/3;break;case"mousewheel":t=e.wheelDelta/120;break;case"wheel":switch(t=e.deltaY,e.deltaMode){case 0:t/=100;break;case 1:t/=3;break;case 2:t*=80;break;default:throw"unrecognized mouse wheel delta mode: "+e.deltaMode}break;default:throw"unrecognized mouse wheel event: "+e.type}return t},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseCoords(e,t){var r=Module.canvas.getBoundingClientRect(),i=Module.canvas.width,n=Module.canvas.height,a=typeof window.scrollX<"u"?window.scrollX:window.pageXOffset,s=typeof window.scrollY<"u"?window.scrollY:window.pageYOffset,o=e-(a+r.left),l=t-(s+r.top);return{x:o*=i/r.width,y:l*=n/r.height}},setMouseCoords(e,t){let{x:r,y:i}=Browser.calculateMouseCoords(e,t);Browser.mouseMovementX=r-Browser.mouseX,Browser.mouseMovementY=i-Browser.mouseY,Browser.mouseX=r,Browser.mouseY=i},calculateMouseEvent(e){if(Browser.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?Browser.mouseMovementX=Browser.mouseMovementY=0:(Browser.mouseMovementX=Browser.getMovementX(e),Browser.mouseMovementY=Browser.getMovementY(e)),Browser.mouseX+=Browser.mouseMovementX,Browser.mouseY+=Browser.mouseMovementY;else{if("touchstart"===e.type||"touchend"===e.type||"touchmove"===e.type){var t=e.touch;if(void 0===t)return;var r=Browser.calculateMouseCoords(t.pageX,t.pageY);if("touchstart"===e.type)Browser.lastTouches[t.identifier]=r,Browser.touches[t.identifier]=r;else if("touchend"===e.type||"touchmove"===e.type){var i=Browser.touches[t.identifier];i||(i=r),Browser.lastTouches[t.identifier]=i,Browser.touches[t.identifier]=r}return}Browser.setMouseCoords(e.pageX,e.pageY)}},resizeListeners:[],updateResizeListeners(){var e=Module.canvas;Browser.resizeListeners.forEach((t=>t(e.width,e.height)))},setCanvasSize(e,t,r){var i=Module.canvas;Browser.updateCanvasDimensions(i,e,t),r||Browser.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize(){if(typeof SDL<"u"){var e=HEAPU32[SDL.screen>>>2>>>0];e|=8388608,HEAP32[SDL.screen>>>2>>>0]=e}Browser.updateCanvasDimensions(Module.canvas),Browser.updateResizeListeners()},setWindowedCanvasSize(){if(typeof SDL<"u"){var e=HEAPU32[SDL.screen>>>2>>>0];e&=-8388609,HEAP32[SDL.screen>>>2>>>0]=e}Browser.updateCanvasDimensions(Module.canvas),Browser.updateResizeListeners()},updateCanvasDimensions(e,t,r){t&&r?(e.widthNative=t,e.heightNative=r):(t=e.widthNative,r=e.heightNative);var i=t,n=r;if(Module.forcedAspectRatio&&Module.forcedAspectRatio>0&&(i/n>>=0,r>>>=0;var i=UTF8ToString(e>>>=0),n=FS.analyzePath(i);return n.exists?(FS.createPreloadedFile(PATH.dirname(i),PATH.basename(i),new Uint8Array(n.object.contents),!0,!0,(()=>{t&&getWasmTableEntry(t)(e)}),(()=>{r&&getWasmTableEntry(r)(e)}),!0),0):-1};_emscripten_run_preload_plugins.sig="ippp";var Browser_asyncPrepareDataCounter=0,_emscripten_run_preload_plugins_data=function(e,t,r,i,n,a){e>>>=0,i>>>=0,n>>>=0,a>>>=0;var s=UTF8ToString(r>>>=0),o="prepare_data_"+Browser_asyncPrepareDataCounter+++"."+s,l=stringToNewUTF8(o);FS.createPreloadedFile("/",o,HEAPU8.subarray(e>>>0,e+t>>>0),!0,!0,(()=>{n&&getWasmTableEntry(n)(i,l)}),(()=>{a&&getWasmTableEntry(a)(i)}),!0)};_emscripten_run_preload_plugins_data.sig="vpipppp";var _emscripten_async_run_script=function(e,t){e>>>=0,safeSetTimeout((()=>_emscripten_run_script(e)),t)};_emscripten_async_run_script.sig="vpi";var _emscripten_async_load_script=function(url,onload,onerror){url>>>=0,onload>>>=0,onerror>>>=0,url=UTF8ToString(url);var loadDone=()=>{if(onload){var e=()=>callUserCallback(getWasmTableEntry(onload));runDependencies>0?dependenciesFulfilled=e:e()}},loadError=()=>{onerror&&callUserCallback(getWasmTableEntry(onerror))};if(ENVIRONMENT_IS_NODE)readAsync(url,!1).then((data=>{eval(data),loadDone()}),loadError);else{var script=document.createElement("script");script.onload=loadDone,script.onerror=loadError,script.src=url,document.body.appendChild(script)}};_emscripten_async_load_script.sig="vppp";var safeRequestAnimationFrame=e=>MainLoop.requestAnimationFrame((()=>{callUserCallback(e)}));function _emscripten_async_call(e,t,r){function i(){getWasmTableEntry(e)(t)}e>>>=0,t>>>=0,r>=0||ENVIRONMENT_IS_NODE?safeSetTimeout(i,r):safeRequestAnimationFrame(i)}function _emscripten_get_window_title(){return _emscripten_get_window_title.buffer||(_emscripten_get_window_title.buffer=_malloc(256)),stringToUTF8(document.title,_emscripten_get_window_title.buffer,256),_emscripten_get_window_title.buffer}function _emscripten_set_window_title(e){return e>>>=0,document.title=UTF8ToString(e)}function _emscripten_get_screen_size(e,t){t>>>=0,HEAP32[(e>>>=0)>>>2>>>0]=screen.width,HEAP32[t>>>2>>>0]=screen.height}_emscripten_async_call.sig="vppi",_emscripten_get_window_title.sig="p",_emscripten_set_window_title.sig="vp",_emscripten_get_screen_size.sig="vpp";var _emscripten_hide_mouse=()=>{for(var e=document.styleSheets[0],t=e.cssRules,r=0;r{Browser.setCanvasSize(e,t)};function _emscripten_get_canvas_size(e,t,r){e>>>=0,t>>>=0,r>>>=0;var i=Module.canvas;HEAP32[e>>>2>>>0]=i.width,HEAP32[t>>>2>>>0]=i.height,HEAP32[r>>>2>>>0]=Browser.isFullscreen?1:0}function _emscripten_create_worker(e){e=UTF8ToString(e>>>=0);var t=Browser.workers.length,r={worker:new Worker(e),callbacks:[],awaited:0,buffer:0,bufferSize:0};return r.worker.onmessage=function(e){if(!ABORT){var r=Browser.workers[t];if(r){var i=e.data.callbackId,n=r.callbacks[i];if(n){e.data.finalResponse&&(r.awaited--,r.callbacks[i]=null);var a=e.data.data;a?(a.byteLength||(a=new Uint8Array(a)),(!r.buffer||r.bufferSize>>0),n.func(r.buffer,a.length,n.arg)):n.func(0,0,n.arg)}}}},Browser.workers.push(r),t}_emscripten_set_canvas_size.sig="vii",_emscripten_get_canvas_size.sig="vppp",_emscripten_create_worker.sig="ip";var _emscripten_destroy_worker=e=>{var t=Browser.workers[e];t.worker.terminate(),t.buffer&&_free(t.buffer),Browser.workers[e]=null};function _emscripten_call_worker(e,t,r,i,n,a){r>>>=0,n>>>=0,a>>>=0,t=UTF8ToString(t>>>=0);var s=Browser.workers[e],o=-1;n&&(o=s.callbacks.length,s.callbacks.push({func:getWasmTableEntry(n),arg:a}),s.awaited++);var l={funcName:t,callbackId:o,data:r?new Uint8Array(HEAPU8.subarray(r>>>0,r+i>>>0)):0};r?s.worker.postMessage(l,[l.data.buffer]):s.worker.postMessage(l)}_emscripten_destroy_worker.sig="vi",_emscripten_call_worker.sig="vippipp";var _emscripten_get_worker_queue_size=e=>{var t=Browser.workers[e];return t?t.awaited:-1};_emscripten_get_worker_queue_size.sig="ii";var getPreloadedImageData=(e,t,r)=>{e=PATH_FS.resolve(e);var i=preloadedImages[e];if(!i)return 0;var n=i.getContext("2d").getImageData(0,0,i.width,i.height),a=_malloc(i.width*i.height*4);return HEAPU8.set(n.data,a>>>0),HEAP32[t>>>2>>>0]=i.width,HEAP32[r>>>2>>>0]=i.height,a};function _emscripten_get_preloaded_image_data(e,t,r){return t>>>=0,r>>>=0,getPreloadedImageData(UTF8ToString(e>>>=0),t,r)}_emscripten_get_preloaded_image_data.sig="pppp";var getPreloadedImageData__data=["$PATH_FS","malloc"];function _emscripten_get_preloaded_image_data_from_FILE(e,t,r){t>>>=0,r>>>=0;var i=_fileno(e>>>=0),n=FS.getStream(i);return n?getPreloadedImageData(n.path,t,r):0}_emscripten_get_preloaded_image_data_from_FILE.sig="pppp";var wget={wgetRequests:{},nextWgetRequestHandle:0,getNextWgetRequestHandle(){var e=wget.nextWgetRequestHandle;return wget.nextWgetRequestHandle++,e}},FS_mkdirTree=(e,t)=>FS.mkdirTree(e,t),FS_unlink=e=>FS.unlink(e),_emscripten_async_wget=function(e,t,r,i){t>>>=0,r>>>=0,i>>>=0;var n=UTF8ToString(e>>>=0),a=UTF8ToString(t);function s(e){e&&callUserCallback((()=>{var t=stackSave();getWasmTableEntry(e)(stringToUTF8OnStack(a)),stackRestore(t)}))}a=PATH_FS.resolve(a);var o=PATH.dirname(a);FS_createPreloadedFile(o,PATH.basename(a),n,!0,!0,(()=>s(r)),(()=>s(i)),!1,!1,(()=>{try{FS_unlink(a)}catch(e){}FS_mkdirTree(o)}))};_emscripten_async_wget.sig="vpppp";var _emscripten_async_wget_data=function(e,t,r,i){t>>>=0,r>>>=0,i>>>=0,asyncLoad(UTF8ToString(e>>>=0),(e=>{callUserCallback((()=>{var i=_malloc(e.length);HEAPU8.set(e,i>>>0),getWasmTableEntry(r)(t,i,e.length),_free(i)}))}),(()=>{i&&callUserCallback((()=>{getWasmTableEntry(i)(t)}))}),!0)};_emscripten_async_wget_data.sig="vpppp";var _emscripten_async_wget2=function(e,t,r,i,n,a,s,o){t>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,s>>>=0,o>>>=0;var l=UTF8ToString(e>>>=0),c=UTF8ToString(t);c=PATH_FS.resolve(c);var _=UTF8ToString(r),u=UTF8ToString(i),d=c.lastIndexOf("/"),p=new XMLHttpRequest;p.open(_,l,!0),p.responseType="arraybuffer";var f=wget.getNextWgetRequestHandle(),m=PATH.dirname(c);return p.onload=e=>{if(p.status>=200&&p.status<300){try{FS.unlink(c)}catch(e){}if(FS.mkdirTree(m),FS.createDataFile(c.substr(0,d),c.substr(d+1),new Uint8Array(p.response),!0,!0,!1),a){var t=stackSave();getWasmTableEntry(a)(f,n,stringToUTF8OnStack(c)),stackRestore(t)}}else s&&getWasmTableEntry(s)(f,n,p.status);delete wget.wgetRequests[f]},p.onerror=e=>{s&&getWasmTableEntry(s)(f,n,p.status),delete wget.wgetRequests[f]},p.onprogress=e=>{if(e.lengthComputable||void 0===e.lengthComputable&&0!=e.total){var t=e.loaded/e.total*100;o&&getWasmTableEntry(o)(f,n,t)}},p.onabort=e=>{delete wget.wgetRequests[f]},"POST"==_?(p.setRequestHeader("Content-type","application/x-www-form-urlencoded"),p.send(u)):p.send(null),wget.wgetRequests[f]=p,f};function _emscripten_async_wget2_data(e,t,r,i,n,a,s,o){t>>>=0,r>>>=0,i>>>=0,a>>>=0,s>>>=0,o>>>=0;var l=UTF8ToString(e>>>=0),c=UTF8ToString(t),_=UTF8ToString(r),u=new XMLHttpRequest;u.open(c,l,!0),u.responseType="arraybuffer";var d=wget.getNextWgetRequestHandle();function p(){if(s){var e=stackSave(),t=0;u.statusText&&(t=stringToUTF8OnStack(u.statusText)),getWasmTableEntry(s)(d,i,u.status,t),stackRestore(e)}}return u.onload=e=>{if(u.status>=200&&u.status<300||0===u.status&&"http"!=l.substr(0,4).toLowerCase()){var t=new Uint8Array(u.response),r=_malloc(t.length);HEAPU8.set(t,r>>>0),a&&getWasmTableEntry(a)(d,i,r,t.length),n&&_free(r)}else p();delete wget.wgetRequests[d]},u.onerror=e=>{p(),delete wget.wgetRequests[d]},u.onprogress=e=>{o&&getWasmTableEntry(o)(d,i,e.loaded,e.lengthComputable||void 0===e.lengthComputable?e.total:0)},u.onabort=e=>{delete wget.wgetRequests[d]},"POST"==c?(u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.send(_)):u.send(null),wget.wgetRequests[d]=u,d}_emscripten_async_wget2.sig="ipppppppp",_emscripten_async_wget2_data.sig="ippppippp";var _emscripten_async_wget2_abort=e=>{var t=wget.wgetRequests[e];null==t||t.abort()};function ___asctime_r(e,t){t>>>=0;var r=HEAP32[(e>>>=0)>>>2>>>0],i=HEAP32[e+4>>>2>>>0],n=HEAP32[e+8>>>2>>>0],a=HEAP32[e+12>>>2>>>0],s=HEAP32[e+16>>>2>>>0],o=HEAP32[e+20>>>2>>>0],l=HEAP32[e+24>>>2>>>0];return stringToUTF8(["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l]+" "+["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][s]+(a<10?" ":" ")+a+(n<10?" 0":" ")+n+(i<10?":0":":")+i+(r<10?":0":":")+r+" "+(1900+o)+"\n",t,26),t}function _strptime_l(e,t,r,i){return _strptime(e>>>=0,t>>>=0,r>>>=0)}function ___syscall_shutdown(e,t){try{return getSocketFromFD(e),-52}catch(e){if(typeof FS>"u"||"ErrnoError"!==e.name)throw e;return-e.errno}}function __dlsym_catchup_js(e,t){e>>>=0;var r=LDSO.loadedLibsByHandle[e].exports,i=r[Object.keys(r)[t]];return addFunction(i,i.sig)}_emscripten_async_wget2_abort.sig="vi",___asctime_r.sig="ppp",_strptime_l.sig="ppppp",Module.___syscall_shutdown=___syscall_shutdown,___syscall_shutdown.sig="iiiiiii",__dlsym_catchup_js.sig="ppi";var FS_createPath=FS.createPath,FS_createDevice=FS.createDevice,FS_readFile=FS.readFile,FS_createLazyFile=FS.createLazyFile,_setNetworkCallback=(e,t,r)=>{SOCKFS.on(e,r?function(i){try{if("error"===e){var n=stackSave(),a=stringToUTF8OnStack(i[2]);getWasmTableEntry(r)(i[0],i[1],a,t),stackRestore(n)}else getWasmTableEntry(r)(i,t)}catch(e){if(!(e instanceof ExitStatus))throw e&&"object"==typeof e&&e.stack&&err("exception thrown: "+[e,e.stack]),e}}:null)};function _emscripten_set_socket_error_callback(e,t){_setNetworkCallback("error",e>>>=0,t>>>=0)}function _emscripten_set_socket_open_callback(e,t){_setNetworkCallback("open",e>>>=0,t>>>=0)}function _emscripten_set_socket_listen_callback(e,t){_setNetworkCallback("listen",e>>>=0,t>>>=0)}function _emscripten_set_socket_connection_callback(e,t){_setNetworkCallback("connection",e>>>=0,t>>>=0)}function _emscripten_set_socket_message_callback(e,t){_setNetworkCallback("message",e>>>=0,t>>>=0)}function _emscripten_set_socket_close_callback(e,t){_setNetworkCallback("close",e>>>=0,t>>>=0)}function _emscripten_webgl_enable_ANGLE_instanced_arrays(e){return e>>>=0,webgl_enable_ANGLE_instanced_arrays(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_OES_vertex_array_object(e){return e>>>=0,webgl_enable_OES_vertex_array_object(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_draw_buffers(e){return e>>>=0,webgl_enable_WEBGL_draw_buffers(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_multi_draw(e){return e>>>=0,webgl_enable_WEBGL_multi_draw(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_EXT_polygon_offset_clamp(e){return e>>>=0,webgl_enable_EXT_polygon_offset_clamp(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_EXT_clip_control(e){return e>>>=0,webgl_enable_EXT_clip_control(GL.contexts[e].GLctx)}function _emscripten_webgl_enable_WEBGL_polygon_mode(e){return e>>>=0,webgl_enable_WEBGL_polygon_mode(GL.contexts[e].GLctx)}function _glVertexPointer(e,t,r,i){throw"Legacy GL function (glVertexPointer) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."}_emscripten_set_socket_error_callback.sig="vpp",_emscripten_set_socket_open_callback.sig="vpp",_emscripten_set_socket_listen_callback.sig="vpp",_emscripten_set_socket_connection_callback.sig="vpp",_emscripten_set_socket_message_callback.sig="vpp",_emscripten_set_socket_close_callback.sig="vpp",_emscripten_webgl_enable_ANGLE_instanced_arrays.sig="ip",_emscripten_webgl_enable_OES_vertex_array_object.sig="ip",_emscripten_webgl_enable_WEBGL_draw_buffers.sig="ip",_emscripten_webgl_enable_WEBGL_multi_draw.sig="ip",_emscripten_webgl_enable_EXT_polygon_offset_clamp.sig="ip",_emscripten_webgl_enable_EXT_clip_control.sig="ip",_emscripten_webgl_enable_WEBGL_polygon_mode.sig="ip",_glVertexPointer.sig="viiip";var _glMatrixMode=()=>{throw"Legacy GL function (glMatrixMode) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glMatrixMode.sig="vi";var _glBegin=()=>{throw"Legacy GL function (glBegin) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glBegin.sig="vi";var _glLoadIdentity=()=>{throw"Legacy GL function (glLoadIdentity) called. If you want legacy GL emulation, you need to compile with -sLEGACY_GL_EMULATION to enable legacy GL emulation."};_glLoadIdentity.sig="v";var _glVertexAttribDivisorNV=_glVertexAttribDivisor,_glDrawArraysInstancedNV=_glDrawArraysInstanced,_glDrawElementsInstancedNV=_glDrawElementsInstanced,_glVertexAttribDivisorEXT=_glVertexAttribDivisor,_glDrawArraysInstancedEXT=_glDrawArraysInstanced,_glDrawElementsInstancedEXT=_glDrawElementsInstanced,_glVertexAttribDivisorARB=_glVertexAttribDivisor,_glDrawArraysInstancedARB=_glDrawArraysInstanced,_glDrawElementsInstancedARB=_glDrawElementsInstanced,_glDrawBuffersEXT=_glDrawBuffers;function _glMultiDrawArraysWEBGL(e,t,r,i){t>>>=0,r>>>=0,GLctx.multiDrawWebgl.multiDrawArraysWEBGL(e,HEAP32,t>>>2,HEAP32,r>>>2,i)}_glMultiDrawArraysWEBGL.sig="vippi";var _glMultiDrawArrays=_glMultiDrawArraysWEBGL;_glMultiDrawArrays.sig="vippi";var _glMultiDrawArraysANGLE=_glMultiDrawArraysWEBGL;function _glMultiDrawArraysInstancedWEBGL(e,t,r,i,n){t>>>=0,r>>>=0,i>>>=0,GLctx.multiDrawWebgl.multiDrawArraysInstancedWEBGL(e,HEAP32,t>>>2,HEAP32,r>>>2,HEAP32,i>>>2,n)}_glMultiDrawArraysInstancedWEBGL.sig="vipppi";var _glMultiDrawArraysInstancedANGLE=_glMultiDrawArraysInstancedWEBGL;function _glMultiDrawElementsWEBGL(e,t,r,i,n){t>>>=0,i>>>=0,GLctx.multiDrawWebgl.multiDrawElementsWEBGL(e,HEAP32,t>>>2,r,HEAP32,i>>>2,n)}_glMultiDrawElementsWEBGL.sig="vipipi";var _glMultiDrawElements=_glMultiDrawElementsWEBGL;_glMultiDrawElements.sig="vipipi";var _glMultiDrawElementsANGLE=_glMultiDrawElementsWEBGL;function _glMultiDrawElementsInstancedWEBGL(e,t,r,i,n,a){t>>>=0,i>>>=0,n>>>=0,GLctx.multiDrawWebgl.multiDrawElementsInstancedWEBGL(e,HEAP32,t>>>2,r,HEAP32,i>>>2,HEAP32,n>>>2,a)}_glMultiDrawElementsInstancedWEBGL.sig="vipippi";var _glMultiDrawElementsInstancedANGLE=_glMultiDrawElementsInstancedWEBGL,_glClearDepth=e=>GLctx.clearDepth(e);_glClearDepth.sig="vd";var _glDepthRange=(e,t)=>GLctx.depthRange(e,t);_glDepthRange.sig="vdd";var _emscripten_glGenVertexArrays=_glGenVertexArrays;_emscripten_glGenVertexArrays.sig="vip";var _emscripten_glDeleteVertexArrays=_glDeleteVertexArrays;_emscripten_glDeleteVertexArrays.sig="vip";var _emscripten_glBindVertexArray=_glBindVertexArray;_emscripten_glBindVertexArray.sig="vi";var _emscripten_glIsVertexArray=_glIsVertexArray;_emscripten_glIsVertexArray.sig="ii";var _emscripten_glVertexPointer=_glVertexPointer;_emscripten_glVertexPointer.sig="viiip";var _emscripten_glMatrixMode=_glMatrixMode;_emscripten_glMatrixMode.sig="vi";var _emscripten_glBegin=_glBegin;_emscripten_glBegin.sig="vi";var _emscripten_glLoadIdentity=_glLoadIdentity;_emscripten_glLoadIdentity.sig="v";var _emscripten_glVertexAttribDivisor=_glVertexAttribDivisor;_emscripten_glVertexAttribDivisor.sig="vii";var _emscripten_glDrawArraysInstanced=_glDrawArraysInstanced;_emscripten_glDrawArraysInstanced.sig="viiii";var _emscripten_glDrawElementsInstanced=_glDrawElementsInstanced;_emscripten_glDrawElementsInstanced.sig="viiipi";var _emscripten_glVertexAttribDivisorNV=_glVertexAttribDivisorNV,_emscripten_glDrawArraysInstancedNV=_glDrawArraysInstancedNV,_emscripten_glDrawElementsInstancedNV=_glDrawElementsInstancedNV,_emscripten_glVertexAttribDivisorEXT=_glVertexAttribDivisorEXT,_emscripten_glDrawArraysInstancedEXT=_glDrawArraysInstancedEXT,_emscripten_glDrawElementsInstancedEXT=_glDrawElementsInstancedEXT,_emscripten_glVertexAttribDivisorARB=_glVertexAttribDivisorARB,_emscripten_glDrawArraysInstancedARB=_glDrawArraysInstancedARB,_emscripten_glDrawElementsInstancedARB=_glDrawElementsInstancedARB,_emscripten_glDrawBuffers=_glDrawBuffers;_emscripten_glDrawBuffers.sig="vip";var _emscripten_glDrawBuffersEXT=_glDrawBuffersEXT,_emscripten_glMultiDrawArrays=_glMultiDrawArrays;_emscripten_glMultiDrawArrays.sig="vippi";var _emscripten_glMultiDrawArraysANGLE=_glMultiDrawArraysANGLE,_emscripten_glMultiDrawArraysWEBGL=_glMultiDrawArraysWEBGL,_emscripten_glMultiDrawArraysInstancedANGLE=_glMultiDrawArraysInstancedANGLE,_emscripten_glMultiDrawArraysInstancedWEBGL=_glMultiDrawArraysInstancedWEBGL,_emscripten_glMultiDrawElements=_glMultiDrawElements;_emscripten_glMultiDrawElements.sig="vipipi";var _emscripten_glMultiDrawElementsANGLE=_glMultiDrawElementsANGLE,_emscripten_glMultiDrawElementsWEBGL=_glMultiDrawElementsWEBGL,_emscripten_glMultiDrawElementsInstancedANGLE=_glMultiDrawElementsInstancedANGLE,_emscripten_glMultiDrawElementsInstancedWEBGL=_glMultiDrawElementsInstancedWEBGL,_emscripten_glClearDepth=_glClearDepth;_emscripten_glClearDepth.sig="vd";var _emscripten_glDepthRange=_glDepthRange;_emscripten_glDepthRange.sig="vdd";var writeGLArray=(e,t,r,i)=>{var n=e.length,a=r>>=2;for(var o=0;o>>0]=e[o];return n},webglPowerPreferences=["default","low-power","high-performance"];function _emscripten_webgl_do_create_context(e,t){e>>>=0;var r=(t>>>=0)>>>2,i=HEAP32[r+2>>>0],n={alpha:!!HEAP8[t+0>>>0],depth:!!HEAP8[t+1>>>0],stencil:!!HEAP8[t+2>>>0],antialias:!!HEAP8[t+3>>>0],premultipliedAlpha:!!HEAP8[t+4>>>0],preserveDrawingBuffer:!!HEAP8[t+5>>>0],powerPreference:webglPowerPreferences[i],failIfMajorPerformanceCaveat:!!HEAP8[t+12>>>0],majorVersion:HEAP32[r+4>>>0],minorVersion:HEAP32[r+5>>>0],enableExtensionsByDefault:HEAP8[t+24>>>0],explicitSwapControl:HEAP8[t+25>>>0],proxyContextToMainThread:HEAP32[r+7>>>0],renderViaOffscreenBackBuffer:HEAP8[t+32>>>0]},a=findCanvasEventTarget(e);return!a||n.explicitSwapControl?0:GL.createContext(a,n)}_emscripten_webgl_do_create_context.sig="ppp";var _emscripten_webgl_create_context=_emscripten_webgl_do_create_context;function _emscripten_webgl_do_get_current_context(){return GL.currentContext?GL.currentContext.handle:0}_emscripten_webgl_create_context.sig="ppp",_emscripten_webgl_do_get_current_context.sig="p";var _emscripten_webgl_get_current_context=_emscripten_webgl_do_get_current_context;_emscripten_webgl_get_current_context.sig="p";var _emscripten_webgl_do_commit_frame=()=>GL.currentContext&&GL.currentContext.GLctx&&GL.currentContext.attributes.explicitSwapControl?0:-3;_emscripten_webgl_do_commit_frame.sig="i";var _emscripten_webgl_commit_frame=_emscripten_webgl_do_commit_frame;function _emscripten_webgl_make_context_current(e){return e>>>=0,GL.makeContextCurrent(e)?0:-5}function _emscripten_webgl_get_drawing_buffer_size(e,t,r){e>>>=0,t>>>=0,r>>>=0;var i=GL.getContext(e);return i&&i.GLctx&&t&&r?(HEAP32[t>>>2>>>0]=i.GLctx.drawingBufferWidth,HEAP32[r>>>2>>>0]=i.GLctx.drawingBufferHeight,0):-5}function _emscripten_webgl_get_context_attributes(e,t){if(e>>>=0,!(t>>>=0))return-5;if(!(e=GL.contexts[e]))return-3;var r=e.GLctx;if(!r)return-3;r=r.getContextAttributes(),HEAP8[t>>>0]=r.alpha,HEAP8[t+1>>>0]=r.depth,HEAP8[t+2>>>0]=r.stencil,HEAP8[t+3>>>0]=r.antialias,HEAP8[t+4>>>0]=r.premultipliedAlpha,HEAP8[t+5>>>0]=r.preserveDrawingBuffer;var i=r.powerPreference&&webglPowerPreferences.indexOf(r.powerPreference);return HEAP32[t+8>>>2>>>0]=i,HEAP8[t+12>>>0]=r.failIfMajorPerformanceCaveat,HEAP32[t+16>>>2>>>0]=e.version,HEAP32[t+20>>>2>>>0]=0,HEAP8[t+24>>>0]=e.attributes.enableExtensionsByDefault,0}function _emscripten_webgl_destroy_context(e){e>>>=0,GL.currentContext==e&&(GL.currentContext=0),GL.deleteContext(e)}function _emscripten_webgl_enable_extension(e,t){e>>>=0,t>>>=0;var r=GL.getContext(e),i=UTF8ToString(t);return i.startsWith("GL_")&&(i=i.substr(3)),"ANGLE_instanced_arrays"==i&&webgl_enable_ANGLE_instanced_arrays(GLctx),"OES_vertex_array_object"==i&&webgl_enable_OES_vertex_array_object(GLctx),"WEBGL_draw_buffers"==i&&webgl_enable_WEBGL_draw_buffers(GLctx),"WEBGL_multi_draw"==i&&webgl_enable_WEBGL_multi_draw(GLctx),"EXT_polygon_offset_clamp"==i&&webgl_enable_EXT_polygon_offset_clamp(GLctx),"EXT_clip_control"==i&&webgl_enable_EXT_clip_control(GLctx),"WEBGL_polygon_mode"==i&&webgl_enable_WEBGL_polygon_mode(GLctx),!!r.GLctx.getExtension(i)}_emscripten_webgl_commit_frame.sig="i",_emscripten_webgl_make_context_current.sig="ip",_emscripten_webgl_get_drawing_buffer_size.sig="ippp",_emscripten_webgl_get_context_attributes.sig="ipp",_emscripten_webgl_destroy_context.sig="ip",_emscripten_webgl_enable_extension.sig="ipp";var _emscripten_supports_offscreencanvas=()=>0;_emscripten_supports_offscreencanvas.sig="i";var registerWebGlEventCallback=(e,t,r,i,n,a,s)=>{var o={target:findEventTarget(e),eventTypeString:a,callbackfunc:i,handlerFunc:(e=event)=>{getWasmTableEntry(i)(n,0,t)&&e.preventDefault()},useCapture:r};JSEvents.registerOrRemoveHandler(o)};function _emscripten_set_webglcontextlost_callback_on_thread(e,t,r,i,n){return registerWebGlEventCallback(e>>>=0,t>>>=0,r,i>>>=0,31,"webglcontextlost",n>>>=0),0}function _emscripten_set_webglcontextrestored_callback_on_thread(e,t,r,i,n){return registerWebGlEventCallback(e>>>=0,t>>>=0,r,i>>>=0,32,"webglcontextrestored",n>>>=0),0}function _emscripten_is_webgl_context_lost(e){return e>>>=0,!GL.contexts[e]||GL.contexts[e].GLctx.isContextLost()}function _emscripten_webgl_get_supported_extensions(){return stringToNewUTF8(GLctx.getSupportedExtensions().join(" "))}_emscripten_set_webglcontextlost_callback_on_thread.sig="ippipp",_emscripten_set_webglcontextrestored_callback_on_thread.sig="ippipp",_emscripten_is_webgl_context_lost.sig="ip",_emscripten_webgl_get_supported_extensions.sig="p";var _emscripten_webgl_get_program_parameter_d=(e,t)=>GLctx.getProgramParameter(GL.programs[e],t);function _emscripten_webgl_get_program_info_log_utf8(e){return stringToNewUTF8(GLctx.getProgramInfoLog(GL.programs[e]))}_emscripten_webgl_get_program_parameter_d.sig="dii",_emscripten_webgl_get_program_info_log_utf8.sig="pi";var _emscripten_webgl_get_shader_parameter_d=(e,t)=>GLctx.getShaderParameter(GL.shaders[e],t);function _emscripten_webgl_get_shader_info_log_utf8(e){return stringToNewUTF8(GLctx.getShaderInfoLog(GL.shaders[e]))}function _emscripten_webgl_get_shader_source_utf8(e){return stringToNewUTF8(GLctx.getShaderSource(GL.shaders[e]))}_emscripten_webgl_get_shader_parameter_d.sig="dii",_emscripten_webgl_get_shader_info_log_utf8.sig="pi",_emscripten_webgl_get_shader_source_utf8.sig="pi";var _emscripten_webgl_get_vertex_attrib_d=(e,t)=>GLctx.getVertexAttrib(e,t);_emscripten_webgl_get_vertex_attrib_d.sig="dii";var _emscripten_webgl_get_vertex_attrib_o=(e,t)=>{var r=GLctx.getVertexAttrib(e,t);return null==r?void 0:r.name};function _emscripten_webgl_get_vertex_attrib_v(e,t,r,i,n){return r>>>=0,writeGLArray(GLctx.getVertexAttrib(e,t),r,i,n)}_emscripten_webgl_get_vertex_attrib_o.sig="iii",_emscripten_webgl_get_vertex_attrib_v.sig="iiipii";var _emscripten_webgl_get_uniform_d=(e,t)=>GLctx.getUniform(GL.programs[e],webglGetUniformLocation(t));function _emscripten_webgl_get_uniform_v(e,t,r,i,n){return r>>>=0,writeGLArray(GLctx.getUniform(GL.programs[e],webglGetUniformLocation(t)),r,i,n)}function _emscripten_webgl_get_parameter_v(e,t,r,i){return t>>>=0,writeGLArray(GLctx.getParameter(e),t,r,i)}_emscripten_webgl_get_uniform_d.sig="dii",_emscripten_webgl_get_uniform_v.sig="iiipii",_emscripten_webgl_get_parameter_v.sig="iipii";var _emscripten_webgl_get_parameter_d=e=>GLctx.getParameter(e);_emscripten_webgl_get_parameter_d.sig="di";var _emscripten_webgl_get_parameter_o=e=>{var t=GLctx.getParameter(e);return null==t?void 0:t.name};function _emscripten_webgl_get_parameter_utf8(e){return stringToNewUTF8(GLctx.getParameter(e))}function _emscripten_webgl_get_parameter_i64v(e,t){return writeI53ToI64(t>>>=0,GLctx.getParameter(e))}_emscripten_webgl_get_parameter_o.sig="ii",_emscripten_webgl_get_parameter_utf8.sig="pi",_emscripten_webgl_get_parameter_i64v.sig="vip";var _glutPostRedisplay=()=>{GLUT.displayFunc&&!GLUT.requestedAnimationFrame&&(GLUT.requestedAnimationFrame=!0,MainLoop.requestAnimationFrame((()=>{GLUT.requestedAnimationFrame=!1,MainLoop.runIter((()=>getWasmTableEntry(GLUT.displayFunc)()))})))};_glutPostRedisplay.sig="v";var GLUT={initTime:null,idleFunc:null,displayFunc:null,keyboardFunc:null,keyboardUpFunc:null,specialFunc:null,specialUpFunc:null,reshapeFunc:null,motionFunc:null,passiveMotionFunc:null,mouseFunc:null,buttons:0,modifiers:0,initWindowWidth:256,initWindowHeight:256,initDisplayMode:18,windowX:0,windowY:0,windowWidth:0,windowHeight:0,requestedAnimationFrame:!1,saveModifiers:e=>{GLUT.modifiers=0,e.shiftKey&&(GLUT.modifiers+=1),e.ctrlKey&&(GLUT.modifiers+=2),e.altKey&&(GLUT.modifiers+=4)},onMousemove:e=>{var t=Browser.mouseX,r=Browser.mouseY;Browser.calculateMouseEvent(e);var i=Browser.mouseX,n=Browser.mouseY;i==t&&n==r||(0==GLUT.buttons&&e.target==Module.canvas&&GLUT.passiveMotionFunc?(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.passiveMotionFunc)(t,r)):0!=GLUT.buttons&&GLUT.motionFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.motionFunc)(t,r)))},getSpecialKey:e=>{var t=null;switch(e){case 8:t=120;break;case 46:t=111;break;case 112:t=1;break;case 113:t=2;break;case 114:t=3;break;case 115:t=4;break;case 116:t=5;break;case 117:t=6;break;case 118:t=7;break;case 119:t=8;break;case 120:t=9;break;case 121:t=10;break;case 122:t=11;break;case 123:t=12;break;case 37:t=100;break;case 38:t=101;break;case 39:t=102;break;case 40:t=103;break;case 33:t=104;break;case 34:t=105;break;case 36:t=106;break;case 35:t=107;break;case 45:t=108;break;case 16:case 5:t=112;break;case 6:t=113;break;case 17:case 3:t=114;break;case 4:t=115;break;case 18:case 2:t=116;break;case 1:t=117}return t},getASCIIKey:e=>{if(e.ctrlKey||e.altKey||e.metaKey)return null;var t=e.keyCode;if(48<=t&&t<=57)return t;if(65<=t&&t<=90)return e.shiftKey?t:t+32;if(96<=t&&t<=105)return t-48;if(106<=t&&t<=111)return t-106+42;switch(t){case 9:case 13:case 27:case 32:case 61:return t}var r=e.shiftKey;switch(t){case 186:return r?58:59;case 187:return r?43:61;case 188:return r?60:44;case 189:return r?95:45;case 190:return r?62:46;case 191:return r?63:47;case 219:return r?123:91;case 220:return r?124:47;case 221:return r?125:93;case 222:return r?34:39}return null},onKeydown:e=>{if(GLUT.specialFunc||GLUT.keyboardFunc){var t=GLUT.getSpecialKey(e.keyCode);null!==t?GLUT.specialFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.specialFunc)(t,Browser.mouseX,Browser.mouseY)):null!==(t=GLUT.getASCIIKey(e))&&GLUT.keyboardFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.keyboardFunc)(t,Browser.mouseX,Browser.mouseY))}},onKeyup:e=>{if(GLUT.specialUpFunc||GLUT.keyboardUpFunc){var t=GLUT.getSpecialKey(e.keyCode);null!==t?GLUT.specialUpFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.specialUpFunc)(t,Browser.mouseX,Browser.mouseY)):null!==(t=GLUT.getASCIIKey(e))&&GLUT.keyboardUpFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.keyboardUpFunc)(t,Browser.mouseX,Browser.mouseY))}},touchHandler:e=>{if(e.target==Module.canvas){var t=e.changedTouches[0],r="";switch(e.type){case"touchstart":r="mousedown";break;case"touchmove":r="mousemove";break;case"touchend":r="mouseup";break;default:return}var i=document.createEvent("MouseEvent");i.initMouseEvent(r,!0,!0,window,1,t.screenX,t.screenY,t.clientX,t.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(i),e.preventDefault()}},onMouseButtonDown:e=>{if(Browser.calculateMouseEvent(e),GLUT.buttons|=1<{Browser.calculateMouseEvent(e),GLUT.buttons&=~(1<{Browser.calculateMouseEvent(e),window.event;var t=-Browser.getMouseWheelDelta(e),r=3;(t=0==t?0:t>0?Math.max(t,1):Math.min(t,-1))<0&&(r=4),GLUT.mouseFunc&&(e.preventDefault(),GLUT.saveModifiers(e),getWasmTableEntry(GLUT.mouseFunc)(r,0,Browser.mouseX,Browser.mouseY))},onFullscreenEventChange:e=>{var t,r;document.fullscreen||document.fullScreen||document.mozFullScreen||document.webkitIsFullScreen?(t=screen.width,r=screen.height):(t=GLUT.windowWidth,r=GLUT.windowHeight,document.removeEventListener("fullscreenchange",GLUT.onFullscreenEventChange,!0),document.removeEventListener("mozfullscreenchange",GLUT.onFullscreenEventChange,!0),document.removeEventListener("webkitfullscreenchange",GLUT.onFullscreenEventChange,!0)),Browser.setCanvasSize(t,r,!0),GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(t,r),_glutPostRedisplay()}},_glutGetModifiers=()=>GLUT.modifiers;function _glutInit(e,t){GLUT.initTime=Date.now();var r="ontouchstart"in document.documentElement;r&&(window.addEventListener("touchmove",GLUT.touchHandler,!0),window.addEventListener("touchstart",GLUT.touchHandler,!0),window.addEventListener("touchend",GLUT.touchHandler,!0)),window.addEventListener("keydown",GLUT.onKeydown,!0),window.addEventListener("keyup",GLUT.onKeyup,!0),window.addEventListener("mousemove",GLUT.onMousemove,!0),window.addEventListener("mousedown",GLUT.onMouseButtonDown,!0),window.addEventListener("mouseup",GLUT.onMouseButtonUp,!0),window.addEventListener("mousewheel",GLUT.onMouseWheel,!0),window.addEventListener("DOMMouseScroll",GLUT.onMouseWheel,!0),Browser.resizeListeners.push(((e,t)=>{GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(e,t)})),__ATEXIT__.push((()=>{r&&(window.removeEventListener("touchmove",GLUT.touchHandler,!0),window.removeEventListener("touchstart",GLUT.touchHandler,!0),window.removeEventListener("touchend",GLUT.touchHandler,!0)),window.removeEventListener("keydown",GLUT.onKeydown,!0),window.removeEventListener("keyup",GLUT.onKeyup,!0),window.removeEventListener("mousemove",GLUT.onMousemove,!0),window.removeEventListener("mousedown",GLUT.onMouseButtonDown,!0),window.removeEventListener("mouseup",GLUT.onMouseButtonUp,!0),window.removeEventListener("mousewheel",GLUT.onMouseWheel,!0),window.removeEventListener("DOMMouseScroll",GLUT.onMouseWheel,!0),Module.canvas.width=Module.canvas.height=1}))}_glutGetModifiers.sig="i",_glutInit.sig="vpp";var _glutInitWindowSize=(e,t)=>{Browser.setCanvasSize(GLUT.initWindowWidth=e,GLUT.initWindowHeight=t)};_glutInitWindowSize.sig="vii";var _glutInitWindowPosition=(e,t)=>{};_glutInitWindowPosition.sig="vii";var _glutGet=e=>{switch(e){case 100:case 101:case 500:case 501:return 0;case 102:case 200:return Module.canvas.width;case 103:case 201:return Module.canvas.height;case 502:return GLUT.initWindowWidth;case 503:return GLUT.initWindowHeight;case 700:return Date.now()-GLUT.initTime;case 105:return Module.ctx.getContextAttributes().stencil?8:0;case 106:return Module.ctx.getContextAttributes().depth?8:0;case 110:return Module.ctx.getContextAttributes().alpha?8:0;case 120:return Module.ctx.getContextAttributes().antialias?1:0;default:throw"glutGet("+e+") not implemented yet"}};function _glutIdleFunc(e){e>>>=0,GLUT.idleFunc||safeSetTimeout((function e(){GLUT.idleFunc&&(getWasmTableEntry(GLUT.idleFunc)(),safeSetTimeout(e,4))}),0),GLUT.idleFunc=e}_glutGet.sig="ii",_glutIdleFunc.sig="vp";var _glutTimerFunc=function(e,t,r){return t>>>=0,safeSetTimeout((()=>getWasmTableEntry(t)(r)),e)};function _glutDisplayFunc(e){e>>>=0,GLUT.displayFunc=e}function _glutKeyboardFunc(e){e>>>=0,GLUT.keyboardFunc=e}function _glutKeyboardUpFunc(e){e>>>=0,GLUT.keyboardUpFunc=e}function _glutSpecialFunc(e){e>>>=0,GLUT.specialFunc=e}function _glutSpecialUpFunc(e){e>>>=0,GLUT.specialUpFunc=e}function _glutReshapeFunc(e){e>>>=0,GLUT.reshapeFunc=e}function _glutMotionFunc(e){e>>>=0,GLUT.motionFunc=e}function _glutPassiveMotionFunc(e){e>>>=0,GLUT.passiveMotionFunc=e}function _glutMouseFunc(e){e>>>=0,GLUT.mouseFunc=e}_glutTimerFunc.sig="vipi",_glutDisplayFunc.sig="vp",_glutKeyboardFunc.sig="vp",_glutKeyboardUpFunc.sig="vp",_glutSpecialFunc.sig="vp",_glutSpecialUpFunc.sig="vp",_glutReshapeFunc.sig="vp",_glutMotionFunc.sig="vp",_glutPassiveMotionFunc.sig="vp",_glutMouseFunc.sig="vp";var _glutSetCursor=e=>{var t="auto";switch(e){case 0:case 1:case 3:case 5:case 6:case 100:break;case 2:t="pointer";break;case 4:t="help";break;case 7:t="wait";break;case 8:t="text";break;case 9:case 102:t="crosshair";break;case 10:t="ns-resize";break;case 11:t="ew-resize";break;case 12:t="n-resize";break;case 13:t="s-resize";break;case 14:t="w-resize";break;case 15:t="e-resize";break;case 16:t="nw-resize";break;case 17:t="ne-resize";break;case 18:t="se-resize";break;case 19:t="sw-resize";break;case 101:t="none";break;default:throw"glutSetCursor: Unknown cursor type: "+e}Module.canvas.style.cursor=t};function _glutCreateWindow(e){var t={antialias:0!=(128&GLUT.initDisplayMode),depth:0!=(16&GLUT.initDisplayMode),stencil:0!=(32&GLUT.initDisplayMode),alpha:0!=(8&GLUT.initDisplayMode)};return Module.ctx=Browser.createContext(Module.canvas,!0,!0,t),Module.ctx?1:0}_glutSetCursor.sig="vi",_glutCreateWindow.sig="ip";var _glutDestroyWindow=e=>(delete Module.ctx,1);_glutDestroyWindow.sig="vi";var _glutReshapeWindow=(e,t)=>{Browser.exitFullscreen(),Browser.setCanvasSize(e,t,!0),GLUT.reshapeFunc&&getWasmTableEntry(GLUT.reshapeFunc)(e,t),_glutPostRedisplay()};_glutReshapeWindow.sig="vii";var _glutPositionWindow=(e,t)=>{Browser.exitFullscreen(),_glutPostRedisplay()};_glutPositionWindow.sig="vii";var _glutFullScreen=()=>{GLUT.windowX=0,GLUT.windowY=0,GLUT.windowWidth=Module.canvas.width,GLUT.windowHeight=Module.canvas.height,document.addEventListener("fullscreenchange",GLUT.onFullscreenEventChange,!0),document.addEventListener("mozfullscreenchange",GLUT.onFullscreenEventChange,!0),document.addEventListener("webkitfullscreenchange",GLUT.onFullscreenEventChange,!0),Browser.requestFullscreen(!1,!1)};_glutFullScreen.sig="v";var _glutInitDisplayMode=e=>GLUT.initDisplayMode=e;_glutInitDisplayMode.sig="vi";var _glutSwapBuffers=()=>{};_glutSwapBuffers.sig="v";var _glutMainLoop=()=>{throw _glutReshapeWindow(Module.canvas.width,Module.canvas.height),_glutPostRedisplay(),"unwind"};function _XOpenDisplay(e){return 1}function _XCreateWindow(e,t,r,i,n,a,s,o,l,c,_,u){return Browser.setCanvasSize(n,a),2}function _XChangeWindowAttributes(e,t,r,i){}function _XSetWMHints(e,t,r){}function _XMapWindow(e,t){}function _XStoreName(e,t,r){}function _XInternAtom(e,t,r){return 0}function _XSendEvent(e,t,r,i,n){}function _XPending(e){return 0}_glutMainLoop.sig="v",_XOpenDisplay.sig="pp",_XCreateWindow.sig="pppiiiiiiippp",_XChangeWindowAttributes.sig="ipppp",_XSetWMHints.sig="ippp",_XMapWindow.sig="ipp",_XStoreName.sig="ippp",_XInternAtom.sig="pppi",_XSendEvent.sig="ippipp",_XPending.sig="ip";var EGL={errorCode:12288,defaultDisplayInitialized:!1,currentContext:0,currentReadSurface:0,currentDrawSurface:0,contextAttributes:{alpha:!1,depth:!1,stencil:!1,antialias:!1},stringCache:{},setErrorCode(e){EGL.errorCode=e},chooseConfig(e,t,r,i,n){if(62e3!=e)return EGL.setErrorCode(12296),0;if(t)for(;;){var a=HEAP32[t>>>2>>>0];if(12321==a){var s=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.alpha=s>0}else if(12325==a){var o=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.depth=o>0}else if(12326==a){var l=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.stencil=l>0}else if(12337==a){var c=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.antialias=c>0}else if(12338==a)c=HEAP32[t+4>>>2>>>0],EGL.contextAttributes.antialias=1==c;else if(12544==a){var _=HEAP32[t+4>>>2>>>0];EGL.contextAttributes.lowLatency=12547!=_}else if(12344==a)break;t+=8}return r&&i||n?(n&&(HEAP32[n>>>2>>>0]=1),r&&i>0&&(HEAPU32[r>>>2>>>0]=62002),EGL.setErrorCode(12288),1):(EGL.setErrorCode(12300),0)}};function _eglGetDisplay(e){return e>>>=0,EGL.setErrorCode(12288),0!=e&&1!=e?0:62e3}function _eglInitialize(e,t,r){return t>>>=0,r>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(t&&(HEAP32[t>>>2>>>0]=1),r&&(HEAP32[r>>>2>>>0]=4),EGL.defaultDisplayInitialized=!0,EGL.setErrorCode(12288),1)}function _eglTerminate(e){return 62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(EGL.currentContext=0,EGL.currentReadSurface=0,EGL.currentDrawSurface=0,EGL.defaultDisplayInitialized=!1,EGL.setErrorCode(12288),1)}function _eglGetConfigs(e,t,r,i){return e>>>=0,t>>>=0,i>>>=0,EGL.chooseConfig(e,0,t,r,i)}function _eglChooseConfig(e,t,r,i,n){return e>>>=0,t>>>=0,r>>>=0,n>>>=0,EGL.chooseConfig(e,t,r,i,n)}function _eglGetConfigAttrib(e,t,r,i){if(t>>>=0,i>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62002!=t)return EGL.setErrorCode(12293),0;if(!i)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12320:return HEAP32[i>>>2>>>0]=EGL.contextAttributes.alpha?32:24,1;case 12321:return HEAP32[i>>>2>>>0]=EGL.contextAttributes.alpha?8:0,1;case 12322:case 12323:case 12324:return HEAP32[i>>>2>>>0]=8,1;case 12325:return HEAP32[i>>>2>>>0]=EGL.contextAttributes.depth?24:0,1;case 12326:return HEAP32[i>>>2>>>0]=EGL.contextAttributes.stencil?8:0,1;case 12327:case 12335:case 12340:return HEAP32[i>>>2>>>0]=12344,1;case 12328:return HEAP32[i>>>2>>>0]=62002,1;case 12329:case 12333:case 12334:case 12345:case 12346:case 12347:case 12349:case 12350:case 12354:return HEAP32[i>>>2>>>0]=0,1;case 12330:case 12332:return HEAP32[i>>>2>>>0]=4096,1;case 12331:return HEAP32[i>>>2>>>0]=16777216,1;case 12337:return HEAP32[i>>>2>>>0]=EGL.contextAttributes.antialias?4:0,1;case 12338:return HEAP32[i>>>2>>>0]=EGL.contextAttributes.antialias?1:0,1;case 12339:case 12352:return HEAP32[i>>>2>>>0]=4,1;case 12341:case 12342:case 12343:return HEAP32[i>>>2>>>0]=-1,1;case 12348:return HEAP32[i>>>2>>>0]=1,1;case 12351:return HEAP32[i>>>2>>>0]=12430,1;default:return EGL.setErrorCode(12292),0}}function _eglCreateWindowSurface(e,t,r,i){return t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62002!=t?(EGL.setErrorCode(12293),0):(EGL.setErrorCode(12288),62006)}function _eglDestroySurface(e,t){return t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62006!=t?(EGL.setErrorCode(12301),1):(EGL.currentReadSurface==t&&(EGL.currentReadSurface=0),EGL.currentDrawSurface==t&&(EGL.currentDrawSurface=0),EGL.setErrorCode(12288),1)}function _eglCreateContext(e,t,r,i){if(i>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;for(var n=1;;){var a=HEAP32[i>>>2>>>0];if(12440!=a){if(12344==a)break;return EGL.setErrorCode(12292),0}n=HEAP32[i+4>>>2>>>0],i+=8}return 2!=n?(EGL.setErrorCode(12293),0):(EGL.contextAttributes.majorVersion=n-1,EGL.contextAttributes.minorVersion=0,EGL.context=GL.createContext(Module.canvas,EGL.contextAttributes),0!=EGL.context?(EGL.setErrorCode(12288),GL.makeContextCurrent(EGL.context),Browser.useWebGL=!0,Browser.moduleContextCreatedCallbacks.forEach((e=>e())),GL.makeContextCurrent(null),62004):(EGL.setErrorCode(12297),0))}function _eglDestroyContext(e,t){return t>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):62004!=t?(EGL.setErrorCode(12294),0):(GL.deleteContext(EGL.context),EGL.setErrorCode(12288),EGL.currentContext==t&&(EGL.currentContext=0),1)}function _eglQuerySurface(e,t,r,i){if(t>>>=0,i>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62006!=t)return EGL.setErrorCode(12301),0;if(!i)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12328:return HEAP32[i>>>2>>>0]=62002,1;case 12376:case 12416:case 12417:case 12418:case 12419:return 1;case 12375:return HEAP32[i>>>2>>>0]=Module.canvas.width,1;case 12374:return HEAP32[i>>>2>>>0]=Module.canvas.height,1;case 12432:case 12433:case 12434:return HEAP32[i>>>2>>>0]=-1,1;case 12422:return HEAP32[i>>>2>>>0]=12420,1;case 12441:return HEAP32[i>>>2>>>0]=12442,1;case 12435:return HEAP32[i>>>2>>>0]=12437,1;default:return EGL.setErrorCode(12292),0}}function _eglQueryContext(e,t,r,i){if(t>>>=0,i>>>=0,62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(62004!=t)return EGL.setErrorCode(12294),0;if(!i)return EGL.setErrorCode(12300),0;switch(EGL.setErrorCode(12288),r){case 12328:return HEAP32[i>>>2>>>0]=62002,1;case 12439:return HEAP32[i>>>2>>>0]=12448,1;case 12440:return HEAP32[i>>>2>>>0]=EGL.contextAttributes.majorVersion+1,1;case 12422:return HEAP32[i>>>2>>>0]=12420,1;default:return EGL.setErrorCode(12292),0}}_eglGetDisplay.sig="pp",_eglInitialize.sig="ippp",_eglTerminate.sig="ip",_eglGetConfigs.sig="ippip",_eglChooseConfig.sig="ipppip",_eglGetConfigAttrib.sig="ippip",_eglCreateWindowSurface.sig="pppip",_eglDestroySurface.sig="ipp",_eglCreateContext.sig="ppppp",_eglDestroyContext.sig="ipp",_eglQuerySurface.sig="ippip",_eglQueryContext.sig="ippip";var _eglGetError=()=>EGL.errorCode;function _eglQueryString(e,t){if(62e3!=(e>>>=0))return EGL.setErrorCode(12296),0;if(EGL.setErrorCode(12288),EGL.stringCache[t])return EGL.stringCache[t];var r;switch(t){case 12371:r=stringToNewUTF8("Emscripten");break;case 12372:r=stringToNewUTF8("1.4 Emscripten EGL");break;case 12373:r=stringToNewUTF8("");break;case 12429:r=stringToNewUTF8("OpenGL_ES");break;default:return EGL.setErrorCode(12300),0}return EGL.stringCache[t]=r,r}_eglGetError.sig="i",_eglQueryString.sig="ppi";var _eglBindAPI=e=>12448==e?(EGL.setErrorCode(12288),1):(EGL.setErrorCode(12300),0);_eglBindAPI.sig="ii";var _eglQueryAPI=()=>(EGL.setErrorCode(12288),12448);_eglQueryAPI.sig="i";var _eglWaitClient=()=>(EGL.setErrorCode(12288),1);_eglWaitClient.sig="i";var _eglWaitNative=e=>(EGL.setErrorCode(12288),1);_eglWaitNative.sig="ii";var _eglWaitGL=_eglWaitClient;function _eglSwapInterval(e,t){return 62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):(0==t?_emscripten_set_main_loop_timing(0,0):_emscripten_set_main_loop_timing(1,t),EGL.setErrorCode(12288),1)}function _eglMakeCurrent(e,t,r,i){return t>>>=0,r>>>=0,i>>>=0,62e3!=(e>>>=0)?(EGL.setErrorCode(12296),0):0!=i&&62004!=i?(EGL.setErrorCode(12294),0):0!=r&&62006!=r||0!=t&&62006!=t?(EGL.setErrorCode(12301),0):(GL.makeContextCurrent(i?EGL.context:null),EGL.currentContext=i,EGL.currentDrawSurface=t,EGL.currentReadSurface=r,EGL.setErrorCode(12288),1)}function _eglGetCurrentContext(){return EGL.currentContext}function _eglGetCurrentSurface(e){return 12378==e?EGL.currentReadSurface:12377==e?EGL.currentDrawSurface:(EGL.setErrorCode(12300),0)}function _eglGetCurrentDisplay(){return EGL.currentContext?62e3:0}function _eglSwapBuffers(e,t){if(EGL.defaultDisplayInitialized)if(Module.ctx){if(!Module.ctx.isContextLost())return EGL.setErrorCode(12288),1;EGL.setErrorCode(12302)}else EGL.setErrorCode(12290);else EGL.setErrorCode(12289);return 0}_eglWaitGL.sig="i",_eglSwapInterval.sig="ipi",_eglMakeCurrent.sig="ipppp",_eglGetCurrentContext.sig="p",_eglGetCurrentSurface.sig="pi",_eglGetCurrentDisplay.sig="p",_eglSwapBuffers.sig="ipp";var _eglReleaseThread=()=>(EGL.currentContext=0,EGL.currentReadSurface=0,EGL.currentDrawSurface=0,EGL.setErrorCode(12288),1);function _uuid_clear(e){return zeroMemory(e>>>=0,16)}function _uuid_compare(e,t){return _memcmp(e>>>=0,t>>>=0,16)}function _uuid_copy(e,t){return _memcpy(e>>>=0,t>>>=0,16)}function _uuid_generate(e){e>>>=0;var t=null;if(ENVIRONMENT_IS_NODE)try{t=(0,xi("crypto").randomBytes)(16)}catch(e){}else ENVIRONMENT_IS_WEB&&typeof window.crypto<"u"&&typeof window.crypto.getRandomValues<"u"&&(t=new Uint8Array(16),window.crypto.getRandomValues(t));if(!t){t=new Array(16);for(var r=(new Date).getTime(),i=0;i<16;i++){var n=(r+256*Math.random())%256|0;r=r/256|0,t[i]=n}}t[6]=15&t[6]|64,t[8]=63&t[8]|128,writeArrayToMemory(t,e)}function _uuid_is_null(e){e>>>=0;for(var t=0;t<4;t++,e=e+4|0)if(HEAP32[e>>>2>>>0])return 0;return 1}function _uuid_parse(e,t){if(t>>>=0,36===(e=UTF8ToString(e>>>=0)).length){var r=0,i=new Array(16);return e.toLowerCase().replace(/[0-9a-f]{2}/g,(function(e){r<16&&(i[r++]=parseInt(e,16))})),r<16?-1:(writeArrayToMemory(i,t),0)}return-1}function _uuid_unparse(e,t,r){e>>>=0,t>>>=0;var i=0,n="xxxx-xx-xx-xx-xxxxxx".replace(/[x]/g,(function(t){var n=r?HEAPU8[e+i>>>0].toString(16).toUpperCase():HEAPU8[e+i>>>0].toString(16);return n=1===n.length?"0"+n:n,i++,n}));stringToUTF8(n,t,37)}function _uuid_unparse_lower(e,t){_uuid_unparse(e>>>=0,t>>>=0)}function _uuid_unparse_upper(e,t){_uuid_unparse(e>>>=0,t>>>=0,!0)}function _uuid_type(e){return 4}function _uuid_variant(e){return 1}_eglReleaseThread.sig="i",_uuid_clear.sig="vp",_uuid_compare.sig="ipp",_uuid_copy.sig="vpp",_uuid_generate.sig="vp",_uuid_is_null.sig="ip",_uuid_parse.sig="ipp",_uuid_unparse.sig="vpp",_uuid_unparse_lower.sig="vpp",_uuid_unparse_upper.sig="vpp",_uuid_type.sig="ip",_uuid_variant.sig="ip";var GLEW={isLinaroFork:1,extensions:null,error:{0:null,1:null,2:null,3:null,4:null,5:null,6:null,7:null,8:null},version:{1:null,2:null,3:null,4:null},errorStringConstantFromCode(e){if(GLEW.isLinaroFork)switch(e){case 4:return"OpenGL ES lib expected, found OpenGL lib";case 5:return"OpenGL lib expected, found OpenGL ES lib";case 6:return"Missing EGL version";case 7:return"EGL 1.1 and up are supported"}switch(e){case 0:return"No error";case 1:return"Missing GL version";case 2:return"GL 1.1 and up are supported";case 3:return"GLX 1.2 and up are supported";default:return null}},errorString(e){if(!GLEW.error[e]){var t=GLEW.errorStringConstantFromCode(e);t||(t="Unknown error",e=8),GLEW.error[e]=stringToNewUTF8(t)}return GLEW.error[e]},versionStringConstantFromCode(e){switch(e){case 1:return"1.10.0";case 2:return"1";case 3:return"10";case 4:return"0";default:return null}},versionString(e){if(!GLEW.version[e]){var t=GLEW.versionStringConstantFromCode(e);if(!t)return 0;GLEW.version[e]=stringToNewUTF8(t)}return GLEW.version[e]},extensionIsSupported:e=>(GLEW.extensions||(GLEW.extensions=webglGetExtensions()),GLEW.extensions.includes(e)?1:GLEW.extensions.includes("GL_"+e))},_glewInit=()=>0;function _glewIsSupported(e){for(var t=UTF8ToString(e>>>=0).split(" "),r=0;r>>=0,GLEW.extensionIsSupported(UTF8ToString(e))}function _glewGetErrorString(e){return GLEW.errorString(e)}function _glewGetString(e){return GLEW.versionString(e)}_glewInit.sig="i",_glewIsSupported.sig="ip",_glewGetExtension.sig="ip",_glewGetErrorString.sig="pi",_glewGetString.sig="pi";var IDBStore={indexedDB(){if(typeof indexedDB<"u")return indexedDB;var e=null;return"object"==typeof window&&(e=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB),assert(e,"IDBStore used, but indexedDB not supported"),e},DB_VERSION:22,DB_STORE_NAME:"FILE_DATA",dbs:{},blobs:[0],getDB(e,t){var r,i=IDBStore.dbs[e];if(i)return t(null,i);try{r=IDBStore.indexedDB().open(e,IDBStore.DB_VERSION)}catch(e){return t(e)}r.onupgradeneeded=e=>{var t=e.target.result,r=e.target.transaction;t.objectStoreNames.contains(IDBStore.DB_STORE_NAME)?r.objectStore(IDBStore.DB_STORE_NAME):t.createObjectStore(IDBStore.DB_STORE_NAME)},r.onsuccess=()=>{i=r.result,IDBStore.dbs[e]=i,t(null,i)},r.onerror=function(e){t(e.target.error||"unknown error"),e.preventDefault()}},getStore(e,t,r){IDBStore.getDB(e,((e,i)=>{if(e)return r(e);var n=i.transaction([IDBStore.DB_STORE_NAME],t);n.onerror=e=>{r(e.target.error||"unknown error"),e.preventDefault()};var a=n.objectStore(IDBStore.DB_STORE_NAME);r(null,a)}))},getFile(e,t,r){IDBStore.getStore(e,"readonly",((e,i)=>{if(e)return r(e);var n=i.get(t);n.onsuccess=e=>{var i=e.target.result;return i?r(null,i):r("file ".concat(t," not found"))},n.onerror=r}))},setFile(e,t,r,i){IDBStore.getStore(e,"readwrite",((e,n)=>{if(e)return i(e);var a=n.put(r,t);a.onsuccess=e=>i(),a.onerror=i}))},deleteFile(e,t,r){IDBStore.getStore(e,"readwrite",((e,i)=>{if(e)return r(e);var n=i.delete(t);n.onsuccess=e=>r(),n.onerror=r}))},existsFile(e,t,r){IDBStore.getStore(e,"readonly",((e,i)=>{if(e)return r(e);var n=i.count(t);n.onsuccess=e=>r(null,e.target.result>0),n.onerror=r}))},clearStore(e,t){IDBStore.getStore(e,"readwrite",((e,r)=>{if(e)return t(e);var i=r.clear();i.onsuccess=e=>t(),i.onerror=t}))}},_emscripten_idb_async_load=function(e,t,r,i,n){e>>>=0,t>>>=0,r>>>=0,i>>>=0,n>>>=0,IDBStore.getFile(UTF8ToString(e),UTF8ToString(t),((e,t)=>{callUserCallback((()=>{if(e)n&&getWasmTableEntry(n)(r);else{var a=_malloc(t.length);HEAPU8.set(t,a>>>0),getWasmTableEntry(i)(r,a,t.length),_free(a)}}))}))};_emscripten_idb_async_load.sig="vppppp";var _emscripten_idb_async_store=function(e,t,r,i,n,a,s){e>>>=0,t>>>=0,r>>>=0,n>>>=0,a>>>=0,s>>>=0,IDBStore.setFile(UTF8ToString(e),UTF8ToString(t),new Uint8Array(HEAPU8.subarray(r>>>0,r+i>>>0)),(e=>{callUserCallback((()=>{e?s&&getWasmTableEntry(s)(n):a&&getWasmTableEntry(a)(n)}))}))};_emscripten_idb_async_store.sig="vpppippp";var _emscripten_idb_async_delete=function(e,t,r,i,n){e>>>=0,t>>>=0,r>>>=0,i>>>=0,n>>>=0,IDBStore.deleteFile(UTF8ToString(e),UTF8ToString(t),(e=>{callUserCallback((()=>{e?n&&getWasmTableEntry(n)(r):i&&getWasmTableEntry(i)(r)}))}))};_emscripten_idb_async_delete.sig="vppppp";var _emscripten_idb_async_exists=function(e,t,r,i,n){e>>>=0,t>>>=0,r>>>=0,i>>>=0,n>>>=0,IDBStore.existsFile(UTF8ToString(e),UTF8ToString(t),((e,t)=>{callUserCallback((()=>{e?n&&getWasmTableEntry(n)(r):i&&getWasmTableEntry(i)(r,t)}))}))};_emscripten_idb_async_exists.sig="vppppp";var _emscripten_idb_async_clear=function(e,t,r,i){e>>>=0,t>>>=0,r>>>=0,i>>>=0,IDBStore.clearStore(UTF8ToString(e),(e=>{callUserCallback((()=>{e?i&&getWasmTableEntry(i)(t):r&&getWasmTableEntry(r)(t)}))}))};function _emscripten_idb_load(e,t,r,i,n){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_load, etc."}function _emscripten_idb_store(e,t,r,i,n){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_store, etc."}function _emscripten_idb_delete(e,t,r){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_delete, etc."}function _emscripten_idb_exists(e,t,r,i){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_exists, etc."}function _emscripten_idb_clear(e,t){throw"Please compile your program with async support in order to use synchronous operations like emscripten_idb_clear, etc."}_emscripten_idb_async_clear.sig="vpppp",_emscripten_idb_load.sig="vppppp",_emscripten_idb_store.sig="vpppip",_emscripten_idb_delete.sig="vppp",_emscripten_idb_exists.sig="vpppp",_emscripten_idb_clear.sig="vpp";var runAndAbortIfError=e=>{try{return e()}catch(e){abort(e)}},_emscripten_sleep=()=>{throw"Please compile your program with async support in order to use asynchronous operations like emscripten_sleep"};function _emscripten_wget(e,t){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_wget"}function _emscripten_scan_registers(e){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_scan_registers"}function _emscripten_fiber_swap(e,t){throw"Please compile your program with async support in order to use asynchronous operations like emscripten_fiber_swap"}_emscripten_sleep.sig="vi",Module._emscripten_wget=_emscripten_wget,_emscripten_wget.sig="ipp",_emscripten_scan_registers.sig="vp",_emscripten_fiber_swap.sig="vpp";var _SDL_GetTicks=()=>Date.now()-SDL.startTime|0;function _SDL_LockSurface(e){e>>>=0;var t=SDL.surfaces[e];if(t.locked++,t.locked>1||(t.buffer||(t.buffer=_malloc(t.width*t.height*4),HEAPU32[e+20>>>2>>>0]=t.buffer),HEAPU32[e+20>>>2>>>0]=t.buffer,e==SDL.screen&&Module.screenIsReadOnly&&t.image))return 0;if(SDL.defaults.discardOnLock){if(t.image||(t.image=t.ctx.createImageData(t.width,t.height)),!SDL.defaults.opaqueFrontBuffer)return}else t.image=t.ctx.getImageData(0,0,t.width,t.height);if(e==SDL.screen&&SDL.defaults.opaqueFrontBuffer)for(var r=t.image.data,i=r.length,n=0;n>>0)}return 0}_SDL_GetTicks.sig="i",_SDL_LockSurface.sig="ip";var SDL={defaults:{width:320,height:200,copyOnLock:!0,discardOnLock:!1,opaqueFrontBuffer:!0},version:null,surfaces:{},canvasPool:[],events:[],fonts:[null],audios:[null],rwops:[null],music:{audio:null,volume:1},mixerFrequency:22050,mixerFormat:32784,mixerNumChannels:2,mixerChunkSize:1024,channelMinimumNumber:0,GL:!1,glAttributes:{0:3,1:3,2:2,3:0,4:0,5:1,6:16,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:1,16:0,17:0,18:0},keyboardState:null,keyboardMap:{},canRequestFullscreen:!1,isRequestingFullscreen:!1,textInput:!1,unicode:!1,ttfContext:null,audio:null,startTime:null,initFlags:0,buttonState:0,modState:0,DOMButtons:[0,0,0],DOMEventToSDLEvent:{},TOUCH_DEFAULT_ID:0,eventHandler:null,eventHandlerContext:null,eventHandlerTemp:0,keyCodes:{16:1249,17:1248,18:1250,20:1081,33:1099,34:1102,35:1101,36:1098,37:1104,38:1106,39:1103,40:1105,44:316,45:1097,46:127,91:1251,93:1125,96:1122,97:1113,98:1114,99:1115,100:1116,101:1117,102:1118,103:1119,104:1120,105:1121,106:1109,107:1111,109:1110,110:1123,111:1108,112:1082,113:1083,114:1084,115:1085,116:1086,117:1087,118:1088,119:1089,120:1090,121:1091,122:1092,123:1093,124:1128,125:1129,126:1130,127:1131,128:1132,129:1133,130:1134,131:1135,132:1136,133:1137,134:1138,135:1139,144:1107,160:94,161:33,162:34,163:35,164:36,165:37,166:38,167:95,168:40,169:41,170:42,171:43,172:124,173:45,174:123,175:125,176:126,181:127,182:129,183:128,188:44,190:46,191:47,192:96,219:91,220:92,221:93,222:39,224:1251},scanCodes:{8:42,9:43,13:40,27:41,32:44,35:204,39:53,44:54,46:55,47:56,48:39,49:30,50:31,51:32,52:33,53:34,54:35,55:36,56:37,57:38,58:203,59:51,61:46,91:47,92:49,93:48,96:52,97:4,98:5,99:6,100:7,101:8,102:9,103:10,104:11,105:12,106:13,107:14,108:15,109:16,110:17,111:18,112:19,113:20,114:21,115:22,116:23,117:24,118:25,119:26,120:27,121:28,122:29,127:76,305:224,308:226,316:70},loadRect:e=>({x:HEAP32[e>>>2>>>0],y:HEAP32[e+4>>>2>>>0],w:HEAP32[e+8>>>2>>>0],h:HEAP32[e+12>>>2>>>0]}),updateRect(e,t){HEAP32[e>>>2>>>0]=t.x,HEAP32[e+4>>>2>>>0]=t.y,HEAP32[e+8>>>2>>>0]=t.w,HEAP32[e+12>>>2>>>0]=t.h},intersectionOfRects(e,t){var r=Math.max(e.x,t.x),i=Math.max(e.y,t.y),n=Math.min(e.x+e.w,t.x+t.w),a=Math.min(e.y+e.h,t.y+t.h);return{x:r,y:i,w:Math.max(r,n)-r,h:Math.max(i,a)-i}},checkPixelFormat(e){},loadColorToCSSRGB(e){var t=HEAP32[e>>>2>>>0];return"rgb("+(255&t)+","+(t>>8&255)+","+(t>>16&255)+")"},loadColorToCSSRGBA(e){var t=HEAP32[e>>>2>>>0];return"rgba("+(255&t)+","+(t>>8&255)+","+(t>>16&255)+","+(t>>24&255)/255+")"},translateColorToCSSRGBA:e=>"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>>24)/255+")",translateRGBAToCSSRGBA:(e,t,r,i)=>"rgba("+(255&e)+","+(255&t)+","+(255&r)+","+(255&i)/255+")",translateRGBAToColor:(e,t,r,i)=>e|t<<8|r<<16|i<<24,makeSurface(e,t,r,i,n,a,s,o,l){var c,_=1&r,u=2097152&r,d=67108864&r,p=_malloc(60),f=_malloc(44),m=u?1:4,h=0;!_&&!d&&(h=_malloc(e*t*4)),HEAP32[p>>>2>>>0]=r,HEAPU32[p+4>>>2>>>0]=f,HEAP32[p+8>>>2>>>0]=e,HEAP32[p+12>>>2>>>0]=t,HEAP32[p+16>>>2>>>0]=e*m,HEAPU32[p+20>>>2>>>0]=h,HEAP32[p+36>>>2>>>0]=0,HEAP32[p+40>>>2>>>0]=0,HEAP32[p+44>>>2>>>0]=Module.canvas.width,HEAP32[p+48>>>2>>>0]=Module.canvas.height,HEAP32[p+56>>>2>>>0]=1,HEAP32[f>>>2>>>0]=-2042224636,HEAP32[f+4>>>2>>>0]=0,HEAP8[f+8>>>0]=8*m,HEAP8[f+9>>>0]=m,HEAP32[f+12>>>2>>>0]=a||255,HEAP32[f+16>>>2>>>0]=s||65280,HEAP32[f+20>>>2>>>0]=o||16711680,HEAP32[f+24>>>2>>>0]=l||4278190080,SDL.GL=SDL.GL||d,i?c=Module.canvas:((c=SDL.canvasPool.length>0?SDL.canvasPool.pop():document.createElement("canvas")).width=e,c.height=t);var g={antialias:0!=SDL.glAttributes[13]&&SDL.glAttributes[14]>1,depth:SDL.glAttributes[6]>0,stencil:SDL.glAttributes[7]>0,alpha:SDL.glAttributes[3]>0},v=Browser.createContext(c,d,i,g);return SDL.surfaces[p]={width:e,height:t,canvas:c,ctx:v,surf:p,buffer:h,pixelFormat:f,alpha:255,flags:r,locked:0,usePageCanvas:i,source:n,isFlagSet:e=>r&e},p},copyIndexedColorData(e,t,r,i,n){if(e.colors){var a=Module.canvas.width,s=Module.canvas.height,o=t||0,l=r||0,c=(i||a-o)+o,_=(n||s-l)+l,u=e.buffer;e.image.data32||(e.image.data32=new Uint32Array(e.image.data.buffer));for(var d=e.image.data32,p=e.colors32,f=l;f<_;++f)for(var m=f*a,h=o;h>>0]]}},freeSurface(e){var t=e+56,r=HEAP32[t>>>2>>>0];if(r>1)HEAP32[t>>>2>>>0]=r-1;else{var i=SDL.surfaces[e];!i.usePageCanvas&&i.canvas&&SDL.canvasPool.push(i.canvas),i.buffer&&_free(i.buffer),_free(i.pixelFormat),_free(e),SDL.surfaces[e]=null,e===SDL.screen&&(SDL.screen=null)}},blitSurface(e,t,r,i,n){var a,s,o,l,c=SDL.surfaces[e],_=SDL.surfaces[r];if(a=t?SDL.loadRect(t):{x:0,y:0,w:c.width,h:c.height},s=i?SDL.loadRect(i):{x:0,y:0,w:c.width,h:c.height},_.clipRect){var u=n&&0!==a.w?a.w/s.w:1,d=n&&0!==a.h?a.h/s.h:1;s=SDL.intersectionOfRects(_.clipRect,s),a.w=s.w*u,a.h=s.h*d,i&&SDL.updateRect(i,s)}if(n?(o=s.w,l=s.h):(o=a.w,l=a.h),0===a.w||0===a.h||0===o||0===l)return 0;var p=_.ctx.globalAlpha;return _.ctx.globalAlpha=c.alpha/255,_.ctx.drawImage(c.canvas,a.x,a.y,a.w,a.h,s.x,s.y,o,l),_.ctx.globalAlpha=p,r!=SDL.screen&&(warnOnce("WARNING: copying canvas data to memory for compatibility"),_SDL_LockSurface(r),_.locked--),0},downFingers:{},savedKeydown:null,receiveEvent(e){function t(){for(var e in SDL.keyboardMap)SDL.events.push({type:"keyup",keyCode:SDL.keyboardMap[e]})}switch(e.type){case"touchstart":case"touchmove":e.preventDefault();var r=[];if("touchstart"===e.type)for(var i=0;i0?Math.max(l,1):Math.min(l,-1))>0?3:4;SDL.events.push({type:"mousedown",button:c,pageX:e.pageX,pageY:e.pageY}),SDL.events.push({type:"mouseup",button:c,pageX:e.pageX,pageY:e.pageY}),SDL.events.push({type:"wheel",deltaX:0,deltaY:l}),e.preventDefault();break;case"mousemove":if(1===SDL.DOMButtons[0]&&SDL.events.push({type:"touchmove",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}}),Browser.pointerLock&&("mozMovementX"in e&&(e.movementX=e.mozMovementX,e.movementY=e.mozMovementY),0==e.movementX&&0==e.movementY))return void e.preventDefault();case"keydown":case"keyup":case"keypress":case"mousedown":case"mouseup":if(("keydown"!==e.type||!SDL.unicode&&!SDL.textInput||8===e.keyCode||9===e.keyCode)&&e.preventDefault(),"mousedown"==e.type)SDL.DOMButtons[e.button]=1,SDL.events.push({type:"touchstart",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}});else if("mouseup"==e.type){if(!SDL.DOMButtons[e.button])return;SDL.events.push({type:"touchend",touch:{identifier:0,deviceID:-1,pageX:e.pageX,pageY:e.pageY}}),SDL.DOMButtons[e.button]=0}"keydown"===e.type||"mousedown"===e.type?SDL.canRequestFullscreen=!0:("keyup"===e.type||"mouseup"===e.type)&&(SDL.isRequestingFullscreen&&(Module.requestFullscreen(!0,!0),SDL.isRequestingFullscreen=!1),SDL.canRequestFullscreen=!1),"keypress"===e.type&&SDL.savedKeydown?(SDL.savedKeydown.keypressCharCode=e.charCode,SDL.savedKeydown=null):"keydown"===e.type&&(SDL.savedKeydown=e),("keypress"!==e.type||SDL.textInput)&&SDL.events.push(e);break;case"mouseout":for(i=0;i<3;i++)SDL.DOMButtons[i]&&(SDL.events.push({type:"mouseup",button:i,pageX:e.pageX,pageY:e.pageY}),SDL.DOMButtons[i]=0);e.preventDefault();break;case"focus":SDL.events.push(e),e.preventDefault();break;case"blur":SDL.events.push(e),t(),e.preventDefault();break;case"visibilitychange":SDL.events.push({type:"visibilitychange",visible:!document.hidden}),t(),e.preventDefault();break;case"unload":return void(MainLoop.runner&&(SDL.events.push(e),MainLoop.runner()));case"resize":SDL.events.push(e),e.preventDefault&&e.preventDefault()}SDL.events.length>=1e4&&(err("SDL event queue full, dropping events"),SDL.events=SDL.events.slice(0,1e4)),SDL.flushEventsToHandler()},lookupKeyCodeForEvent(e){var t=e.keyCode;return t>=65&&t<=90?t+=32:(t=SDL.keyCodes[e.keyCode]||e.keyCode,2===e.location&&t>=1248&&t<=1251&&(t+=4)),t},handleEvent(e){if(!e.handled)switch(e.handled=!0,e.type){case"touchstart":case"touchend":case"touchmove":Browser.calculateMouseEvent(e);break;case"keydown":case"keyup":var t="keydown"===e.type,r=SDL.lookupKeyCodeForEvent(e);HEAP8[SDL.keyboardState+r>>>0]=t,SDL.modState=(HEAP8[SDL.keyboardState+1248>>>0]?64:0)|(HEAP8[SDL.keyboardState+1249>>>0]?1:0)|(HEAP8[SDL.keyboardState+1250>>>0]?256:0)|(HEAP8[SDL.keyboardState+1252>>>0]?128:0)|(HEAP8[SDL.keyboardState+1253>>>0]?2:0)|(HEAP8[SDL.keyboardState+1254>>>0]?512:0),t?SDL.keyboardMap[r]=e.keyCode:delete SDL.keyboardMap[r];break;case"mousedown":case"mouseup":"mousedown"==e.type?SDL.buttonState|=1<0;)if(!1!==SDL.makeCEvent(SDL.events.shift(),e))return 1;return 0}return SDL.events.length>0},makeCEvent(e,t){if("number"==typeof e)return _memcpy(t,e,28),void _free(e);switch(SDL.handleEvent(e),e.type){case"keydown":case"keyup":var r,i="keydown"===e.type,n=SDL.lookupKeyCodeForEvent(e);r=n>=1024?n-1024:SDL.scanCodes[n]||n,HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP8[t+8>>>0]=i?1:0,HEAP8[t+9>>>0]=0,HEAP32[t+12>>>2>>>0]=r,HEAP32[t+16>>>2>>>0]=n,HEAP16[t+20>>>1>>>0]=SDL.modState,HEAP32[t+24>>>2>>>0]=e.keypressCharCode||n;break;case"keypress":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type];for(var a=intArrayFromString(String.fromCharCode(e.charCode)),s=0;s>>0]=a[s];break;case"mousedown":case"mouseup":case"mousemove":"mousemove"!=e.type?(i="mousedown"===e.type,HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP32[t+8>>>2>>>0]=0,HEAP32[t+12>>>2>>>0]=0,HEAP8[t+16>>>0]=e.button+1,HEAP8[t+17>>>0]=i?1:0,HEAP32[t+20>>>2>>>0]=Browser.mouseX,HEAP32[t+24>>>2>>>0]=Browser.mouseY):(HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP32[t+8>>>2>>>0]=0,HEAP32[t+12>>>2>>>0]=0,HEAP32[t+16>>>2>>>0]=SDL.buttonState,HEAP32[t+20>>>2>>>0]=Browser.mouseX,HEAP32[t+24>>>2>>>0]=Browser.mouseY,HEAP32[t+28>>>2>>>0]=Browser.mouseMovementX,HEAP32[t+32>>>2>>>0]=Browser.mouseMovementY);break;case"wheel":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+16>>>2>>>0]=e.deltaX,HEAP32[t+20>>>2>>>0]=e.deltaY;break;case"touchstart":case"touchend":case"touchmove":var o=e.touch;if(!Browser.touches[o.identifier])break;var l=Module.canvas.width,c=Module.canvas.height,_=Browser.touches[o.identifier].x/l,u=Browser.touches[o.identifier].y/c,d=_-Browser.lastTouches[o.identifier].x/l,p=u-Browser.lastTouches[o.identifier].y/c;if(void 0===o.deviceID&&(o.deviceID=SDL.TOUCH_DEFAULT_ID),0===d&&0===p&&"touchmove"===e.type)return!1;HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=_SDL_GetTicks(),tempI64=[o.deviceID>>>0,(tempDouble=o.deviceID,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+8>>>2>>>0]=tempI64[0],HEAP32[t+12>>>2>>>0]=tempI64[1],tempI64=[o.identifier>>>0,(tempDouble=o.identifier,+Math.abs(tempDouble)>=1?tempDouble>0?+Math.floor(tempDouble/4294967296)>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[t+16>>>2>>>0]=tempI64[0],HEAP32[t+20>>>2>>>0]=tempI64[1],HEAPF32[t+24>>>2>>>0]=_,HEAPF32[t+28>>>2>>>0]=u,HEAPF32[t+32>>>2>>>0]=d,HEAPF32[t+36>>>2>>>0]=p,void 0!==o.force?HEAPF32[t+40>>>2>>>0]=o.force:HEAPF32[t+40>>>2>>>0]="touchend"==e.type?0:1;break;case"unload":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type];break;case"resize":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=e.w,HEAP32[t+8>>>2>>>0]=e.h;break;case"joystick_button_up":case"joystick_button_down":var f="joystick_button_up"===e.type?0:1;HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP8[t+4>>>0]=e.index,HEAP8[t+5>>>0]=e.button,HEAP8[t+6>>>0]=f;break;case"joystick_axis_motion":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP8[t+4>>>0]=e.index,HEAP8[t+5>>>0]=e.axis,HEAP32[t+8>>>2>>>0]=SDL.joystickAxisValueConversion(e.value);break;case"focus":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP8[t+8>>>0]=12;break;case"blur":HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP8[t+8>>>0]=13;break;case"visibilitychange":var m=e.visible?1:2;HEAP32[t>>>2>>>0]=SDL.DOMEventToSDLEvent[e.type],HEAP32[t+4>>>2>>>0]=0,HEAP8[t+8>>>0]=m;break;default:throw"Unhandled SDL event: "+e.type}},makeFontString:(e,t)=>("'"!=t.charAt(0)&&'"'!=t.charAt(0)&&(t='"'+t+'"'),e+"px "+t+", serif"),estimateTextWidth(e,t){var r=e.size,i=SDL.makeFontString(r,e.name),n=SDL.ttfContext;return n.font=i,0|n.measureText(t).width},allocateChannels(e){if(!(SDL.numChannels&&SDL.numChannels>=e&&0!=e)){SDL.numChannels=e,SDL.channels=[];for(var t=0;t{e.paused||SDL.playWebAudio(e)}));e.webAudioNode=SDL.audioContext.createBufferSource(),e.webAudioNode.buffer=t.decodedBuffer,e.webAudioNode.loop=e.loop,e.webAudioNode.onended=e.onended,e.webAudioPannerNode=SDL.audioContext.createPanner(),e.webAudioPannerNode.setPosition(0,0,-.5),e.webAudioPannerNode.panningModel="equalpower",e.webAudioGainNode=SDL.audioContext.createGain(),e.webAudioGainNode.gain.value=e.volume,e.webAudioNode.connect(e.webAudioPannerNode),e.webAudioPannerNode.connect(e.webAudioGainNode),e.webAudioGainNode.connect(SDL.audioContext.destination),e.webAudioNode.start(0,e.currentPosition),e.startTime=SDL.audioContext.currentTime-e.currentPosition}catch(e){err("playWebAudio failed: ".concat(e))}},pauseWebAudio(e){if(e){if(e.webAudioNode)try{e.currentPosition=(SDL.audioContext.currentTime-e.startTime)%e.resource.webAudio.decodedBuffer.duration,e.webAudioNode.onended=void 0,e.webAudioNode.stop(0),e.webAudioNode=void 0}catch(e){err("pauseWebAudio failed: ".concat(e))}e.paused=!0}},openAudioContext(){SDL.audioContext||(typeof AudioContext<"u"?SDL.audioContext=new AudioContext:typeof webkitAudioContext<"u"&&(SDL.audioContext=new webkitAudioContext))},webAudioAvailable:()=>!!SDL.audioContext,fillWebAudioBufferFromHeap(e,t,r){for(var i=SDL.audio,n=i.channels,a=0;a>>1>>>0]/32768;else if(8==i.format)for(o=0;o>>0];s[o]=(l>=0?l-128:l+128)/128}else{if(33056!=i.format)throw"Invalid SDL audio format "+i.format+"!";for(o=0;o>>2>>>0]}}},joystickEventState:1,lastJoystickState:{},joystickNamePool:{},recordJoystickState(e,t){for(var r=new Array(t.buttons.length),i=0;i"object"==typeof e?e.pressed:e>0,queryJoysticks(){for(var e in SDL.lastJoystickState){var t=SDL.getGamepad(e-1),r=SDL.lastJoystickState[e];if(typeof t>"u"||null===t)return;if("number"!=typeof t.timestamp||t.timestamp!=r.timestamp||!t.timestamp){var i;for(i=0;i(e=Math.min(1,Math.max(e,-1)),Math.ceil(32767.5*(e+1)-32768)),getGamepads(){var e=navigator.getGamepads||navigator.webkitGamepads||navigator.mozGamepads||navigator.gamepads||navigator.webkitGetGamepads;return void 0!==e?e.apply(navigator):[]},getGamepad(e){var t=SDL.getGamepads();return t.length>e&&e>=0?t[e]:null}};function _SDL_Linked_Version(){return null===SDL.version&&(SDL.version=_malloc(3),HEAP8[SDL.version>>>0]=1,HEAP8[SDL.version+1>>>0]=3,HEAP8[SDL.version+2>>>0]=0),SDL.version}_SDL_Linked_Version.sig="p";var _SDL_Init=e=>{if(SDL.startTime=Date.now(),SDL.initFlags=e,!Module.doNotCaptureKeyboard){var t=Module.keyboardListeningElement||document;t.addEventListener("keydown",SDL.receiveEvent),t.addEventListener("keyup",SDL.receiveEvent),t.addEventListener("keypress",SDL.receiveEvent),window.addEventListener("focus",SDL.receiveEvent),window.addEventListener("blur",SDL.receiveEvent),document.addEventListener("visibilitychange",SDL.receiveEvent)}return window.addEventListener("unload",SDL.receiveEvent),SDL.keyboardState=_calloc(65536,1),SDL.DOMEventToSDLEvent.keydown=768,SDL.DOMEventToSDLEvent.keyup=769,SDL.DOMEventToSDLEvent.keypress=771,SDL.DOMEventToSDLEvent.mousedown=1025,SDL.DOMEventToSDLEvent.mouseup=1026,SDL.DOMEventToSDLEvent.mousemove=1024,SDL.DOMEventToSDLEvent.wheel=1027,SDL.DOMEventToSDLEvent.touchstart=1792,SDL.DOMEventToSDLEvent.touchend=1793,SDL.DOMEventToSDLEvent.touchmove=1794,SDL.DOMEventToSDLEvent.unload=256,SDL.DOMEventToSDLEvent.resize=28673,SDL.DOMEventToSDLEvent.visibilitychange=512,SDL.DOMEventToSDLEvent.focus=512,SDL.DOMEventToSDLEvent.blur=512,SDL.DOMEventToSDLEvent.joystick_axis_motion=1536,SDL.DOMEventToSDLEvent.joystick_button_down=1539,SDL.DOMEventToSDLEvent.joystick_button_up=1540,0};_SDL_Init.sig="ii";var _SDL_WasInit=e=>(null===SDL.startTime&&_SDL_Init(0),1);function _SDL_GetVideoInfo(){var e=_calloc(20,1);return HEAP32[e+12>>>2>>>0]=Module.canvas.width,HEAP32[e+16>>>2>>>0]=Module.canvas.height,e}function _SDL_ListModes(e,t){return-1}_SDL_WasInit.sig="ii",_SDL_GetVideoInfo.sig="p",_SDL_ListModes.sig="ppi";var _SDL_VideoModeOK=(e,t,r,i)=>r;function _SDL_VideoDriverName(e,t){if(e>>>=0,null===SDL.startTime)return 0;var r=[101,109,115,99,114,105,112,116,101,110,95,115,100,108,95,100,114,105,118,101,114],i=0,n=r.length;for(t<=n&&(n=t-1);i>>0]=a,i++}return HEAP8[e+i>>>0]=0,e}_SDL_VideoModeOK.sig="iiiii",_SDL_VideoDriverName.sig="ppi";var _SDL_AudioDriverName=_SDL_VideoDriverName;_SDL_AudioDriverName.sig="ppi";var _SDL_SetVideoMode=function(e,t,r,i){["touchstart","touchend","touchmove","mousedown","mouseup","mousemove","mousewheel","wheel","mouseout","DOMMouseScroll"].forEach((e=>Module.canvas.addEventListener(e,SDL.receiveEvent,!0)));var n=Module.canvas;return 0==e&&0==t&&(e=n.width,t=n.height),SDL.addedResizeListener||(SDL.addedResizeListener=!0,Browser.resizeListeners.push(((e,t)=>{SDL.settingVideoMode||SDL.receiveEvent({type:"resize",w:e,h:t})}))),SDL.settingVideoMode=!0,Browser.setCanvasSize(e,t),SDL.settingVideoMode=!1,SDL.screen&&(SDL.freeSurface(SDL.screen),assert(!SDL.screen)),SDL.GL&&(i|=67108864),SDL.screen=SDL.makeSurface(e,t,i,!0,"screen"),SDL.screen};function _SDL_GetVideoSurface(){return SDL.screen}_SDL_SetVideoMode.sig="piiii",_SDL_GetVideoSurface.sig="p";var _SDL_AudioQuit=()=>{for(var e=0;eout("SDL_VideoQuit called (and ignored)");_SDL_VideoQuit.sig="v";var _SDL_QuitSubSystem=e=>out("SDL_QuitSubSystem called (and ignored)");_SDL_QuitSubSystem.sig="vi";var _SDL_Quit=()=>{_SDL_AudioQuit(),out("SDL_Quit called (and ignored)")};function _SDL_UnlockSurface(e){e>>>=0,assert(!SDL.GL);var t=SDL.surfaces[e];if(t.locked&&!(--t.locked>0)){if(t.isFlagSet(2097152))SDL.copyIndexedColorData(t);else if(t.colors)for(var r=Module.canvas.width,i=Module.canvas.height,n=t.buffer,a=t.image.data,s=t.colors,o=0;o>>0],u=l+4*c;a[u]=s[_],a[u+1]=s[_+1],a[u+2]=s[_+2]}n+=3*r}else{a=t.image.data;var d=t.buffer;assert(d%4==0,"Invalid buffer offset: "+d);var p,f=d>>>2,m=0,h=e==SDL.screen;if(typeof CanvasPixelArray<"u"&&a instanceof CanvasPixelArray)for(p=a.length;m>>0],a[m]=255&_,a[m+1]=_>>8&255,a[m+2]=_>>16&255,a[m+3]=h?255:_>>24&255,f++,m+=4;else{var g=new Uint32Array(a.buffer);if(h&&SDL.defaults.opaqueFrontBuffer){p=g.length,g.set(HEAP32.subarray(f>>>0,f+p>>>0));var v=new Uint8Array(a.buffer),y=3,b=y+4*p;if(p%8==0)for(;y>>0,f+g.length>>>0))}}t.ctx.putImageData(t.image,0,0)}}function _SDL_Flip(e){}function _SDL_UpdateRect(e,t,r,i,n){}function _SDL_UpdateRects(e,t,r){}_SDL_Quit.sig="v",_SDL_UnlockSurface.sig="vp",_SDL_Flip.sig="ip",_SDL_UpdateRect.sig="vpiiii",_SDL_UpdateRects.sig="vpip";var _SDL_Delay=e=>{ENVIRONMENT_IS_WORKER||abort("SDL_Delay called on the main thread! Potential infinite loop, quitting. (consider building with async support like ASYNCIFY)");for(var t=Date.now();Date.now()-t>>=0,(e>>>=0)&&_emscripten_set_window_title(e),t&&(t=UTF8ToString(t))}_SDL_Delay.sig="vi",_SDL_WM_SetCaption.sig="vpp";var _SDL_EnableKeyRepeat=(e,t)=>{};function _SDL_GetKeyboardState(e){return(e>>>=0)&&(HEAP32[e>>>2>>>0]=65536),SDL.keyboardState}_SDL_EnableKeyRepeat.sig="iii",_SDL_GetKeyboardState.sig="pp";var _SDL_GetKeyState=()=>_SDL_GetKeyboardState(0);function _SDL_GetKeyName(e){return SDL.keyName||(SDL.keyName=stringToNewUTF8("unknown key")),SDL.keyName}_SDL_GetKeyName.sig="pi";var _SDL_GetModState=()=>SDL.modState;function _SDL_GetMouseState(e,t){return t>>>=0,(e>>>=0)&&(HEAP32[e>>>2>>>0]=Browser.mouseX),t&&(HEAP32[t>>>2>>>0]=Browser.mouseY),SDL.buttonState}_SDL_GetModState.sig="i",_SDL_GetMouseState.sig="ipp";var _SDL_WarpMouse=(e,t)=>{};_SDL_WarpMouse.sig="vii";var _SDL_ShowCursor=e=>{switch(e){case 0:return Browser.isFullscreen?(Module.canvas.requestPointerLock(),0):1;case 1:return Module.canvas.exitPointerLock(),1;case-1:return!Browser.pointerLock;default:err("SDL_ShowCursor called with unknown toggle parameter value: ".concat(e))}};function _SDL_GetError(){return SDL.errorMessage||(SDL.errorMessage=stringToNewUTF8("unknown SDL-emscripten error")),SDL.errorMessage}function _SDL_SetError(e,t){}function _SDL_CreateRGBSurface(e,t,r,i,n,a,s,o){return SDL.makeSurface(t,r,e,!1,"CreateRGBSurface",n,a,s,o)}function _SDL_CreateRGBSurfaceFrom(e,t,r,i,n,a,s,o,l){e>>>=0;var c=SDL.makeSurface(t,r,0,!1,"CreateRGBSurfaceFrom",a,s,o,l);if(32!==i)return err("TODO: Partially unimplemented SDL_CreateRGBSurfaceFrom called!"),c;for(var _=SDL.surfaces[c],u=_.ctx.createImageData(t,r),d=4*t,p=0;p>>0];return _.ctx.putImageData(u,0,0),c}function _SDL_ConvertSurface(e,t,r){e>>>=0,(t>>>=0)&&SDL.checkPixelFormat(t);var i=SDL.surfaces[e],n=SDL.makeSurface(i.width,i.height,i.flags,!1,"copy:"+i.source),a=SDL.surfaces[n];return a.ctx.globalCompositeOperation="copy",a.ctx.drawImage(i.canvas,0,0),a.ctx.globalCompositeOperation=i.ctx.globalCompositeOperation,n}function _SDL_DisplayFormatAlpha(e){return _SDL_ConvertSurface(e>>>=0,0,0)}function _SDL_FreeSurface(e){(e>>>=0)&&SDL.freeSurface(e)}function _SDL_UpperBlit(e,t,r,i){return e>>>=0,t>>>=0,r>>>=0,i>>>=0,SDL.blitSurface(e,t,r,i,!1)}function _SDL_UpperBlitScaled(e,t,r,i){return e>>>=0,t>>>=0,r>>>=0,i>>>=0,SDL.blitSurface(e,t,r,i,!0)}_SDL_ShowCursor.sig="ii",_SDL_GetError.sig="p",_SDL_SetError.sig="vpp",_SDL_CreateRGBSurface.sig="piiiiiiii",_SDL_CreateRGBSurfaceFrom.sig="ppiiiiiiii",_SDL_ConvertSurface.sig="pppi",_SDL_DisplayFormatAlpha.sig="pp",_SDL_FreeSurface.sig="vp",_SDL_UpperBlit.sig="ipppp",_SDL_UpperBlitScaled.sig="ipppp";var _SDL_LowerBlit=_SDL_UpperBlit;_SDL_LowerBlit.sig="ipppp";var _SDL_LowerBlitScaled=_SDL_UpperBlitScaled;function _SDL_GetClipRect(e,t){e>>>=0,assert(t>>>=0);var r=SDL.surfaces[e],i=r.clipRect||{x:0,y:0,w:r.width,h:r.height};SDL.updateRect(t,i)}function _SDL_SetClipRect(e,t){e>>>=0,t>>>=0;var r=SDL.surfaces[e];t?r.clipRect=SDL.intersectionOfRects({x:0,y:0,w:r.width,h:r.height},SDL.loadRect(t)):delete r.clipRect}function _SDL_FillRect(e,t,r){e>>>=0,t>>>=0;var i=SDL.surfaces[e];assert(!i.locked),i.isFlagSet(2097152)&&(r=i.colors32[r]);var n=t?SDL.loadRect(t):{x:0,y:0,w:i.width,h:i.height};return i.clipRect&&(n=SDL.intersectionOfRects(i.clipRect,n),t&&SDL.updateRect(t,n)),i.ctx.save(),i.ctx.fillStyle=SDL.translateColorToCSSRGBA(r),i.ctx.fillRect(n.x,n.y,n.w,n.h),i.ctx.restore(),0}function _zoomSurface(e,t,r,i){e>>>=0;var n=SDL.surfaces[e],a=n.width*t,s=n.height*r,o=SDL.makeSurface(Math.abs(a),Math.abs(s),n.flags,!1,"zoomSurface"),l=SDL.surfaces[o];return t>=0&&r>=0?l.ctx.drawImage(n.canvas,0,0,a,s):(l.ctx.save(),l.ctx.scale(t<0?-1:1,r<0?-1:1),l.ctx.drawImage(n.canvas,a<0?a:0,s<0?s:0,Math.abs(a),Math.abs(s)),l.ctx.restore()),o}function _rotozoomSurface(e,t,r,i){if(e>>>=0,t%360==0)return _zoomSurface(e,r,r,i);var n=SDL.surfaces[e],a=n.width*r,s=n.height*r,o=Math.ceil(Math.sqrt(Math.pow(a,2)+Math.pow(s,2))),l=SDL.makeSurface(o,o,n.flags,!1,"rotozoomSurface"),c=SDL.surfaces[l];return c.ctx.translate(o/2,o/2),c.ctx.rotate(-t*Math.PI/180),c.ctx.drawImage(n.canvas,-a/2,-s/2,a,s),l}function _SDL_SetAlpha(e,t,r){e>>>=0;var i=SDL.surfaces[e];i.alpha=r,65536&t||(i.alpha=255)}function _SDL_SetColorKey(e,t,r){return warnOnce("SDL_SetColorKey is a no-op for performance reasons"),0}function _SDL_PollEvent(e){return e>>>=0,SDL.pollEvent(e)}function _SDL_PushEvent(e){e>>>=0;var t=_malloc(28);return _memcpy(t,e,28),SDL.events.push(t),0}function _SDL_PeepEvents(e,t,r,i,n){if(2===(e>>>=0,r)){assert(1==t);for(var a=0,s=0;aSDL.events.forEach(SDL.handleEvent);function _emscripten_SDL_SetEventHandler(e,t){e>>>=0,t>>>=0,SDL.eventHandler=e,SDL.eventHandlerContext=t,SDL.eventHandlerTemp||(SDL.eventHandlerTemp=_malloc(28))}function _SDL_SetColors(e,t,r,i){e>>>=0,t>>>=0;var n=SDL.surfaces[e];if(!n.colors){var a=new ArrayBuffer(1024);n.colors=new Uint8Array(a),n.colors32=new Uint32Array(a)}for(var s=0;s>>0],n.colors[o+1]=HEAPU8[t+(4*s+1)>>>0],n.colors[o+2]=HEAPU8[t+(4*s+2)>>>0],n.colors[o+3]=255}return 1}function _SDL_SetPalette(e,t,r,i,n){return _SDL_SetColors(e>>>=0,r>>>=0,i,n)}function _SDL_MapRGB(e,t,r,i){return e>>>=0,SDL.checkPixelFormat(e),255&t|(255&r)<<8|(255&i)<<16|4278190080}function _SDL_MapRGBA(e,t,r,i,n){return e>>>=0,SDL.checkPixelFormat(e),255&t|(255&r)<<8|(255&i)<<16|(255&n)<<24}function _SDL_GetRGB(e,t,r,i,n){t>>>=0,r>>>=0,i>>>=0,n>>>=0,SDL.checkPixelFormat(t),r&&(HEAP8[r>>>0]=255&e),i&&(HEAP8[i>>>0]=e>>8&255),n&&(HEAP8[n>>>0]=e>>16&255)}function _SDL_GetRGBA(e,t,r,i,n,a){t>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,SDL.checkPixelFormat(t),r&&(HEAP8[r>>>0]=255&e),i&&(HEAP8[i>>>0]=e>>8&255),n&&(HEAP8[n>>>0]=e>>16&255),a&&(HEAP8[a>>>0]=e>>24&255)}_SDL_PumpEvents.sig="v",_emscripten_SDL_SetEventHandler.sig="vpp",_SDL_SetColors.sig="ippii",_SDL_SetPalette.sig="ipipii",_SDL_MapRGB.sig="ipiii",_SDL_MapRGBA.sig="ipiiii",_SDL_GetRGB.sig="vipppp",_SDL_GetRGBA.sig="vippppp";var _SDL_GetAppState=()=>{var e=0;return Browser.pointerLock&&(e|=1),document.hasFocus()&&(e|=2),4|e};_SDL_GetAppState.sig="i";var _SDL_WM_GrabInput=()=>{};function _SDL_WM_ToggleFullScreen(e){return Browser.exitFullscreen()?1:SDL.canRequestFullscreen?(SDL.isRequestingFullscreen=!0,1):0}_SDL_WM_GrabInput.sig="ii",_SDL_WM_ToggleFullScreen.sig="ip";var _IMG_Init=e=>e;function _SDL_FreeRW(e){for(e>>>=0,SDL.rwops[e]=null;SDL.rwops.length>0&&null===SDL.rwops[SDL.rwops.length-1];)SDL.rwops.pop()}_IMG_Init.sig="ii",_SDL_FreeRW.sig="vp";var _IMG_Load_RW=function(e,t){e>>>=0;var r=stackSave();try{var i=()=>{stackRestore(r),n&&t&&_SDL_FreeRW(e)},n=SDL.rwops[e];if(void 0===n)return 0;var a,s=n.filename;if(void 0===s)return warnOnce("Only file names that have been preloaded are supported for IMG_Load_RW. Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins"),0;if(!a){if(s=PATH_FS.resolve(s),!(a=preloadedImages[s]))return null===a&&err("Trying to reuse preloaded image, but freePreloadedMediaOnUse is set!"),warnOnce("Cannot find preloaded image "+s),warnOnce("Cannot find preloaded image "+s+". Consider using STB_IMAGE=1 if you want synchronous image decoding (see settings.js), or package files with --use-preload-plugins"),0;Module.freePreloadedMediaOnUse&&(preloadedImages[s]=null)}var o=SDL.makeSurface(a.width,a.height,0,!1,"load:"+s),l=SDL.surfaces[o];if(l.ctx.globalCompositeOperation="copy",a.rawData){var c=l.ctx.getImageData(0,0,l.width,l.height);if(4==a.bpp)c.data.set(HEAPU8.subarray(a.data>>>0,a.data+a.size>>>0));else if(3==a.bpp)for(var _=a.size/3,u=c.data,d=a.data,p=0,f=0;f<_;f++)u[p++]=HEAPU8[d++>>>0],u[p++]=HEAPU8[d++>>>0],u[p++]=HEAPU8[d++>>>0],u[p++]=255;else if(2==a.bpp)for(_=a.size,u=c.data,d=a.data,p=0,f=0;f<_;f++){var m=HEAPU8[d++>>>0],h=HEAPU8[d++>>>0];u[p++]=m,u[p++]=m,u[p++]=m,u[p++]=h}else{if(1!=a.bpp)return err("cannot handle bpp ".concat(a.bpp)),0;for(_=a.size,u=c.data,d=a.data,p=0,f=0;f<_;f++){var g=HEAPU8[d++>>>0];u[p++]=g,u[p++]=g,u[p++]=g,u[p++]=255}}l.ctx.putImageData(c,0,0)}else l.ctx.drawImage(a,0,0,a.width,a.height,0,0,a.width,a.height);return l.ctx.globalCompositeOperation="source-over",_SDL_LockSurface(o),l.locked--,SDL.GL&&(l.canvas=l.ctx=null),o}finally{i()}};_IMG_Load_RW.sig="ppi";var _SDL_LoadBMP_RW=_IMG_Load_RW;function _SDL_RWFromFile(e,t){e>>>=0;var r=SDL.rwops.length,i=UTF8ToString(e);return SDL.rwops.push({filename:i,mimetype:Browser.getMimetype(i)}),r}function _IMG_Load(e){var t=_SDL_RWFromFile(e>>>=0,0);return _IMG_Load_RW(t,1)}_SDL_LoadBMP_RW.sig="ppi",_SDL_RWFromFile.sig="ppp",_IMG_Load.sig="pp";var _IMG_Quit=()=>out("IMG_Quit called (and ignored)");function _SDL_OpenAudio(e,t){e>>>=0,t>>>=0;try{if(SDL.audio={freq:HEAPU32[e>>>2>>>0],format:HEAPU16[e+4>>>1>>>0],channels:HEAPU8[e+6>>>0],samples:HEAPU16[e+8>>>1>>>0],callback:HEAPU32[e+16>>>2>>>0],userdata:HEAPU32[e+20>>>2>>>0],paused:!0,timer:null},8==SDL.audio.format)SDL.audio.silence=128;else if(32784==SDL.audio.format)SDL.audio.silence=0;else{if(33056!=SDL.audio.format)throw"Invalid SDL audio format "+SDL.audio.format+"!";SDL.audio.silence=0}if(SDL.audio.freq<=0)throw"Unsupported sound frequency "+SDL.audio.freq+"!";if(SDL.audio.freq<=22050)SDL.audio.freq=22050;else if(SDL.audio.freq<=32e3)SDL.audio.freq=32e3;else if(SDL.audio.freq<=44100)SDL.audio.freq=44100;else if(SDL.audio.freq<=48e3)SDL.audio.freq=48e3;else{if(!(SDL.audio.freq<=96e3))throw"Unsupported sound frequency ".concat(SDL.audio.freq,"!");SDL.audio.freq=96e3}if(0==SDL.audio.channels)SDL.audio.channels=1;else{if(SDL.audio.channels<0||SDL.audio.channels>32)throw"Unsupported number of audio channels for SDL audio: ".concat(SDL.audio.channels,"!");1!=SDL.audio.channels&&2!=SDL.audio.channels&&out("Warning: Using untested number of audio channels ".concat(SDL.audio.channels))}if(SDL.audio.samples<128||SDL.audio.samples>524288)throw"Unsupported audio callback buffer size ".concat(SDL.audio.samples,"!");if(SDL.audio.samples&SDL.audio.samples-1)throw"Audio callback buffer size ".concat(SDL.audio.samples," must be a power-of-two!");var r=SDL.audio.samples*SDL.audio.channels;if(8==SDL.audio.format)SDL.audio.bytesPerSample=1;else if(32784==SDL.audio.format)SDL.audio.bytesPerSample=2;else{if(33056!=SDL.audio.format)throw"Invalid SDL audio format ".concat(SDL.audio.format,"!");SDL.audio.bytesPerSample=4}if(SDL.audio.bufferSize=r*SDL.audio.bytesPerSample,SDL.audio.bufferDurationSecs=SDL.audio.bufferSize/SDL.audio.bytesPerSample/SDL.audio.channels/SDL.audio.freq,SDL.audio.bufferingDelay=.05,SDL.audio.buffer=_malloc(SDL.audio.bufferSize),SDL.audio.numSimultaneouslyQueuedBuffers=Module.SDL_numSimultaneouslyQueuedBuffers||5,SDL.audio.queueNewAudioData=()=>{if(SDL.audio)for(var e=0;e=SDL.audio.bufferingDelay+SDL.audio.bufferDurationSecs*SDL.audio.numSimultaneouslyQueuedBuffers)return;getWasmTableEntry(SDL.audio.callback)(SDL.audio.userdata,SDL.audio.buffer,SDL.audio.bufferSize),SDL.audio.pushAudio(SDL.audio.buffer,SDL.audio.bufferSize)}},SDL.audio.caller=()=>{if(SDL.audio){--SDL.audio.numAudioTimersPending,SDL.audio.queueNewAudioData();var e=SDL.audio.nextPlayTime-SDL.audioContext.currentTime,t=SDL.audio.bufferDurationSecs/2;SDL.audio.numAudioTimersPending{try{if(SDL.audio.paused)return;var r=t/SDL.audio.bytesPerSample/SDL.audio.channels;if(r!=SDL.audio.samples)throw"Received mismatching audio buffer size!";var i=SDL.audioContext.createBufferSource(),n=SDL.audioContext.createBuffer(SDL.audio.channels,r,SDL.audio.freq);i.connect(SDL.audioContext.destination),SDL.fillWebAudioBufferFromHeap(e,r,n),i.buffer=n;var a=SDL.audioContext.currentTime,s=Math.max(a+SDL.audio.bufferingDelay,SDL.audio.nextPlayTime);typeof i.start<"u"?i.start(s):typeof i.noteOn<"u"&&i.noteOn(s),SDL.audio.nextPlayTime=s+SDL.audio.bufferDurationSecs}catch(e){err("Web Audio API error playing back audio: ".concat(e.toString()))}},t&&(HEAP32[t>>>2>>>0]=SDL.audio.freq,HEAP16[t+4>>>1>>>0]=SDL.audio.format,HEAP8[t+6>>>0]=SDL.audio.channels,HEAP8[t+7>>>0]=SDL.audio.silence,HEAP16[t+8>>>1>>>0]=SDL.audio.samples,HEAPU32[t+16>>>2>>>0]=SDL.audio.callback,HEAPU32[t+20>>>2>>>0]=SDL.audio.userdata),SDL.allocateChannels(32)}catch(e){err('Initializing SDL audio threw an exception: "'.concat(e.toString(),'"! Continuing without audio')),SDL.audio=null,SDL.allocateChannels(0),t&&(HEAP32[t>>>2>>>0]=0,HEAP16[t+4>>>1>>>0]=0,HEAP8[t+6>>>0]=0,HEAP8[t+7>>>0]=0,HEAP16[t+8>>>1>>>0]=0,HEAPU32[t+16>>>2>>>0]=0,HEAPU32[t+20>>>2>>>0]=0)}return SDL.audio?0:-1}_IMG_Quit.sig="v",_SDL_OpenAudio.sig="ipp";var _SDL_PauseAudio=e=>{SDL.audio&&(e?void 0!==SDL.audio.timer&&(clearTimeout(SDL.audio.timer),SDL.audio.numAudioTimersPending=0,SDL.audio.timer=void 0):SDL.audio.timer||(SDL.audio.numAudioTimersPending=1,SDL.audio.timer=safeSetTimeout(SDL.audio.caller,1)),SDL.audio.paused=e)};_SDL_PauseAudio.sig="vi";var _SDL_CloseAudio=()=>{SDL.audio&&(SDL.audio.callbackRemover&&(SDL.audio.callbackRemover(),SDL.audio.callbackRemover=null),_SDL_PauseAudio(1),_free(SDL.audio.buffer),SDL.audio=null,SDL.allocateChannels(0))};_SDL_CloseAudio.sig="v";var _SDL_LockAudio=()=>{};_SDL_LockAudio.sig="v";var _SDL_UnlockAudio=()=>{};function _SDL_CreateMutex(){return 0}function _SDL_mutexP(e){return 0}function _SDL_mutexV(e){return 0}function _SDL_DestroyMutex(e){}function _SDL_CreateCond(){return 0}function _SDL_CondSignal(e){}function _SDL_CondWait(e,t){}function _SDL_DestroyCond(e){}_SDL_UnlockAudio.sig="v",_SDL_CreateMutex.sig="p",_SDL_mutexP.sig="ip",_SDL_mutexV.sig="ip",_SDL_DestroyMutex.sig="vp",_SDL_CreateCond.sig="p",_SDL_CondSignal.sig="ip",_SDL_CondWait.sig="ipp",_SDL_DestroyCond.sig="vp";var _SDL_StartTextInput=()=>{SDL.textInput=!0};_SDL_StartTextInput.sig="v";var _SDL_StopTextInput=()=>{SDL.textInput=!1};_SDL_StopTextInput.sig="v";var _Mix_Init=e=>e?8:0;_Mix_Init.sig="ii";var _Mix_Quit=()=>{};_Mix_Quit.sig="v";var _Mix_OpenAudio=(e,t,r,i)=>(SDL.openAudioContext(),autoResumeAudioContext(SDL.audioContext),SDL.allocateChannels(32),SDL.mixerFrequency=e,SDL.mixerFormat=t,SDL.mixerNumChannels=r,SDL.mixerChunkSize=i,0);_Mix_OpenAudio.sig="iiiii";var _Mix_CloseAudio=_SDL_CloseAudio;_Mix_CloseAudio.sig="v";var _Mix_AllocateChannels=e=>(SDL.allocateChannels(e),e);function _Mix_ChannelFinished(e){e>>>=0,SDL.channelFinished=e}_Mix_AllocateChannels.sig="ii",_Mix_ChannelFinished.sig="vp";var _Mix_Volume=(e,t)=>{if(-1==e){for(var r=0;r(t/=255,r/=255,SDL.setPannerPosition(SDL.channels[e],r-t,0,.1),1);function _Mix_LoadWAV_RW(e,t){e>>>=0;var r=SDL.rwops[e];if(void 0===r)return 0;var i,n,a,s="";if(void 0!==r.filename){s=PATH_FS.resolve(r.filename);var o=preloadedAudios[s];if(!o){null===o&&err("Trying to reuse preloaded audio, but freePreloadedMediaOnUse is set!"),Module.noAudioDecoding||warnOnce("Cannot find preloaded audio "+s);try{a=FS.readFile(s)}catch(e){return err("Couldn't find file for: ".concat(s)),0}}Module.freePreloadedMediaOnUse&&(preloadedAudios[s]=null),i=o}else{if(void 0===r.bytes)return 0;a=SDL.webAudioAvailable()?HEAPU8.buffer.slice(r.bytes,r.bytes+r.count):HEAPU8.subarray(r.bytes>>>0,r.bytes+r.count>>>0)}var l=a&&(a.buffer||a),c=void 0===Module.SDL_canPlayWithWebAudio||Module.SDL_canPlayWithWebAudio(s,l);if(void 0!==a&&SDL.webAudioAvailable()&&c)i=void 0,(n={}).onDecodeComplete=[],SDL.audioContext.decodeAudioData(l,(e=>{n.decodedBuffer=e,n.onDecodeComplete.forEach((e=>e())),n.onDecodeComplete=void 0}));else if(void 0===i&&a){var _=new Blob([a],{type:r.mimetype}),u=URL.createObjectURL(_);(i=new Audio).src=u,i.mozAudioChannelType="content"}var d=SDL.audios.length;return SDL.audios.push({source:s,audio:i,webAudio:n}),d}function _Mix_LoadWAV(e){var t=_SDL_RWFromFile(e>>>=0,0),r=_Mix_LoadWAV_RW(t,0);return _SDL_FreeRW(t),r}function _Mix_QuickLoad_RAW(e,t){e>>>=0;for(var r,i,n=t>>1,a=new Float32Array(n),s=0;s>>1>>>0]/32768;SDL.webAudioAvailable()?(i={}).decodedBuffer=a:((r=new Audio).mozAudioChannelType="content",r.numChannels=SDL.mixerNumChannels,r.frequency=SDL.mixerFrequency);var o=SDL.audios.length;return SDL.audios.push({source:"",audio:r,webAudio:i,buffer:a}),o}function _Mix_FreeChunk(e){e>>>=0,SDL.audios[e]=null}_Mix_SetPanning.sig="iiii",_Mix_LoadWAV_RW.sig="ppi",_Mix_LoadWAV.sig="pp",_Mix_QuickLoad_RAW.sig="ppi",_Mix_FreeChunk.sig="vp";var _Mix_ReserveChannels=e=>{SDL.channelMinimumNumber=e};_Mix_ReserveChannels.sig="ii";var _Mix_HaltChannel=e=>{function t(e){var t=SDL.channels[e];t.audio&&(t.audio.pause(),t.audio=null),SDL.channelFinished&&getWasmTableEntry(SDL.channelFinished)(e)}if(-1!=e)t(e);else for(var r=0;r>>=0,assert(-1==i);var n=SDL.audios[t];if(!n||!n.audio&&!n.webAudio)return-1;if(-1==e){for(var a=SDL.channelMinimumNumber;a0;_Mix_FadingChannel.sig="ii";var _Mix_HaltMusic=()=>{var e=SDL.music.audio;return e&&(e.src=e.src,e.currentPosition=0,e.pause()),SDL.music.audio=null,SDL.hookMusicFinished&&getWasmTableEntry(SDL.hookMusicFinished)(),0};function _Mix_HookMusicFinished(e){e>>>=0,SDL.hookMusicFinished=e,SDL.music.audio&&(SDL.music.audio.onended=_Mix_HaltMusic)}_Mix_HaltMusic.sig="i",_Mix_HookMusicFinished.sig="vp";var _Mix_VolumeMusic=e=>SDL.setGetVolume(SDL.music,e);function _Mix_LoadMUS_RW(e){return _Mix_LoadWAV_RW(e>>>=0,0)}function _Mix_LoadMUS(e){var t=_SDL_RWFromFile(e>>>=0,0),r=_Mix_LoadMUS_RW(t);return _SDL_FreeRW(t),r}_Mix_VolumeMusic.sig="ii",_Mix_LoadMUS_RW.sig="pp",_Mix_LoadMUS.sig="pp";var _Mix_FreeMusic=_Mix_FreeChunk;function _Mix_PlayMusic(e,t){e>>>=0,SDL.music.audio&&(SDL.music.audio.paused||err("Music is already playing. ".concat(SDL.music.source)),SDL.music.audio.pause());var r,i=SDL.audios[e];return i.webAudio?((r={}).resource=i,r.paused=!1,r.currentPosition=0,r.play=function(){SDL.playWebAudio(this)},r.pause=function(){SDL.pauseWebAudio(this)}):i.audio&&(r=i.audio),r.onended=function(){var e;(SDL.music.audio===this||(null==(e=SDL.music.audio)?void 0:e.webAudioNode)===this)&&_Mix_HaltMusic()},r.loop=0!=t&&1!=t,r.volume=SDL.music.volume,SDL.music.audio=r,r.play(),0}_Mix_FreeMusic.sig="vp",_Mix_PlayMusic.sig="ipi";var _Mix_PauseMusic=()=>{var e=SDL.music.audio;null==e||e.pause()};_Mix_PauseMusic.sig="v";var _Mix_ResumeMusic=()=>{var e=SDL.music.audio;null==e||e.play()};_Mix_ResumeMusic.sig="v";var _Mix_FadeInMusicPos=_Mix_PlayMusic;_Mix_FadeInMusicPos.sig="ipiid";var _Mix_FadeOutMusic=_Mix_HaltMusic;_Mix_FadeOutMusic.sig="ii";var _Mix_PlayingMusic=()=>SDL.music.audio&&!SDL.music.audio.paused?1:0;_Mix_PlayingMusic.sig="i";var _Mix_Playing=e=>{if(-1===e){for(var t=0,r=0;r{if(-1!==e){var t=SDL.channels[e];null!=t&&t.audio&&t.audio.pause()}else for(var r=0;r{var t;if(-1===e){for(var r=0,i=0;i{var e;return null!=(e=SDL.music.audio)&&e.paused?1:0};_Mix_PausedMusic.sig="i";var _Mix_Resume=e=>{if(-1!==e){var t=SDL.channels[e];null!=t&&t.audio&&t.audio.play()}else for(var r=0;r{try{var e=new OffscreenCanvas(0,0);if(SDL.ttfContext=e.getContext("2d"),"function"!=typeof SDL.ttfContext.measureText)throw"bad context"}catch(e){var t=document.createElement("canvas");SDL.ttfContext=t.getContext("2d")}return 0};function _TTF_OpenFont(e,t){e>>>=0,e=PATH.normalize(UTF8ToString(e));var r=SDL.fonts.length;return SDL.fonts.push({name:e,size:t}),r}function _TTF_CloseFont(e){e>>>=0,SDL.fonts[e]=null}function _TTF_RenderText_Solid(e,t,r){e>>>=0,r>>>=0,t=UTF8ToString(t>>>=0)||" ";var i=SDL.fonts[e],n=SDL.estimateTextWidth(i,t),a=i.size;r=SDL.loadColorToCSSRGB(r);var s=SDL.makeFontString(a,i.name),o=SDL.makeSurface(n,a,0,!1,"text:"+t),l=SDL.surfaces[o];return l.ctx.save(),l.ctx.fillStyle=r,l.ctx.font=s,l.ctx.textBaseline="bottom",l.ctx.fillText(t,0,0|a),l.ctx.restore(),o}_TTF_Init.sig="i",_TTF_OpenFont.sig="ppi",_TTF_CloseFont.sig="vp",_TTF_RenderText_Solid.sig="pppp";var _TTF_RenderText_Blended=_TTF_RenderText_Solid;_TTF_RenderText_Blended.sig="pppp";var _TTF_RenderText_Shaded=_TTF_RenderText_Solid;_TTF_RenderText_Shaded.sig="ppppp";var _TTF_RenderUTF8_Solid=_TTF_RenderText_Solid;function _TTF_SizeText(e,t,r,i){e>>>=0,t>>>=0,r>>>=0,i>>>=0;var n=SDL.fonts[e];return r&&(HEAP32[r>>>2>>>0]=SDL.estimateTextWidth(n,UTF8ToString(t))),i&&(HEAP32[i>>>2>>>0]=n.size),0}_TTF_RenderUTF8_Solid.sig="pppp",_TTF_SizeText.sig="ipppp";var _TTF_SizeUTF8=_TTF_SizeText;function _TTF_GlyphMetrics(e,t,r,i,n,a,s){e>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,s>>>=0;var o=SDL.fonts[e],l=SDL.estimateTextWidth(o,String.fromCharCode(t));s&&(HEAP32[s>>>2>>>0]=l),r&&(HEAP32[r>>>2>>>0]=0),i&&(HEAP32[i>>>2>>>0]=l),n&&(HEAP32[n>>>2>>>0]=0),a&&(HEAP32[a>>>2>>>0]=o.size)}function _TTF_FontAscent(e){return e>>>=0,.98*SDL.fonts[e].size|0}function _TTF_FontDescent(e){return e>>>=0,.02*SDL.fonts[e].size|0}function _TTF_FontHeight(e){return e>>>=0,SDL.fonts[e].size}_TTF_SizeUTF8.sig="ipppp",_TTF_GlyphMetrics.sig="ipippppp",_TTF_FontAscent.sig="ip",_TTF_FontDescent.sig="ip",_TTF_FontHeight.sig="ip";var _TTF_FontLineSkip=_TTF_FontHeight;_TTF_FontLineSkip.sig="ip";var _TTF_Quit=()=>out("TTF_Quit called (and ignored)");_TTF_Quit.sig="v";var SDL_gfx={drawRectangle:(e,t,r,i,n,a,s)=>{t=t<<16>>16,r=r<<16>>16,i=i<<16>>16,n=n<<16>>16;var o=SDL.surfaces[e];assert(!o.locked);var l=t{t=t<<16>>16,r=r<<16>>16,i=i<<16>>16,n=n<<16>>16;var s=SDL.surfaces[e];assert(!s.locked),s.ctx.save(),s.ctx.strokeStyle=a,s.ctx.beginPath(),s.ctx.moveTo(t,r),s.ctx.lineTo(i,n),s.ctx.stroke(),s.ctx.restore()},drawEllipse:(e,t,r,i,n,a,s)=>{t=t<<16>>16,r=r<<16>>16,i=i<<16>>16,n=n<<16>>16;var o=SDL.surfaces[e];assert(!o.locked),o.ctx.save(),o.ctx.beginPath(),o.ctx.translate(t,r),o.ctx.scale(i,n),o.ctx.arc(0,0,1,0,2*Math.PI),o.ctx.restore(),o.ctx.save(),o.ctx[a+"Style"]=s,o.ctx[a](),o.ctx.restore()},translateColorToCSSRGBA:e=>"rgba(".concat(e>>>24,",").concat(e>>16&255,",").concat(e>>8&255,",").concat(255&e,")")};function _boxColor(e,t,r,i,n,a){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,i,n,"fill",SDL_gfx.translateColorToCSSRGBA(a))}function _boxRGBA(e,t,r,i,n,a,s,o,l){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,i,n,"fill",SDL.translateRGBAToCSSRGBA(a,s,o,l))}function _rectangleColor(e,t,r,i,n,a){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,i,n,"stroke",SDL_gfx.translateColorToCSSRGBA(a))}function _rectangleRGBA(e,t,r,i,n,a,s,o,l){return e>>>=0,SDL_gfx.drawRectangle(e,t,r,i,n,"stroke",SDL.translateRGBAToCSSRGBA(a,s,o,l))}function _ellipseColor(e,t,r,i,n,a){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,i,n,"stroke",SDL_gfx.translateColorToCSSRGBA(a))}function _ellipseRGBA(e,t,r,i,n,a,s,o,l){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,i,n,"stroke",SDL.translateRGBAToCSSRGBA(a,s,o,l))}function _filledEllipseColor(e,t,r,i,n,a){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,i,n,"fill",SDL_gfx.translateColorToCSSRGBA(a))}function _filledEllipseRGBA(e,t,r,i,n,a,s,o,l){return e>>>=0,SDL_gfx.drawEllipse(e,t,r,i,n,"fill",SDL.translateRGBAToCSSRGBA(a,s,o,l))}function _lineColor(e,t,r,i,n,a){return e>>>=0,SDL_gfx.drawLine(e,t,r,i,n,SDL_gfx.translateColorToCSSRGBA(a))}function _lineRGBA(e,t,r,i,n,a,s,o,l){return e>>>=0,SDL_gfx.drawLine(e,t,r,i,n,SDL.translateRGBAToCSSRGBA(a,s,o,l))}function _pixelRGBA(e,t,r,i,n,a,s){return _boxRGBA(e>>>=0,t,r,t,r,i,n,a,s)}_boxColor.sig="ipiiiii",_boxRGBA.sig="ipiiiiiiii",_rectangleColor.sig="ipiiiii",_rectangleRGBA.sig="ipiiiiiiii",_ellipseColor.sig="ipiiiii",_ellipseRGBA.sig="ipiiiiiiii",_filledEllipseColor.sig="ipiiiii",_filledEllipseRGBA.sig="ipiiiiiiii",_lineColor.sig="ipiiiii",_lineRGBA.sig="ipiiiiiiii",_pixelRGBA.sig="ipiiiiii";var _SDL_GL_SetAttribute=(e,t)=>{e in SDL.glAttributes||abort("Unknown SDL GL attribute ("+e+"). Please check if your SDL version is supported."),SDL.glAttributes[e]=t};function _SDL_GL_GetAttribute(e,t){return t>>>=0,e in SDL.glAttributes||abort("Unknown SDL GL attribute ("+e+"). Please check if your SDL version is supported."),t&&(HEAP32[t>>>2>>>0]=SDL.glAttributes[e]),0}_SDL_GL_SetAttribute.sig="iii",_SDL_GL_GetAttribute.sig="iip";var _SDL_GL_SwapBuffers=()=>{var e;null==(e=Browser.doSwapBuffers)||e.call(Browser)};function _SDL_GL_ExtensionSupported(e){return e>>>=0,0|Module.ctx.getExtension(e)}function _SDL_DestroyWindow(e){}function _SDL_DestroyRenderer(e){}function _SDL_GetWindowFlags(e){return Browser.isFullscreen?1:0}function _SDL_GL_SwapWindow(e){}function _SDL_GL_MakeCurrent(e,t){}function _SDL_GL_DeleteContext(e){}_SDL_GL_SwapBuffers.sig="v",_SDL_GL_ExtensionSupported.sig="ip",_SDL_DestroyWindow.sig="vp",_SDL_DestroyRenderer.sig="vp",_SDL_GetWindowFlags.sig="ip",_SDL_GL_SwapWindow.sig="vp",_SDL_GL_MakeCurrent.sig="ipp",_SDL_GL_DeleteContext.sig="vp";var _SDL_GL_GetSwapInterval=()=>1==MainLoop.timingMode?MainLoop.timingValue:0;_SDL_GL_GetSwapInterval.sig="i";var _SDL_GL_SetSwapInterval=e=>{_emscripten_set_main_loop_timing(1,e)};function _SDL_SetWindowTitle(e,t){(t>>>=0)&&(document.title=UTF8ToString(t))}function _SDL_GetWindowSize(e,t,r){t>>>=0,r>>>=0;var i=Module.canvas.width,n=Module.canvas.height;t&&(HEAP32[t>>>2>>>0]=i),r&&(HEAP32[r>>>2>>>0]=n)}function _SDL_LogSetOutputFunction(e,t){}function _SDL_SetWindowFullscreen(e,t){return Browser.isFullscreen?(Module.canvas.exitFullscreen(),1):0}_SDL_GL_SetSwapInterval.sig="ii",_SDL_SetWindowTitle.sig="vpp",_SDL_GetWindowSize.sig="vppp",_SDL_LogSetOutputFunction.sig="vpp",_SDL_SetWindowFullscreen.sig="ipi";var _SDL_ClearError=()=>{};_SDL_ClearError.sig="v";var _SDL_SetGamma=(e,t,r)=>-1;function _SDL_SetGammaRamp(e,t,r){return-1}_SDL_SetGamma.sig="ifff",_SDL_SetGammaRamp.sig="ippp";var _SDL_NumJoysticks=()=>{for(var e=0,t=SDL.getGamepads(),r=0;rSDL.lastJoystickState.hasOwnProperty(e+1)?1:0;function _SDL_JoystickIndex(e){return(e>>>=0)-1}function _SDL_JoystickNumAxes(e){e>>>=0;var t=SDL.getGamepad(e-1);return t?t.axes.length:0}function _SDL_JoystickNumBalls(e){return 0}function _SDL_JoystickNumHats(e){return 0}function _SDL_JoystickNumButtons(e){e>>>=0;var t=SDL.getGamepad(e-1);return t?t.buttons.length:0}_SDL_JoystickOpened.sig="ii",_SDL_JoystickIndex.sig="ip",_SDL_JoystickNumAxes.sig="ip",_SDL_JoystickNumBalls.sig="ip",_SDL_JoystickNumHats.sig="ip",_SDL_JoystickNumButtons.sig="ip";var _SDL_JoystickUpdate=()=>SDL.queryJoysticks();_SDL_JoystickUpdate.sig="v";var _SDL_JoystickEventState=e=>e<0?SDL.joystickEventState:SDL.joystickEventState=e;function _SDL_JoystickGetAxis(e,t){e>>>=0;var r=SDL.getGamepad(e-1);return r&&r.axes.length>t?SDL.joystickAxisValueConversion(r.axes[t]):0}function _SDL_JoystickGetHat(e,t){return 0}function _SDL_JoystickGetBall(e,t,r,i){return-1}function _SDL_JoystickGetButton(e,t){e>>>=0;var r=SDL.getGamepad(e-1);return r&&r.buttons.length>t&&SDL.getJoystickButtonState(r.buttons[t])?1:0}function _SDL_JoystickClose(e){e>>>=0,delete SDL.lastJoystickState[e]}_SDL_JoystickEventState.sig="ii",_SDL_JoystickGetAxis.sig="ipi",_SDL_JoystickGetHat.sig="ipi",_SDL_JoystickGetBall.sig="ipipp",_SDL_JoystickGetButton.sig="ipi",_SDL_JoystickClose.sig="vp";var _SDL_InitSubSystem=e=>0;function _SDL_RWFromConstMem(e,t){e>>>=0;var r=SDL.rwops.length;return SDL.rwops.push({bytes:e,count:t}),r}_SDL_InitSubSystem.sig="ii",_SDL_RWFromConstMem.sig="ppi";var _SDL_RWFromMem=_SDL_RWFromConstMem;_SDL_RWFromMem.sig="ppi";var _SDL_GetNumAudioDrivers=()=>1;function _SDL_GetCurrentAudioDriver(){return stringToNewUTF8("Emscripten Audio")}_SDL_GetNumAudioDrivers.sig="i",_SDL_GetCurrentAudioDriver.sig="p";var _SDL_GetScancodeFromKey=e=>SDL.scanCodes[e];function _SDL_GetAudioDriver(e){return _SDL_GetCurrentAudioDriver()}_SDL_GetScancodeFromKey.sig="ii",_SDL_GetAudioDriver.sig="pi";var _SDL_EnableUNICODE=e=>{var t=SDL.unicode||0;return SDL.unicode=e,t};_SDL_EnableUNICODE.sig="ii";var _SDL_AddTimer=function(e,t,r){return t>>>=0,r>>>=0,safeSetTimeout((()=>getWasmTableEntry(t)(e,r)),e)};_SDL_AddTimer.sig="iipp";var _SDL_RemoveTimer=e=>(clearTimeout(e),!0);function _SDL_CreateThread(e,t,r,i){throw"SDL threads cannot be supported in the web platform because they assume shared state. See emscripten_create_worker etc. for a message-passing concurrency model that does let you run code in another thread."}function _SDL_WaitThread(e,t){throw"SDL_WaitThread"}function _SDL_GetThreadID(e){throw"SDL_GetThreadID"}function _SDL_ThreadID(){return 0}function _SDL_AllocRW(){throw"SDL_AllocRW: TODO"}function _SDL_CondBroadcast(e){throw"SDL_CondBroadcast: TODO"}function _SDL_CondWaitTimeout(e,t,r){throw"SDL_CondWaitTimeout: TODO"}_SDL_RemoveTimer.sig="ii",_SDL_CreateThread.sig="ppp",_SDL_WaitThread.sig="vpp",_SDL_GetThreadID.sig="pp",_SDL_ThreadID.sig="p",_SDL_AllocRW.sig="p",_SDL_CondBroadcast.sig="ip",_SDL_CondWaitTimeout.sig="ippi";var _SDL_WM_IconifyWindow=()=>{throw"SDL_WM_IconifyWindow TODO"};function _Mix_SetPostMix(e,t){return warnOnce("Mix_SetPostMix: TODO")}function _Mix_VolumeChunk(e,t){throw"Mix_VolumeChunk: TODO"}_SDL_WM_IconifyWindow.sig="i",_Mix_SetPostMix.sig="vpp",_Mix_VolumeChunk.sig="ipi";var _Mix_SetPosition=(e,t,r)=>{throw"Mix_SetPosition: TODO"};function _Mix_QuerySpec(e,t,r){throw"Mix_QuerySpec: TODO"}function _Mix_FadeInChannelTimed(e,t,r,i,n){throw"Mix_FadeInChannelTimed"}_Mix_SetPosition.sig="iiii",_Mix_QuerySpec.sig="ippp",_Mix_FadeInChannelTimed.sig="iipiii";var _Mix_FadeOutChannel=()=>{throw"Mix_FadeOutChannel"};function _Mix_Linked_Version(){throw"Mix_Linked_Version: TODO"}function _SDL_SaveBMP_RW(e,t,r){throw"SDL_SaveBMP_RW: TODO"}function _SDL_WM_SetIcon(e,t){}_Mix_FadeOutChannel.sig="iii",_Mix_Linked_Version.sig="p",_SDL_SaveBMP_RW.sig="ippi",_SDL_WM_SetIcon.sig="vpp";var _SDL_HasRDTSC=()=>0;_SDL_HasRDTSC.sig="i";var _SDL_HasMMX=()=>0;_SDL_HasMMX.sig="i";var _SDL_HasMMXExt=()=>0;_SDL_HasMMXExt.sig="i";var _SDL_Has3DNow=()=>0;_SDL_Has3DNow.sig="i";var _SDL_Has3DNowExt=()=>0;_SDL_Has3DNowExt.sig="i";var _SDL_HasSSE=()=>0;_SDL_HasSSE.sig="i";var _SDL_HasSSE2=()=>0;_SDL_HasSSE2.sig="i";var _SDL_HasAltiVec=()=>0;_SDL_HasAltiVec.sig="i";var ALLOC_NORMAL=0,ALLOC_STACK=1,allocate=(e,t)=>{var r;return r=t==ALLOC_STACK?stackAlloc(e.length):_malloc(e.length),!e.subarray&&!e.slice&&(e=new Uint8Array(e)),HEAPU8.set(e,r>>>0),r},writeStringToMemory=(e,t,r)=>{var i,n;warnOnce("writeStringToMemory is deprecated and should not be called! Use stringToUTF8() instead!"),r&&(n=t+lengthBytesUTF8(e),i=HEAP8[n>>>0]),stringToUTF8(e,t,1/0),r&&(HEAP8[n>>>0]=i)},writeAsciiToMemory=(e,t,r)=>{for(var i=0;i>>0]=e.charCodeAt(i);r||(HEAP8[t>>>0]=0)},allocateUTF8=stringToNewUTF8,allocateUTF8OnStack=stringToUTF8OnStack,setErrNo=e=>(HEAP32[___errno_location()>>>2>>>0]=e,e),demangle=e=>(demangle.recursionGuard=1+(0|demangle.recursionGuard),demangle.recursionGuard>1?e:withStackSave((()=>{try{var t=e;t.startsWith("__Z")&&(t=t.substr(1));var r=stringToUTF8OnStack(t),i=stackAlloc(4),n=___cxa_demangle(r,0,0,i);if(0===HEAP32[i>>>2>>>0]&&n)return UTF8ToString(n)}catch(e){}finally{_free(n),demangle.recursionGuard<2&&--demangle.recursionGuard}return e}))),stackTrace=()=>{var e=jsStackTrace();return Module.extraStackTrace&&(e+="\n"+Module.extraStackTrace()),e},print=out,printErr=err,_emscripten_is_main_browser_thread=()=>!ENVIRONMENT_IS_WORKER,tupleRegistrations={},structRegistrations={},getTypeName=e=>{var t=___getTypeName(e),r=readLatin1String(t);return _free(t),r},getFunctionName=e=>{let t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e},getFunctionArgsName=e=>{let t=(e=e.trim()).indexOf("(")+1;return 0!==t?e.substr(t,e.length-t-1).replaceAll(" ","").split(",").filter((e=>e.length)):[]},heap32VectorToArray=(e,t)=>{for(var r=[],i=0;i>>2>>>0]);return r},requireRegisteredType=(e,t)=>{var r=registeredTypes[e];return void 0===r&&throwBindingError("".concat(t," has unknown type ").concat(getTypeName(e))),r};function usesDestructorStack(e){for(var t=1;tr){var a=t==r?t:"".concat(t," to ").concat(r);n("function ".concat(i," called with ").concat(e," arguments, expected ").concat(a))}}function getRequiredArgCount(e){for(var t=e.length-2,r=e.length-1;r>=2&&e[r].optional;--r)t--;return t}function createJsInvoker(e,t,r,i){var n=usesDestructorStack(e),a=e.length-2,s=[],o=["fn"];t&&o.push("thisWired");for(var l=0;lObject.defineProperty(t,"name",{value:e}),extendError=(e,t)=>{var r=createNamedFunction(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},r},UnboundTypeError,PureVirtualError,EmValOptionalType=Object.assign({optional:!0},EmValType),throwUnboundTypeError=(e,t)=>{var r=[],i={};throw t.forEach((function e(t){if(!i[t]&&!registeredTypes[t]){if(typeDependencies[t])return void typeDependencies[t].forEach(e);r.push(t),i[t]=!0}})),new UnboundTypeError("".concat(e,": ")+r.map(getTypeName).join([", "]))},ensureOverloadTable=(e,t,r)=>{if(void 0===e[t].overloadTable){var i=e[t];e[t]=function(...i){return e[t].overloadTable.hasOwnProperty(i.length)||throwBindingError("Function '".concat(r,"' called with an invalid number of arguments (").concat(i.length,") - expects one of (").concat(e[t].overloadTable,")!")),e[t].overloadTable[i.length].apply(this,i)},e[t].overloadTable=[],e[t].overloadTable[i.argCount]=i}},exposePublicSymbol=(e,t,r)=>{Module.hasOwnProperty(e)?((void 0===r||void 0!==Module[e].overloadTable&&void 0!==Module[e].overloadTable[r])&&throwBindingError("Cannot register public name '".concat(e,"' twice")),ensureOverloadTable(Module,e,e),Module[e].overloadTable.hasOwnProperty(r)&&throwBindingError("Cannot register multiple overloads of a function with the same number of arguments (".concat(r,")!")),Module[e].overloadTable[r]=t):(Module[e]=t,Module[e].argCount=r)},replacePublicSymbol=(e,t,r)=>{Module.hasOwnProperty(e)||throwInternalError("Replacing nonexistent public symbol"),void 0!==Module[e].overloadTable&&void 0!==r?Module[e].overloadTable[r]=t:(Module[e]=t,Module[e].argCount=r)},registeredInstances={},getBasestPointer=(e,t)=>{for(void 0===t&&throwBindingError("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},registerInheritedInstance=(e,t,r)=>{t=getBasestPointer(e,t),registeredInstances.hasOwnProperty(t)?throwBindingError("Tried to register registered instance: ".concat(t)):registeredInstances[t]=r},unregisterInheritedInstance=(e,t)=>{t=getBasestPointer(e,t),registeredInstances.hasOwnProperty(t)?delete registeredInstances[t]:throwBindingError("Tried to unregister unregistered instance: ".concat(t))},getInheritedInstance=(e,t)=>(t=getBasestPointer(e,t),registeredInstances[t]),getInheritedInstanceCount=()=>Object.keys(registeredInstances).length,getLiveInheritedInstances=()=>{var e=[];for(var t in registeredInstances)registeredInstances.hasOwnProperty(t)&&e.push(registeredInstances[t]);return e},registeredPointers={},enumReadValueFromPointer=(e,t,r)=>{switch(t){case 1:return r?function(e){return this.fromWireType(HEAP8[e>>>0])}:function(e){return this.fromWireType(HEAPU8[e>>>0])};case 2:return r?function(e){return this.fromWireType(HEAP16[e>>>1>>>0])}:function(e){return this.fromWireType(HEAPU16[e>>>1>>>0])};case 4:return r?function(e){return this.fromWireType(HEAP32[e>>>2>>>0])}:function(e){return this.fromWireType(HEAPU32[e>>>2>>>0])};default:throw new TypeError("invalid integer width (".concat(t,"): ").concat(e))}};function __embind_register_user_type(e,t){__embind_register_emval(e>>>=0)}function __embind_register_optional(e,t){registerType(e>>>=0,EmValOptionalType)}__embind_register_user_type.sig="vpp",__embind_register_optional.sig="vpp";var runDestructors=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function newFunc(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type ".concat(typeof e," which is not a function"));var r=createNamedFunction(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var i=new r,n=e.apply(i,t);return n instanceof Object?n:i}function craftInvokerFunction(e,t,r,i,n,a){var s=t.length;s<2&&throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var o=null!==t[1]&&null!==r,l=usesDestructorStack(t),c="void"!==t[0].name,_=[e,throwBindingError,i,n,runDestructors,t[0],t[1]],u=0;u{var r=(e=readLatin1String(e)).includes("j")||e.includes("p")?getDynCaller(e,t):getWasmTableEntry(t);return"function"!=typeof r&&throwBindingError("unknown function pointer with signature ".concat(e,": ").concat(t)),r};function __embind_register_function(e,t,r,i,n,a,s,o){e>>>=0,i>>>=0,n>>>=0,a>>>=0;var l=heap32VectorToArray(t,r>>>=0);e=readLatin1String(e),e=getFunctionName(e),n=embind__requireFunction(i,n),exposePublicSymbol(e,(function(){throwUnboundTypeError("Cannot call ".concat(e," due to unbound types"),l)}),t-1),whenDependentTypesAreResolved([],l,(r=>{var i=[r[0],null].concat(r.slice(1));return replacePublicSymbol(e,craftInvokerFunction(e,i,null,n,a,s),t-1),[]}))}function __embind_register_value_array(e,t,r,i,n,a){t>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,tupleRegistrations[e>>>=0]={name:readLatin1String(t),rawConstructor:embind__requireFunction(r,i),rawDestructor:embind__requireFunction(n,a),elements:[]}}function __embind_register_value_array_element(e,t,r,i,n,a,s,o,l){t>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,s>>>=0,o>>>=0,l>>>=0,tupleRegistrations[e>>>=0].elements.push({getterReturnType:t,getter:embind__requireFunction(r,i),getterContext:n,setterArgumentType:a,setter:embind__requireFunction(s,o),setterContext:l})}__embind_register_function.sig="vpippppii",__embind_register_value_array.sig="vpppppp",__embind_register_value_array_element.sig="vppppppppp";var __embind_finalize_value_array=function(e){var t=tupleRegistrations[e>>>=0];delete tupleRegistrations[e];var r=t.elements,i=r.length,n=r.map((e=>e.getterReturnType)).concat(r.map((e=>e.setterArgumentType))),a=t.rawConstructor,s=t.rawDestructor;whenDependentTypesAreResolved([e],n,(e=>(r.forEach(((t,r)=>{var n=e[r],a=t.getter,s=t.getterContext,o=e[r+i],l=t.setter,c=t.setterContext;t.read=e=>n.fromWireType(a(s,e)),t.write=(e,t)=>{var r=[];l(c,e,o.toWireType(r,t)),runDestructors(r)}})),[{name:t.name,fromWireType:e=>{for(var t=new Array(i),n=0;n{if(i!==n.length)throw new TypeError("Incorrect number of tuple elements for ".concat(t.name,": expected=").concat(i,", actual=").concat(n.length));for(var o=a(),l=0;l>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,structRegistrations[e>>>=0]={name:readLatin1String(t),rawConstructor:embind__requireFunction(r,i),rawDestructor:embind__requireFunction(n,a),fields:[]}}function __embind_register_value_object_field(e,t,r,i,n,a,s,o,l,c){t>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,s>>>=0,o>>>=0,l>>>=0,c>>>=0,structRegistrations[e>>>=0].fields.push({fieldName:readLatin1String(t),getterReturnType:r,getter:embind__requireFunction(i,n),getterContext:a,setterArgumentType:s,setter:embind__requireFunction(o,l),setterContext:c})}__embind_finalize_value_array.sig="vp",__embind_register_value_object.sig="vpppppp",__embind_register_value_object_field.sig="vpppppppppp";var __embind_finalize_value_object=function(e){var t=structRegistrations[e>>>=0];delete structRegistrations[e];var r=t.rawConstructor,i=t.rawDestructor,n=t.fields,a=n.map((e=>e.getterReturnType)).concat(n.map((e=>e.setterArgumentType)));whenDependentTypesAreResolved([e],a,(e=>{var a={};return n.forEach(((t,r)=>{var i=t.fieldName,s=e[r],o=t.getter,l=t.getterContext,c=e[r+n.length],_=t.setter,u=t.setterContext;a[i]={read:e=>s.fromWireType(o(l,e)),write:(e,t)=>{var r=[];_(u,e,c.toWireType(r,t)),runDestructors(r)}}})),[{name:t.name,fromWireType:e=>{var t={};for(var r in a)t[r]=a[r].read(e);return i(e),t},toWireType:(e,t)=>{for(var n in a)if(!(n in t))throw new TypeError('Missing field: "'.concat(n,'"'));var s=r();for(n in a)a[n].write(s,t[n]);return null!==e&&e.push(i,s),s},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,destructorFunction:i}]}))};__embind_finalize_value_object.sig="vp";var upcastPointer=(e,t,r)=>{for(;t!==r;)t.upcast||throwBindingError("Expected null or instance of ".concat(r.name,", got an instance of ").concat(t.name)),e=t.upcast(e),t=t.baseClass;return e};function genericPointerToWireType(e,t){var r;if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;(!t||!t.$$)&&throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&t.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type ".concat(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name," to parameter type ").concat(this.name));var i=t.$$.ptrType.registeredClass;if(r=upcastPointer(t.$$.ptr,i,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&throwBindingError("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:throwBindingError("Cannot convert argument of type ".concat(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var n=t.clone();r=this.rawShare(r,Emval.toHandle((()=>n.delete()))),null!==e&&e.push(this.rawDestructor,r)}break;default:throwBindingError("Unsupporting sharing policy")}return r}function constNoSmartPtrRawPointerToWireType(e,t){if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),0;t.$$||throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name));var r=t.$$.ptrType.registeredClass;return upcastPointer(t.$$.ptr,r,this.registeredClass)}function nonConstNoSmartPtrRawPointerToWireType(e,t){if(null===t)return this.isReference&&throwBindingError("null is not a valid ".concat(this.name)),0;t.$$||throwBindingError('Cannot pass "'.concat(embindRepr(t),'" as a ').concat(this.name)),t.$$.ptr||throwBindingError("Cannot pass deleted object as a pointer of type ".concat(this.name)),t.$$.ptrType.isConst&&throwBindingError("Cannot convert argument of type ".concat(t.$$.ptrType.name," to parameter type ").concat(this.name));var r=t.$$.ptrType.registeredClass;return upcastPointer(t.$$.ptr,r,this.registeredClass)}function RegisteredPointer(e,t,r,i,n,a,s,o,l,c,_){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=i,this.isSmartPointer=n,this.pointeeType=a,this.sharingPolicy=s,this.rawGetPointee=o,this.rawConstructor=l,this.rawShare=c,this.rawDestructor=_,n||void 0!==t.baseClass?this.toWireType=genericPointerToWireType:i?(this.toWireType=constNoSmartPtrRawPointerToWireType,this.destructorFunction=null):(this.toWireType=nonConstNoSmartPtrRawPointerToWireType,this.destructorFunction=null)}var downcastPointer=(e,t,r)=>{if(t===r)return e;if(void 0===r.baseClass)return null;var i=downcastPointer(e,t,r.baseClass);return null===i?null:r.downcast(i)},finalizationRegistry=!1,detachFinalizer=e=>{},runDestructor=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},releaseClassHandle=e=>{e.count.value-=1,0===e.count.value&&runDestructor(e)},attachFinalizer=e=>typeof FinalizationRegistry>"u"?(attachFinalizer=e=>e,e):(finalizationRegistry=new FinalizationRegistry((e=>{releaseClassHandle(e.$$)})),detachFinalizer=e=>finalizationRegistry.unregister(e),(attachFinalizer=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};finalizationRegistry.register(e,r,e)}return e})(e)),makeClassHandle=(e,t)=>((!t.ptrType||!t.ptr)&&throwInternalError("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&throwInternalError("Both smartPtrType and smartPtr must be specified"),t.count={value:1},attachFinalizer(Object.create(e,{$$:{value:t,writable:!0}})));function RegisteredPointer_fromWireType(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=getInheritedInstance(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var i=r.clone();return this.destructor(e),i}function n(){return this.isSmartPointer?makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):makeClassHandle(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a,s=this.registeredClass.getActualType(t),o=registeredPointers[s];if(!o)return n.call(this);a=this.isConst?o.constPointerType:o.pointerType;var l=downcastPointer(t,this.registeredClass,a.registeredClass);return null===l?n.call(this):this.isSmartPointer?makeClassHandle(a.registeredClass.instancePrototype,{ptrType:a,ptr:l,smartPtrType:this,smartPtr:e}):makeClassHandle(a.registeredClass.instancePrototype,{ptrType:a,ptr:l})}var init_RegisteredPointer=()=>{Object.assign(RegisteredPointer.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var t;null==(t=this.rawDestructor)||t.call(this,e)},argPackAdvance:GenericWireTypeSize,readValueFromPointer:readPointer,fromWireType:RegisteredPointer_fromWireType})},detachFinalizer_deps=["$finalizationRegistry"];function ClassHandle(){}var shallowCopyInternalPointer=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),throwInstanceAlreadyDeleted=e=>{throwBindingError(e.$$.ptrType.registeredClass.name+" instance already deleted")},deletionQueue=[],flushPendingDeletes=()=>{for(;deletionQueue.length;){var e=deletionQueue.pop();e.$$.deleteScheduled=!1,e.delete()}},delayFunction,init_ClassHandle=()=>{Object.assign(ClassHandle.prototype,{isAliasOf(e){if(!(this instanceof ClassHandle&&e instanceof ClassHandle))return!1;var t=this.$$.ptrType.registeredClass,r=this.$$.ptr;e.$$=e.$$;for(var i=e.$$.ptrType.registeredClass,n=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;i.baseClass;)n=i.upcast(n),i=i.baseClass;return t===i&&r===n},clone(){if(this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=attachFinalizer(Object.create(Object.getPrototypeOf(this),{$$:{value:shallowCopyInternalPointer(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),detachFinalizer(this),releaseClassHandle(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||throwInstanceAlreadyDeleted(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&throwBindingError("Object already scheduled for deletion"),deletionQueue.push(this),1===deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes),this.$$.deleteScheduled=!0,this}})},setDelayFunction=e=>{delayFunction=e,deletionQueue.length&&delayFunction&&delayFunction(flushPendingDeletes)};function RegisteredClass(e,t,r,i,n,a,s,o){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=i,this.baseClass=n,this.getActualType=a,this.upcast=s,this.downcast=o,this.pureVirtualFunctions=[]}var char_0=48,char_9=57,makeLegalFunctionName=e=>{var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=char_0&&t<=char_9?"_".concat(e):e};function __embind_register_class(e,t,r,i,n,a,s,o,l,c,_,u,d){e>>>=0,t>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,s>>>=0,o>>>=0,l>>>=0,c>>>=0,u>>>=0,d>>>=0,_=readLatin1String(_>>>=0),a=embind__requireFunction(n,a),o&&(o=embind__requireFunction(s,o)),c&&(c=embind__requireFunction(l,c)),d=embind__requireFunction(u,d);var p=makeLegalFunctionName(_);exposePublicSymbol(p,(function(){throwUnboundTypeError("Cannot construct ".concat(_," due to unbound types"),[i])})),whenDependentTypesAreResolved([e,t,r],i?[i]:[],(t=>{var r,n,s;t=t[0],s=i?(n=t.registeredClass).instancePrototype:ClassHandle.prototype;var l=createNamedFunction(_,(function(...e){if(Object.getPrototypeOf(this)!==u)throw new BindingError("Use 'new' to construct "+_);if(void 0===f.constructor_body)throw new BindingError(_+" has no accessible constructor");var t=f.constructor_body[e.length];if(void 0===t)throw new BindingError("Tried to invoke ctor of ".concat(_," with invalid number of parameters (").concat(e.length,") - expected (").concat(Object.keys(f.constructor_body).toString(),") parameters instead!"));return t.apply(this,e)})),u=Object.create(s,{constructor:{value:l}});l.prototype=u;var f=new RegisteredClass(_,l,u,d,n,a,o,c);f.baseClass&&(null!=(r=f.baseClass).__derivedClasses||(r.__derivedClasses=[]),f.baseClass.__derivedClasses.push(f));var m=new RegisteredPointer(_,f,!0,!1,!1),h=new RegisteredPointer(_+"*",f,!1,!1,!1),g=new RegisteredPointer(_+" const*",f,!1,!0,!1);return registeredPointers[e]={pointerType:h,constPointerType:g},replacePublicSymbol(p,l),[m,h,g]}))}__embind_register_class.sig="vppppppppppppp";var __embind_register_class_constructor=function(e,t,r,i,n,a){e>>>=0,i>>>=0,n>>>=0,a>>>=0;var s=heap32VectorToArray(t,r>>>=0);n=embind__requireFunction(i,n),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var r="constructor ".concat(e.name);if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new BindingError("Cannot register multiple constructors with identical number of parameters (".concat(t-1,") for class '").concat(e.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return e.registeredClass.constructor_body[t-1]=()=>{throwUnboundTypeError("Cannot construct ".concat(e.name," due to unbound types"),s)},whenDependentTypesAreResolved([],s,(i=>(i.splice(1,0,null),e.registeredClass.constructor_body[t-1]=craftInvokerFunction(r,i,null,n,a),[]))),[]}))};__embind_register_class_constructor.sig="vpipppp";var validateThis=(e,t,r)=>(e instanceof Object||throwBindingError("".concat(r,' with invalid "this": ').concat(e)),e instanceof t.registeredClass.constructor||throwBindingError("".concat(r,' incompatible with "this" of type ').concat(e.constructor.name)),e.$$.ptr||throwBindingError("cannot call emscripten binding method ".concat(r," on deleted object")),upcastPointer(e.$$.ptr,e.$$.ptrType.registeredClass,t.registeredClass)),__embind_register_class_function=function(e,t,r,i,n,a,s,o,l,c){e>>>=0,t>>>=0,n>>>=0,a>>>=0,s>>>=0;var _=heap32VectorToArray(r,i>>>=0);t=readLatin1String(t),t=getFunctionName(t),a=embind__requireFunction(n,a),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var i="".concat(e.name,".").concat(t);function n(){throwUnboundTypeError("Cannot call ".concat(i," due to unbound types"),_)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),o&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,u=c[t];return void 0===u||void 0===u.overloadTable&&u.className!==e.name&&u.argCount===r-2?(n.argCount=r-2,n.className=e.name,c[t]=n):(ensureOverloadTable(c,t,i),c[t].overloadTable[r-2]=n),whenDependentTypesAreResolved([],_,(n=>{var o=craftInvokerFunction(i,n,e,a,s,l);return void 0===c[t].overloadTable?(o.argCount=r-2,c[t]=o):c[t].overloadTable[r-2]=o,[]})),[]}))};__embind_register_class_function.sig="vppippppiii";var __embind_register_class_property=function(e,t,r,i,n,a,s,o,l,c){e>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,s>>>=0,o>>>=0,l>>>=0,c>>>=0,t=readLatin1String(t>>>=0),n=embind__requireFunction(i,n),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var i="".concat(e.name,".").concat(t),_={get(){throwUnboundTypeError("Cannot access ".concat(i," due to unbound types"),[r,s])},enumerable:!0,configurable:!0};return _.set=l?()=>throwUnboundTypeError("Cannot access ".concat(i," due to unbound types"),[r,s]):e=>throwBindingError(i+" is a read-only property"),Object.defineProperty(e.registeredClass.instancePrototype,t,_),whenDependentTypesAreResolved([],l?[r,s]:[r],(r=>{var s=r[0],_={get(){var t=validateThis(this,e,i+" getter");return s.fromWireType(n(a,t))},enumerable:!0};if(l){l=embind__requireFunction(o,l);var u=r[1];_.set=function(t){var r=validateThis(this,e,i+" setter"),n=[];l(c,r,u.toWireType(n,t)),runDestructors(n)}}return Object.defineProperty(e.registeredClass.instancePrototype,t,_),[]})),[]}))};__embind_register_class_property.sig="vpppppppppp";var __embind_register_class_class_function=function(e,t,r,i,n,a,s,o,l){e>>>=0,t>>>=0,n>>>=0,a>>>=0,s>>>=0;var c=heap32VectorToArray(r,i>>>=0);t=readLatin1String(t),t=getFunctionName(t),a=embind__requireFunction(n,a),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var i="".concat(e.name,".").concat(t);function n(){throwUnboundTypeError("Cannot call ".concat(i," due to unbound types"),c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var l=e.registeredClass.constructor;return void 0===l[t]?(n.argCount=r-1,l[t]=n):(ensureOverloadTable(l,t,i),l[t].overloadTable[r-1]=n),whenDependentTypesAreResolved([],c,(n=>{var c=[n[0],null].concat(n.slice(1)),_=craftInvokerFunction(i,c,null,a,s,o);if(void 0===l[t].overloadTable?(_.argCount=r-1,l[t]=_):l[t].overloadTable[r-1]=_,e.registeredClass.__derivedClasses)for(let r of e.registeredClass.__derivedClasses)r.constructor.hasOwnProperty(t)||(r.constructor[t]=_);return[]})),[]}))};__embind_register_class_class_function.sig="vppippppii";var __embind_register_class_class_property=function(e,t,r,i,n,a,s,o){e>>>=0,r>>>=0,i>>>=0,n>>>=0,a>>>=0,s>>>=0,o>>>=0,t=readLatin1String(t>>>=0),a=embind__requireFunction(n,a),whenDependentTypesAreResolved([],[e],(e=>{e=e[0];var n="".concat(e.name,".").concat(t),l={get(){throwUnboundTypeError("Cannot access ".concat(n," due to unbound types"),[r])},enumerable:!0,configurable:!0};return l.set=o?()=>{throwUnboundTypeError("Cannot access ".concat(n," due to unbound types"),[r])}:e=>{throwBindingError("".concat(n," is a read-only property"))},Object.defineProperty(e.registeredClass.constructor,t,l),whenDependentTypesAreResolved([],[r],(r=>{r=r[0];var n={get:()=>r.fromWireType(a(i)),enumerable:!0};return o&&(o=embind__requireFunction(s,o),n.set=e=>{var t=[];o(i,r.toWireType(t,e)),runDestructors(t)}),Object.defineProperty(e.registeredClass.constructor,t,n),[]})),[]}))};function __embind_create_inheriting_constructor(e,t,r){t>>>=0,r>>>=0,e=readLatin1String(e>>>=0),t=requireRegisteredType(t,"wrapper"),r=Emval.toValue(r);var i=t.registeredClass,n=i.instancePrototype,a=i.baseClass.instancePrototype,s=i.baseClass.constructor,o=createNamedFunction(e,(function(...e){i.baseClass.pureVirtualFunctions.forEach(function(e){if(this[e]===a[e])throw new PureVirtualError("Pure virtual function ".concat(e," must be implemented in JavaScript"))}.bind(this)),Object.defineProperty(this,"__parent",{value:n}),this.__construct(...e)}));return n.__construct=function(...e){this===n&&throwBindingError("Pass correct 'this' to __construct");var t=s.implement(this,...e);detachFinalizer(t);var r=t.$$;t.notifyOnDestruction(),r.preservePointerOnDelete=!0,Object.defineProperties(this,{$$:{value:r}}),attachFinalizer(this),registerInheritedInstance(i,r.ptr,this)},n.__destruct=function(){this===n&&throwBindingError("Pass correct 'this' to __destruct"),detachFinalizer(this),unregisterInheritedInstance(i,this.$$.ptr)},o.prototype=Object.create(n),Object.assign(o.prototype,r),Emval.toHandle(o)}__embind_register_class_class_property.sig="vpppppppp",__embind_create_inheriting_constructor.sig="pppp";var __embind_register_smart_ptr=function(e,t,r,i,n,a,s,o,l,c,_,u){e>>>=0,t>>>=0,n>>>=0,a>>>=0,s>>>=0,o>>>=0,l>>>=0,c>>>=0,_>>>=0,u>>>=0,r=readLatin1String(r>>>=0),a=embind__requireFunction(n,a),o=embind__requireFunction(s,o),c=embind__requireFunction(l,c),u=embind__requireFunction(_,u),whenDependentTypesAreResolved([e],[t],(e=>(e=e[0],[new RegisteredPointer(r,e.registeredClass,!1,!1,!0,e,i,a,o,c,u)])))};function __embind_register_enum(e,t,r,i){function n(){}e>>>=0,r>>>=0,t=readLatin1String(t>>>=0),n.values={},registerType(e,{name:t,constructor:n,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:GenericWireTypeSize,readValueFromPointer:enumReadValueFromPointer(t,r,i),destructorFunction:null}),exposePublicSymbol(t,n)}function __embind_register_enum_value(e,t,r){t>>>=0;var i=requireRegisteredType(e>>>=0,"enum");t=readLatin1String(t);var n=i.constructor,a=Object.create(i.constructor.prototype,{value:{value:r},constructor:{value:createNamedFunction("".concat(i.name,"_").concat(t),(function(){}))}});n.values[r]=a,n[t]=a}__embind_register_smart_ptr.sig="vpppipppppppp",__embind_register_enum.sig="vpppi",__embind_register_enum_value.sig="vppi";var __embind_register_constant=function(e,t,r){t>>>=0,e=readLatin1String(e>>>=0),whenDependentTypesAreResolved([],[t],(t=>(t=t[0],Module[e]=t.fromWireType(r),[])))};__embind_register_constant.sig="vppd";var emval_symbols={};function __emval_register_symbol(e){emval_symbols[e>>>=0]=readLatin1String(e)}__emval_register_symbol.sig="vp";var getStringOrSymbol=e=>{var t=emval_symbols[e];return void 0===t?readLatin1String(e):t};function __emval_incref(e){(e>>>=0)>9&&(emval_handles[e+1]+=1)}function __emval_run_destructors(e){e>>>=0;var t=Emval.toValue(e);runDestructors(t),__emval_decref(e)}function __emval_new_array(){return Emval.toHandle([])}function __emval_new_array_from_memory_view(e){e>>>=0,e=Emval.toValue(e);for(var t=new Array(e.length),r=0;r>>=0,Emval.toHandle(getStringOrSymbol(e))}function __emval_new_u8string(e){return e>>>=0,Emval.toHandle(UTF8ToString(e))}function __emval_new_u16string(e){return e>>>=0,Emval.toHandle(UTF16ToString(e))}function __emval_take_value(e,t){t>>>=0;var r=(e=requireRegisteredType(e>>>=0,"_emval_take_value")).readValueFromPointer(t);return Emval.toHandle(r)}__emval_incref.sig="vp",__emval_run_destructors.sig="vp",__emval_new_array.sig="p",__emval_new_array_from_memory_view.sig="pp",__emval_new_object.sig="p",__emval_new_cstring.sig="pp",__emval_new_u8string.sig="pp",__emval_new_u16string.sig="pp",__emval_take_value.sig="ppp";var emval_get_global=()=>"object"==typeof globalThis?globalThis:Function("return this")();function __emval_get_global(e){return 0==(e>>>=0)?Emval.toHandle(emval_get_global()):(e=getStringOrSymbol(e),Emval.toHandle(emval_get_global()[e]))}function __emval_get_module_property(e){return e=getStringOrSymbol(e>>>=0),Emval.toHandle(Module[e])}function __emval_get_property(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),t=Emval.toValue(t),Emval.toHandle(e[t])}function __emval_set_property(e,t,r){e>>>=0,t>>>=0,r>>>=0,e=Emval.toValue(e),t=Emval.toValue(t),r=Emval.toValue(r),e[t]=r}__emval_get_global.sig="pp",__emval_get_module_property.sig="pp",__emval_get_property.sig="ppp",__emval_set_property.sig="vppp";var emval_returnValue=(e,t,r)=>{var i=[],n=e.toWireType(i,r);return i.length&&(HEAPU32[t>>>2>>>0]=Emval.toHandle(i)),n};function __emval_as(e,t,r){return e>>>=0,t>>>=0,r>>>=0,e=Emval.toValue(e),t=requireRegisteredType(t,"emval::as"),emval_returnValue(t,r,e)}function __emval_as_int64(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),(t=requireRegisteredType(t,"emval::as")).toWireType(null,e)}function __emval_as_uint64(e,t){return e>>>=0,t>>>=0,e=Emval.toValue(e),(t=requireRegisteredType(t,"emval::as")).toWireType(null,e)}function __emval_equals(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))==Emval.toValue(t)}function __emval_strictly_equals(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))===Emval.toValue(t)}function __emval_greater_than(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))>Emval.toValue(t)}function __emval_less_than(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))>>=0,!(e=Emval.toValue(e))}__emval_as.sig="dppp",__emval_as_int64.sig="ipp",__emval_as_uint64.sig="ipp",__emval_equals.sig="ipp",__emval_strictly_equals.sig="ipp",__emval_greater_than.sig="ipp",__emval_less_than.sig="ipp",__emval_not.sig="ip";var emval_methodCallers=[];function __emval_call(e,t,r,i){return t>>>=0,r>>>=0,i>>>=0,(e=emval_methodCallers[e>>>=0])(null,t=Emval.toValue(t),r,i)}__emval_call.sig="dpppp";var emval_lookupTypes=(e,t)=>{for(var r=new Array(e),i=0;i>>2>>>0],"parameter "+i);return r},emval_addMethodCaller=e=>{var t=emval_methodCallers.length;return emval_methodCallers.push(e),t},reflectConstruct=Reflect.construct;function __emval_get_method_caller(e,t,r){var i=emval_lookupTypes(e,t>>>=0),n=i.shift();e--;var a="return function (obj, func, destructorsRef, args) {\n",s=0,o=[];0===r&&o.push("obj");for(var l=["retType"],c=[n],_=0;_e.name)).join(", "),") => ").concat(n.name,">");return emval_addMethodCaller(createNamedFunction(d,u))}function __emval_call_method(e,t,r,i,n){return t>>>=0,r>>>=0,i>>>=0,n>>>=0,(e=emval_methodCallers[e>>>=0])(t=Emval.toValue(t),t[r=getStringOrSymbol(r)],i,n)}function __emval_typeof(e){return e>>>=0,e=Emval.toValue(e),Emval.toHandle(typeof e)}function __emval_instanceof(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))instanceof Emval.toValue(t)}function __emval_is_number(e){return e>>>=0,"number"==typeof(e=Emval.toValue(e))}function __emval_is_string(e){return e>>>=0,"string"==typeof(e=Emval.toValue(e))}function __emval_in(e,t){return e>>>=0,t>>>=0,(e=Emval.toValue(e))in Emval.toValue(t)}function __emval_delete(e,t){return e>>>=0,t>>>=0,delete(e=Emval.toValue(e))[t=Emval.toValue(t)]}function __emval_throw(e){throw e>>>=0,Emval.toValue(e)}function __emval_iter_begin(e){return e>>>=0,e=Emval.toValue(e),Emval.toHandle(e[Symbol.iterator]())}function __emval_iter_next(e){e>>>=0;var t=(e=Emval.toValue(e)).next();return t.done?0:Emval.toHandle(t.value)}__emval_get_method_caller.sig="pipi",__emval_call_method.sig="dppppp",__emval_typeof.sig="pp",__emval_instanceof.sig="ipp",__emval_is_number.sig="ip",__emval_is_string.sig="ip",__emval_in.sig="ipp",__emval_delete.sig="ipp",__emval_throw.sig="ip",__emval_iter_begin.sig="pp",__emval_iter_next.sig="pp";var __emval_coro_suspend=function(e,t){e>>>=0,t>>>=0,Emval.toValue(e).then((e=>{__emval_coro_resume(t,Emval.toHandle(e))}))};__emval_coro_suspend.sig="vpp";var __emval_coro_make_promise=function(e,t){return e>>>=0,t>>>=0,Emval.toHandle(new Promise(((r,i)=>{HEAPU32[e>>>2>>>0]=Emval.toHandle(r),HEAPU32[t>>>2>>>0]=Emval.toHandle((()=>{try{___cxa_rethrow()}catch(e){i(e)}}))})))},emSetImmediate,emClearImmediate;function _duckdb_web_fs_file_sync(e){return globalThis.DUCKDB_RUNTIME.syncFile(Module,e)}function _duckdb_web_fs_file_remove(e,t){return globalThis.DUCKDB_RUNTIME.removeFile(Module,e,t)}__emval_coro_make_promise.sig="ppp",_duckdb_web_fs_file_sync.sig="vi",registerWasmPlugin(),FS.createPreloadedFile=FS_createPreloadedFile,FS.staticInit(),embind_init_charCodes(),BindingError=Module.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},InternalError=Module.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},init_emval(),Module.requestAnimationFrame=MainLoop.requestAnimationFrame,Module.pauseMainLoop=MainLoop.pause,Module.resumeMainLoop=MainLoop.resume,MainLoop.init();for(var i=0;i<32;++i)tempFixedLengthArray.push(new Array(i));for(var miniTempWebGLFloatBuffersStorage=new Float32Array(288),i=0;i<=288;++i)miniTempWebGLFloatBuffers[i]=miniTempWebGLFloatBuffersStorage.subarray(0,i);for(var miniTempWebGLIntBuffersStorage=new Int32Array(288),i=0;i<=288;++i)miniTempWebGLIntBuffers[i]=miniTempWebGLIntBuffersStorage.subarray(0,i);if(typeof setImmediate<"u")emSetImmediate=setImmediateWrapped,emClearImmediate=clearImmediateWrapped;else if("function"==typeof addEventListener){var __setImmediate_id_counter=0,__setImmediate_queue=[],__setImmediate_message_id="_si",__setImmediate_cb=e=>{e.data===__setImmediate_message_id&&(e.stopPropagation(),__setImmediate_queue.shift()(),++__setImmediate_id_counter)};addEventListener("message",__setImmediate_cb,!0),emSetImmediate=e=>(postMessage(__setImmediate_message_id,"*"),__setImmediate_id_counter+__setImmediate_queue.push(e)-1),emClearImmediate=e=>{var t=e-__setImmediate_id_counter;t>=0&&t<__setImmediate_queue.length&&(__setImmediate_queue[t]=()=>{})}}Module.requestFullscreen=Browser.requestFullscreen,Module.setCanvasSize=Browser.setCanvasSize,Module.getUserMedia=Browser.getUserMedia,Module.createContext=Browser.createContext;var preloadedImages={},preloadedAudios={};registerPostMainLoop((()=>{var e,t;return null==(t=null==(e=SDL.audio)?void 0:e.queueNewAudioData)?void 0:t.call(e)})),UnboundTypeError=Module.UnboundTypeError=extendError(Error,"UnboundTypeError"),PureVirtualError=Module.PureVirtualError=extendError(Error,"PureVirtualError"),init_RegisteredPointer(),init_ClassHandle();var wasmImports={IMG_Init:_IMG_Init,IMG_Load:_IMG_Load,IMG_Load_RW:_IMG_Load_RW,IMG_Quit:_IMG_Quit,Mix_AllocateChannels:_Mix_AllocateChannels,Mix_ChannelFinished:_Mix_ChannelFinished,Mix_CloseAudio:_Mix_CloseAudio,Mix_FadeInChannelTimed:_Mix_FadeInChannelTimed,Mix_FadeInMusicPos:_Mix_FadeInMusicPos,Mix_FadeOutChannel:_Mix_FadeOutChannel,Mix_FadeOutMusic:_Mix_FadeOutMusic,Mix_FadingChannel:_Mix_FadingChannel,Mix_FreeChunk:_Mix_FreeChunk,Mix_FreeMusic:_Mix_FreeMusic,Mix_HaltChannel:_Mix_HaltChannel,Mix_HaltMusic:_Mix_HaltMusic,Mix_HookMusicFinished:_Mix_HookMusicFinished,Mix_Init:_Mix_Init,Mix_Linked_Version:_Mix_Linked_Version,Mix_LoadMUS:_Mix_LoadMUS,Mix_LoadMUS_RW:_Mix_LoadMUS_RW,Mix_LoadWAV:_Mix_LoadWAV,Mix_LoadWAV_RW:_Mix_LoadWAV_RW,Mix_OpenAudio:_Mix_OpenAudio,Mix_Pause:_Mix_Pause,Mix_PauseMusic:_Mix_PauseMusic,Mix_Paused:_Mix_Paused,Mix_PausedMusic:_Mix_PausedMusic,Mix_PlayChannelTimed:_Mix_PlayChannelTimed,Mix_PlayMusic:_Mix_PlayMusic,Mix_Playing:_Mix_Playing,Mix_PlayingMusic:_Mix_PlayingMusic,Mix_QuerySpec:_Mix_QuerySpec,Mix_QuickLoad_RAW:_Mix_QuickLoad_RAW,Mix_Quit:_Mix_Quit,Mix_ReserveChannels:_Mix_ReserveChannels,Mix_Resume:_Mix_Resume,Mix_ResumeMusic:_Mix_ResumeMusic,Mix_SetPanning:_Mix_SetPanning,Mix_SetPosition:_Mix_SetPosition,Mix_SetPostMix:_Mix_SetPostMix,Mix_Volume:_Mix_Volume,Mix_VolumeChunk:_Mix_VolumeChunk,Mix_VolumeMusic:_Mix_VolumeMusic,SDL_AddTimer:_SDL_AddTimer,SDL_AllocRW:_SDL_AllocRW,SDL_AudioDriverName:_SDL_AudioDriverName,SDL_AudioQuit:_SDL_AudioQuit,SDL_ClearError:_SDL_ClearError,SDL_CloseAudio:_SDL_CloseAudio,SDL_CondBroadcast:_SDL_CondBroadcast,SDL_CondSignal:_SDL_CondSignal,SDL_CondWait:_SDL_CondWait,SDL_CondWaitTimeout:_SDL_CondWaitTimeout,SDL_ConvertSurface:_SDL_ConvertSurface,SDL_CreateCond:_SDL_CreateCond,SDL_CreateMutex:_SDL_CreateMutex,SDL_CreateRGBSurface:_SDL_CreateRGBSurface,SDL_CreateRGBSurfaceFrom:_SDL_CreateRGBSurfaceFrom,SDL_CreateThread:_SDL_CreateThread,SDL_Delay:_SDL_Delay,SDL_DestroyCond:_SDL_DestroyCond,SDL_DestroyMutex:_SDL_DestroyMutex,SDL_DestroyRenderer:_SDL_DestroyRenderer,SDL_DestroyWindow:_SDL_DestroyWindow,SDL_DisplayFormatAlpha:_SDL_DisplayFormatAlpha,SDL_EnableKeyRepeat:_SDL_EnableKeyRepeat,SDL_EnableUNICODE:_SDL_EnableUNICODE,SDL_FillRect:_SDL_FillRect,SDL_Flip:_SDL_Flip,SDL_FreeRW:_SDL_FreeRW,SDL_FreeSurface:_SDL_FreeSurface,SDL_GL_DeleteContext:_SDL_GL_DeleteContext,SDL_GL_ExtensionSupported:_SDL_GL_ExtensionSupported,SDL_GL_GetAttribute:_SDL_GL_GetAttribute,SDL_GL_GetSwapInterval:_SDL_GL_GetSwapInterval,SDL_GL_MakeCurrent:_SDL_GL_MakeCurrent,SDL_GL_SetAttribute:_SDL_GL_SetAttribute,SDL_GL_SetSwapInterval:_SDL_GL_SetSwapInterval,SDL_GL_SwapBuffers:_SDL_GL_SwapBuffers,SDL_GL_SwapWindow:_SDL_GL_SwapWindow,SDL_GetAppState:_SDL_GetAppState,SDL_GetAudioDriver:_SDL_GetAudioDriver,SDL_GetClipRect:_SDL_GetClipRect,SDL_GetCurrentAudioDriver:_SDL_GetCurrentAudioDriver,SDL_GetError:_SDL_GetError,SDL_GetKeyName:_SDL_GetKeyName,SDL_GetKeyState:_SDL_GetKeyState,SDL_GetKeyboardState:_SDL_GetKeyboardState,SDL_GetModState:_SDL_GetModState,SDL_GetMouseState:_SDL_GetMouseState,SDL_GetNumAudioDrivers:_SDL_GetNumAudioDrivers,SDL_GetRGB:_SDL_GetRGB,SDL_GetRGBA:_SDL_GetRGBA,SDL_GetScancodeFromKey:_SDL_GetScancodeFromKey,SDL_GetThreadID:_SDL_GetThreadID,SDL_GetTicks:_SDL_GetTicks,SDL_GetVideoInfo:_SDL_GetVideoInfo,SDL_GetVideoSurface:_SDL_GetVideoSurface,SDL_GetWindowFlags:_SDL_GetWindowFlags,SDL_GetWindowSize:_SDL_GetWindowSize,SDL_Has3DNow:_SDL_Has3DNow,SDL_Has3DNowExt:_SDL_Has3DNowExt,SDL_HasAltiVec:_SDL_HasAltiVec,SDL_HasMMX:_SDL_HasMMX,SDL_HasMMXExt:_SDL_HasMMXExt,SDL_HasRDTSC:_SDL_HasRDTSC,SDL_HasSSE:_SDL_HasSSE,SDL_HasSSE2:_SDL_HasSSE2,SDL_Init:_SDL_Init,SDL_InitSubSystem:_SDL_InitSubSystem,SDL_JoystickClose:_SDL_JoystickClose,SDL_JoystickEventState:_SDL_JoystickEventState,SDL_JoystickGetAxis:_SDL_JoystickGetAxis,SDL_JoystickGetBall:_SDL_JoystickGetBall,SDL_JoystickGetButton:_SDL_JoystickGetButton,SDL_JoystickGetHat:_SDL_JoystickGetHat,SDL_JoystickIndex:_SDL_JoystickIndex,SDL_JoystickName:_SDL_JoystickName,SDL_JoystickNumAxes:_SDL_JoystickNumAxes,SDL_JoystickNumBalls:_SDL_JoystickNumBalls,SDL_JoystickNumButtons:_SDL_JoystickNumButtons,SDL_JoystickNumHats:_SDL_JoystickNumHats,SDL_JoystickOpen:_SDL_JoystickOpen,SDL_JoystickOpened:_SDL_JoystickOpened,SDL_JoystickUpdate:_SDL_JoystickUpdate,SDL_Linked_Version:_SDL_Linked_Version,SDL_ListModes:_SDL_ListModes,SDL_LoadBMP_RW:_SDL_LoadBMP_RW,SDL_LockAudio:_SDL_LockAudio,SDL_LockSurface:_SDL_LockSurface,SDL_LogSetOutputFunction:_SDL_LogSetOutputFunction,SDL_LowerBlit:_SDL_LowerBlit,SDL_LowerBlitScaled:_SDL_LowerBlitScaled,SDL_MapRGB:_SDL_MapRGB,SDL_MapRGBA:_SDL_MapRGBA,SDL_NumJoysticks:_SDL_NumJoysticks,SDL_OpenAudio:_SDL_OpenAudio,SDL_PauseAudio:_SDL_PauseAudio,SDL_PeepEvents:_SDL_PeepEvents,SDL_PollEvent:_SDL_PollEvent,SDL_PumpEvents:_SDL_PumpEvents,SDL_PushEvent:_SDL_PushEvent,SDL_Quit:_SDL_Quit,SDL_QuitSubSystem:_SDL_QuitSubSystem,SDL_RWFromConstMem:_SDL_RWFromConstMem,SDL_RWFromFile:_SDL_RWFromFile,SDL_RWFromMem:_SDL_RWFromMem,SDL_RemoveTimer:_SDL_RemoveTimer,SDL_SaveBMP_RW:_SDL_SaveBMP_RW,SDL_SetAlpha:_SDL_SetAlpha,SDL_SetClipRect:_SDL_SetClipRect,SDL_SetColorKey:_SDL_SetColorKey,SDL_SetColors:_SDL_SetColors,SDL_SetError:_SDL_SetError,SDL_SetGamma:_SDL_SetGamma,SDL_SetGammaRamp:_SDL_SetGammaRamp,SDL_SetPalette:_SDL_SetPalette,SDL_SetVideoMode:_SDL_SetVideoMode,SDL_SetWindowFullscreen:_SDL_SetWindowFullscreen,SDL_SetWindowTitle:_SDL_SetWindowTitle,SDL_ShowCursor:_SDL_ShowCursor,SDL_StartTextInput:_SDL_StartTextInput,SDL_StopTextInput:_SDL_StopTextInput,SDL_ThreadID:_SDL_ThreadID,SDL_UnlockAudio:_SDL_UnlockAudio,SDL_UnlockSurface:_SDL_UnlockSurface,SDL_UpdateRect:_SDL_UpdateRect,SDL_UpdateRects:_SDL_UpdateRects,SDL_UpperBlit:_SDL_UpperBlit,SDL_UpperBlitScaled:_SDL_UpperBlitScaled,SDL_VideoDriverName:_SDL_VideoDriverName,SDL_VideoModeOK:_SDL_VideoModeOK,SDL_VideoQuit:_SDL_VideoQuit,SDL_WM_GrabInput:_SDL_WM_GrabInput,SDL_WM_IconifyWindow:_SDL_WM_IconifyWindow,SDL_WM_SetCaption:_SDL_WM_SetCaption,SDL_WM_SetIcon:_SDL_WM_SetIcon,SDL_WM_ToggleFullScreen:_SDL_WM_ToggleFullScreen,SDL_WaitThread:_SDL_WaitThread,SDL_WarpMouse:_SDL_WarpMouse,SDL_WasInit:_SDL_WasInit,SDL_mutexP:_SDL_mutexP,SDL_mutexV:_SDL_mutexV,TTF_CloseFont:_TTF_CloseFont,TTF_FontAscent:_TTF_FontAscent,TTF_FontDescent:_TTF_FontDescent,TTF_FontHeight:_TTF_FontHeight,TTF_FontLineSkip:_TTF_FontLineSkip,TTF_GlyphMetrics:_TTF_GlyphMetrics,TTF_Init:_TTF_Init,TTF_OpenFont:_TTF_OpenFont,TTF_Quit:_TTF_Quit,TTF_RenderText_Blended:_TTF_RenderText_Blended,TTF_RenderText_Shaded:_TTF_RenderText_Shaded,TTF_RenderText_Solid:_TTF_RenderText_Solid,TTF_RenderUTF8_Solid:_TTF_RenderUTF8_Solid,TTF_SizeText:_TTF_SizeText,TTF_SizeUTF8:_TTF_SizeUTF8,XChangeWindowAttributes:_XChangeWindowAttributes,XCreateWindow:_XCreateWindow,XInternAtom:_XInternAtom,XMapWindow:_XMapWindow,XOpenDisplay:_XOpenDisplay,XPending:_XPending,XSendEvent:_XSendEvent,XSetWMHints:_XSetWMHints,XStoreName:_XStoreName,_Unwind_Backtrace:__Unwind_Backtrace,_Unwind_DeleteException:__Unwind_DeleteException,_Unwind_FindEnclosingFunction:__Unwind_FindEnclosingFunction,_Unwind_GetIPInfo:__Unwind_GetIPInfo,_Unwind_RaiseException:__Unwind_RaiseException,_ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm:__ZN18duckdb_skiplistlib9skip_list19_throw_exceeds_sizeEm,__asctime_r:___asctime_r,__assert_fail:___assert_fail,__call_sighandler:___call_sighandler,__cxa_begin_catch:___cxa_begin_catch,__cxa_call_unexpected:___cxa_call_unexpected,__cxa_current_primary_exception:___cxa_current_primary_exception,__cxa_end_catch:___cxa_end_catch,__cxa_find_matching_catch_2:___cxa_find_matching_catch_2,__cxa_find_matching_catch_3:___cxa_find_matching_catch_3,__cxa_find_matching_catch_4:___cxa_find_matching_catch_4,__cxa_rethrow:___cxa_rethrow,__cxa_rethrow_primary_exception:___cxa_rethrow_primary_exception,__cxa_throw:___cxa_throw,__cxa_uncaught_exceptions:___cxa_uncaught_exceptions,__global_base:___global_base,__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__resumeException:___resumeException,__stack_high:___stack_high,__stack_low:___stack_low,__stack_pointer:___stack_pointer,__syscall__newselect:___syscall__newselect,__syscall_accept4:___syscall_accept4,__syscall_bind:___syscall_bind,__syscall_chdir:___syscall_chdir,__syscall_chmod:___syscall_chmod,__syscall_connect:___syscall_connect,__syscall_dup:___syscall_dup,__syscall_dup3:___syscall_dup3,__syscall_faccessat:___syscall_faccessat,__syscall_fadvise64:___syscall_fadvise64,__syscall_fallocate:___syscall_fallocate,__syscall_fchdir:___syscall_fchdir,__syscall_fchmod:___syscall_fchmod,__syscall_fchmodat2:___syscall_fchmodat2,__syscall_fchown32:___syscall_fchown32,__syscall_fchownat:___syscall_fchownat,__syscall_fcntl64:___syscall_fcntl64,__syscall_fdatasync:___syscall_fdatasync,__syscall_fstat64:___syscall_fstat64,__syscall_fstatfs64:___syscall_fstatfs64,__syscall_ftruncate64:___syscall_ftruncate64,__syscall_getcwd:___syscall_getcwd,__syscall_getdents64:___syscall_getdents64,__syscall_getpeername:___syscall_getpeername,__syscall_getsockname:___syscall_getsockname,__syscall_getsockopt:___syscall_getsockopt,__syscall_ioctl:___syscall_ioctl,__syscall_listen:___syscall_listen,__syscall_lstat64:___syscall_lstat64,__syscall_mkdirat:___syscall_mkdirat,__syscall_mknodat:___syscall_mknodat,__syscall_newfstatat:___syscall_newfstatat,__syscall_openat:___syscall_openat,__syscall_pipe:___syscall_pipe,__syscall_poll:___syscall_poll,__syscall_readlinkat:___syscall_readlinkat,__syscall_recvfrom:___syscall_recvfrom,__syscall_recvmsg:___syscall_recvmsg,__syscall_renameat:___syscall_renameat,__syscall_rmdir:___syscall_rmdir,__syscall_sendmsg:___syscall_sendmsg,__syscall_sendto:___syscall_sendto,__syscall_socket:___syscall_socket,__syscall_stat64:___syscall_stat64,__syscall_statfs64:___syscall_statfs64,__syscall_symlink:___syscall_symlink,__syscall_symlinkat:___syscall_symlinkat,__syscall_truncate64:___syscall_truncate64,__syscall_unlinkat:___syscall_unlinkat,__syscall_utimensat:___syscall_utimensat,__table_base:___table_base,_abort_js:__abort_js,_dlopen_js:__dlopen_js,_dlsym_catchup_js:__dlsym_catchup_js,_dlsym_js:__dlsym_js,_embind_create_inheriting_constructor:__embind_create_inheriting_constructor,_embind_finalize_value_array:__embind_finalize_value_array,_embind_finalize_value_object:__embind_finalize_value_object,_embind_register_bigint:__embind_register_bigint,_embind_register_bool:__embind_register_bool,_embind_register_class:__embind_register_class,_embind_register_class_class_function:__embind_register_class_class_function,_embind_register_class_class_property:__embind_register_class_class_property,_embind_register_class_constructor:__embind_register_class_constructor,_embind_register_class_function:__embind_register_class_function,_embind_register_class_property:__embind_register_class_property,_embind_register_constant:__embind_register_constant,_embind_register_emval:__embind_register_emval,_embind_register_enum:__embind_register_enum,_embind_register_enum_value:__embind_register_enum_value,_embind_register_float:__embind_register_float,_embind_register_function:__embind_register_function,_embind_register_integer:__embind_register_integer,_embind_register_memory_view:__embind_register_memory_view,_embind_register_optional:__embind_register_optional,_embind_register_smart_ptr:__embind_register_smart_ptr,_embind_register_std_string:__embind_register_std_string,_embind_register_std_wstring:__embind_register_std_wstring,_embind_register_user_type:__embind_register_user_type,_embind_register_value_array:__embind_register_value_array,_embind_register_value_array_element:__embind_register_value_array_element,_embind_register_value_object:__embind_register_value_object,_embind_register_value_object_field:__embind_register_value_object_field,_embind_register_void:__embind_register_void,_emscripten_dlopen_js:__emscripten_dlopen_js,_emscripten_fs_load_embedded_files:__emscripten_fs_load_embedded_files,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_get_progname:__emscripten_get_progname,_emscripten_lookup_name:__emscripten_lookup_name,_emscripten_memcpy_js:__emscripten_memcpy_js,_emscripten_push_main_loop_blocker:__emscripten_push_main_loop_blocker,_emscripten_push_uncounted_main_loop_blocker:__emscripten_push_uncounted_main_loop_blocker,_emscripten_runtime_keepalive_clear:__emscripten_runtime_keepalive_clear,_emscripten_set_offscreencanvas_size:__emscripten_set_offscreencanvas_size,_emscripten_system:__emscripten_system,_emscripten_throw_longjmp:__emscripten_throw_longjmp,_emval_as:__emval_as,_emval_as_int64:__emval_as_int64,_emval_as_uint64:__emval_as_uint64,_emval_call:__emval_call,_emval_call_method:__emval_call_method,_emval_coro_make_promise:__emval_coro_make_promise,_emval_coro_suspend:__emval_coro_suspend,_emval_decref:__emval_decref,_emval_delete:__emval_delete,_emval_equals:__emval_equals,_emval_get_global:__emval_get_global,_emval_get_method_caller:__emval_get_method_caller,_emval_get_module_property:__emval_get_module_property,_emval_get_property:__emval_get_property,_emval_greater_than:__emval_greater_than,_emval_in:__emval_in,_emval_incref:__emval_incref,_emval_instanceof:__emval_instanceof,_emval_is_number:__emval_is_number,_emval_is_string:__emval_is_string,_emval_iter_begin:__emval_iter_begin,_emval_iter_next:__emval_iter_next,_emval_less_than:__emval_less_than,_emval_new_array:__emval_new_array,_emval_new_array_from_memory_view:__emval_new_array_from_memory_view,_emval_new_cstring:__emval_new_cstring,_emval_new_object:__emval_new_object,_emval_new_u16string:__emval_new_u16string,_emval_new_u8string:__emval_new_u8string,_emval_not:__emval_not,_emval_register_symbol:__emval_register_symbol,_emval_run_destructors:__emval_run_destructors,_emval_set_property:__emval_set_property,_emval_strictly_equals:__emval_strictly_equals,_emval_take_value:__emval_take_value,_emval_throw:__emval_throw,_emval_typeof:__emval_typeof,_glGetActiveAttribOrUniform:__glGetActiveAttribOrUniform,_gmtime_js:__gmtime_js,_localtime_js:__localtime_js,_mktime_js:__mktime_js,_mmap_js:__mmap_js,_msync_js:__msync_js,_munmap_js:__munmap_js,_setitimer_js:__setitimer_js,_timegm_js:__timegm_js,_tzset_js:__tzset_js,alBuffer3f:_alBuffer3f,alBuffer3i:_alBuffer3i,alBufferData:_alBufferData,alBufferf:_alBufferf,alBufferfv:_alBufferfv,alBufferi:_alBufferi,alBufferiv:_alBufferiv,alDeleteBuffers:_alDeleteBuffers,alDeleteSources:_alDeleteSources,alDisable:_alDisable,alDistanceModel:_alDistanceModel,alDopplerFactor:_alDopplerFactor,alDopplerVelocity:_alDopplerVelocity,alEnable:_alEnable,alGenBuffers:_alGenBuffers,alGenSources:_alGenSources,alGetBoolean:_alGetBoolean,alGetBooleanv:_alGetBooleanv,alGetBuffer3f:_alGetBuffer3f,alGetBuffer3i:_alGetBuffer3i,alGetBufferf:_alGetBufferf,alGetBufferfv:_alGetBufferfv,alGetBufferi:_alGetBufferi,alGetBufferiv:_alGetBufferiv,alGetDouble:_alGetDouble,alGetDoublev:_alGetDoublev,alGetEnumValue:_alGetEnumValue,alGetError:_alGetError,alGetFloat:_alGetFloat,alGetFloatv:_alGetFloatv,alGetInteger:_alGetInteger,alGetIntegerv:_alGetIntegerv,alGetListener3f:_alGetListener3f,alGetListener3i:_alGetListener3i,alGetListenerf:_alGetListenerf,alGetListenerfv:_alGetListenerfv,alGetListeneri:_alGetListeneri,alGetListeneriv:_alGetListeneriv,alGetSource3f:_alGetSource3f,alGetSource3i:_alGetSource3i,alGetSourcef:_alGetSourcef,alGetSourcefv:_alGetSourcefv,alGetSourcei:_alGetSourcei,alGetSourceiv:_alGetSourceiv,alGetString:_alGetString,alIsBuffer:_alIsBuffer,alIsEnabled:_alIsEnabled,alIsExtensionPresent:_alIsExtensionPresent,alIsSource:_alIsSource,alListener3f:_alListener3f,alListener3i:_alListener3i,alListenerf:_alListenerf,alListenerfv:_alListenerfv,alListeneri:_alListeneri,alListeneriv:_alListeneriv,alSource3f:_alSource3f,alSource3i:_alSource3i,alSourcePause:_alSourcePause,alSourcePausev:_alSourcePausev,alSourcePlay:_alSourcePlay,alSourcePlayv:_alSourcePlayv,alSourceQueueBuffers:_alSourceQueueBuffers,alSourceRewind:_alSourceRewind,alSourceRewindv:_alSourceRewindv,alSourceStop:_alSourceStop,alSourceStopv:_alSourceStopv,alSourceUnqueueBuffers:_alSourceUnqueueBuffers,alSourcef:_alSourcef,alSourcefv:_alSourcefv,alSourcei:_alSourcei,alSourceiv:_alSourceiv,alSpeedOfSound:_alSpeedOfSound,alcCaptureCloseDevice:_alcCaptureCloseDevice,alcCaptureOpenDevice:_alcCaptureOpenDevice,alcCaptureSamples:_alcCaptureSamples,alcCaptureStart:_alcCaptureStart,alcCaptureStop:_alcCaptureStop,alcCloseDevice:_alcCloseDevice,alcCreateContext:_alcCreateContext,alcDestroyContext:_alcDestroyContext,alcGetContextsDevice:_alcGetContextsDevice,alcGetCurrentContext:_alcGetCurrentContext,alcGetEnumValue:_alcGetEnumValue,alcGetError:_alcGetError,alcGetIntegerv:_alcGetIntegerv,alcGetString:_alcGetString,alcIsExtensionPresent:_alcIsExtensionPresent,alcMakeContextCurrent:_alcMakeContextCurrent,alcOpenDevice:_alcOpenDevice,alcProcessContext:_alcProcessContext,alcSuspendContext:_alcSuspendContext,boxColor:_boxColor,boxRGBA:_boxRGBA,clock_res_get:_clock_res_get,clock_time_get:_clock_time_get,duckdb_web_fs_directory_create:_duckdb_web_fs_directory_create,duckdb_web_fs_directory_exists:_duckdb_web_fs_directory_exists,duckdb_web_fs_directory_list_files:_duckdb_web_fs_directory_list_files,duckdb_web_fs_directory_remove:_duckdb_web_fs_directory_remove,duckdb_web_fs_file_close:_duckdb_web_fs_file_close,duckdb_web_fs_file_exists:_duckdb_web_fs_file_exists,duckdb_web_fs_file_get_last_modified_time:_duckdb_web_fs_file_get_last_modified_time,duckdb_web_fs_file_move:_duckdb_web_fs_file_move,duckdb_web_fs_file_open:_duckdb_web_fs_file_open,duckdb_web_fs_file_read:_duckdb_web_fs_file_read,duckdb_web_fs_file_remove:_duckdb_web_fs_file_remove,duckdb_web_fs_file_sync:_duckdb_web_fs_file_sync,duckdb_web_fs_file_truncate:_duckdb_web_fs_file_truncate,duckdb_web_fs_file_write:_duckdb_web_fs_file_write,duckdb_web_fs_get_default_data_protocol:_duckdb_web_fs_get_default_data_protocol,duckdb_web_fs_glob:_duckdb_web_fs_glob,duckdb_web_test_platform_feature:_duckdb_web_test_platform_feature,duckdb_web_udf_scalar_call:_duckdb_web_udf_scalar_call,eglBindAPI:_eglBindAPI,eglChooseConfig:_eglChooseConfig,eglCreateContext:_eglCreateContext,eglCreateWindowSurface:_eglCreateWindowSurface,eglDestroyContext:_eglDestroyContext,eglDestroySurface:_eglDestroySurface,eglGetConfigAttrib:_eglGetConfigAttrib,eglGetConfigs:_eglGetConfigs,eglGetCurrentContext:_eglGetCurrentContext,eglGetCurrentDisplay:_eglGetCurrentDisplay,eglGetCurrentSurface:_eglGetCurrentSurface,eglGetDisplay:_eglGetDisplay,eglGetError:_eglGetError,eglInitialize:_eglInitialize,eglMakeCurrent:_eglMakeCurrent,eglQueryAPI:_eglQueryAPI,eglQueryContext:_eglQueryContext,eglQueryString:_eglQueryString,eglQuerySurface:_eglQuerySurface,eglReleaseThread:_eglReleaseThread,eglSwapBuffers:_eglSwapBuffers,eglSwapInterval:_eglSwapInterval,eglTerminate:_eglTerminate,eglWaitClient:_eglWaitClient,eglWaitGL:_eglWaitGL,eglWaitNative:_eglWaitNative,ellipseColor:_ellipseColor,ellipseRGBA:_ellipseRGBA,emscripten_SDL_SetEventHandler:_emscripten_SDL_SetEventHandler,emscripten_alcDevicePauseSOFT:_emscripten_alcDevicePauseSOFT,emscripten_alcDeviceResumeSOFT:_emscripten_alcDeviceResumeSOFT,emscripten_alcGetStringiSOFT:_emscripten_alcGetStringiSOFT,emscripten_alcResetDeviceSOFT:_emscripten_alcResetDeviceSOFT,emscripten_asm_const_async_on_main_thread:_emscripten_asm_const_async_on_main_thread,emscripten_asm_const_double:_emscripten_asm_const_double,emscripten_asm_const_double_sync_on_main_thread:_emscripten_asm_const_double_sync_on_main_thread,emscripten_asm_const_int:_emscripten_asm_const_int,emscripten_asm_const_int_sync_on_main_thread:_emscripten_asm_const_int_sync_on_main_thread,emscripten_asm_const_ptr:_emscripten_asm_const_ptr,emscripten_asm_const_ptr_sync_on_main_thread:_emscripten_asm_const_ptr_sync_on_main_thread,emscripten_async_call:_emscripten_async_call,emscripten_async_load_script:_emscripten_async_load_script,emscripten_async_run_script:_emscripten_async_run_script,emscripten_async_wget:_emscripten_async_wget,emscripten_async_wget2:_emscripten_async_wget2,emscripten_async_wget2_abort:_emscripten_async_wget2_abort,emscripten_async_wget2_data:_emscripten_async_wget2_data,emscripten_async_wget_data:_emscripten_async_wget_data,emscripten_call_worker:_emscripten_call_worker,emscripten_cancel_animation_frame:_emscripten_cancel_animation_frame,emscripten_cancel_main_loop:_emscripten_cancel_main_loop,emscripten_clear_immediate:_emscripten_clear_immediate,emscripten_clear_interval:_emscripten_clear_interval,emscripten_clear_timeout:_emscripten_clear_timeout,emscripten_console_error:_emscripten_console_error,emscripten_console_log:_emscripten_console_log,emscripten_console_trace:_emscripten_console_trace,emscripten_console_warn:_emscripten_console_warn,emscripten_create_worker:_emscripten_create_worker,emscripten_date_now:_emscripten_date_now,emscripten_debugger:_emscripten_debugger,emscripten_destroy_worker:_emscripten_destroy_worker,emscripten_enter_soft_fullscreen:_emscripten_enter_soft_fullscreen,emscripten_err:_emscripten_err,emscripten_errn:_emscripten_errn,emscripten_exit_fullscreen:_emscripten_exit_fullscreen,emscripten_exit_pointerlock:_emscripten_exit_pointerlock,emscripten_exit_soft_fullscreen:_emscripten_exit_soft_fullscreen,emscripten_exit_with_live_runtime:_emscripten_exit_with_live_runtime,emscripten_fiber_swap:_emscripten_fiber_swap,emscripten_force_exit:_emscripten_force_exit,emscripten_get_battery_status:_emscripten_get_battery_status,emscripten_get_callstack:_emscripten_get_callstack,emscripten_get_canvas_element_size:_emscripten_get_canvas_element_size,emscripten_get_canvas_size:_emscripten_get_canvas_size,emscripten_get_compiler_setting:_emscripten_get_compiler_setting,emscripten_get_device_pixel_ratio:_emscripten_get_device_pixel_ratio,emscripten_get_devicemotion_status:_emscripten_get_devicemotion_status,emscripten_get_deviceorientation_status:_emscripten_get_deviceorientation_status,emscripten_get_element_css_size:_emscripten_get_element_css_size,emscripten_get_fullscreen_status:_emscripten_get_fullscreen_status,emscripten_get_gamepad_status:_emscripten_get_gamepad_status,emscripten_get_heap_max:_emscripten_get_heap_max,emscripten_get_main_loop_timing:_emscripten_get_main_loop_timing,emscripten_get_mouse_status:_emscripten_get_mouse_status,emscripten_get_now:_emscripten_get_now,emscripten_get_now_res:_emscripten_get_now_res,emscripten_get_num_gamepads:_emscripten_get_num_gamepads,emscripten_get_orientation_status:_emscripten_get_orientation_status,emscripten_get_pointerlock_status:_emscripten_get_pointerlock_status,emscripten_get_preloaded_image_data:_emscripten_get_preloaded_image_data,emscripten_get_preloaded_image_data_from_FILE:_emscripten_get_preloaded_image_data_from_FILE,emscripten_get_screen_size:_emscripten_get_screen_size,emscripten_get_visibility_status:_emscripten_get_visibility_status,emscripten_get_window_title:_emscripten_get_window_title,emscripten_get_worker_queue_size:_emscripten_get_worker_queue_size,emscripten_glActiveTexture:_emscripten_glActiveTexture,emscripten_glAttachShader:_emscripten_glAttachShader,emscripten_glBegin:_emscripten_glBegin,emscripten_glBeginQueryEXT:_emscripten_glBeginQueryEXT,emscripten_glBindAttribLocation:_emscripten_glBindAttribLocation,emscripten_glBindBuffer:_emscripten_glBindBuffer,emscripten_glBindFramebuffer:_emscripten_glBindFramebuffer,emscripten_glBindRenderbuffer:_emscripten_glBindRenderbuffer,emscripten_glBindTexture:_emscripten_glBindTexture,emscripten_glBindVertexArray:_emscripten_glBindVertexArray,emscripten_glBindVertexArrayOES:_emscripten_glBindVertexArrayOES,emscripten_glBlendColor:_emscripten_glBlendColor,emscripten_glBlendEquation:_emscripten_glBlendEquation,emscripten_glBlendEquationSeparate:_emscripten_glBlendEquationSeparate,emscripten_glBlendFunc:_emscripten_glBlendFunc,emscripten_glBlendFuncSeparate:_emscripten_glBlendFuncSeparate,emscripten_glBufferData:_emscripten_glBufferData,emscripten_glBufferSubData:_emscripten_glBufferSubData,emscripten_glCheckFramebufferStatus:_emscripten_glCheckFramebufferStatus,emscripten_glClear:_emscripten_glClear,emscripten_glClearColor:_emscripten_glClearColor,emscripten_glClearDepth:_emscripten_glClearDepth,emscripten_glClearDepthf:_emscripten_glClearDepthf,emscripten_glClearStencil:_emscripten_glClearStencil,emscripten_glClipControlEXT:_emscripten_glClipControlEXT,emscripten_glColorMask:_emscripten_glColorMask,emscripten_glCompileShader:_emscripten_glCompileShader,emscripten_glCompressedTexImage2D:_emscripten_glCompressedTexImage2D,emscripten_glCompressedTexSubImage2D:_emscripten_glCompressedTexSubImage2D,emscripten_glCopyTexImage2D:_emscripten_glCopyTexImage2D,emscripten_glCopyTexSubImage2D:_emscripten_glCopyTexSubImage2D,emscripten_glCreateProgram:_emscripten_glCreateProgram,emscripten_glCreateShader:_emscripten_glCreateShader,emscripten_glCullFace:_emscripten_glCullFace,emscripten_glDeleteBuffers:_emscripten_glDeleteBuffers,emscripten_glDeleteFramebuffers:_emscripten_glDeleteFramebuffers,emscripten_glDeleteProgram:_emscripten_glDeleteProgram,emscripten_glDeleteQueriesEXT:_emscripten_glDeleteQueriesEXT,emscripten_glDeleteRenderbuffers:_emscripten_glDeleteRenderbuffers,emscripten_glDeleteShader:_emscripten_glDeleteShader,emscripten_glDeleteTextures:_emscripten_glDeleteTextures,emscripten_glDeleteVertexArrays:_emscripten_glDeleteVertexArrays,emscripten_glDeleteVertexArraysOES:_emscripten_glDeleteVertexArraysOES,emscripten_glDepthFunc:_emscripten_glDepthFunc,emscripten_glDepthMask:_emscripten_glDepthMask,emscripten_glDepthRange:_emscripten_glDepthRange,emscripten_glDepthRangef:_emscripten_glDepthRangef,emscripten_glDetachShader:_emscripten_glDetachShader,emscripten_glDisable:_emscripten_glDisable,emscripten_glDisableVertexAttribArray:_emscripten_glDisableVertexAttribArray,emscripten_glDrawArrays:_emscripten_glDrawArrays,emscripten_glDrawArraysInstanced:_emscripten_glDrawArraysInstanced,emscripten_glDrawArraysInstancedANGLE:_emscripten_glDrawArraysInstancedANGLE,emscripten_glDrawArraysInstancedARB:_emscripten_glDrawArraysInstancedARB,emscripten_glDrawArraysInstancedEXT:_emscripten_glDrawArraysInstancedEXT,emscripten_glDrawArraysInstancedNV:_emscripten_glDrawArraysInstancedNV,emscripten_glDrawBuffers:_emscripten_glDrawBuffers,emscripten_glDrawBuffersEXT:_emscripten_glDrawBuffersEXT,emscripten_glDrawBuffersWEBGL:_emscripten_glDrawBuffersWEBGL,emscripten_glDrawElements:_emscripten_glDrawElements,emscripten_glDrawElementsInstanced:_emscripten_glDrawElementsInstanced,emscripten_glDrawElementsInstancedANGLE:_emscripten_glDrawElementsInstancedANGLE,emscripten_glDrawElementsInstancedARB:_emscripten_glDrawElementsInstancedARB,emscripten_glDrawElementsInstancedEXT:_emscripten_glDrawElementsInstancedEXT,emscripten_glDrawElementsInstancedNV:_emscripten_glDrawElementsInstancedNV,emscripten_glEnable:_emscripten_glEnable,emscripten_glEnableVertexAttribArray:_emscripten_glEnableVertexAttribArray,emscripten_glEndQueryEXT:_emscripten_glEndQueryEXT,emscripten_glFinish:_emscripten_glFinish,emscripten_glFlush:_emscripten_glFlush,emscripten_glFramebufferRenderbuffer:_emscripten_glFramebufferRenderbuffer,emscripten_glFramebufferTexture2D:_emscripten_glFramebufferTexture2D,emscripten_glFrontFace:_emscripten_glFrontFace,emscripten_glGenBuffers:_emscripten_glGenBuffers,emscripten_glGenFramebuffers:_emscripten_glGenFramebuffers,emscripten_glGenQueriesEXT:_emscripten_glGenQueriesEXT,emscripten_glGenRenderbuffers:_emscripten_glGenRenderbuffers,emscripten_glGenTextures:_emscripten_glGenTextures,emscripten_glGenVertexArrays:_emscripten_glGenVertexArrays,emscripten_glGenVertexArraysOES:_emscripten_glGenVertexArraysOES,emscripten_glGenerateMipmap:_emscripten_glGenerateMipmap,emscripten_glGetActiveAttrib:_emscripten_glGetActiveAttrib,emscripten_glGetActiveUniform:_emscripten_glGetActiveUniform,emscripten_glGetAttachedShaders:_emscripten_glGetAttachedShaders,emscripten_glGetAttribLocation:_emscripten_glGetAttribLocation,emscripten_glGetBooleanv:_emscripten_glGetBooleanv,emscripten_glGetBufferParameteriv:_emscripten_glGetBufferParameteriv,emscripten_glGetError:_emscripten_glGetError,emscripten_glGetFloatv:_emscripten_glGetFloatv,emscripten_glGetFramebufferAttachmentParameteriv:_emscripten_glGetFramebufferAttachmentParameteriv,emscripten_glGetIntegerv:_emscripten_glGetIntegerv,emscripten_glGetProgramInfoLog:_emscripten_glGetProgramInfoLog,emscripten_glGetProgramiv:_emscripten_glGetProgramiv,emscripten_glGetQueryObjecti64vEXT:_emscripten_glGetQueryObjecti64vEXT,emscripten_glGetQueryObjectivEXT:_emscripten_glGetQueryObjectivEXT,emscripten_glGetQueryObjectui64vEXT:_emscripten_glGetQueryObjectui64vEXT,emscripten_glGetQueryObjectuivEXT:_emscripten_glGetQueryObjectuivEXT,emscripten_glGetQueryivEXT:_emscripten_glGetQueryivEXT,emscripten_glGetRenderbufferParameteriv:_emscripten_glGetRenderbufferParameteriv,emscripten_glGetShaderInfoLog:_emscripten_glGetShaderInfoLog,emscripten_glGetShaderPrecisionFormat:_emscripten_glGetShaderPrecisionFormat,emscripten_glGetShaderSource:_emscripten_glGetShaderSource,emscripten_glGetShaderiv:_emscripten_glGetShaderiv,emscripten_glGetString:_emscripten_glGetString,emscripten_glGetTexParameterfv:_emscripten_glGetTexParameterfv,emscripten_glGetTexParameteriv:_emscripten_glGetTexParameteriv,emscripten_glGetUniformLocation:_emscripten_glGetUniformLocation,emscripten_glGetUniformfv:_emscripten_glGetUniformfv,emscripten_glGetUniformiv:_emscripten_glGetUniformiv,emscripten_glGetVertexAttribPointerv:_emscripten_glGetVertexAttribPointerv,emscripten_glGetVertexAttribfv:_emscripten_glGetVertexAttribfv,emscripten_glGetVertexAttribiv:_emscripten_glGetVertexAttribiv,emscripten_glHint:_emscripten_glHint,emscripten_glIsBuffer:_emscripten_glIsBuffer,emscripten_glIsEnabled:_emscripten_glIsEnabled,emscripten_glIsFramebuffer:_emscripten_glIsFramebuffer,emscripten_glIsProgram:_emscripten_glIsProgram,emscripten_glIsQueryEXT:_emscripten_glIsQueryEXT,emscripten_glIsRenderbuffer:_emscripten_glIsRenderbuffer,emscripten_glIsShader:_emscripten_glIsShader,emscripten_glIsTexture:_emscripten_glIsTexture,emscripten_glIsVertexArray:_emscripten_glIsVertexArray,emscripten_glIsVertexArrayOES:_emscripten_glIsVertexArrayOES,emscripten_glLineWidth:_emscripten_glLineWidth,emscripten_glLinkProgram:_emscripten_glLinkProgram,emscripten_glLoadIdentity:_emscripten_glLoadIdentity,emscripten_glMatrixMode:_emscripten_glMatrixMode,emscripten_glMultiDrawArrays:_emscripten_glMultiDrawArrays,emscripten_glMultiDrawArraysANGLE:_emscripten_glMultiDrawArraysANGLE,emscripten_glMultiDrawArraysInstancedANGLE:_emscripten_glMultiDrawArraysInstancedANGLE,emscripten_glMultiDrawArraysInstancedWEBGL:_emscripten_glMultiDrawArraysInstancedWEBGL,emscripten_glMultiDrawArraysWEBGL:_emscripten_glMultiDrawArraysWEBGL,emscripten_glMultiDrawElements:_emscripten_glMultiDrawElements,emscripten_glMultiDrawElementsANGLE:_emscripten_glMultiDrawElementsANGLE,emscripten_glMultiDrawElementsInstancedANGLE:_emscripten_glMultiDrawElementsInstancedANGLE,emscripten_glMultiDrawElementsInstancedWEBGL:_emscripten_glMultiDrawElementsInstancedWEBGL,emscripten_glMultiDrawElementsWEBGL:_emscripten_glMultiDrawElementsWEBGL,emscripten_glPixelStorei:_emscripten_glPixelStorei,emscripten_glPolygonModeWEBGL:_emscripten_glPolygonModeWEBGL,emscripten_glPolygonOffset:_emscripten_glPolygonOffset,emscripten_glPolygonOffsetClampEXT:_emscripten_glPolygonOffsetClampEXT,emscripten_glQueryCounterEXT:_emscripten_glQueryCounterEXT,emscripten_glReadPixels:_emscripten_glReadPixels,emscripten_glReleaseShaderCompiler:_emscripten_glReleaseShaderCompiler,emscripten_glRenderbufferStorage:_emscripten_glRenderbufferStorage,emscripten_glSampleCoverage:_emscripten_glSampleCoverage,emscripten_glScissor:_emscripten_glScissor,emscripten_glShaderBinary:_emscripten_glShaderBinary,emscripten_glShaderSource:_emscripten_glShaderSource,emscripten_glStencilFunc:_emscripten_glStencilFunc,emscripten_glStencilFuncSeparate:_emscripten_glStencilFuncSeparate,emscripten_glStencilMask:_emscripten_glStencilMask,emscripten_glStencilMaskSeparate:_emscripten_glStencilMaskSeparate,emscripten_glStencilOp:_emscripten_glStencilOp,emscripten_glStencilOpSeparate:_emscripten_glStencilOpSeparate,emscripten_glTexImage2D:_emscripten_glTexImage2D,emscripten_glTexParameterf:_emscripten_glTexParameterf,emscripten_glTexParameterfv:_emscripten_glTexParameterfv,emscripten_glTexParameteri:_emscripten_glTexParameteri,emscripten_glTexParameteriv:_emscripten_glTexParameteriv,emscripten_glTexSubImage2D:_emscripten_glTexSubImage2D,emscripten_glUniform1f:_emscripten_glUniform1f,emscripten_glUniform1fv:_emscripten_glUniform1fv,emscripten_glUniform1i:_emscripten_glUniform1i,emscripten_glUniform1iv:_emscripten_glUniform1iv,emscripten_glUniform2f:_emscripten_glUniform2f,emscripten_glUniform2fv:_emscripten_glUniform2fv,emscripten_glUniform2i:_emscripten_glUniform2i,emscripten_glUniform2iv:_emscripten_glUniform2iv,emscripten_glUniform3f:_emscripten_glUniform3f,emscripten_glUniform3fv:_emscripten_glUniform3fv,emscripten_glUniform3i:_emscripten_glUniform3i,emscripten_glUniform3iv:_emscripten_glUniform3iv,emscripten_glUniform4f:_emscripten_glUniform4f,emscripten_glUniform4fv:_emscripten_glUniform4fv,emscripten_glUniform4i:_emscripten_glUniform4i,emscripten_glUniform4iv:_emscripten_glUniform4iv,emscripten_glUniformMatrix2fv:_emscripten_glUniformMatrix2fv,emscripten_glUniformMatrix3fv:_emscripten_glUniformMatrix3fv,emscripten_glUniformMatrix4fv:_emscripten_glUniformMatrix4fv,emscripten_glUseProgram:_emscripten_glUseProgram,emscripten_glValidateProgram:_emscripten_glValidateProgram,emscripten_glVertexAttrib1f:_emscripten_glVertexAttrib1f,emscripten_glVertexAttrib1fv:_emscripten_glVertexAttrib1fv,emscripten_glVertexAttrib2f:_emscripten_glVertexAttrib2f,emscripten_glVertexAttrib2fv:_emscripten_glVertexAttrib2fv,emscripten_glVertexAttrib3f:_emscripten_glVertexAttrib3f,emscripten_glVertexAttrib3fv:_emscripten_glVertexAttrib3fv,emscripten_glVertexAttrib4f:_emscripten_glVertexAttrib4f,emscripten_glVertexAttrib4fv:_emscripten_glVertexAttrib4fv,emscripten_glVertexAttribDivisor:_emscripten_glVertexAttribDivisor,emscripten_glVertexAttribDivisorANGLE:_emscripten_glVertexAttribDivisorANGLE,emscripten_glVertexAttribDivisorARB:_emscripten_glVertexAttribDivisorARB,emscripten_glVertexAttribDivisorEXT:_emscripten_glVertexAttribDivisorEXT,emscripten_glVertexAttribDivisorNV:_emscripten_glVertexAttribDivisorNV,emscripten_glVertexAttribPointer:_emscripten_glVertexAttribPointer,emscripten_glVertexPointer:_emscripten_glVertexPointer,emscripten_glViewport:_emscripten_glViewport,emscripten_has_asyncify:_emscripten_has_asyncify,emscripten_hide_mouse:_emscripten_hide_mouse,emscripten_html5_remove_all_event_listeners:_emscripten_html5_remove_all_event_listeners,emscripten_idb_async_clear:_emscripten_idb_async_clear,emscripten_idb_async_delete:_emscripten_idb_async_delete,emscripten_idb_async_exists:_emscripten_idb_async_exists,emscripten_idb_async_load:_emscripten_idb_async_load,emscripten_idb_async_store:_emscripten_idb_async_store,emscripten_idb_clear:_emscripten_idb_clear,emscripten_idb_delete:_emscripten_idb_delete,emscripten_idb_exists:_emscripten_idb_exists,emscripten_idb_load:_emscripten_idb_load,emscripten_idb_store:_emscripten_idb_store,emscripten_is_main_browser_thread:_emscripten_is_main_browser_thread,emscripten_is_webgl_context_lost:_emscripten_is_webgl_context_lost,emscripten_lock_orientation:_emscripten_lock_orientation,emscripten_log:_emscripten_log,emscripten_math_acos:_emscripten_math_acos,emscripten_math_acosh:_emscripten_math_acosh,emscripten_math_asin:_emscripten_math_asin,emscripten_math_asinh:_emscripten_math_asinh,emscripten_math_atan:_emscripten_math_atan,emscripten_math_atan2:_emscripten_math_atan2,emscripten_math_atanh:_emscripten_math_atanh,emscripten_math_cbrt:_emscripten_math_cbrt,emscripten_math_cos:_emscripten_math_cos,emscripten_math_cosh:_emscripten_math_cosh,emscripten_math_exp:_emscripten_math_exp,emscripten_math_expm1:_emscripten_math_expm1,emscripten_math_fmod:_emscripten_math_fmod,emscripten_math_hypot:_emscripten_math_hypot,emscripten_math_log:_emscripten_math_log,emscripten_math_log10:_emscripten_math_log10,emscripten_math_log1p:_emscripten_math_log1p,emscripten_math_log2:_emscripten_math_log2,emscripten_math_pow:_emscripten_math_pow,emscripten_math_random:_emscripten_math_random,emscripten_math_round:_emscripten_math_round,emscripten_math_sign:_emscripten_math_sign,emscripten_math_sin:_emscripten_math_sin,emscripten_math_sinh:_emscripten_math_sinh,emscripten_math_sqrt:_emscripten_math_sqrt,emscripten_math_tan:_emscripten_math_tan,emscripten_math_tanh:_emscripten_math_tanh,emscripten_notify_memory_growth:_emscripten_notify_memory_growth,emscripten_out:_emscripten_out,emscripten_outn:_emscripten_outn,emscripten_pause_main_loop:_emscripten_pause_main_loop,emscripten_pc_get_column:_emscripten_pc_get_column,emscripten_pc_get_file:_emscripten_pc_get_file,emscripten_pc_get_function:_emscripten_pc_get_function,emscripten_pc_get_line:_emscripten_pc_get_line,emscripten_performance_now:_emscripten_performance_now,emscripten_print_double:_emscripten_print_double,emscripten_promise_all:_emscripten_promise_all,emscripten_promise_all_settled:_emscripten_promise_all_settled,emscripten_promise_any:_emscripten_promise_any,emscripten_promise_await:_emscripten_promise_await,emscripten_promise_create:_emscripten_promise_create,emscripten_promise_destroy:_emscripten_promise_destroy,emscripten_promise_race:_emscripten_promise_race,emscripten_promise_resolve:_emscripten_promise_resolve,emscripten_promise_then:_emscripten_promise_then,emscripten_random:_emscripten_random,emscripten_request_animation_frame:_emscripten_request_animation_frame,emscripten_request_animation_frame_loop:_emscripten_request_animation_frame_loop,emscripten_request_fullscreen:_emscripten_request_fullscreen,emscripten_request_fullscreen_strategy:_emscripten_request_fullscreen_strategy,emscripten_request_pointerlock:_emscripten_request_pointerlock,emscripten_resize_heap:_emscripten_resize_heap,emscripten_resume_main_loop:_emscripten_resume_main_loop,emscripten_return_address:_emscripten_return_address,emscripten_run_preload_plugins:_emscripten_run_preload_plugins,emscripten_run_preload_plugins_data:_emscripten_run_preload_plugins_data,emscripten_run_script:_emscripten_run_script,emscripten_run_script_int:_emscripten_run_script_int,emscripten_run_script_string:_emscripten_run_script_string,emscripten_runtime_keepalive_check:_emscripten_runtime_keepalive_check,emscripten_runtime_keepalive_pop:_emscripten_runtime_keepalive_pop,emscripten_runtime_keepalive_push:_emscripten_runtime_keepalive_push,emscripten_sample_gamepad_data:_emscripten_sample_gamepad_data,emscripten_scan_registers:_emscripten_scan_registers,emscripten_set_batterychargingchange_callback_on_thread:_emscripten_set_batterychargingchange_callback_on_thread,emscripten_set_batterylevelchange_callback_on_thread:_emscripten_set_batterylevelchange_callback_on_thread,emscripten_set_beforeunload_callback_on_thread:_emscripten_set_beforeunload_callback_on_thread,emscripten_set_blur_callback_on_thread:_emscripten_set_blur_callback_on_thread,emscripten_set_canvas_element_size:_emscripten_set_canvas_element_size,emscripten_set_canvas_size:_emscripten_set_canvas_size,emscripten_set_click_callback_on_thread:_emscripten_set_click_callback_on_thread,emscripten_set_dblclick_callback_on_thread:_emscripten_set_dblclick_callback_on_thread,emscripten_set_devicemotion_callback_on_thread:_emscripten_set_devicemotion_callback_on_thread,emscripten_set_deviceorientation_callback_on_thread:_emscripten_set_deviceorientation_callback_on_thread,emscripten_set_element_css_size:_emscripten_set_element_css_size,emscripten_set_focus_callback_on_thread:_emscripten_set_focus_callback_on_thread,emscripten_set_focusin_callback_on_thread:_emscripten_set_focusin_callback_on_thread,emscripten_set_focusout_callback_on_thread:_emscripten_set_focusout_callback_on_thread,emscripten_set_fullscreenchange_callback_on_thread:_emscripten_set_fullscreenchange_callback_on_thread,emscripten_set_gamepadconnected_callback_on_thread:_emscripten_set_gamepadconnected_callback_on_thread,emscripten_set_gamepaddisconnected_callback_on_thread:_emscripten_set_gamepaddisconnected_callback_on_thread,emscripten_set_immediate:_emscripten_set_immediate,emscripten_set_immediate_loop:_emscripten_set_immediate_loop,emscripten_set_interval:_emscripten_set_interval,emscripten_set_keydown_callback_on_thread:_emscripten_set_keydown_callback_on_thread,emscripten_set_keypress_callback_on_thread:_emscripten_set_keypress_callback_on_thread,emscripten_set_keyup_callback_on_thread:_emscripten_set_keyup_callback_on_thread,emscripten_set_main_loop:_emscripten_set_main_loop,emscripten_set_main_loop_arg:_emscripten_set_main_loop_arg,emscripten_set_main_loop_expected_blockers:_emscripten_set_main_loop_expected_blockers,emscripten_set_main_loop_timing:_emscripten_set_main_loop_timing,emscripten_set_mousedown_callback_on_thread:_emscripten_set_mousedown_callback_on_thread,emscripten_set_mouseenter_callback_on_thread:_emscripten_set_mouseenter_callback_on_thread,emscripten_set_mouseleave_callback_on_thread:_emscripten_set_mouseleave_callback_on_thread,emscripten_set_mousemove_callback_on_thread:_emscripten_set_mousemove_callback_on_thread,emscripten_set_mouseout_callback_on_thread:_emscripten_set_mouseout_callback_on_thread,emscripten_set_mouseover_callback_on_thread:_emscripten_set_mouseover_callback_on_thread,emscripten_set_mouseup_callback_on_thread:_emscripten_set_mouseup_callback_on_thread,emscripten_set_orientationchange_callback_on_thread:_emscripten_set_orientationchange_callback_on_thread,emscripten_set_pointerlockchange_callback_on_thread:_emscripten_set_pointerlockchange_callback_on_thread,emscripten_set_pointerlockerror_callback_on_thread:_emscripten_set_pointerlockerror_callback_on_thread,emscripten_set_resize_callback_on_thread:_emscripten_set_resize_callback_on_thread,emscripten_set_scroll_callback_on_thread:_emscripten_set_scroll_callback_on_thread,emscripten_set_socket_close_callback:_emscripten_set_socket_close_callback,emscripten_set_socket_connection_callback:_emscripten_set_socket_connection_callback,emscripten_set_socket_error_callback:_emscripten_set_socket_error_callback,emscripten_set_socket_listen_callback:_emscripten_set_socket_listen_callback,emscripten_set_socket_message_callback:_emscripten_set_socket_message_callback,emscripten_set_socket_open_callback:_emscripten_set_socket_open_callback,emscripten_set_timeout:_emscripten_set_timeout,emscripten_set_timeout_loop:_emscripten_set_timeout_loop,emscripten_set_touchcancel_callback_on_thread:_emscripten_set_touchcancel_callback_on_thread,emscripten_set_touchend_callback_on_thread:_emscripten_set_touchend_callback_on_thread,emscripten_set_touchmove_callback_on_thread:_emscripten_set_touchmove_callback_on_thread,emscripten_set_touchstart_callback_on_thread:_emscripten_set_touchstart_callback_on_thread,emscripten_set_visibilitychange_callback_on_thread:_emscripten_set_visibilitychange_callback_on_thread,emscripten_set_webglcontextlost_callback_on_thread:_emscripten_set_webglcontextlost_callback_on_thread,emscripten_set_webglcontextrestored_callback_on_thread:_emscripten_set_webglcontextrestored_callback_on_thread,emscripten_set_wheel_callback_on_thread:_emscripten_set_wheel_callback_on_thread,emscripten_set_window_title:_emscripten_set_window_title,emscripten_sleep:_emscripten_sleep,emscripten_stack_snapshot:_emscripten_stack_snapshot,emscripten_stack_unwind_buffer:_emscripten_stack_unwind_buffer,emscripten_supports_offscreencanvas:_emscripten_supports_offscreencanvas,emscripten_throw_number:_emscripten_throw_number,emscripten_throw_string:_emscripten_throw_string,emscripten_unlock_orientation:_emscripten_unlock_orientation,emscripten_unwind_to_js_event_loop:_emscripten_unwind_to_js_event_loop,emscripten_vibrate:_emscripten_vibrate,emscripten_vibrate_pattern:_emscripten_vibrate_pattern,emscripten_webgl_commit_frame:_emscripten_webgl_commit_frame,emscripten_webgl_create_context:_emscripten_webgl_create_context,emscripten_webgl_destroy_context:_emscripten_webgl_destroy_context,emscripten_webgl_do_commit_frame:_emscripten_webgl_do_commit_frame,emscripten_webgl_do_create_context:_emscripten_webgl_do_create_context,emscripten_webgl_do_get_current_context:_emscripten_webgl_do_get_current_context,emscripten_webgl_enable_ANGLE_instanced_arrays:_emscripten_webgl_enable_ANGLE_instanced_arrays,emscripten_webgl_enable_EXT_clip_control:_emscripten_webgl_enable_EXT_clip_control,emscripten_webgl_enable_EXT_polygon_offset_clamp:_emscripten_webgl_enable_EXT_polygon_offset_clamp,emscripten_webgl_enable_OES_vertex_array_object:_emscripten_webgl_enable_OES_vertex_array_object,emscripten_webgl_enable_WEBGL_draw_buffers:_emscripten_webgl_enable_WEBGL_draw_buffers,emscripten_webgl_enable_WEBGL_multi_draw:_emscripten_webgl_enable_WEBGL_multi_draw,emscripten_webgl_enable_WEBGL_polygon_mode:_emscripten_webgl_enable_WEBGL_polygon_mode,emscripten_webgl_enable_extension:_emscripten_webgl_enable_extension,emscripten_webgl_get_context_attributes:_emscripten_webgl_get_context_attributes,emscripten_webgl_get_current_context:_emscripten_webgl_get_current_context,emscripten_webgl_get_drawing_buffer_size:_emscripten_webgl_get_drawing_buffer_size,emscripten_webgl_get_parameter_d:_emscripten_webgl_get_parameter_d,emscripten_webgl_get_parameter_i64v:_emscripten_webgl_get_parameter_i64v,emscripten_webgl_get_parameter_o:_emscripten_webgl_get_parameter_o,emscripten_webgl_get_parameter_utf8:_emscripten_webgl_get_parameter_utf8,emscripten_webgl_get_parameter_v:_emscripten_webgl_get_parameter_v,emscripten_webgl_get_program_info_log_utf8:_emscripten_webgl_get_program_info_log_utf8,emscripten_webgl_get_program_parameter_d:_emscripten_webgl_get_program_parameter_d,emscripten_webgl_get_shader_info_log_utf8:_emscripten_webgl_get_shader_info_log_utf8,emscripten_webgl_get_shader_parameter_d:_emscripten_webgl_get_shader_parameter_d,emscripten_webgl_get_shader_source_utf8:_emscripten_webgl_get_shader_source_utf8,emscripten_webgl_get_supported_extensions:_emscripten_webgl_get_supported_extensions,emscripten_webgl_get_uniform_d:_emscripten_webgl_get_uniform_d,emscripten_webgl_get_uniform_v:_emscripten_webgl_get_uniform_v,emscripten_webgl_get_vertex_attrib_d:_emscripten_webgl_get_vertex_attrib_d,emscripten_webgl_get_vertex_attrib_o:_emscripten_webgl_get_vertex_attrib_o,emscripten_webgl_get_vertex_attrib_v:_emscripten_webgl_get_vertex_attrib_v,emscripten_webgl_make_context_current:_emscripten_webgl_make_context_current,emscripten_wget_data:_emscripten_wget_data,endprotoent:_endprotoent,environ_get:_environ_get,environ_sizes_get:_environ_sizes_get,exit:_exit,fd_close:_fd_close,fd_fdstat_get:_fd_fdstat_get,fd_pread:_fd_pread,fd_pwrite:_fd_pwrite,fd_read:_fd_read,fd_seek:_fd_seek,fd_sync:_fd_sync,fd_write:_fd_write,filledEllipseColor:_filledEllipseColor,filledEllipseRGBA:_filledEllipseRGBA,getaddrinfo:_getaddrinfo,getnameinfo:_getnameinfo,getprotobyname:_getprotobyname,getprotobynumber:_getprotobynumber,getprotoent:_getprotoent,glActiveTexture:_glActiveTexture,glAttachShader:_glAttachShader,glBegin:_glBegin,glBeginQueryEXT:_glBeginQueryEXT,glBindAttribLocation:_glBindAttribLocation,glBindBuffer:_glBindBuffer,glBindFramebuffer:_glBindFramebuffer,glBindRenderbuffer:_glBindRenderbuffer,glBindTexture:_glBindTexture,glBindVertexArray:_glBindVertexArray,glBindVertexArrayOES:_glBindVertexArrayOES,glBlendColor:_glBlendColor,glBlendEquation:_glBlendEquation,glBlendEquationSeparate:_glBlendEquationSeparate,glBlendFunc:_glBlendFunc,glBlendFuncSeparate:_glBlendFuncSeparate,glBufferData:_glBufferData,glBufferSubData:_glBufferSubData,glCheckFramebufferStatus:_glCheckFramebufferStatus,glClear:_glClear,glClearColor:_glClearColor,glClearDepth:_glClearDepth,glClearDepthf:_glClearDepthf,glClearStencil:_glClearStencil,glClipControlEXT:_glClipControlEXT,glColorMask:_glColorMask,glCompileShader:_glCompileShader,glCompressedTexImage2D:_glCompressedTexImage2D,glCompressedTexSubImage2D:_glCompressedTexSubImage2D,glCopyTexImage2D:_glCopyTexImage2D,glCopyTexSubImage2D:_glCopyTexSubImage2D,glCreateProgram:_glCreateProgram,glCreateShader:_glCreateShader,glCullFace:_glCullFace,glDeleteBuffers:_glDeleteBuffers,glDeleteFramebuffers:_glDeleteFramebuffers,glDeleteProgram:_glDeleteProgram,glDeleteQueriesEXT:_glDeleteQueriesEXT,glDeleteRenderbuffers:_glDeleteRenderbuffers,glDeleteShader:_glDeleteShader,glDeleteTextures:_glDeleteTextures,glDeleteVertexArrays:_glDeleteVertexArrays,glDeleteVertexArraysOES:_glDeleteVertexArraysOES,glDepthFunc:_glDepthFunc,glDepthMask:_glDepthMask,glDepthRange:_glDepthRange,glDepthRangef:_glDepthRangef,glDetachShader:_glDetachShader,glDisable:_glDisable,glDisableVertexAttribArray:_glDisableVertexAttribArray,glDrawArrays:_glDrawArrays,glDrawArraysInstanced:_glDrawArraysInstanced,glDrawArraysInstancedANGLE:_glDrawArraysInstancedANGLE,glDrawArraysInstancedARB:_glDrawArraysInstancedARB,glDrawArraysInstancedEXT:_glDrawArraysInstancedEXT,glDrawArraysInstancedNV:_glDrawArraysInstancedNV,glDrawBuffers:_glDrawBuffers,glDrawBuffersEXT:_glDrawBuffersEXT,glDrawBuffersWEBGL:_glDrawBuffersWEBGL,glDrawElements:_glDrawElements,glDrawElementsInstanced:_glDrawElementsInstanced,glDrawElementsInstancedANGLE:_glDrawElementsInstancedANGLE,glDrawElementsInstancedARB:_glDrawElementsInstancedARB,glDrawElementsInstancedEXT:_glDrawElementsInstancedEXT,glDrawElementsInstancedNV:_glDrawElementsInstancedNV,glEnable:_glEnable,glEnableVertexAttribArray:_glEnableVertexAttribArray,glEndQueryEXT:_glEndQueryEXT,glFinish:_glFinish,glFlush:_glFlush,glFramebufferRenderbuffer:_glFramebufferRenderbuffer,glFramebufferTexture2D:_glFramebufferTexture2D,glFrontFace:_glFrontFace,glGenBuffers:_glGenBuffers,glGenFramebuffers:_glGenFramebuffers,glGenQueriesEXT:_glGenQueriesEXT,glGenRenderbuffers:_glGenRenderbuffers,glGenTextures:_glGenTextures,glGenVertexArrays:_glGenVertexArrays,glGenVertexArraysOES:_glGenVertexArraysOES,glGenerateMipmap:_glGenerateMipmap,glGetActiveAttrib:_glGetActiveAttrib,glGetActiveUniform:_glGetActiveUniform,glGetAttachedShaders:_glGetAttachedShaders,glGetAttribLocation:_glGetAttribLocation,glGetBooleanv:_glGetBooleanv,glGetBufferParameteriv:_glGetBufferParameteriv,glGetError:_glGetError,glGetFloatv:_glGetFloatv,glGetFramebufferAttachmentParameteriv:_glGetFramebufferAttachmentParameteriv,glGetIntegerv:_glGetIntegerv,glGetProgramInfoLog:_glGetProgramInfoLog,glGetProgramiv:_glGetProgramiv,glGetQueryObjecti64vEXT:_glGetQueryObjecti64vEXT,glGetQueryObjectivEXT:_glGetQueryObjectivEXT,glGetQueryObjectui64vEXT:_glGetQueryObjectui64vEXT,glGetQueryObjectuivEXT:_glGetQueryObjectuivEXT,glGetQueryivEXT:_glGetQueryivEXT,glGetRenderbufferParameteriv:_glGetRenderbufferParameteriv,glGetShaderInfoLog:_glGetShaderInfoLog,glGetShaderPrecisionFormat:_glGetShaderPrecisionFormat,glGetShaderSource:_glGetShaderSource,glGetShaderiv:_glGetShaderiv,glGetString:_glGetString,glGetTexParameterfv:_glGetTexParameterfv,glGetTexParameteriv:_glGetTexParameteriv,glGetUniformLocation:_glGetUniformLocation,glGetUniformfv:_glGetUniformfv,glGetUniformiv:_glGetUniformiv,glGetVertexAttribPointerv:_glGetVertexAttribPointerv,glGetVertexAttribfv:_glGetVertexAttribfv,glGetVertexAttribiv:_glGetVertexAttribiv,glHint:_glHint,glIsBuffer:_glIsBuffer,glIsEnabled:_glIsEnabled,glIsFramebuffer:_glIsFramebuffer,glIsProgram:_glIsProgram,glIsQueryEXT:_glIsQueryEXT,glIsRenderbuffer:_glIsRenderbuffer,glIsShader:_glIsShader,glIsTexture:_glIsTexture,glIsVertexArray:_glIsVertexArray,glIsVertexArrayOES:_glIsVertexArrayOES,glLineWidth:_glLineWidth,glLinkProgram:_glLinkProgram,glLoadIdentity:_glLoadIdentity,glMatrixMode:_glMatrixMode,glMultiDrawArrays:_glMultiDrawArrays,glMultiDrawArraysANGLE:_glMultiDrawArraysANGLE,glMultiDrawArraysInstancedANGLE:_glMultiDrawArraysInstancedANGLE,glMultiDrawArraysInstancedWEBGL:_glMultiDrawArraysInstancedWEBGL,glMultiDrawArraysWEBGL:_glMultiDrawArraysWEBGL,glMultiDrawElements:_glMultiDrawElements,glMultiDrawElementsANGLE:_glMultiDrawElementsANGLE,glMultiDrawElementsInstancedANGLE:_glMultiDrawElementsInstancedANGLE,glMultiDrawElementsInstancedWEBGL:_glMultiDrawElementsInstancedWEBGL,glMultiDrawElementsWEBGL:_glMultiDrawElementsWEBGL,glPixelStorei:_glPixelStorei,glPolygonModeWEBGL:_glPolygonModeWEBGL,glPolygonOffset:_glPolygonOffset,glPolygonOffsetClampEXT:_glPolygonOffsetClampEXT,glQueryCounterEXT:_glQueryCounterEXT,glReadPixels:_glReadPixels,glReleaseShaderCompiler:_glReleaseShaderCompiler,glRenderbufferStorage:_glRenderbufferStorage,glSampleCoverage:_glSampleCoverage,glScissor:_glScissor,glShaderBinary:_glShaderBinary,glShaderSource:_glShaderSource,glStencilFunc:_glStencilFunc,glStencilFuncSeparate:_glStencilFuncSeparate,glStencilMask:_glStencilMask,glStencilMaskSeparate:_glStencilMaskSeparate,glStencilOp:_glStencilOp,glStencilOpSeparate:_glStencilOpSeparate,glTexImage2D:_glTexImage2D,glTexParameterf:_glTexParameterf,glTexParameterfv:_glTexParameterfv,glTexParameteri:_glTexParameteri,glTexParameteriv:_glTexParameteriv,glTexSubImage2D:_glTexSubImage2D,glUniform1f:_glUniform1f,glUniform1fv:_glUniform1fv,glUniform1i:_glUniform1i,glUniform1iv:_glUniform1iv,glUniform2f:_glUniform2f,glUniform2fv:_glUniform2fv,glUniform2i:_glUniform2i,glUniform2iv:_glUniform2iv,glUniform3f:_glUniform3f,glUniform3fv:_glUniform3fv,glUniform3i:_glUniform3i,glUniform3iv:_glUniform3iv,glUniform4f:_glUniform4f,glUniform4fv:_glUniform4fv,glUniform4i:_glUniform4i,glUniform4iv:_glUniform4iv,glUniformMatrix2fv:_glUniformMatrix2fv,glUniformMatrix3fv:_glUniformMatrix3fv,glUniformMatrix4fv:_glUniformMatrix4fv,glUseProgram:_glUseProgram,glValidateProgram:_glValidateProgram,glVertexAttrib1f:_glVertexAttrib1f,glVertexAttrib1fv:_glVertexAttrib1fv,glVertexAttrib2f:_glVertexAttrib2f,glVertexAttrib2fv:_glVertexAttrib2fv,glVertexAttrib3f:_glVertexAttrib3f,glVertexAttrib3fv:_glVertexAttrib3fv,glVertexAttrib4f:_glVertexAttrib4f,glVertexAttrib4fv:_glVertexAttrib4fv,glVertexAttribDivisor:_glVertexAttribDivisor,glVertexAttribDivisorANGLE:_glVertexAttribDivisorANGLE,glVertexAttribDivisorARB:_glVertexAttribDivisorARB,glVertexAttribDivisorEXT:_glVertexAttribDivisorEXT,glVertexAttribDivisorNV:_glVertexAttribDivisorNV,glVertexAttribPointer:_glVertexAttribPointer,glVertexPointer:_glVertexPointer,glViewport:_glViewport,glewGetErrorString:_glewGetErrorString,glewGetExtension:_glewGetExtension,glewGetString:_glewGetString,glewInit:_glewInit,glewIsSupported:_glewIsSupported,glutCreateWindow:_glutCreateWindow,glutDestroyWindow:_glutDestroyWindow,glutDisplayFunc:_glutDisplayFunc,glutFullScreen:_glutFullScreen,glutGet:_glutGet,glutGetModifiers:_glutGetModifiers,glutIdleFunc:_glutIdleFunc,glutInit:_glutInit,glutInitDisplayMode:_glutInitDisplayMode,glutInitWindowPosition:_glutInitWindowPosition,glutInitWindowSize:_glutInitWindowSize,glutKeyboardFunc:_glutKeyboardFunc,glutKeyboardUpFunc:_glutKeyboardUpFunc,glutMainLoop:_glutMainLoop,glutMotionFunc:_glutMotionFunc,glutMouseFunc:_glutMouseFunc,glutPassiveMotionFunc:_glutPassiveMotionFunc,glutPositionWindow:_glutPositionWindow,glutPostRedisplay:_glutPostRedisplay,glutReshapeFunc:_glutReshapeFunc,glutReshapeWindow:_glutReshapeWindow,glutSetCursor:_glutSetCursor,glutSpecialFunc:_glutSpecialFunc,glutSpecialUpFunc:_glutSpecialUpFunc,glutSwapBuffers:_glutSwapBuffers,glutTimerFunc:_glutTimerFunc,invoke_dd,invoke_di,invoke_dii,invoke_diii,invoke_diiid,invoke_diiii,invoke_diiiid,invoke_diiiiid,invoke_diiji,invoke_dij,invoke_dijjjj,invoke_dijjjjij,invoke_dj,invoke_ff,invoke_fi,invoke_fiii,invoke_fiiii,invoke_fiiji,invoke_fijjjj,invoke_fijjjjij,invoke_i,invoke_id,invoke_idd,invoke_idi,invoke_idii,invoke_idiii,invoke_idiiii,invoke_if,invoke_iff,invoke_ifi,invoke_ifii,invoke_ii,invoke_iid,invoke_iidi,invoke_iidii,invoke_iidiii,invoke_iidiiii,invoke_iidj,invoke_iif,invoke_iifii,invoke_iii,invoke_iiid,invoke_iiidi,invoke_iiidj,invoke_iiii,invoke_iiiid,invoke_iiiidjj,invoke_iiiii,invoke_iiiiid,invoke_iiiiii,invoke_iiiiiid,invoke_iiiiiii,invoke_iiiiiiii,invoke_iiiiiiiii,invoke_iiiiiiiiii,invoke_iiiiiiiiiii,invoke_iiiiiiiiiiii,invoke_iiiiiiiiiiiii,invoke_iiiiiiiiiiiiii,invoke_iiiiiiiiiiiiiiiii,invoke_iiiiiiiiiiiiiiiiii,invoke_iiiiiiiiiijii,invoke_iiiiiiiiiijiiiiiii,invoke_iiiiiiiiiji,invoke_iiiiiiiij,invoke_iiiiiiij,invoke_iiiiiiiji,invoke_iiiiiiijii,invoke_iiiiiiijj,invoke_iiiiiiijjjjjjii,invoke_iiiiiij,invoke_iiiiiiji,invoke_iiiiiijji,invoke_iiiiiijjiiiiiii,invoke_iiiiiijjiijjji,invoke_iiiiij,invoke_iiiiiji,invoke_iiiiijii,invoke_iiiiijiii,invoke_iiiiijiiii,invoke_iiiiijij,invoke_iiiiijj,invoke_iiiij,invoke_iiiiji,invoke_iiiijii,invoke_iiiijiii,invoke_iiiijiijjiii,invoke_iiiijj,invoke_iiiijji,invoke_iiiijjii,invoke_iiiijjiii,invoke_iiiijjj,invoke_iiiijjjj,invoke_iiij,invoke_iiiji,invoke_iiijii,invoke_iiijiii,invoke_iiijiiiii,invoke_iiijiiiij,invoke_iiijiiiijj,invoke_iiijiiij,invoke_iiijiiiji,invoke_iiijiiijj,invoke_iiijiij,invoke_iiijiijj,invoke_iiijij,invoke_iiijijj,invoke_iiijj,invoke_iiijji,invoke_iiijjii,invoke_iiijjiii,invoke_iiijjijj,invoke_iiijjijjiii,invoke_iiijjj,invoke_iiijjji,invoke_iiijjjj,invoke_iij,invoke_iiji,invoke_iijii,invoke_iijiii,invoke_iijiiii,invoke_iijiiiiiij,invoke_iijiiijj,invoke_iijiiji,invoke_iijiijj,invoke_iijij,invoke_iijiji,invoke_iijj,invoke_iijji,invoke_iijjii,invoke_iijjiii,invoke_iijjiiiii,invoke_iijjj,invoke_iijjjj,invoke_ij,invoke_iji,invoke_ijii,invoke_ijji,invoke_ijjiii,invoke_ijjj,invoke_j,invoke_jd,invoke_jf,invoke_ji,invoke_jii,invoke_jiii,invoke_jiiii,invoke_jiiiii,invoke_jiiiiii,invoke_jiiiiiii,invoke_jiiiiijiiii,invoke_jiiiij,invoke_jiiiiji,invoke_jiiiijii,invoke_jiiiijiiii,invoke_jiiiijiiiii,invoke_jiiij,invoke_jiiiji,invoke_jiiijii,invoke_jiiijiii,invoke_jiiijiijiii,invoke_jiiijj,invoke_jiiijjj,invoke_jiij,invoke_jiiji,invoke_jiijiiii,invoke_jiijj,invoke_jiijjjii,invoke_jij,invoke_jiji,invoke_jijij,invoke_jijj,invoke_jijjij,invoke_jijjjj,invoke_jj,invoke_jji,invoke_jjj,invoke_jjjji,invoke_jjjjjjd,invoke_v,invoke_vi,invoke_vid,invoke_viddddi,invoke_vidi,invoke_vidii,invoke_vif,invoke_vifi,invoke_vifii,invoke_vii,invoke_viid,invoke_viiddji,invoke_viif,invoke_viii,invoke_viiid,invoke_viiidi,invoke_viiidii,invoke_viiifi,invoke_viiii,invoke_viiiii,invoke_viiiiii,invoke_viiiiiii,invoke_viiiiiiii,invoke_viiiiiiiii,invoke_viiiiiiiiii,invoke_viiiiiiiiiii,invoke_viiiiiiiiiiii,invoke_viiiiiiiiiiiii,invoke_viiiiiiiiiiiiiii,invoke_viiiiiiij,invoke_viiiiiiijjjji,invoke_viiiiiij,invoke_viiiiiijii,invoke_viiiiij,invoke_viiiiiji,invoke_viiiiijii,invoke_viiiiijiii,invoke_viiiiijiiii,invoke_viiiiijiijii,invoke_viiiiijj,invoke_viiiiijjii,invoke_viiiiijjji,invoke_viiiij,invoke_viiiiji,invoke_viiiijii,invoke_viiiijiii,invoke_viiiijiiii,invoke_viiiijiiiii,invoke_viiiijiiiiiiii,invoke_viiiijiijjii,invoke_viiiijijji,invoke_viiiijijjj,invoke_viiiijj,invoke_viiiijji,invoke_viiiijjij,invoke_viiij,invoke_viiijd,invoke_viiiji,invoke_viiijii,invoke_viiijiii,invoke_viiijiiii,invoke_viiijiiiijjj,invoke_viiijiiijii,invoke_viiijiij,invoke_viiijij,invoke_viiijijij,invoke_viiijijj,invoke_viiijijjj,invoke_viiijj,invoke_viiijji,invoke_viiijjii,invoke_viiijjiii,invoke_viiijjij,invoke_viiijjijj,invoke_viiijjj,invoke_viiijjjj,invoke_viij,invoke_viijd,invoke_viiji,invoke_viijii,invoke_viijiii,invoke_viijiiii,invoke_viijiiiii,invoke_viijiiiiii,invoke_viijiiiij,invoke_viijiiij,invoke_viijiiijj,invoke_viijiij,invoke_viijiiji,invoke_viijiijj,invoke_viijiijji,invoke_viijij,invoke_viijiji,invoke_viijijiiii,invoke_viijijiiiijjj,invoke_viijijj,invoke_viijj,invoke_viijji,invoke_viijjii,invoke_viijjj,invoke_viijjji,invoke_viijjjji,invoke_vij,invoke_viji,invoke_vijii,invoke_vijiii,invoke_vijiiii,invoke_vijiiiii,invoke_vijiiiiii,invoke_vijiiiiji,invoke_vijiiiji,invoke_vijiij,invoke_vijiji,invoke_vijijiiiijjj,invoke_vijijiij,invoke_vijijj,invoke_vijijjji,invoke_vijj,invoke_vijji,invoke_vijjiii,invoke_vijjij,invoke_vijjj,invoke_vijjji,invoke_vijjjiiji,invoke_vijjjj,invoke_vj,invoke_vji,invoke_vjii,invoke_vjiii,invoke_vjiiii,invoke_vjiiij,invoke_vjjii,invoke_vjjijij,lineColor:_lineColor,lineRGBA:_lineRGBA,llvm_eh_typeid_for:_llvm_eh_typeid_for,memory:wasmMemory,pixelRGBA:_pixelRGBA,proc_exit:_proc_exit,pthread_kill:_pthread_kill,random_get:_random_get,rectangleColor:_rectangleColor,rectangleRGBA:_rectangleRGBA,rotozoomSurface:_rotozoomSurface,setNetworkCallback:_setNetworkCallback,setprotoent:_setprotoent,stackAlloc:_stackAlloc,stackRestore:_stackRestore,stackSave:_stackSave,strptime:_strptime,strptime_l:_strptime_l,uuid_clear:_uuid_clear,uuid_compare:_uuid_compare,uuid_copy:_uuid_copy,uuid_generate:_uuid_generate,uuid_is_null:_uuid_is_null,uuid_parse:_uuid_parse,uuid_type:_uuid_type,uuid_unparse:_uuid_unparse,uuid_unparse_lower:_uuid_unparse_lower,uuid_unparse_upper:_uuid_unparse_upper,uuid_variant:_uuid_variant,zoomSurface:_zoomSurface},wasmExports=createWasm(),__emval_coro_resume=(e,t)=>(__emval_coro_resume=wasmExports._emval_coro_resume)(e,t),_main=Module._main=(e,t)=>(_main=Module._main=wasmExports.main)(e,t),_duckdb_web_fs_glob_add_path=Module._duckdb_web_fs_glob_add_path=e=>(_duckdb_web_fs_glob_add_path=Module._duckdb_web_fs_glob_add_path=wasmExports.duckdb_web_fs_glob_add_path)(e),_duckdb_web_clear_response=Module._duckdb_web_clear_response=()=>(_duckdb_web_clear_response=Module._duckdb_web_clear_response=wasmExports.duckdb_web_clear_response)(),_duckdb_web_fail_with=Module._duckdb_web_fail_with=e=>(_duckdb_web_fail_with=Module._duckdb_web_fail_with=wasmExports.duckdb_web_fail_with)(e),_duckdb_web_reset=Module._duckdb_web_reset=e=>(_duckdb_web_reset=Module._duckdb_web_reset=wasmExports.duckdb_web_reset)(e),_duckdb_web_connect=Module._duckdb_web_connect=()=>(_duckdb_web_connect=Module._duckdb_web_connect=wasmExports.duckdb_web_connect)(),_duckdb_web_disconnect=Module._duckdb_web_disconnect=e=>(_duckdb_web_disconnect=Module._duckdb_web_disconnect=wasmExports.duckdb_web_disconnect)(e),_duckdb_web_flush_files=Module._duckdb_web_flush_files=()=>(_duckdb_web_flush_files=Module._duckdb_web_flush_files=wasmExports.duckdb_web_flush_files)(),_duckdb_web_flush_file=Module._duckdb_web_flush_file=e=>(_duckdb_web_flush_file=Module._duckdb_web_flush_file=wasmExports.duckdb_web_flush_file)(e),_duckdb_web_open=Module._duckdb_web_open=(e,t)=>(_duckdb_web_open=Module._duckdb_web_open=wasmExports.duckdb_web_open)(e,t),_duckdb_web_get_global_file_info=Module._duckdb_web_get_global_file_info=(e,t)=>(_duckdb_web_get_global_file_info=Module._duckdb_web_get_global_file_info=wasmExports.duckdb_web_get_global_file_info)(e,t),_duckdb_web_collect_file_stats=Module._duckdb_web_collect_file_stats=(e,t,r)=>(_duckdb_web_collect_file_stats=Module._duckdb_web_collect_file_stats=wasmExports.duckdb_web_collect_file_stats)(e,t,r),_duckdb_web_export_file_stats=Module._duckdb_web_export_file_stats=(e,t)=>(_duckdb_web_export_file_stats=Module._duckdb_web_export_file_stats=wasmExports.duckdb_web_export_file_stats)(e,t),_duckdb_web_fs_drop_file=Module._duckdb_web_fs_drop_file=(e,t)=>(_duckdb_web_fs_drop_file=Module._duckdb_web_fs_drop_file=wasmExports.duckdb_web_fs_drop_file)(e,t),_duckdb_web_fs_drop_files=Module._duckdb_web_fs_drop_files=e=>(_duckdb_web_fs_drop_files=Module._duckdb_web_fs_drop_files=wasmExports.duckdb_web_fs_drop_files)(e),_duckdb_web_fs_glob_file_infos=Module._duckdb_web_fs_glob_file_infos=(e,t)=>(_duckdb_web_fs_glob_file_infos=Module._duckdb_web_fs_glob_file_infos=wasmExports.duckdb_web_fs_glob_file_infos)(e,t),_duckdb_web_fs_get_file_info_by_id=Module._duckdb_web_fs_get_file_info_by_id=(e,t,r)=>(_duckdb_web_fs_get_file_info_by_id=Module._duckdb_web_fs_get_file_info_by_id=wasmExports.duckdb_web_fs_get_file_info_by_id)(e,t,r),_duckdb_web_fs_get_file_info_by_name=Module._duckdb_web_fs_get_file_info_by_name=(e,t,r)=>(_duckdb_web_fs_get_file_info_by_name=Module._duckdb_web_fs_get_file_info_by_name=wasmExports.duckdb_web_fs_get_file_info_by_name)(e,t,r),_duckdb_web_fs_register_file_url=Module._duckdb_web_fs_register_file_url=(e,t,r,i,n)=>(_duckdb_web_fs_register_file_url=Module._duckdb_web_fs_register_file_url=wasmExports.duckdb_web_fs_register_file_url)(e,t,r,i,n),_duckdb_web_fs_register_file_buffer=Module._duckdb_web_fs_register_file_buffer=(e,t,r,i)=>(_duckdb_web_fs_register_file_buffer=Module._duckdb_web_fs_register_file_buffer=wasmExports.duckdb_web_fs_register_file_buffer)(e,t,r,i),_duckdb_web_copy_file_to_buffer=Module._duckdb_web_copy_file_to_buffer=(e,t)=>(_duckdb_web_copy_file_to_buffer=Module._duckdb_web_copy_file_to_buffer=wasmExports.duckdb_web_copy_file_to_buffer)(e,t),_duckdb_web_copy_file_to_path=Module._duckdb_web_copy_file_to_path=(e,t,r)=>(_duckdb_web_copy_file_to_path=Module._duckdb_web_copy_file_to_path=wasmExports.duckdb_web_copy_file_to_path)(e,t,r),_duckdb_web_get_version=Module._duckdb_web_get_version=e=>(_duckdb_web_get_version=Module._duckdb_web_get_version=wasmExports.duckdb_web_get_version)(e),_duckdb_web_get_feature_flags=Module._duckdb_web_get_feature_flags=()=>(_duckdb_web_get_feature_flags=Module._duckdb_web_get_feature_flags=wasmExports.duckdb_web_get_feature_flags)(),_duckdb_web_tokenize=Module._duckdb_web_tokenize=(e,t)=>(_duckdb_web_tokenize=Module._duckdb_web_tokenize=wasmExports.duckdb_web_tokenize)(e,t),_duckdb_web_tokenize_buffer=Module._duckdb_web_tokenize_buffer=(e,t,r)=>(_duckdb_web_tokenize_buffer=Module._duckdb_web_tokenize_buffer=wasmExports.duckdb_web_tokenize_buffer)(e,t,r),_duckdb_web_udf_scalar_create=Module._duckdb_web_udf_scalar_create=(e,t,r)=>(_duckdb_web_udf_scalar_create=Module._duckdb_web_udf_scalar_create=wasmExports.duckdb_web_udf_scalar_create)(e,t,r),_duckdb_web_prepared_create=Module._duckdb_web_prepared_create=(e,t,r)=>(_duckdb_web_prepared_create=Module._duckdb_web_prepared_create=wasmExports.duckdb_web_prepared_create)(e,t,r),_duckdb_web_prepared_create_buffer=Module._duckdb_web_prepared_create_buffer=(e,t,r,i)=>(_duckdb_web_prepared_create_buffer=Module._duckdb_web_prepared_create_buffer=wasmExports.duckdb_web_prepared_create_buffer)(e,t,r,i),_duckdb_web_prepared_close=Module._duckdb_web_prepared_close=(e,t,r)=>(_duckdb_web_prepared_close=Module._duckdb_web_prepared_close=wasmExports.duckdb_web_prepared_close)(e,t,r),_duckdb_web_prepared_run=Module._duckdb_web_prepared_run=(e,t,r,i)=>(_duckdb_web_prepared_run=Module._duckdb_web_prepared_run=wasmExports.duckdb_web_prepared_run)(e,t,r,i),_duckdb_web_prepared_send=Module._duckdb_web_prepared_send=(e,t,r,i)=>(_duckdb_web_prepared_send=Module._duckdb_web_prepared_send=wasmExports.duckdb_web_prepared_send)(e,t,r,i),_duckdb_web_query_run=Module._duckdb_web_query_run=(e,t,r)=>(_duckdb_web_query_run=Module._duckdb_web_query_run=wasmExports.duckdb_web_query_run)(e,t,r),_duckdb_web_query_run_buffer=Module._duckdb_web_query_run_buffer=(e,t,r,i)=>(_duckdb_web_query_run_buffer=Module._duckdb_web_query_run_buffer=wasmExports.duckdb_web_query_run_buffer)(e,t,r,i),_duckdb_web_pending_query_start=Module._duckdb_web_pending_query_start=(e,t,r,i)=>(_duckdb_web_pending_query_start=Module._duckdb_web_pending_query_start=wasmExports.duckdb_web_pending_query_start)(e,t,r,i),_duckdb_web_pending_query_start_buffer=Module._duckdb_web_pending_query_start_buffer=(e,t,r,i,n)=>(_duckdb_web_pending_query_start_buffer=Module._duckdb_web_pending_query_start_buffer=wasmExports.duckdb_web_pending_query_start_buffer)(e,t,r,i,n),_duckdb_web_pending_query_poll=Module._duckdb_web_pending_query_poll=(e,t,r)=>(_duckdb_web_pending_query_poll=Module._duckdb_web_pending_query_poll=wasmExports.duckdb_web_pending_query_poll)(e,t,r),_duckdb_web_pending_query_cancel=Module._duckdb_web_pending_query_cancel=(e,t)=>(_duckdb_web_pending_query_cancel=Module._duckdb_web_pending_query_cancel=wasmExports.duckdb_web_pending_query_cancel)(e,t),_duckdb_web_query_fetch_results=Module._duckdb_web_query_fetch_results=(e,t)=>(_duckdb_web_query_fetch_results=Module._duckdb_web_query_fetch_results=wasmExports.duckdb_web_query_fetch_results)(e,t),_duckdb_web_get_tablenames=Module._duckdb_web_get_tablenames=(e,t,r)=>(_duckdb_web_get_tablenames=Module._duckdb_web_get_tablenames=wasmExports.duckdb_web_get_tablenames)(e,t,r),_duckdb_web_get_tablenames_buffer=Module._duckdb_web_get_tablenames_buffer=(e,t,r,i)=>(_duckdb_web_get_tablenames_buffer=Module._duckdb_web_get_tablenames_buffer=wasmExports.duckdb_web_get_tablenames_buffer)(e,t,r,i),_duckdb_web_insert_arrow_from_ipc_stream=Module._duckdb_web_insert_arrow_from_ipc_stream=(e,t,r,i,n)=>(_duckdb_web_insert_arrow_from_ipc_stream=Module._duckdb_web_insert_arrow_from_ipc_stream=wasmExports.duckdb_web_insert_arrow_from_ipc_stream)(e,t,r,i,n),_duckdb_web_insert_csv_from_path=Module._duckdb_web_insert_csv_from_path=(e,t,r,i)=>(_duckdb_web_insert_csv_from_path=Module._duckdb_web_insert_csv_from_path=wasmExports.duckdb_web_insert_csv_from_path)(e,t,r,i),_duckdb_web_insert_json_from_path=Module._duckdb_web_insert_json_from_path=(e,t,r,i)=>(_duckdb_web_insert_json_from_path=Module._duckdb_web_insert_json_from_path=wasmExports.duckdb_web_insert_json_from_path)(e,t,r,i),___dl_seterr=(e,t)=>(___dl_seterr=wasmExports.__dl_seterr)(e,t),__emscripten_timeout=(e,t)=>(__emscripten_timeout=wasmExports._emscripten_timeout)(e,t),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_emscripten_builtin_memalign=(e,t)=>(_emscripten_builtin_memalign=wasmExports.emscripten_builtin_memalign)(e,t),__emscripten_tempret_set=e=>(__emscripten_tempret_set=wasmExports._emscripten_tempret_set)(e),__emscripten_tempret_get=()=>(__emscripten_tempret_get=wasmExports._emscripten_tempret_get)(),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),calledRun;function invoke_ii(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vii(e,t,r){var i=stackSave();try{getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viii(e,t,r,i){var n=stackSave();try{getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiii(e,t,r,i,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iii(e,t,r){var i=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiii(e,t,r,i,n,a,s){var o=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_dii(e,t,r){var i=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiii(e,t,r,i,n,a,s,o){var l=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vi(e,t){var r=stackSave();try{getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiii(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiii(e,t,r,i,n,a){var s=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiii(e,t,r,i,n,a,s){var o=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiii(e,t,r,i,n,a,s,o){var l=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiii(e,t,r,i){var n=stackSave();try{return getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_v(e){var t=stackSave();try{getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_i(e){var t=stackSave();try{return getWasmTableEntry(e)()}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiii(e,t,r,i,n,a){var s=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viif(e,t,r,i){var n=stackSave();try{getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viid(e,t,r,i){var n=stackSave();try{getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iid(e,t,r){var i=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diiii(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiid(e,t,r,i,n,a,s){var o=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_di(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_id(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vid(e,t,r){var i=stackSave();try{getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vif(e,t,r){var i=stackSave();try{getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiid(e,t,r,i){var n=stackSave();try{return getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiid(e,t,r,i,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g){var v=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g)}catch(e){if(stackRestore(v),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidii(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h){var g=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h)}catch(e){if(stackRestore(g),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fi(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vifi(e,t,r,i){var n=stackSave();try{getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidi(e,t,r,i){var n=stackSave();try{getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ff(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_dd(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p){var f=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u,d,p)}catch(e){if(stackRestore(f),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viddddi(e,t,r,i,n,a,s){var o=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diiiiid(e,t,r,i,n,a,s){var o=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiid(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_idiii(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiidi(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiidii(e,t,r,i,n,a,s){var o=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p){var f=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u,d,p)}catch(e){if(stackRestore(f),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iff(e,t,r){var i=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_idd(e,t,r){var i=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diiiid(e,t,r,i,n,a){var s=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_if(e,t){var r=stackSave();try{return getWasmTableEntry(e)(t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ifii(e,t,r,i){var n=stackSave();try{return getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_idii(e,t,r,i){var n=stackSave();try{return getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ifi(e,t,r){var i=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_idi(e,t,r){var i=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_idiiii(e,t,r,i,n,a){var s=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diii(e,t,r,i){var n=stackSave();try{return getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diiid(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iifii(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidiii(e,t,r,i,n,a){var s=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidiiii(e,t,r,i,n,a,s){var o=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidi(e,t,r,i){var n=stackSave();try{return getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vifii(e,t,r,i,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vidii(e,t,r,i,n){var a=stackSave();try{getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iif(e,t,r){var i=stackSave();try{return getWasmTableEntry(e)(t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fiiii(e,t,r,i,n){var a=stackSave();try{return getWasmTableEntry(e)(t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiifi(e,t,r,i,n,a){var s=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiidi(e,t,r,i,n,a){var s=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiid(e,t,r,i,n,a){var s=stackSave();try{return getWasmTableEntry(e)(t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fiii(e,t,r,i){var n=stackSave();try{return getWasmTableEntry(e)(t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiiiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m){var h=stackSave();try{getWasmTableEntry(e)(t,r,i,n,a,s,o,l,c,_,u,d,p,f,m)}catch(e){if(stackRestore(h),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viji(e,t,r,i,n){var a=stackSave();try{Module.dynCall_viji(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ji(e,t){var r=stackSave();try{return Module.dynCall_ji(e,t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijii(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_viijii(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iij(e,t,r,i){var n=stackSave();try{return Module.dynCall_iij(e,t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiijj(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiijiijj(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viij(e,t,r,i,n){var a=stackSave();try{Module.dynCall_viij(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijj(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_iiijj(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijj(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_viiijj(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jii(e,t,r){var i=stackSave();try{return Module.dynCall_jii(e,t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vij(e,t,r,i){var n=stackSave();try{Module.dynCall_vij(e,t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijii(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_iiijii(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiij(e,t,r,i,n){var a=stackSave();try{return Module.dynCall_iiij(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiij(e,t,r,i,n,a){var s=stackSave();try{Module.dynCall_viiij(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiji(e,t,r,i,n,a){var s=stackSave();try{Module.dynCall_viiji(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijijj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viijijj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiijj(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viijiijj(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiij(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_iiiij(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiii(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_viijiii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiji(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_iiiji(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiji(e,t,r,i,n){var a=stackSave();try{return Module.dynCall_iiji(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiij(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_jiiij(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiji(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_viiiji(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jj(e,t,r){var i=stackSave();try{return Module.dynCall_jj(e,t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijji(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_iijji(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiij(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_iiiiij(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijjj(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiijjj(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijjj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiijjj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiij(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iiiiiij(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiii(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_jiiiii(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijiii(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_iijiii(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_dij(e,t,r,i){var n=stackSave();try{return Module.dynCall_dij(e,t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijii(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_iijii(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijji(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_vijji(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiijj(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiiiijj(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiij(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_viiiij(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijii(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_viiijii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijii(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iiiijii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viiiijii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jij(e,t,r,i){var n=stackSave();try{return Module.dynCall_jij(e,t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijj(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iiiijj(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiijii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiiiijii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijiiii(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iijiiii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijiii(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_vijiii(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijjiiiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iijjiiiii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijjiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiijjiii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijjii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiijjii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiii(e,t,r,i){var n=stackSave();try{return Module.dynCall_jiii(e,t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vjjii(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_vjjii(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiijii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiiiijii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiij(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiiiiiij(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijj(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viiiijj(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijiiiiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_vijiiiiii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijiiii(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_vijiiii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijiiiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_vijiiiii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijjiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iijjiii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ij(e,t,r){var i=stackSave();try{return Module.dynCall_ij(e,t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijj(e,t,r,i,n,a){var s=stackSave();try{Module.dynCall_vijj(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiji(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_iiiiji(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ijji(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_ijji(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijd(e,t,r,i,n,a){var s=stackSave();try{Module.dynCall_viijd(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijd(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_viiijd(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiji(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiiiiiiji(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiji(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iiiiiji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vj(e,t,r){var i=stackSave();try{Module.dynCall_vj(e,t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiij(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viiiiiij(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijiiiii(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viiiijiiiii(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijiiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viiiijiiii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijii(e,t,r,i,n,a){var s=stackSave();try{Module.dynCall_vijii(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_dj(e,t,r){var i=stackSave();try{return Module.dynCall_dj(e,t,r)}catch(e){if(stackRestore(i),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijji(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_viijji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijj(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_viijj(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiijiiii(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viiiiijiiii(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiiiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viijiiiii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijiji(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_vijiji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijjij(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_vijjij(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jijij(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_jijij(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vjii(e,t,r,i,n){var a=stackSave();try{Module.dynCall_vjii(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vjiiii(e,t,r,i,n,a,s){var o=stackSave();try{Module.dynCall_vjiiii(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiii(e,t,r,i,n){var a=stackSave();try{return Module.dynCall_jiiii(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiijiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viiiiijiii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f){var m=stackSave();try{Module.dynCall_viiiijiiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f)}catch(e){if(stackRestore(m),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jjj(e,t,r,i,n){var a=stackSave();try{return Module.dynCall_jjj(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jjjjjjd(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return Module.dynCall_jjjjjjd(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jjjji(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_jjjji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijij(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_viijij(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijjjj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iijjjj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijjj(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viijjj(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiiiiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viijiiiiii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_j(e){var t=stackSave();try{return Module.dynCall_j(e)}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jji(e,t,r,i){var n=stackSave();try{return Module.dynCall_jji(e,t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fijjjj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_fijjjj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_dijjjj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_dijjjj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fijjjjij(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{return Module.dynCall_fijjjjij(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_dijjjjij(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{return Module.dynCall_dijjjjij(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiij(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_jiiiij(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ijjiii(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_ijjiii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiijii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiiiiiijii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiji(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_jiiji(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_fiiji(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_fiiji(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_diiji(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_diiji(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijjji(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viijjji(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiddji(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_viiddji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iji(e,t,r,i){var n=stackSave();try{return Module.dynCall_iji(e,t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijijjj(e,t,r,i,n,a,s,o,l,c,_,u,d,p){var f=stackSave();try{Module.dynCall_viiiijijjj(e,t,r,i,n,a,s,o,l,c,_,u,d,p)}catch(e){if(stackRestore(f),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiij(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_viiiiij(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiji(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_viiiiji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijiji(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iijiji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijjji(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_vijjji(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vjiiij(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_vjiiij(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijjjji(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viijjjji(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijijj(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viiijijj(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijijij(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viiijijij(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijij(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viiijij(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiij(e,t,r,i,n){var a=stackSave();try{return Module.dynCall_jiij(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiji(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viiiiiji(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiijiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiiiijiii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiiii(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_jiiiiii(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiiijiii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiij(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiiiiiij(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiii(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iiijiii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiij(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiiiiiiij(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijj(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_iijj(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijjij(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viiijjij(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijijiij(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_vijijiij(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiiiij(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viijiiiij(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijiiiijjj(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m){var h=stackSave();try{Module.dynCall_viiijiiiijjj(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m)}catch(e){if(stackRestore(h),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijijiiiijjj(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g){var v=stackSave();try{Module.dynCall_viijijiiiijjj(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g)}catch(e){if(stackRestore(v),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijiij(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiijiij(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiijiijiii(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{return Module.dynCall_jiiijiijiii(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijijiiii(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viijijiiii(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiijiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_jiiijiii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiijii(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_jiiijii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijjj(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iijjj(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijji(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iiijji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijijiiiijjj(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h){var g=stackSave();try{Module.dynCall_vijijiiiijjj(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h)}catch(e){if(stackRestore(g),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiijj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiiiijj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiiji(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_jiiiiji(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijijji(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{Module.dynCall_viiiijijji(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijjij(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viiiijjij(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijiiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiijiiii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijiiijii(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{Module.dynCall_viiijiiijii(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijjj(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_vijjj(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijijj(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_vijijj(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijjjj(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viiijjjj(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jd(e,t){var r=stackSave();try{return Module.dynCall_jd(e,t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jf(e,t){var r=stackSave();try{return Module.dynCall_jf(e,t)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiijjii(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viiiiijjii(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiijii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viiiiiijii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiiiijjjji(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h){var g=stackSave();try{Module.dynCall_viiiiiiijjjji(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h)}catch(e){if(stackRestore(g),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vji(e,t,r,i){var n=stackSave();try{Module.dynCall_vji(e,t,r,i)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijjiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_viiijjiii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiijj(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_jiijj(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiiijiiii(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return Module.dynCall_jiiiiijiiii(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiijii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_jiiiijii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiijiiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_jiijiiii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijjii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viijjii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijjiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiiijjiii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijijj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiijijj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiji(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiiiiiji(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijjjj(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return Module.dynCall_iiiijjjj(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiij(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiijiij(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijiiiiiij(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return Module.dynCall_iijiiiiiij(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiijji(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viijiijji(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijiijjii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f){var m=stackSave();try{Module.dynCall_viiiijiijjii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f)}catch(e){if(stackRestore(m),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiiji(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viijiiji(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiijjiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h){var g=stackSave();try{return Module.dynCall_iiiiiijjiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h)}catch(e){if(stackRestore(g),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiijiiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiiiijiiii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijiijjiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f){var m=stackSave();try{return Module.dynCall_iiiijiijjiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f)}catch(e){if(stackRestore(m),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiidj(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_iiidj(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiijii(e,t,r,i,n,a,s,o,l,c,_,u,d,p){var f=stackSave();try{return Module.dynCall_iiiiiiiiiijii(e,t,r,i,n,a,s,o,l,c,_,u,d,p)}catch(e){if(stackRestore(f),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiijj(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiiiiiijj(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijji(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiiijji(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiijjj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_jiiijjj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiijij(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiiiijij(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiiiii(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_jiiiiiii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viiijiii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiijji(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiiiiijji(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiijiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g,v){var y=stackSave();try{return Module.dynCall_iiiiiiiiiijiiiiiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g,v)}catch(e){if(stackRestore(y),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiidjj(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iiiidjj(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijjj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiiijjj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiiiiji(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return Module.dynCall_iiiiiiiiiji(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiiiij(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiijiiiij(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiiij(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiijiiij(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijjii(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iijjii(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijji(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viiijji(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiijiiii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_jiiiijiiii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiijiiiii(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return Module.dynCall_jiiiijiiiii(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiijjjii(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_jiijjjii(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijji(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiiijji(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ijii(e,t,r,i,n){var a=stackSave();try{return Module.dynCall_ijii(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiiijjjjjjii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g,v,y,b){var S=stackSave();try{return Module.dynCall_iiiiiiijjjjjjii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g,v,y,b)}catch(e){if(stackRestore(S),e!==e+0)throw e;_setThrew(1,0)}}function invoke_ijjj(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_ijjj(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijjijj(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return Module.dynCall_iiijjijj(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijjijj(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{Module.dynCall_viiijjijj(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijij(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_iijij(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vjiii(e,t,r,i,n,a){var s=stackSave();try{Module.dynCall_vjiii(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiijj(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_jiiijj(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijij(e,t,r,i,n,a,s,o){var l=stackSave();try{return Module.dynCall_iiijij(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iidj(e,t,r,i,n){var a=stackSave();try{return Module.dynCall_iidj(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vjjijij(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_vjjijij(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiiiji(e,t,r,i,n,a,s){var o=stackSave();try{return Module.dynCall_jiiiji(e,t,r,i,n,a,s)}catch(e){if(stackRestore(o),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiiiijjiijjji(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g,v){var y=stackSave();try{return Module.dynCall_iiiiiijjiijjji(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f,m,h,g,v)}catch(e){if(stackRestore(y),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijjijjiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f){var m=stackSave();try{return Module.dynCall_iiijjijjiii(e,t,r,i,n,a,s,o,l,c,_,u,d,p,f)}catch(e){if(stackRestore(m),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiiijjii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiiijjii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijjii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiijjii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijjjj(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiijjjj(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiiij(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viijiiij(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijiiiji(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_vijiiiji(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jijjij(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_jijjij(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiij(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viijiij(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiiiji(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iiijiiiji(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijiiji(e,t,r,i,n,a,s,o,l){var c=stackSave();try{return Module.dynCall_iijiiji(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijiijj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iijiijj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijjjj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_vijjjj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiijiijii(e,t,r,i,n,a,s,o,l,c,_,u,d,p){var f=stackSave();try{Module.dynCall_viiiiijiijii(e,t,r,i,n,a,s,o,l,c,_,u,d,p)}catch(e){if(stackRestore(f),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jijj(e,t,r,i,n,a){var s=stackSave();try{return Module.dynCall_jijj(e,t,r,i,n,a)}catch(e){if(stackRestore(s),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiiijjji(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{Module.dynCall_viiiiijjji(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiiijj(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{return Module.dynCall_iiijiiijj(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiijijjj(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{Module.dynCall_viiijijjj(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijijjji(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_vijijjji(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijiij(e,t,r,i,n,a,s,o){var l=stackSave();try{Module.dynCall_vijiij(e,t,r,i,n,a,s,o)}catch(e){if(stackRestore(l),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jijjjj(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_jijjjj(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiiiijj(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{return Module.dynCall_iiijiiiijj(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iijiiijj(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{return Module.dynCall_iijiiijj(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijiiiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiijiiiii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijjjiiji(e,t,r,i,n,a,s,o,l,c,_,u,d){var p=stackSave();try{Module.dynCall_vijjjiiji(e,t,r,i,n,a,s,o,l,c,_,u,d)}catch(e){if(stackRestore(p),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiji(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viijiji(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijiiiiji(e,t,r,i,n,a,s,o,l,c,_){var u=stackSave();try{Module.dynCall_vijiiiiji(e,t,r,i,n,a,s,o,l,c,_)}catch(e){if(stackRestore(u),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viiiijiii(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{Module.dynCall_viiiijiii(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_viijiiii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_vijjiii(e,t,r,i,n,a,s,o,l){var c=stackSave();try{Module.dynCall_vijjiii(e,t,r,i,n,a,s,o,l)}catch(e){if(stackRestore(c),e!==e+0)throw e;_setThrew(1,0)}}function invoke_iiijjji(e,t,r,i,n,a,s,o,l,c){var _=stackSave();try{return Module.dynCall_iiijjji(e,t,r,i,n,a,s,o,l,c)}catch(e){if(stackRestore(_),e!==e+0)throw e;_setThrew(1,0)}}function invoke_viijiiijj(e,t,r,i,n,a,s,o,l,c,_,u){var d=stackSave();try{Module.dynCall_viijiiijj(e,t,r,i,n,a,s,o,l,c,_,u)}catch(e){if(stackRestore(d),e!==e+0)throw e;_setThrew(1,0)}}function invoke_jiji(e,t,r,i,n){var a=stackSave();try{return Module.dynCall_jiji(e,t,r,i,n)}catch(e){if(stackRestore(a),e!==e+0)throw e;_setThrew(1,0)}}function applySignatureConversions(e){var t,r=e=>t=>e(t)>>>0,i=e=>()=>e()>>>0,n=e=>(t,r)=>e(t,r)>>>0;return(e=Object.assign({},e)).__getTypeName=r(e.__getTypeName),e.pthread_self=i(e.pthread_self),e.memcpy=(t=e.memcpy,(e,r,i)=>t(e,r,i)>>>0),e.malloc=r(e.malloc),e.calloc=n(e.calloc),e.__errno_location=i(e.__errno_location),e.strerror=(e=>t=>e(t)>>>0)(e.strerror),e.emscripten_builtin_malloc=r(e.emscripten_builtin_malloc),e.emscripten_stack_get_base=i(e.emscripten_stack_get_base),e.emscripten_stack_get_end=i(e.emscripten_stack_get_end),e.emscripten_builtin_memalign=n(e.emscripten_builtin_memalign),e.emscripten_stack_get_current=i(e.emscripten_stack_get_current),e.emscripten_main_runtime_thread_id=i(e.emscripten_main_runtime_thread_id),e.sbrk=(e=>t=>e(t)>>>0)(e.sbrk),e.memalign=n(e.memalign),e.emscripten_builtin_calloc=n(e.emscripten_builtin_calloc),e._emscripten_stack_alloc=r(e._emscripten_stack_alloc),e.__cxa_get_exception_ptr=r(e.__cxa_get_exception_ptr),e}function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,i=stackAlloc(4*(r+1)),n=i;e.forEach((e=>{HEAPU32[n>>>2>>>0]=stringToUTF8OnStack(e),n+=4})),HEAPU32[n>>>2>>>0]=0;try{var a=t(r,i);return exitJS(a,!0),a}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){var t;calledRun||(calledRun=!0,Module.calledRun=!0,!ABORT&&(initRuntime(),preMain(),readyPromiseResolve(Module),null==(t=Module.onRuntimeInitialized)||t.call(Module),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0)||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((()=>{setTimeout((()=>Module.setStatus("")),1),t()}),1)):t())}if(Module.stackSave=stackSave,Module.stackRestore=stackRestore,Module.stackAlloc=stackAlloc,Module.ccall=ccall,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;return Module.noInitialRun&&(shouldRunNow=!1),run(),moduleRtn=readyPromise,moduleRtn}})();"object"==typeof exports&&"object"==typeof module?module.exports=DuckDB:"function"==typeof define&&define.amd&&define([],(()=>DuckDB))})),Gl=pr((()=>{})),Ul=pr((()=>{})),jl=pr(((e,t)=>{!function(){var e="input is invalid type",r="object"==typeof window,i=r?window:{};i.JS_SHA256_NO_WINDOW&&(r=!1);var n=!r&&"object"==typeof self,a=!i.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;a?i=global:n&&(i=self);var s=!i.JS_SHA256_NO_COMMON_JS&&"object"==typeof t&&t.exports,o="function"==typeof define&&define.amd,l=!i.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",c="0123456789abcdef".split(""),_=[-2147483648,8388608,32768,128],u=[24,16,8,0],d=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],p=["hex","array","digest","arrayBuffer"],f=[];(i.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),l&&(i.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var m=function(e,t){return function(r){return new b(t,!0).update(r)[e]()}},h=function(e){var t=m("hex",e);a&&(t=g(t,e)),t.create=function(){return new b(e)},t.update=function(e){return t.create().update(e)};for(var r=0;r>>6,o[_++]=128|63&s):s<55296||s>=57344?(o[_++]=224|s>>>12,o[_++]=128|s>>>6&63,o[_++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++n)),o[_++]=240|s>>>18,o[_++]=128|s>>>12&63,o[_++]=128|s>>>6&63,o[_++]=128|63&s);t=o}else{if("object"!==a)throw new Error(e);if(null===t)throw new Error(e);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(e)}t.length>64&&(t=new b(r,!0).update(t).array());var u=[],d=[];for(n=0;n<64;++n){var p=t[n]||0;u[n]=92^p,d[n]=54^p}b.call(this,r,i),this.update(d),this.oKeyPad=u,this.inner=!0,this.sharedMemory=i}b.prototype.update=function(t){if(!this.finalized){var r,i=typeof t;if("string"!==i){if("object"!==i)throw new Error(e);if(null===t)throw new Error(e);if(l&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||l&&ArrayBuffer.isView(t)))throw new Error(e);r=!0}for(var n,a,s=0,o=t.length,c=this.blocks;s>>2]|=t[s]<>>2]|=n<>>2]|=(192|n>>>6)<>>2]|=(128|63&n)<=57344?(c[a>>>2]|=(224|n>>>12)<>>2]|=(128|n>>>6&63)<>>2]|=(128|63&n)<>>2]|=(240|n>>>18)<>>2]|=(128|n>>>12&63)<>>2]|=(128|n>>>6&63)<>>2]|=(128|63&n)<=64?(this.block=c[16],this.start=a-64,this.hash(),this.hashed=!0):this.start=a}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},b.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>>2]|=_[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},b.prototype.hash=function(){var e,t,r,i,n,a,s,o,l,c=this.h0,_=this.h1,u=this.h2,p=this.h3,f=this.h4,m=this.h5,h=this.h6,g=this.h7,v=this.blocks;for(e=16;e<64;++e)t=((n=v[e-15])>>>7|n<<25)^(n>>>18|n<<14)^n>>>3,r=((n=v[e-2])>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,v[e]=v[e-16]+t+v[e-7]+r<<0;for(l=_&u,e=0;e<64;e+=4)this.first?(this.is224?(a=300032,g=(n=v[0]-1413257819)-150054599<<0,p=n+24177077<<0):(a=704751109,g=(n=v[0]-210244248)-1521486534<<0,p=n+143694565<<0),this.first=!1):(t=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10),i=(a=c&_)^c&u^l,g=p+(n=g+(r=(f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&m^~f&h)+d[e]+v[e])<<0,p=n+(t+i)<<0),t=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),i=(s=p&c)^p&_^a,h=u+(n=h+(r=(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&f^~g&m)+d[e+1]+v[e+1])<<0,t=((u=n+(t+i)<<0)>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10),i=(o=u&p)^u&c^s,m=_+(n=m+(r=(h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&g^~h&f)+d[e+2]+v[e+2])<<0,t=((_=n+(t+i)<<0)>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10),i=(l=_&u)^_&p^o,f=c+(n=f+(r=(m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&h^~m&g)+d[e+3]+v[e+3])<<0,c=n+(t+i)<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+c<<0,this.h1=this.h1+_<<0,this.h2=this.h2+u<<0,this.h3=this.h3+p<<0,this.h4=this.h4+f<<0,this.h5=this.h5+m<<0,this.h6=this.h6+h<<0,this.h7=this.h7+g<<0},b.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,i=this.h3,n=this.h4,a=this.h5,s=this.h6,o=this.h7,l=c[e>>>28&15]+c[e>>>24&15]+c[e>>>20&15]+c[e>>>16&15]+c[e>>>12&15]+c[e>>>8&15]+c[e>>>4&15]+c[15&e]+c[t>>>28&15]+c[t>>>24&15]+c[t>>>20&15]+c[t>>>16&15]+c[t>>>12&15]+c[t>>>8&15]+c[t>>>4&15]+c[15&t]+c[r>>>28&15]+c[r>>>24&15]+c[r>>>20&15]+c[r>>>16&15]+c[r>>>12&15]+c[r>>>8&15]+c[r>>>4&15]+c[15&r]+c[i>>>28&15]+c[i>>>24&15]+c[i>>>20&15]+c[i>>>16&15]+c[i>>>12&15]+c[i>>>8&15]+c[i>>>4&15]+c[15&i]+c[n>>>28&15]+c[n>>>24&15]+c[n>>>20&15]+c[n>>>16&15]+c[n>>>12&15]+c[n>>>8&15]+c[n>>>4&15]+c[15&n]+c[a>>>28&15]+c[a>>>24&15]+c[a>>>20&15]+c[a>>>16&15]+c[a>>>12&15]+c[a>>>8&15]+c[a>>>4&15]+c[15&a]+c[s>>>28&15]+c[s>>>24&15]+c[s>>>20&15]+c[s>>>16&15]+c[s>>>12&15]+c[s>>>8&15]+c[s>>>4&15]+c[15&s];return this.is224||(l+=c[o>>>28&15]+c[o>>>24&15]+c[o>>>20&15]+c[o>>>16&15]+c[o>>>12&15]+c[o>>>8&15]+c[o>>>4&15]+c[15&o]),l},b.prototype.toString=b.prototype.hex,b.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,r=this.h2,i=this.h3,n=this.h4,a=this.h5,s=this.h6,o=this.h7,l=[e>>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,r>>>24&255,r>>>16&255,r>>>8&255,255&r,i>>>24&255,i>>>16&255,i>>>8&255,255&i,n>>>24&255,n>>>16&255,n>>>8&255,255&n,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s];return this.is224||l.push(o>>>24&255,o>>>16&255,o>>>8&255,255&o),l},b.prototype.array=b.prototype.digest,b.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},S.prototype=new b,S.prototype.finalize=function(){if(b.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();b.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),b.prototype.finalize.call(this)}};var w=h();w.sha256=w,w.sha224=h(!0),w.sha256.hmac=y(),w.sha224.hmac=y(!0),s?t.exports=w:(i.sha256=w.sha256,i.sha224=w.sha224,o&&define((function(){return w})))}()})),Ld={};function Go(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ee(e){return this instanceof ee?(this.v=e,this):new ee(e)}function Ye(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(e,t||[]),a=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(e){n[e]&&(i[e]=function(t){return new Promise((function(r,i){a.push([e,t,r,i])>1||o(e,t)}))})}function o(e,t){try{!function(e){e.value instanceof ee?Promise.resolve(e.value.v).then(l,c):_(a[0][2],e)}(n[e](t))}catch(e){_(a[0][3],e)}}function l(e){o("next",e)}function c(e){o("throw",e)}function _(e,t){e(t),a.shift(),a.length&&o(a[0][0],a[0][1])}}function ti(e){var t,r;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,n){t[i]=e[i]?function(t){return(r=!r)?{value:ee(e[i](t)),done:!1}:n?n(t):t}:n}}function _t(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e="function"==typeof Ro?Ro(e):e[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(r){t[r]=e[r]&&function(t){return new Promise((function(i,n){!function(e,t,r,i){Promise.resolve(i).then((function(t){e({value:t,done:r})}),t)}(i,n,(t=e[r](t)).done,t.value)}))}}}mr(Ld,{registerWorker:()=>Wl});var Aa={};mr(Aa,{compareArrayLike:()=>La,joinUint8Arrays:()=>Je,memcpy:()=>Pi,rebaseValueOffsets:()=>Un,toArrayBufferView:()=>re,toArrayBufferViewAsyncIterator:()=>pt,toArrayBufferViewIterator:()=>Ct,toBigInt64Array:()=>Gn,toBigUint64Array:()=>au,toFloat32Array:()=>ou,toFloat32ArrayAsyncIterator:()=>Eu,toFloat32ArrayIterator:()=>mu,toFloat64Array:()=>cu,toFloat64ArrayAsyncIterator:()=>Lu,toFloat64ArrayIterator:()=>hu,toInt16Array:()=>iu,toInt16ArrayAsyncIterator:()=>yu,toInt16ArrayIterator:()=>_u,toInt32Array:()=>Ir,toInt32ArrayAsyncIterator:()=>bu,toInt32ArrayIterator:()=>du,toInt8Array:()=>ru,toInt8ArrayAsyncIterator:()=>vu,toInt8ArrayIterator:()=>uu,toUint16Array:()=>nu,toUint16ArrayAsyncIterator:()=>Su,toUint16ArrayIterator:()=>fu,toUint32Array:()=>su,toUint32ArrayAsyncIterator:()=>wu,toUint32ArrayIterator:()=>pu,toUint8Array:()=>z,toUint8ArrayAsyncIterator:()=>Ea,toUint8ArrayIterator:()=>wa,toUint8ClampedArray:()=>lu,toUint8ClampedArrayAsyncIterator:()=>Au,toUint8ClampedArrayIterator:()=>gu});var Kl=new TextDecoder("utf-8"),Ci=e=>Kl.decode(e),Zl=new TextEncoder,xt=e=>Zl.encode(e),eu=e=>"number"==typeof e,Uo=e=>"boolean"==typeof e,xe=e=>"function"==typeof e,Oe=e=>null!=e&&Object(e)===e,dt=e=>Oe(e)&&xe(e.then),ft=e=>Oe(e)&&xe(e[Symbol.iterator]),it=e=>Oe(e)&&xe(e[Symbol.asyncIterator]),Cn=e=>Oe(e)&&Oe(e.schema),Mn=e=>Oe(e)&&"done"in e&&"value"in e,Pn=e=>Oe(e)&&xe(e.stat)&&eu(e.fd),In=e=>Oe(e)&&Mi(e.body),Bn=e=>"_getDOMStream"in e&&"_getNodeStream"in e,jo=e=>Oe(e)&&xe(e.abort)&&xe(e.getWriter)&&!Bn(e),Mi=e=>Oe(e)&&xe(e.cancel)&&xe(e.getReader)&&!Bn(e),Oo=e=>Oe(e)&&xe(e.end)&&xe(e.write)&&Uo(e.writable)&&!Bn(e),Rn=e=>Oe(e)&&xe(e.read)&&xe(e.pipe)&&Uo(e.readable)&&!Bn(e),Ho=e=>Oe(e)&&xe(e.clear)&&xe(e.bytes)&&xe(e.position)&&xe(e.setPosition)&&xe(e.capacity)&&xe(e.getBufferIdentifier)&&xe(e.createLong),Sa=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function tu(e){let t,r,i,n,a=e[0]?[e[0]]:[];for(let s,o,l=0,c=0,_=e.length;++l<_;)s=a[c],o=e[l],!s||!o||s.buffer!==o.buffer||o.byteOffsete+t.byteLength),0),o=0,l=-1,c=Math.min(t||Number.POSITIVE_INFINITY,s);for(let e=a.length;++lre(Int8Array,e),iu=e=>re(Int16Array,e),Ir=e=>re(Int32Array,e),Gn=e=>re(BigInt64Array,e),z=e=>re(Uint8Array,e),nu=e=>re(Uint16Array,e),su=e=>re(Uint32Array,e),au=e=>re(BigUint64Array,e),ou=e=>re(Float32Array,e),cu=e=>re(Float64Array,e),lu=e=>re(Uint8ClampedArray,e),ba=e=>(e.next(),e);function*Ct(e,t){let r=function*(e){yield e},i="string"==typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Sa?r(t):ft(t)?t:r(t);return yield*Pr(ba(function*(t){let r=null;do{r=t.next(yield re(e,r))}while(!r.done)}(i[Symbol.iterator]()))),new e}var uu=e=>Ct(Int8Array,e),_u=e=>Ct(Int16Array,e),du=e=>Ct(Int32Array,e),wa=e=>Ct(Uint8Array,e),fu=e=>Ct(Uint16Array,e),pu=e=>Ct(Uint32Array,e),mu=e=>Ct(Float32Array,e),hu=e=>Ct(Float64Array,e),gu=e=>Ct(Uint8ClampedArray,e);function pt(e,t){return Ye(this,arguments,(function*(){if(dt(t))return yield ee(yield ee(yield*Pr(ti(_t(pt(e,yield ee(t)))))));let r=function(e){return Ye(this,arguments,(function*(){yield yield ee(yield ee(e))}))},i="string"==typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof Sa?r(t):ft(t)?function(e){return Ye(this,arguments,(function*(){yield ee(yield*Pr(ti(_t(ba(function*(e){let t=null;do{t=e.next(yield null==t?void 0:t.value)}while(!t.done)}(e[Symbol.iterator]()))))))}))}(t):it(t)?t:r(t);return yield ee(yield*Pr(ti(_t(ba(function(t){return Ye(this,arguments,(function*(){let r=null;do{r=yield ee(t.next(yield yield ee(re(e,r))))}while(!r.done)}))}(i[Symbol.asyncIterator]())))))),yield ee(new e)}))}var vu=e=>pt(Int8Array,e),yu=e=>pt(Int16Array,e),bu=e=>pt(Int32Array,e),Ea=e=>pt(Uint8Array,e),Su=e=>pt(Uint16Array,e),wu=e=>pt(Uint32Array,e),Eu=e=>pt(Float32Array,e),Lu=e=>pt(Float64Array,e),Au=e=>pt(Uint8ClampedArray,e);function Un(e,t,r){if(0!==e)for(let i=-1,n=(r=r.slice(0,t)).length;++i0)do{if(e[r]!==t[r])return!1}while(++rjn(Du(e)),fromAsyncIterable:e=>jn(ku(e)),fromDOMStream:e=>jn(Tu(e)),fromNodeStream:e=>jn(Fu(e)),toDOMStream(e,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(e,t){throw new Error('"toNodeStream" not available in this environment')}},jn=e=>(e.next(),e);function*Du(e){let t,r,i,n,a=!1,s=[],o=0;({cmd:i,size:n}=(yield null)||{cmd:"read",size:0});let l=wa(e)[Symbol.iterator]();try{do{if(({done:t,value:r}=Number.isNaN(n-o)?l.next():l.next(n-o)),!t&&r.byteLength>0&&(s.push(r),o+=r.byteLength),t||n<=o)do{({cmd:i,size:n}=yield"peek"===i?Je(s,n)[0]:([r,s,o]=Je(s,n),r))}while(n0&&(s.push(r),o+=r.byteLength),t||n<=o)do{({cmd:i,size:n}=yield yield ee("peek"===i?Je(s,n)[0]:([r,s,o]=Je(s,n),r)))}while(n0&&(s.push(z(t)),o+=t.byteLength),n||i<=o)do{({cmd:r,size:i}=yield yield ee("peek"===r?Je(s,i)[0]:([t,s,o]=Je(s,i),t)))}while(i{}))}get closed(){return this.reader?this.reader.closed.catch((()=>{})):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return B(this,void 0,void 0,(function*(){let{reader:t,source:r}=this;t&&(yield t.cancel(e).catch((()=>{}))),r&&r.locked&&this.releaseLock()}))}read(e){return B(this,void 0,void 0,(function*(){if(0===e)return{done:null==this.reader,value:new Uint8Array(0)};let t=yield this.reader.read();return!t.done&&(t.value=z(t)),t}))}},Da=(e,t)=>{let r,i=e=>r([t,e]);return[t,i,new Promise((n=>(r=n)&&e.once(t,i)))]},ue,he,pe,Ae,G,Ce;function Fu(e){return Ye(this,arguments,(function*(){let t,r,i,n=[],a="error",s=!1,o=null,l=0,c=[];if(({cmd:t,size:r}=(yield yield ee(null))||{cmd:"read",size:0}),e.isTTY)return yield yield ee(new Uint8Array(0)),yield ee(null);try{n[0]=Da(e,"end"),n[1]=Da(e,"error");do{if(n[2]=Da(e,"readable"),[a,o]=yield ee(Promise.race(n.map((e=>e[2])))),"error"===a)break;if((s="end"===a)||(Number.isFinite(r-l)?(i=z(e.read(r-l)),i.byteLength0&&(c.push(i),l+=i.byteLength)),s||r<=l)do{({cmd:t,size:r}=yield yield ee("peek"===t?Je(c,r)[0]:([i,c,l]=Je(c,r),i)))}while(r{for(let[t,r]of _)e.off(t,r);try{let t=e.destroy;t&&t.call(e,u),u=void 0}catch(e){u=e||u}finally{null!=u?r(u):t()}}))))}var _,u;return yield ee(null)}))}!function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4",e[e.V5=4]="V5"}(ue||(ue={})),function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(he||(he={})),function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}(pe||(pe={})),function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(Ae||(Ae={})),function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(G||(G={})),function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME",e[e.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"}(Ce||(Ce={}));var Mt=new Int32Array(2),On=new Float32Array(Mt.buffer),Hn=new Float64Array(Mt.buffer),ri=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],Ii;!function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"}(Ii||(Ii={}));var Ke=class e{constructor(e){this.bytes_=e,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(t){return new e(new Uint8Array(t))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return BigInt.asIntN(64,BigInt(this.readUint32(e))+(BigInt(this.readUint32(e+4))<>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,Number(BigInt.asIntN(32,t))),this.writeInt32(e+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(e,t){this.writeUint32(e,Number(BigInt.asUintN(32,t))),this.writeUint32(e+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(e,t){On[0]=t,this.writeInt32(e,Mt[0])}writeFloat64(e,t){Hn[0]=t,this.writeInt32(e,Mt[ri?0:1]),this.writeInt32(e+4,Mt[ri?1:0])}getBufferIdentifier(){if(this.bytes_.lengththis.minalign&&(this.minalign=t);let i=1+~(this.bb.capacity()-this.space+r)&t-1;for(;this.space=0&&0==this.vtable[t];t--);let r=t+1;for(;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);let i=2*(r+2);this.addInt16(i);let n=0,a=this.space;e:for(t=0;t=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+i),this.addOffset(e),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){let r=this.bb.capacity()-e,i=r-this.bb.readInt32(r);if(!(t=0;r--)e.addInt32(t[r]);return e.endVector()}static startTypeIdsVector(e,t){e.startVector(4,t,4)}static endUnion(e){return e.endObject()}static createUnion(t,r,i){return e.startUnion(t),e.addMode(t,r),e.addTypeIds(t,i),e.endUnion(t)}},zi=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsUtf8(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsUtf8(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(t){return e.startUtf8(t),e.endUtf8(t)}},ge;!function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.FloatingPoint=3]="FloatingPoint",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct_=13]="Struct_",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.LargeList=21]="LargeList",e[e.RunEndEncoded=22]="RunEndEncoded"}(ge||(ge={}));var je=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsField(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsField(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}name(e){let t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}nullable(){let e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}typeType(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):ge.NONE}type(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}dictionary(e){let t=this.bb.__offset(this.bb_pos,12);return t?(e||new Pt).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}children(t,r){let i=this.bb.__offset(this.bb_pos,14);return i?(r||new e).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+4*t),this.bb):null}childrenLength(){let e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,16);return r?(t||new Me).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,t){e.addFieldOffset(0,t,0)}static addNullable(e,t){e.addFieldInt8(1,+t,0)}static addTypeType(e,t){e.addFieldInt8(2,t,ge.NONE)}static addType(e,t){e.addFieldOffset(3,t,0)}static addDictionary(e,t){e.addFieldOffset(4,t,0)}static addChildren(e,t){e.addFieldOffset(5,t,0)}static createChildrenVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startChildrenVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(6,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endField(e){return e.endObject()}},Ve=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsSchema(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsSchema(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}endianness(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):hr.Little}fields(e,t){let r=this.bb.__offset(this.bb_pos,6);return r?(t||new je).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}fieldsLength(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new Me).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){let t=this.bb.__offset(this.bb_pos,10);return t?this.bb.readInt64(this.bb.__vector(this.bb_pos+t)+8*e):BigInt(0)}featuresLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,t){e.addFieldInt16(0,t,hr.Little)}static addFields(e,t){e.addFieldOffset(1,t,0)}static createFieldsVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startFieldsVector(e,t){e.startVector(4,t,4)}static addCustomMetadata(e,t){e.addFieldOffset(2,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static addFeatures(e,t){e.addFieldOffset(3,t,0)}static createFeaturesVector(e,t){e.startVector(8,t.length,8);for(let r=t.length-1;r>=0;r--)e.addInt64(t[r]);return e.endVector()}static startFeaturesVector(e,t){e.startVector(8,t,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,t){e.finish(t)}static finishSizePrefixedSchemaBuffer(e,t){e.finish(t,void 0,!0)}static createSchema(t,r,i,n,a){return e.startSchema(t),e.addEndianness(t,r),e.addFields(t,i),e.addCustomMetadata(t,n),e.addFeatures(t,a),e.endSchema(t)}},ne,y,st;!function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"}(ne||(ne={})),function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth",e[e.DurationSecond=-27]="DurationSecond",e[e.DurationMillisecond=-28]="DurationMillisecond",e[e.DurationMicrosecond=-29]="DurationMicrosecond",e[e.DurationNanosecond=-30]="DurationNanosecond"}(y||(y={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(st||(st={}));var qa={};mr(qa,{clampRange:()=>Qi,createElementComparator:()=>kr,wrapIndex:()=>Rr});var Ta={};function vt(e){if(null===e)return"null";if(void 0===e)return"undefined";switch(typeof e){case"number":case"bigint":return"".concat(e);case"string":return'"'.concat(e,'"')}return"function"==typeof e[Symbol.toPrimitive]?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?e instanceof BigInt64Array||e instanceof BigUint64Array?"[".concat([...e].map((e=>vt(e))),"]"):"[".concat(e,"]"):ArrayBuffer.isView(e)?"[".concat(e,"]"):JSON.stringify(e,((e,t)=>"bigint"==typeof t?"".concat(t):t))}mr(Ta,{valueToString:()=>vt});var Ma={};function ae(e){if("bigint"==typeof e&&(eNumber.MAX_SAFE_INTEGER))throw new TypeError("".concat(e," is not safe to convert to a number."));return Number(e)}function Fa(e,t){return ae(e/t)+ae(e%t)/ae(t)}mr(Ma,{BN:()=>qi,bigNumToBigInt:()=>Wo,bigNumToNumber:()=>Ca,bigNumToString:()=>oi,isArrowBigNumSymbol:()=>No});var No=Symbol.for("isArrowBigNum");function yt(e,...t){return 0===t.length?Object.setPrototypeOf(re(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(e,...t),this.constructor.prototype)}function si(...e){return yt.apply(this,e)}function ai(...e){return yt.apply(this,e)}function $i(...e){return yt.apply(this,e)}yt.prototype[No]=!0,yt.prototype.toJSON=function(){return'"'.concat(oi(this),'"')},yt.prototype.valueOf=function(e){return Ca(this,e)},yt.prototype.toString=function(){return oi(this)},yt.prototype[Symbol.toPrimitive]=function(e="default"){switch(e){case"number":return Ca(this);case"string":return oi(this);case"default":return Wo(this)}return oi(this)},Object.setPrototypeOf(si.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(ai.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf($i.prototype,Object.create(Uint32Array.prototype)),Object.assign(si.prototype,yt.prototype,{constructor:si,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(ai.prototype,yt.prototype,{constructor:ai,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign($i.prototype,yt.prototype,{constructor:$i,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});var xu=BigInt(4294967296)*BigInt(4294967296),Cu=xu-BigInt(1);function Ca(e,t){let{buffer:r,byteOffset:i,byteLength:n,signed:a}=e,s=new BigUint64Array(r,i,n/8),o=a&&s.at(-1)&BigInt(1)<=0)return xa(e);t=t.slice();let r=1;for(let e=0;e(e.children=null,e.ArrayType=Array,e.OffsetArrayType=Int32Array,e[Symbol.toStringTag]="DataType"))(R.prototype);var He=class extends R{constructor(){super(y.Null)}toString(){return"Null"}};zo=Symbol.toStringTag,He[zo]=(e=>e[Symbol.toStringTag]="Null")(He.prototype);var Pe=class extends R{constructor(e,t){super(y.Int),this.isSigned=e,this.bitWidth=t}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?BigInt64Array:BigUint64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}toString(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}};$o=Symbol.toStringTag,Pe[$o]=(e=>(e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"))(Pe.prototype);var Vn=class extends Pe{constructor(){super(!0,8)}get ArrayType(){return Int8Array}},zn=class extends Pe{constructor(){super(!0,16)}get ArrayType(){return Int16Array}},Bt=class extends Pe{constructor(){super(!0,32)}get ArrayType(){return Int32Array}},$n=class extends Pe{constructor(){super(!0,64)}get ArrayType(){return BigInt64Array}},qn=class extends Pe{constructor(){super(!1,8)}get ArrayType(){return Uint8Array}},Xn=class extends Pe{constructor(){super(!1,16)}get ArrayType(){return Uint16Array}},Qn=class extends Pe{constructor(){super(!1,32)}get ArrayType(){return Uint32Array}},Yn=class extends Pe{constructor(){super(!1,64)}get ArrayType(){return BigUint64Array}};Object.defineProperty(Vn.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(zn.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(Bt.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty($n.prototype,"ArrayType",{value:BigInt64Array}),Object.defineProperty(qn.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(Xn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Qn.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(Yn.prototype,"ArrayType",{value:BigUint64Array});var at=class extends R{constructor(e){super(y.Float),this.precision=e}get ArrayType(){switch(this.precision){case pe.HALF:return Uint16Array;case pe.SINGLE:return Float32Array;case pe.DOUBLE:return Float64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}toString(){return"Float".concat(this.precision<<5||16)}};qo=Symbol.toStringTag,at[qo]=(e=>(e.precision=null,e[Symbol.toStringTag]="Float"))(at.prototype);var Jn=class extends at{constructor(){super(pe.HALF)}},Kn=class extends at{constructor(){super(pe.SINGLE)}},Zn=class extends at{constructor(){super(pe.DOUBLE)}};Object.defineProperty(Jn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(Kn.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(Zn.prototype,"ArrayType",{value:Float64Array});var Vt=class extends R{constructor(){super(y.Binary)}toString(){return"Binary"}};Xo=Symbol.toStringTag,Vt[Xo]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"))(Vt.prototype);var zt=class extends R{constructor(){super(y.LargeBinary)}toString(){return"LargeBinary"}};Qo=Symbol.toStringTag,zt[Qo]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeBinary"))(zt.prototype);var $t=class extends R{constructor(){super(y.Utf8)}toString(){return"Utf8"}};Yo=Symbol.toStringTag,$t[Yo]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"))($t.prototype);var qt=class extends R{constructor(){super(y.LargeUtf8)}toString(){return"LargeUtf8"}};Jo=Symbol.toStringTag,qt[Jo]=(e=>(e.ArrayType=Uint8Array,e.OffsetArrayType=BigInt64Array,e[Symbol.toStringTag]="LargeUtf8"))(qt.prototype);var Xt=class extends R{constructor(){super(y.Bool)}toString(){return"Bool"}};Ko=Symbol.toStringTag,Xt[Ko]=(e=>(e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"))(Xt.prototype);var Qt=class extends R{constructor(e,t,r=128){super(y.Decimal),this.scale=e,this.precision=t,this.bitWidth=r}toString(){return"Decimal[".concat(this.precision,"e").concat(this.scale>0?"+":"").concat(this.scale,"]")}};Zo=Symbol.toStringTag,Qt[Zo]=(e=>(e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"))(Qt.prototype);var Yt=class extends R{constructor(e){super(y.Date),this.unit=e}toString(){return"Date".concat(32*(this.unit+1),"<").concat(Ae[this.unit],">")}get ArrayType(){return this.unit===Ae.DAY?Int32Array:BigInt64Array}};ec=Symbol.toStringTag,Yt[ec]=(e=>(e.unit=null,e[Symbol.toStringTag]="Date"))(Yt.prototype);var Jt=class extends R{constructor(e,t){super(y.Time),this.unit=e,this.bitWidth=t}toString(){return"Time".concat(this.bitWidth,"<").concat(G[this.unit],">")}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}};tc=Symbol.toStringTag,Jt[tc]=(e=>(e.unit=null,e.bitWidth=null,e[Symbol.toStringTag]="Time"))(Jt.prototype);var Kt=class extends R{constructor(e,t){super(y.Timestamp),this.unit=e,this.timezone=t}toString(){return"Timestamp<".concat(G[this.unit]).concat(this.timezone?", ".concat(this.timezone):"",">")}};rc=Symbol.toStringTag,Kt[rc]=(e=>(e.unit=null,e.timezone=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Timestamp"))(Kt.prototype);var Zt=class extends R{constructor(e){super(y.Interval),this.unit=e}toString(){return"Interval<".concat(Ce[this.unit],">")}};ic=Symbol.toStringTag,Zt[ic]=(e=>(e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"))(Zt.prototype);var er=class extends R{constructor(e){super(y.Duration),this.unit=e}toString(){return"Duration<".concat(G[this.unit],">")}};nc=Symbol.toStringTag,er[nc]=(e=>(e.unit=null,e.ArrayType=BigInt64Array,e[Symbol.toStringTag]="Duration"))(er.prototype);var bt=class extends R{constructor(e){super(y.List),this.children=[e]}toString(){return"List<".concat(this.valueType,">")}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};sc=Symbol.toStringTag,bt[sc]=(e=>(e.children=null,e[Symbol.toStringTag]="List"))(bt.prototype);var ve=class extends R{constructor(e){super(y.Struct),this.children=e}toString(){return"Struct<{".concat(this.children.map((e=>"".concat(e.name,":").concat(e.type))).join(", "),"}>")}};ac=Symbol.toStringTag,ve[ac]=(e=>(e.children=null,e[Symbol.toStringTag]="Struct"))(ve.prototype);var St=class extends R{constructor(e,t,r){super(y.Union),this.mode=e,this.children=r,this.typeIds=t=Int32Array.from(t),this.typeIdToChildIndex=t.reduce(((e,t,r)=>(e[t]=r)&&e||e),Object.create(null))}toString(){return"".concat(this[Symbol.toStringTag],"<").concat(this.children.map((e=>"".concat(e.type))).join(" | "),">")}};oc=Symbol.toStringTag,St[oc]=(e=>(e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"))(St.prototype);var tr=class extends R{constructor(e){super(y.FixedSizeBinary),this.byteWidth=e}toString(){return"FixedSizeBinary[".concat(this.byteWidth,"]")}};cc=Symbol.toStringTag,tr[cc]=(e=>(e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"))(tr.prototype);var wt=class extends R{constructor(e,t){super(y.FixedSizeList),this.listSize=e,this.children=[t]}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}};lc=Symbol.toStringTag,wt[lc]=(e=>(e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"))(wt.prototype);var Et=class extends R{constructor(e,t=!1){var r,i,n;if(super(y.Map),this.children=[e],this.keysSorted=t,e&&(e.name="entries",null!==(r=null==e?void 0:e.type)&&void 0!==r&&r.children)){let t=null===(i=null==e?void 0:e.type)||void 0===i?void 0:i.children[0];t&&(t.name="key");let r=null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.children[1];r&&(r.name="value")}}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return"Map<{".concat(this.children[0].type.children.map((e=>"".concat(e.name,":").concat(e.type))).join(", "),"}>")}};uc=Symbol.toStringTag,Et[uc]=(e=>(e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"))(Et.prototype);var Mu=(e=>()=>++e)(-1),et=class extends R{constructor(e,t,r,i){super(y.Dictionary),this.indices=t,this.dictionary=e,this.isOrdered=i||!1,this.id=null==r?Mu():ae(r)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return"Dictionary<".concat(this.indices,", ").concat(this.dictionary,">")}};function tt(e){let t=e;switch(e.typeId){case y.Decimal:return e.bitWidth/32;case y.Interval:return 1+t.unit;case y.FixedSizeList:return t.listSize;case y.FixedSizeBinary:return t.byteWidth;default:return 1}}_c=Symbol.toStringTag,et[_c]=(e=>(e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"))(et.prototype);var j=class{visitMany(e,...t){return e.map(((e,r)=>this.visit(e,...t.map((e=>e[r])))))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,t=!0){return Pu(this,e,t)}getVisitFnByTypeId(e,t=!0){return ci(this,e,t)}visitNull(e,...t){return null}visitBool(e,...t){return null}visitInt(e,...t){return null}visitFloat(e,...t){return null}visitUtf8(e,...t){return null}visitLargeUtf8(e,...t){return null}visitBinary(e,...t){return null}visitLargeBinary(e,...t){return null}visitFixedSizeBinary(e,...t){return null}visitDate(e,...t){return null}visitTimestamp(e,...t){return null}visitTime(e,...t){return null}visitDecimal(e,...t){return null}visitList(e,...t){return null}visitStruct(e,...t){return null}visitUnion(e,...t){return null}visitDictionary(e,...t){return null}visitInterval(e,...t){return null}visitDuration(e,...t){return null}visitFixedSizeList(e,...t){return null}visitMap(e,...t){return null}};function Pu(e,t,r=!0){return"number"==typeof t?ci(e,t,r):"string"==typeof t&&t in y?ci(e,y[t],r):t&&t instanceof R?ci(e,dc(t),r):null!=t&&t.type&&t.type instanceof R?ci(e,dc(t.type),r):ci(e,y.NONE,r)}function ci(e,t,r=!0){let i=null;switch(t){case y.Null:i=e.visitNull;break;case y.Bool:i=e.visitBool;break;case y.Int:i=e.visitInt;break;case y.Int8:i=e.visitInt8||e.visitInt;break;case y.Int16:i=e.visitInt16||e.visitInt;break;case y.Int32:i=e.visitInt32||e.visitInt;break;case y.Int64:i=e.visitInt64||e.visitInt;break;case y.Uint8:i=e.visitUint8||e.visitInt;break;case y.Uint16:i=e.visitUint16||e.visitInt;break;case y.Uint32:i=e.visitUint32||e.visitInt;break;case y.Uint64:i=e.visitUint64||e.visitInt;break;case y.Float:i=e.visitFloat;break;case y.Float16:i=e.visitFloat16||e.visitFloat;break;case y.Float32:i=e.visitFloat32||e.visitFloat;break;case y.Float64:i=e.visitFloat64||e.visitFloat;break;case y.Utf8:i=e.visitUtf8;break;case y.LargeUtf8:i=e.visitLargeUtf8;break;case y.Binary:i=e.visitBinary;break;case y.LargeBinary:i=e.visitLargeBinary;break;case y.FixedSizeBinary:i=e.visitFixedSizeBinary;break;case y.Date:i=e.visitDate;break;case y.DateDay:i=e.visitDateDay||e.visitDate;break;case y.DateMillisecond:i=e.visitDateMillisecond||e.visitDate;break;case y.Timestamp:i=e.visitTimestamp;break;case y.TimestampSecond:i=e.visitTimestampSecond||e.visitTimestamp;break;case y.TimestampMillisecond:i=e.visitTimestampMillisecond||e.visitTimestamp;break;case y.TimestampMicrosecond:i=e.visitTimestampMicrosecond||e.visitTimestamp;break;case y.TimestampNanosecond:i=e.visitTimestampNanosecond||e.visitTimestamp;break;case y.Time:i=e.visitTime;break;case y.TimeSecond:i=e.visitTimeSecond||e.visitTime;break;case y.TimeMillisecond:i=e.visitTimeMillisecond||e.visitTime;break;case y.TimeMicrosecond:i=e.visitTimeMicrosecond||e.visitTime;break;case y.TimeNanosecond:i=e.visitTimeNanosecond||e.visitTime;break;case y.Decimal:i=e.visitDecimal;break;case y.List:i=e.visitList;break;case y.Struct:i=e.visitStruct;break;case y.Union:i=e.visitUnion;break;case y.DenseUnion:i=e.visitDenseUnion||e.visitUnion;break;case y.SparseUnion:i=e.visitSparseUnion||e.visitUnion;break;case y.Dictionary:i=e.visitDictionary;break;case y.Interval:i=e.visitInterval;break;case y.IntervalDayTime:i=e.visitIntervalDayTime||e.visitInterval;break;case y.IntervalYearMonth:i=e.visitIntervalYearMonth||e.visitInterval;break;case y.Duration:i=e.visitDuration;break;case y.DurationSecond:i=e.visitDurationSecond||e.visitDuration;break;case y.DurationMillisecond:i=e.visitDurationMillisecond||e.visitDuration;break;case y.DurationMicrosecond:i=e.visitDurationMicrosecond||e.visitDuration;break;case y.DurationNanosecond:i=e.visitDurationNanosecond||e.visitDuration;break;case y.FixedSizeList:i=e.visitFixedSizeList;break;case y.Map:i=e.visitMap}if("function"==typeof i)return i;if(!r)return()=>null;throw new Error("Unrecognized type '".concat(y[t],"'"))}function dc(e){switch(e.typeId){case y.Null:return y.Null;case y.Int:{let{bitWidth:t,isSigned:r}=e;switch(t){case 8:return r?y.Int8:y.Uint8;case 16:return r?y.Int16:y.Uint16;case 32:return r?y.Int32:y.Uint32;case 64:return r?y.Int64:y.Uint64}return y.Int}case y.Float:switch(e.precision){case pe.HALF:return y.Float16;case pe.SINGLE:return y.Float32;case pe.DOUBLE:return y.Float64}return y.Float;case y.Binary:return y.Binary;case y.LargeBinary:return y.LargeBinary;case y.Utf8:return y.Utf8;case y.LargeUtf8:return y.LargeUtf8;case y.Bool:return y.Bool;case y.Decimal:return y.Decimal;case y.Time:switch(e.unit){case G.SECOND:return y.TimeSecond;case G.MILLISECOND:return y.TimeMillisecond;case G.MICROSECOND:return y.TimeMicrosecond;case G.NANOSECOND:return y.TimeNanosecond}return y.Time;case y.Timestamp:switch(e.unit){case G.SECOND:return y.TimestampSecond;case G.MILLISECOND:return y.TimestampMillisecond;case G.MICROSECOND:return y.TimestampMicrosecond;case G.NANOSECOND:return y.TimestampNanosecond}return y.Timestamp;case y.Date:switch(e.unit){case Ae.DAY:return y.DateDay;case Ae.MILLISECOND:return y.DateMillisecond}return y.Date;case y.Interval:switch(e.unit){case Ce.DAY_TIME:return y.IntervalDayTime;case Ce.YEAR_MONTH:return y.IntervalYearMonth}return y.Interval;case y.Duration:switch(e.unit){case G.SECOND:return y.DurationSecond;case G.MILLISECOND:return y.DurationMillisecond;case G.MICROSECOND:return y.DurationMicrosecond;case G.NANOSECOND:return y.DurationNanosecond}return y.Duration;case y.Map:return y.Map;case y.List:return y.List;case y.Struct:return y.Struct;case y.Union:switch(e.mode){case he.Dense:return y.DenseUnion;case he.Sparse:return y.SparseUnion}return y.Union;case y.FixedSizeBinary:return y.FixedSizeBinary;case y.FixedSizeList:return y.FixedSizeList;case y.Dictionary:return y.Dictionary}throw new Error("Unrecognized type '".concat(y[e.typeId],"'"))}j.prototype.visitInt8=null,j.prototype.visitInt16=null,j.prototype.visitInt32=null,j.prototype.visitInt64=null,j.prototype.visitUint8=null,j.prototype.visitUint16=null,j.prototype.visitUint32=null,j.prototype.visitUint64=null,j.prototype.visitFloat16=null,j.prototype.visitFloat32=null,j.prototype.visitFloat64=null,j.prototype.visitDateDay=null,j.prototype.visitDateMillisecond=null,j.prototype.visitTimestampSecond=null,j.prototype.visitTimestampMillisecond=null,j.prototype.visitTimestampMicrosecond=null,j.prototype.visitTimestampNanosecond=null,j.prototype.visitTimeSecond=null,j.prototype.visitTimeMillisecond=null,j.prototype.visitTimeMicrosecond=null,j.prototype.visitTimeNanosecond=null,j.prototype.visitDenseUnion=null,j.prototype.visitSparseUnion=null,j.prototype.visitIntervalDayTime=null,j.prototype.visitIntervalYearMonth=null,j.prototype.visitDuration=null,j.prototype.visitDurationSecond=null,j.prototype.visitDurationMillisecond=null,j.prototype.visitDurationMicrosecond=null,j.prototype.visitDurationNanosecond=null;var Pa={};mr(Pa,{float64ToUint16:()=>Xi,uint16ToFloat64:()=>es});var fc=new Float64Array(1),li=new Uint32Array(fc.buffer);function es(e){let t=(31744&e)>>10,r=(1023&e)/1024,i=Math.pow(-1,(32768&e)>>15);switch(t){case 31:return i*(r?Number.NaN:1/0);case 0:return i*(r?6103515625e-14*r:0)}return i*Math.pow(2,t-15)*(1+r)}function Xi(e){if(e!=e)return 32256;fc[0]=e;let t=(2147483648&li[1])>>16&65535,r=2146435072&li[1],i=0;return r>=1089470464?li[0]>0?r=31744:(r=(2080374784&r)>>16,i=(1048575&li[1])>>10):r<=1056964608?(i=1048576+(1048575&li[1]),i=1048576+(i<<(r>>20)-998)>>21,r=0):(r=r-1056964608>>10,i=512+(1048575&li[1])>>10),t|r|65535&i}var V=class extends j{};function Y(e){return(t,r,i)=>{if(t.setValid(r,null!=i))return e(t,r,i)}}var Iu=(e,t,r)=>{e[t]=Math.floor(r/864e5)},pc=(e,t,r,i)=>{if(r+1{let n=e+r;i?t[n>>3]|=1<>3]&=~(1<{e[t]=r},Ia=({values:e},t,r)=>{e[t]=r},mc=({values:e},t,r)=>{e[t]=Xi(r)},Ru=(e,t,r)=>{switch(e.type.precision){case pe.HALF:return mc(e,t,r);case pe.SINGLE:case pe.DOUBLE:return Ia(e,t,r)}},ts=({values:e},t,r)=>{Iu(e,t,r.valueOf())},rs=({values:e},t,r)=>{e[t]=BigInt(r)},Ba=({stride:e,values:t},r,i)=>{t.set(i.subarray(0,e),e*r)},hc=({values:e,valueOffsets:t},r,i)=>pc(e,t,r,i),gc=({values:e,valueOffsets:t},r,i)=>pc(e,t,r,xt(i)),Ra=(e,t,r)=>{e.type.unit===Ae.DAY?ts(e,t,r):rs(e,t,r)},is=({values:e},t,r)=>{e[t]=BigInt(r/1e3)},ns=({values:e},t,r)=>{e[t]=BigInt(r)},ss=({values:e},t,r)=>{e[t]=BigInt(1e3*r)},as=({values:e},t,r)=>{e[t]=BigInt(1e6*r)},Ga=(e,t,r)=>{switch(e.type.unit){case G.SECOND:return is(e,t,r);case G.MILLISECOND:return ns(e,t,r);case G.MICROSECOND:return ss(e,t,r);case G.NANOSECOND:return as(e,t,r)}},os=({values:e},t,r)=>{e[t]=r},cs=({values:e},t,r)=>{e[t]=r},ls=({values:e},t,r)=>{e[t]=r},us=({values:e},t,r)=>{e[t]=r},Ua=(e,t,r)=>{switch(e.type.unit){case G.SECOND:return os(e,t,r);case G.MILLISECOND:return cs(e,t,r);case G.MICROSECOND:return ls(e,t,r);case G.NANOSECOND:return us(e,t,r)}},ja=({values:e,stride:t},r,i)=>{e.set(i.subarray(0,t),t*r)},Gu=(e,t,r)=>{let i=e.children[0],n=e.valueOffsets,a=Re.getVisitFn(i);if(Array.isArray(r))for(let e=-1,s=n[t],o=n[t+1];s{let i=e.children[0],{valueOffsets:n}=e,a=Re.getVisitFn(i),{[t]:s,[t+1]:o}=n,l=r instanceof Map?r.entries():Object.entries(r);for(let e of l)if(a(i,s,e),++s>=o)break},ju=(e,t)=>(r,i,n,a)=>i&&r(i,e,t[a]),Ou=(e,t)=>(r,i,n,a)=>i&&r(i,e,t.get(a)),Hu=(e,t)=>(r,i,n,a)=>i&&r(i,e,t.get(n.name)),Nu=(e,t)=>(r,i,n,a)=>i&&r(i,e,t[n.name]),Wu=(e,t,r)=>{let i=e.type.children.map((e=>Re.getVisitFn(e.type))),n=r instanceof Map?Hu(t,r):r instanceof se?Ou(t,r):Array.isArray(r)?ju(t,r):Nu(t,r);e.type.children.forEach(((t,r)=>n(i[r],e.children[r],t,r)))},Vu=(e,t,r)=>{e.type.mode===he.Dense?vc(e,t,r):yc(e,t,r)},vc=(e,t,r)=>{let i=e.type.typeIdToChildIndex[e.typeIds[t]],n=e.children[i];Re.visit(n,e.valueOffsets[t],r)},yc=(e,t,r)=>{let i=e.type.typeIdToChildIndex[e.typeIds[t]],n=e.children[i];Re.visit(n,t,r)},zu=(e,t,r)=>{var i;null===(i=e.dictionary)||void 0===i||i.set(e.values[t],r)},Oa=(e,t,r)=>{e.type.unit===Ce.DAY_TIME?_s(e,t,r):ds(e,t,r)},_s=({values:e},t,r)=>{e.set(r.subarray(0,2),2*t)},ds=({values:e},t,r)=>{e[t]=12*r[0]+r[1]%12},ps=({values:e},t,r)=>{e[t]=r},ms=({values:e},t,r)=>{e[t]=r},hs=({values:e},t,r)=>{e[t]=r},gs=({values:e},t,r)=>{e[t]=r},Ha=(e,t,r)=>{switch(e.type.unit){case G.SECOND:return ps(e,t,r);case G.MILLISECOND:return ms(e,t,r);case G.MICROSECOND:return hs(e,t,r);case G.NANOSECOND:return gs(e,t,r)}},$u=(e,t,r)=>{let{stride:i}=e,n=e.children[0],a=Re.getVisitFn(n);if(Array.isArray(r))for(let e=-1,s=t*i;++e"".concat(vt(e),": ").concat(vt(t)))).join(", "),"}")}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Na(this[Lt],this[ui])}},Na=class{constructor(e,t){this.childIndex=0,this.children=e.children,this.rowIndex=t,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){let e=this.childIndex;return ee.name))}has(e,t){return-1!==e[Lt].type.children.findIndex((e=>e.name===t))}getOwnPropertyDescriptor(e,t){if(-1!==e[Lt].type.children.findIndex((e=>e.name===t)))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let r=e[Lt].type.children.findIndex((e=>e.name===t));if(-1!==r){let i=Te.visit(e[Lt].children[r],e[ui]);return Reflect.set(e,t,i),i}}set(e,t,r){let i=e[Lt].type.children.findIndex((e=>e.name===t));return-1!==i?(Re.visit(e[Lt].children[i],e[ui],r),Reflect.set(e,t,r)):!(!Reflect.has(e,t)&&"symbol"!=typeof t)&&Reflect.set(e,t,r)}},O=class extends j{};function $(e){return(t,r)=>t.getValid(r)?e(t,r):null}var qu=(e,t)=>864e5*e[t],Xu=(e,t)=>null,bc=(e,t,r)=>{if(r+1>=t.length)return null;let i=ae(t[r]),n=ae(t[r+1]);return e.subarray(i,n)},Qu=({offset:e,values:t},r)=>{let i=e+r;return 0!=(t[i>>3]&1<qu(e,t),wc=({values:e},t)=>ae(e[t]),Ar=({stride:e,values:t},r)=>t[e*r],Yu=({stride:e,values:t},r)=>es(t[e*r]),Ec=({values:e},t)=>e[t],Ju=({stride:e,values:t},r)=>t.subarray(e*r,e*(r+1)),Lc=({values:e,valueOffsets:t},r)=>bc(e,t,r),Ac=({values:e,valueOffsets:t},r)=>{let i=bc(e,t,r);return null!==i?Ci(i):null},Ku=({values:e},t)=>e[t],Zu=({type:e,values:t},r)=>e.precision!==pe.HALF?t[r]:es(t[r]),e_=(e,t)=>e.type.unit===Ae.DAY?Sc(e,t):wc(e,t),Dc=({values:e},t)=>1e3*ae(e[t]),kc=({values:e},t)=>ae(e[t]),Tc=({values:e},t)=>Fa(e[t],BigInt(1e3)),Fc=({values:e},t)=>Fa(e[t],BigInt(1e6)),t_=(e,t)=>{switch(e.type.unit){case G.SECOND:return Dc(e,t);case G.MILLISECOND:return kc(e,t);case G.MICROSECOND:return Tc(e,t);case G.NANOSECOND:return Fc(e,t)}},xc=({values:e},t)=>e[t],Cc=({values:e},t)=>e[t],Mc=({values:e},t)=>e[t],Pc=({values:e},t)=>e[t],r_=(e,t)=>{switch(e.type.unit){case G.SECOND:return xc(e,t);case G.MILLISECOND:return Cc(e,t);case G.MICROSECOND:return Mc(e,t);case G.NANOSECOND:return Pc(e,t)}},i_=({values:e,stride:t},r)=>qi.decimal(e.subarray(t*r,t*(r+1))),n_=(e,t)=>{let{valueOffsets:r,stride:i,children:n}=e,{[t*i]:a,[t*i+1]:s}=r,o=n[0].slice(a,s-a);return new se([o])},s_=(e,t)=>{let{valueOffsets:r,children:i}=e,{[t]:n,[t+1]:a}=r,s=i[0];return new Rt(s.slice(n,a-n))},a_=(e,t)=>new Lr(e,t),o_=(e,t)=>e.type.mode===he.Dense?Ic(e,t):Bc(e,t),Ic=(e,t)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];return Te.visit(i,e.valueOffsets[t])},Bc=(e,t)=>{let r=e.type.typeIdToChildIndex[e.typeIds[t]],i=e.children[r];return Te.visit(i,t)},c_=(e,t)=>{var r;return null===(r=e.dictionary)||void 0===r?void 0:r.get(e.values[t])},l_=(e,t)=>e.type.unit===Ce.DAY_TIME?Rc(e,t):Gc(e,t),Rc=({values:e},t)=>e.subarray(2*t,2*(t+1)),Gc=({values:e},t)=>{let r=e[t],i=new Int32Array(2);return i[0]=Math.trunc(r/12),i[1]=Math.trunc(r%12),i},Uc=({values:e},t)=>e[t],jc=({values:e},t)=>e[t],Oc=({values:e},t)=>e[t],Hc=({values:e},t)=>e[t],u_=(e,t)=>{switch(e.type.unit){case G.SECOND:return Uc(e,t);case G.MILLISECOND:return jc(e,t);case G.MICROSECOND:return Oc(e,t);case G.NANOSECOND:return Hc(e,t)}},__=(e,t)=>{let{stride:r,children:i}=e,n=i[0].slice(t*r,r);return new se([n])};O.prototype.visitNull=$(Xu),O.prototype.visitBool=$(Qu),O.prototype.visitInt=$(Ku),O.prototype.visitInt8=$(Ar),O.prototype.visitInt16=$(Ar),O.prototype.visitInt32=$(Ar),O.prototype.visitInt64=$(Ec),O.prototype.visitUint8=$(Ar),O.prototype.visitUint16=$(Ar),O.prototype.visitUint32=$(Ar),O.prototype.visitUint64=$(Ec),O.prototype.visitFloat=$(Zu),O.prototype.visitFloat16=$(Yu),O.prototype.visitFloat32=$(Ar),O.prototype.visitFloat64=$(Ar),O.prototype.visitUtf8=$(Ac),O.prototype.visitLargeUtf8=$(Ac),O.prototype.visitBinary=$(Lc),O.prototype.visitLargeBinary=$(Lc),O.prototype.visitFixedSizeBinary=$(Ju),O.prototype.visitDate=$(e_),O.prototype.visitDateDay=$(Sc),O.prototype.visitDateMillisecond=$(wc),O.prototype.visitTimestamp=$(t_),O.prototype.visitTimestampSecond=$(Dc),O.prototype.visitTimestampMillisecond=$(kc),O.prototype.visitTimestampMicrosecond=$(Tc),O.prototype.visitTimestampNanosecond=$(Fc),O.prototype.visitTime=$(r_),O.prototype.visitTimeSecond=$(xc),O.prototype.visitTimeMillisecond=$(Cc),O.prototype.visitTimeMicrosecond=$(Mc),O.prototype.visitTimeNanosecond=$(Pc),O.prototype.visitDecimal=$(i_),O.prototype.visitList=$(n_),O.prototype.visitStruct=$(a_),O.prototype.visitUnion=$(o_),O.prototype.visitDenseUnion=$(Ic),O.prototype.visitSparseUnion=$(Bc),O.prototype.visitDictionary=$(c_),O.prototype.visitInterval=$(l_),O.prototype.visitIntervalDayTime=$(Rc),O.prototype.visitIntervalYearMonth=$(Gc),O.prototype.visitDuration=$(u_),O.prototype.visitDurationSecond=$(Uc),O.prototype.visitDurationMillisecond=$(jc),O.prototype.visitDurationMicrosecond=$(Oc),O.prototype.visitDurationNanosecond=$(Hc),O.prototype.visitFixedSizeList=$(__),O.prototype.visitMap=$(s_);var Te=new O,Dr=Symbol.for("keys"),di=Symbol.for("vals"),_i=Symbol.for("kKeysAsStrings"),Va=Symbol.for("_kKeysAsStrings"),Rt=class{constructor(e){return this[Dr]=new se([e.children[0]]).memoize(),this[di]=e.children[1],new Proxy(this,new $a)}get[_i](){return this[Va]||(this[Va]=Array.from(this[Dr].toArray(),String))}[Symbol.iterator](){return new za(this[Dr],this[di])}get size(){return this[Dr].length}toArray(){return Object.values(this.toJSON())}toJSON(){let e=this[Dr],t=this[di],r={};for(let i=-1,n=e.length;++i"".concat(vt(e),": ").concat(vt(t)))).join(", "),"}")}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}},za=class{constructor(e,t){this.keys=e,this.vals=t,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){let e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),Te.visit(this.vals,e)]})}},$a=class{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[_i]}has(e,t){return e[_i].includes(t)}getOwnPropertyDescriptor(e,t){if(-1!==e[_i].indexOf(t))return{writable:!0,enumerable:!0,configurable:!0}}get(e,t){if(Reflect.has(e,t))return e[t];let r=e[_i].indexOf(t);if(-1!==r){let i=Te.visit(Reflect.get(e,di),r);return Reflect.set(e,t,i),i}}set(e,t,r){let i=e[_i].indexOf(t);return-1!==i?(Re.visit(Reflect.get(e,di),i,r),Reflect.set(e,t,r)):!!Reflect.has(e,t)&&Reflect.set(e,t,r)}},Nc;function Qi(e,t,r,i){let{length:n=0}=e,a="number"!=typeof t?0:t,s="number"!=typeof r?n:r;return a<0&&(a=(a%n+n)%n),s<0&&(s=(s%n+n)%n),sn&&(s=n),i?i(e,a,s):[a,s]}Object.defineProperties(Rt.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Dr]:{writable:!0,enumerable:!1,configurable:!1,value:null},[di]:{writable:!0,enumerable:!1,configurable:!1,value:null},[Va]:{writable:!0,enumerable:!1,configurable:!1,value:null}});var Rr=(e,t)=>e<0?t+e:e,Wc=e=>e!=e;function kr(e){if("object"!=typeof e||null===e)return Wc(e)?Wc:t=>t===e;if(e instanceof Date){let t=e.valueOf();return e=>e instanceof Date&&e.valueOf()===t}return ArrayBuffer.isView(e)?t=>!!t&&La(e,t):e instanceof Map?f_(e):Array.isArray(e)?d_(e):e instanceof se?p_(e):m_(e,!0)}function d_(e){let t=[];for(let r=-1,i=e.length;++r!1;let i=[];for(let t=-1,n=r.length;++t{if(!r||"object"!=typeof r)return!1;switch(r.constructor){case Array:return h_(e,r);case Map:return Vc(e,r,r.keys());case Rt:case Lr:case Object:case void 0:return Vc(e,r,t||Object.keys(r))}return r instanceof se&&g_(e,r)}}function h_(e,t){let r=e.length;if(t.length!==r)return!1;for(let i=-1;++i>i}function v_(e,t,r){return r?!!(e[t>>3]|=1<>3]&=~(1<0||r.byteLength>3):jr(new Gr(r,e,t,null,bs)).subarray(0,i)),n}return r}function jr(e){let t=[],r=0,i=0,n=0;for(let a of e)a&&(n|=1<0)&&(t[r++]=n);let a=new Uint8Array(t.length+7&-8);return a.set(t),a}mr(Xa,{BitIterator:()=>Gr,getBit:()=>zc,getBool:()=>bs,packBools:()=>jr,popcnt_array:()=>$c,popcnt_bit_range:()=>Yi,popcnt_uint32:()=>ys,setBool:()=>v_,truncateBitmap:()=>Ur});var Gr=class{constructor(e,t,r,i,n){this.bytes=e,this.length=r,this.context=i,this.get=n,this.bit=t%8,this.byteIndex=t>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index>3<<3,n=t+(t%8==0?0:8-t%8);return Yi(e,t,n)+Yi(e,i,r)+$c(e,n>>3,i-n>>3)}function $c(e,t,r){let i=0,n=Math.trunc(t),a=new DataView(e.buffer,e.byteOffset,e.byteLength),s=void 0===r?e.byteLength:n+r;for(;s-n>=4;)i+=ys(a.getUint32(n)),n+=4;for(;s-n>=2;)i+=ys(a.getUint16(n)),n+=2;for(;s-n>=1;)i+=ys(a.getUint8(n)),n+=1;return i}function ys(e){let t=Math.trunc(e);return t-=t>>>1&1431655765,t=(858993459&t)+(t>>>2&858993459),16843009*(t+(t>>>4)&252645135)>>>24}var y_=-1,le=class e{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(0!==this._nullCount){let{type:e}=this;return R.isSparseUnion(e)||R.isDenseUnion(e)?this.children.some((e=>e.nullable)):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let e=0,{valueOffsets:t,values:r,nullBitmap:i,typeIds:n}=this;return t&&(e+=t.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),this.children.reduce(((e,t)=>e+t.byteLength),e)}get nullCount(){if(R.isUnion(this.type))return this.children.reduce(((e,t)=>e+t.nullCount),0);let e,t=this._nullCount;return t<=y_&&(e=this.nullBitmap)&&(this._nullCount=t=0===e.length?0:this.length-Yi(e,this.offset,this.offset+this.length)),t}constructor(t,r,i,n,a,s=[],o){let l;this.type=t,this.children=s,this.dictionary=o,this.offset=Math.floor(Math.max(r||0,0)),this.length=Math.floor(Math.max(i||0,0)),this._nullCount=Math.floor(Math.max(n||0,-1)),a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=tt(t),a&&((l=a[0])&&(this.valueOffsets=l),(l=a[1])&&(this.values=l),(l=a[2])&&(this.nullBitmap=l),(l=a[3])&&(this.typeIds=l)))}getValid(e){let{type:t}=this;if(R.isUnion(t)){let r=t,i=this.children[r.typeIdToChildIndex[this.typeIds[e]]],n=r.mode===he.Dense?this.valueOffsets[e]:e;return i.getValid(n)}if(this.nullable&&this.nullCount>0){let t=this.offset+e;return 0!=(this.nullBitmap[t>>3]&1<>3;(!i||i.byteLength<=l)&&(i=new Uint8Array((n+a+63&-64)>>3).fill(255),this.nullCount>0?(i.set(Ur(n,a,this.nullBitmap),0),Object.assign(this,{nullBitmap:i})):Object.assign(this,{nullBitmap:i,_nullCount:0}));let c=i[l];r=0!=(c&o),i[l]=t?c|o:c&~o}return r!==!!t&&(this._nullCount=this.nullCount+(t?-1:1)),t}clone(t=this.type,r=this.offset,i=this.length,n=this._nullCount,a=this,s=this.children){return new e(t,r,i,n,a,s,this.dictionary)}slice(e,t){let{stride:r,typeId:i,children:n}=this,a=+(0===this._nullCount)-1,s=16===i?r:1,o=this._sliceBuffers(e,t,r,i);return this.clone(this.type,this.offset+e,t,a,o,0===n.length||this.valueOffsets?n:this._sliceChildren(n,s*e,s*t))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===y.Null)return this.clone(this.type,0,e,0);let{length:t,nullCount:r}=this,i=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);i[t>>3]=(1<0&&i.set(Ur(this.offset,t,this.nullBitmap),0);let n=this.buffers;return n[st.VALIDITY]=i,this.clone(this.type,0,e,r+(e-t),n)}_sliceBuffers(e,t,r,i){let n,{buffers:a}=this;return(n=a[st.TYPE])&&(a[st.TYPE]=n.subarray(e,e+t)),(n=a[st.OFFSET])&&(a[st.OFFSET]=n.subarray(e,e+t+1))||(n=a[st.DATA])&&(a[st.DATA]=6===i?n:n.subarray(r*e,r*(e+t))),a}_sliceChildren(e,t,r){return e.map((e=>e.slice(t,r)))}};le.prototype.children=Object.freeze([]);var Qa=class e extends j{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){let{type:t,offset:r=0,length:i=0}=e;return new le(t,r,i,i)}visitBool(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length>>3,nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitInt(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitFloat(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitUtf8(e){let{type:t,offset:r=0}=e,i=z(e.data),n=z(e.nullBitmap),a=Ir(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,i,n])}visitLargeUtf8(e){let{type:t,offset:r=0}=e,i=z(e.data),n=z(e.nullBitmap),a=Gn(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,i,n])}visitBinary(e){let{type:t,offset:r=0}=e,i=z(e.data),n=z(e.nullBitmap),a=Ir(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,i,n])}visitLargeBinary(e){let{type:t,offset:r=0}=e,i=z(e.data),n=z(e.nullBitmap),a=Gn(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,i,n])}visitFixedSizeBinary(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitDate(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitTimestamp(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitTime(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitDecimal(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitList(e){let{type:t,offset:r=0,child:i}=e,n=z(e.nullBitmap),a=Ir(e.valueOffsets),{length:s=a.length-1,nullCount:o=(e.nullBitmap?-1:0)}=e;return new le(t,r,s,o,[a,void 0,n],[i])}visitStruct(e){let{type:t,offset:r=0,children:i=[]}=e,n=z(e.nullBitmap),{length:a=i.reduce(((e,{length:t})=>Math.max(e,t)),0),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,void 0,n],i)}visitUnion(e){let{type:t,offset:r=0,children:i=[]}=e,n=re(t.ArrayType,e.typeIds),{length:a=n.length,nullCount:s=-1}=e;if(R.isSparseUnion(t))return new le(t,r,a,s,[void 0,void 0,void 0,n],i);let o=Ir(e.valueOffsets);return new le(t,r,a,s,[o,void 0,void 0,n],i)}visitDictionary(t){let{type:r,offset:i=0}=t,n=z(t.nullBitmap),a=re(r.indices.ArrayType,t.data),{dictionary:s=new se([(new e).visit({type:r.dictionary})])}=t,{length:o=a.length,nullCount:l=(t.nullBitmap?-1:0)}=t;return new le(r,i,o,l,[void 0,a,n],[],s)}visitInterval(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length/tt(t),nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitDuration(e){let{type:t,offset:r=0}=e,i=z(e.nullBitmap),n=re(t.ArrayType,e.data),{length:a=n.length,nullCount:s=(e.nullBitmap?-1:0)}=e;return new le(t,r,a,s,[void 0,n,i])}visitFixedSizeList(t){let{type:r,offset:i=0,child:n=(new e).visit({type:r.valueType})}=t,a=z(t.nullBitmap),{length:s=n.length/tt(r),nullCount:o=(t.nullBitmap?-1:0)}=t;return new le(r,i,s,o,[void 0,void 0,a],[n])}visitMap(t){let{type:r,offset:i=0,child:n=(new e).visit({type:r.childType})}=t,a=z(t.nullBitmap),s=Ir(t.valueOffsets),{length:o=s.length-1,nullCount:l=(t.nullBitmap?-1:0)}=t;return new le(r,i,o,l,[s,void 0,a],[n])}},b_=new Qa;function J(e){return b_.visit(e)}var Ji=class{constructor(e=0,t){this.numChunks=e,this.getChunkIterator=t,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndexe.nullable))}function Ss(e){return e.reduce(((e,t)=>e+t.nullCount),0)}function ws(e){return e.reduce(((e,t,r)=>(e[r+1]=e[r]+t.length,e)),new Uint32Array(e.length+1))}function Es(e,t,r,i){let n=[];for(let a=-1,s=e.length;++a=i)break;if(r>=o+l)continue;if(o>=r&&o+l<=i){n.push(s);continue}let c=Math.max(0,r-o),_=Math.min(i-o,l);n.push(s.slice(c,_-c))}return 0===n.length&&n.push(e[0].slice(0,0)),n}function Ya(e,t,r,i){let n=0,a=0,s=t.length-1;do{if(n>=s-1)return r0?0:-1}function w_(e,t){let{nullBitmap:r}=e;if(!r||e.nullCount<=0)return-1;let i=0;for(let n of new Gr(r,e.offset+(t||0),e.length,r,bs)){if(!n)return i;++i}return-1}function K(e,t,r){if(void 0===t)return-1;if(null===t)switch(e.typeId){case y.Union:case y.Dictionary:break;default:return w_(e,r)}let i=Te.getVisitFn(e),n=kr(t);for(let t=(r||0)-1,a=e.length;++t{let r=e.data[t];return r.values.subarray(0,r.length)[Symbol.iterator]()}));let r=0;return new Ji(e.data.length,(t=>{let i=e.data[t].length,n=e.slice(r,r+i);return r+=i,new Ja(n)}))}var Ja=class{constructor(e){this.vector=e,this.index=0}next(){return this.indexe.data)):t;if(0===a.length||a.some((e=>!(e instanceof le))))throw new TypeError("Vector constructor expects an Array of Data instances.");let s=null===(r=a[0])||void 0===r?void 0:r.type;switch(a.length){case 0:this._offsets=[0];break;case 1:{let{get:e,set:t,indexOf:r}=Yc[s.typeId],i=a[0];this.isValid=e=>Ki(i,e),this.get=t=>e(i,t),this.set=(e,r)=>t(i,e,r),this.indexOf=e=>r(i,e),this._offsets=[0,i.length];break}default:Object.setPrototypeOf(this,Jc[s.typeId]),this._offsets=ws(a)}this.data=a,this.type=s,this.stride=tt(s),this.numChildren=null!==(n=null===(i=s.children)||void 0===i?void 0:i.length)&&void 0!==n?n:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce(((e,t)=>e+t.byteLength),0)}get nullable(){return qc(this.data)}get nullCount(){return Ss(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return"".concat(this.VectorName,"<").concat(this.type[Symbol.toStringTag],">")}get VectorName(){return"".concat(y[this.type.typeId],"Vector")}isValid(e){return!1}get(e){return null}at(e){return this.get(Rr(e,this.length))}set(e,t){}indexOf(e,t){return-1}includes(e,t){return this.indexOf(e,t)>-1}[Symbol.iterator](){return pi.visit(this)}concat(...t){return new e(this.data.concat(t.flatMap((e=>e.data)).flat(Number.POSITIVE_INFINITY)))}slice(t,r){return new e(Qi(this,t,r,(({data:e,_offsets:t},r,i)=>Es(e,t,r,i))))}toJSON(){return[...this]}toArray(){let{type:e,data:t,length:r,stride:i,ArrayType:n}=this;switch(e.typeId){case y.Int:case y.Float:case y.Decimal:case y.Time:case y.Timestamp:switch(t.length){case 0:return new n;case 1:return t[0].values.subarray(0,r*i);default:return t.reduce(((e,{values:t,length:r})=>(e.array.set(t.subarray(0,r*i),e.offset),e.offset+=r*i,e)),{array:new n(r*i),offset:0}).array}}return[...this]}toString(){return"[".concat([...this].join(","),"]")}getChild(e){var t;return this.getChildAt(null===(t=this.type.children)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(t){return t>-1&&te[t]))):null}get isMemoized(){return!!R.isDictionary(this.type)&&this.data[0].dictionary.isMemoized}memoize(){if(R.isDictionary(this.type)){let t=new Ds(this.data[0].dictionary),r=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new e(r)}return new Ds(this)}unmemoize(){if(R.isDictionary(this.type)&&this.isMemoized){let t=this.data[0].dictionary.unmemoize(),r=this.data.map((e=>{let r=e.clone();return r.dictionary=t,r}));return new e(r)}return this}};Qc=Symbol.toStringTag,se[Qc]=(e=>{e.type=R.prototype,e.data=[],e.length=0,e.stride=1,e.numChildren=0,e._offsets=new Uint32Array([0]),e[Symbol.isConcatSpreadable]=!0;let t=Object.keys(y).map((e=>y[e])).filter((e=>"number"==typeof e&&e!==y.NONE));for(let r of t){let t=Te.getVisitFnByTypeId(r),i=Re.getVisitFnByTypeId(r),n=Or.getVisitFnByTypeId(r);Yc[r]={get:t,set:i,indexOf:n},Jc[r]=Object.create(e,{isValid:{value:fi(Ki)},get:{value:fi(Te.getVisitFnByTypeId(r))},set:{value:Ls(Re.getVisitFnByTypeId(r))},indexOf:{value:As(Or.getVisitFnByTypeId(r))}})}return"Vector"})(se.prototype);var Ds=class e extends se{constructor(t){super(t.data);let r=this.get,i=this.set,n=this.slice,a=new Array(this.length);Object.defineProperty(this,"get",{value(e){let t=a[e];if(void 0!==t)return t;let i=r.call(this,e);return a[e]=i,i}}),Object.defineProperty(this,"set",{value(e,t){i.call(this,e,t),a[e]=t}}),Object.defineProperty(this,"slice",{value:(t,r)=>new e(n.call(this,t,r))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new se(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}};function Kc(e){if(!e||e.length<=0)return function(e){return!0};let t="",r=e.filter((e=>e==e));return r.length>0&&(t="\n switch (x) {".concat(r.map((e=>"\n case ".concat(E_(e),":"))).join(""),"\n return false;\n }")),e.length!==r.length&&(t="if (x !== x) return false;\n".concat(t)),new Function("x","".concat(t,"\nreturn true;"))}function E_(e){return"bigint"!=typeof e?vt(e):"".concat(vt(e),"n")}function Ka(e,t){let r=Math.ceil(e)*t-1;return(r-r%64+64||64)/t}function Zc(e,t=0){return e.length>=t?e.subarray(0,t):Pi(new e.constructor(t),e,0)}var At=class{constructor(e,t=0,r=1){this.length=Math.ceil(t/r),this.buffer=new e(this.length),this.stride=r,this.BYTES_PER_ELEMENT=e.BYTES_PER_ELEMENT,this.ArrayType=e}get byteLength(){return Math.ceil(this.length*this.stride)*this.BYTES_PER_ELEMENT}get reservedLength(){return this.buffer.length/this.stride}get reservedByteLength(){return this.buffer.byteLength}set(e,t){return this}append(e){return this.set(this.length,e)}reserve(e){if(e>0){this.length+=e;let t=this.stride,r=this.length*t,i=this.buffer.length;r>=i&&this._resize(Ka(0===i?1*r:2*r,this.BYTES_PER_ELEMENT))}return this}flush(e=this.length){e=Ka(e*this.stride,this.BYTES_PER_ELEMENT);let t=Zc(this.buffer,e);return this.clear(),t}clear(){return this.length=0,this.buffer=new this.ArrayType,this}_resize(e){return this.buffer=Zc(this.buffer,e)}},ir=class extends At{last(){return this.get(this.length-1)}get(e){return this.buffer[e]}set(e,t){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=t,this}},mi=class extends ir{constructor(){super(Uint8Array,0,1/8),this.numValid=0}get numInvalid(){return this.length-this.numValid}get(e){return this.buffer[e>>3]>>e%8&1}set(e,t){let{buffer:r}=this.reserve(e-this.length+1),i=e>>3,n=e%8,a=r[i]>>n&1;return t?0===a&&(r[i]|=1<=0&&i.fill(i[r],r,e),i[e]=i[e-1]+t,this}flush(e=this.length-1){return e>this.length&&this.set(e-1,this.BYTES_PER_ELEMENT>4?BigInt(0):0),super.flush(e+1)}},Se=class{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e){throw new Error('"throughDOM" not available in this environment')}constructor({type:e,nullValues:t}){this.length=0,this.finished=!1,this.type=e,this.children=[],this.nullValues=t,this.stride=tt(e),this._nulls=new mi,t&&t.length>0&&(this._isValid=Kc(t))}toVector(){return new se([this.flush()])}get ArrayType(){return this.type.ArrayType}get nullCount(){return this._nulls.numInvalid}get numChildren(){return this.children.length}get byteLength(){let e=0,{_offsets:t,_values:r,_nulls:i,_typeIds:n,children:a}=this;return t&&(e+=t.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),n&&(e+=n.byteLength),a.reduce(((e,t)=>e+t.byteLength),e)}get reservedLength(){return this._nulls.reservedLength}get reservedByteLength(){let e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce(((e,t)=>e+t.reservedByteLength),e)}get valueOffsets(){return this._offsets?this._offsets.buffer:null}get values(){return this._values?this._values.buffer:null}get nullBitmap(){return this._nulls?this._nulls.buffer:null}get typeIds(){return this._typeIds?this._typeIds.buffer:null}append(e){return this.set(this.length,e)}isValid(e){return this._isValid(e)}set(e,t){return this.setValid(e,this.isValid(t))&&this.setValue(e,t),this}setValue(e,t){this._setValue(this,e,t)}setValid(e,t){return this.length=this._nulls.set(e,+t).length,t}addChild(e,t="".concat(this.numChildren)){throw new Error('Cannot append children to non-nested type "'.concat(this.type,'"'))}getChildAt(e){return this.children[e]||null}flush(){let e,t,r,i,{type:n,length:a,nullCount:s,_typeIds:o,_offsets:l,_values:c,_nulls:_}=this;(t=null==o?void 0:o.flush(a))?i=null==l?void 0:l.flush(a):e=(i=null==l?void 0:l.flush(a))?null==c?void 0:c.flush(l.last()):null==c?void 0:c.flush(a),s>0&&(r=null==_?void 0:_.flush(a));let u=this.children.map((e=>e.flush()));return this.clear(),J({type:n,length:a,nullCount:s,children:u,child:u[0],data:e,typeIds:t,nullBitmap:r,valueOffsets:i})}finish(){this.finished=!0;for(let e of this.children)e.finish();return this}clear(){var e,t,r,i;this.length=0,null===(e=this._nulls)||void 0===e||e.clear(),null===(t=this._values)||void 0===t||t.clear(),null===(r=this._offsets)||void 0===r||r.clear(),null===(i=this._typeIds)||void 0===i||i.clear();for(let e of this.children)e.clear();return this}};Se.prototype.length=1,Se.prototype.stride=1,Se.prototype.children=null,Se.prototype.finished=!1,Se.prototype.nullValues=null,Se.prototype._isValid=()=>!0;var Fe=class extends Se{constructor(e){super(e),this._values=new ir(this.ArrayType,0,this.stride)}setValue(e,t){let r=this._values;return r.reserve(e-r.length+1),super.setValue(e,t)}},ze=class extends Se{constructor(e){super(e),this._pendingLength=0,this._offsets=new hi(e.type)}setValue(e,t){let r=this._pending||(this._pending=new Map),i=r.get(e);i&&(this._pendingLength-=i.length),this._pendingLength+=t instanceof Rt?t[Dr].length:t.length,r.set(e,t)}setValid(e,t){return!!super.setValid(e,t)||((this._pending||(this._pending=new Map)).set(e,void 0),!1)}clear(){return this._pendingLength=0,this._pending=void 0,super.clear()}flush(){return this._flush(),super.flush()}finish(){return this._flush(),super.finish()}_flush(){let e=this._pending,t=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,t),this}},Hr=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,t,r,i){return e.prep(8,24),e.writeInt64(BigInt(null!=i?i:0)),e.pad(4),e.writeInt32(r),e.writeInt64(BigInt(null!=t?t:0)),e.offset()}},rt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsFooter(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsFooter(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ue.V1}schema(e){let t=this.bb.__offset(this.bb_pos,6);return t?(e||new Ve).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}dictionaries(e,t){let r=this.bb.__offset(this.bb_pos,8);return r?(t||new Hr).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}dictionariesLength(){let e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,t){let r=this.bb.__offset(this.bb_pos,10);return r?(t||new Hr).__init(this.bb.__vector(this.bb_pos+r)+24*e,this.bb):null}recordBatchesLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,12);return r?(t||new Me).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,ue.V1)}static addSchema(e,t){e.addFieldOffset(1,t,0)}static addDictionaries(e,t){e.addFieldOffset(2,t,0)}static startDictionariesVector(e,t){e.startVector(24,t,8)}static addRecordBatches(e,t){e.addFieldOffset(3,t,0)}static startRecordBatchesVector(e,t){e.startVector(24,t,8)}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,t){e.finish(t)}static finishSizePrefixedFooterBuffer(e,t){e.finish(t,void 0,!0)}},de=class e{constructor(e=[],t,r,i=ue.V5){this.fields=e||[],this.metadata=t||new Map,r||(r=Za(this.fields)),this.dictionaries=r,this.metadataVersion=i}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map((e=>e.name))}toString(){return"Schema<{ ".concat(this.fields.map(((e,t)=>"".concat(t,": ").concat(e))).join(", ")," }>")}select(t){let r=new Set(t),i=this.fields.filter((e=>r.has(e.name)));return new e(i,this.metadata)}selectAt(t){let r=t.map((e=>this.fields[e])).filter(Boolean);return new e(r,this.metadata)}assign(...t){let r=t[0]instanceof e?t[0]:Array.isArray(t[0])?new e(t[0]):new e(t),i=[...this.fields],n=ks(ks(new Map,this.metadata),r.metadata),a=r.fields.filter((e=>{let t=i.findIndex((t=>t.name===e.name));return!~t||(i[t]=e.clone({metadata:ks(ks(new Map,i[t].metadata),e.metadata)}))&&!1})),s=Za(a,new Map);return new e([...i,...a],n,new Map([...this.dictionaries,...s]))}};de.prototype.fields=null,de.prototype.metadata=null,de.prototype.dictionaries=null;var ie=class e{static new(...t){let[r,i,n,a]=t;return t[0]&&"object"==typeof t[0]&&(({name:r}=t[0]),void 0===i&&(i=t[0].type),void 0===n&&(n=t[0].nullable),void 0===a&&(a=t[0].metadata)),new e("".concat(r),i,n,a)}constructor(e,t,r=!1,i){this.name=e,this.type=t,this.nullable=r,this.metadata=i||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return"".concat(this.name,": ").concat(this.type)}clone(...t){let[r,i,n,a]=t;return t[0]&&"object"==typeof t[0]?({name:r=this.name,type:i=this.type,nullable:n=this.nullable,metadata:a=this.metadata}=t[0]):[r=this.name,i=this.type,n=this.nullable,a=this.metadata]=t,e.new(r,i,n,a)}};function ks(e,t){return new Map([...e||new Map,...t||new Map])}function Za(e,t=new Map){for(let r=-1,i=e.length;++r0&&Za(i.children,t)}return t}ie.prototype.type=null,ie.prototype.name=null,ie.prototype.nullable=null,ie.prototype.metadata=null;var L_=Br,A_=Ke,nr=class{static decode(e){e=new A_(z(e));let t=rt.getRootAsFooter(e),r=de.decode(t.schema(),new Map,t.version());return new eo(r,t)}static encode(e){let t=new L_,r=de.encode(t,e.schema);rt.startRecordBatchesVector(t,e.numRecordBatches);for(let r of[...e.recordBatches()].slice().reverse())sr.encode(t,r);let i=t.endVector();rt.startDictionariesVector(t,e.numDictionaries);for(let r of[...e.dictionaryBatches()].slice().reverse())sr.encode(t,r);let n=t.endVector();return rt.startFooter(t),rt.addSchema(t,r),rt.addVersion(t,ue.V5),rt.addRecordBatches(t,i),rt.addDictionaries(t,n),rt.finishFooterBuffer(t,rt.endFooter(t)),t.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(e,t=ue.V5,r,i){this.schema=e,this.version=t,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}*recordBatches(){for(let e,t=-1,r=this.numRecordBatches;++t=0&&e=0&&e=0&&e=0&&ethis._closedPromiseResolve=e))}get closed(){return this._closedPromise}cancel(e){return B(this,void 0,void 0,(function*(){yield this.return(e)}))}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){let{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(ye);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return Be.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return Be.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return B(this,void 0,void 0,(function*(){return yield this.abort(e),ye}))}return(e){return B(this,void 0,void 0,(function*(){return yield this.close(),ye}))}read(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(...e){return this._values.length>0?Promise.resolve({done:!1,value:this._values.shift()}):this._error?Promise.reject({done:!0,value:this._error.error}):this._closedPromiseResolve?new Promise(((e,t)=>{this.resolvers.push({resolve:e,reject:t})})):Promise.resolve(ye)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}},Gt=class extends Ts{write(e){if((e=z(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Ci(this.toUint8Array(!0)):this.toUint8Array(!1).then(Ci)}toUint8Array(e=!1){return e?Je(this._values)[0]:B(this,void 0,void 0,(function*(){var e,t,r,i;let n=[],a=0;try{for(var s,o=!0,l=_t(this);!(e=(s=yield l.next()).done);o=!0){i=s.value,o=!1;let e=i;n.push(e),a+=e.byteLength}}catch(e){t={error:e}}finally{try{!o&&!e&&(r=l.return)&&(yield r.call(l))}finally{if(t)throw t.error}}return Je(n,a)[0]}))}},Ut=class{constructor(e){e&&(this.source=new to(Be.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},ot=class e{constructor(t){t instanceof e?this.source=t.source:t instanceof Gt?this.source=new ar(Be.fromAsyncIterable(t)):Rn(t)?this.source=new ar(Be.fromNodeStream(t)):Mi(t)?this.source=new ar(Be.fromDOMStream(t)):In(t)?this.source=new ar(Be.fromDOMStream(t.body)):ft(t)?this.source=new ar(Be.fromIterable(t)):(dt(t)||it(t))&&(this.source=new ar(Be.fromAsyncIterable(t)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}},to=class{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,t="read"){return this.source.next({cmd:t,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||ye)}return(e){return Object.create(this.source.return&&this.source.return(e)||ye)}},ar=class{constructor(e){this.source=e,this._closedPromise=new Promise((e=>this._closedPromiseResolve=e))}cancel(e){return B(this,void 0,void 0,(function*(){yield this.return(e)}))}get closed(){return this._closedPromise}read(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"read")).value}))}peek(e){return B(this,void 0,void 0,(function*(){return(yield this.next(e,"peek")).value}))}next(e){return B(this,arguments,void 0,(function*(e,t="read"){return yield this.source.next({cmd:t,size:e})}))}throw(e){return B(this,void 0,void 0,(function*(){let t=this.source.throw&&(yield this.source.throw(e))||ye;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}return(e){return B(this,void 0,void 0,(function*(){let t=this.source.return&&(yield this.source.return(e))||ye;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(t)}))}},en=class extends Ut{constructor(e,t){super(),this.position=0,this.buffer=z(e),this.size=void 0===t?this.buffer.byteLength:t}readInt32(e){let{buffer:t,byteOffset:r}=this.readAt(e,4);return new DataView(t,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),etn,Int128:()=>rn,Int64:()=>or,Uint64:()=>Le});var vi=8,ro=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],tn=class{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){let t=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),r=new Uint32Array([e.buffer[1]>>>16,65535&e.buffer[1],e.buffer[0]>>>16,65535&e.buffer[0]]),i=t[3]*r[3];this.buffer[0]=65535&i;let n=i>>>16;return i=t[2]*r[3],n+=i,i=t[3]*r[2]>>>0,n+=i,this.buffer[0]+=n<<16,this.buffer[1]=n>>>0>>16,this.buffer[1]+=t[1]*r[3]+t[2]*r[2]+t[3]*r[1],this.buffer[1]+=t[0]*r[3]+t[1]*r[2]+t[2]*r[1]+t[3]*r[0]<<16,this}_plus(e){let t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t>>0&&++this.buffer[1],this.buffer[0]=t}lessThan(e){return this.buffer[1]>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]>>0&&++t[1],t[1]>>0&&++t[2],t[2]>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}hex(){return"".concat(gi(this.buffer[3])," ").concat(gi(this.buffer[2])," ").concat(gi(this.buffer[1])," ").concat(gi(this.buffer[0]))}static multiply(t,r){return new e(new Uint32Array(t.buffer)).times(r)}static add(t,r){return new e(new Uint32Array(t.buffer)).plus(r)}static from(t,r=new Uint32Array(4)){return e.fromString("string"==typeof t?t:t.toString(),r)}static fromNumber(t,r=new Uint32Array(4)){return e.fromString(t.toString(),r)}static fromString(t,r=new Uint32Array(4)){let i=t.startsWith("-"),n=t.length,a=new e(r);for(let r=i?1:0;r0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,t){return this.readData(e,t)}readTypeIds(e,t){return this.readData(e,t)}readData(e,{length:t,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+t)}readDictionary(e){return this.dictionaries.get(e.id)}},Fs=class extends nn{constructor(e,t,r,i,n){super(new Uint8Array(0),t,r,i,n),this.sources=e}readNullBitmap(e,t,{offset:r}=this.nextBufferRange()){return t<=0?new Uint8Array(0):jr(this.sources[r])}readOffsets(e,{offset:t}=this.nextBufferRange()){return re(Uint8Array,re(e.OffsetArrayType,this.sources[t]))}readTypeIds(e,{offset:t}=this.nextBufferRange()){return re(Uint8Array,re(e.ArrayType,this.sources[t]))}readData(e,{offset:t}=this.nextBufferRange()){let{sources:r}=this;return R.isTimestamp(e)||(R.isInt(e)||R.isTime(e))&&64===e.bitWidth||R.isDuration(e)||R.isDate(e)&&e.unit===Ae.MILLISECOND?re(Uint8Array,or.convertArray(r[t])):R.isDecimal(e)?re(Uint8Array,rn.convertArray(r[t])):R.isBinary(e)||R.isLargeBinary(e)||R.isFixedSizeBinary(e)?D_(r[t]):R.isBool(e)?jr(r[t]):R.isUtf8(e)||R.isLargeUtf8(e)?xt(r[t].join("")):re(Uint8Array,re(e.ArrayType,r[t].map((e=>+e))))}};function D_(e){let t=e.join(""),r=new Uint8Array(t.length/2);for(let e=0;e>1]=Number.parseInt(t.slice(e,e+2),16);return r}var yi=class extends ze{constructor(e){super(e),this._values=new At(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,z(t))}_flushPending(e,t){let r=this._offsets,i=this._values.reserve(t).buffer,n=0;for(let[t,a]of e)if(void 0===a)r.set(t,0);else{let e=a.length;i.set(a,n),r.set(t,e),n+=e}}},bi=class extends ze{constructor(e){super(e),this._values=new At(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,z(t))}_flushPending(e,t){let r=this._offsets,i=this._values.reserve(t).buffer,n=0;for(let[t,a]of e)if(void 0===a)r.set(t,BigInt(0));else{let e=a.length;i.set(a,n),r.set(t,BigInt(e)),n+=e}}},xs=class extends Se{constructor(e){super(e),this._values=new mi}setValue(e,t){this._values.set(e,+t)}},Wr=class extends Fe{};Wr.prototype._setValue=Ra;var sn=class extends Wr{};sn.prototype._setValue=ts;var an=class extends Wr{};an.prototype._setValue=rs;var on=class extends Fe{};on.prototype._setValue=ja;var Cs=class extends Se{constructor({type:e,nullValues:t,dictionaryHashFunction:r}){super({type:new et(e.dictionary,e.indices,e.id,e.isOrdered)}),this._nulls=null,this._dictionaryOffset=0,this._keysToIndices=Object.create(null),this.indices=Vr({type:this.type.indices,nullValues:t}),this.dictionary=Vr({type:this.type.dictionary,nullValues:null}),"function"==typeof r&&(this.valueToKey=r)}get values(){return this.indices.values}get nullCount(){return this.indices.nullCount}get nullBitmap(){return this.indices.nullBitmap}get byteLength(){return this.indices.byteLength+this.dictionary.byteLength}get reservedLength(){return this.indices.reservedLength+this.dictionary.reservedLength}get reservedByteLength(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}isValid(e){return this.indices.isValid(e)}setValid(e,t){let r=this.indices;return t=r.setValid(e,t),this.length=r.length,t}setValue(e,t){let r=this._keysToIndices,i=this.valueToKey(t),n=r[i];return void 0===n&&(r[i]=n=this._dictionaryOffset+this.dictionary.append(t).length-1),this.indices.setValue(e,n)}flush(){let e=this.type,t=this._dictionary,r=this.dictionary.toVector(),i=this.indices.flush().clone(e);return i.dictionary=t?t.concat(r):r,this.finished||(this._dictionaryOffset+=r.length),this._dictionary=i.dictionary,this.clear(),i}finish(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),super.finish()}clear(){return this.indices.clear(),this.dictionary.clear(),super.clear()}valueToKey(e){return"string"==typeof e?e:"".concat(e)}},cn=class extends Fe{};cn.prototype._setValue=Ba;var Ms=class extends Se{setValue(e,t){let[r]=this.children,i=e*this.stride;for(let e=-1,n=t.length;++e0)throw new Error("FixedSizeListBuilder can only have one child.");let r=this.children.push(e);return this.type=new wt(this.type.listSize,new ie(t,e.type,!0)),r}},zr=class extends Fe{setValue(e,t){this._values.set(e,t)}},Ps=class extends zr{setValue(e,t){super.setValue(e,Xi(t))}},Is=class extends zr{},Bs=class extends zr{},$r=class extends Fe{};$r.prototype._setValue=Oa;var ln=class extends $r{};ln.prototype._setValue=_s;var un=class extends $r{};un.prototype._setValue=ds;var cr=class extends Fe{};cr.prototype._setValue=Ha;var _n=class extends cr{};_n.prototype._setValue=ps;var dn=class extends cr{};dn.prototype._setValue=ms;var fn=class extends cr{};fn.prototype._setValue=hs;var pn=class extends cr{};pn.prototype._setValue=gs;var ct=class extends Fe{setValue(e,t){this._values.set(e,t)}},Rs=class extends ct{},Gs=class extends ct{},Us=class extends ct{},js=class extends ct{},Os=class extends ct{},Hs=class extends ct{},Ns=class extends ct{},Ws=class extends ct{},Vs=class extends ze{constructor(e){super(e),this._offsets=new hi(e.type)}addChild(e,t="0"){if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new bt(new ie(t,e.type,!0)),this.numChildren-1}_flushPending(e){let t=this._offsets,[r]=this.children;for(let[i,n]of e)if(typeof n>"u")t.set(i,0);else{let e=n,a=e.length,s=t.set(i,a).buffer[i];for(let t=-1;++t0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new Et(new ie(t,e.type,!0),this.type.keysSorted),this.numChildren-1}_flushPending(e){let t=this._offsets,[r]=this.children;for(let[i,n]of e)if(void 0===n)t.set(i,0);else{let{[i]:e,[i+1]:a}=t.set(i,n.size).buffer;for(let t of n.entries())if(r.set(e,t),++e>=a)break}}},$s=class extends Se{setValue(e,t){}setValid(e,t){return this.length=Math.max(e+1,this.length),t}},qs=class extends Se{setValue(e,t){let{children:r,type:i}=this;switch(Array.isArray(t)||t.constructor){case!0:return i.children.forEach(((i,n)=>r[n].set(e,t[n])));case Map:return i.children.forEach(((i,n)=>r[n].set(e,t.get(i.name))));default:return i.children.forEach(((i,n)=>r[n].set(e,t[i.name])))}}setValid(e,t){return super.setValid(e,t)||this.children.forEach((r=>r.setValid(e,t))),t}addChild(e,t="".concat(this.numChildren)){let r=this.children.push(e);return this.type=new ve([...this.type.children,new ie(t,e.type,!0)]),r}},lr=class extends Fe{};lr.prototype._setValue=Ga;var mn=class extends lr{};mn.prototype._setValue=is;var hn=class extends lr{};hn.prototype._setValue=ns;var gn=class extends lr{};gn.prototype._setValue=ss;var vn=class extends lr{};vn.prototype._setValue=as;var ur=class extends Fe{};ur.prototype._setValue=Ua;var yn=class extends ur{};yn.prototype._setValue=os;var bn=class extends ur{};bn.prototype._setValue=cs;var Sn=class extends ur{};Sn.prototype._setValue=ls;var wn=class extends ur{};wn.prototype._setValue=us;var Si=class extends Se{constructor(e){super(e),this._typeIds=new ir(Int8Array,0,1),"function"==typeof e.valueToChildTypeId&&(this._valueToChildTypeId=e.valueToChildTypeId)}get typeIdToChildIndex(){return this.type.typeIdToChildIndex}append(e,t){return this.set(this.length,e,t)}set(e,t,r){return void 0===r&&(r=this._valueToChildTypeId(this,t,e)),this.setValue(e,t,r),this}setValue(e,t,r){this._typeIds.set(e,r);let i=this.type.typeIdToChildIndex[r],n=this.children[i];null==n||n.set(e,t)}addChild(e,t="".concat(this.children.length)){let r=this.children.push(e),{type:{children:i,mode:n,typeIds:a}}=this,s=[...i,new ie(t,e.type)];return this.type=new St(n,[...a,r],s),r}_valueToChildTypeId(e,t,r){throw new Error("Cannot map UnionBuilder value to child typeId. Pass the `childTypeId` as the second argument to unionBuilder.append(), or supply a `valueToChildTypeId` function as part of the UnionBuilder constructor options.")}},Xs=class extends Si{},Qs=class extends Si{constructor(e){super(e),this._offsets=new ir(Int32Array)}setValue(e,t,r){let i=this._typeIds.set(e,r).buffer[e],n=this.getChildAt(this.type.typeIdToChildIndex[i]),a=this._offsets.set(e,n.length).buffer[e];null==n||n.set(a,t)}},En=class extends ze{constructor(e){super(e),this._values=new At(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,xt(t))}_flushPending(e,t){}};En.prototype._flushPending=yi.prototype._flushPending;var Ln=class extends ze{constructor(e){super(e),this._values=new At(Uint8Array)}get byteLength(){let e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}setValue(e,t){return super.setValue(e,xt(t))}_flushPending(e,t){}};Ln.prototype._flushPending=bi.prototype._flushPending;var no=class extends j{visitNull(){return $s}visitBool(){return xs}visitInt(){return ct}visitInt8(){return Rs}visitInt16(){return Gs}visitInt32(){return Us}visitInt64(){return js}visitUint8(){return Os}visitUint16(){return Hs}visitUint32(){return Ns}visitUint64(){return Ws}visitFloat(){return zr}visitFloat16(){return Ps}visitFloat32(){return Is}visitFloat64(){return Bs}visitUtf8(){return En}visitLargeUtf8(){return Ln}visitBinary(){return yi}visitLargeBinary(){return bi}visitFixedSizeBinary(){return cn}visitDate(){return Wr}visitDateDay(){return sn}visitDateMillisecond(){return an}visitTimestamp(){return lr}visitTimestampSecond(){return mn}visitTimestampMillisecond(){return hn}visitTimestampMicrosecond(){return gn}visitTimestampNanosecond(){return vn}visitTime(){return ur}visitTimeSecond(){return yn}visitTimeMillisecond(){return bn}visitTimeMicrosecond(){return Sn}visitTimeNanosecond(){return wn}visitDecimal(){return on}visitList(){return Vs}visitStruct(){return qs}visitUnion(){return Si}visitDenseUnion(){return Qs}visitSparseUnion(){return Xs}visitDictionary(){return Cs}visitInterval(){return $r}visitIntervalDayTime(){return ln}visitIntervalYearMonth(){return un}visitDuration(){return cr}visitDurationSecond(){return _n}visitDurationMillisecond(){return dn}visitDurationMicrosecond(){return fn}visitDurationNanosecond(){return pn}visitFixedSizeList(){return Ms}visitMap(){return zs}},el=new no,W=class extends j{compareSchemas(e,t){return e===t||t instanceof e.constructor&&this.compareManyFields(e.fields,t.fields)}compareManyFields(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,r)=>this.compareFields(e,t[r])))}compareFields(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&this.visit(e.type,t.type)}};function Ne(e,t){return t instanceof e.constructor}function qr(e,t){return e===t||Ne(e,t)}function _r(e,t){return e===t||Ne(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function Ys(e,t){return e===t||Ne(e,t)&&e.precision===t.precision}function k_(e,t){return e===t||Ne(e,t)&&e.byteWidth===t.byteWidth}function so(e,t){return e===t||Ne(e,t)&&e.unit===t.unit}function An(e,t){return e===t||Ne(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Dn(e,t){return e===t||Ne(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function T_(e,t){return e===t||Ne(e,t)&&e.children.length===t.children.length&&jt.compareManyFields(e.children,t.children)}function F_(e,t){return e===t||Ne(e,t)&&e.children.length===t.children.length&&jt.compareManyFields(e.children,t.children)}function ao(e,t){return e===t||Ne(e,t)&&e.mode===t.mode&&e.typeIds.every(((e,r)=>e===t.typeIds[r]))&&jt.compareManyFields(e.children,t.children)}function x_(e,t){return e===t||Ne(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&jt.visit(e.indices,t.indices)&&jt.visit(e.dictionary,t.dictionary)}function oo(e,t){return e===t||Ne(e,t)&&e.unit===t.unit}function kn(e,t){return e===t||Ne(e,t)&&e.unit===t.unit}function C_(e,t){return e===t||Ne(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&jt.compareManyFields(e.children,t.children)}function M_(e,t){return e===t||Ne(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&jt.compareManyFields(e.children,t.children)}W.prototype.visitNull=qr,W.prototype.visitBool=qr,W.prototype.visitInt=_r,W.prototype.visitInt8=_r,W.prototype.visitInt16=_r,W.prototype.visitInt32=_r,W.prototype.visitInt64=_r,W.prototype.visitUint8=_r,W.prototype.visitUint16=_r,W.prototype.visitUint32=_r,W.prototype.visitUint64=_r,W.prototype.visitFloat=Ys,W.prototype.visitFloat16=Ys,W.prototype.visitFloat32=Ys,W.prototype.visitFloat64=Ys,W.prototype.visitUtf8=qr,W.prototype.visitLargeUtf8=qr,W.prototype.visitBinary=qr,W.prototype.visitLargeBinary=qr,W.prototype.visitFixedSizeBinary=k_,W.prototype.visitDate=so,W.prototype.visitDateDay=so,W.prototype.visitDateMillisecond=so,W.prototype.visitTimestamp=An,W.prototype.visitTimestampSecond=An,W.prototype.visitTimestampMillisecond=An,W.prototype.visitTimestampMicrosecond=An,W.prototype.visitTimestampNanosecond=An,W.prototype.visitTime=Dn,W.prototype.visitTimeSecond=Dn,W.prototype.visitTimeMillisecond=Dn,W.prototype.visitTimeMicrosecond=Dn,W.prototype.visitTimeNanosecond=Dn,W.prototype.visitDecimal=qr,W.prototype.visitList=T_,W.prototype.visitStruct=F_,W.prototype.visitUnion=ao,W.prototype.visitDenseUnion=ao,W.prototype.visitSparseUnion=ao,W.prototype.visitDictionary=x_,W.prototype.visitInterval=oo,W.prototype.visitIntervalDayTime=oo,W.prototype.visitIntervalYearMonth=oo,W.prototype.visitDuration=kn,W.prototype.visitDurationSecond=kn,W.prototype.visitDurationMillisecond=kn,W.prototype.visitDurationMicrosecond=kn,W.prototype.visitDurationNanosecond=kn,W.prototype.visitFixedSizeList=C_,W.prototype.visitMap=M_;var jt=new W;function Xr(e,t){return jt.compareSchemas(e,t)}function tl(e,t){return jt.compareFields(e,t)}function rl(e,t){return jt.visit(e,t)}function Vr(e){let t=e.type,r=new(el.getVisitFn(t)())(e);if(t.children&&t.children.length>0){let i=e.children||[],n={nullValues:e.nullValues},a=Array.isArray(i)?(e,t)=>i[t]||n:({name:e})=>i[e]||n;for(let[e,i]of t.children.entries()){let{type:t}=i,n=a(i,e);r.children.push(Vr(Object.assign(Object.assign({},n),{type:t})))}}return r}function Js(e,t){return P_(e,t.map((e=>e.data.concat())))}function P_(e,t){let r,i=[...e.fields],n=[],a={numBatches:t.reduce(((e,t)=>Math.max(e,t.length)),0)},s=0,o=0,l=-1,c=t.length,_=[];for(;a.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,l=-1;++l0&&(n[s++]=J({type:new ve(i),length:o,nullCount:0,children:_.slice()})))}return[e=e.assign(i),n.map((t=>new De(e,t)))]}function I_(e,t,r,i,n){var a;let s=(t+63&-64)>>3;for(let o=-1,l=i.length;++o=t)c===t?r[o]=l:(r[o]=l.slice(0,t),n.numBatches=Math.max(n.numBatches,i[o].unshift(l.slice(t,c-t))));else{let i=e[o];e[o]=i.clone({nullable:!0}),r[o]=null!==(a=null==l?void 0:l._changeLengthAndBackfillNullBitmap(t))&&void 0!==a?a:J({type:i.type,length:t,nullCount:t,nullBitmap:new Uint8Array(s)})}}return r}var il,We=class e{constructor(...t){var r,i;if(0===t.length)return this.batches=[],this.schema=new de([]),this._offsets=[0],this;let n,a;t[0]instanceof de&&(n=t.shift()),t.at(-1)instanceof Uint32Array&&(a=t.pop());let s=t=>{if(t){if(t instanceof De)return[t];if(t instanceof e)return t.batches;if(t instanceof le){if(t.type instanceof ve)return[new De(new de(t.type.children),t)]}else{if(Array.isArray(t))return t.flatMap((e=>s(e)));if("function"==typeof t[Symbol.iterator])return[...t].flatMap((e=>s(e)));if("object"==typeof t){let e=Object.keys(t),r=e.map((e=>new se([t[e]]))),i=null!=n?n:new de(e.map(((e,t)=>new ie(String(e),r[t].type,r[t].nullable)))),[,a]=Js(i,r);return 0===a.length?[new De(t)]:a}}}return[]},o=t.flatMap((e=>s(e)));if(n=null!==(i=null!=n?n:null===(r=o[0])||void 0===r?void 0:r.schema)&&void 0!==i?i:new de([]),!(n instanceof de))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(let e of o){if(!(e instanceof De))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Xr(n,e.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=n,this.batches=o,this._offsets=null!=a?a:ws(this.data)}get data(){return this.batches.map((({data:e})=>e))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce(((e,t)=>e+t.length),0)}get nullCount(){return-1===this._nullCount&&(this._nullCount=Ss(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}at(e){return this.get(Rr(e,this.numRows))}set(e,t){}indexOf(e,t){return-1}[Symbol.iterator](){return this.batches.length>0?pi.visit(new se(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return"[\n ".concat(this.toArray().join(",\n "),"\n]")}concat(...t){let r=this.schema,i=this.data.concat(t.flatMap((({data:e})=>e)));return new e(r,i.map((e=>new De(r,e))))}slice(t,r){let i=this.schema;[t,r]=Qi({length:this.numRows},t,r);let n=Es(this.data,this._offsets,t,r);return new e(i,n.map((e=>new De(i,e))))}getChild(e){return this.getChildAt(this.schema.fields.findIndex((t=>t.name===e)))}getChildAt(e){if(e>-1&&et.children[e]));if(0===t.length){let{type:r}=this.schema.fields[e],i=J({type:r,length:0,nullCount:0});t.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new se(t)}return null}setChild(e,t){var r;return this.setChildAt(null===(r=this.schema.fields)||void 0===r?void 0:r.findIndex((t=>t.name===e)),t)}setChildAt(t,r){let i=this.schema,n=[...this.batches];if(t>-1&&tthis.getChildAt(t)));[e[t],s[t]]=[a,r],[i,n]=Js(i,s)}return new e(i,n)}select(e){let t=this.schema.fields.reduce(((e,t,r)=>e.set(t.name,r)),new Map);return this.selectAt(e.map((e=>t.get(e))).filter((e=>e>-1)))}selectAt(t){let r=this.schema.selectAt(t),i=this.batches.map((e=>e.selectAt(t)));return new e(r,i)}assign(t){let r=this.schema.fields,[i,n]=t.schema.fields.reduce(((e,t,i)=>{let[n,a]=e,s=r.findIndex((e=>e.name===t.name));return~s?a[s]=i:n.push(i),e}),[[],[]]),a=this.schema.assign(t.schema),s=[...r.map(((e,t)=>[t,n[t]])).map((([e,r])=>void 0===r?this.getChildAt(e):t.getChildAt(r))),...i.map((e=>t.getChildAt(e)))].filter(Boolean);return new e(...Js(a,s))}};il=Symbol.toStringTag,We[il]=(e=>(e.schema=null,e.batches=[],e._offsets=new Uint32Array([0]),e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,e.isValid=fi(Ki),e.get=fi(Te.getVisitFn(y.Struct)),e.set=Ls(Re.getVisitFn(y.Struct)),e.indexOf=As(Or.getVisitFn(y.Struct)),"Table"))(We.prototype);var sl,De=class e{constructor(...e){switch(e.length){case 2:if([this.schema]=e,!(this.schema instanceof de))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=J({nullCount:0,type:new ve(this.schema.fields),children:this.schema.fields.map((e=>J({type:e.type,nullCount:0})))})]=e,!(this.data instanceof le))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=nl(this.schema,this.data.children);break;case 1:{let[t]=e,{fields:r,children:i,length:n}=Object.keys(t).reduce(((e,r,i)=>(e.children[i]=t[r],e.length=Math.max(e.length,t[r].length),e.fields[i]=ie.new({name:r,type:t[r].type,nullable:!0}),e)),{length:0,fields:new Array,children:new Array}),a=new de(r),s=J({type:new ve(r),length:n,children:i,nullCount:0});[this.schema,this.data]=nl(a,s.children,n);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=al(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return Te.visit(this.data,e)}at(e){return this.get(Rr(e,this.numRows))}set(e,t){return Re.visit(this.data,e,t)}indexOf(e,t){return Or.visit(this.data,e,t)}[Symbol.iterator](){return pi.visit(new se([this.data]))}toArray(){return[...this]}concat(...e){return new We(this.schema,[this,...e])}slice(t,r){let[i]=new se([this.data]).slice(t,r).data;return new e(this.schema,i)}getChild(e){var t;return this.getChildAt(null===(t=this.schema.fields)||void 0===t?void 0:t.findIndex((t=>t.name===e)))}getChildAt(e){return e>-1&&et.name===e)),t)}setChildAt(t,r){let i=this.schema,n=this.data;if(t>-1&&tt.name===e));~t&&(n[t]=this.data.children[t])}return new e(r,J({type:i,length:this.numRows,children:n}))}selectAt(t){let r=this.schema.selectAt(t),i=t.map((e=>this.data.children[e])).filter(Boolean),n=J({type:new ve(r.fields),length:this.numRows,children:i});return new e(r,n)}};function nl(e,t,r=t.reduce(((e,t)=>Math.max(e,t.length)),0)){var i;let n=[...e.fields],a=[...t],s=(r+63&-64)>>3;for(let[o,l]of e.fields.entries()){let e=t[o];(!e||e.length!==r)&&(n[o]=l.clone({nullable:!0}),a[o]=null!==(i=null==e?void 0:e._changeLengthAndBackfillNullBitmap(r))&&void 0!==i?i:J({type:l.type,length:r,nullCount:r,nullBitmap:new Uint8Array(s)}))}return[e.assign(n),J({type:new ve(n),length:r,children:a})]}function al(e,t,r=new Map){var i,n;if((null!==(i=null==e?void 0:e.length)&&void 0!==i?i:0)>0&&(null==e?void 0:e.length)===(null==t?void 0:t.length))for(let i=-1,a=e.length;++i(e._nullCount=-1,e[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(De.prototype);var Qr=class extends De{constructor(e){let t=e.fields.map((e=>J({type:e.type})));super(e,J({type:new ve(e.fields),nullCount:0,children:t}))}},Dt=class e{constructor(){this.bb=null,this.bb_pos=0}__init(e,t){return this.bb_pos=e,this.bb=t,this}static getRootAsMessage(t,r){return(r||new e).__init(t.readInt32(t.position())+t.position(),t)}static getSizePrefixedRootAsMessage(t,r){return t.setPosition(t.position()+4),(r||new e).__init(t.readInt32(t.position())+t.position(),t)}version(){let e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ue.V1}headerType(){let e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):ne.NONE}header(e){let t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}bodyLength(){let e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):BigInt("0")}customMetadata(e,t){let r=this.bb.__offset(this.bb_pos,12);return r?(t||new Me).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*e),this.bb):null}customMetadataLength(){let e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,t){e.addFieldInt16(0,t,ue.V1)}static addHeaderType(e,t){e.addFieldInt8(1,t,ne.NONE)}static addHeader(e,t){e.addFieldOffset(2,t,0)}static addBodyLength(e,t){e.addFieldInt64(3,t,BigInt("0"))}static addCustomMetadata(e,t){e.addFieldOffset(4,t,0)}static createCustomMetadataVector(e,t){e.startVector(4,t.length,4);for(let r=t.length-1;r>=0;r--)e.addOffset(t[r]);return e.endVector()}static startCustomMetadataVector(e,t){e.startVector(4,t,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,t){e.finish(t)}static finishSizePrefixedMessageBuffer(e,t){e.finish(t,void 0,!0)}static createMessage(t,r,i,n,a,s){return e.startMessage(t),e.addVersion(t,r),e.addHeaderType(t,i),e.addHeader(t,n),e.addBodyLength(t,a),e.addCustomMetadata(t,s),e.endMessage(t)}},co=class extends j{visit(e,t){return null==e||null==t?void 0:super.visit(e,t)}visitNull(e,t){return Wi.startNull(t),Wi.endNull(t)}visitInt(e,t){return ht.startInt(t),ht.addBitWidth(t,e.bitWidth),ht.addIsSigned(t,e.isSigned),ht.endInt(t)}visitFloat(e,t){return Sr.startFloatingPoint(t),Sr.addPrecision(t,e.precision),Sr.endFloatingPoint(t)}visitBinary(e,t){return Ui.startBinary(t),Ui.endBinary(t)}visitLargeBinary(e,t){return Oi.startLargeBinary(t),Oi.endLargeBinary(t)}visitBool(e,t){return ji.startBool(t),ji.endBool(t)}visitUtf8(e,t){return zi.startUtf8(t),zi.endUtf8(t)}visitLargeUtf8(e,t){return Hi.startLargeUtf8(t),Hi.endLargeUtf8(t)}visitDecimal(e,t){return It.startDecimal(t),It.addScale(t,e.scale),It.addPrecision(t,e.precision),It.addBitWidth(t,e.bitWidth),It.endDecimal(t)}visitDate(e,t){return gr.startDate(t),gr.addUnit(t,e.unit),gr.endDate(t)}visitTime(e,t){return Nt.startTime(t),Nt.addUnit(t,e.unit),Nt.addBitWidth(t,e.bitWidth),Nt.endTime(t)}visitTimestamp(e,t){let r=e.timezone&&t.createString(e.timezone)||void 0;return Wt.startTimestamp(t),Wt.addUnit(t,e.unit),void 0!==r&&Wt.addTimezone(t,r),Wt.endTimestamp(t)}visitInterval(e,t){return wr.startInterval(t),wr.addUnit(t,e.unit),wr.endInterval(t)}visitDuration(e,t){return vr.startDuration(t),vr.addUnit(t,e.unit),vr.endDuration(t)}visitList(e,t){return Ni.startList(t),Ni.endList(t)}visitStruct(e,t){return Vi.startStruct_(t),Vi.endStruct_(t)}visitUnion(e,t){gt.startTypeIdsVector(t,e.typeIds.length);let r=gt.createTypeIdsVector(t,e.typeIds);return gt.startUnion(t),gt.addMode(t,e.mode),gt.addTypeIds(t,r),gt.endUnion(t)}visitDictionary(e,t){let r=this.visit(e.indices,t);return Pt.startDictionaryEncoding(t),Pt.addId(t,BigInt(e.id)),Pt.addIsOrdered(t,e.isOrdered),void 0!==r&&Pt.addIndexType(t,r),Pt.endDictionaryEncoding(t)}visitFixedSizeBinary(e,t){return yr.startFixedSizeBinary(t),yr.addByteWidth(t,e.byteWidth),yr.endFixedSizeBinary(t)}visitFixedSizeList(e,t){return br.startFixedSizeList(t),br.addListSize(t,e.listSize),br.endFixedSizeList(t)}visitMap(e,t){return Er.startMap(t),Er.addKeysSorted(t,e.keysSorted),Er.endMap(t)}},Ks=new co;function ul(e,t=new Map){return new de(R_(e,t),Zs(e.metadata),t)}function lo(e){return new Ge(e.count,dl(e.columns),fl(e.columns))}function _l(e){return new qe(lo(e.data),e.id,e.isDelta)}function R_(e,t){return(e.fields||[]).filter(Boolean).map((e=>ie.fromJSON(e,t)))}function ol(e,t){return(e.children||[]).filter(Boolean).map((e=>ie.fromJSON(e,t)))}function dl(e){return(e||[]).reduce(((e,t)=>[...e,new lt(t.count,G_(t.VALIDITY)),...dl(t.children)]),[])}function fl(e,t=[]){for(let r=-1,i=(e||[]).length;++re+ +(0===t)),0)}function pl(e,t){let r,i,n,a,s,o;return t&&(a=e.dictionary)?t.has(r=a.id)?(i=(i=a.indexType)?cl(i):new Bt,o=new et(t.get(r),i,r,a.isOrdered),n=new ie(e.name,o,e.nullable,Zs(e.metadata))):(i=(i=a.indexType)?cl(i):new Bt,t.set(r,s=ll(e,ol(e,t))),o=new et(s,i,r,a.isOrdered),n=new ie(e.name,o,e.nullable,Zs(e.metadata))):(s=ll(e,ol(e,t)),n=new ie(e.name,s,e.nullable,Zs(e.metadata))),n||null}function Zs(e=[]){return new Map(e.map((({key:e,value:t})=>[e,t])))}function cl(e){return new Pe(e.isSigned,e.bitWidth)}function ll(e,t){let r=e.type.name;switch(r){case"NONE":case"null":return new He;case"binary":return new Vt;case"largebinary":return new zt;case"utf8":return new $t;case"largeutf8":return new qt;case"bool":return new Xt;case"list":return new bt((t||[])[0]);case"struct":case"struct_":return new ve(t||[])}switch(r){case"int":{let t=e.type;return new Pe(t.isSigned,t.bitWidth)}case"floatingpoint":{let t=e.type;return new at(pe[t.precision])}case"decimal":{let t=e.type;return new Qt(t.scale,t.precision,t.bitWidth)}case"date":{let t=e.type;return new Yt(Ae[t.unit])}case"time":{let t=e.type;return new Jt(G[t.unit],t.bitWidth)}case"timestamp":{let t=e.type;return new Kt(G[t.unit],t.timezone)}case"interval":{let t=e.type;return new Zt(Ce[t.unit])}case"duration":{let t=e.type;return new er(G[t.unit])}case"union":{let r=e.type,[i,...n]=(r.mode+"").toLowerCase(),a=i.toUpperCase()+n.join("");return new St(he[a],r.typeIds||[],t||[])}case"fixedsizebinary":{let t=e.type;return new tr(t.byteWidth)}case"fixedsizelist":{let r=e.type;return new wt(r.listSize,(t||[])[0])}case"map":{let r=e.type;return new Et((t||[])[0],r.keysSorted)}}throw new Error('Unrecognized type: "'.concat(r,'"'))}var U_=Br,j_=Ke,Xe=class e{static fromJSON(t,r){let i=new e(0,ue.V5,r);return i._createHeader=O_(t,r),i}static decode(t){t=new j_(z(t));let r=Dt.getRootAsMessage(t),i=r.bodyLength(),n=r.version(),a=r.headerType(),s=new e(i,n,a);return s._createHeader=H_(r,a),s}static encode(e){let t=new U_,r=-1;return e.isSchema()?r=de.encode(t,e.header()):e.isRecordBatch()?r=Ge.encode(t,e.header()):e.isDictionaryBatch()&&(r=qe.encode(t,e.header())),Dt.startMessage(t),Dt.addVersion(t,ue.V5),Dt.addHeader(t,r),Dt.addHeaderType(t,e.headerType),Dt.addBodyLength(t,BigInt(e.bodyLength)),Dt.finishMessageBuffer(t,Dt.endMessage(t)),t.asUint8Array()}static from(t,r=0){if(t instanceof de)return new e(0,ue.V5,ne.Schema,t);if(t instanceof Ge)return new e(r,ue.V5,ne.RecordBatch,t);if(t instanceof qe)return new e(r,ue.V5,ne.DictionaryBatch,t);throw new Error("Unrecognized Message header: ".concat(t))}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===ne.Schema}isRecordBatch(){return this.headerType===ne.RecordBatch}isDictionaryBatch(){return this.headerType===ne.DictionaryBatch}constructor(e,t,r,i){this._version=t,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=ae(e)}},Ge=class{get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}constructor(e,t,r){this._nodes=t,this._buffers=r,this._length=ae(e)}},qe=class{get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}constructor(e,t,r=!1){this._data=e,this._isDelta=r,this._id=ae(t)}},$e=class{constructor(e,t){this.offset=ae(e),this.length=ae(t)}},lt=class{constructor(e,t){this.length=ae(e),this.nullCount=ae(t)}};function O_(e,t){return()=>{switch(t){case ne.Schema:return de.fromJSON(e);case ne.RecordBatch:return Ge.fromJSON(e);case ne.DictionaryBatch:return qe.fromJSON(e)}throw new Error("Unrecognized Message type: { name: ".concat(ne[t],", type: ").concat(t," }"))}}function H_(e,t){return()=>{switch(t){case ne.Schema:return de.decode(e.header(new Ve),new Map,e.version());case ne.RecordBatch:return Ge.decode(e.header(new Ze),e.version());case ne.DictionaryBatch:return qe.decode(e.header(new Ht),e.version())}throw new Error("Unrecognized Message type: { name: ".concat(ne[t],", type: ").concat(t," }"))}}function N_(e,t=new Map,r=ue.V5){let i=Q_(e,t);return new de(i,ea(e),t,r)}function W_(e,t=ue.V5){if(null!==e.compression())throw new Error("Record batch compression not implemented");return new Ge(e.length(),q_(e),X_(e,t))}function V_(e,t=ue.V5){return new qe(Ge.decode(e.data(),t),e.id(),e.isDelta())}function z_(e){return new $e(e.offset(),e.length())}function $_(e){return new lt(e.length(),e.nullCount())}function q_(e){let t=[];for(let r,i=-1,n=-1,a=e.nodesLength();++iie.encode(e,t)));Ve.startFieldsVector(e,r.length);let i=Ve.createFieldsVector(e,r),n=t.metadata&&t.metadata.size>0?Ve.createCustomMetadataVector(e,[...t.metadata].map((([t,r])=>{let i=e.createString("".concat(t)),n=e.createString("".concat(r));return Me.startKeyValue(e),Me.addKey(e,i),Me.addValue(e,n),Me.endKeyValue(e)}))):-1;return Ve.startSchema(e),Ve.addFields(e,i),Ve.addEndianness(e,id?hr.Little:hr.Big),-1!==n&&Ve.addCustomMetadata(e,n),Ve.endSchema(e)}function K_(e,t){let r=-1,i=-1,n=-1,a=t.type,s=t.typeId;R.isDictionary(a)?(s=a.dictionary.typeId,n=Ks.visit(a,e),i=Ks.visit(a.dictionary,e)):i=Ks.visit(a,e);let o=(a.children||[]).map((t=>ie.encode(e,t))),l=je.createChildrenVector(e,o),c=t.metadata&&t.metadata.size>0?je.createCustomMetadataVector(e,[...t.metadata].map((([t,r])=>{let i=e.createString("".concat(t)),n=e.createString("".concat(r));return Me.startKeyValue(e),Me.addKey(e,i),Me.addValue(e,n),Me.endKeyValue(e)}))):-1;return t.name&&(r=e.createString(t.name)),je.startField(e),je.addType(e,i),je.addTypeType(e,s),je.addChildren(e,l),je.addNullable(e,!!t.nullable),-1!==r&&je.addName(e,r),-1!==n&&je.addDictionary(e,n),-1!==c&&je.addCustomMetadata(e,c),je.endField(e)}function Z_(e,t){let r=t.nodes||[],i=t.buffers||[];Ze.startNodesVector(e,r.length);for(let t of r.slice().reverse())lt.encode(e,t);let n=e.endVector();Ze.startBuffersVector(e,i.length);for(let t of i.slice().reverse())$e.encode(e,t);let a=e.endVector();return Ze.startRecordBatch(e),Ze.addLength(e,BigInt(t.length)),Ze.addNodes(e,n),Ze.addBuffers(e,a),Ze.endRecordBatch(e)}function ed(e,t){let r=Ge.encode(e,t.data);return Ht.startDictionaryBatch(e),Ht.addId(e,BigInt(t.id)),Ht.addIsDelta(e,t.isDelta),Ht.addData(e,r),Ht.endDictionaryBatch(e)}function td(e,t){return ni.createFieldNode(e,BigInt(t.length),BigInt(t.nullCount))}function rd(e,t){return ii.createBuffer(e,BigInt(t.offset),BigInt(t.length))}ie.encode=K_,ie.decode=Y_,ie.fromJSON=pl,de.encode=J_,de.decode=N_,de.fromJSON=ul,Ge.encode=Z_,Ge.decode=W_,Ge.fromJSON=lo,qe.encode=ed,qe.decode=V_,qe.fromJSON=_l,lt.encode=td,lt.decode=$_,$e.encode=rd,$e.decode=z_;var id=(()=>{let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]})(),_o=e=>"Expected ".concat(ne[e]," Message in stream, but was null or length 0."),fo=e=>"Header pointer of flatbuffer-encoded ".concat(ne[e]," Message is null or length 0."),vl=(e,t)=>"Expected to read ".concat(e," metadata bytes, but only read ").concat(t,"."),yl=(e,t)=>"Expected to read ".concat(e," bytes for message body, but only read ").concat(t,"."),wi=class{constructor(e){this.source=e instanceof Ut?e:new Ut(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||-1===e.value&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?ye:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(_o(e));return t.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);let t=z(this.source.read(e));if(t.byteLength[...t,...r.VALIDITY&&[r.VALIDITY]||[],...r.TYPE_ID&&[r.TYPE_ID]||[],...r.OFFSET&&[r.OFFSET]||[],...r.DATA&&[r.DATA]||[],...e(r.children)]),[])}(this._body)}readMessage(e){let t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(_o(e));return t.value}readSchema(){let e=ne.Schema,t=this.readMessage(e),r=null==t?void 0:t.header();if(!t||!r)throw new Error(fo(e));return r}},ta=4,uo="ARROW1",Ei=new Uint8Array(uo.length);for(let e=0;ethis)):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return Be.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return Be.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}static from(t){return t instanceof e?t:Cn(t)?sd(t):Pn(t)?cd(t):dt(t)?B(this,void 0,void 0,(function*(){return yield e.from(yield t)})):In(t)||Mi(t)||Rn(t)||it(t)?od(new ot(t)):ad(new Ut(t))}static readAll(t){return t instanceof e?t.isSync()?Sl(t):wl(t):Cn(t)||ArrayBuffer.isView(t)||ft(t)||Mn(t)?Sl(t):wl(t)}},Ot=class extends Ue{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return Ye(this,arguments,(function*(){yield ee(yield*Pr(ti(_t(this[Symbol.iterator]()))))}))}},Fr=class extends Ue{constructor(e){super(e),this._impl=e}readAll(){return B(this,void 0,void 0,(function*(){var e,t,r,i;let n=new Array;try{for(var a,s=!0,o=_t(this);!(e=(a=yield o.next()).done);s=!0){i=a.value,s=!1;let e=i;n.push(e)}}catch(e){t={error:e}}finally{try{!s&&!e&&(r=o.return)&&(yield r.call(o))}finally{if(t)throw t.error}}return n}))}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}},xr=class extends Ot{constructor(e){super(e),this._impl=e}},xn=class extends Fr{constructor(e){super(e),this._impl=e}},ia=class{get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,t){let r=this._loadVectors(e,t,this.schema.fields),i=J({type:new ve(this.schema.fields),length:e.length,children:r});return new De(this.schema,i)}_loadDictionaryBatch(e,t){let{id:r,isDelta:i}=e,{dictionaries:n,schema:a}=this,s=n.get(r),o=a.dictionaries.get(r),l=this._loadVectors(e.data,t,[o]);return(s&&i?s.concat(new se(l)):new se(l)).memoize()}_loadVectors(e,t,r){return new nn(t,e.nodes,e.buffers,this.dictionaries,this.schema.metadataVersion).visitMany(r)}},Ai=class extends ia{constructor(e,t){super(t),this._reader=Cn(e)?new Fn(this._handle=e):new wi(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=El(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):ye}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):ye}next(){if(this.closed)return ye;let e,{_reader:t}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),i=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),i=t.readMessageBody(e.bodyLength),n=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,n)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Qr(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}},Di=class extends ia{constructor(e,t){super(t),this._reader=new Tn(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return B(this,void 0,void 0,(function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}))}open(e){return B(this,void 0,void 0,(function*(){return this.closed||(this.autoDestroy=El(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this}))}throw(e){return B(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):ye}))}return(e){return B(this,void 0,void 0,(function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):ye}))}next(){return B(this,void 0,void 0,(function*(){if(this.closed)return ye;let e,{_reader:t}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;let r=e.header(),i=yield t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;let r=e.header(),i=yield t.readMessageBody(e.bodyLength),n=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,n)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new Qr(this.schema)}):yield this.return()}))}_readNextMessageAndValidate(e){return B(this,void 0,void 0,(function*(){return yield this._reader.readMessage(e)}))}},na=class extends Ai{get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}constructor(e,t){super(e instanceof en?e:new en(e),t)}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var t;if(this.closed)return null;this._footer||this.open();let r=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(r&&this._handle.seek(r.offset)){let e=this._reader.readMessage(ne.RecordBatch);if(null!=e&&e.isRecordBatch()){let t=e.header(),r=this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,r)}}return null}_readDictionaryBatch(e){var t;let r=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(r&&this._handle.seek(r.offset)){let e=this._reader.readMessage(ne.DictionaryBatch);if(null!=e&&e.isDictionaryBatch()){let t=e.header(),r=this._reader.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(t,r);this.dictionaries.set(t.id,i)}}}_readFooter(){let{_handle:e}=this,t=e.size-po,r=e.readInt32(t),i=e.readAt(t-r,r);return nr.decode(i)}_readNextMessageAndValidate(e){var t;if(this._footer||this.open(),this._footer&&this._recordBatchIndexsuper.open}});return B(this,void 0,void 0,(function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(let e of this._footer.dictionaryBatches())e&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield t.open.call(this,e)}))}readRecordBatch(e){return B(this,void 0,void 0,(function*(){var t;if(this.closed)return null;this._footer||(yield this.open());let r=null===(t=this._footer)||void 0===t?void 0:t.getRecordBatch(e);if(r&&(yield this._handle.seek(r.offset))){let e=yield this._reader.readMessage(ne.RecordBatch);if(null!=e&&e.isRecordBatch()){let t=e.header(),r=yield this._reader.readMessageBody(e.bodyLength);return this._loadRecordBatch(t,r)}}return null}))}_readDictionaryBatch(e){return B(this,void 0,void 0,(function*(){var t;let r=null===(t=this._footer)||void 0===t?void 0:t.getDictionaryBatch(e);if(r&&(yield this._handle.seek(r.offset))){let e=yield this._reader.readMessage(ne.DictionaryBatch);if(null!=e&&e.isDictionaryBatch()){let t=e.header(),r=yield this._reader.readMessageBody(e.bodyLength),i=this._loadDictionaryBatch(t,r);this.dictionaries.set(t.id,i)}}}))}_readFooter(){return B(this,void 0,void 0,(function*(){let{_handle:e}=this;e._pending&&(yield e._pending);let t=e.size-po,r=yield e.readInt32(t),i=yield e.readAt(t-r,r);return nr.decode(i)}))}_readNextMessageAndValidate(e){return B(this,void 0,void 0,(function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex=4?ra(t)?new xr(new na(e.read())):new Ot(new Ai(e)):new Ot(new Ai(function*(){}()))}function od(e){return B(this,void 0,void 0,(function*(){let t=yield e.peek(Li+7&-8);return t&&t.byteLength>=4?ra(t)?new xr(new na(yield e.read())):new Fr(new Di(e)):new Fr(new Di(function(){return Ye(this,arguments,(function*(){}))}()))}))}function cd(e){return B(this,void 0,void 0,(function*(){let{size:t}=yield e.stat(),r=new Tr(e,t);return t>=bl&&ra(yield r.readAt(0,Li+7&-8))?new xn(new mo(r)):new Fr(new Di(r))}))}var Ee=class e extends j{static assemble(...t){let r=e=>e.flatMap((e=>Array.isArray(e)?r(e):e instanceof De?e.data.children:e.data)),i=new e;return i.visitMany(r(t)),i}constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}visit(e){if(e instanceof se)return this.visitMany(e.data),this;let{type:t}=e;if(!R.isDictionary(t)){let{length:r}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");if(R.isUnion(t))this.nodes.push(new lt(r,0));else{let{nullCount:i}=e;R.isNull(t)||kt.call(this,i<=0?new Uint8Array(0):Ur(e.offset,r,e.nullBitmap)),this.nodes.push(new lt(r,i))}}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}};function kt(e){let t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new $e(this._byteLength,t)),this._byteLength+=t,this}function ld(e){var t;let{type:r,length:i,typeIds:n,valueOffsets:a}=e;if(kt.call(this,n),r.mode===he.Sparse)return go.call(this,e);if(r.mode===he.Dense){if(e.offset<=0)return kt.call(this,a),go.call(this,e);{let s=new Int32Array(i),o=Object.create(null),l=Object.create(null);for(let e,r,c=-1;++c{let n=r.typeIds[t],a=o[n],s=l[n];return e.slice(a,Math.min(i,s))})))}}return this}function ud(e){let t;return e.nullCount>=e.length?kt.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?kt.call(this,Ur(e.offset,e.length,t)):kt.call(this,jr(e.values))}function dr(e){return kt.call(this,e.values.subarray(0,e.length*e.stride))}function sa(e){let{length:t,values:r,valueOffsets:i}=e,n=ae(i[0]),a=ae(i[t]),s=Math.min(a-n,r.byteLength-n);return kt.call(this,Un(-n,t+1,i)),kt.call(this,r.subarray(n,n+s)),this}function vo(e){let{length:t,valueOffsets:r}=e;if(r){let{0:i,[t]:n}=r;return kt.call(this,Un(-i,t+1,r)),this.visit(e.children[0].slice(i,n-i))}return this.visit(e.children[0])}function go(e){return this.visitMany(e.type.children.map(((t,r)=>e.children[r])).filter(Boolean))[0]}Ee.prototype.visitBool=ud,Ee.prototype.visitInt=dr,Ee.prototype.visitFloat=dr,Ee.prototype.visitUtf8=sa,Ee.prototype.visitLargeUtf8=sa,Ee.prototype.visitBinary=sa,Ee.prototype.visitLargeBinary=sa,Ee.prototype.visitFixedSizeBinary=dr,Ee.prototype.visitDate=dr,Ee.prototype.visitTimestamp=dr,Ee.prototype.visitTime=dr,Ee.prototype.visitDecimal=dr,Ee.prototype.visitList=vo,Ee.prototype.visitStruct=go,Ee.prototype.visitUnion=ld,Ee.prototype.visitInterval=dr,Ee.prototype.visitDuration=dr,Ee.prototype.visitFixedSizeList=vo,Ee.prototype.visitMap=vo;var Yr=class extends Nr{static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,t){throw new Error('"throughDOM" not available in this environment')}constructor(e){super(),this._position=0,this._started=!1,this._sink=new Gt,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,Oe(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy="boolean"!=typeof e.autoDestroy||e.autoDestroy,this._writeLegacyIpcFormat="boolean"==typeof e.writeLegacyIpcFormat&&e.writeLegacyIpcFormat}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return dt(e)?e.then((e=>this.writeAll(e))):it(e)?bo(this,e):yo(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,t=null){return e===this._sink||e instanceof Gt?this._sink=e:(this._sink=new Gt,e&&jo(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&Oo(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._seenDictionaries=new Map,this._dictionaryDeltaOffsets=new Map,(!t||!Xr(t,this._schema))&&(null==t?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}write(e){let t=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null==e)return this.finish()&&void 0;if(e instanceof We&&!(t=e.schema))return this.finish()&&void 0;if(e instanceof De&&!(t=e.schema))return this.finish()&&void 0;if(t&&!Xr(t,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof De?e instanceof Qr||this._writeRecordBatch(e):e instanceof We?this.writeAll(e.batches):ft(e)&&this.writeAll(e)}_writeMessage(e,t=8){let r=t-1,i=Xe.encode(e),n=i.byteLength,a=this._writeLegacyIpcFormat?4:8,s=n+a+r&~r,o=s-n-a;return e.headerType===ne.RecordBatch?this._recordBatchBlocks.push(new sr(s,e.bodyLength,this._position)):e.headerType===ne.DictionaryBatch&&this._dictionaryBlocks.push(new sr(s,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(s-a)),n>0&&this._write(i),this._writePadding(o)}_write(e){if(this._started){let t=z(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}_writeSchema(e){return this._writeMessage(Xe.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(Ei)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){let{byteLength:t,nodes:r,bufferRegions:i,buffers:n}=Ee.assemble(e),a=new Ge(e.numRows,r,i),s=Xe.from(a,t);return this._writeDictionaries(e)._writeMessage(s)._writeBodyBuffers(n)}_writeDictionaryBatch(e,t,r=!1){let{byteLength:i,nodes:n,bufferRegions:a,buffers:s}=Ee.assemble(new se([e])),o=new Ge(e.length,n,a),l=new qe(o,t,r),c=Xe.from(l,i);return this._writeMessage(c)._writeBodyBuffers(s)}_writeBodyBuffers(e){let t,r,i;for(let n=-1,a=e.length;++n0&&(this._write(t),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(e){var t,r;for(let[i,n]of e.dictionaries){let e=null!==(t=null==n?void 0:n.data)&&void 0!==t?t:[],a=this._seenDictionaries.get(i),s=null!==(r=this._dictionaryDeltaOffsets.get(i))&&void 0!==r?r:0;if(a&&a.data[0]===e[0]){if(s0);this._seenDictionaries.set(i,n),this._dictionaryDeltaOffsets.set(i,e.length)}return this}},Jr=class e extends Yr{static writeAll(t,r){let i=new e(r);return dt(t)?t.then((e=>i.writeAll(e))):it(t)?bo(i,t):yo(i,t)}},Kr=class e extends Yr{static writeAll(t){let r=new e;return dt(t)?t.then((e=>r.writeAll(e))):it(t)?bo(r,t):yo(r,t)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeDictionaryBatch(e,t,r=!1){if(!r&&this._seenDictionaries.has(t))throw new Error("The Arrow File format does not support replacement dictionaries. ");return super._writeDictionaryBatch(e,t,r)}_writeFooter(e){let t=nr.encode(new nr(e,ue.V5,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}};function yo(e,t){let r=t;t instanceof We&&(r=t.batches,e.reset(void 0,t.schema));for(let t of r)e.write(t);return e.finish()}function bo(e,t){return B(this,void 0,void 0,(function*(){var r,i,n,a,s,o,l;try{for(r=!0,i=_t(t);!(a=(n=yield i.next()).done);r=!0){l=n.value,r=!1;let t=l;e.write(t)}}catch(e){s={error:e}}finally{try{!r&&!a&&(o=i.return)&&(yield o.call(i))}finally{if(s)throw s.error}}return e.finish()}))}function Ll(e,t){if(it(e))return dd(e,t);if(ft(e))return _d(e,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")}function _d(e,t){let r=null,i="bytes"===(null==t?void 0:t.type)||!1,n=(null==t?void 0:t.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(t){a(t,r||(r=e[Symbol.iterator]()))},pull(e){r?a(e,r):e.close()},cancel(){null!=r&&r.return&&r.return(),r=null}}),Object.assign({highWaterMark:i?n:void 0},t));function a(e,t){let r,n=null,a=e.desiredSize||null;for(;!(n=t.next(i?a:null)).done;)if(ArrayBuffer.isView(n.value)&&(r=z(n.value))&&(null!=a&&i&&(a=a-r.byteLength+1),n.value=r),e.enqueue(n.value),null!=a&&--a<=0)return;e.close()}}function dd(e,t){let r=null,i="bytes"===(null==t?void 0:t.type)||!1,n=(null==t?void 0:t.highWaterMark)||Math.pow(2,24);return new ReadableStream(Object.assign(Object.assign({},t),{start(t){return B(this,void 0,void 0,(function*(){yield a(t,r||(r=e[Symbol.asyncIterator]()))}))},pull(e){return B(this,void 0,void 0,(function*(){r?yield a(e,r):e.close()}))},cancel(){return B(this,void 0,void 0,(function*(){null!=r&&r.return&&(yield r.return()),r=null}))}}),Object.assign({highWaterMark:i?n:void 0},t));function a(e,t){return B(this,void 0,void 0,(function*(){let r,n=null,a=e.desiredSize||null;for(;!(n=yield t.next(i?a:null)).done;)if(ArrayBuffer.isView(n.value)&&(r=z(n.value))&&(null!=a&&i&&(a=a-r.byteLength+1),n.value=r),e.enqueue(n.value),null!=a&&--a<=0)return;e.close()}))}}function kl(e){return new So(e)}var So=class{constructor(e){this._numChunks=0,this._finished=!1,this._bufferedSize=0;let{readableStrategy:t,writableStrategy:r,queueingStrategy:i="count"}=e,n=Go(e,["readableStrategy","writableStrategy","queueingStrategy"]);this._controller=null,this._builder=Vr(n),this._getSize="bytes"!==i?Al:Dl;let{highWaterMark:a=("bytes"===i?Math.pow(2,14):1e3)}=Object.assign({},t),{highWaterMark:s=("bytes"===i?Math.pow(2,14):1e3)}=Object.assign({},r);this.readable=new ReadableStream({cancel:()=>{this._builder.clear()},pull:e=>{this._maybeFlush(this._builder,this._controller=e)},start:e=>{this._maybeFlush(this._builder,this._controller=e)}},{highWaterMark:a,size:"bytes"!==i?Al:Dl}),this.writable=new WritableStream({abort:()=>{this._builder.clear()},write:()=>{this._maybeFlush(this._builder,this._controller)},close:()=>{this._maybeFlush(this._builder.finish(),this._controller)}},{highWaterMark:s,size:e=>this._writeValueAndReturnChunkSize(e)})}_writeValueAndReturnChunkSize(e){let t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}_maybeFlush(e,t){null!=t&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}_enqueue(e,t){this._bufferedSize=0,this._controller=null,null==t?e.close():e.enqueue(t)}},Al=e=>{var t;return null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0},Dl=e=>{var t;return null!==(t=null==e?void 0:e.byteLength)&&void 0!==t?t:0};function aa(e,t){let r=new Gt,i=null,n=new ReadableStream({cancel(){return B(this,void 0,void 0,(function*(){yield r.close()}))},start(e){return B(this,void 0,void 0,(function*(){yield a(e,i||(i=yield function(){return B(this,void 0,void 0,(function*(){return yield(yield Ue.from(r)).open(t)}))}()))}))},pull(e){return B(this,void 0,void 0,(function*(){i?yield a(e,i):e.close()}))}});return{writable:new WritableStream(r,Object.assign({highWaterMark:Math.pow(2,14)},e)),readable:n};function a(e,t){return B(this,void 0,void 0,(function*(){let r=e.desiredSize,i=null;for(;!(i=yield t.next()).done;)if(e.enqueue(i.value),null!=r&&--r<=0)return;e.close()}))}}function oa(e,t){let r=new this(e),i=new ot(r),n=new ReadableStream({cancel(){return B(this,void 0,void 0,(function*(){yield i.cancel()}))},pull(e){return B(this,void 0,void 0,(function*(){yield a(e)}))},start(e){return B(this,void 0,void 0,(function*(){yield a(e)}))}},Object.assign({highWaterMark:Math.pow(2,14)},t));return{writable:new WritableStream(r,e),readable:n};function a(e){return B(this,void 0,void 0,(function*(){let t=null,r=e.desiredSize;for(;t=yield i.read(r||null);)if(e.enqueue(t),null!=r&&(r-=t.byteLength)<=0)return;e.close()}))}}function ca(e,t="stream"){return("stream"===t?Jr:Kr).writeAll(e).toUint8Array(!0)}var hd=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ma),io),Xa),Pa),Aa),qa),Ta),{compareSchemas:Xr,compareFields:tl,compareTypes:rl});function ki(e){switch(e.typeId){case y.Binary:return{sqlType:"binary"};case y.Bool:return{sqlType:"bool"};case y.Date:return{sqlType:"date"};case y.DateDay:return{sqlType:"date32[d]"};case y.DateMillisecond:return{sqlType:"date64[ms]"};case y.Decimal:{let t=e;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case y.Float:return{sqlType:"float"};case y.Float16:return{sqlType:"float16"};case y.Float32:return{sqlType:"float32"};case y.Float64:return{sqlType:"float64"};case y.Int:return{sqlType:"int32"};case y.Int16:return{sqlType:"int16"};case y.Int32:return{sqlType:"int32"};case y.Int64:return{sqlType:"int64"};case y.Uint16:return{sqlType:"uint16"};case y.Uint32:return{sqlType:"uint32"};case y.Uint64:return{sqlType:"uint64"};case y.Uint8:return{sqlType:"uint8"};case y.IntervalDayTime:return{sqlType:"interval[dt]"};case y.IntervalYearMonth:return{sqlType:"interval[m]"};case y.List:return{sqlType:"list",valueType:ki(e.valueType)};case y.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:e.byteWidth};case y.Null:return{sqlType:"null"};case y.Utf8:return{sqlType:"utf8"};case y.Struct:return{sqlType:"struct",fields:e.children.map((e=>la(e.name,e.type)))};case y.Map:{let t=e;return{sqlType:"map",keyType:ki(t.keyType),valueType:ki(t.valueType)}}case y.Time:return{sqlType:"time[s]"};case y.TimeMicrosecond:return{sqlType:"time[us]"};case y.TimeMillisecond:return{sqlType:"time[ms]"};case y.TimeNanosecond:return{sqlType:"time[ns]"};case y.TimeSecond:return{sqlType:"time[s]"};case y.Timestamp:return{sqlType:"timestamp",timezone:e.timezone||void 0};case y.TimestampSecond:return{sqlType:"timestamp[s]",timezone:e.timezone||void 0};case y.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:e.timezone||void 0};case y.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:e.timezone||void 0};case y.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error("unsupported arrow type: ".concat(e.toString()))}function la(e,t){let r=ki(t);return r.name=e,r}Be.toDOMStream=Ll,Se.throughDOM=kl,Ue.throughDOM=aa,xr.throughDOM=aa,Ot.throughDOM=aa,Yr.throughDOM=oa,Kr.throughDOM=oa,Jr.throughDOM=oa;var ua=class{constructor(){this._bindings=null,this._nextMessageId=0}log(e){this.postMessage({messageId:this._nextMessageId++,requestId:0,type:"LOG",data:e},[])}sendOK(e){this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"OK",data:null},[])}failWith(e,t){let r={name:t.name,message:t.message,stack:t.stack||void 0};this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"ERROR",data:r},[])}async onMessage(e){switch(e.type){case"PING":return void this.sendOK(e);case"INSTANTIATE":null!=this._bindings&&this.failWith(e,new Error("duckdb already initialized"));try{this._bindings=await this.instantiate(e.data[0],e.data[1],(t=>{this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"INSTANTIATE_PROGRESS",data:t},[])})),this.sendOK(e)}catch(t){console.log(t),this._bindings=null,this.failWith(e,t)}return}if(!this._bindings)return this.failWith(e,new Error("duckdb is not initialized"));try{switch(e.type){case"GET_VERSION":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"VERSION_STRING",data:this._bindings.getVersion()},[]);break;case"GET_FEATURE_FLAGS":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FEATURE_FLAGS",data:this._bindings.getFeatureFlags()},[]);break;case"RESET":this._bindings.reset(),this.sendOK(e);break;case"OPEN":this._bindings.open(e.data),this.sendOK(e);break;case"DROP_FILE":this._bindings.dropFile(e.data),this.sendOK(e);break;case"DROP_FILES":this._bindings.dropFiles(),this.sendOK(e);break;case"FLUSH_FILES":this._bindings.flushFiles(),this.sendOK(e);break;case"CONNECT":{let t=this._bindings.connect();this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"CONNECTION_INFO",data:t.useUnsafe(((e,t)=>t))},[]);break}case"DISCONNECT":this._bindings.disconnect(e.data),this.sendOK(e);break;case"CREATE_PREPARED":{let t=this._bindings.createPrepared(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"PREPARED_STATEMENT_ID",data:t},[]);break}case"CLOSE_PREPARED":this._bindings.closePrepared(e.data[0],e.data[1]),this.sendOK(e);break;case"RUN_PREPARED":{let t=this._bindings.runPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:t},[t.buffer]);break}case"RUN_QUERY":{let t=this._bindings.runQuery(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT",data:t},[t.buffer]);break}case"SEND_PREPARED":{let t=this._bindings.sendPrepared(e.data[0],e.data[1],e.data[2]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER",data:t},[t.buffer]);break}case"START_PENDING_QUERY":{let t=this._bindings.startPendingQuery(e.data[0],e.data[1],e.data[2]),r=[];t&&r.push(t.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:t},r);break}case"POLL_PENDING_QUERY":{let t=this._bindings.pollPendingQuery(e.data),r=[];t&&r.push(t.buffer),this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_HEADER_OR_NULL",data:t},r);break}case"CANCEL_PENDING_QUERY":{let t=this._bindings.cancelPendingQuery(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SUCCESS",data:t},[]);break}case"FETCH_QUERY_RESULTS":{let t=this._bindings.fetchQueryResults(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"QUERY_RESULT_CHUNK",data:t},[t.buffer]);break}case"GET_TABLE_NAMES":{let t=this._bindings.getTableNames(e.data[0],e.data[1]);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"TABLE_NAMES",data:t},[]);break}case"GLOB_FILE_INFOS":{let t=this._bindings.globFiles(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_INFOS",data:t},[]);break}case"REGISTER_FILE_URL":this._bindings.registerFileURL(e.data[0],e.data[1],e.data[2],e.data[3]),this.sendOK(e);break;case"REGISTER_FILE_BUFFER":this._bindings.registerFileBuffer(e.data[0],e.data[1]),this.sendOK(e);break;case"REGISTER_FILE_HANDLE":this._bindings.registerFileHandle(e.data[0],e.data[1],e.data[2],e.data[3]),this.sendOK(e);break;case"COPY_FILE_TO_PATH":this._bindings.copyFileToPath(e.data[0],e.data[1]),this.sendOK(e);break;case"COPY_FILE_TO_BUFFER":{let t=this._bindings.copyFileToBuffer(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_BUFFER",data:t},[]);break}case"COLLECT_FILE_STATISTICS":this._bindings.collectFileStatistics(e.data[0],e.data[1]),this.sendOK(e);break;case"EXPORT_FILE_STATISTICS":this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"FILE_STATISTICS",data:this._bindings.exportFileStatistics(e.data)},[]);break;case"INSERT_ARROW_FROM_IPC_STREAM":this._bindings.insertArrowFromIPCStream(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"IMPORT_CSV_FROM_PATH":this._bindings.insertCSVFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"IMPORT_JSON_FROM_PATH":this._bindings.insertJSONFromPath(e.data[0],e.data[1],e.data[2]),this.sendOK(e);break;case"TOKENIZE":{let t=this._bindings.tokenize(e.data);this.postMessage({messageId:this._nextMessageId++,requestId:e.messageId,type:"SCRIPT_TOKENS",data:t},[]);break}}}catch(t){return console.log(t),this.failWith(e,t)}}},Rl=Bo(Cl()),_a=class{constructor(e,t){this._bindings=e,this._conn=t}close(){this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}query(e){let t=this._bindings.runQuery(this._conn,e),r=Ue.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),new We(r)}async send(e,t=!1){let r=this._bindings.startPendingQuery(this._conn,e,t);for(;null==r;)r=await new Promise(((e,t)=>{try{e(this._bindings.pollPendingQuery(this._conn))}catch(e){console.log(e),t(e)}}));let i=new da(this._bindings,this._conn,r),n=Ue.from(i);return console.assert(n.isSync()),console.assert(n.isStream()),n}cancelSent(){return this._bindings.cancelPendingQuery(this._conn)}getTableNames(e){return this._bindings.getTableNames(this._conn,e)}prepare(e){let t=this._bindings.createPrepared(this._conn,e);return new Ao(this._bindings,this._conn,t)}createScalarFunction(e,t,r){this._bindings.createScalarFunction(this._conn,e,t,r)}insertArrowTable(e,t){let r=ca(e,"stream");this.insertArrowFromIPCStream(r,t)}insertArrowFromIPCStream(e,t){this._bindings.insertArrowFromIPCStream(this._conn,e,t)}insertCSVFromPath(e,t){this._bindings.insertCSVFromPath(this._conn,e,t)}insertJSONFromPath(e,t){this._bindings.insertJSONFromPath(this._conn,e,t)}},da=class{constructor(e,t,r){this.bindings=e,this.conn=t,this.header=r,this._first=!0,this._depleted=!1}next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e=this.bindings.fetchQueryResults(this.conn);return this._depleted=0==e.length,{done:this._depleted,value:e}}[Symbol.iterator](){return this}},Ao=class{constructor(e,t,r){this.bindings=e,this.connectionId=t,this.statementId=r}close(){this.bindings.closePrepared(this.connectionId,this.statementId)}query(...e){let t=this.bindings.runPrepared(this.connectionId,this.statementId,e),r=Ue.from(t);return console.assert(r.isSync()),console.assert(r.isFile()),new We(r)}send(...e){let t=this.bindings.sendPrepared(this.connectionId,this.statementId,e),r=new da(this.bindings,this.connectionId,t),i=Ue.from(r);return console.assert(i.isSync()),console.assert(i.isStream()),i}},Il=new TextEncoder,Ml=new TextDecoder("utf-8");function Do(e,t,r){let i=Il.encode(r),n=e._malloc(i.byteLength),a=e.HEAPU8.subarray(n,n+i.byteLength);a.set(i),e.HEAPF64[0+(t>>3)]=1,e.HEAPF64[1+(t>>3)]=n,e.HEAPF64[2+(t>>3)]=a.byteLength}function To(e){switch(e){case"UINT8":case"INT8":return 1;case"INT32":case"FLOAT":return 4;case"INT64":case"UINT64":case"DOUBLE":case"VARCHAR":return 8;default:return 0}}function ko(e,t,r,i){let n=e.HEAPU8.subarray(t,t+i*To(r));switch(r){case"UINT8":return new Uint8Array(n.buffer,n.byteOffset,i);case"INT8":return new Int8Array(n.buffer,n.byteOffset,i);case"INT32":return new Int32Array(n.buffer,n.byteOffset,i);case"FLOAT":return new Float32Array(n.buffer,n.byteOffset,i);case"DOUBLE":case"VARCHAR":return new Float64Array(n.buffer,n.byteOffset,i);default:return new Array(0)}}function Pl(e,t,r){let i=e.HEAPU8.subarray(t,t+r);return new Uint8Array(i.buffer,i.byteOffset,r)}function fa(e,t,r){let i=e.HEAPU8.subarray(t,t+8*r);return new Float64Array(i.buffer,i.byteOffset,r)}function Bl(e,t,r,i,n,a,s,o){try{let l=e._udfFunctions.get(i);if(!l)return void Do(t,r,"Unknown UDF with id: "+i);let c=Ml.decode(t.HEAPU8.subarray(n,n+a)),_=JSON.parse(c),u=fa(t,s,o/8),d=e=>{var r;let i=null;switch(void 0!==e.validityBuffer&&(i=Pl(t,u[e.validityBuffer],_.rows)),e.physicalType){case"VARCHAR":{if(null===e.dataBuffer||void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for VARCHAR argument");if(null===e.lengthBuffer||void 0===e.lengthBuffer)throw new Error("malformed data view, expected data length buffer for VARCHAR argument");let r=ko(t,u[e.dataBuffer],e.physicalType,_.rows),n=[],a=fa(t,u[e.lengthBuffer],_.rows);for(let e=0;e<_.rows;++e){if(null!=i&&!i[e]){n.push(null);continue}let s=t.HEAPU8.subarray(r[e],r[e]+a[e]),o=Ml.decode(s);n.push(o)}return e=>n[e]}case"STRUCT":{let t={},n=[];for(let i=0;i<((null==(r=e.children)?void 0:r.length)||0);++i){let r=e.children[i],a=d(r);n.push((e=>{t[r.name]=a(e)}))}return null!=i?e=>{if(!i[e])return null;for(let t of n)t(e);return t}:e=>{for(let t of n)t(e);return t}}default:{if(void 0===e.dataBuffer)throw new Error("malformed data view, expected data buffer for argument of type: "+e.physicalType);let r=ko(t,u[e.dataBuffer],e.physicalType,_.rows);return null!=i?e=>i[e]?r[e]:null:e=>r[e]}}},p=[];for(let e=0;e<_.args.length;++e)p.push(d(_.args[e]));let f=_.rows*To(_.ret.physicalType),m=t._malloc(f),h=ko(t,m,_.ret.physicalType,_.rows),g=t._malloc(_.rows),v=Pl(t,g,_.rows);if(0==h.length||0==v.length)return void Do(t,r,"Can't create physical arrays for result");let y=h;"VARCHAR"==_.ret.physicalType&&(y=new Array(_.rows));let b=[];for(let e=0;e<_.args.length;++e)b.push(null);for(let e=0;e<_.rows;++e){for(let t=0;t<_.args.length;++t)b[t]=p[t](e);let t=l.func(...b);y[e]=t,v[e]=null==t?0:1}let S=0;if("VARCHAR"===_.ret.physicalType){let e=new Array(0);S=t._malloc(_.rows*To("DOUBLE"));let r=fa(t,S,_.rows),i=0;for(let t=0;t<_.rows;++t){let n=Il.encode(y[t]||"");e.push(n),r[t]=n.length,i+=n.length}let n=t._malloc(i),a=t.HEAPU8.subarray(n,n+i),s=0;for(let t=0;t<_.rows;++t){h[t]=s;let r=e[t];a.subarray(s,s+r.length).set(r),s+=r.length}}let w=24,E=t._malloc(w),L=fa(t,E,3);L[0]=m,L[1]=g,L[2]=S,t.HEAPF64[0+(r>>3)]=0,t.HEAPF64[1+(r>>3)]=E,t.HEAPF64[2+(r>>3)]=0}catch(e){Do(t,r,e.toString())}}function vd(){let e=new TextDecoder;return t=>(typeof SharedArrayBuffer<"u"&&t.buffer instanceof SharedArrayBuffer&&(t=new Uint8Array(t)),e.decode(t))}var yd=vd();function ut(e,t){console.error("FAIL WITH: ".concat(t)),e.ccall("duckdb_web_fail_with",null,["string"],[t])}function Zr(e,t,r){let i=e.HEAPU8.subarray(t,t+r),n=new Uint8Array(new ArrayBuffer(i.byteLength));return n.set(i),n}function te(e,t,r){return yd(e.HEAPU8.subarray(t,t+r))}function fe(e,t,r,i){let n=e.stackSave(),a=e.stackAlloc(24);r.unshift("number"),i.unshift(a),e.ccall(t,null,r,i);let s=e.HEAPF64[0+(a>>3)],o=e.HEAPF64[1+(a>>3)],l=e.HEAPF64[2+(a>>3)];return e.stackRestore(n),[s,o,l]}function be(e){e.ccall("duckdb_web_clear_response",null,[],[])}var pa=class{constructor(e){let t=new Float64Array(e.buffer,e.byteOffset,e.byteLength/8),r=new Uint8Array(new ArrayBuffer(e.byteLength));r.set(e.subarray(56)),this.totalFileReadsCold=t[0],this.totalFileReadsAhead=t[1],this.totalFileReadsCached=t[2],this.totalFileWrites=t[3],this.totalPageAccesses=t[4],this.totalPageLoads=t[5],this.blockSize=t[6],this.blockStats=r}getBlockStats(e,t){return(t=t||{file_reads_cold:0,file_reads_ahead:0,file_reads_cached:0,file_writes:0,page_accesses:0,page_loads:0}).file_writes=15&this.blockStats[3*e+0],t.file_reads_cold=this.blockStats[3*e+0]>>4,t.file_reads_ahead=15&this.blockStats[3*e+1],t.file_reads_cached=this.blockStats[3*e+1]>>4,t.page_accesses=15&this.blockStats[3*e+1],t.page_loads=this.blockStats[3*e+1]>>4,t}},Ti=new TextEncoder,ma=class{constructor(e,t){this._instance=null,this._initPromise=null,this._initPromiseResolver=()=>{},this.onInstantiationProgress=[],this._logger=e,this._runtime=t,this._nextUDFId=1}get logger(){return this._logger}get mod(){return this._instance}get pthread(){return this.mod.PThread||null}async instantiate(e=(e=>{})){return null!=this._instance||(null!=this._initPromise&&(this.onInstantiationProgress.push(e),await this._initPromise),this._initPromise=new Promise((e=>{this._initPromiseResolver=e})),this.onInstantiationProgress=[e],this._instance=await this.instantiateImpl({print:console.log.bind(console),printErr:console.log.bind(console),onRuntimeInitialized:this._initPromiseResolver}),await this._initPromise,this._initPromise=null,this.onInstantiationProgress=this.onInstantiationProgress.filter((t=>t!=e)),globalThis.DUCKDB_BINDINGS=this),this}open(e){let[t,r,i]=fe(this.mod,"duckdb_web_open",["string"],[JSON.stringify(e)]);if(0!==t)throw new Error(te(this.mod,r,i));be(this.mod)}reset(){let[e,t,r]=fe(this.mod,"duckdb_web_reset",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));be(this.mod)}getVersion(){let[e,t,r]=fe(this.mod,"duckdb_web_get_version",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));let i=te(this.mod,t,r);return be(this.mod),i}getFeatureFlags(){return this.mod.ccall("duckdb_web_get_feature_flags","number",[],[])}tokenize(e){let t=Ti.encode(e),r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[i,n,a]=fe(this.mod,"duckdb_web_tokenize_buffer",["number","number"],[r,t.length]);if(this.mod._free(r),0!==i)throw new Error(te(this.mod,n,a));let s=te(this.mod,n,a);return be(this.mod),JSON.parse(s)}connect(){let e=this.mod.ccall("duckdb_web_connect","number",[],[]);return new _a(this,e)}disconnect(e){if(this.mod.ccall("duckdb_web_disconnect",null,["number"],[e]),this.pthread)for(let t of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])t.postMessage({cmd:"dropUDFFunctions",connectionId:e})}runQuery(e,t){let r=Ti.encode(t),i=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(i,i+r.length).set(r);let[n,a,s]=fe(this.mod,"duckdb_web_query_run_buffer",["number","number","number"],[e,i,r.length]);if(this.mod._free(i),0!==n)throw new Error(te(this.mod,a,s));let o=Zr(this.mod,a,s);return be(this.mod),o}startPendingQuery(e,t,r=!1){let i=Ti.encode(t),n=this.mod._malloc(i.length);this.mod.HEAPU8.subarray(n,n+i.length).set(i);let[a,s,o]=fe(this.mod,"duckdb_web_pending_query_start_buffer",["number","number","number","boolean"],[e,n,i.length,r]);if(this.mod._free(n),0!==a)throw new Error(te(this.mod,s,o));if(0==s)return null;let l=Zr(this.mod,s,o);return be(this.mod),l}pollPendingQuery(e){let[t,r,i]=fe(this.mod,"duckdb_web_pending_query_poll",["number"],[e]);if(0!==t)throw new Error(te(this.mod,r,i));if(0==r)return null;let n=Zr(this.mod,r,i);return be(this.mod),n}cancelPendingQuery(e){return this.mod.ccall("duckdb_web_pending_query_cancel","boolean",["number"],[e])}fetchQueryResults(e){let[t,r,i]=fe(this.mod,"duckdb_web_query_fetch_results",["number"],[e]);if(0!==t)throw new Error(te(this.mod,r,i));let n=Zr(this.mod,r,i);return be(this.mod),n}getTableNames(e,t){let r=Ti.encode(t),i=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(i,i+r.length).set(r);let[n,a,s]=fe(this.mod,"duckdb_web_get_tablenames_buffer",["number","number","number"],[e,i,r.length]);if(this.mod._free(i),0!==n)throw new Error(te(this.mod,a,s));let o=te(this.mod,a,s);return be(this.mod),JSON.parse(o)}createScalarFunction(e,t,r,i){let n={functionId:this._nextUDFId,name:t,returnType:ki(r)},a={functionId:n.functionId,connectionId:e,name:t,returnType:r,func:i};this._nextUDFId+=1;let[s,o,l]=fe(this.mod,"duckdb_web_udf_scalar_create",["number","string"],[e,JSON.stringify(n)]);if(0!==s)throw new Error(te(this.mod,o,l));if(be(this.mod),globalThis.DUCKDB_RUNTIME._udfFunctions=(globalThis.DUCKDB_RUNTIME._udfFunctions||new Map).set(a.functionId,a),this.pthread)for(let e of[...this.pthread.runningWorkers,...this.pthread.unusedWorkers])e.postMessage({cmd:"registerUDFFunction",udf:a})}createPrepared(e,t){let r=Ti.encode(t),i=this.mod._malloc(r.length);this.mod.HEAPU8.subarray(i,i+r.length).set(r);let[n,a,s]=fe(this.mod,"duckdb_web_prepared_create_buffer",["number","number","number"],[e,i,r.length]);if(this.mod._free(i),0!==n)throw new Error(te(this.mod,a,s));return be(this.mod),a}closePrepared(e,t){let[r,i,n]=fe(this.mod,"duckdb_web_prepared_close",["number","number"],[e,t]);if(0!==r)throw new Error(te(this.mod,i,n));be(this.mod)}runPrepared(e,t,r){let[i,n,a]=fe(this.mod,"duckdb_web_prepared_run",["number","number","string"],[e,t,JSON.stringify(r)]);if(0!==i)throw new Error(te(this.mod,n,a));let s=Zr(this.mod,n,a);return be(this.mod),s}sendPrepared(e,t,r){let[i,n,a]=fe(this.mod,"duckdb_web_prepared_send",["number","number","string"],[e,t,JSON.stringify(r)]);if(0!==i)throw new Error(te(this.mod,n,a));let s=Zr(this.mod,n,a);return be(this.mod),s}insertArrowFromIPCStream(e,t,r){if(0==t.length)return;let i=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(i,i+t.length).set(t);let n=r?JSON.stringify(r):"",[a,s,o]=fe(this.mod,"duckdb_web_insert_arrow_from_ipc_stream",["number","number","number","string"],[e,i,t.length,n]);if(0!==a)throw new Error(te(this.mod,s,o))}insertCSVFromPath(e,t,r){if(void 0!==r.columns){r.columnsFlat=[];for(let e in r.columns)r.columnsFlat.push(la(e,r.columns[e]))}let i={...r};i.columns=i.columnsFlat,delete i.columnsFlat;let n=JSON.stringify(i),[a,s,o]=fe(this.mod,"duckdb_web_insert_csv_from_path",["number","string","string"],[e,t,n]);if(0!==a)throw new Error(te(this.mod,s,o))}insertJSONFromPath(e,t,r){if(void 0!==r.columns){r.columnsFlat=[];for(let e in r.columns)r.columnsFlat.push(la(e,r.columns[e]))}let i={...r};i.columns=i.columnsFlat,delete i.columnsFlat;let n=JSON.stringify(i),[a,s,o]=fe(this.mod,"duckdb_web_insert_json_from_path",["number","string","string"],[e,t,n]);if(0!==a)throw new Error(te(this.mod,s,o))}globFiles(e){let[t,r,i]=fe(this.mod,"duckdb_web_fs_glob_file_infos",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,i));let n=te(this.mod,r,i);be(this.mod);let a=JSON.parse(n);return null==a?[]:a}registerFileURL(e,t,r,i=!1){void 0===t&&(t=e);let[n,a,s]=fe(this.mod,"duckdb_web_fs_register_file_url",["string","string"],[e,t,r,i]);if(0!==n)throw new Error(te(this.mod,a,s));be(this.mod)}registerFileText(e,t){let r=Ti.encode(t);this.registerFileBuffer(e,r)}registerFileBuffer(e,t){let r=this.mod._malloc(t.length);this.mod.HEAPU8.subarray(r,r+t.length).set(t);let[i,n,a]=fe(this.mod,"duckdb_web_fs_register_file_buffer",["string","number","number"],[e,r,t.length]);if(0!==i)throw new Error(te(this.mod,n,a));be(this.mod)}registerFileHandle(e,t,r,i){let[n,a,s]=fe(this.mod,"duckdb_web_fs_register_file_url",["string","string","number","boolean"],[e,e,r,i]);if(0!==n)throw new Error(te(this.mod,a,s));if(be(this.mod),globalThis.DUCKDB_RUNTIME._files=(globalThis.DUCKDB_RUNTIME._files||new Map).set(e,t),this.pthread){for(let r of this.pthread.runningWorkers)r.postMessage({cmd:"registerFileHandle",fileName:e,fileHandle:t});for(let t of this.pthread.unusedWorkers)t.postMessage({cmd:"dropFileHandle",fileName:e})}}dropFile(e){let[t,r,i]=fe(this.mod,"duckdb_web_fs_drop_file",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,i));be(this.mod)}dropFiles(){let[e,t,r]=fe(this.mod,"duckdb_web_fs_drop_files",[],[]);if(0!==e)throw new Error(te(this.mod,t,r));be(this.mod)}flushFiles(){this.mod.ccall("duckdb_web_flush_files",null,[],[])}copyFileToPath(e,t){let[r,i,n]=fe(this.mod,"duckdb_web_copy_file_to_path",["string","string"],[e,t]);if(0!==r)throw new Error(te(this.mod,i,n));be(this.mod)}copyFileToBuffer(e){let[t,r,i]=fe(this.mod,"duckdb_web_copy_file_to_buffer",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,i));let n=this.mod.HEAPU8.subarray(r,r+i),a=new Uint8Array(n.length);return a.set(n),be(this.mod),a}collectFileStatistics(e,t){let[r,i,n]=fe(this.mod,"duckdb_web_collect_file_stats",["string","boolean"],[e,t]);if(0!==r)throw new Error(te(this.mod,i,n))}exportFileStatistics(e){let[t,r,i]=fe(this.mod,"duckdb_web_export_file_stats",["string"],[e]);if(0!==t)throw new Error(te(this.mod,r,i));return new pa(this.mod.HEAPU8.subarray(r,r+i))}},ha=class extends ma{constructor(e,t,r,i){super(e,t),this.mainModuleURL=r,this.pthreadWorkerURL=i}locateFile(e,t){if(e.endsWith(".wasm"))return this.mainModuleURL;if(e.endsWith(".worker.js")){if(!this.pthreadWorkerURL)throw new Error("Missing DuckDB worker URL!");return this.pthreadWorkerURL}throw new Error("WASM instantiation requested unexpected file: prefix=".concat(t," path=").concat(e))}instantiateWasm(e,t){globalThis.DUCKDB_RUNTIME=this._runtime;let r=this.onInstantiationProgress;if(WebAssembly.instantiateStreaming)if("function"==typeof TransformStream){let i=(async()=>{var e;let t=new Request(this.mainModuleURL),i=await fetch(t),n=i.headers.get("content-length"),a=n&&parseInt(n,10)||0,s=new Date,o={startedAt:s,updatedAt:s,bytesTotal:a||0,bytesLoaded:0},l=new TransformStream({transform(e,t){o.bytesLoaded+=e.byteLength;let i=new Date;if(i.getTime()-o.updatedAt.getTime()<20)return o.updatedAt=i,void t.enqueue(e);for(let e of r)e(o);t.enqueue(e)}});return new Response(null==(e=i.body)?void 0:e.pipeThrough(l),i)})();WebAssembly.instantiateStreaming(i,e).then((e=>{t(e.instance,e.module)}))}else{console.warn("instantiating without progress handler since transform streams are unavailable");let r=new Request(this.mainModuleURL);WebAssembly.instantiateStreaming(fetch(r),e).then((e=>{t(e.instance,e.module)}))}else if("function"==typeof XMLHttpRequest){let i=new XMLHttpRequest,n=this.mainModuleURL,a=new Date,s={startedAt:a,updatedAt:a,bytesTotal:0,bytesLoaded:0};i.open("GET",n),i.responseType="arraybuffer",i.onerror=e=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to load WASM: "+e}),new Error(e.toString())},i.onprogress=e=>{s.bytesTotal=e.total,s.bytesLoaded=e.loaded;let t=new Date;if(t.getTime()-s.updatedAt.getTime()<20)s.updatedAt=t;else for(let e of r)e(s)},i.onload=()=>{WebAssembly.instantiate(i.response,e).then((e=>{t(e.instance,e.module)})).catch((e=>{throw this.logger.log({timestamp:new Date,level:4,origin:3,topic:5,event:2,value:"Failed to instantiate WASM: "+e}),new Error(e)}))},i.send()}else console.warn("instantiating with manual fetch since streaming instantiation and xhrs are unavailable"),(async()=>{let r=new Request(this.mainModuleURL),i=await(await fetch(r)).arrayBuffer();WebAssembly.instantiate(i,e).then((e=>{t(e.instance,e.module)}))})();return[]}},ga=class extends ha{constructor(e,t,r,i=null){super(e,t,r,i)}instantiateImpl(e){return(0,Rl.default)({...e,instantiateWasm:this.instantiateWasm.bind(this),locateFile:this.locateFile.bind(this)})}},Cr=Bo(jl()),Ol=function(e,t,r){var i;if(null!=(i=null==e?void 0:e.endpoint)&&i.startsWith("http")){let t="".concat(null==e?void 0:e.endpoint),r=t.indexOf("://")+3;return t.substring(r)}return null!=e&&e.endpoint?"".concat(r,".").concat(null==e?void 0:e.endpoint):"".concat(r,".s3.amazonaws.com")};function bd(e,t,r){var i,n,a,s;let o=Hl(t),l=o.path;return Nl(e)&&(l="/".concat(o.bucket).concat(l)),{url:l,query:"",host:Ol(e,t,o.bucket),region:null!=(i=null==e?void 0:e.region)?i:"",service:"s3",method:r,accessKeyId:null!=(n=null==e?void 0:e.accessKeyId)?n:"",secretAccessKey:null!=(a=null==e?void 0:e.secretAccessKey)?a:"",sessionToken:null!=(s=null==e?void 0:e.sessionToken)?s:"",dateNow:(new Date).toISOString().replace(/-/g,"").split("T")[0],datetimeNow:(new Date).toISOString().replace(/-/g,"").replace(/:/g,"").split(".")[0]+"Z"}}function Sd(e,t=!1){let r="0123456789ABCDEF",i="";for(let n=0;n="A"&&a<="Z"||a>="a"&&a<="z"||a>="0"&&a<="9"||"_"==a||"-"==a||"~"==a||"."==a?i+=a:"/"==a?i+=t?"%2F":a:(i+="%",i+=r[a.charCodeAt(0)>>4],i+=r[15&a.charCodeAt(0)])}return i}function wd(e,t=null){var r;let i=null!=(r=null==t?void 0:t.contentHash)?r:"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",n=new Map;n.set("x-amz-date",e.datetimeNow),n.set("x-amz-content-sha256",i),e.sessionToken&&n.set("x-amz-security-token",e.sessionToken);let a="";null!=t&&t.contentType&&(a+="content-type;"),a+="host;x-amz-content-sha256;x-amz-date",e.sessionToken&&(a+=";x-amz-security-token");let s=e.method+"\n"+Sd(e.url)+"\n"+e.query;null!=t&&t.contentType&&(s+="\ncontent-type:"+(null==t?void 0:t.contentType)),s+="\nhost:"+e.host+"\nx-amz-content-sha256:"+i+"\nx-amz-date:"+e.datetimeNow,e.sessionToken&&e.sessionToken.length>0&&(s+="\nx-amz-security-token:"+e.sessionToken),s+="\n\n"+a+"\n"+i;let o=(0,Cr.sha256)(s),l="AWS4-HMAC-SHA256\n"+e.datetimeNow+"\n"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request\n"+o,c="AWS4"+e.secretAccessKey,_=Cr.sha256.hmac.arrayBuffer(c,e.dateNow),u=Cr.sha256.hmac.arrayBuffer(_,e.region),d=Cr.sha256.hmac.arrayBuffer(u,e.service),p=Cr.sha256.hmac.arrayBuffer(d,"aws4_request"),f=Cr.sha256.hmac(p,l);return n.set("Authorization","AWS4-HMAC-SHA256 Credential="+e.accessKeyId+"/"+e.dateNow+"/"+e.region+"/"+e.service+"/aws4_request, SignedHeaders="+a+", Signature="+f),n}var Ed=function(e,t,r,i=null,n=null){return wd(bd(e,t,r),{contentType:i,contentHash:n?Cr.sha256.hex(n):null})};function Tt(e,t,r,i,n=null,a=null){(null!=t&&t.accessKeyId||null!=t&&t.sessionToken)&&(Ed(t,r,i,n,a).forEach(((t,r)=>{e.setRequestHeader(r,t)})),n&&e.setRequestHeader("content-type",n))}function Hl(e){if(0!=e.indexOf("s3://"))throw new Error("URL needs to start with s3://");let t=e.indexOf("/",5);if(-1==t)throw new Error("URL needs to contain a '/' after the host");let r=e.substring(5,t);if(!r)throw new Error("URL needs to contain a bucket name");let i=e.substring(t);if(!i)throw new Error("URL needs to contain key");return{bucket:r,path:i}}function Nl(e){var t;return!(null==(t=null==e?void 0:e.endpoint)||!t.startsWith("http"))}function Ft(e,t){let r=Hl(t);return Nl(e)?"".concat(null==e?void 0:e.endpoint,"/").concat(r.bucket)+r.path:"https://"+Ol(e,t,r.bucket)+r.path}var ce={_files:new Map,_fileInfoCache:new Map,_udfFunctions:new Map,_globalFileInfo:null,getFileInfo(e,t){try{let r=ce._fileInfoCache.get(t),[i,n,a]=fe(e,"duckdb_web_fs_get_file_info_by_id",["number","number"],[t,(null==r?void 0:r.cacheEpoch)||0]);if(0!==i)return null;if(0===a)return r;let s=te(e,n,a);be(e);try{let e=JSON.parse(s);if(null==e)return null;let r={...e,blob:null};return ce._fileInfoCache.set(t,r),r}catch(e){return console.warn(e),null}}catch(e){return console.log(e),null}},getGlobalFileInfo(e){var t;try{let[r,i,n]=fe(e,"duckdb_web_get_global_file_info",["number"],[(null==(t=ce._globalFileInfo)?void 0:t.cacheEpoch)||0]);if(0!==r)return null;if(0===n)return ce._globalFileInfo;let a=te(e,i,n);be(e);let s=JSON.parse(a);return null==s?null:(ce._globalFileInfo={...s,blob:null},ce._globalFileInfo)}catch(e){return console.log(e),null}},testPlatformFeature:(e,t)=>1===t?typeof BigInt64Array<"u":(console.warn("test for unknown feature: ".concat(t)),!1),getDefaultDataProtocol:e=>2,openFile:(e,t,r)=>{var i,n;try{ce._fileInfoCache.delete(t);let a=ce.getFileInfo(e,t);switch(null==a?void 0:a.dataProtocol){case 4:case 5:{if(1&r&&2&r)throw new Error("Opening file ".concat(a.fileName," failed: cannot open file with both read and write flags set"));if(32&r)throw new Error("Opening file ".concat(a.fileName," failed: appending to HTTP/S3 files is not supported"));if(2&r){let t=new XMLHttpRequest;if(5==a.dataProtocol?(t.open("HEAD",Ft(a.s3Config,a.dataUrl),!1),Tt(t,a.s3Config,a.dataUrl,"HEAD")):t.open("HEAD",a.dataUrl,!1),t.send(null),200!=t.status&&404!=t.status)throw new Error("Opening file ".concat(a.fileName," failed: Unexpected return status from server (").concat(t.status,")"));if(404==t.status&&!(8&r||16&r))throw new Error("Opening file ".concat(a.fileName," failed: Cannot write to non-existent file without FILE_FLAGS_FILE_CREATE or FILE_FLAGS_FILE_CREATE_NEW flag."));let i=e._malloc(1),n=new Uint8Array;e.HEAPU8.set(n,i);let s=e._malloc(16);return e.HEAPF64[0+(s>>3)]=1,e.HEAPF64[1+(s>>3)]=i,s}if(!(1&r))throw new Error("Opening file ".concat(a.fileName," failed: unsupported file flags: ").concat(r));let t=null,n=null;if(a.reliableHeadRequests||!a.allowFullHttpReads)try{let r=new XMLHttpRequest;if(5==a.dataProtocol?(r.open("HEAD",Ft(a.s3Config,a.dataUrl),!1),Tt(r,a.s3Config,a.dataUrl,"HEAD")):r.open("HEAD",a.dataUrl,!1),r.setRequestHeader("Range","bytes=0-"),r.send(null),t=r.getResponseHeader("Content-Length"),null!==t&&206==r.status){let r=e._malloc(16);return e.HEAPF64[0+(r>>3)]=+t,e.HEAPF64[1+(r>>3)]=0,r}}catch(e){n=e,console.warn("HEAD request with range header failed: ".concat(e))}if(a.allowFullHttpReads){{let r=new XMLHttpRequest;5==a.dataProtocol?(r.open("GET",Ft(a.s3Config,a.dataUrl),!1),Tt(r,a.s3Config,a.dataUrl,"GET")):r.open("GET",a.dataUrl,!1),r.responseType="arraybuffer",r.setRequestHeader("Range","bytes=0-0"),r.send(null);let n=null==(i=r.getResponseHeader("Content-Range"))?void 0:i.split("/")[1],s=r.getResponseHeader("Content-Length"),o=null;if(void 0!==n)o=n;else if(!a.reliableHeadRequests){let e=new XMLHttpRequest;5==a.dataProtocol?(e.open("HEAD",Ft(a.s3Config,a.dataUrl),!1),Tt(e,a.s3Config,a.dataUrl,"HEAD")):e.open("HEAD",a.dataUrl,!1),e.setRequestHeader("Range","bytes=0-"),e.send(null),t=e.getResponseHeader("Content-Length"),null!==t&&+t>1&&(o=t)}if(206==r.status&&null!==s&&1==+s&&null!==o){let t=e._malloc(16);return e.HEAPF64[0+(t>>3)]=+o,e.HEAPF64[1+(t>>3)]=0,t}if(200==r.status&&null!==s&&null!==t&&+s==+t){console.warn("fall back to full HTTP read for: ".concat(a.dataUrl));let t=e._malloc(r.response.byteLength),i=new Uint8Array(r.response,0,r.response.byteLength);e.HEAPU8.set(i,t);let n=e._malloc(16);return e.HEAPF64[0+(n>>3)]=r.response.byteLength,e.HEAPF64[1+(n>>3)]=t,n}}console.warn("falling back to full HTTP read for: ".concat(a.dataUrl));let r=new XMLHttpRequest;if(5==a.dataProtocol?(r.open("GET",Ft(a.s3Config,a.dataUrl),!1),Tt(r,a.s3Config,a.dataUrl,"GET")):r.open("GET",a.dataUrl,!1),r.responseType="arraybuffer",r.send(null),200==r.status){let t=e._malloc(r.response.byteLength),i=new Uint8Array(r.response,0,r.response.byteLength);e.HEAPU8.set(i,t);let n=e._malloc(16);return e.HEAPF64[0+(n>>3)]=r.response.byteLength,e.HEAPF64[1+(n>>3)]=t,n}}if(null!=n)throw new Error("Reading file ".concat(a.fileName," failed with error: ").concat(n));return 0}case 2:{let t=null==(n=ce._files)?void 0:n.get(a.fileName);if(t){let r=e._malloc(16);return e.HEAPF64[0+(r>>3)]=t.size,e.HEAPF64[1+(r>>3)]=0,r}console.warn("Buffering missing file: ".concat(a.fileName));let r=e._malloc(16),i=e._malloc(1);return e.HEAPF64[0+(r>>3)]=1,e.HEAPF64[1+(r>>3)]=i,r}}}catch(t){console.error(t.toString()),ut(e,t.toString())}return 0},glob:(e,t,r)=>{var i;try{let n=te(e,t,r);if(n.startsWith("http")||n.startsWith("s3://")){let t=new XMLHttpRequest;if(n.startsWith("s3://")){let r=ce.getGlobalFileInfo(e);t.open("HEAD",Ft(null==r?void 0:r.s3Config,n),!1),Tt(t,null==r?void 0:r.s3Config,n,"HEAD")}else t.open("HEAD",n,!1);if(t.send(null),200!=t.status&&206!==t.status){if(null==(i=ce.getGlobalFileInfo(e))||!i.allowFullHttpReads)return ut(e,"HEAD request failed: ".concat(n,", with full http reads are disabled")),0;let t=new XMLHttpRequest;if(n.startsWith("s3://")){let r=ce.getGlobalFileInfo(e);t.open("GET",Ft(null==r?void 0:r.s3Config,n),!1),Tt(t,null==r?void 0:r.s3Config,n,"HEAD")}else t.open("GET",n,!1);if(t.setRequestHeader("Range","bytes=0-0"),t.send(null),200!=t.status&&206!==t.status)return ut(e,"HEAD and GET requests failed: ".concat(n)),0;let r=t.getResponseHeader("Content-Length");r&&+r>1&&console.warn("Range request for ".concat(n," did not return a partial response: ").concat(t.status,' "').concat(t.statusText,'"'))}e.ccall("duckdb_web_fs_glob_add_path",null,["string"],[n])}}catch(t){return console.log(t),ut(e,t.toString()),0}},checkFile:(e,t,r)=>{try{let i=te(e,t,r);if(i.startsWith("http")||i.startsWith("s3://")){let t=new XMLHttpRequest;if(i.startsWith("s3://")){let r=ce.getGlobalFileInfo(e);t.open("HEAD",Ft(null==r?void 0:r.s3Config,i),!1),Tt(t,null==r?void 0:r.s3Config,i,"HEAD")}else t.open("HEAD",i,!1);return t.send(null),206==t.status||200==t.status}}catch(e){return console.log(e),!1}return!1},syncFile:(e,t)=>{},closeFile:(e,t)=>{var r;let i=ce.getFileInfo(e,t);switch(ce._fileInfoCache.delete(t),null==i?void 0:i.dataProtocol){case 0:case 4:case 5:break;case 1:case 2:return;case 3:{let e=null==(r=ce._files)?void 0:r.get(i.fileName);if(!e)throw new Error("No OPFS access handle registered with name: ".concat(i.fileName));return e.flush()}}},truncateFile:(e,t,r)=>{var i;let n=ce.getFileInfo(e,t);switch(null==n?void 0:n.dataProtocol){case 4:return void ut(e,"Cannot truncate a http file");case 5:return void ut(e,"Cannot truncate an s3 file");case 0:case 1:case 2:return void ut(e,"truncateFile not implemented");case 3:{let e=null==(i=ce._files)?void 0:i.get(n.fileName);if(!e)throw new Error("No OPFS access handle registered with name: ".concat(n.fileName));return e.truncate(r)}}return 0},readFile(e,t,r,i,n){var a,s;if(0==i)return 0;try{let o=ce.getFileInfo(e,t);switch(null==o?void 0:o.dataProtocol){case 4:case 5:if(!o.dataUrl)throw new Error("Missing data URL for file ".concat(t));try{let t=new XMLHttpRequest;if(5==o.dataProtocol?(t.open("GET",Ft(null==o?void 0:o.s3Config,o.dataUrl),!1),Tt(t,null==o?void 0:o.s3Config,o.dataUrl,"GET")):t.open("GET",o.dataUrl,!1),t.responseType="arraybuffer",t.setRequestHeader("Range","bytes=".concat(n,"-").concat(n+i-1)),t.send(null),206==t.status||200==t.status&&i==t.response.byteLength&&0==n){let n=new Uint8Array(t.response,0,Math.min(t.response.byteLength,i));return e.HEAPU8.set(n,r),n.byteLength}if(200==t.status){console.warn("Range request for ".concat(o.dataUrl," did not return a partial response: ").concat(t.status,' "').concat(t.statusText,'"'));let a=new Uint8Array(t.response,n,Math.min(t.response.byteLength-n,i));return e.HEAPU8.set(a,r),a.byteLength}throw new Error("Range request for ".concat(o.dataUrl," did returned non-success status: ").concat(t.status,' "').concat(t.statusText,'"'))}catch(e){throw console.log(e),new Error("Range request for ".concat(o.dataUrl," failed with error: ").concat(e,'"'))}case 2:{let t=null==(a=ce._files)?void 0:a.get(o.fileName);if(!t)throw new Error("No HTML5 file registered with name: ".concat(o.fileName));let s=t.slice(n,n+i),l=new Uint8Array((new FileReaderSync).readAsArrayBuffer(s));return e.HEAPU8.set(l,r),l.byteLength}case 3:{let t=null==(s=ce._files)?void 0:s.get(o.fileName);if(!t)throw new Error("No OPFS access handle registered with name: ".concat(o.fileName));let a=e.HEAPU8.subarray(r,r+i);return t.read(a,{at:n})}}return 0}catch(t){return console.log(t),ut(e,t.toString()),0}},writeFile:(e,t,r,i,n)=>{var a;let s=ce.getFileInfo(e,t);switch(null==s?void 0:s.dataProtocol){case 4:return ut(e,"Cannot write to HTTP file"),0;case 5:{let t=e.HEAPU8.subarray(r,r+i),n=new XMLHttpRequest;return n.open("PUT",Ft(null==s?void 0:s.s3Config,s.dataUrl),!1),Tt(n,null==s?void 0:s.s3Config,s.dataUrl,"PUT","",t),n.send(t),200!==n.status?(ut(e,"Failed writing file: HTTP "+n.status),0):i}case 2:return ut(e,"cannot write using the html5 file reader api"),0;case 3:{let t=null==(a=ce._files)?void 0:a.get(s.fileName);if(!t)throw new Error("No OPFS access handle registered with name: ".concat(s.fileName));let o=e.HEAPU8.subarray(r,r+i);return t.write(o,{at:n})}}return 0},getLastFileModificationTime:(e,t)=>{var r;let i=ce.getFileInfo(e,t);switch(null==i?void 0:i.dataProtocol){case 2:if(!(null==(r=ce._files)?void 0:r.get(i.fileName)))throw Error("No handle available for file: ".concat(i.fileName));return 0;case 4:case 5:return(new Date).getTime()}return 0},checkDirectory:(e,t,r)=>{let i=te(e,t,r);return console.log("checkDirectory: ".concat(i)),!1},createDirectory:(e,t,r)=>{let i=te(e,t,r);console.log("createDirectory: ".concat(i))},removeDirectory:(e,t,r)=>{let i=te(e,t,r);console.log("removeDirectory: ".concat(i))},listDirectoryEntries:(e,t,r)=>{let i=te(e,t,r);return console.log("listDirectoryEntries: ".concat(i)),!1},moveFile:(e,t,r,i,n)=>{var a,s;let o=te(e,t,r),l=te(e,i,n),c=null==(a=ce._files)?void 0:a.get(o);void 0!==c&&(ce._files.delete(c),ce._files.set(l,c));for(let[e,t]of(null==(s=ce._fileInfoCache)?void 0:s.entries())||[])if(t.dataUrl==o){ce._fileInfoCache.delete(e);break}return!0},removeFile:(e,t,r)=>{},callScalarUDF:(e,t,r,i,n,a,s)=>{Bl(ce,e,t,r,i,n,a,s)}},Fo=class extends ua{postMessage(e,t){globalThis.postMessage(e,t)}async instantiate(e,t,r){return await new ga(this,ce,e,t).instantiate(r)}};function Wl(){let e=new Fo;globalThis.onmessage=async t=>{await e.onMessage(t.data)}}return Wl(),Yl(Ld)})(); \ No newline at end of file diff --git a/static/assets/duckdb-browser-mvp.worker.f9beb4e5905c48199a83.js.LICENSE.txt b/static/assets/duckdb-browser-mvp.worker.f9beb4e5905c48199a83.js.LICENSE.txt new file mode 100644 index 000000000..286bd31ff --- /dev/null +++ b/static/assets/duckdb-browser-mvp.worker.f9beb4e5905c48199a83.js.LICENSE.txt @@ -0,0 +1,12 @@ +/*! Bundled license information: + +js-sha256/src/sha256.js: + (** + * [js-sha256]{@link https://github.com/emn178/js-sha256} + * + * @version 0.11.0 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2014-2024 + * @license MIT + *) +*/ diff --git a/static/css/346.86f7b3d8bf771a0dd106.css b/static/css/346.86f7b3d8bf771a0dd106.css deleted file mode 100644 index 7c0452828..000000000 --- a/static/css/346.86f7b3d8bf771a0dd106.css +++ /dev/null @@ -1,315 +0,0 @@ -@charset "UTF-8";/*! - * Bootstrap v5.2.3 (https://getbootstrap.com/) - * Copyright 2011-2022 The Bootstrap Authors - * Copyright 2011-2022 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */:root{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-body-color-rgb:33,37,41;--bs-body-bg-rgb:255,255,255;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-bg:#fff;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-2xl:2rem;--bs-border-radius-pill:50rem;--bs-link-color:#0d6efd;--bs-link-hover-color:#0a58ca;--bs-code-color:#d63384;--bs-highlight-bg:#fff3cd}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:1px solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:var(--bs-link-color);text-decoration:underline}a:hover{color:var(--bs-link-hover-color)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:#fff;border:1px solid var(--bs-border-color);border-radius:.375rem;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:#6c757d}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.6666666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.6666666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.6666666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.6666666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.3333333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.6666666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color:var(--bs-body-color);--bs-table-bg:transparent;--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-body-color);--bs-table-striped-bg:rgba(0, 0, 0, 0.05);--bs-table-active-color:var(--bs-body-color);--bs-table-active-bg:rgba(0, 0, 0, 0.1);--bs-table-hover-color:var(--bs-body-color);--bs-table-hover-bg:rgba(0, 0, 0, 0.075);width:100%;margin-bottom:1rem;color:var(--bs-table-color);vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;background-color:var(--bs-table-bg);border-bottom-width:1px;box-shadow:inset 0 0 0 9999px var(--bs-table-accent-bg)}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:2px solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:1px 0}.table-bordered>:not(caption)>*>*{border-width:0 1px}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-accent-bg:var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-accent-bg:var(--bs-table-striped-bg);color:var(--bs-table-striped-color)}.table-active{--bs-table-accent-bg:var(--bs-table-active-bg);color:var(--bs-table-active-color)}.table-hover>tbody>tr:hover>*{--bs-table-accent-bg:var(--bs-table-hover-bg);color:var(--bs-table-hover-color)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#bacbe6;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#cbccce;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#bcd0c7;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#badce3;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#e6dbb9;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#dfc2c4;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#dfe0e1;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#373b3e;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + 1px);padding-bottom:calc(.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + 1px);padding-bottom:calc(.5rem + 1px);font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + 1px);padding-bottom:calc(.25rem + 1px);font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:#6c757d}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:#212529;background-color:#fff;border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-control::-webkit-date-and-time-value{height:1.5em}.form-control::-moz-placeholder{color:#6c757d;opacity:1}.form-control::placeholder{color:#6c757d;opacity:1}.form-control:disabled{background-color:#e9ecef;opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:#212529;background-color:#e9ecef;pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:1px;border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:#dde0e3}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:#dde0e3}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:#212529;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + 2px);padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + 2px);padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + 2px)}textarea.form-control-sm{min-height:calc(1.5em + .5rem + 2px)}textarea.form-control-lg{min-height:calc(1.5em + 1rem + 2px)}.form-control-color{width:3rem;height:calc(1.5em + .75rem + 2px);padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:.375rem}.form-control-color::-webkit-color-swatch{border-radius:.375rem}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + 2px)}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + 2px)}.form-select{display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;-moz-padding-start:calc(0.75rem - 3px);font-size:1rem;font-weight:400;line-height:1.5;color:#212529;background-color:#fff;background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:1px solid #ced4da;border-radius:.375rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:#e9ecef}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #212529}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:.25rem}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:.5rem}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{width:1em;height:1em;margin-top:.25em;vertical-align:top;background-color:#fff;background-repeat:no-repeat;background-position:center;background-size:contain;border:1px solid rgba(0,0,0,.25);-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%272%27 fill=%27%23fff%27/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27M6 10h8%27/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{width:2em;margin-left:-2.5em;background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%280, 0, 0, 0.25%29%27/%3e%3c/svg%3e");background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%2386b7fe%27/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}.form-range{width:100%;height:1.5rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.form-range:disabled::-moz-range-thumb{background-color:#adb5bd}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + 2px);line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;width:100%;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:1px solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control:-webkit-autofill~label{opacity:.65;transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label{border-width:1px 0}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da;border-radius:.375rem}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:.5rem}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:-1px;border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#198754}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:rgba(25,135,84,.9);border-radius:.375rem}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:#198754;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:#198754}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:#198754;box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:#198754}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:#198754}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(25,135,84,.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:#198754}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:#dc3545}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:rgba(220,53,69,.9);border-radius:.375rem}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:#dc3545;padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:#dc3545}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{padding-right:4.125rem;background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e"),url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:#dc3545;box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:#dc3545}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:#dc3545}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(220,53,69,.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:#dc3545}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:#212529;--bs-btn-bg:transparent;--bs-btn-border-width:1px;--bs-btn-border-color:transparent;--bs-btn-border-radius:0.375rem;--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:none;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:0.5rem}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:0.25rem}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:#212529;--bs-dropdown-bg:#fff;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:0.375rem;--bs-dropdown-border-width:1px;--bs-dropdown-inner-border-radius:calc(0.375rem - 1px);--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-dropdown-link-color:#212529;--bs-dropdown-link-hover-color:#1e2125;--bs-dropdown-link-hover-bg:#e9ecef;--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:.375rem}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:-1px}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropend .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropstart .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:-1px}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:#6c757d;display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link.disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:1px;--bs-nav-tabs-border-color:#dee2e6;--bs-nav-tabs-border-radius:0.375rem;--bs-nav-tabs-link-hover-border-color:#e9ecef #e9ecef #dee2e6;--bs-nav-tabs-link-active-color:#495057;--bs-nav-tabs-link-active-bg:#fff;--bs-nav-tabs-link-active-border-color:#dee2e6 #dee2e6 #fff;border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));background:0 0;border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.disabled,.nav-tabs .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:0.375rem;--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{background:0 0;border:0;border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link:disabled{color:var(--bs-nav-link-disabled-color);background-color:transparent;border-color:transparent}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:0.5rem;--bs-navbar-color:rgba(0, 0, 0, 0.55);--bs-navbar-hover-color:rgba(0, 0, 0, 0.7);--bs-navbar-disabled-color:rgba(0, 0, 0, 0.3);--bs-navbar-active-color:rgba(0, 0, 0, 0.9);--bs-navbar-brand-padding-y:0.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(0, 0, 0, 0.9);--bs-navbar-brand-hover-color:rgba(0, 0, 0, 0.9);--bs-navbar-nav-link-padding-x:0.5rem;--bs-navbar-toggler-padding-y:0.25rem;--bs-navbar-toggler-padding-x:0.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%280, 0, 0, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e");--bs-navbar-toggler-border-color:rgba(0, 0, 0, 0.1);--bs-navbar-toggler-border-radius:0.375rem;--bs-navbar-toggler-focus-width:0.25rem;--bs-navbar-toggler-transition:box-shadow 0.15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .show>.nav-link{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark{--bs-navbar-color:rgba(255, 255, 255, 0.55);--bs-navbar-hover-color:rgba(255, 255, 255, 0.75);--bs-navbar-disabled-color:rgba(255, 255, 255, 0.25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, 0.1);--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:0.5rem;--bs-card-border-width:1px;--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:0.375rem;--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(0.375rem - 1px);--bs-card-cap-padding-y:0.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(0, 0, 0, 0.03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:#fff;--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:0.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:#212529;--bs-accordion-bg:#fff;--bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:1px;--bs-accordion-border-radius:0.375rem;--bs-accordion-inner-border-radius:calc(0.375rem - 1px);--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:#212529;--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23212529%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%230c63e4%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color:#86b7fe;--bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:#0c63e4;--bs-accordion-active-bg:#e7f1ff}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed)::after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button::after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button::after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:#6c757d;--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:#6c757d;display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:0.75rem;--bs-pagination-padding-y:0.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:#fff;--bs-pagination-border-width:1px;--bs-pagination-border-color:#dee2e6;--bs-pagination-border-radius:0.375rem;--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:#e9ecef;--bs-pagination-hover-border-color:#dee2e6;--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:#e9ecef;--bs-pagination-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:#6c757d;--bs-pagination-disabled-bg:#fff;--bs-pagination-disabled-border-color:#dee2e6;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:-1px}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:0.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:0.5rem}.pagination-sm{--bs-pagination-padding-x:0.5rem;--bs-pagination-padding-y:0.25rem;--bs-pagination-font-size:0.875rem;--bs-pagination-border-radius:0.25rem}.badge{--bs-badge-padding-x:0.65em;--bs-badge-padding-y:0.35em;--bs-badge-font-size:0.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:0.375rem;display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:1px solid var(--bs-alert-border-color);--bs-alert-border-radius:0.375rem;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:#084298;--bs-alert-bg:#cfe2ff;--bs-alert-border-color:#b6d4fe}.alert-primary .alert-link{color:#06357a}.alert-secondary{--bs-alert-color:#41464b;--bs-alert-bg:#e2e3e5;--bs-alert-border-color:#d3d6d8}.alert-secondary .alert-link{color:#34383c}.alert-success{--bs-alert-color:#0f5132;--bs-alert-bg:#d1e7dd;--bs-alert-border-color:#badbcc}.alert-success .alert-link{color:#0c4128}.alert-info{--bs-alert-color:#055160;--bs-alert-bg:#cff4fc;--bs-alert-border-color:#b6effb}.alert-info .alert-link{color:#04414d}.alert-warning{--bs-alert-color:#664d03;--bs-alert-bg:#fff3cd;--bs-alert-border-color:#ffecb5}.alert-warning .alert-link{color:#523e02}.alert-danger{--bs-alert-color:#842029;--bs-alert-bg:#f8d7da;--bs-alert-border-color:#f5c2c7}.alert-danger .alert-link{color:#6a1a21}.alert-light{--bs-alert-color:#636464;--bs-alert-bg:#fefefe;--bs-alert-border-color:#fdfdfe}.alert-light .alert-link{color:#4f5050}.alert-dark{--bs-alert-color:#141619;--bs-alert-bg:#d3d3d4;--bs-alert-border-color:#bcbebf}.alert-dark .alert-link{color:#101214}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress{--bs-progress-height:1rem;--bs-progress-font-size:0.75rem;--bs-progress-bg:#e9ecef;--bs-progress-border-radius:0.375rem;--bs-progress-box-shadow:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:#212529;--bs-list-group-bg:#fff;--bs-list-group-border-color:rgba(0, 0, 0, 0.125);--bs-list-group-border-width:1px;--bs-list-group-border-radius:0.375rem;--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:#495057;--bs-list-group-action-hover-color:#495057;--bs-list-group-action-hover-bg:#f8f9fa;--bs-list-group-action-active-color:#212529;--bs-list-group-action-active-bg:#e9ecef;--bs-list-group-disabled-color:#6c757d;--bs-list-group-disabled-bg:#fff;--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#084298;background-color:#cfe2ff}.list-group-item-primary.list-group-item-action:focus,.list-group-item-primary.list-group-item-action:hover{color:#084298;background-color:#bacbe6}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#084298;border-color:#084298}.list-group-item-secondary{color:#41464b;background-color:#e2e3e5}.list-group-item-secondary.list-group-item-action:focus,.list-group-item-secondary.list-group-item-action:hover{color:#41464b;background-color:#cbccce}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#41464b;border-color:#41464b}.list-group-item-success{color:#0f5132;background-color:#d1e7dd}.list-group-item-success.list-group-item-action:focus,.list-group-item-success.list-group-item-action:hover{color:#0f5132;background-color:#bcd0c7}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#0f5132;border-color:#0f5132}.list-group-item-info{color:#055160;background-color:#cff4fc}.list-group-item-info.list-group-item-action:focus,.list-group-item-info.list-group-item-action:hover{color:#055160;background-color:#badce3}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#055160;border-color:#055160}.list-group-item-warning{color:#664d03;background-color:#fff3cd}.list-group-item-warning.list-group-item-action:focus,.list-group-item-warning.list-group-item-action:hover{color:#664d03;background-color:#e6dbb9}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#664d03;border-color:#664d03}.list-group-item-danger{color:#842029;background-color:#f8d7da}.list-group-item-danger.list-group-item-action:focus,.list-group-item-danger.list-group-item-action:hover{color:#842029;background-color:#dfc2c4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#842029;border-color:#842029}.list-group-item-light{color:#636464;background-color:#fefefe}.list-group-item-light.list-group-item-action:focus,.list-group-item-light.list-group-item-action:hover{color:#636464;background-color:#e5e5e5}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#636464;border-color:#636464}.list-group-item-dark{color:#141619;background-color:#d3d3d4}.list-group-item-dark.list-group-item-action:focus,.list-group-item-dark.list-group-item-action:hover{color:#141619;background-color:#bebebf}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#141619;border-color:#141619}.btn-close{box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:#000;background:transparent url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z%27/%3e%3c/svg%3e") center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:.5}.btn-close:hover{color:#000;text-decoration:none;opacity:.75}.btn-close:focus{outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25);opacity:1}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:.25}.btn-close-white{filter:invert(1) grayscale(100%) brightness(200%)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:0.75rem;--bs-toast-padding-y:0.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:0.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(255, 255, 255, 0.85);--bs-toast-border-width:1px;--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:0.375rem;--bs-toast-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-toast-header-color:#6c757d;--bs-toast-header-bg:rgba(255, 255, 255, 0.85);--bs-toast-header-border-color:rgba(0, 0, 0, 0.05);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:#fff;--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:1px;--bs-modal-border-radius:0.5rem;--bs-modal-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-modal-inner-border-radius:calc(0.5rem - 1px);--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:1px;--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:1px;position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:0.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:0.5rem;--bs-tooltip-padding-y:0.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:0.875rem;--bs-tooltip-color:#fff;--bs-tooltip-bg:#000;--bs-tooltip-border-radius:0.375rem;--bs-tooltip-opacity:0.9;--bs-tooltip-arrow-width:0.8rem;--bs-tooltip-arrow-height:0.4rem;z-index:var(--bs-tooltip-zindex);display:block;padding:var(--bs-tooltip-arrow-height);margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:0}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,.bs-tooltip-top .tooltip-arrow::before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,.bs-tooltip-end .tooltip-arrow::before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:0}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,.bs-tooltip-bottom .tooltip-arrow::before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:0;width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,.bs-tooltip-start .tooltip-arrow::before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:0.875rem;--bs-popover-bg:#fff;--bs-popover-border-width:1px;--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:0.5rem;--bs-popover-inner-border-radius:calc(0.5rem - 1px);--bs-popover-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:0.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color: ;--bs-popover-header-bg:#f0f0f0;--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:#212529;--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:0.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow::after,.popover .popover-arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::after,.bs-popover-top>.popover-arrow::before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-top>.popover-arrow::after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::after,.bs-popover-end>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-end>.popover-arrow::after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::after,.bs-popover-start>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-start>.popover-arrow::after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translateX(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z%27/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%;list-style:none}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color: ;--bs-offcanvas-bg:#fff;--bs-offcanvas-border-width:1px;--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075)}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:575.98px){.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}}@media (max-width:575.98px){.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:767.98px){.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:767.98px){.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}}@media (max-width:767.98px){.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:991.98px){.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}}@media (max-width:991.98px){.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:1199.98px){.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}}@media (max-width:1199.98px){.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}}@media (max-width:1399.98px){.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}}@media (max-width:1399.98px){.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:transform .3s ease-in-out}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:1.5}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix::after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(13,110,253,var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(108,117,125,var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(25,135,84,var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(13,202,240,var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(255,193,7,var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(220,53,69,var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(248,249,250,var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(33,37,41,var(--bs-bg-opacity,1))!important}.link-primary{color:#0d6efd!important}.link-primary:focus,.link-primary:hover{color:#0a58ca!important}.link-secondary{color:#6c757d!important}.link-secondary:focus,.link-secondary:hover{color:#565e64!important}.link-success{color:#198754!important}.link-success:focus,.link-success:hover{color:#146c43!important}.link-info{color:#0dcaf0!important}.link-info:focus,.link-info:hover{color:#3dd5f3!important}.link-warning{color:#ffc107!important}.link-warning:focus,.link-warning:hover{color:#ffcd39!important}.link-danger{color:#dc3545!important}.link-danger:focus,.link-danger:hover{color:#b02a37!important}.link-light{color:#f8f9fa!important}.link-light:focus,.link-light:hover{color:#f9fafb!important}.link-dark{color:#212529!important}.link-dark:focus,.link-dark:hover{color:#1a1e21!important}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:1px;min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:0 .5rem 1rem rgba(0,0,0,.15)!important}.shadow-sm{box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important}.shadow-lg{box-shadow:0 1rem 3rem rgba(0,0,0,.175)!important}.shadow-none{box-shadow:none!important}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translateX(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-1{--bs-border-width:1px}.border-2{--bs-border-width:2px}.border-3{--bs-border-width:3px}.border-4{--bs-border-width:4px}.border-5{--bs-border-width:5px}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-light{font-weight:300!important}.fw-lighter{font-weight:lighter!important}.fw-normal{font-weight:400!important}.fw-bold{font-weight:700!important}.fw-semibold{font-weight:600!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:#6c757d!important}.text-black-50{--bs-text-opacity:1;color:rgba(0,0,0,.5)!important}.text-white-50{--bs-text-opacity:1;color:rgba(255,255,255,.5)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-2xl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}} -/** - * Copyright (c) 2014 The xterm.js authors. All rights reserved. - * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) - * https://github.com/chjj/term.js - * @license MIT - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - * - * Originally forked from (with the author's permission): - * Fabrice Bellard's javascript vt100 for jslinux: - * http://bellard.org/jslinux/ - * Copyright (c) 2011 Fabrice Bellard - * The original design remains. The terminal itself - * has been extended to include xterm CSI codes, among - * other features. - */ - -/** - * Default styles for xterm.js - */ - -.xterm { - cursor: text; - position: relative; - user-select: none; - -ms-user-select: none; - -webkit-user-select: none; -} - -.xterm.focus, -.xterm:focus { - outline: none; -} - -.xterm .xterm-helpers { - position: absolute; - top: 0; - /** - * The z-index of the helpers must be higher than the canvases in order for - * IMEs to appear on top. - */ - z-index: 5; -} - -.xterm .xterm-helper-textarea { - padding: 0; - border: 0; - margin: 0; - /* Move textarea out of the screen to the far left, so that the cursor is not visible */ - position: absolute; - opacity: 0; - left: -9999em; - top: 0; - width: 0; - height: 0; - z-index: -5; - /** Prevent wrapping so the IME appears against the textarea at the correct position */ - white-space: nowrap; - overflow: hidden; - resize: none; -} - -.xterm .composition-view { - /* TODO: Composition position got messed up somewhere */ - background: #000; - color: #FFF; - display: none; - position: absolute; - white-space: nowrap; - z-index: 1; -} - -.xterm .composition-view.active { - display: block; -} - -.xterm .xterm-viewport { - /* On OS X this is required in order for the scroll bar to appear fully opaque */ - background-color: #000; - overflow-y: scroll; - cursor: default; - position: absolute; - right: 0; - left: 0; - top: 0; - bottom: 0; -} - -.xterm .xterm-screen { - position: relative; -} - -.xterm .xterm-screen canvas { - position: absolute; - left: 0; - top: 0; -} - -.xterm .xterm-scroll-area { - visibility: hidden; -} - -.xterm-char-measure-element { - display: inline-block; - visibility: hidden; - position: absolute; - top: 0; - left: -9999em; - line-height: normal; -} - -.xterm.enable-mouse-events { - /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */ - cursor: default; -} - -.xterm.xterm-cursor-pointer, -.xterm .xterm-cursor-pointer { - cursor: pointer; -} - -.xterm.column-select.focus { - /* Column selection mode */ - cursor: crosshair; -} - -.xterm .xterm-accessibility, -.xterm .xterm-message { - position: absolute; - left: 0; - top: 0; - bottom: 0; - z-index: 10; - color: transparent; -} - -.xterm .live-region { - position: absolute; - left: -9999px; - width: 1px; - height: 1px; - overflow: hidden; -} - -.xterm-dim { - opacity: 0.5; -} - -.xterm-underline-1 { text-decoration: underline; } -.xterm-underline-2 { text-decoration: double underline; } -.xterm-underline-3 { text-decoration: wavy underline; } -.xterm-underline-4 { text-decoration: dotted underline; } -.xterm-underline-5 { text-decoration: dashed underline; } - -.xterm-strikethrough { - text-decoration: line-through; -} - -.xterm-screen .xterm-decoration-container .xterm-decoration { - z-index: 6; - position: absolute; -} - -.xterm-decoration-overview-ruler { - z-index: 7; - position: absolute; - top: 0; - right: 0; - pointer-events: none; -} - -.xterm-decoration-top { - z-index: 2; - position: relative; -} - -.tooltip-container { - --tooltipBackground: #fff; - --tooltipBorder: #c0c0c0; - --tooltipColor: #000; - - background-color: var(--tooltipBackground); - border-radius: 3px; - border: 1px solid var(--tooltipBorder); - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); - color: var(--tooltipColor); - display: flex; - flex-direction: column; - padding: 0.4rem; - transition: opacity 0.3s; - z-index: 9999; -} - -.tooltip-container[data-popper-interactive='false'] { - pointer-events: none; -} - -.tooltip-arrow { - height: 1rem; - position: absolute; - width: 1rem; - pointer-events: none; -} - -.tooltip-arrow::before { - border-style: solid; - content: ''; - display: block; - height: 0; - margin: auto; - width: 0; -} - -.tooltip-arrow::after { - border-style: solid; - content: ''; - display: block; - height: 0; - margin: auto; - position: absolute; - width: 0; -} - -.tooltip-container[data-popper-placement*='bottom'] .tooltip-arrow { - left: 0; - margin-top: -0.4rem; - top: 0; -} - -.tooltip-container[data-popper-placement*='bottom'] .tooltip-arrow::before { - border-color: transparent transparent var(--tooltipBorder) transparent; - border-width: 0 0.5rem 0.4rem 0.5rem; - position: absolute; - top: -1px; -} - -.tooltip-container[data-popper-placement*='bottom'] .tooltip-arrow::after { - border-color: transparent transparent var(--tooltipBackground) transparent; - border-width: 0 0.5rem 0.4rem 0.5rem; -} - -.tooltip-container[data-popper-placement*='top'] .tooltip-arrow { - bottom: 0; - left: 0; - margin-bottom: -1rem; -} - -.tooltip-container[data-popper-placement*='top'] .tooltip-arrow::before { - border-color: var(--tooltipBorder) transparent transparent transparent; - border-width: 0.4rem 0.5rem 0 0.5rem; - position: absolute; - top: 1px; -} - -.tooltip-container[data-popper-placement*='top'] .tooltip-arrow::after { - border-color: var(--tooltipBackground) transparent transparent transparent; - border-width: 0.4rem 0.5rem 0 0.5rem; -} - -.tooltip-container[data-popper-placement*='right'] .tooltip-arrow { - left: 0; - margin-left: -0.7rem; -} - -.tooltip-container[data-popper-placement*='right'] .tooltip-arrow::before { - border-color: transparent var(--tooltipBorder) transparent transparent; - border-width: 0.5rem 0.4rem 0.5rem 0; -} - -.tooltip-container[data-popper-placement*='right'] .tooltip-arrow::after { - border-color: transparent var(--tooltipBackground) transparent transparent; - border-width: 0.5rem 0.4rem 0.5rem 0; - left: 6px; - top: 0; -} - -.tooltip-container[data-popper-placement*='left'] .tooltip-arrow { - margin-right: -0.7rem; - right: 0; -} - -.tooltip-container[data-popper-placement*='left'] .tooltip-arrow::before { - border-color: transparent transparent transparent var(--tooltipBorder); - border-width: 0.5rem 0 0.5rem 0.4em; -} - -.tooltip-container[data-popper-placement*='left'] .tooltip-arrow::after { - border-color: transparent transparent transparent var(--tooltipBackground); - border-width: 0.5rem 0 0.5rem 0.4em; - left: 3px; - top: 0; -} - diff --git a/static/css/359.1eda2d68a0f8727869f3.css b/static/css/359.1eda2d68a0f8727869f3.css new file mode 100644 index 000000000..026289545 --- /dev/null +++ b/static/css/359.1eda2d68a0f8727869f3.css @@ -0,0 +1,332 @@ +@charset "UTF-8";/*! + * Bootstrap v5.3.3 (https://getbootstrap.com/) + * Copyright 2011-2024 The Bootstrap Authors + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */:root,[data-bs-theme=light]{--bs-blue:#0d6efd;--bs-indigo:#6610f2;--bs-purple:#6f42c1;--bs-pink:#d63384;--bs-red:#dc3545;--bs-orange:#fd7e14;--bs-yellow:#ffc107;--bs-green:#198754;--bs-teal:#20c997;--bs-cyan:#0dcaf0;--bs-black:#000;--bs-white:#fff;--bs-gray:#6c757d;--bs-gray-dark:#343a40;--bs-gray-100:#f8f9fa;--bs-gray-200:#e9ecef;--bs-gray-300:#dee2e6;--bs-gray-400:#ced4da;--bs-gray-500:#adb5bd;--bs-gray-600:#6c757d;--bs-gray-700:#495057;--bs-gray-800:#343a40;--bs-gray-900:#212529;--bs-primary:#0d6efd;--bs-secondary:#6c757d;--bs-success:#198754;--bs-info:#0dcaf0;--bs-warning:#ffc107;--bs-danger:#dc3545;--bs-light:#f8f9fa;--bs-dark:#212529;--bs-primary-rgb:13,110,253;--bs-secondary-rgb:108,117,125;--bs-success-rgb:25,135,84;--bs-info-rgb:13,202,240;--bs-warning-rgb:255,193,7;--bs-danger-rgb:220,53,69;--bs-light-rgb:248,249,250;--bs-dark-rgb:33,37,41;--bs-primary-text-emphasis:#052c65;--bs-secondary-text-emphasis:#2b2f32;--bs-success-text-emphasis:#0a3622;--bs-info-text-emphasis:#055160;--bs-warning-text-emphasis:#664d03;--bs-danger-text-emphasis:#58151c;--bs-light-text-emphasis:#495057;--bs-dark-text-emphasis:#495057;--bs-primary-bg-subtle:#cfe2ff;--bs-secondary-bg-subtle:#e2e3e5;--bs-success-bg-subtle:#d1e7dd;--bs-info-bg-subtle:#cff4fc;--bs-warning-bg-subtle:#fff3cd;--bs-danger-bg-subtle:#f8d7da;--bs-light-bg-subtle:#fcfcfd;--bs-dark-bg-subtle:#ced4da;--bs-primary-border-subtle:#9ec5fe;--bs-secondary-border-subtle:#c4c8cb;--bs-success-border-subtle:#a3cfbb;--bs-info-border-subtle:#9eeaf9;--bs-warning-border-subtle:#ffe69c;--bs-danger-border-subtle:#f1aeb5;--bs-light-border-subtle:#e9ecef;--bs-dark-border-subtle:#adb5bd;--bs-white-rgb:255,255,255;--bs-black-rgb:0,0,0;--bs-font-sans-serif:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue","Noto Sans","Liberation Sans",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--bs-font-monospace:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--bs-gradient:linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));--bs-body-font-family:var(--bs-font-sans-serif);--bs-body-font-size:1rem;--bs-body-font-weight:400;--bs-body-line-height:1.5;--bs-body-color:#212529;--bs-body-color-rgb:33,37,41;--bs-body-bg:#fff;--bs-body-bg-rgb:255,255,255;--bs-emphasis-color:#000;--bs-emphasis-color-rgb:0,0,0;--bs-secondary-color:rgba(33, 37, 41, 0.75);--bs-secondary-color-rgb:33,37,41;--bs-secondary-bg:#e9ecef;--bs-secondary-bg-rgb:233,236,239;--bs-tertiary-color:rgba(33, 37, 41, 0.5);--bs-tertiary-color-rgb:33,37,41;--bs-tertiary-bg:#f8f9fa;--bs-tertiary-bg-rgb:248,249,250;--bs-heading-color:inherit;--bs-link-color:#0d6efd;--bs-link-color-rgb:13,110,253;--bs-link-decoration:underline;--bs-link-hover-color:#0a58ca;--bs-link-hover-color-rgb:10,88,202;--bs-code-color:#d63384;--bs-highlight-color:#212529;--bs-highlight-bg:#fff3cd;--bs-border-width:1px;--bs-border-style:solid;--bs-border-color:#dee2e6;--bs-border-color-translucent:rgba(0, 0, 0, 0.175);--bs-border-radius:0.375rem;--bs-border-radius-sm:0.25rem;--bs-border-radius-lg:0.5rem;--bs-border-radius-xl:1rem;--bs-border-radius-xxl:2rem;--bs-border-radius-2xl:var(--bs-border-radius-xxl);--bs-border-radius-pill:50rem;--bs-box-shadow:0 0.5rem 1rem rgba(0, 0, 0, 0.15);--bs-box-shadow-sm:0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);--bs-box-shadow-lg:0 1rem 3rem rgba(0, 0, 0, 0.175);--bs-box-shadow-inset:inset 0 1px 2px rgba(0, 0, 0, 0.075);--bs-focus-ring-width:0.25rem;--bs-focus-ring-opacity:0.25;--bs-focus-ring-color:rgba(13, 110, 253, 0.25);--bs-form-valid-color:#198754;--bs-form-valid-border-color:#198754;--bs-form-invalid-color:#dc3545;--bs-form-invalid-border-color:#dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color:#dee2e6;--bs-body-color-rgb:222,226,230;--bs-body-bg:#212529;--bs-body-bg-rgb:33,37,41;--bs-emphasis-color:#fff;--bs-emphasis-color-rgb:255,255,255;--bs-secondary-color:rgba(222, 226, 230, 0.75);--bs-secondary-color-rgb:222,226,230;--bs-secondary-bg:#343a40;--bs-secondary-bg-rgb:52,58,64;--bs-tertiary-color:rgba(222, 226, 230, 0.5);--bs-tertiary-color-rgb:222,226,230;--bs-tertiary-bg:#2b3035;--bs-tertiary-bg-rgb:43,48,53;--bs-primary-text-emphasis:#6ea8fe;--bs-secondary-text-emphasis:#a7acb1;--bs-success-text-emphasis:#75b798;--bs-info-text-emphasis:#6edff6;--bs-warning-text-emphasis:#ffda6a;--bs-danger-text-emphasis:#ea868f;--bs-light-text-emphasis:#f8f9fa;--bs-dark-text-emphasis:#dee2e6;--bs-primary-bg-subtle:#031633;--bs-secondary-bg-subtle:#161719;--bs-success-bg-subtle:#051b11;--bs-info-bg-subtle:#032830;--bs-warning-bg-subtle:#332701;--bs-danger-bg-subtle:#2c0b0e;--bs-light-bg-subtle:#343a40;--bs-dark-bg-subtle:#1a1d20;--bs-primary-border-subtle:#084298;--bs-secondary-border-subtle:#41464b;--bs-success-border-subtle:#0f5132;--bs-info-border-subtle:#087990;--bs-warning-border-subtle:#997404;--bs-danger-border-subtle:#842029;--bs-light-border-subtle:#495057;--bs-dark-border-subtle:#343a40;--bs-heading-color:inherit;--bs-link-color:#6ea8fe;--bs-link-hover-color:#8bb9fe;--bs-link-color-rgb:110,168,254;--bs-link-hover-color-rgb:139,185,254;--bs-code-color:#e685b5;--bs-highlight-color:#dee2e6;--bs-highlight-bg:#664d03;--bs-border-color:#495057;--bs-border-color-translucent:rgba(255, 255, 255, 0.15);--bs-form-valid-color:#75b798;--bs-form-valid-border-color:#75b798;--bs-form-invalid-color:#ea868f;--bs-form-invalid-border-color:#ea868f}*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}.h1,h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){.h1,h1{font-size:2.5rem}}.h2,h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){.h2,h2{font-size:2rem}}.h3,h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){.h3,h3{font-size:1.75rem}}.h4,h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){.h4,h4{font-size:1.5rem}}.h5,h5{font-size:1.25rem}.h6,h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}.small,small{font-size:.875em}.mark,mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));text-decoration:underline}a:hover{--bs-link-color-rgb:var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width:1200px){.display-6{font-size:2.5rem}}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer::before{content:"— "}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{--bs-gutter-x:1.5rem;--bs-gutter-y:0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width:576px){.container,.container-sm{max-width:540px}}@media (min-width:768px){.container,.container-md,.container-sm{max-width:720px}}@media (min-width:992px){.container,.container-lg,.container-md,.container-sm{max-width:960px}}@media (min-width:1200px){.container,.container-lg,.container-md,.container-sm,.container-xl{max-width:1140px}}@media (min-width:1400px){.container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl{max-width:1320px}}:root{--bs-breakpoint-xs:0;--bs-breakpoint-sm:576px;--bs-breakpoint-md:768px;--bs-breakpoint-lg:992px;--bs-breakpoint-xl:1200px;--bs-breakpoint-xxl:1400px}.row{--bs-gutter-x:1.5rem;--bs-gutter-y:0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x:0}.g-0,.gy-0{--bs-gutter-y:0}.g-1,.gx-1{--bs-gutter-x:0.25rem}.g-1,.gy-1{--bs-gutter-y:0.25rem}.g-2,.gx-2{--bs-gutter-x:0.5rem}.g-2,.gy-2{--bs-gutter-y:0.5rem}.g-3,.gx-3{--bs-gutter-x:1rem}.g-3,.gy-3{--bs-gutter-y:1rem}.g-4,.gx-4{--bs-gutter-x:1.5rem}.g-4,.gy-4{--bs-gutter-y:1.5rem}.g-5,.gx-5{--bs-gutter-x:3rem}.g-5,.gy-5{--bs-gutter-y:3rem}@media (min-width:576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x:0}.g-sm-0,.gy-sm-0{--bs-gutter-y:0}.g-sm-1,.gx-sm-1{--bs-gutter-x:0.25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y:0.25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x:0.5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y:0.5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x:1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y:1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x:1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y:1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x:3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y:3rem}}@media (min-width:768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x:0}.g-md-0,.gy-md-0{--bs-gutter-y:0}.g-md-1,.gx-md-1{--bs-gutter-x:0.25rem}.g-md-1,.gy-md-1{--bs-gutter-y:0.25rem}.g-md-2,.gx-md-2{--bs-gutter-x:0.5rem}.g-md-2,.gy-md-2{--bs-gutter-y:0.5rem}.g-md-3,.gx-md-3{--bs-gutter-x:1rem}.g-md-3,.gy-md-3{--bs-gutter-y:1rem}.g-md-4,.gx-md-4{--bs-gutter-x:1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y:1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x:3rem}.g-md-5,.gy-md-5{--bs-gutter-y:3rem}}@media (min-width:992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x:0}.g-lg-0,.gy-lg-0{--bs-gutter-y:0}.g-lg-1,.gx-lg-1{--bs-gutter-x:0.25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y:0.25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x:0.5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y:0.5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x:1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y:1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x:1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y:1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x:3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y:3rem}}@media (min-width:1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x:0}.g-xl-0,.gy-xl-0{--bs-gutter-y:0}.g-xl-1,.gx-xl-1{--bs-gutter-x:0.25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y:0.25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x:0.5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y:0.5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x:1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y:1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x:1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y:1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x:3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y:3rem}}@media (min-width:1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x:0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y:0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x:0.25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y:0.25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x:0.5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y:0.5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x:1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y:1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x:1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y:1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x:3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y:3rem}}.table{--bs-table-color-type:initial;--bs-table-bg-type:initial;--bs-table-color-state:initial;--bs-table-bg-state:initial;--bs-table-color:var(--bs-emphasis-color);--bs-table-bg:var(--bs-body-bg);--bs-table-border-color:var(--bs-border-color);--bs-table-accent-bg:transparent;--bs-table-striped-color:var(--bs-emphasis-color);--bs-table-striped-bg:rgba(var(--bs-emphasis-color-rgb), 0.05);--bs-table-active-color:var(--bs-emphasis-color);--bs-table-active-bg:rgba(var(--bs-emphasis-color-rgb), 0.1);--bs-table-hover-color:var(--bs-emphasis-color);--bs-table-hover-bg:rgba(var(--bs-emphasis-color-rgb), 0.075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem .5rem;color:var(--bs-table-color-state,var(--bs-table-color-type,var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state,var(--bs-table-bg-type,var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem .25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type:var(--bs-table-striped-color);--bs-table-bg-type:var(--bs-table-striped-bg)}.table-active{--bs-table-color-state:var(--bs-table-active-color);--bs-table-bg-state:var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state:var(--bs-table-hover-color);--bs-table-bg-state:var(--bs-table-hover-bg)}.table-primary{--bs-table-color:#000;--bs-table-bg:#cfe2ff;--bs-table-border-color:#a6b5cc;--bs-table-striped-bg:#c5d7f2;--bs-table-striped-color:#000;--bs-table-active-bg:#bacbe6;--bs-table-active-color:#000;--bs-table-hover-bg:#bfd1ec;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color:#000;--bs-table-bg:#e2e3e5;--bs-table-border-color:#b5b6b7;--bs-table-striped-bg:#d7d8da;--bs-table-striped-color:#000;--bs-table-active-bg:#cbccce;--bs-table-active-color:#000;--bs-table-hover-bg:#d1d2d4;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color:#000;--bs-table-bg:#d1e7dd;--bs-table-border-color:#a7b9b1;--bs-table-striped-bg:#c7dbd2;--bs-table-striped-color:#000;--bs-table-active-bg:#bcd0c7;--bs-table-active-color:#000;--bs-table-hover-bg:#c1d6cc;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color:#000;--bs-table-bg:#cff4fc;--bs-table-border-color:#a6c3ca;--bs-table-striped-bg:#c5e8ef;--bs-table-striped-color:#000;--bs-table-active-bg:#badce3;--bs-table-active-color:#000;--bs-table-hover-bg:#bfe2e9;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color:#000;--bs-table-bg:#fff3cd;--bs-table-border-color:#ccc2a4;--bs-table-striped-bg:#f2e7c3;--bs-table-striped-color:#000;--bs-table-active-bg:#e6dbb9;--bs-table-active-color:#000;--bs-table-hover-bg:#ece1be;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color:#000;--bs-table-bg:#f8d7da;--bs-table-border-color:#c6acae;--bs-table-striped-bg:#eccccf;--bs-table-striped-color:#000;--bs-table-active-bg:#dfc2c4;--bs-table-active-color:#000;--bs-table-hover-bg:#e5c7ca;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color:#000;--bs-table-bg:#f8f9fa;--bs-table-border-color:#c6c7c8;--bs-table-striped-bg:#ecedee;--bs-table-striped-color:#000;--bs-table-active-bg:#dfe0e1;--bs-table-active-color:#000;--bs-table-hover-bg:#e5e6e7;--bs-table-hover-color:#000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color:#fff;--bs-table-bg:#212529;--bs-table-border-color:#4d5154;--bs-table-striped-bg:#2c3034;--bs-table-striped-color:#fff;--bs-table-active-bg:#373b3e;--bs-table-active-color:#fff;--bs-table-hover-bg:#323539;--bs-table-hover-color:#fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width:575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width:1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-lg,.form-control-plaintext.form-control-sm{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23343a40%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27%3e%3cpath fill=%27none%27 stroke=%27%23dee2e6%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%272%27 d=%27m2 5 6 6 6-6%27/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg:var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.25em;vertical-align:top;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27m6 10 3 3 6-6%27/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%272%27 fill=%27%23fff%27/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27%3e%3cpath fill=%27none%27 stroke=%27%23fff%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%273%27 d=%27M6 10h8%27/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input:disabled~.form-check-label,.form-check-input[disabled]~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%280, 0, 0, 0.25%29%27/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%2386b7fe%27/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27%23fff%27/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check:disabled+.btn,.btn-check[disabled]+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%27-4 -4 8 8%27%3e%3ccircle r=%273%27 fill=%27rgba%28255, 255, 255, 0.25%29%27/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem rgba(13,110,253,.25)}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;-webkit-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;-moz-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion:reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control-plaintext::-moz-placeholder,.form-floating>.form-control::-moz-placeholder{color:transparent}.form-floating>.form-control-plaintext::placeholder,.form-floating>.form-control::placeholder{color:transparent}.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown),.form-floating>.form-control:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown),.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control-plaintext:-webkit-autofill,.form-floating>.form-control:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label,.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control:not(:-moz-placeholder-shown)~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control-plaintext~label::after,.form-floating>.form-control:focus~label::after,.form-floating>.form-control:not(:placeholder-shown)~label::after,.form-floating>.form-select~label::after{position:absolute;inset:1rem 0.375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translateX(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>.form-control:disabled~label,.form-floating>:disabled~label{color:#6c757d}.form-floating>.form-control:disabled~label::after,.form-floating>:disabled~label::after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-floating,.input-group>.form-select{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-floating:focus-within,.input-group>.form-select:focus{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.btn,.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.btn,.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select,.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select,.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating){border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.is-valid~.valid-feedback,.is-valid~.valid-tooltip,.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip{display:block}.form-control.is-valid,.was-validated .form-control:valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-valid:focus,.was-validated .form-control:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-valid,.was-validated .form-select:valid{border-color:var(--bs-form-valid-border-color)}.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"],.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 8 8%27%3e%3cpath fill=%27%23198754%27 d=%27M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z%27/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-valid:focus,.was-validated .form-select:valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-control-color.is-valid,.was-validated .form-control-color:valid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-valid,.was-validated .form-check-input:valid{border-color:var(--bs-form-valid-border-color)}.form-check-input.is-valid:checked,.was-validated .form-check-input:valid:checked{background-color:var(--bs-form-valid-color)}.form-check-input.is-valid:focus,.was-validated .form-check-input:valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.form-check-input.is-valid~.form-check-label,.was-validated .form-check-input:valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-valid,.input-group>.form-floating:not(:focus-within).is-valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-control:not(:focus):valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.was-validated .input-group>.form-select:not(:focus):valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip,.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip{display:block}.form-control.is-invalid,.was-validated .form-control:invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.form-control.is-invalid:focus,.was-validated .form-control:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.form-select.is-invalid,.was-validated .form-select:invalid{border-color:var(--bs-form-invalid-border-color)}.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"],.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27 width=%2712%27 height=%2712%27 fill=%27none%27 stroke=%27%23dc3545%27%3e%3ccircle cx=%276%27 cy=%276%27 r=%274.5%27/%3e%3cpath stroke-linejoin=%27round%27 d=%27M5.8 3.6h.4L6 6.5z%27/%3e%3ccircle cx=%276%27 cy=%278.2%27 r=%27.6%27 fill=%27%23dc3545%27 stroke=%27none%27/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.form-select.is-invalid:focus,.was-validated .form-select:invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-control-color.is-invalid,.was-validated .form-control-color:invalid{width:calc(3rem + calc(1.5em + .75rem))}.form-check-input.is-invalid,.was-validated .form-check-input:invalid{border-color:var(--bs-form-invalid-border-color)}.form-check-input.is-invalid:checked,.was-validated .form-check-input:invalid:checked{background-color:var(--bs-form-invalid-color)}.form-check-input.is-invalid:focus,.was-validated .form-check-input:invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.form-check-input.is-invalid~.form-check-label,.was-validated .form-check-input:invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.input-group>.form-control:not(:focus).is-invalid,.input-group>.form-floating:not(:focus-within).is-invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-control:not(:focus):invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.was-validated .input-group>.form-select:not(:focus):invalid{z-index:4}.btn{--bs-btn-padding-x:0.75rem;--bs-btn-padding-y:0.375rem;--bs-btn-font-family: ;--bs-btn-font-size:1rem;--bs-btn-font-weight:400;--bs-btn-line-height:1.5;--bs-btn-color:var(--bs-body-color);--bs-btn-bg:transparent;--bs-btn-border-width:var(--bs-border-width);--bs-btn-border-color:transparent;--bs-btn-border-radius:var(--bs-border-radius);--bs-btn-hover-border-color:transparent;--bs-btn-box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.15),0 1px 1px rgba(0, 0, 0, 0.075);--bs-btn-disabled-opacity:0.65;--bs-btn-focus-box-shadow:0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,:not(.btn-check)+.btn:active{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible,.btn:first-child:active:focus-visible,:not(.btn-check)+.btn:active:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked:focus-visible+.btn{box-shadow:var(--bs-btn-focus-box-shadow)}.btn.disabled,.btn:disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color:#fff;--bs-btn-bg:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0b5ed7;--bs-btn-hover-border-color:#0a58ca;--bs-btn-focus-shadow-rgb:49,132,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0a58ca;--bs-btn-active-border-color:#0a53be;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#0d6efd;--bs-btn-disabled-border-color:#0d6efd}.btn-secondary{--bs-btn-color:#fff;--bs-btn-bg:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#5c636a;--bs-btn-hover-border-color:#565e64;--bs-btn-focus-shadow-rgb:130,138,145;--bs-btn-active-color:#fff;--bs-btn-active-bg:#565e64;--bs-btn-active-border-color:#51585e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#6c757d;--bs-btn-disabled-border-color:#6c757d}.btn-success{--bs-btn-color:#fff;--bs-btn-bg:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#157347;--bs-btn-hover-border-color:#146c43;--bs-btn-focus-shadow-rgb:60,153,110;--bs-btn-active-color:#fff;--bs-btn-active-bg:#146c43;--bs-btn-active-border-color:#13653f;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#198754;--bs-btn-disabled-border-color:#198754}.btn-info{--bs-btn-color:#000;--bs-btn-bg:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#31d2f2;--bs-btn-hover-border-color:#25cff2;--bs-btn-focus-shadow-rgb:11,172,204;--bs-btn-active-color:#000;--bs-btn-active-bg:#3dd5f3;--bs-btn-active-border-color:#25cff2;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#0dcaf0;--bs-btn-disabled-border-color:#0dcaf0}.btn-warning{--bs-btn-color:#000;--bs-btn-bg:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffca2c;--bs-btn-hover-border-color:#ffc720;--bs-btn-focus-shadow-rgb:217,164,6;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffcd39;--bs-btn-active-border-color:#ffc720;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#ffc107;--bs-btn-disabled-border-color:#ffc107}.btn-danger{--bs-btn-color:#fff;--bs-btn-bg:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#bb2d3b;--bs-btn-hover-border-color:#b02a37;--bs-btn-focus-shadow-rgb:225,83,97;--bs-btn-active-color:#fff;--bs-btn-active-bg:#b02a37;--bs-btn-active-border-color:#a52834;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#dc3545;--bs-btn-disabled-border-color:#dc3545}.btn-light{--bs-btn-color:#000;--bs-btn-bg:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#d3d4d5;--bs-btn-hover-border-color:#c6c7c8;--bs-btn-focus-shadow-rgb:211,212,213;--bs-btn-active-color:#000;--bs-btn-active-bg:#c6c7c8;--bs-btn-active-border-color:#babbbc;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#000;--bs-btn-disabled-bg:#f8f9fa;--bs-btn-disabled-border-color:#f8f9fa}.btn-dark{--bs-btn-color:#fff;--bs-btn-bg:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#424649;--bs-btn-hover-border-color:#373b3e;--bs-btn-focus-shadow-rgb:66,70,73;--bs-btn-active-color:#fff;--bs-btn-active-bg:#4d5154;--bs-btn-active-border-color:#373b3e;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#fff;--bs-btn-disabled-bg:#212529;--bs-btn-disabled-border-color:#212529}.btn-outline-primary{--bs-btn-color:#0d6efd;--bs-btn-border-color:#0d6efd;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#0d6efd;--bs-btn-hover-border-color:#0d6efd;--bs-btn-focus-shadow-rgb:13,110,253;--bs-btn-active-color:#fff;--bs-btn-active-bg:#0d6efd;--bs-btn-active-border-color:#0d6efd;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0d6efd;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0d6efd;--bs-gradient:none}.btn-outline-secondary{--bs-btn-color:#6c757d;--bs-btn-border-color:#6c757d;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#6c757d;--bs-btn-hover-border-color:#6c757d;--bs-btn-focus-shadow-rgb:108,117,125;--bs-btn-active-color:#fff;--bs-btn-active-bg:#6c757d;--bs-btn-active-border-color:#6c757d;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#6c757d;--bs-gradient:none}.btn-outline-success{--bs-btn-color:#198754;--bs-btn-border-color:#198754;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#198754;--bs-btn-hover-border-color:#198754;--bs-btn-focus-shadow-rgb:25,135,84;--bs-btn-active-color:#fff;--bs-btn-active-bg:#198754;--bs-btn-active-border-color:#198754;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#198754;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#198754;--bs-gradient:none}.btn-outline-info{--bs-btn-color:#0dcaf0;--bs-btn-border-color:#0dcaf0;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#0dcaf0;--bs-btn-hover-border-color:#0dcaf0;--bs-btn-focus-shadow-rgb:13,202,240;--bs-btn-active-color:#000;--bs-btn-active-bg:#0dcaf0;--bs-btn-active-border-color:#0dcaf0;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#0dcaf0;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#0dcaf0;--bs-gradient:none}.btn-outline-warning{--bs-btn-color:#ffc107;--bs-btn-border-color:#ffc107;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#ffc107;--bs-btn-hover-border-color:#ffc107;--bs-btn-focus-shadow-rgb:255,193,7;--bs-btn-active-color:#000;--bs-btn-active-bg:#ffc107;--bs-btn-active-border-color:#ffc107;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#ffc107;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#ffc107;--bs-gradient:none}.btn-outline-danger{--bs-btn-color:#dc3545;--bs-btn-border-color:#dc3545;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#dc3545;--bs-btn-hover-border-color:#dc3545;--bs-btn-focus-shadow-rgb:220,53,69;--bs-btn-active-color:#fff;--bs-btn-active-bg:#dc3545;--bs-btn-active-border-color:#dc3545;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#dc3545;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#dc3545;--bs-gradient:none}.btn-outline-light{--bs-btn-color:#f8f9fa;--bs-btn-border-color:#f8f9fa;--bs-btn-hover-color:#000;--bs-btn-hover-bg:#f8f9fa;--bs-btn-hover-border-color:#f8f9fa;--bs-btn-focus-shadow-rgb:248,249,250;--bs-btn-active-color:#000;--bs-btn-active-bg:#f8f9fa;--bs-btn-active-border-color:#f8f9fa;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#f8f9fa;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#f8f9fa;--bs-gradient:none}.btn-outline-dark{--bs-btn-color:#212529;--bs-btn-border-color:#212529;--bs-btn-hover-color:#fff;--bs-btn-hover-bg:#212529;--bs-btn-hover-border-color:#212529;--bs-btn-focus-shadow-rgb:33,37,41;--bs-btn-active-color:#fff;--bs-btn-active-bg:#212529;--bs-btn-active-border-color:#212529;--bs-btn-active-shadow:inset 0 3px 5px rgba(0, 0, 0, 0.125);--bs-btn-disabled-color:#212529;--bs-btn-disabled-bg:transparent;--bs-btn-disabled-border-color:#212529;--bs-gradient:none}.btn-link{--bs-btn-font-weight:400;--bs-btn-color:var(--bs-link-color);--bs-btn-bg:transparent;--bs-btn-border-color:transparent;--bs-btn-hover-color:var(--bs-link-hover-color);--bs-btn-hover-border-color:transparent;--bs-btn-active-color:var(--bs-link-hover-color);--bs-btn-active-border-color:transparent;--bs-btn-disabled-color:#6c757d;--bs-btn-disabled-border-color:transparent;--bs-btn-box-shadow:0 0 0 #000;--bs-btn-focus-shadow-rgb:49,132,253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-group-lg>.btn,.btn-lg{--bs-btn-padding-y:0.5rem;--bs-btn-padding-x:1rem;--bs-btn-font-size:1.25rem;--bs-btn-border-radius:var(--bs-border-radius-lg)}.btn-group-sm>.btn,.btn-sm{--bs-btn-padding-y:0.25rem;--bs-btn-padding-x:0.5rem;--bs-btn-font-size:0.875rem;--bs-btn-border-radius:var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion:reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion:reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion:reduce){.collapsing.collapse-horizontal{transition:none}}.dropdown,.dropdown-center,.dropend,.dropstart,.dropup,.dropup-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex:1000;--bs-dropdown-min-width:10rem;--bs-dropdown-padding-x:0;--bs-dropdown-padding-y:0.5rem;--bs-dropdown-spacer:0.125rem;--bs-dropdown-font-size:1rem;--bs-dropdown-color:var(--bs-body-color);--bs-dropdown-bg:var(--bs-body-bg);--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-border-radius:var(--bs-border-radius);--bs-dropdown-border-width:var(--bs-border-width);--bs-dropdown-inner-border-radius:calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y:0.5rem;--bs-dropdown-box-shadow:var(--bs-box-shadow);--bs-dropdown-link-color:var(--bs-body-color);--bs-dropdown-link-hover-color:var(--bs-body-color);--bs-dropdown-link-hover-bg:var(--bs-tertiary-bg);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:var(--bs-tertiary-color);--bs-dropdown-item-padding-x:1rem;--bs-dropdown-item-padding-y:0.25rem;--bs-dropdown-header-color:#6c757d;--bs-dropdown-header-padding-x:1rem;--bs-dropdown-header-padding-y:0.5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position:start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position:end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width:576px){.dropdown-menu-sm-start{--bs-position:start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position:end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width:768px){.dropdown-menu-md-start{--bs-position:start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position:end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width:992px){.dropdown-menu-lg-start{--bs-position:start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position:end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1200px){.dropdown-menu-xl-start{--bs-position:start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position:end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width:1400px){.dropdown-menu-xxl-start{--bs-position:start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position:end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty::after{margin-left:0}.dropend .dropdown-toggle::after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle::after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle::after{display:none}.dropstart .dropdown-toggle::before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty::after{margin-left:0}.dropstart .dropdown-toggle::before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius,0)}.dropdown-item:focus,.dropdown-item:hover{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color:#dee2e6;--bs-dropdown-bg:#343a40;--bs-dropdown-border-color:var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color:#dee2e6;--bs-dropdown-link-hover-color:#fff;--bs-dropdown-divider-bg:var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg:rgba(255, 255, 255, 0.15);--bs-dropdown-link-active-color:#fff;--bs-dropdown-link-active-bg:#0d6efd;--bs-dropdown-link-disabled-color:#adb5bd;--bs-dropdown-header-color:#adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;flex:1 1 auto}.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>.btn-group:not(:first-child),.btn-group>:not(.btn-check:first-child)+.btn{margin-left:calc(var(--bs-border-width) * -1)}.btn-group>.btn-group:not(:last-child)>.btn,.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:not(:first-child)>.btn,.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split::after,.dropend .dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after{margin-left:0}.dropstart .dropdown-toggle-split::before{margin-right:0}.btn-group-sm>.btn+.dropdown-toggle-split,.btn-sm+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-group-lg>.btn+.dropdown-toggle-split,.btn-lg+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn-group:not(:first-child),.btn-group-vertical>.btn:not(:first-child){margin-top:calc(var(--bs-border-width) * -1)}.btn-group-vertical>.btn-group:not(:last-child)>.btn,.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle){border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child)>.btn,.btn-group-vertical>.btn~.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x:1rem;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-link-color);--bs-nav-link-hover-color:var(--bs-link-hover-color);--bs-nav-link-disabled-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:0 0;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion:reduce){.nav-link{transition:none}}.nav-link:focus,.nav-link:hover{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem rgba(13,110,253,.25)}.nav-link.disabled,.nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width:var(--bs-border-width);--bs-nav-tabs-border-color:var(--bs-border-color);--bs-nav-tabs-border-radius:var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color:var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color:var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg:var(--bs-body-bg);--bs-nav-tabs-link-active-border-color:var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:focus,.nav-tabs .nav-link:hover{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-item.show .nav-link,.nav-tabs .nav-link.active{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius:var(--bs-border-radius);--bs-nav-pills-link-active-color:#fff;--bs-nav-pills-link-active-bg:#0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap:1rem;--bs-nav-underline-border-width:0.125rem;--bs-nav-underline-link-active-color:var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:focus,.nav-underline .nav-link:hover{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill .nav-item,.nav-fill>.nav-link{flex:1 1 auto;text-align:center}.nav-justified .nav-item,.nav-justified>.nav-link{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x:0;--bs-navbar-padding-y:0.5rem;--bs-navbar-color:rgba(var(--bs-emphasis-color-rgb), 0.65);--bs-navbar-hover-color:rgba(var(--bs-emphasis-color-rgb), 0.8);--bs-navbar-disabled-color:rgba(var(--bs-emphasis-color-rgb), 0.3);--bs-navbar-active-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y:0.3125rem;--bs-navbar-brand-margin-end:1rem;--bs-navbar-brand-font-size:1.25rem;--bs-navbar-brand-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color:rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x:0.5rem;--bs-navbar-toggler-padding-y:0.25rem;--bs-navbar-toggler-padding-x:0.75rem;--bs-navbar-toggler-font-size:1.25rem;--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%2833, 37, 41, 0.75%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e");--bs-navbar-toggler-border-color:rgba(var(--bs-emphasis-color-rgb), 0.15);--bs-navbar-toggler-border-radius:var(--bs-border-radius);--bs-navbar-toggler-focus-width:0.25rem;--bs-navbar-toggler-transition:box-shadow 0.15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-lg,.navbar>.container-md,.navbar>.container-sm,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:focus,.navbar-brand:hover{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x:0;--bs-nav-link-padding-y:0.5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color:var(--bs-navbar-color);--bs-nav-link-hover-color:var(--bs-navbar-hover-color);--bs-nav-link-disabled-color:var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:focus,.navbar-text a:hover{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion:reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height,75vh);overflow-y:auto}@media (min-width:576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width:1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color:rgba(255, 255, 255, 0.55);--bs-navbar-hover-color:rgba(255, 255, 255, 0.75);--bs-navbar-disabled-color:rgba(255, 255, 255, 0.25);--bs-navbar-active-color:#fff;--bs-navbar-brand-color:#fff;--bs-navbar-brand-hover-color:#fff;--bs-navbar-toggler-border-color:rgba(255, 255, 255, 0.1);--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 30 30%27%3e%3cpath stroke=%27rgba%28255, 255, 255, 0.55%29%27 stroke-linecap=%27round%27 stroke-miterlimit=%2710%27 stroke-width=%272%27 d=%27M4 7h22M4 15h22M4 23h22%27/%3e%3c/svg%3e")}.card{--bs-card-spacer-y:1rem;--bs-card-spacer-x:1rem;--bs-card-title-spacer-y:0.5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width:var(--bs-border-width);--bs-card-border-color:var(--bs-border-color-translucent);--bs-card-border-radius:var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y:0.5rem;--bs-card-cap-padding-x:1rem;--bs-card-cap-bg:rgba(var(--bs-body-color-rgb), 0.03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg:var(--bs-body-bg);--bs-card-img-overlay-padding:1rem;--bs-card-group-margin:0.75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom,.card-img-top{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width:576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-header,.card-group>.card:not(:last-child) .card-img-top{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-footer,.card-group>.card:not(:last-child) .card-img-bottom{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-header,.card-group>.card:not(:first-child) .card-img-top{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-footer,.card-group>.card:not(:first-child) .card-img-bottom{border-bottom-left-radius:0}}.accordion{--bs-accordion-color:var(--bs-body-color);--bs-accordion-bg:var(--bs-body-bg);--bs-accordion-transition:color 0.15s ease-in-out,background-color 0.15s ease-in-out,border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out,border-radius 0.15s ease;--bs-accordion-border-color:var(--bs-border-color);--bs-accordion-border-width:var(--bs-border-width);--bs-accordion-border-radius:var(--bs-border-radius);--bs-accordion-inner-border-radius:calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x:1.25rem;--bs-accordion-btn-padding-y:1rem;--bs-accordion-btn-color:var(--bs-body-color);--bs-accordion-btn-bg:var(--bs-accordion-bg);--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27%23212529%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpath d=%27M2 5L8 11L14 5%27/%3e%3c/svg%3e");--bs-accordion-btn-icon-width:1.25rem;--bs-accordion-btn-icon-transform:rotate(-180deg);--bs-accordion-btn-icon-transition:transform 0.2s ease-in-out;--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27none%27 stroke=%27%23052c65%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3e%3cpath d=%27M2 5L8 11L14 5%27/%3e%3c/svg%3e");--bs-accordion-btn-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-accordion-body-padding-x:1.25rem;--bs-accordion-body-padding-y:1rem;--bs-accordion-active-color:var(--bs-primary-text-emphasis);--bs-accordion-active-bg:var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion:reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed)::after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button::after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion:reduce){.accordion-button::after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type>.accordion-header .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type>.accordion-header .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type>.accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush>.accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush>.accordion-item:first-child{border-top:0}.accordion-flush>.accordion-item:last-child{border-bottom:0}.accordion-flush>.accordion-item>.accordion-header .accordion-button,.accordion-flush>.accordion-item>.accordion-header .accordion-button.collapsed{border-radius:0}.accordion-flush>.accordion-item>.accordion-collapse{border-radius:0}[data-bs-theme=dark] .accordion-button::after{--bs-accordion-btn-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%236ea8fe%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e");--bs-accordion-btn-active-icon:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%236ea8fe%27%3e%3cpath fill-rule=%27evenodd%27 d=%27M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e")}.breadcrumb{--bs-breadcrumb-padding-x:0;--bs-breadcrumb-padding-y:0;--bs-breadcrumb-margin-bottom:1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color:var(--bs-secondary-color);--bs-breadcrumb-item-padding-x:0.5rem;--bs-breadcrumb-item-active-color:var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item::before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x:0.75rem;--bs-pagination-padding-y:0.375rem;--bs-pagination-font-size:1rem;--bs-pagination-color:var(--bs-link-color);--bs-pagination-bg:var(--bs-body-bg);--bs-pagination-border-width:var(--bs-border-width);--bs-pagination-border-color:var(--bs-border-color);--bs-pagination-border-radius:var(--bs-border-radius);--bs-pagination-hover-color:var(--bs-link-hover-color);--bs-pagination-hover-bg:var(--bs-tertiary-bg);--bs-pagination-hover-border-color:var(--bs-border-color);--bs-pagination-focus-color:var(--bs-link-hover-color);--bs-pagination-focus-bg:var(--bs-secondary-bg);--bs-pagination-focus-box-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-pagination-active-color:#fff;--bs-pagination-active-bg:#0d6efd;--bs-pagination-active-border-color:#0d6efd;--bs-pagination-disabled-color:var(--bs-secondary-color);--bs-pagination-disabled-bg:var(--bs-secondary-bg);--bs-pagination-disabled-border-color:var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion:reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.active>.page-link,.page-link.active{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.disabled>.page-link,.page-link.disabled{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(var(--bs-border-width) * -1)}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x:1.5rem;--bs-pagination-padding-y:0.75rem;--bs-pagination-font-size:1.25rem;--bs-pagination-border-radius:var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x:0.5rem;--bs-pagination-padding-y:0.25rem;--bs-pagination-font-size:0.875rem;--bs-pagination-border-radius:var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x:0.65em;--bs-badge-padding-y:0.35em;--bs-badge-font-size:0.75em;--bs-badge-font-weight:700;--bs-badge-color:#fff;--bs-badge-border-radius:var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg:transparent;--bs-alert-padding-x:1rem;--bs-alert-padding-y:1rem;--bs-alert-margin-bottom:1rem;--bs-alert-color:inherit;--bs-alert-border-color:transparent;--bs-alert-border:var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius:var(--bs-border-radius);--bs-alert-link-color:inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color:var(--bs-primary-text-emphasis);--bs-alert-bg:var(--bs-primary-bg-subtle);--bs-alert-border-color:var(--bs-primary-border-subtle);--bs-alert-link-color:var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color:var(--bs-secondary-text-emphasis);--bs-alert-bg:var(--bs-secondary-bg-subtle);--bs-alert-border-color:var(--bs-secondary-border-subtle);--bs-alert-link-color:var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color:var(--bs-success-text-emphasis);--bs-alert-bg:var(--bs-success-bg-subtle);--bs-alert-border-color:var(--bs-success-border-subtle);--bs-alert-link-color:var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color:var(--bs-info-text-emphasis);--bs-alert-bg:var(--bs-info-bg-subtle);--bs-alert-border-color:var(--bs-info-border-subtle);--bs-alert-link-color:var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color:var(--bs-warning-text-emphasis);--bs-alert-bg:var(--bs-warning-bg-subtle);--bs-alert-border-color:var(--bs-warning-border-subtle);--bs-alert-link-color:var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color:var(--bs-danger-text-emphasis);--bs-alert-bg:var(--bs-danger-bg-subtle);--bs-alert-border-color:var(--bs-danger-border-subtle);--bs-alert-link-color:var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color:var(--bs-light-text-emphasis);--bs-alert-bg:var(--bs-light-bg-subtle);--bs-alert-border-color:var(--bs-light-border-subtle);--bs-alert-link-color:var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color:var(--bs-dark-text-emphasis);--bs-alert-bg:var(--bs-dark-bg-subtle);--bs-alert-border-color:var(--bs-dark-border-subtle);--bs-alert-link-color:var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress,.progress-stacked{--bs-progress-height:1rem;--bs-progress-font-size:0.75rem;--bs-progress-bg:var(--bs-secondary-bg);--bs-progress-border-radius:var(--bs-border-radius);--bs-progress-box-shadow:var(--bs-box-shadow-inset);--bs-progress-bar-color:#fff;--bs-progress-bar-bg:#0d6efd;--bs-progress-bar-transition:width 0.6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion:reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion:reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color:var(--bs-body-color);--bs-list-group-bg:var(--bs-body-bg);--bs-list-group-border-color:var(--bs-border-color);--bs-list-group-border-width:var(--bs-border-width);--bs-list-group-border-radius:var(--bs-border-radius);--bs-list-group-item-padding-x:1rem;--bs-list-group-item-padding-y:0.5rem;--bs-list-group-action-color:var(--bs-secondary-color);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-tertiary-bg);--bs-list-group-action-active-color:var(--bs-body-color);--bs-list-group-action-active-bg:var(--bs-secondary-bg);--bs-list-group-disabled-color:var(--bs-secondary-color);--bs-list-group-disabled-bg:var(--bs-body-bg);--bs-list-group-active-color:#fff;--bs-list-group-active-bg:#0d6efd;--bs-list-group-active-border-color:#0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item::before{content:counters(section, ".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:focus,.list-group-item-action:hover{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width:576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width:1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color:var(--bs-primary-text-emphasis);--bs-list-group-bg:var(--bs-primary-bg-subtle);--bs-list-group-border-color:var(--bs-primary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-primary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-primary-border-subtle);--bs-list-group-active-color:var(--bs-primary-bg-subtle);--bs-list-group-active-bg:var(--bs-primary-text-emphasis);--bs-list-group-active-border-color:var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color:var(--bs-secondary-text-emphasis);--bs-list-group-bg:var(--bs-secondary-bg-subtle);--bs-list-group-border-color:var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-secondary-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-secondary-border-subtle);--bs-list-group-active-color:var(--bs-secondary-bg-subtle);--bs-list-group-active-bg:var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color:var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color:var(--bs-success-text-emphasis);--bs-list-group-bg:var(--bs-success-bg-subtle);--bs-list-group-border-color:var(--bs-success-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-success-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-success-border-subtle);--bs-list-group-active-color:var(--bs-success-bg-subtle);--bs-list-group-active-bg:var(--bs-success-text-emphasis);--bs-list-group-active-border-color:var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color:var(--bs-info-text-emphasis);--bs-list-group-bg:var(--bs-info-bg-subtle);--bs-list-group-border-color:var(--bs-info-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-info-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-info-border-subtle);--bs-list-group-active-color:var(--bs-info-bg-subtle);--bs-list-group-active-bg:var(--bs-info-text-emphasis);--bs-list-group-active-border-color:var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color:var(--bs-warning-text-emphasis);--bs-list-group-bg:var(--bs-warning-bg-subtle);--bs-list-group-border-color:var(--bs-warning-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-warning-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-warning-border-subtle);--bs-list-group-active-color:var(--bs-warning-bg-subtle);--bs-list-group-active-bg:var(--bs-warning-text-emphasis);--bs-list-group-active-border-color:var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color:var(--bs-danger-text-emphasis);--bs-list-group-bg:var(--bs-danger-bg-subtle);--bs-list-group-border-color:var(--bs-danger-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-danger-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-danger-border-subtle);--bs-list-group-active-color:var(--bs-danger-bg-subtle);--bs-list-group-active-bg:var(--bs-danger-text-emphasis);--bs-list-group-active-border-color:var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color:var(--bs-light-text-emphasis);--bs-list-group-bg:var(--bs-light-bg-subtle);--bs-list-group-border-color:var(--bs-light-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-light-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-light-border-subtle);--bs-list-group-active-color:var(--bs-light-bg-subtle);--bs-list-group-active-bg:var(--bs-light-text-emphasis);--bs-list-group-active-border-color:var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color:var(--bs-dark-text-emphasis);--bs-list-group-bg:var(--bs-dark-bg-subtle);--bs-list-group-border-color:var(--bs-dark-border-subtle);--bs-list-group-action-hover-color:var(--bs-emphasis-color);--bs-list-group-action-hover-bg:var(--bs-dark-border-subtle);--bs-list-group-action-active-color:var(--bs-emphasis-color);--bs-list-group-action-active-bg:var(--bs-dark-border-subtle);--bs-list-group-active-color:var(--bs-dark-bg-subtle);--bs-list-group-active-bg:var(--bs-dark-text-emphasis);--bs-list-group-active-border-color:var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color:#000;--bs-btn-close-bg:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23000%27%3e%3cpath d=%27M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z%27/%3e%3c/svg%3e");--bs-btn-close-opacity:0.5;--bs-btn-close-hover-opacity:0.75;--bs-btn-close-focus-shadow:0 0 0 0.25rem rgba(13, 110, 253, 0.25);--bs-btn-close-focus-opacity:1;--bs-btn-close-disabled-opacity:0.25;--bs-btn-close-white-filter:invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em .25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close.disabled,.btn-close:disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white{filter:var(--bs-btn-close-white-filter)}[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex:1090;--bs-toast-padding-x:0.75rem;--bs-toast-padding-y:0.5rem;--bs-toast-spacing:1.5rem;--bs-toast-max-width:350px;--bs-toast-font-size:0.875rem;--bs-toast-color: ;--bs-toast-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-border-width:var(--bs-border-width);--bs-toast-border-color:var(--bs-border-color-translucent);--bs-toast-border-radius:var(--bs-border-radius);--bs-toast-box-shadow:var(--bs-box-shadow);--bs-toast-header-color:var(--bs-secondary-color);--bs-toast-header-bg:rgba(var(--bs-body-bg-rgb), 0.85);--bs-toast-header-border-color:var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex:1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex:1055;--bs-modal-width:500px;--bs-modal-padding:1rem;--bs-modal-margin:0.5rem;--bs-modal-color: ;--bs-modal-bg:var(--bs-body-bg);--bs-modal-border-color:var(--bs-border-color-translucent);--bs-modal-border-width:var(--bs-border-width);--bs-modal-border-radius:var(--bs-border-radius-lg);--bs-modal-box-shadow:var(--bs-box-shadow-sm);--bs-modal-inner-border-radius:calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x:1rem;--bs-modal-header-padding-y:1rem;--bs-modal-header-padding:1rem 1rem;--bs-modal-header-border-color:var(--bs-border-color);--bs-modal-header-border-width:var(--bs-border-width);--bs-modal-title-line-height:1.5;--bs-modal-footer-gap:0.5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color:var(--bs-border-color);--bs-modal-footer-border-width:var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translate(0,-50px)}@media (prefers-reduced-motion:reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex:1050;--bs-backdrop-bg:#000;--bs-backdrop-opacity:0.5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width:576px){.modal{--bs-modal-margin:1.75rem;--bs-modal-box-shadow:var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width:300px}}@media (min-width:992px){.modal-lg,.modal-xl{--bs-modal-width:800px}}@media (min-width:1200px){.modal-xl{--bs-modal-width:1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-footer,.modal-fullscreen .modal-header{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width:575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-footer,.modal-fullscreen-sm-down .modal-header{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width:767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-footer,.modal-fullscreen-md-down .modal-header{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width:991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-footer,.modal-fullscreen-lg-down .modal-header{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width:1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-footer,.modal-fullscreen-xl-down .modal-header{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width:1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-footer,.modal-fullscreen-xxl-down .modal-header{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex:1080;--bs-tooltip-max-width:200px;--bs-tooltip-padding-x:0.5rem;--bs-tooltip-padding-y:0.25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size:0.875rem;--bs-tooltip-color:var(--bs-body-bg);--bs-tooltip-bg:var(--bs-emphasis-color);--bs-tooltip-border-radius:var(--bs-border-radius);--bs-tooltip-opacity:0.9;--bs-tooltip-arrow-width:0.8rem;--bs-tooltip-arrow-height:0.4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow,.bs-tooltip-top .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before,.bs-tooltip-top .tooltip-arrow::before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow,.bs-tooltip-end .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before,.bs-tooltip-end .tooltip-arrow::before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow,.bs-tooltip-bottom .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before,.bs-tooltip-bottom .tooltip-arrow::before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow,.bs-tooltip-start .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before,.bs-tooltip-start .tooltip-arrow::before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex:1070;--bs-popover-max-width:276px;--bs-popover-font-size:0.875rem;--bs-popover-bg:var(--bs-body-bg);--bs-popover-border-width:var(--bs-border-width);--bs-popover-border-color:var(--bs-border-color-translucent);--bs-popover-border-radius:var(--bs-border-radius-lg);--bs-popover-inner-border-radius:calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow:var(--bs-box-shadow);--bs-popover-header-padding-x:1rem;--bs-popover-header-padding-y:0.5rem;--bs-popover-header-font-size:1rem;--bs-popover-header-color:inherit;--bs-popover-header-bg:var(--bs-secondary-bg);--bs-popover-body-padding-x:1rem;--bs-popover-body-padding-y:1rem;--bs-popover-body-color:var(--bs-body-color);--bs-popover-arrow-width:1rem;--bs-popover-arrow-height:0.5rem;--bs-popover-arrow-border:var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow::after,.popover .popover-arrow::before{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow,.bs-popover-top>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::after,.bs-popover-top>.popover-arrow::before{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::before,.bs-popover-top>.popover-arrow::before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=top]>.popover-arrow::after,.bs-popover-top>.popover-arrow::after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow,.bs-popover-end>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::after,.bs-popover-end>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::before,.bs-popover-end>.popover-arrow::before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=right]>.popover-arrow::after,.bs-popover-end>.popover-arrow::after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow,.bs-popover-bottom>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::before{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::before,.bs-popover-bottom>.popover-arrow::before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow::after,.bs-popover-bottom>.popover-arrow::after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-auto[data-popper-placement^=bottom] .popover-header::before,.bs-popover-bottom .popover-header::before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow,.bs-popover-start>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::after,.bs-popover-start>.popover-arrow::before{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::before,.bs-popover-start>.popover-arrow::before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-auto[data-popper-placement^=left]>.popover-arrow::after,.bs-popover-start>.popover-arrow::after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion:reduce){.carousel-item{transition:none}}.carousel-item-next,.carousel-item-prev,.carousel-item.active{display:block}.active.carousel-item-end,.carousel-item-next:not(.carousel-item-start){transform:translateX(100%)}.active.carousel-item-start,.carousel-item-prev:not(.carousel-item-end){transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end,.carousel-fade .carousel-item.active{z-index:1;opacity:1}.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion:reduce){.carousel-fade .active.carousel-item-end,.carousel-fade .active.carousel-item-start{transition:none}}.carousel-control-next,.carousel-control-prev{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:0 0;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion:reduce){.carousel-control-next,.carousel-control-prev{transition:none}}.carousel-control-next:focus,.carousel-control-next:hover,.carousel-control-prev:focus,.carousel-control-prev:hover{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-next-icon,.carousel-control-prev-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z%27/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 fill=%27%23fff%27%3e%3cpath d=%27M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z%27/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion:reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-next-icon,.carousel-dark .carousel-control-prev-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-border,.spinner-grow{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-border-width:0.25em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem;--bs-spinner-border-width:0.2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width:2rem;--bs-spinner-height:2rem;--bs-spinner-vertical-align:-0.125em;--bs-spinner-animation-speed:0.75s;--bs-spinner-animation-name:spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width:1rem;--bs-spinner-height:1rem}@media (prefers-reduced-motion:reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed:1.5s}}.offcanvas,.offcanvas-lg,.offcanvas-md,.offcanvas-sm,.offcanvas-xl,.offcanvas-xxl{--bs-offcanvas-zindex:1045;--bs-offcanvas-width:400px;--bs-offcanvas-height:30vh;--bs-offcanvas-padding-x:1rem;--bs-offcanvas-padding-y:1rem;--bs-offcanvas-color:var(--bs-body-color);--bs-offcanvas-bg:var(--bs-body-bg);--bs-offcanvas-border-width:var(--bs-border-width);--bs-offcanvas-border-color:var(--bs-border-color-translucent);--bs-offcanvas-box-shadow:var(--bs-box-shadow-sm);--bs-offcanvas-transition:transform 0.3s ease-in-out;--bs-offcanvas-title-line-height:1.5}@media (max-width:575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:575.98px) and (prefers-reduced-motion:reduce){.offcanvas-sm{transition:none}}@media (max-width:575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.show:not(.hiding),.offcanvas-sm.showing{transform:none}.offcanvas-sm.hiding,.offcanvas-sm.show,.offcanvas-sm.showing{visibility:visible}}@media (min-width:576px){.offcanvas-sm{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:767.98px) and (prefers-reduced-motion:reduce){.offcanvas-md{transition:none}}@media (max-width:767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.show:not(.hiding),.offcanvas-md.showing{transform:none}.offcanvas-md.hiding,.offcanvas-md.show,.offcanvas-md.showing{visibility:visible}}@media (min-width:768px){.offcanvas-md{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:991.98px) and (prefers-reduced-motion:reduce){.offcanvas-lg{transition:none}}@media (max-width:991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.show:not(.hiding),.offcanvas-lg.showing{transform:none}.offcanvas-lg.hiding,.offcanvas-lg.show,.offcanvas-lg.showing{visibility:visible}}@media (min-width:992px){.offcanvas-lg{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1199.98px) and (prefers-reduced-motion:reduce){.offcanvas-xl{transition:none}}@media (max-width:1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.show:not(.hiding),.offcanvas-xl.showing{transform:none}.offcanvas-xl.hiding,.offcanvas-xl.show,.offcanvas-xl.showing{visibility:visible}}@media (min-width:1200px){.offcanvas-xl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width:1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width:1399.98px) and (prefers-reduced-motion:reduce){.offcanvas-xxl{transition:none}}@media (max-width:1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.show:not(.hiding),.offcanvas-xxl.showing{transform:none}.offcanvas-xxl.hiding,.offcanvas-xxl.show,.offcanvas-xxl.showing{visibility:visible}}@media (min-width:1400px){.offcanvas-xxl{--bs-offcanvas-height:auto;--bs-offcanvas-border-width:0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion:reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateX(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.show:not(.hiding),.offcanvas.showing{transform:none}.offcanvas.hiding,.offcanvas.show,.offcanvas.showing{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin:calc(-.5 * var(--bs-offcanvas-padding-y)) calc(-.5 * var(--bs-offcanvas-padding-x)) calc(-.5 * var(--bs-offcanvas-padding-y)) auto}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn::before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,0.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{100%{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix::after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity,1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity,1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity,1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity,1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity,1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity,1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity,1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity,1))!important}.link-primary:focus,.link-primary:hover{color:RGBA(10,88,202,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity,1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity,1))!important}.link-secondary:focus,.link-secondary:hover{color:RGBA(86,94,100,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity,1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity,1))!important}.link-success:focus,.link-success:hover{color:RGBA(20,108,67,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity,1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity,1))!important}.link-info:focus,.link-info:hover{color:RGBA(61,213,243,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity,1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity,1))!important}.link-warning:focus,.link-warning:hover{color:RGBA(255,205,57,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity,1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity,1))!important}.link-danger:focus,.link-danger:hover{color:RGBA(176,42,55,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity,1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity,1))!important}.link-light:focus,.link-light:hover{color:RGBA(249,250,251,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity,1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity,1))!important}.link-dark:focus,.link-dark:hover{color:RGBA(26,30,33,var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity,1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-body-emphasis:focus,.link-body-emphasis:hover{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity,.75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity,0.75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x,0) var(--bs-focus-ring-y,0) var(--bs-focus-ring-blur,0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,0.5));text-underline-offset:0.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion:reduce){.icon-link>.bi{transition:none}}.icon-link-hover:focus-visible>.bi,.icon-link-hover:hover>.bi{transform:var(--bs-icon-link-transform,translate3d(.25em,0,0))}.ratio{position:relative;width:100%}.ratio::before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio:100%}.ratio-4x3{--bs-aspect-ratio:75%}.ratio-16x9{--bs-aspect-ratio:56.25%}.ratio-21x9{--bs-aspect-ratio:42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width:576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width:1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption),.visually-hidden:not(caption){position:absolute!important}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color:rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color:rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color:rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color:rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color:rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color:rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color:rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color:rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translateX(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity:1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity:1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity:1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity:1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity:1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity:1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity:1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity:1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity:1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity:1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity:0.1}.border-opacity-25{--bs-border-opacity:0.25}.border-opacity-50{--bs-border-opacity:0.5}.border-opacity-75{--bs-border-opacity:0.75}.border-opacity-100{--bs-border-opacity:1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity:1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity:1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity:1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity:1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity:1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity:1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity:1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity:1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity:1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity:1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity:1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity:1;color:rgba(0,0,0,.5)!important}.text-white-50{--bs-text-opacity:1;color:rgba(255,255,255,.5)!important}.text-body-secondary{--bs-text-opacity:1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity:1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity:1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity:1;color:inherit!important}.text-opacity-25{--bs-text-opacity:0.25}.text-opacity-50{--bs-text-opacity:0.5}.text-opacity-75{--bs-text-opacity:0.75}.text-opacity-100{--bs-text-opacity:1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10{--bs-link-opacity:0.1}.link-opacity-10-hover:hover{--bs-link-opacity:0.1}.link-opacity-25{--bs-link-opacity:0.25}.link-opacity-25-hover:hover{--bs-link-opacity:0.25}.link-opacity-50{--bs-link-opacity:0.5}.link-opacity-50-hover:hover{--bs-link-opacity:0.5}.link-opacity-75{--bs-link-opacity:0.75}.link-opacity-75-hover:hover{--bs-link-opacity:0.75}.link-opacity-100{--bs-link-opacity:1}.link-opacity-100-hover:hover{--bs-link-opacity:1}.link-offset-1{text-underline-offset:0.125em!important}.link-offset-1-hover:hover{text-underline-offset:0.125em!important}.link-offset-2{text-underline-offset:0.25em!important}.link-offset-2-hover:hover{text-underline-offset:0.25em!important}.link-offset-3{text-underline-offset:0.375em!important}.link-offset-3-hover:hover{text-underline-offset:0.375em!important}.link-underline-primary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity:1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity,1))!important}.link-underline-opacity-0{--bs-link-underline-opacity:0}.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity:0}.link-underline-opacity-10{--bs-link-underline-opacity:0.1}.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity:0.1}.link-underline-opacity-25{--bs-link-underline-opacity:0.25}.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity:0.25}.link-underline-opacity-50{--bs-link-underline-opacity:0.5}.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity:0.5}.link-underline-opacity-75{--bs-link-underline-opacity:0.75}.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity:0.75}.link-underline-opacity-100{--bs-link-underline-opacity:1}.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity:1}.bg-primary{--bs-bg-opacity:1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity:1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity:1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity:1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity:1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity:1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity:1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity:1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity:1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity:1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity:1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity:1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity:1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity:0.1}.bg-opacity-25{--bs-bg-opacity:0.25}.bg-opacity-50{--bs-bg-opacity:0.5}.bg-opacity-75{--bs-bg-opacity:0.75}.bg-opacity-100{--bs-bg-opacity:1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width:576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width:768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width:992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width:1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width:1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:0.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:0.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width:1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}} +/** + * Copyright (c) 2014 The xterm.js authors. All rights reserved. + * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License) + * https://github.com/chjj/term.js + * @license MIT + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * Originally forked from (with the author's permission): + * Fabrice Bellard's javascript vt100 for jslinux: + * http://bellard.org/jslinux/ + * Copyright (c) 2011 Fabrice Bellard + * The original design remains. The terminal itself + * has been extended to include xterm CSI codes, among + * other features. + */ + +/** + * Default styles for xterm.js + */ + +.xterm { + cursor: text; + position: relative; + user-select: none; + -ms-user-select: none; + -webkit-user-select: none; +} + +.xterm.focus, +.xterm:focus { + outline: none; +} + +.xterm .xterm-helpers { + position: absolute; + top: 0; + /** + * The z-index of the helpers must be higher than the canvases in order for + * IMEs to appear on top. + */ + z-index: 5; +} + +.xterm .xterm-helper-textarea { + padding: 0; + border: 0; + margin: 0; + /* Move textarea out of the screen to the far left, so that the cursor is not visible */ + position: absolute; + opacity: 0; + left: -9999em; + top: 0; + width: 0; + height: 0; + z-index: -5; + /** Prevent wrapping so the IME appears against the textarea at the correct position */ + white-space: nowrap; + overflow: hidden; + resize: none; +} + +.xterm .composition-view { + /* TODO: Composition position got messed up somewhere */ + background: #000; + color: #FFF; + display: none; + position: absolute; + white-space: nowrap; + z-index: 1; +} + +.xterm .composition-view.active { + display: block; +} + +.xterm .xterm-viewport { + /* On OS X this is required in order for the scroll bar to appear fully opaque */ + background-color: #000; + overflow-y: scroll; + cursor: default; + position: absolute; + right: 0; + left: 0; + top: 0; + bottom: 0; +} + +.xterm .xterm-screen { + position: relative; +} + +.xterm .xterm-screen canvas { + position: absolute; + left: 0; + top: 0; +} + +.xterm .xterm-scroll-area { + visibility: hidden; +} + +.xterm-char-measure-element { + display: inline-block; + visibility: hidden; + position: absolute; + top: 0; + left: -9999em; + line-height: normal; +} + +.xterm.enable-mouse-events { + /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */ + cursor: default; +} + +.xterm.xterm-cursor-pointer, +.xterm .xterm-cursor-pointer { + cursor: pointer; +} + +.xterm.column-select.focus { + /* Column selection mode */ + cursor: crosshair; +} + +.xterm .xterm-accessibility, +.xterm .xterm-message { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + z-index: 10; + color: transparent; + pointer-events: none; +} + +.xterm .live-region { + position: absolute; + left: -9999px; + width: 1px; + height: 1px; + overflow: hidden; +} + +.xterm-dim { + /* Dim should not apply to background, so the opacity of the foreground color is applied + * explicitly in the generated class and reset to 1 here */ + opacity: 1 !important; +} + +.xterm-underline-1 { text-decoration: underline; } +.xterm-underline-2 { text-decoration: double underline; } +.xterm-underline-3 { text-decoration: wavy underline; } +.xterm-underline-4 { text-decoration: dotted underline; } +.xterm-underline-5 { text-decoration: dashed underline; } + +.xterm-overline { + text-decoration: overline; +} + +.xterm-overline.xterm-underline-1 { text-decoration: overline underline; } +.xterm-overline.xterm-underline-2 { text-decoration: overline double underline; } +.xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; } +.xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; } +.xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; } + +.xterm-strikethrough { + text-decoration: line-through; +} + +.xterm-screen .xterm-decoration-container .xterm-decoration { + z-index: 6; + position: absolute; +} + +.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer { + z-index: 7; +} + +.xterm-decoration-overview-ruler { + z-index: 8; + position: absolute; + top: 0; + right: 0; + pointer-events: none; +} + +.xterm-decoration-top { + z-index: 2; + position: relative; +} + +.tooltip-container { + --tooltipBackground: #fff; + --tooltipBorder: #c0c0c0; + --tooltipColor: #000; + + background-color: var(--tooltipBackground); + border-radius: 3px; + border: 1px solid var(--tooltipBorder); + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); + color: var(--tooltipColor); + display: flex; + flex-direction: column; + padding: 0.4rem; + transition: opacity 0.3s; + z-index: 9999; +} + +.tooltip-container[data-popper-interactive='false'] { + pointer-events: none; +} + +.tooltip-arrow { + height: 1rem; + position: absolute; + width: 1rem; + pointer-events: none; +} + +.tooltip-arrow::before { + border-style: solid; + content: ''; + display: block; + height: 0; + margin: auto; + width: 0; +} + +.tooltip-arrow::after { + border-style: solid; + content: ''; + display: block; + height: 0; + margin: auto; + position: absolute; + width: 0; +} + +.tooltip-container[data-popper-placement*='bottom'] .tooltip-arrow { + left: 0; + margin-top: -0.4rem; + top: 0; +} + +.tooltip-container[data-popper-placement*='bottom'] .tooltip-arrow::before { + border-color: transparent transparent var(--tooltipBorder) transparent; + border-width: 0 0.5rem 0.4rem 0.5rem; + position: absolute; + top: -1px; +} + +.tooltip-container[data-popper-placement*='bottom'] .tooltip-arrow::after { + border-color: transparent transparent var(--tooltipBackground) transparent; + border-width: 0 0.5rem 0.4rem 0.5rem; +} + +.tooltip-container[data-popper-placement*='top'] .tooltip-arrow { + bottom: 0; + left: 0; + margin-bottom: -1rem; +} + +.tooltip-container[data-popper-placement*='top'] .tooltip-arrow::before { + border-color: var(--tooltipBorder) transparent transparent transparent; + border-width: 0.4rem 0.5rem 0 0.5rem; + position: absolute; + top: 1px; +} + +.tooltip-container[data-popper-placement*='top'] .tooltip-arrow::after { + border-color: var(--tooltipBackground) transparent transparent transparent; + border-width: 0.4rem 0.5rem 0 0.5rem; +} + +.tooltip-container[data-popper-placement*='right'] .tooltip-arrow { + left: 0; + margin-left: -0.7rem; +} + +.tooltip-container[data-popper-placement*='right'] .tooltip-arrow::before { + border-color: transparent var(--tooltipBorder) transparent transparent; + border-width: 0.5rem 0.4rem 0.5rem 0; +} + +.tooltip-container[data-popper-placement*='right'] .tooltip-arrow::after { + border-color: transparent var(--tooltipBackground) transparent transparent; + border-width: 0.5rem 0.4rem 0.5rem 0; + left: 6px; + top: 0; +} + +.tooltip-container[data-popper-placement*='left'] .tooltip-arrow { + margin-right: -0.7rem; + right: 0; +} + +.tooltip-container[data-popper-placement*='left'] .tooltip-arrow::before { + border-color: transparent transparent transparent var(--tooltipBorder); + border-width: 0.5rem 0 0.5rem 0.4em; +} + +.tooltip-container[data-popper-placement*='left'] .tooltip-arrow::after { + border-color: transparent transparent transparent var(--tooltipBackground); + border-width: 0.5rem 0 0.5rem 0.4em; + left: 3px; + top: 0; +} + diff --git a/static/css/143.09b32b45b373f12888af.css b/static/css/524.47a3e8483ae6a8a249bd.css similarity index 79% rename from static/css/143.09b32b45b373f12888af.css rename to static/css/524.47a3e8483ae6a8a249bd.css index f244c7607..e2889a378 100644 --- a/static/css/143.09b32b45b373f12888af.css +++ b/static/css/524.47a3e8483ae6a8a249bd.css @@ -360,118 +360,6 @@ height: 100%; } -@media only screen and (min-width: 600px) { - .MgE8UmO_jho2r_HikcFG { - position: relative; - display: grid; - grid-template-rows: 100%; - grid-template-columns: var(--nav_bar_width) calc(100% - var(--nav_bar_width)); - height: 100%; - } - - .Ik38kjC8InfXiyMIklkB { - background-color: var(--nav_bar_bg); - color: rgb(255, 255, 255); - line-height: 24px; - text-align: center; - - display: grid; - grid-template-rows: 56px auto; - grid-template-columns: 100%; - } - - .bm9W3OhPnGkKhLwJ516g { - display: grid; - grid-template-rows: repeat(3, 48px); - grid-template-columns: 100%; - } -} - -@media only screen and (max-width: 600px) { - .MgE8UmO_jho2r_HikcFG { - position: relative; - display: grid; - grid-template-rows: var(--nav_bar_width) calc(100% - var(--nav_bar_width)); - grid-template-columns: 100%; - height: 100%; - } - - .Ik38kjC8InfXiyMIklkB { - background-color: var(--nav_bar_bg); - color: rgb(255, 255, 255); - line-height: 24px; - text-align: center; - - display: grid; - grid-template-rows: 100%; - grid-template-columns: 64px auto; - justify-items: right; - } - - .bm9W3OhPnGkKhLwJ516g { - display: grid; - grid-template-columns: repeat(3, 56px); - grid-template-rows: 100%; - } -} - -.Pr00W8Wp3LmJVbOJUr0W { - width: 100%; - display: grid; - align-items: center; - justify-content: center; - color: rgb(255, 240, 0); -} - -.Pr00W8Wp3LmJVbOJUr0W > img { - width: 32px; -} - -.iJCjJPuh9KQo8iwCNd16 { - display: block; -} - -.yzjBuH6YN7NFao36gSMl { - position: relative; - font-weight: 400; - background-color: var(--nav_tab_bg); - color: var(--nav_tab_fg); - text-decoration: none; - box-sizing: border-box; -} - -.yzjBuH6YN7NFao36gSMl > a { - width: 100%; - height: 100%; - display: grid; - text-decoration: none; - vertical-align: middle; -} - -.yzjBuH6YN7NFao36gSMl > a svg { - justify-self: center; - align-self: center; - margin-bottom: 3px; - color: white; -} - -.SCfU8XvxNRkZroE_3kvE { - color: white; - display: grid; - justify-content: center; - align-items: center; -} - -.UI3cWVGIxV4XnPJcJcDQ { - font-size: 1.2rem; -} - -.yzjBuH6YN7NFao36gSMl:hover, -.yzjBuH6YN7NFao36gSMl.YnI4T386XnxghA5ap8dg { - background-color: var(--nav_tab_bg_active); - color: var(--nav_tab_fg_active); -} - /* -------------------------------------------------------------------- */ @font-face { diff --git a/static/css/navbar.css b/static/css/navbar.css new file mode 100644 index 000000000..aff1cd283 --- /dev/null +++ b/static/css/navbar.css @@ -0,0 +1,161 @@ + html { + width: 100%; + height: 100%; + padding: 0; + margin: 0; +} + body { + width: 100%; + height: 100%; + padding: 0; + margin: 0; +} + #root { + width: 100%; + height: 100%; + padding: 0; + margin: 0; +} + .root_div { + position: relative; + height: 100%; + width: 100%; + box-sizing: border-box; +} + @media only screen and (min-width: 600px) { + .level1 { + position: relative; + display: grid; + grid-template-rows: 100%; + grid-template-columns: var(--nav_bar_width) calc(100% - var(--nav_bar_width)); + } + .level2 { + background-color: var(--nav_bar_bg); + color: rgb(255, 255, 255); + line-height: 24px; + text-align: center; + display: grid; + grid-template-rows: 56px auto; + grid-template-columns: 100%; + } + .submenu { + display: grid; + grid-template-rows: repeat(6, 48px); + grid-template-columns: 100%; + } +} + @media only screen and (max-width: 600px) { + .level1 { + position: relative; + display: grid; + grid-template-rows: var(--nav_bar_width) calc(100% - var(--nav_bar_width)); + grid-template-columns: 100%; + } + .level2 { + background-color: var(--nav_bar_bg); + color: rgb(255, 255, 255); + line-height: 24px; + text-align: center; + display: grid; + grid-template-rows: 100%; + grid-template-columns: 64px auto; + justify-items: right; + } + .submenu { + display: grid; + grid-template-columns: 28px repeat(4, 56px) 28px; + grid-template-rows: 100%; + } +} + .submenu_item { + position: relative; + font-weight: 400; + background-color: var(--nav_tab_bg); + color: var(--nav_tab_fg); + text-decoration: none; + box-sizing: border-box; +} + .submenu_item > a { + width: 100%; + height: 100%; + display: grid; + text-decoration: none; + vertical-align: middle; +} + .submenu_item > a svg { + justify-self: center; + align-self: center; + color: white; +} + .submenu_item > a > div { + color: white; + display: grid; + justify-content: center; + align-items: center; +} + .submenu_item:hover, .ducklogo:hover { + background-color: var(--nav_tab_bg_active); + color: var(--nav_tab_fg_active); +} +/* -------------------------------------------------------------------- */ + @font-face { + font-family: 'Nunito'; + font-style: normal; + font-weight: 299; + src: url(../../static/assets/Nunito-Light.544d04c96d939f25984c.ttf) format('truetype'); +} + @font-face { + font-family: 'Nunito'; + font-style: normal; + font-weight: 399; + src: url(../../static/assets/Nunito-Regular.8b2f37e93bedfaa2976.ttf) format('truetype'); +} + @font-face { + font-family: 'Nunito'; + font-style: normal; + font-weight: 499; + src: url(../../static/assets/Nunito-SemiBold.ttf) format('truetype'); +} + @font-face { + font-family: 'Nunito'; + font-style: normal; + font-weight: 699; + src: url(../../static/assets/Nunito-Bold.4b67d635abb53cc261c5.ttf) format('truetype'); +} +/* -------------------------------------------------------------------- */ + :root { + --border_radius: -1px; + --border_color: rgb(219, 220, 220); + --nav_bar_bg: rgb(29, 30, 30); + --nav_bar_button_height: 47px; + --nav_bar_button_margin: 3px 8px; + --nav_bar_width: 63px; + --nav_logo_height: 55px; + --nav_tab_bg: transparent; + --nav_tab_bg_active: rgb(19, 20, 20); + --nav_tab_fg: rgb(254, 255, 255); + --nav_tab_fg_active: rgb(254, 255, 255); + --card_border_color: rgb(199, 200, 200); + --card_header_bg: hsl(209deg 12% 96%); + --card_header_border: 0px solid rgb(215, 215, 215); + font-family: 'Nunito'; +} + .xterm .xterm-viewport { + background-color: transparent; + overflow-y: scroll; + cursor: default; + position: absolute; + right: 0; + left: 0; + top: 0; + bottom: 0; + scrollbar-color: white #333; + scrollbar-width: thin; +} + .xterm-viewport::-webkit-scrollbar { + background-color: #333; + width: 5px; +} + .xterm-viewport::-webkit-scrollbar-thumb { + background: white; +} diff --git a/static/img/add.svg b/static/img/add.svg new file mode 100644 index 000000000..5b9ce802d --- /dev/null +++ b/static/img/add.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/book.cee8d5e89b78252361aa.svg b/static/img/book.svg similarity index 100% rename from static/img/book.cee8d5e89b78252361aa.svg rename to static/img/book.svg diff --git a/static/img/check.svg b/static/img/check.svg new file mode 100644 index 000000000..c8743fa45 --- /dev/null +++ b/static/img/check.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/clockfast.svg b/static/img/clockfast.svg new file mode 100644 index 000000000..424bdf222 --- /dev/null +++ b/static/img/clockfast.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/close.svg b/static/img/close.svg new file mode 100644 index 000000000..7f29e7cf2 --- /dev/null +++ b/static/img/close.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/static/img/cloud.svg b/static/img/cloud.svg new file mode 100644 index 000000000..62699b240 --- /dev/null +++ b/static/img/cloud.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/data-matrix-scan.svg b/static/img/data-matrix-scan.svg new file mode 100644 index 000000000..8c6351087 --- /dev/null +++ b/static/img/data-matrix-scan.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/data-matrix.svg b/static/img/data-matrix.svg new file mode 100644 index 000000000..fd4fbab31 --- /dev/null +++ b/static/img/data-matrix.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/delete-outline.svg b/static/img/delete-outline.svg new file mode 100644 index 000000000..63c1b5225 --- /dev/null +++ b/static/img/delete-outline.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/delete.svg b/static/img/delete.svg new file mode 100644 index 000000000..152dace44 --- /dev/null +++ b/static/img/delete.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/discord.svg b/static/img/discord.svg new file mode 100644 index 000000000..7d18e3c6d --- /dev/null +++ b/static/img/discord.svg @@ -0,0 +1 @@ + diff --git a/static/img/duckdb_logo.svg b/static/img/duckdb_logo.svg new file mode 100644 index 000000000..26769256d --- /dev/null +++ b/static/img/duckdb_logo.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/img/file-chart.svg b/static/img/file-chart.svg new file mode 100644 index 000000000..f75e540dc --- /dev/null +++ b/static/img/file-chart.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/file-document-outline.svg b/static/img/file-document-outline.svg new file mode 100644 index 000000000..b98fce847 --- /dev/null +++ b/static/img/file-document-outline.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/file-table-box.svg b/static/img/file-table-box.svg new file mode 100644 index 000000000..a08b5f9fe --- /dev/null +++ b/static/img/file-table-box.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/file-table.svg b/static/img/file-table.svg new file mode 100644 index 000000000..39cfd6058 --- /dev/null +++ b/static/img/file-table.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/github.svg b/static/img/github.svg new file mode 100644 index 000000000..0bac4b8dd --- /dev/null +++ b/static/img/github.svg @@ -0,0 +1 @@ + diff --git a/static/img/minus-circle.svg b/static/img/minus-circle.svg new file mode 100644 index 000000000..4b71ca277 --- /dev/null +++ b/static/img/minus-circle.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/minus.svg b/static/img/minus.svg new file mode 100644 index 000000000..c506cd0cd --- /dev/null +++ b/static/img/minus.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/monitor.svg b/static/img/monitor.svg new file mode 100644 index 000000000..7f88e6181 --- /dev/null +++ b/static/img/monitor.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/pivot.svg b/static/img/pivot.svg new file mode 100644 index 000000000..86d859222 --- /dev/null +++ b/static/img/pivot.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/plus.svg b/static/img/plus.svg new file mode 100644 index 000000000..281943e84 --- /dev/null +++ b/static/img/plus.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/server.svg b/static/img/server.svg new file mode 100644 index 000000000..77bb02227 --- /dev/null +++ b/static/img/server.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/shell.44adb131819504541d01.svg b/static/img/shell.svg similarity index 100% rename from static/img/shell.44adb131819504541d01.svg rename to static/img/shell.svg diff --git a/static/img/table.svg b/static/img/table.svg new file mode 100644 index 000000000..da8bc876f --- /dev/null +++ b/static/img/table.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/timer.svg b/static/img/timer.svg new file mode 100644 index 000000000..989b111eb --- /dev/null +++ b/static/img/timer.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/tray_full.svg b/static/img/tray_full.svg new file mode 100644 index 000000000..f30cf3968 --- /dev/null +++ b/static/img/tray_full.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/view-list.svg b/static/img/view-list.svg new file mode 100644 index 000000000..bb53fe59a --- /dev/null +++ b/static/img/view-list.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/img/warn.svg b/static/img/warn.svg new file mode 100644 index 000000000..fab017b61 --- /dev/null +++ b/static/img/warn.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/js/125.9d804447d4a1a59df3b4.js b/static/js/125.9d804447d4a1a59df3b4.js deleted file mode 100644 index d3f8419dc..000000000 --- a/static/js/125.9d804447d4a1a59df3b4.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_duckdb_duckdb_wasm_app=self.webpackChunk_duckdb_duckdb_wasm_app||[]).push([[125],{6822:(e,t,n)=>{var r=n(2784),a=n(7029),s=n(4425);var i=function(e){return r.createElement("div",{className:"BTHdPa9vWKfDLQzn4XBN"},r.createElement("div",{className:"nESJgbxz7VWrbkq8ADKL"},e.children))},o=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},l=n(2779),c=n.n(l);var u=function(e){return r.createElement("div",{className:c()("z9qO7Rz9iHz4ZIURSV16",e.className)},r.createElement("div",{className:"Yo0bhG9_TbxiCDQEQ1e7"},r.createElement("div",{className:"FCaVy7r4GQE7QNuK3BEx",style:{width:Math.max(1)*e.value*100+"%"}})))},d=n(7042);const _={table:"Si1pcVcFc1bBLoyu7Y13",table_title:"GVtWUVp5icYbuUbBf2V5",table_anchor:"b5o1oBkF5D33RS149O9A",table_column_header:"VpiuSXx16ER0IcfvYyb2",row_header:"a8lz1N3p9rMKso58LUH1",table_entry_missing:"J2lkQAs6h37305aL4Zsy",table_entry:"RpjmKjCg2GsRi60LoGd2",table_entry_value:"qxhjoYUxCF0uZZFnvbPr",table_entry_bar:"hB2mqCkygKno5tl4DQen",table_entry_icon:"gsizvKUHsRX8HIOjFbb9",table_entry_tooltip:"GK2o1MqwNLJcE3UIeFrR"};var b,m=function(){return m=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},h=["duckdb_sync","sqljs","arquero","lovefield"];!function(e){e[e.MEAN_TIME=0]="MEAN_TIME",e[e.FREQUENCY=1]="FREQUENCY"}(b||(b={}));var w=function(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:_.table_title},e.title),r.createElement("div",{className:_.table_anchor}),r.createElement("div",{className:_.table_column_header},"DuckDB-wasm"),r.createElement("div",{className:_.table_column_header},"sql.js"),r.createElement("div",{className:_.table_column_header},"Arquero"),r.createElement("div",{className:_.table_column_header},"Lovefield"))},E=function(e){var t=(0,d.O)(),n=t.getArrowProps,a=t.getTooltipProps,s=t.setTooltipRef,i=t.setTriggerRef,o=t.visible;return r.createElement("div",{ref:i,className:e.className},e.children,o&&r.createElement("div",m({ref:s},a({className:c()("tooltip-container",_.table_entry_tooltip)})),r.createElement("div",m({},n({className:"tooltip-arrow"}))),e.warning))},p=function(e){var t,n,a,s,i=[],o=[],l=[],c=[];if(e.m==b.MEAN_TIME){for(var d=[],m=Number.POSITIVE_INFINITY,w=0,p=0,g=0;g{t.exports=Worker},()=>(q||B(q={exports:{}},q),q.exports)),ae=((Y=ae||{})[Y.NONE=0]="NONE",Y[Y.DEBUG=1]="DEBUG",Y[Y.INFO=2]="INFO",Y[Y.WARNING=3]="WARNING",Y[Y.ERROR=4]="ERROR",Y),se=((Q=se||{})[Q.NONE=0]="NONE",Q[Q.CONNECT=1]="CONNECT",Q[Q.DISCONNECT=2]="DISCONNECT",Q[Q.OPEN=3]="OPEN",Q[Q.QUERY=4]="QUERY",Q[Q.INSTANTIATE=5]="INSTANTIATE",Q),ie=(e=>(e[e.NONE=0]="NONE",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR",e[e.START=3]="START",e[e.RUN=4]="RUN",e[e.CAPTURE=5]="CAPTURE",e))(ie||{}),oe=(e=>(e[e.NONE=0]="NONE",e[e.WEB_WORKER=1]="WEB_WORKER",e[e.NODE_WORKER=2]="NODE_WORKER",e[e.BINDINGS=3]="BINDINGS",e[e.ASYNC_DUCKDB=4]="ASYNC_DUCKDB",e))(oe||{}),le=(e=>(e[e.SUCCESS=0]="SUCCESS",e))(le||{}),ce=class{constructor(e,t,n){this.db=e,this.conn=t,this.header=n,this._first=!0,this._depleted=!1,this._inFlight=null}async next(){if(this._first)return this._first=!1,{done:!1,value:this.header};if(this._depleted)return{done:!0,value:null};let e;return null!=this._inFlight?(e=await this._inFlight,this._inFlight=null):e=await this.db.fetchQueryResults(this.conn),this._depleted=0==e.length,this._depleted||(this._inFlight=this.db.fetchQueryResults(this.conn)),{done:this._depleted,value:e}}[Symbol.asyncIterator](){return this}},ue=((K=ue||{}).CANCEL_PENDING_QUERY="CANCEL_PENDING_QUERY",K.CLOSE_PREPARED="CLOSE_PREPARED",K.COLLECT_FILE_STATISTICS="COLLECT_FILE_STATISTICS",K.CONNECT="CONNECT",K.COPY_FILE_TO_BUFFER="COPY_FILE_TO_BUFFER",K.COPY_FILE_TO_PATH="COPY_FILE_TO_PATH",K.CREATE_PREPARED="CREATE_PREPARED",K.DISCONNECT="DISCONNECT",K.DROP_FILE="DROP_FILE",K.DROP_FILES="DROP_FILES",K.EXPORT_FILE_STATISTICS="EXPORT_FILE_STATISTICS",K.FETCH_QUERY_RESULTS="FETCH_QUERY_RESULTS",K.FLUSH_FILES="FLUSH_FILES",K.GET_FEATURE_FLAGS="GET_FEATURE_FLAGS",K.GET_TABLE_NAMES="GET_TABLE_NAMES",K.GET_VERSION="GET_VERSION",K.GLOB_FILE_INFOS="GLOB_FILE_INFOS",K.INSERT_ARROW_FROM_IPC_STREAM="INSERT_ARROW_FROM_IPC_STREAM",K.INSERT_CSV_FROM_PATH="IMPORT_CSV_FROM_PATH",K.INSERT_JSON_FROM_PATH="IMPORT_JSON_FROM_PATH",K.INSTANTIATE="INSTANTIATE",K.OPEN="OPEN",K.PING="PING",K.POLL_PENDING_QUERY="POLL_PENDING_QUERY",K.REGISTER_FILE_BUFFER="REGISTER_FILE_BUFFER",K.REGISTER_FILE_HANDLE="REGISTER_FILE_HANDLE",K.REGISTER_FILE_URL="REGISTER_FILE_URL",K.RESET="RESET",K.RUN_PREPARED="RUN_PREPARED",K.RUN_QUERY="RUN_QUERY",K.SEND_PREPARED="SEND_PREPARED",K.START_PENDING_QUERY="START_PENDING_QUERY",K.TOKENIZE="TOKENIZE",K),de=((H=de||{}).CONNECTION_INFO="CONNECTION_INFO",H.ERROR="ERROR",H.FEATURE_FLAGS="FEATURE_FLAGS",H.FILE_BUFFER="FILE_BUFFER",H.FILE_INFOS="FILE_INFOS",H.FILE_SIZE="FILE_SIZE",H.FILE_STATISTICS="FILE_STATISTICS",H.INSTANTIATE_PROGRESS="INSTANTIATE_PROGRESS",H.LOG="LOG",H.OK="OK",H.PREPARED_STATEMENT_ID="PREPARED_STATEMENT_ID",H.QUERY_PLAN="QUERY_PLAN",H.QUERY_RESULT="QUERY_RESULT",H.QUERY_RESULT_CHUNK="QUERY_RESULT_CHUNK",H.QUERY_RESULT_HEADER="QUERY_RESULT_HEADER",H.QUERY_RESULT_HEADER_OR_NULL="QUERY_RESULT_HEADER_OR_NULL",H.REGISTERED_FILE="REGISTERED_FILE",H.SCRIPT_TOKENS="SCRIPT_TOKENS",H.SUCCESS="SUCCESS",H.TABLE_NAMES="TABLE_NAMES",H.VERSION_STRING="VERSION_STRING",H),_e=class{constructor(e,t){this.promiseResolver=()=>{},this.promiseRejecter=()=>{},this.type=e,this.data=t,this.promise=new Promise(((e,t)=>{this.promiseResolver=e,this.promiseRejecter=t}))}};function be(e){switch(e.typeId){case J.Dy.Binary:return{sqlType:"binary"};case J.Dy.Bool:return{sqlType:"bool"};case J.Dy.Date:return{sqlType:"date"};case J.Dy.DateDay:return{sqlType:"date32[d]"};case J.Dy.DateMillisecond:return{sqlType:"date64[ms]"};case J.Dy.Decimal:{let t=e;return{sqlType:"decimal",precision:t.precision,scale:t.scale}}case J.Dy.Float:return{sqlType:"float"};case J.Dy.Float16:return{sqlType:"float16"};case J.Dy.Float32:return{sqlType:"float32"};case J.Dy.Float64:return{sqlType:"float64"};case J.Dy.Int:return{sqlType:"int32"};case J.Dy.Int16:return{sqlType:"int16"};case J.Dy.Int32:return{sqlType:"int32"};case J.Dy.Int64:return{sqlType:"int64"};case J.Dy.Uint16:return{sqlType:"uint16"};case J.Dy.Uint32:return{sqlType:"uint32"};case J.Dy.Uint64:return{sqlType:"uint64"};case J.Dy.Uint8:return{sqlType:"uint8"};case J.Dy.IntervalDayTime:return{sqlType:"interval[dt]"};case J.Dy.IntervalYearMonth:return{sqlType:"interval[m]"};case J.Dy.List:return{sqlType:"list",valueType:be(e.valueType)};case J.Dy.FixedSizeBinary:return{sqlType:"fixedsizebinary",byteWidth:e.byteWidth};case J.Dy.Null:return{sqlType:"null"};case J.Dy.Utf8:return{sqlType:"utf8"};case J.Dy.Struct:return{sqlType:"struct",fields:e.children.map((e=>me(e.name,e.type)))};case J.Dy.Map:{let t=e;return{sqlType:"map",keyType:be(t.keyType),valueType:be(t.valueType)}}case J.Dy.Time:return{sqlType:"time[s]"};case J.Dy.TimeMicrosecond:return{sqlType:"time[us]"};case J.Dy.TimeMillisecond:return{sqlType:"time[ms]"};case J.Dy.TimeNanosecond:return{sqlType:"time[ns]"};case J.Dy.TimeSecond:return{sqlType:"time[s]"};case J.Dy.Timestamp:return{sqlType:"timestamp",timezone:e.timezone||void 0};case J.Dy.TimestampSecond:return{sqlType:"timestamp[s]",timezone:e.timezone||void 0};case J.Dy.TimestampMicrosecond:return{sqlType:"timestamp[us]",timezone:e.timezone||void 0};case J.Dy.TimestampNanosecond:return{sqlType:"timestamp[ns]",timezone:e.timezone||void 0};case J.Dy.TimestampMillisecond:return{sqlType:"timestamp[ms]",timezone:e.timezone||void 0}}throw new Error(`unsupported arrow type: ${e.toString()}`)}function me(e,t){let n=be(t);return n.name=e,n}var fe=new TextEncoder,he={name:"@duckdb/duckdb-wasm",version:"1.20.1-dev34.0",description:"DuckDB powered by WebAssembly",license:"MIT",repository:{type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},keywords:["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],dependencies:{"apache-arrow":"^9.0.0"},devDependencies:{"@types/emscripten":"^1.39.6","@types/jasmine":"^4.3.1","@typescript-eslint/eslint-plugin":"^5.47.1","@typescript-eslint/parser":"^5.45.0",esbuild:"^0.15.12",eslint:"^8.29.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.31.10","fast-glob":"^3.2.12",jasmine:"^4.5.0","jasmine-core":"^4.3.0","jasmine-spec-reporter":"^7.0.0","js-sha256":"^0.9.0",karma:"^6.4.1","karma-chrome-launcher":"^3.1.1","karma-coverage":"^2.2.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^5.1.0","karma-jasmine-html-reporter":"^2.0.0","karma-sourcemap-loader":"^0.3.8","karma-spec-reporter":"^0.0.36","make-dir":"^3.1.0",nyc:"^15.1.0",prettier:"^2.8.1",puppeteer:"^19.2.0",rimraf:"^3.0.2",s3rver:"^3.7.1",typedoc:"^0.23.20",typescript:"^4.8.4","wasm-feature-detect":"^1.3.0","web-worker":"^1.2.0"},scripts:{"build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",docs:"typedoc",report:"node ./coverage.mjs","test:node":"node --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:debug":"node --inspect-brk --enable-source-maps --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:node:coverage":"nyc -r json --report-dir ./coverage/node node --experimental-wasm-eh ../../node_modules/jasmine/bin/jasmine ./dist/tests-node.cjs","test:firefox":"karma start ./karma/tests-firefox.cjs","test:chrome":"karma start ./karma/tests-chrome.cjs","test:chrome:eh":"karma start ./karma/tests-chrome-eh.cjs","test:chrome:coverage":"karma start ./karma/tests-chrome-coverage.cjs","test:browser":"karma start ./karma/tests-all.cjs","test:browser:debug":"karma start ./karma/tests-debug.cjs",test:"npm run test:chrome && npm run test:node","test:coverage":"npm run test:chrome:coverage && npm run test:node:coverage && npm run report",lint:"eslint src test"},files:["dist","!dist/types/test"],main:"dist/duckdb-browser.cjs",module:"dist/duckdb-browser.mjs",types:"dist/duckdb-browser.d.ts",jsdelivr:"dist/duckdb-browser.cjs",unpkg:"dist/duckdb-browser.mjs",sideEffects:!1,browser:{fs:!1,path:!1,perf_hooks:!1,os:!1,worker_threads:!1},exports:{"./dist/duckdb-mvp.wasm":"./dist/duckdb-mvp.wasm","./dist/duckdb-eh.wasm":"./dist/duckdb-eh.wasm","./dist/duckdb-coi.wasm":"./dist/duckdb-coi.wasm","./dist/duckdb-browser":"./dist/duckdb-browser.mjs","./dist/duckdb-browser.cjs":"./dist/duckdb-browser.cjs","./dist/duckdb-browser.mjs":"./dist/duckdb-browser.mjs","./dist/duckdb-browser-blocking":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.mjs":"./dist/duckdb-browser-blocking.mjs","./dist/duckdb-browser-blocking.cjs":"./dist/duckdb-browser-blocking.cjs","./dist/duckdb-browser-coi.pthread.worker.js":"./dist/duckdb-browser-coi.pthread.worker.js","./dist/duckdb-browser-coi.worker.js":"./dist/duckdb-browser-coi.worker.js","./dist/duckdb-browser-eh.worker.js":"./dist/duckdb-browser-eh.worker.js","./dist/duckdb-browser-mvp.worker.js":"./dist/duckdb-browser-mvp.worker.js","./dist/duckdb-node":"./dist/duckdb-node.cjs","./dist/duckdb-node.cjs":"./dist/duckdb-node.cjs","./dist/duckdb-node-blocking":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-blocking.cjs":"./dist/duckdb-node-blocking.cjs","./dist/duckdb-node-eh.worker.cjs":"./dist/duckdb-node-eh.worker.cjs","./dist/duckdb-node-mvp.worker.cjs":"./dist/duckdb-node-mvp.worker.cjs","./blocking":{browser:{types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},node:{types:"./dist/duckdb-node-blocking.d.ts",require:"./dist/duckdb-node-blocking.cjs",import:"./dist/duckdb-node-blocking.cjs"},types:"./dist/duckdb-browser-blocking.d.ts",import:"./dist/duckdb-browser-blocking.mjs",require:"./dist/duckdb-browser-blocking.cjs"},".":{browser:{types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"},node:{types:"./dist/duckdb-node.d.ts",import:"./dist/duckdb-node.cjs",require:"./dist/duckdb-node.cjs"},types:"./dist/duckdb-browser.d.ts",import:"./dist/duckdb-browser.mjs",require:"./dist/duckdb-browser.cjs"}}},we=he.name,Ee=he.version,pe=he.version.split("."),ge=(pe[0],pe[1],pe[2],()=>typeof navigator>"u"),ye=null,ve=null,Re=null,Te=null,ke=null;async function Ne(){return null==ye&&(ye=typeof BigInt64Array<"u"),null==ve&&(ve=await(async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,8,1,6,0,6,64,25,11,11])))()),null==Re&&(Re=await(async e=>{try{return typeof MessageChannel<"u"&&(new MessageChannel).port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(e)}catch(e){return!1}})(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]))),null==Te&&(Te=await(async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11])))()),null==ke&&(ke=await(async()=>WebAssembly.validate(new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,3,1,0,1,10,14,1,12,0,65,0,65,0,65,0,252,10,0,0,11])))()),{bigInt64Array:ye,crossOriginIsolated:ge()||globalThis.crossOriginIsolated||!1,wasmExceptions:ve,wasmSIMD:Te,wasmThreads:Re,wasmBulkMemory:ke}}async function Se(e){let t=await Ne();if(t.wasmExceptions){if(t.wasmSIMD&&t.wasmThreads&&t.crossOriginIsolated&&e.coi)return{mainModule:e.coi.mainModule,mainWorker:e.coi.mainWorker,pthreadWorker:e.coi.pthreadWorker};if(e.eh)return{mainModule:e.eh.mainModule,mainWorker:e.eh.mainWorker,pthreadWorker:null}}return{mainModule:e.mvp.mainModule,mainWorker:e.mvp.mainWorker,pthreadWorker:null}}((e,t,n)=>{n=null!=e?Z(te(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of ee(t))!ne.call(e,n)&&undefined!==n&&$(e,n,{get:()=>t[n],enumerable:!(r=X(t,n))||r.enumerable})})(e&&e.__esModule?n:$(n,"default",{value:e,enumerable:!0}),e)})(re()),new TextDecoder;var Ie,Ae=(e=>(e[e.BUFFER=0]="BUFFER",e[e.NODE_FS=1]="NODE_FS",e[e.BROWSER_FILEREADER=2]="BROWSER_FILEREADER",e[e.BROWSER_FSACCESS=3]="BROWSER_FSACCESS",e[e.HTTP=4]="HTTP",e[e.S3=5]="S3",e))(Ae||{}),Fe=n(7289),Oe=n(8440),Ce=n(3678),Le=n(9358),Pe={name:"@duckdb/duckdb-wasm-shell",version:"1.20.1-dev34.0",description:"",author:"Andre Kohn ",license:"MIT",repository:{type:"git",url:"https://github.com/duckdb/duckdb-wasm.git"},keywords:["sql","duckdb","relational","database","data","query","wasm","analytics","olap","arrow","parquet","json","csv"],dependencies:{"@duckdb/duckdb-wasm":"^1.20.1-dev34.0",xterm:"^5.1.0","xterm-addon-fit":"^0.7.0","xterm-addon-web-links":"^0.8.0","xterm-addon-webgl":"^0.14.0"},devDependencies:{esbuild:"^0.15.12",eslint:"^8.29.0","eslint-plugin-jasmine":"^4.1.3","eslint-plugin-react":"^7.31.10",jasmine:"^4.5.0","jasmine-core":"^4.3.0","jasmine-spec-reporter":"^7.0.0","make-dir":"^3.1.0",prettier:"^2.8.1",rimraf:"^3.0.2","wasm-pack":"^0.10.3"},scripts:{"install:wasmpack":"node ../../node_modules/wasm-pack/install.js","build:debug":"node bundle.mjs debug && tsc --emitDeclarationOnly","build:release":"node bundle.mjs release && tsc --emitDeclarationOnly",lint:"eslint src"},files:["dist","!dist/types/test"],main:"dist/shell.cjs",module:"dist/shell.mjs",types:"dist/shell.d.ts",jsdelivr:"dist/shell.cjs",unpkg:"dist/shell.mjs",sideEffects:!1,exports:{"./dist/shell_bg.wasm":"./dist/shell_bg.wasm","./dist/shell.js":"./dist/shell.js","./dist/shell.cjs":"./dist/shell.cjs","./dist/shell.mjs":"./dist/shell.mjs","./dist/shell":"./dist/shell.mjs",".":{types:"./dist/shell.d.ts",import:"./dist/shell.mjs",require:"./dist/shell.cjs"}}},De=(Pe.name,Pe.version,Pe.version.split(".")),Ue=(De[0],De[1],De[2],new Array(32).fill(void 0));function xe(e){return Ue[e]}Ue.push(void 0,null,!0,!1);var je=Ue.length;function Me(e){const t=xe(e);return function(e){e<36||(Ue[e]=je,je=e)}(e),t}function We(e){je===Ue.length&&Ue.push(Ue.length+1);const t=je;return je=Ue[t],Ue[t]=e,t}var Ge=0,Be=null;function qe(){return null!==Be&&Be.buffer===Ie.memory.buffer||(Be=new Uint8Array(Ie.memory.buffer)),Be}var Qe=new TextEncoder("utf-8"),Ye="function"==typeof Qe.encodeInto?function(e,t){return Qe.encodeInto(e,t)}:function(e,t){const n=Qe.encode(e);return t.set(n),{read:e.length,written:n.length}};function He(e,t,n){if(void 0===n){const n=Qe.encode(e),r=t(n.length);return qe().subarray(r,r+n.length).set(n),Ge=n.length,r}let r=e.length,a=t(r);const s=qe();let i=0;for(;i127)break;s[a+i]=t}if(i!==r){0!==i&&(e=e.slice(i)),a=n(a,r,r=i+3*e.length);const t=qe().subarray(a+i,a+r);i+=Ye(e,t).written}return Ge=i,a}var Ke=null;function Ve(){return null!==Ke&&Ke.buffer===Ie.memory.buffer||(Ke=new Int32Array(Ie.memory.buffer)),Ke}function ze(e){return null==e}var Je=null;function Ze(e){const t=typeof e;if("number"==t||"boolean"==t||null==e)return`${e}`;if("string"==t)return`"${e}"`;if("symbol"==t){const t=e.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==t){const t=e.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(e)){const t=e.length;let n="[";t>0&&(n+=Ze(e[0]));for(let r=1;r1))return toString.call(e);if(r=n[1],"Object"==r)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:r}var $e=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});function Xe(e,t){return $e.decode(qe().subarray(e,e+t))}function et(e,t,n,r){const a={a:e,b:t,cnt:1,dtor:n},s=(...e)=>{a.cnt++;const t=a.a;a.a=0;try{return r(t,a.b,...e)}finally{0==--a.cnt?Ie.__wbindgen_export_2.get(a.dtor)(t,a.b):a.a=t}};return s.original=a,s}function tt(e,t,n){return 0!==Ie._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8627dd023b7400b7(e,t,We(n))}function nt(e,t,n){Ie._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hf2903fa6d7a2fc12(e,t,We(n))}function rt(e,t){try{return e.apply(this,t)}catch(e){Ie.__wbindgen_exn_store(We(e))}}function at(e){var t=He(e,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),n=Ge;Ie.write(t,n)}function st(e){var t=He(e,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),n=Ge;Ie.writeln(t,n)}$e.decode();var it=32;var ot=null;Object.freeze({FileInput:0,0:"FileInput"}),Object.freeze({Width0:0,0:"Width0",Width1:1,1:"Width1",Width2:2,2:"Width2"});var lt=class{static __wrap(e){const t=Object.create(lt.prototype);return t.ptr=e,t}__destroy_into_raw(){const e=this.ptr;return this.ptr=0,e}free(){const e=this.__destroy_into_raw();Ie.__wbg_duckdbconfig_free(e)}get path(){try{const n=Ie.__wbindgen_add_to_stack_pointer(-16);Ie.duckdbconfig_path(n,this.ptr);var e=Ve()[n/4+0],t=Ve()[n/4+1];let r;return 0!==e&&(r=Xe(e,t).slice(),Ie.__wbindgen_free(e,1*t)),r}finally{Ie.__wbindgen_add_to_stack_pointer(16)}}set path(e){var t=ze(e)?0:He(e,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),n=Ge;Ie.duckdbconfig_set_path(this.ptr,t,n)}},ct=async function e(t){void 0===t&&(t=new URL(n(7991),n.b));const r={wbg:{}};r.wbg.__wbg_setallowProposedApi_cfb269e8e3377640=function(e,t){xe(e).allowProposedApi=0!==t},r.wbg.__wbg_setcursorBlink_a86479d2e1c79045=function(e,t){xe(e).cursorBlink=0!==t},r.wbg.__wbg_setcursorWidth_33b9ca879009416e=function(e,t){xe(e).cursorWidth=t>>>0},r.wbg.__wbg_setdrawBoldTextInBrightColors_fd29f92ff197d87d=function(e,t){xe(e).drawBoldTextInBrightColors=0!==t},r.wbg.__wbg_setfontSize_2390052bdfa0951f=function(e,t){xe(e).fontSize=t>>>0},r.wbg.__wbg_setfontFamily_a76723a99b3e1c44=function(e,t,n){xe(e).fontFamily=Xe(t,n)},r.wbg.__wbg_setrightClickSelectsWord_b360a1259d32073b=function(e,t){xe(e).rightClickSelectsWord=0!==t},r.wbg.__wbg_setrows_869f76d0b575783a=function(e,t){xe(e).rows=t>>>0},r.wbg.__wbg_settheme_8e79c01462f90cdf=function(e,t){xe(e).theme=xe(t)},r.wbg.__wbg_setforeground_edd982f95949c129=function(e,t,n){xe(e).foreground=Xe(t,n)},r.wbg.__wbg_setbackground_24012fa04dc675fc=function(e,t,n){xe(e).background=Xe(t,n)},r.wbg.__wbg_setbrightYellow_862f40b15257431a=function(e,t,n){xe(e).brightYellow=Xe(t,n)},r.wbg.__wbg_construct_9d9938ba79ea4475=function(e){return We(new Fe.Terminal(xe(e)))},r.wbg.__wbg_cols_f4f2fd6e0933a109=function(e){return xe(e).cols},r.wbg.__wbg_focus_5fff41e8198ad0b4=function(e){xe(e).focus()},r.wbg.__wbg_open_c7703947d6302f6c=function(e,t){xe(e).open(Me(t))},r.wbg.__wbg_attachCustomKeyEventHandler_9c38a062a62eddd5=function(e,t){xe(e).attachCustomKeyEventHandler(xe(t))},r.wbg.__wbg_write_167ebfb900d36862=function(e,t,n){xe(e).write(Xe(t,n))},r.wbg.__wbg_loadAddon_0d8374e2ad409924=function(e,t){xe(e).loadAddon(Me(t))},r.wbg.__wbindgen_object_drop_ref=function(e){Me(e)},r.wbg.__wbg_connectInternal_2a301658fb915262=function(){return rt((function(e){return We(xe(e).connectInternal())}),arguments)},r.wbg.__wbg_runQuery_73797dc478f1bce2=function(){return rt((function(e,t,n,r){return We(xe(e).runQuery(t>>>0,Xe(n,r)))}),arguments)},r.wbg.__wbg_readClipboardText_cdb76d02b35ab9d4=function(){return rt((function(e){return We(xe(e).readClipboardText())}),arguments)},r.wbg.__wbg_disconnect_503fc005d621c8c7=function(){return rt((function(e,t){return We(xe(e).disconnect(t>>>0))}),arguments)},r.wbg.__wbg_getFeatureFlags_3fbe38b898027f8e=function(){return rt((function(e){return We(xe(e).getFeatureFlags())}),arguments)},r.wbg.__wbg_pushInputToHistory_be6169df38305347=function(){return rt((function(e,t,n){return We(xe(e).pushInputToHistory(Xe(t,n)))}),arguments)},r.wbg.__wbg_tokenize_17d3fb98b81f8e3b=function(){return rt((function(e,t,n){return We(xe(e).tokenize(Xe(t,n)))}),arguments)},r.wbg.__wbg_getVersion_498e84d9ed3a6710=function(){return rt((function(e){return We(xe(e).getVersion())}),arguments)},r.wbg.__wbg_exportFileStatistics_047e5ff39e3cd97e=function(){return rt((function(e,t,n){return We(xe(e).exportFileStatistics(Xe(t,n)))}),arguments)},r.wbg.__wbg_collectFileStatistics_d5bb7163392f63a7=function(){return rt((function(e,t,n,r){return We(xe(e).collectFileStatistics(Xe(t,n),0!==r))}),arguments)},r.wbg.__wbg_getPlatformFeatures_c95d7aa09758c47e=function(){return rt((function(){return We(Ne())}),arguments)},r.wbg.__wbg_bigInt64Array_c5434225e36e999d=function(e){return xe(e).bigInt64Array},r.wbg.__wbg_crossOriginIsolated_8ef3a49137dfb764=function(e){return xe(e).crossOriginIsolated},r.wbg.__wbg_wasmThreads_ee9dc3f62d002e58=function(e){return xe(e).wasmThreads},r.wbg.__wbg_wasmSIMD_65312a153e3a0ea1=function(e){return xe(e).wasmSIMD},r.wbg.__wbg_wasmBulkMemory_42658b625c12cf27=function(e){return xe(e).wasmBulkMemory},r.wbg.__wbg_wasmExceptions_fd3690b4fcea2b6c=function(e){return xe(e).wasmExceptions},r.wbg.__wbg_open_1c24085b4339ac18=function(){return rt((function(e,t){return We(xe(e).open(lt.__wrap(t)))}),arguments)},r.wbg.__wbg_copyFileToBuffer_e4a7050307f57c30=function(){return rt((function(e,t,n){return We(xe(e).copyFileToBuffer(Xe(t,n)))}),arguments)},r.wbg.__wbg_dropFiles_4d857401e3dd75ab=function(){return rt((function(e){return We(xe(e).dropFiles())}),arguments)},r.wbg.__wbg_dropFile_78cc44051c1ddec2=function(){return rt((function(e,t,n){return We(xe(e).dropFile(Xe(t,n)))}),arguments)},r.wbg.__wbg_globFiles_7af26f0d3bb9c2f6=function(){return rt((function(e,t,n){return We(xe(e).globFiles(Xe(t,n)))}),arguments)},r.wbg.__wbg_pickFiles_0773778daac97095=function(){return rt((function(e){return We(xe(e).pickFiles())}),arguments)},r.wbg.__wbg_downloadFile_223fed31724de5a9=function(){return rt((function(e,t,n,r){return We(xe(e).downloadFile(Xe(t,n),Me(r)))}),arguments)},r.wbg.__wbg_backgroundColor_13124d7a2f6922da=function(e,t){var n=He(xe(t).backgroundColor,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),r=Ge;Ve()[e/4+1]=r,Ve()[e/4+0]=n},r.wbg.__wbg_fontFamily_bf454fed644c371e=function(e,t){var n=He(xe(t).fontFamily,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),r=Ge;Ve()[e/4+1]=r,Ve()[e/4+0]=n},r.wbg.__wbg_withWebGL_23ecf5d40e6afbed=function(e){return xe(e).withWebGL},r.wbg.__wbindgen_object_clone_ref=function(e){return We(xe(e))},r.wbg.__wbg_new_58c6288db0a82870=function(e){return We(new Le.WebglAddon(16777215===e?void 0:0!==e))},r.wbg.__wbg_instanceof_WebglAddon_c39f68697a31af73=function(e){return xe(e)instanceof Le.WebglAddon},r.wbg.__wbg_new_6bf4fb65423e34f9=function(e,t,n){return We(new Ce.WebLinksAddon(xe(e),xe(t),16777215===n?void 0:0!==n))},r.wbg.__wbg_new_670d6f7b0bfae3ee=function(){return We(new Oe.FitAddon)},r.wbg.__wbg_instanceof_WebLinksAddon_fbcf4efb54881c53=function(e){return xe(e)instanceof Ce.WebLinksAddon},r.wbg.__wbg_fit_fea2302f520fa7cc=function(e){xe(e).fit()},r.wbg.__wbindgen_json_serialize=function(e,t){const n=xe(t);var r=He(JSON.stringify(void 0===n?null:n),Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),a=Ge;Ve()[e/4+1]=a,Ve()[e/4+0]=r},r.wbg.__wbg_static_accessor_PACKAGE_NAME_da91149963a32187=function(e){var t=He(we,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),n=Ge;Ve()[e/4+1]=n,Ve()[e/4+0]=t},r.wbg.__wbg_static_accessor_PACKAGE_VERSION_8aa2f518d9081bf5=function(e){var t=He(Ee,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),n=Ge;Ve()[e/4+1]=n,Ve()[e/4+0]=t},r.wbg.__wbindgen_cb_drop=function(e){const t=Me(e).original;return 1==t.cnt--&&(t.a=0,!0)},r.wbg.__wbg_log_39e5c6dfbf35ce2a=function(e,t){console.log(Xe(e,t))},r.wbg.__wbg_error_e42d6a50bd4cd544=function(e,t){console.error(Xe(e,t))},r.wbg.__wbg_warn_8c6115cb2bc8bed9=function(e,t){console.warn(Xe(e,t))},r.wbg.__wbg_offsets_b3b1bdd37d9a4f30=function(e,t){var n=function(e,t){const n=t(4*e.length);return(null!==ot&&ot.buffer===Ie.memory.buffer||(ot=new Uint32Array(Ie.memory.buffer)),ot).set(e,n/4),Ge=e.length,n}(xe(t).offsets,Ie.__wbindgen_malloc),r=Ge;Ve()[e/4+1]=r,Ve()[e/4+0]=n},r.wbg.__wbg_types_cc4d77772fac0646=function(e,t){var n=function(e,t){const n=t(1*e.length);return qe().set(e,n/1),Ge=e.length,n}(xe(t).types,Ie.__wbindgen_malloc),r=Ge;Ve()[e/4+1]=r,Ve()[e/4+0]=n},r.wbg.__wbg_blockStats_b4d97ec10e70983d=function(e){return We(xe(e).blockStats)},r.wbg.__wbg_totalFileWrites_bbaee851a41a14ff=function(e){return We(xe(e).totalFileWrites)},r.wbg.__wbg_totalFileReadsAhead_ddd1fa3f99bbb6b5=function(e){return We(xe(e).totalFileReadsAhead)},r.wbg.__wbg_totalFileReadsCold_1db94cbad8a68e51=function(e){return We(xe(e).totalFileReadsCold)},r.wbg.__wbg_totalFileReadsCached_47f56ad6f5eea3e2=function(e){return We(xe(e).totalFileReadsCached)},r.wbg.__wbg_totalPageAccesses_872b05c6d29a292d=function(e){return We(xe(e).totalPageAccesses)},r.wbg.__wbg_totalPageLoads_f735ffd254650c2a=function(e){return We(xe(e).totalPageLoads)},r.wbg.__wbg_blockSize_672ac525e53ba36d=function(e){return We(xe(e).blockSize)},r.wbg.__wbg_new_59cb74e423758ede=function(){return We(new Error)},r.wbg.__wbg_stack_558ba5917b466edd=function(e,t){var n=He(xe(t).stack,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),r=Ge;Ve()[e/4+1]=r,Ve()[e/4+0]=n},r.wbg.__wbg_error_4bb6c2a97407129a=function(e,t){try{console.error(Xe(e,t))}finally{Ie.__wbindgen_free(e,t)}},r.wbg.__wbg_instanceof_Window_11e25482011fc506=function(e){return xe(e)instanceof Window},r.wbg.__wbg_performance_9d1ecf711183e1d5=function(e){var t=xe(e).performance;return ze(t)?0:We(t)},r.wbg.__wbg_now_44a034aa2e1d73dd=function(e){return xe(e).now()},r.wbg.__wbg_type_55a19f61b3198ce6=function(e,t){var n=He(xe(t).type,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),r=Ge;Ve()[e/4+1]=r,Ve()[e/4+0]=n},r.wbg.__wbg_ctrlKey_8fa508d0b540bc8f=function(e){return xe(e).ctrlKey},r.wbg.__wbg_metaKey_d60075e40f8f06d7=function(e){return xe(e).metaKey},r.wbg.__wbg_key_6827d862c9cc3928=function(e,t){var n=He(xe(t).key,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),r=Ge;Ve()[e/4+1]=r,Ve()[e/4+0]=n},r.wbg.__wbg_get_b7bbf50adcc94294=function(e,t){return We(xe(e)[t>>>0])},r.wbg.__wbg_length_555f836564bf148d=function(e){return xe(e).length},r.wbg.__wbg_call_ba36642bd901572b=function(){return rt((function(e,t){return We(xe(e).call(xe(t)))}),arguments)},r.wbg.__wbg_self_bb69a836a72ec6e9=function(){return rt((function(){return We(self.self)}),arguments)},r.wbg.__wbg_window_3304fc4b414c9693=function(){return rt((function(){return We(window.window)}),arguments)},r.wbg.__wbg_globalThis_e0d21cabc6630763=function(){return rt((function(){return We(globalThis.globalThis)}),arguments)},r.wbg.__wbg_global_8463719227271676=function(){return rt((function(){return We(global.global)}),arguments)},r.wbg.__wbindgen_is_undefined=function(e){return void 0===xe(e)},r.wbg.__wbg_newnoargs_9fdd8f3961dd1bee=function(e,t){return We(new Function(Xe(e,t)))},r.wbg.__wbg_new_3e1ee746fe308c9f=function(e,t){return We(new Error(Xe(e,t)))},r.wbg.__wbg_message_e440fbd911a845a2=function(e){return We(xe(e).message)},r.wbg.__wbg_toString_e5b96b15120ff6d4=function(e){return We(xe(e).toString())},r.wbg.__wbg_call_3fc07b7d5fc9022d=function(){return rt((function(e,t,n){return We(xe(e).call(xe(t),xe(n)))}),arguments)},r.wbg.__wbg_new_edbe38a4e21329dd=function(){return We(new Object)},r.wbg.__wbg_new_c143a4f563f78c4e=function(e,t){try{var n={a:e,b:t},r=new Promise(((e,t)=>{const r=n.a;n.a=0;try{return function(e,t,n,r){Ie.wasm_bindgen__convert__closures__invoke2_mut__h477457f3753e6248(e,t,We(n),We(r))}(r,n.b,e,t)}finally{n.a=r}}));return We(r)}finally{n.a=n.b=0}},r.wbg.__wbg_resolve_cae3d8f752f5db88=function(e){return We(Promise.resolve(xe(e)))},r.wbg.__wbg_then_c2361a9d5c9a4fcb=function(e,t){return We(xe(e).then(xe(t)))},r.wbg.__wbg_then_6c9a4bf55755f9b8=function(e,t,n){return We(xe(e).then(xe(t),xe(n)))},r.wbg.__wbg_buffer_9e184d6f785de5ed=function(e){return We(xe(e).buffer)},r.wbg.__wbg_length_2d56cb37075fcfb1=function(e){return xe(e).length},r.wbg.__wbg_new_e8101319e4cf95fc=function(e){return We(new Uint8Array(xe(e)))},r.wbg.__wbg_set_e8ae7b27314e8b98=function(e,t,n){xe(e).set(xe(t),n>>>0)},r.wbg.__wbindgen_number_get=function(e,t){const n=xe(t);var r="number"==typeof n?n:void 0;(null!==Je&&Je.buffer===Ie.memory.buffer||(Je=new Float64Array(Ie.memory.buffer)),Je)[e/8+1]=ze(r)?0:r,Ve()[e/4+0]=!ze(r)},r.wbg.__wbindgen_string_get=function(e,t){const n=xe(t);var r="string"==typeof n?n:void 0,a=ze(r)?0:He(r,Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),s=Ge;Ve()[e/4+1]=s,Ve()[e/4+0]=a},r.wbg.__wbindgen_debug_string=function(e,t){var n=He(Ze(xe(t)),Ie.__wbindgen_malloc,Ie.__wbindgen_realloc),r=Ge;Ve()[e/4+1]=r,Ve()[e/4+0]=n},r.wbg.__wbindgen_throw=function(e,t){throw new Error(Xe(e,t))},r.wbg.__wbindgen_rethrow=function(e){throw Me(e)},r.wbg.__wbindgen_memory=function(){return We(Ie.memory)},r.wbg.__wbindgen_closure_wrapper649=function(e,t,n){return We(et(e,t,130,tt))},r.wbg.__wbindgen_closure_wrapper976=function(e,t,n){return We(et(e,t,155,nt))},("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));const{instance:a,module:s}=await async function(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if("application/wasm"==e.headers.get("Content-Type"))throw t;console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t)}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}(await t,r);return Ie=a.exports,e.__wbindgen_wasm_module=s,Ie.__wbindgen_start(),Ie},ut="DUCKDB_WASM_SHELL_HISTORY",dt="LOG_INFO",_t="LOG_ENTRIES";var bt=()=>{if(/^((?!chrome|android).)*safari/i.test(ge()?"node":navigator.userAgent))return!1;const e=document.createElement("canvas"),t="probablySupportsContext"in e?"probablySupportsContext":"supportsContext";return t in e?e[t]("webgl2"):"WebGL2RenderingContext"in window};async function mt(e){var t,n;await ct(e.shellModule);const r=new class{constructor(e){this.container=e,this.database=null,this.history=new class{constructor(){this._idbFactory=window.indexedDB,this._idb=null,this._nextEntryKey=0,this._entryCount=0}async load(){if(0==this._entryCount)return[[],0];const e=this._idb.transaction([_t,dt],"readwrite").objectStore(_t).openCursor();return await new Promise(((t,n)=>{const r=[];e.onsuccess=e=>{const n=e.target;null!=n.result?(r.push(n.result.value.input),n.result.continue()):t([r,this._nextEntryKey])},e.onerror=n}))}async open(){this._idb=await new Promise(((e,t)=>{const n=this._idbFactory.open(ut,4);n.onupgradeneeded=n=>{const r=n.target,a=r.result,s=r.transaction;this.createSchema(a),s.oncomplete=()=>e(a),s.onerror=e=>t(e)},n.onsuccess=t=>{const r=n.result;e(r)},n.onerror=e=>t(e)})),await this.loadMetadata()}async loadMetadata(){const e=await new Promise(((e,t)=>{const n=this._idb.transaction([dt]).objectStore(dt).get(0);n.onsuccess=t=>e(t.target.result||null),n.onerror=t=>{console.warn(t),e(null)}}));this._nextEntryKey=(null==e?void 0:e.nextEntryKey)||0,this._entryCount=(null==e?void 0:e.entryCount)||0}createSchema(e){e.objectStoreNames.contains(dt)&&e.deleteObjectStore(dt),e.objectStoreNames.contains(_t)&&e.deleteObjectStore(_t),e.createObjectStore(dt,{keyPath:"key"}),e.createObjectStore(_t,{keyPath:"key"})}async reset(){var e;null==(e=this._idb)||e.close(),this._idb=null,this._idbFactory.deleteDatabase(ut),await this.open()}async push(e){const t=1023&this._nextEntryKey++;this._entryCount=Math.min(this._entryCount+1,1024);const n=this._idb.transaction([_t,dt],"readwrite"),r=n.objectStore(dt),a=n.objectStore(_t);await Promise.all([new Promise(((n,r)=>{const s=a.put({key:t,when:new Date,input:e});s.onsuccess=n,s.onerror=r})),new Promise(((e,t)=>{const n=r.put({key:0,nextEntryKey:this._nextEntryKey,entryCount:this._entryCount});n.onsuccess=e,n.onerror=t}))])}},this.resizeHandler=t=>{const n=e.getBoundingClientRect();var r,a;r=n.width,a=n.height,Ie.resize(r,a)}}async pickFiles(){return null==this.database?(console.warn("database is not initialized"),0):await async function(e){return await function(e){return new Promise(((t,n)=>{const r=document.createElement("input");r.type="file";let a=!1;const s=async()=>{console.log(r.files),a=!0;const n=r.files;for(let t=0;t{window.removeEventListener("focus",i),a||(await new Promise((e=>setTimeout(e,1e3))),a||await s())};r.onchange=async function(){window.removeEventListener("focus",i),await s()},r.onclick=async function(){window.addEventListener("focus",i)},r.click()}))}(e)}(this.database)}async downloadFile(e,t){const n=new Blob([t]),r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=e,r.click()}async readClipboardText(){return await navigator.clipboard.readText()}async writeClipboardText(e){return await navigator.clipboard.writeText(e)}async pushInputToHistory(e){this.history.push(e)}}(e.container);!function(e,t,n){Ie.embed(We(e),We(t),We(n))}(e.container,r,{fontFamily:null!=(t=e.fontFamily)?t:"monospace",backgroundColor:null!=(n=e.backgroundColor)?n:"#333",withWebGL:bt()}),e.container.onresize=r.resizeHandler,st("[ RUN ] Instantiating DuckDB"),r.database=await e.resolveDatabase((e=>{if(e.bytesTotal>0){const t=Math.floor(e.bytesLoaded/e.bytesTotal*10);at(`\r[ RUN ] Loading ${"#".repeat(t)}${"-".repeat(10-t)}`)}else at(`\r[ RUN ] Loading ${function(e){const[t,n,r]=[1e3,"k","B"],a=Math.log(e)/Math.log(t)|0,s=Number((e/Math.pow(t,a)).toFixed(2));return`${s} ${a?`${n}MGTPEZY`[a-1]+r:"byte"+(1!==s?"s":"")}`}(e.bytesLoaded)}`)})),st("\r[ OK ] Instantiating DuckDB");const a=async(e,t)=>{st(`[ RUN ] ${e}`),await t(),st(`[ OK ] ${e}`)};await a("Loading Shell History",(async()=>{await r.history.open();const[e,t]=await r.history.load();!function(e,t){try{Ie.loadHistory(function(e){if(1==it)throw new Error("out of js stack");return Ue[--it]=e,it}(e),t)}finally{Ue[it++]=void 0}}(e,t)})),await a("Attaching Shell",(async()=>{var e;e=r.database,Me(Ie.configureDatabase(We(e)))}))}var ft,ht=n(7623);!function(e){e[e.NONE=0]="NONE",e[e.RUNNING=1]="RUNNING",e[e.FAILED=2]="FAILED",e[e.COMPLETED=3]="COMPLETED"}(ft||(ft={}));var wt=function(){function e(e,t,n,r){this.status=e||ft.NONE,this.value=t||null,this.error=n||null,this.progress=r||null}return e.prototype.resolving=function(){return this.status!=ft.NONE},e.prototype.completeWith=function(t,n){return void 0===n&&(n=null),new e(ft.COMPLETED,t,this.error,n)},e.prototype.failWith=function(t,n){return void 0===n&&(n=null),new e(ft.FAILED,this.value,t,n)},e.prototype.updateRunning=function(t){return void 0===t&&(t=null),new e(ft.RUNNING,this.value,this.error,t)},e}(),Et=function(e,t,n,r){return new(n||(n=Promise))((function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,o)}l((r=r.apply(e,t||[])).next())}))},pt=function(e,t){var n,r,a,s,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i},Ft=r.createContext(ht.D5()),Ot=r.createContext(null),Ct=n(5082),Lt=n.n(Ct);var Pt=n(7991),Dt="Roboto Mono",Ut=n(9857),xt=n(3557);const jt={container:"MgE8UmO_jho2r_HikcFG",navbar:"Ik38kjC8InfXiyMIklkB",tabs:"bm9W3OhPnGkKhLwJ516g",logo:"Pr00W8Wp3LmJVbOJUr0W",tabNavbar:"iJCjJPuh9KQo8iwCNd16",tab:"yzjBuH6YN7NFao36gSMl",tabButton:"SCfU8XvxNRkZroE_3kvE",tabTextIcon:"UI3cWVGIxV4XnPJcJcDQ",active:"YnI4T386XnxghA5ap8dg"},Mt=n.p+"static/img/shell.44adb131819504541d01.svg",Wt=n.p+"static/img/book.cee8d5e89b78252361aa.svg";var Gt=function(e){var t;return r.createElement("div",{key:e.route,className:c()(jt.tab,(t={},t[jt.active]=e.location==e.route,t))},e.external?r.createElement("a",{href:e.route,target:"blank"},r.createElement("div",{className:jt.tabButton},e.text?r.createElement("div",{className:jt.tabTextIcon},e.text):r.createElement("svg",{className:jt.tabIcon,width:"18px",height:"18px"},r.createElement("use",{xlinkHref:"".concat(e.icon,"#sym")})))):r.createElement(Ut.rU,{to:e.route},r.createElement("div",{className:jt.tabButton},e.text?r.createElement("div",{className:jt.tabTextIcon},e.text):r.createElement("svg",{className:jt.tabIcon,width:"18px",height:"18px"},r.createElement("use",{xlinkHref:"".concat(e.icon,"#sym")})))))},Bt=function(e){var t=(0,xt.TH)();return r.createElement("div",{className:jt.navbar},r.createElement("div",{className:jt.logo},r.createElement("img",{src:"https://cdn.jsdelivr.net/npm/@duckdb/duckdb-wasm@1.14.3/dist/img/duckdb.svg"})),r.createElement("div",{className:jt.tabs},r.createElement(Gt,{route:"/",location:t.pathname,icon:Mt}),r.createElement(Gt,{route:"docs/modules/index.html",location:t.pathname,icon:Wt,external:!0})))},qt=function(e){return"true"===(function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}((0,Ut.lr)(),1)[0].get("fullscreen")||"")?r.createElement(r.Fragment,null,"props.children"):r.createElement("div",{className:jt.container},r.createElement(Bt,null),r.createElement("div",{className:jt.page},e.children))};n(5098);const Qt=n.p+"static/wasm/duckdb-mvp.1e18f265fe6149189da6.wasm",Yt=n.p+"static/wasm/duckdb-eh.ac9ddbd15c69c59cdb2b.wasm",Ht=n.p+"static/wasm/duckdb-coi.156e78097f1cbfefcd4c.wasm";var Kt,Vt={mvp:{mainModule:Qt,mainWorker:new URL(n(7379),n.b).toString()},eh:{mainModule:Yt,mainWorker:new URL(n(779),n.b).toString()},coi:{mainModule:Ht,mainWorker:new URL(n(3664),n.b).toString(),pthreadWorker:new URL(n(6918),n.b).toString()}},zt=new class{constructor(e=2){this.level=e}log(e){e.level>=this.level&&console.log(e)}}(ae.WARNING),Jt=((null===(Kt=null===window||void 0===window?void 0:window.location)||void 0===Kt?void 0:Kt.pathname)||"").match(/(.*)(\/versus|\/docs\/.*|\/)$/),Zt="/";null!=Jt&&Jt.length>=2&&(Zt=Jt[1]);var $t=document.getElementById("root");(0,a.s)($t).render(r.createElement((function(e){var t=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}(r.useState(new wt),2),n=t[0],a=t[1],s=r.useRef(null),i=r.useCallback((function(){return Et(void 0,void 0,void 0,(function(){return pt(this,(function(t){switch(t.label){case 0:return n.error?[2,null]:n.value?[2,n.value]:s.current?[4,s.current]:[3,2];case 1:case 3:return[2,t.sent()];case 2:return s.current=Et(void 0,void 0,void 0,(function(){var t,n;return pt(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),a((function(e){return e.updateRunning()})),[4,Se(e.bundles)];case 1:return t=r.sent(),s.current=null,a((function(e){return e.completeWith(t)})),[2,t];case 2:return n=r.sent(),s.current=null,console.error(n),a((function(e){return e.failWith(n)})),[2,null];case 3:return[2]}}))})),[4,s.current]}}))}))}),[e.bundles]);return r.createElement(gt.Provider,{value:e.logger},r.createElement(vt.Provider,{value:i},r.createElement(yt.Provider,{value:n},e.children)))}),{logger:zt,bundles:Vt},r.createElement((function(e){var t=r.useContext(gt),n=r.useContext(vt),a=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,s=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}(r.useState(new wt),2),i=a[0],o=a[1],l=r.useRef(null);r.useEffect((function(){return function(){null!=l.current&&(l.current.terminate(),l.current=null)}}),[]);var c=r.useRef(null),u=r.useCallback((function(){return Rt(void 0,void 0,void 0,(function(){return Tt(this,(function(r){switch(r.label){case 0:return c.current?[4,c.current]:[3,2];case 1:case 3:return[2,r.sent()];case 2:return c.current=Rt(void 0,void 0,void 0,(function(){var r,a,i,l;return Tt(this,(function(c){switch(c.label){case 0:return[4,n()];case 1:if(null==(r=c.sent()))return o((function(e){return e.failWith("invalid bundle")})),[2,null];try{a=new Worker(r.mainWorker),i=new class{constructor(e,t=null){this._onInstantiationProgress=[],this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{},this._nextMessageId=0,this._pendingRequests=new Map,this._logger=e,this._onMessageHandler=this.onMessage.bind(this),this._onErrorHandler=this.onError.bind(this),this._onCloseHandler=this.onClose.bind(this),null!=t&&this.attach(t)}get logger(){return this._logger}attach(e){this._worker=e,this._worker.addEventListener("message",this._onMessageHandler),this._worker.addEventListener("error",this._onErrorHandler),this._worker.addEventListener("close",this._onCloseHandler),this._workerShutdownPromise=new Promise(((e,t)=>{this._workerShutdownResolver=e}))}detach(){!this._worker||(this._worker.removeEventListener("message",this._onMessageHandler),this._worker.removeEventListener("error",this._onErrorHandler),this._worker.removeEventListener("close",this._onCloseHandler),this._worker=null,this._workerShutdownResolver(null),this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async terminate(){!this._worker||(this._worker.terminate(),this._worker=null,this._workerShutdownPromise=null,this._workerShutdownResolver=()=>{})}async postTask(e,t=[]){if(!this._worker)return void console.error("cannot send a message since the worker is not set!");let n=this._nextMessageId++;return this._pendingRequests.set(n,e),this._worker.postMessage({messageId:n,type:e.type,data:e.data},t),await e.promise}onMessage(e){let t=e.data;switch(t.type){case"LOG":return void this._logger.log(t.data);case"INSTANTIATE_PROGRESS":for(let e of this._onInstantiationProgress)e(t.data);return}let n=this._pendingRequests.get(t.requestId);if(n){if(this._pendingRequests.delete(t.requestId),"ERROR"==t.type){let e=new Error(t.data.message);return e.name=t.data.name,e.stack=t.data.stack,void n.promiseRejecter(e)}switch(n.type){case"CLOSE_PREPARED":case"COLLECT_FILE_STATISTICS":case"COPY_FILE_TO_PATH":case"DISCONNECT":case"DROP_FILE":case"DROP_FILES":case"FLUSH_FILES":case"INSERT_ARROW_FROM_IPC_STREAM":case"IMPORT_CSV_FROM_PATH":case"IMPORT_JSON_FROM_PATH":case"OPEN":case"PING":case"REGISTER_FILE_BUFFER":case"REGISTER_FILE_HANDLE":case"REGISTER_FILE_URL":case"RESET":if("OK"==t.type)return void n.promiseResolver(t.data);break;case"INSTANTIATE":if(this._onInstantiationProgress=[],"OK"==t.type)return void n.promiseResolver(t.data);break;case"GLOB_FILE_INFOS":if("FILE_INFOS"==t.type)return void n.promiseResolver(t.data);break;case"GET_VERSION":if("VERSION_STRING"==t.type)return void n.promiseResolver(t.data);break;case"GET_FEATURE_FLAGS":if("FEATURE_FLAGS"==t.type)return void n.promiseResolver(t.data);break;case"GET_TABLE_NAMES":if("TABLE_NAMES"==t.type)return void n.promiseResolver(t.data);break;case"TOKENIZE":if("SCRIPT_TOKENS"==t.type)return void n.promiseResolver(t.data);break;case"COPY_FILE_TO_BUFFER":if("FILE_BUFFER"==t.type)return void n.promiseResolver(t.data);break;case"EXPORT_FILE_STATISTICS":if("FILE_STATISTICS"==t.type)return void n.promiseResolver(t.data);break;case"CONNECT":if("CONNECTION_INFO"==t.type)return void n.promiseResolver(t.data);break;case"RUN_PREPARED":case"RUN_QUERY":if("QUERY_RESULT"==t.type)return void n.promiseResolver(t.data);break;case"SEND_PREPARED":if("QUERY_RESULT_HEADER"==t.type)return void n.promiseResolver(t.data);break;case"START_PENDING_QUERY":case"POLL_PENDING_QUERY":if("QUERY_RESULT_HEADER_OR_NULL"==t.type)return void n.promiseResolver(t.data);break;case"CANCEL_PENDING_QUERY":if(this._onInstantiationProgress=[],"SUCCESS"==t.type)return void n.promiseResolver(t.data);break;case"FETCH_QUERY_RESULTS":if("QUERY_RESULT_CHUNK"==t.type)return void n.promiseResolver(t.data);break;case"CREATE_PREPARED":if("PREPARED_STATEMENT_ID"==t.type)return void n.promiseResolver(t.data)}n.promiseRejecter(new Error(`unexpected response type: ${t.type.toString()}`))}else console.warn(`unassociated response: [${t.requestId}, ${t.type.toString()}]`)}onError(e){console.error(e),console.error(`error in duckdb worker: ${e.message}`),this._pendingRequests.clear()}onClose(){this._workerShutdownResolver(null),0==this._pendingRequests.size?this._pendingRequests.clear():console.warn(`worker terminated with ${this._pendingRequests.size} pending requests`)}async reset(){let e=new _e("RESET",null);return await this.postTask(e)}async ping(){let e=new _e("PING",null);await this.postTask(e)}async dropFile(e){let t=new _e("DROP_FILE",e);return await this.postTask(t)}async dropFiles(){let e=new _e("DROP_FILES",null);return await this.postTask(e)}async flushFiles(){let e=new _e("FLUSH_FILES",null);return await this.postTask(e)}async instantiate(e,t=null,n=(e=>{})){this._onInstantiationProgress.push(n);let r=new _e("INSTANTIATE",[e,t]);return await this.postTask(r)}async getVersion(){let e=new _e("GET_VERSION",null);return await this.postTask(e)}async getFeatureFlags(){let e=new _e("GET_FEATURE_FLAGS",null);return await this.postTask(e)}async open(e){let t=new _e("OPEN",e);await this.postTask(t)}async tokenize(e){let t=new _e("TOKENIZE",e);return await this.postTask(t)}async connectInternal(){let e=new _e("CONNECT",null);return await this.postTask(e)}async connect(){let e=await this.connectInternal();return new class{constructor(e,t){this._bindings=e,this._conn=t}get bindings(){return this._bindings}async close(){return this._bindings.disconnect(this._conn)}useUnsafe(e){return e(this._bindings,this._conn)}async query(e){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:e});let t=await this._bindings.runQuery(this._conn,e),n=V.so.from(t);return console.assert(n.isSync()),console.assert(n.isFile()),new z.iA(n)}async send(e){this._bindings.logger.log({timestamp:new Date,level:2,origin:4,topic:4,event:4,value:e});let t=await this._bindings.startPendingQuery(this._conn,e);for(;null==t;)t=await this._bindings.pollPendingQuery(this._conn);let n=new ce(this._bindings,this._conn,t),r=await V.so.from(n);return console.assert(r.isAsync()),console.assert(r.isStream()),r}async cancelSent(){return await this._bindings.cancelPendingQuery(this._conn)}async getTableNames(e){return await this._bindings.getTableNames(this._conn,e)}async prepare(e){let t=await this._bindings.createPrepared(this._conn,e);return new class{constructor(e,t,n){this.bindings=e,this.connectionId=t,this.statementId=n}async close(){await this.bindings.closePrepared(this.connectionId,this.statementId)}async query(...e){let t=await this.bindings.runPrepared(this.connectionId,this.statementId,e),n=V.so.from(t);return console.assert(n.isSync()),console.assert(n.isFile()),new z.iA(n)}async send(...e){let t=await this.bindings.sendPrepared(this.connectionId,this.statementId,e),n=new ce(this.bindings,this.connectionId,t),r=await V.so.from(n);return console.assert(r.isAsync()),console.assert(r.isStream()),r}}(this._bindings,this._conn,t)}async insertArrowTable(e,t){let n=s.U(e,"stream");await this.insertArrowFromIPCStream(n,t)}async insertArrowFromIPCStream(e,t){await this._bindings.insertArrowFromIPCStream(this._conn,e,t)}async insertCSVFromPath(e,t){await this._bindings.insertCSVFromPath(this._conn,e,t)}async insertJSONFromPath(e,t){await this._bindings.insertJSONFromPath(this._conn,e,t)}}(this,e)}async disconnect(e){let t=new _e("DISCONNECT",e);await this.postTask(t)}async runQuery(e,t){let n=new _e("RUN_QUERY",[e,t]);return await this.postTask(n)}async startPendingQuery(e,t){let n=new _e("START_PENDING_QUERY",[e,t]);return await this.postTask(n)}async pollPendingQuery(e){let t=new _e("POLL_PENDING_QUERY",e);return await this.postTask(t)}async cancelPendingQuery(e){let t=new _e("CANCEL_PENDING_QUERY",e);return await this.postTask(t)}async fetchQueryResults(e){let t=new _e("FETCH_QUERY_RESULTS",e);return await this.postTask(t)}async getTableNames(e,t){let n=new _e("GET_TABLE_NAMES",[e,t]);return await this.postTask(n)}async createPrepared(e,t){let n=new _e("CREATE_PREPARED",[e,t]);return await this.postTask(n)}async closePrepared(e,t){let n=new _e("CLOSE_PREPARED",[e,t]);await this.postTask(n)}async runPrepared(e,t,n){let r=new _e("RUN_PREPARED",[e,t,n]);return await this.postTask(r)}async sendPrepared(e,t,n){let r=new _e("SEND_PREPARED",[e,t,n]);return await this.postTask(r)}async globFiles(e){let t=new _e("GLOB_FILE_INFOS",e);return await this.postTask(t)}async registerFileText(e,t){let n=fe.encode(t);await this.registerFileBuffer(e,n)}async registerFileURL(e,t,n,r){void 0===t&&(t=e);let a=new _e("REGISTER_FILE_URL",[e,t,n,r]);await this.postTask(a)}async registerEmptyFileBuffer(e){let t=new _e("REGISTER_FILE_BUFFER",[e,new Uint8Array]);await this.postTask(t)}async registerFileBuffer(e,t){let n=new _e("REGISTER_FILE_BUFFER",[e,t]);await this.postTask(n,[t.buffer])}async registerFileHandle(e,t,n,r){let a=new _e("REGISTER_FILE_HANDLE",[e,t,n,r]);await this.postTask(a,[])}async collectFileStatistics(e,t){let n=new _e("COLLECT_FILE_STATISTICS",[e,t]);await this.postTask(n,[])}async exportFileStatistics(e){let t=new _e("EXPORT_FILE_STATISTICS",e);return await this.postTask(t,[])}async copyFileToBuffer(e){let t=new _e("COPY_FILE_TO_BUFFER",e);return await this.postTask(t)}async copyFileToPath(e,t){let n=new _e("COPY_FILE_TO_PATH",[e,t]);await this.postTask(n)}async insertArrowFromIPCStream(e,t,n){if(0==t.length)return;let r=new _e("INSERT_ARROW_FROM_IPC_STREAM",[e,t,n]);await this.postTask(r,[t.buffer])}async insertCSVFromPath(e,t,n){if(void 0!==n.columns){let e=[];for(let t in n.columns){let r=n.columns[t];e.push(me(t,r))}n.columnsFlat=e,delete n.columns}let r=new _e("IMPORT_CSV_FROM_PATH",[e,t,n]);await this.postTask(r)}async insertJSONFromPath(e,t,n){if(void 0!==n.columns){let e=[];for(let t in n.columns){let r=n.columns[t];e.push(me(t,r))}n.columnsFlat=e,delete n.columns}let r=new _e("IMPORT_JSON_FROM_PATH",[e,t,n]);await this.postTask(r)}}(t,a)}catch(e){return o((function(t){return t.failWith(e)})),[2,null]}c.label=2;case 2:return c.trys.push([2,6,,7]),[4,i.instantiate(r.mainModule,r.pthreadWorker,(function(e){try{o((function(t){return t.updateRunning(e)}))}catch(e){console.warn("progress handler failed with error: ".concat(e.toString()))}}))];case 3:return c.sent(),void 0===e.config?[3,5]:[4,i.open(e.config)];case 4:c.sent(),c.label=5;case 5:return[3,7];case 6:return l=c.sent(),o((function(e){return e.failWith(l)})),[2,null];case 7:return o((function(e){return e.completeWith(i)})),[2,i]}}))})),[4,c.current]}}))}))}),[t]);return r.createElement(Nt.Provider,{value:u},r.createElement(kt.Provider,{value:i},e.children))}),null,r.createElement((function(e){var t=St(),n=It(),a=At(r.useState(ht.aV()),2),s=a[0],i=a[1],o=At(r.useState(ht.D5()),2),l=o[0],c=o[1],u=r.useRef(new Map),d=function(e){return function(e,t,n,r){return new(n||(n=Promise))((function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,o)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var n;return function(e,t){var n,r,a,s,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),o=a.next();!o.done;o=a.next()){var l=o.value;d(l)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}}),[t,s]),r.createElement(Ot.Provider,{value:_},r.createElement(Ft.Provider,{value:l},e.children))}),null,r.createElement(Ut.VK,{basename:Zt},r.createElement(xt.Z5,null,r.createElement(xt.AW,{index:!0,element:r.createElement(qt,null,r.createElement((function(e){var t=r.useRef(null),n=St(),a=It(),s=r.useRef(null),i=r.useRef(null);r.useEffect((function(){n.resolving()||a()}),[n]),r.useEffect((function(){console.assert(null!=t.current),function(e,t,n,r){new(n||(n=Promise))((function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,o)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var e,r;return function(e,t){var n,r,a,s,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]0)&&!(r=s.next()).done;)i.push(r.value)}catch(e){a={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}(r.useState({status:W.PENDING,benchmarkTable:null,benchmarks:null}),2),n=t[0],a=t[1];switch(n.status==W.PENDING&&(a((function(e){return G(G({},e),{status:W.INFLIGHT})})),function(e,t,n,r){new(n||(n=Promise))((function(a,s){function i(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,o)}l((r=r.apply(e,t||[])).next())}))}(void 0,void 0,void 0,(function(){var e,t;return function(e,t){var n,r,a,s,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function o(s){return function(o){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&s[0]?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!a||s[1]>a[0]&&s[1]0?"_":"").concat(_.parameters.join("_")).replace(".",""),_.systemKey="".concat(_.system).concat(_.tags.length>0?"_":"").concat(_.tags.join("_")).replace(".",""),_.key="".concat(_.benchmarkKey,"_").concat(_.systemKey),a.push(_)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return a}(t),r=function(e){var t,n,r={benchmarks:new Map,systems:new Map,entries:new Map};try{for(var a=o(e),s=a.next();!s.done;s=a.next()){var i=s.value;r.benchmarks.set(i.benchmarkKey,!0),r.systems.set(i.systemKey,!0),r.entries.set(i.key,i)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return r}(n);return console.log(r),G(G({},e),{status:W.SUCCEEDED,table:t,benchmarks:r})})),[2]}}))}))),n.status){case W.PENDING:case W.INFLIGHT:return r.createElement("div",{className:"t2uGP1uugFVJ_32ghQ0w"},r.createElement(P,{active:!0}));case W.FAILED:return r.createElement("div",{className:D},"failed");case W.SUCCEEDED:return r.createElement("div",{className:D},r.createElement("div",{className:"VaXkNqRbA7MGzHjPwtUQ"},r.createElement(i,null,r.createElement("h1",null,"DuckDB-Wasm versus X"),r.createElement("p",{className:"PylUnnbgWmNWDjg2UE3Q"},"TL;DR: Consider ",r.createElement("b",null,"DuckDB-Wasm")," for efficient SQL queries, for file formats such as JSON, CSV, Arrow, Parquet, for partial file reads (locally & remote), for shared SQL queries between client and server and for larger datasets. Consider an alternative for simple queries on <= 10k tuples or if bundle size and cold startup time are more important than query performance."),r.createElement("p",{className:j},"This page outlines advantages and disadvantages of the npm library",r.createElement("a",{className:x,target:"_blank",href:"https://www.npmjs.com/package/@duckdb/duckdb-wasm",rel:"noreferrer"},"@duckdb/duckdb-wasm"),". It compares the library with the projects",r.createElement("a",{className:x,target:"_blank",href:"https://github.com/sql-js/sql.js",rel:"noreferrer"},"sql.js"),",",r.createElement("a",{className:x,target:"_blank",href:"https://github.com/uwdata/arquero",rel:"noreferrer"},"arquero")," and",r.createElement("a",{className:x,target:"_blank",href:"https://github.com/google/lovefield",rel:"noreferrer"},"lovefield")," based on features, several microbenchmarks and the TPC-H benchmark at the scale factors 0.01, 0.1, 0.25 and 0.5. It is meant to guide you through the selection process of your next data processing library for the web. All benchmarks are measured using public GitHub Actions and are therefore affected by fluctuations. Feel free to modify and extend our benchmarks",r.createElement("a",{className:x,target:"_blank",href:"https://github.com/duckdb/duckdb-wasm/tree/master/packages/benchmarks",rel:"noreferrer"},"here"),".")),r.createElement(i,null,r.createElement("h2",{className:U},"General Features"),r.createElement("p",{className:j},"DuckDB-Wasm follows the philosophy of ",r.createElement("i",null,"bundling with batteries included")," to leverage the full potential of WebAssembly as an embedded database. DuckDB-wasm implements many features that are necessary for efficient ad-hoc analytics in the browser such as a full SQL frontend and automatic Web-Worker offloading. It also comes with a powerful virtual filesystem specifically tailored to the browser that allows for partially reading files either through HTTP range requests or the HTML 5 File APIs. Additionally, DuckDB-Wasm supports a variety of file formats out-of-the-box such as CSV, JSON, Arrow and Parquet."),r.createElement("p",{className:j},"The following table provides an overview of key features in DuckDB-Wasm:"),r.createElement(L,{className:"EGnwBGgjLTyDyi3wREEg"}),r.createElement("p",{className:j},"The broad function scope comes at the price of a larger bundle size. When using the synchronous version of DuckDB-Wasm, the database requires approximately 68 KB of compressed Javascript and a 1.8 MB compressed WebAssembly Module. Modern browsers reduce the impact of the large module sizes by instantiating WebAssembly in a streaming fashion. Browsers start compiling WebAssembly modules while downloading them which can reduce the initial startup latency but won't eliminate the bandwidth requirement with cold caches."),r.createElement("p",{className:j},"DuckDB-Wasm can therefore show its strengths in situations where this initial startup latency can be concealed. DuckDB-Wasm might not ",r.createElement("i",null,"yet")," be the right tool for you, if you're aiming for a smallest-possible duration until your website is fully interactive. Reducing this latency is still subject of ongoing research, please share your thoughts with us",r.createElement("a",{className:x,target:"_blank",href:"https://github.com/duckdb/duckdb-wasm/discussions",rel:"noreferrer"},"here"),".")),r.createElement(i,null,r.createElement("h2",{className:U},"TPC-H Benchmarks"),r.createElement("p",{className:j},"The biggest strength of DuckDB-Wasm is its capability to run complex analytical queries in the web browser or in isolated environments such as WebAssembly CDN Workers. In the past, these workloads have usually been pushed to more powerful database servers since the language Javascript is not well equipped to evaluate complex queries efficiently. Today, the WebAssembly MVP has landed in most browsers and serves as a herald for disruptive changes in this traditional client-server world. With WebAssembly, browsers are now capable to perform many tasks themselves which allows for more decentralized data processing."),r.createElement("p",{className:j},"TPC-H is a decision support benchmark that is commonly used to benchmark relational database systems. It contains 22 queries on 8 relations with a schema that can be found",r.createElement("a",{className:x,target:"_blank",href:"https://github.com/duckdb/duckdb/blob/master/tools/rest/frontend/images/tpch-schema.png",rel:"noreferrer"},"here"),". The benchmark can be resized using a single scale factor. A scale factor of 0.1 refers to approximately 100 MB of combined data. Most of the 22 queries in TPC-H go beyond simple scans or filters and introduce the additional challenge of general query optimization."),r.createElement("p",{className:j},"In the following benchmarks, we measure TPC-H queries at the scale factors 0.01, 0.1, 0.25 and 0.5. Sqljs is a WebAssembly version of SQLite and thus supports TPC-H out of the box. Lovefield only supports a custom SQL-like API but optimizes query plans internally. Yet, Lovefield does not support arithmetic operations and nested subqueries within the plan which makes it difficult to run some of the more complex TPC-H queries. Arquero only provides a DataFrame-like API without any upfront optimization. We therefore manually crafted the TPC-H queries in Arquero using the optimized plans produced by the optimizer of a relational database. We include these plans to present the interesting performance characteristics of Arquero and show that optimizing the plans by hand is usually",r.createElement("a",{className:x,target:"_blank",href:"https://github.com/duckdb/duckdb-wasm/blob/master/packages/benchmarks/src/system/arquero_benchmarks.ts",rel:"noreferrer"},"non-trivial"),"."),r.createElement(g,{className:M,data:n.benchmarks,scaleFactor:.5}),r.createElement(g,{className:M,data:n.benchmarks,scaleFactor:.25}),r.createElement(g,{className:M,data:n.benchmarks,scaleFactor:.1}),r.createElement(g,{className:M,data:n.benchmarks,scaleFactor:.01}),r.createElement("p",{className:j},"The benchmarks show that DuckDB-Wasm outperforms the competition by a factor of 10 - 100 on larger data sizes. They also show that this relative speedup shrinks on smaller scale factors. On scale factor 0.01 (10MB), all three alternatives are able to compete for a small subset of the queries. This is caused by the interface design of DuckDB-Wasm that always materializes input and output as Arrow IPC streams. If the query performs only very little work, the overhead through this serialization and copying can outweigh the increased processing efficiency.")),r.createElement(i,null,r.createElement("h2",{className:U},"Microbenchmarks"),r.createElement("p",{className:j},"TPC-H is unrealistically complex, you might say? We'd like to argue that the absence of more demanding analytical processing in the browser is rooted in the ingrained limitations of Javascript that were only lifted very recently. Nevertheless, we want to dedicate this section to a few less complex microbenchmarks that demonstrate pros and cons of the measured systems."),r.createElement("p",{className:j},"The following table lists seven microbenchmarks that were scaled at least three times. We observe consistently accross all of them that DuckDB-Wasm loses against libraries like Arquero if the data contains only 1000 rows. Tasks like adding up a single native integer array are simple enough that the overhead of the WebAssembly interaction will easily eat up any performance benefits. The situation becomes even worse in the regex microbenchmark since WebAssembly additionally has to pay for UTF-8/16 conversions. Sorting and Top-K on the other hand is an interesting case for WebAssembly since sorting fast is",r.createElement("a",{className:x,target:"_blank",href:"https://duckdb.org/2021/08/27/external-sorting.html",rel:"noreferrer"},"non-trivial"),"and arguably better implemented in C++. The last two benchmarks first filter very few integers of a small relation and then join them with either one or two additional slightly larger relations."),r.createElement(y,{className:"YrOyBisKLYQx3zFdjU6q",data:n.benchmarks}),r.createElement("p",{className:j},"These micro benchmarks show that there is also ",r.createElement("i",null,"no such thing as free lunch")," in the browser. We are paying for the increased processing efficiency in WebAssembly with a sightly less efficient evaluation on very small input. Our recommendation is therefore to use DuckDB-Wasm if you need SQL, the features or the raw speed on medium to large data sizes. Stick to existing frameworks if your dataset is very small or if your queries only contain simple scans and filters."))))}}),null))}),r.createElement(xt.AW,{path:"*",element:r.createElement(xt.Fg,{to:"/"})})))))))},7991:(e,t,n)=>{e.exports=n.p+"static/wasm/shell_bg.42004ef134994c8905b9.wasm"},6918:(e,t,n)=>{e.exports=n.p+"static/assets/duckdb-browser-coi.pthread.worker.8123a2e48a10fef4525b.js"},3664:(e,t,n)=>{e.exports=n.p+"static/assets/duckdb-browser-coi.worker.e6966bd37d2ce8c12e34.js"},779:(e,t,n)=>{e.exports=n.p+"static/assets/duckdb-browser-eh.worker.873c4b205960eb66f67d.js"},7379:(e,t,n)=>{e.exports=n.p+"static/assets/duckdb-browser-mvp.worker.2becea0c54c097de0a11.js"}}]); \ No newline at end of file diff --git a/static/js/346.e04521e6bab05a21131c.js b/static/js/346.e04521e6bab05a21131c.js deleted file mode 100644 index 38561a56c..000000000 --- a/static/js/346.e04521e6bab05a21131c.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 346.e04521e6bab05a21131c.js.LICENSE.txt */ -(self.webpackChunk_duckdb_duckdb_wasm_app=self.webpackChunk_duckdb_duckdb_wasm_app||[]).push([[346],{6060:(e,t,i)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;th,RQ:()=>A,WK:()=>I,Zn:()=>C,Zq:()=>L,aU:()=>n,cP:()=>u,fp:()=>p,kG:()=>a,lX:()=>o,pC:()=>D}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(n||(n={}));const s="popstate";function o(e){return void 0===e&&(e={}),function(e,t,i,r){void 0===r&&(r={});let{window:o=document.defaultView,v5Compat:a=!1}=r,u=o.history,f=n.Pop,p=null;function _(){f=n.Pop,p&&p({action:f,location:v.location})}let v={get action(){return f},get location(){return e(o,u)},listen(e){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(s,_),p=e,()=>{o.removeEventListener(s,_),p=null}},createHref:e=>t(o,e),encodeLocation(e){let t=d("string"==typeof e?e:h(e));return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){f=n.Push;let r=c(v.location,e,t);i&&i(r,e);let s=l(r),h=v.createHref(r);try{u.pushState(s,"",h)}catch(e){o.location.assign(h)}a&&p&&p({action:f,location:v.location})},replace:function(e,t){f=n.Replace;let r=c(v.location,e,t);i&&i(r,e);let s=l(r),o=v.createHref(r);u.replaceState(s,"",o),a&&p&&p({action:f,location:v.location})},go:e=>u.go(e)};return v}((function(e,t){let{pathname:i,search:r,hash:n}=e.location;return c("",{pathname:i,search:r,hash:n},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:h(t)}),null,e)}function a(e,t){if(!1===e||null==e)throw new Error(t)}function l(e){return{usr:e.state,key:e.key}}function c(e,t,i,n){return void 0===i&&(i=null),r({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?u(t):t,{state:i,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function h(e){let{pathname:t="/",search:i="",hash:r=""}=e;return i&&"?"!==i&&(t+="?"===i.charAt(0)?i:"?"+i),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function u(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substr(i),e=e.substr(0,i));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function d(e){let t="undefined"!=typeof window&&void 0!==window.location&&"null"!==window.location.origin?window.location.origin:window.location.href,i="string"==typeof e?e:h(e);return a(t,"No window.location.(origin|href) available to create URL for href: "+i),new URL(i,t)}var f;function p(e,t,i){void 0===i&&(i="/");let r=C(("string"==typeof t?u(t):t).pathname||"/",i);if(null==r)return null;let n=_(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every(((e,i)=>e===t[i]))?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(n);let s=null;for(let e=0;null==s&&e{let o={relativePath:void 0===s?e.path||"":s,caseSensitive:!0===e.caseSensitive,childrenIndex:n,route:e};o.relativePath.startsWith("/")&&(a(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let l=A([r,o.relativePath]),c=i.concat(o);e.children&&e.children.length>0&&(a(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+l+'".'),_(e.children,t,c,l)),(null!=e.path||e.index)&&t.push({path:l,score:y(l,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var i;if(""!==e.path&&null!=(i=e.path)&&i.includes("?"))for(let i of v(e.path))n(e,t,i);else n(e,t)})),t}function v(e){let t=e.split("/");if(0===t.length)return[];let[i,...r]=t,n=i.endsWith("?"),s=i.replace(/\?$/,"");if(0===r.length)return n?[s,""]:[s];let o=v(r.join("/")),a=[];return a.push(...o.map((e=>""===e?s:[s,e].join("/")))),n&&a.push(...o),a.map((t=>e.startsWith("/")&&""===t?"/":t))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(f||(f={}));const g=/^:\w+$/,m=e=>"*"===e;function y(e,t){let i=e.split("/"),r=i.length;return i.some(m)&&(r+=-2),t&&(r+=2),i.filter((e=>!m(e))).reduce(((e,t)=>e+(g.test(t)?3:""===t?1:10)),r)}function b(e,t){let{routesMeta:i}=e,r={},n="/",s=[];for(let e=0;e(r.push(t),"/([^\\/]+)")));return e.endsWith("*")?(r.push("*"),n+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?n+="\\/*$":""!==e&&"/"!==e&&(n+="(?:(?=\\/|$))"),[new RegExp(n,t?void 0:"i"),r]}(e.path,e.caseSensitive,e.end),n=t.match(i);if(!n)return null;let s=n[0],o=s.replace(/(.)\/+$/,"$1"),a=n.slice(1);return{params:r.reduce(((e,t,i)=>{if("*"===t){let e=a[i]||"";o=s.slice(0,s.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(i){return x(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+i+")."),e}}(a[i]||"",t),e}),{}),pathname:s,pathnameBase:o,pattern:e}}function w(e){try{return decodeURI(e)}catch(t){return x(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function C(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,r=e.charAt(i);return r&&"/"!==r?null:e.slice(i)||"/"}function x(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function E(e,t,i,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+i+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function L(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function D(e,t,i,n){let s;void 0===n&&(n=!1),"string"==typeof e?s=u(e):(s=r({},e),a(!s.pathname||!s.pathname.includes("?"),E("?","pathname","search",s)),a(!s.pathname||!s.pathname.includes("#"),E("#","pathname","hash",s)),a(!s.search||!s.search.includes("#"),E("#","search","hash",s)));let o,l=""===e||""===s.pathname,c=l?"/":s.pathname;if(n||null==c)o=i;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;s.pathname=t.join("/")}o=e>=0?t[e]:"/"}let h=function(e,t){void 0===t&&(t="/");let{pathname:i,search:r="",hash:n=""}="string"==typeof e?u(e):e,s=i?i.startsWith("/")?i:function(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?i.length>1&&i.pop():"."!==e&&i.push(e)})),i.length>1?i.join("/"):"/"}(i,t):t;return{pathname:s,search:R(r),hash:T(n)}}(s,o),d=c&&"/"!==c&&c.endsWith("/"),f=(l||"."===c)&&i.endsWith("/");return h.pathname.endsWith("/")||!d&&!f||(h.pathname+="/"),h}const A=e=>e.join("/").replace(/\/\/+/g,"/"),k=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),R=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",T=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function I(e){return e instanceof class{constructor(e,t,i,r){void 0===r&&(r=!1),this.status=e,this.statusText=t||"",this.internal=r,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}}const M=["post","put","patch","delete"],B=(new Set(M),["get",...M]);new Set(B),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement},861:(e,t,i)=>{"use strict";i.d(t,{Ib:()=>u,cZ:()=>h,dK:()=>l,XU:()=>r});const r=4,n=new Int32Array(2),s=new Float32Array(n.buffer),o=new Float64Array(n.buffer),a=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0];class l{constructor(e,t){this.low=0|e,this.high=0|t}static create(e,t){return 0==e&&0==t?l.ZERO:new l(e,t)}toFloat64(){return(this.low>>>0)+4294967296*this.high}equals(e){return this.low==e.low&&this.high==e.high}}var c;l.ZERO=new l(0,0),function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"}(c||(c={}));class h{constructor(e){this.bytes_=e,this.position_=0}static allocate(e){return new h(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return new l(this.readInt32(e),this.readInt32(e+4))}readUint64(e){return new l(this.readUint32(e),this.readUint32(e+4))}readFloat32(e){return n[0]=this.readInt32(e),s[0]}readFloat64(e){return n[a?0:1]=this.readInt32(e),n[a?1:0]=this.readInt32(e+4),o[0]}writeInt8(e,t){this.bytes_[e]=t}writeUint8(e,t){this.bytes_[e]=t}writeInt16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeUint16(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8}writeInt32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeUint32(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24}writeInt64(e,t){this.writeInt32(e,t.low),this.writeInt32(e+4,t.high)}writeUint64(e,t){this.writeUint32(e,t.low),this.writeUint32(e+4,t.high)}writeFloat32(e,t){s[0]=t,this.writeInt32(e,n[0])}writeFloat64(e,t){o[0]=t,this.writeInt32(e,n[a?0:1]),this.writeInt32(e+4,n[a?1:0])}getBufferIdentifier(){if(this.bytes_.length>10),56320+(1023&t)))}return r}__union_with_string(e,t){return"string"==typeof e?this.__string(t):this.__union(e,t)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+4}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(4!=e.length)throw new Error("FlatBuffers: file identifier must be length 4");for(let t=0;t<4;t++)if(e.charCodeAt(t)!=this.readInt8(this.position()+4+t))return!1;return!0}createLong(e,t){return l.create(e,t)}createScalarList(e,t){const i=[];for(let r=0;rthis.minalign&&(this.minalign=e);const i=1+~(this.bb.capacity()-this.space+t)&e-1;for(;this.space=0&&0==this.vtable[t];t--);const i=t+1;for(;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);const r=2*(i+2);this.addInt16(r);let n=0;const s=this.space;e:for(t=0;t=0;t--)this.writeInt8(e.charCodeAt(t))}this.prep(this.minalign,4+n),this.addOffset(e),n&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,t){this.finish(e,t,!0)}requiredField(e,t){const i=this.bb.capacity()-e,r=i-this.bb.readInt32(i);if(0==this.bb.readInt16(r+t))throw new Error("FlatBuffers: field "+t+" must be set")}startVector(e,t,i){this.notNested(),this.vector_num_elems=t,this.prep(4,e*t),this.prep(i,e*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const t=this.createString(e);return this.string_maps.set(e,t),t}createString(e){if(!e)return 0;let t;if(e instanceof Uint8Array)t=e;else{t=[];let i=0;for(;i=56320?n:(n<<10)+e.charCodeAt(i++)+-56613888,r<128?t.push(r):(r<2048?t.push(r>>6&31|192):(r<65536?t.push(r>>12&15|224):t.push(r>>18&7|240,r>>12&63|128),t.push(r>>6&63|128)),t.push(63&r|128))}}this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length);for(let e=0,i=this.space,r=this.bb.bytes();e{var i;!function(){"use strict";var r={}.hasOwnProperty;function n(){for(var e=[],t=0;t{!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function i(e){this.g=document.createElement("div"),this.g.setAttribute("aria-hidden","true"),this.g.appendChild(document.createTextNode(e)),this.h=document.createElement("span"),this.i=document.createElement("span"),this.m=document.createElement("span"),this.j=document.createElement("span"),this.l=-1,this.h.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.i.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.j.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.m.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.h.appendChild(this.m),this.i.appendChild(this.j),this.g.appendChild(this.h),this.g.appendChild(this.i)}function r(e,t){e.g.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function n(e){var t=e.g.offsetWidth,i=t+100;return e.j.style.width=i+"px",e.i.scrollLeft=i,e.h.scrollLeft=e.h.scrollWidth+100,e.l!==t&&(e.l=t,!0)}function s(e,i){function r(){var e=s;n(e)&&null!==e.g.parentNode&&i(e.l)}var s=e;t(e.h,r),t(e.i,r),n(e)}function o(e,t,i){t=t||{},i=i||window,this.family=e,this.style=t.style||"normal",this.weight=t.weight||"normal",this.stretch=t.stretch||"normal",this.context=i}var a=null,l=null,c=null,h=null;function u(e){return null===h&&(h=!!e.document.fonts),h}function d(e,t){var i=e.style,r=e.weight;if(null===c){var n=document.createElement("div");try{n.style.font="condensed 100px sans-serif"}catch(e){}c=""!==n.style.font}return[i,r,c?e.stretch:"","100px",t].join(" ")}o.prototype.load=function(e,t){var n=this,o=e||"BESbswy",c=0,h=t||3e3,f=(new Date).getTime();return new Promise((function(e,t){if(u(n.context)&&!function(e){return null===l&&(u(e)&&/Apple/.test(window.navigator.vendor)?(e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent),l=!!e&&603>parseInt(e[1],10)):l=!1),l}(n.context)){var p=new Promise((function(e,t){!function i(){(new Date).getTime()-f>=h?t(Error(h+"ms timeout exceeded")):n.context.document.fonts.load(d(n,'"'+n.family+'"'),o).then((function(t){1<=t.length?e():setTimeout(i,25)}),t)}()})),_=new Promise((function(e,t){c=setTimeout((function(){t(Error(h+"ms timeout exceeded"))}),h)}));Promise.race([_,p]).then((function(){clearTimeout(c),e(n)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function l(){var t;(t=-1!=v&&-1!=g||-1!=v&&-1!=m||-1!=g&&-1!=m)&&((t=v!=g&&v!=m&&g!=m)||(null===a&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),a=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=a&&(v==y&&g==y&&m==y||v==b&&g==b&&m==b||v==S&&g==S&&m==S)),t=!t),t&&(null!==w.parentNode&&w.parentNode.removeChild(w),clearTimeout(c),e(n))}var u=new i(o),p=new i(o),_=new i(o),v=-1,g=-1,m=-1,y=-1,b=-1,S=-1,w=document.createElement("div");w.dir="ltr",r(u,d(n,"sans-serif")),r(p,d(n,"serif")),r(_,d(n,"monospace")),w.appendChild(u.g),w.appendChild(p.g),w.appendChild(_.g),n.context.document.body.appendChild(w),y=u.g.offsetWidth,b=p.g.offsetWidth,S=_.g.offsetWidth,function e(){if((new Date).getTime()-f>=h)null!==w.parentNode&&w.parentNode.removeChild(w),t(Error(h+"ms timeout exceeded"));else{var i=n.context.document.hidden;!0!==i&&void 0!==i||(v=u.g.offsetWidth,g=p.g.offsetWidth,m=_.g.offsetWidth,l()),c=setTimeout(e,50)}}(),s(u,(function(e){v=e,l()})),r(u,d(n,'"'+n.family+'",sans-serif')),s(p,(function(e){g=e,l()})),r(p,d(n,'"'+n.family+'",serif')),s(_,(function(e){m=e,l()})),r(_,d(n,'"'+n.family+'",monospace'))}))}))},e.exports=o}()},7623:(e,t,i)=>{"use strict";i.d(t,{D5:()=>Ct,aV:()=>Kt});var r=32,n=31,s={};function o(e){e&&(e.value=!0)}function a(){}function l(e){return void 0===e.size&&(e.size=e.__iterate(h)),e.size}function c(e,t){if("number"!=typeof t){var i=t>>>0;if(""+i!==t||4294967295===i)return NaN;t=i}return t<0?l(e)+t:t}function h(){return!0}function u(e,t,i){return(0===e&&!_(e)||void 0!==i&&e<=-i)&&(void 0===t||void 0!==i&&t>=i)}function d(e,t){return p(e,t,0)}function f(e,t){return p(e,t,t)}function p(e,t,i){return void 0===e?i:_(e)?t===1/0?t:0|Math.max(0,t+e):void 0===t||t===e?e:0|Math.min(t,e)}function _(e){return e<0||0===e&&1/e==-1/0}var v="@@__IMMUTABLE_ITERABLE__@@";function g(e){return Boolean(e&&e[v])}var m="@@__IMMUTABLE_KEYED__@@";function y(e){return Boolean(e&&e[m])}var b="@@__IMMUTABLE_INDEXED__@@";function S(e){return Boolean(e&&e[b])}function w(e){return y(e)||S(e)}var C=function(e){return g(e)?e:V(e)},x=function(e){function t(e){return y(e)?e:q(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C),E=function(e){function t(e){return S(e)?e:K(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C),L=function(e){function t(e){return g(e)&&!w(e)?e:G(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(C);C.Keyed=x,C.Indexed=E,C.Set=L;var D="@@__IMMUTABLE_SEQ__@@";function A(e){return Boolean(e&&e[D])}var k="@@__IMMUTABLE_RECORD__@@";function R(e){return Boolean(e&&e[k])}function T(e){return g(e)||R(e)}var I="@@__IMMUTABLE_ORDERED__@@";function M(e){return Boolean(e&&e[I])}var B="function"==typeof Symbol&&Symbol.iterator,O=B||"@@iterator",P=function(e){this.next=e};function F(e,t,i,r){var n=0===e?t:1===e?i:[t,i];return r?r.value=n:r={value:n,done:!1},r}function N(){return{value:void 0,done:!0}}function U(e){return!!Array.isArray(e)||!!j(e)}function z(e){return e&&"function"==typeof e.next}function H(e){var t=j(e);return t&&t.call(e)}function j(e){var t=e&&(B&&e[B]||e["@@iterator"]);if("function"==typeof t)return t}P.prototype.toString=function(){return"[Iterator]"},P.KEYS=0,P.VALUES=1,P.ENTRIES=2,P.prototype.inspect=P.prototype.toSource=function(){return this.toString()},P.prototype[O]=function(){return this};var W=Object.prototype.hasOwnProperty;function $(e){return!(!Array.isArray(e)&&"string"!=typeof e)||e&&"object"==typeof e&&Number.isInteger(e.length)&&e.length>=0&&(0===e.length?1===Object.keys(e).length:e.hasOwnProperty(e.length-1))}var V=function(e){function t(e){return null==e?Z():T(e)?e.toSeq():function(e){var t,i,r=ie(e);if(r)return(i=j(t=e))&&i===t.entries?r.fromEntrySeq():function(e){var t=j(e);return t&&t===e.keys}(e)?r.toSetSeq():r;if("object"==typeof e)return new X(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(e,t){var i=this._cache;if(i){for(var r=i.length,n=0;n!==r;){var s=i[t?r-++n:n++];if(!1===e(s[1],s[0],this))break}return n}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var i=this._cache;if(i){var r=i.length,n=0;return new P((function(){if(n===r)return{value:void 0,done:!0};var s=i[t?r-++n:n++];return F(e,s[0],s[1])}))}return this.__iteratorUncached(e,t)},t}(C),q=function(e){function t(e){return null==e?Z().toKeyedSeq():g(e)?y(e)?e.toSeq():e.fromEntrySeq():R(e)?e.toSeq():ee(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(V),K=function(e){function t(e){return null==e?Z():g(e)?y(e)?e.entrySeq():e.toIndexedSeq():R(e)?e.toSeq().entrySeq():te(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(V),G=function(e){function t(e){return(g(e)&&!w(e)?e:K(e)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(V);V.isSeq=A,V.Keyed=q,V.Set=G,V.Indexed=K,V.prototype[D]=!0;var Y=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[c(this,e)]:t},t.prototype.__iterate=function(e,t){for(var i=this._array,r=i.length,n=0;n!==r;){var s=t?r-++n:n++;if(!1===e(i[s],s,this))break}return n},t.prototype.__iterator=function(e,t){var i=this._array,r=i.length,n=0;return new P((function(){if(n===r)return{value:void 0,done:!0};var s=t?r-++n:n++;return F(e,s,i[s])}))},t}(K),X=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},t.prototype.has=function(e){return W.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var i=this._object,r=this._keys,n=r.length,s=0;s!==n;){var o=r[t?n-++s:s++];if(!1===e(i[o],o,this))break}return s},t.prototype.__iterator=function(e,t){var i=this._object,r=this._keys,n=r.length,s=0;return new P((function(){if(s===n)return{value:void 0,done:!0};var o=r[t?n-++s:s++];return F(e,o,i[o])}))},t}(q);X.prototype[I]=!0;var Q,J=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var i=H(this._collection),r=0;if(z(i))for(var n;!(n=i.next()).done&&!1!==e(n.value,r++,this););return r},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var i=H(this._collection);if(!z(i))return new P(N);var r=0;return new P((function(){var t=i.next();return t.done?t:F(e,r++,t.value)}))},t}(K);function Z(){return Q||(Q=new Y([]))}function ee(e){var t=ie(e);if(t)return t.fromEntrySeq();if("object"==typeof e)return new X(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function te(e){var t=ie(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function ie(e){return $(e)?new Y(e):U(e)?new J(e):void 0}var re="@@__IMMUTABLE_MAP__@@";function ne(e){return Boolean(e&&e[re])}function se(e){return ne(e)&&M(e)}function oe(e){return Boolean(e&&"function"==typeof e.equals&&"function"==typeof e.hashCode)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!!(oe(e)&&oe(t)&&e.equals(t))}var le="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var i=65535&(e|=0),r=65535&(t|=0);return i*r+((e>>>16)*r+i*(t>>>16)<<16>>>0)|0};function ce(e){return e>>>1&1073741824|3221225471&e}var he=Object.prototype.valueOf;function ue(e){if(null==e)return de(e);if("function"==typeof e.hashCode)return ce(e.hashCode(e));var t,i,r,n=(t=e).valueOf!==he&&"function"==typeof t.valueOf?t.valueOf(t):t;if(null==n)return de(n);switch(typeof n){case"boolean":return n?1108378657:1108378656;case"number":return function(e){if(e!=e||e===1/0)return 0;var t=0|e;for(t!==e&&(t^=4294967295*e);e>4294967295;)t^=e/=4294967295;return ce(t)}(n);case"string":return n.length>we?(void 0===(r=Ee[i=n])&&(r=fe(i),xe===Ce&&(xe=0,Ee={}),xe++,Ee[i]=r),r):fe(n);case"object":case"function":return function(e){var t;if(me&&void 0!==(t=ge.get(e)))return t;if(void 0!==(t=e[Se]))return t;if(!_e){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Se]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=ve(),me)ge.set(e,t);else{if(void 0!==pe&&!1===pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(_e)Object.defineProperty(e,Se,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Se]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Se]=t}}return t}(n);case"symbol":return function(e){var t=ye[e];return void 0!==t||(t=ve(),ye[e]=t),t}(n);default:if("function"==typeof n.toString)return fe(n.toString());throw new Error("Value type "+typeof n+" cannot be hashed.")}}function de(e){return null===e?1108378658:1108378659}function fe(e){for(var t=0,i=0;i=0&&(h.get=function(t,i){return(t=c(this,t))>=0&&ta)return{value:void 0,done:!0};var e=n.next();return r||1===t||e.done?e:F(t,l-1,0===t?void 0:e.value[1],e)}))},h}function Oe(e,t,i,r){var n=Ve(e);return n.__iterateUncached=function(n,s){var o=this;if(s)return this.cacheResult().__iterate(n,s);var a=!0,l=0;return e.__iterate((function(e,s,c){if(!a||!(a=t.call(i,e,s,c)))return l++,n(e,r?s:l-1,o)})),l},n.__iteratorUncached=function(n,s){var o=this;if(s)return this.cacheResult().__iterator(n,s);var a=e.__iterator(2,s),l=!0,c=0;return new P((function(){var e,s,h;do{if((e=a.next()).done)return r||1===n?e:F(n,c++,0===n?void 0:e.value[1],e);var u=e.value;s=u[0],h=u[1],l&&(l=t.call(i,h,s,o))}while(l);return 2===n?e:F(n,s,h,e)}))},n}function Pe(e,t){var i=y(e),r=[e].concat(t).map((function(e){return g(e)?i&&(e=x(e)):e=i?ee(e):te(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===r.length)return e;if(1===r.length){var n=r[0];if(n===e||i&&y(n)||S(e)&&S(n))return n}var s=new Y(r);return i?s=s.toKeyedSeq():S(e)||(s=s.toSetSeq()),(s=s.flatten(!0)).size=r.reduce((function(e,t){if(void 0!==e){var i=t.size;if(void 0!==i)return e+i}}),0),s}function Fe(e,t,i){var r=Ve(e);return r.__iterateUncached=function(n,s){if(s)return this.cacheResult().__iterate(n,s);var o=0,a=!1;return function e(l,c){l.__iterate((function(s,l){return(!t||c0}function He(e,t,i,r){var n=Ve(e),s=new Y(i).map((function(e){return e.size}));return n.size=r?s.max():s.min(),n.__iterate=function(e,t){for(var i,r=this.__iterator(1,t),n=0;!(i=r.next()).done&&!1!==e(i.value,n++,this););return n},n.__iteratorUncached=function(e,n){var s=i.map((function(e){return e=C(e),H(n?e.reverse():e)})),o=0,a=!1;return new P((function(){var i;return a||(i=s.map((function(e){return e.next()})),a=r?i.every((function(e){return e.done})):i.some((function(e){return e.done}))),a?{value:void 0,done:!0}:F(e,o++,t.apply(null,i.map((function(e){return e.value}))))}))},n}function je(e,t){return e===t?e:A(e)?t:e.constructor(t)}function We(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function $e(e){return y(e)?x:S(e)?E:L}function Ve(e){return Object.create((y(e)?q:S(e)?K:G).prototype)}function qe(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function Ke(e,t){return void 0===e&&void 0===t?0:void 0===e?1:void 0===t?-1:e>t?1:e0;)t[i]=arguments[i+1];if("function"!=typeof e)throw new TypeError("Invalid merger function: "+e);return dt(this,t,e)}function dt(e,t,i){for(var r=[],n=0;n0;)t[i]=arguments[i+1];return ft(this,t,e)}function gt(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];return rt(this,e,Ot(),(function(e){return pt(e,t)}))}function mt(e){for(var t=[],i=arguments.length-1;i-- >0;)t[i]=arguments[i+1];return rt(this,e,Ot(),(function(e){return ft(e,t)}))}function yt(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function bt(){return this.__ownerID?this:this.__ensureOwner(new a)}function St(){return this.__ensureOwner()}function wt(){return this.__altered}var Ct=function(e){function t(t){return null==t?Ot():ne(t)&&!M(t)?t:Ot().withMutations((function(i){var r=e(t);Xe(r.size),r.forEach((function(e,t){return i.set(t,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Ot().withMutations((function(t){for(var i=0;i=e.length)throw new Error("Missing value for key: "+e[i]);t.set(e[i],e[i+1])}}))},t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return Pt(this,e,t)},t.prototype.remove=function(e){return Pt(this,e,s)},t.prototype.deleteAll=function(e){var t=C(e);return 0===t.size?this:this.withMutations((function(e){t.forEach((function(t){return e.remove(t)}))}))},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ot()},t.prototype.sort=function(e){return ai(Ne(this,e))},t.prototype.sortBy=function(e,t){return ai(Ne(this,t,e))},t.prototype.map=function(e,t){var i=this;return this.withMutations((function(r){r.forEach((function(n,s){r.set(s,e.call(t,n,s,i))}))}))},t.prototype.__iterator=function(e,t){return new Tt(this,e,t)},t.prototype.__iterate=function(e,t){var i=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],i)}),t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Bt(this.size,this._root,e,this.__hash):0===this.size?Ot():(this.__ownerID=e,this.__altered=!1,this)},t}(x);Ct.isMap=ne;var xt=Ct.prototype;xt[re]=!0,xt.delete=xt.remove,xt.removeAll=xt.deleteAll,xt.setIn=st,xt.removeIn=xt.deleteIn=ot,xt.update=lt,xt.updateIn=ct,xt.merge=xt.concat=ht,xt.mergeWith=ut,xt.mergeDeep=_t,xt.mergeDeepWith=vt,xt.mergeIn=gt,xt.mergeDeepIn=mt,xt.withMutations=yt,xt.wasAltered=wt,xt.asImmutable=St,xt["@@transducer/init"]=xt.asMutable=bt,xt["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])},xt["@@transducer/result"]=function(e){return e.asImmutable()};var Et=function(e,t){this.ownerID=e,this.entries=t};Et.prototype.get=function(e,t,i,r){for(var n=this.entries,s=0,o=n.length;s=jt)return function(e,t,i,r){e||(e=new a);for(var n=new kt(e,ue(i),[i,r]),s=0;s>>e)&n),o=this.bitmap;return 0==(o&s)?r:this.nodes[zt(o&s-1)].get(e+5,t,i,r)},Lt.prototype.update=function(e,t,i,o,a,l,c){void 0===i&&(i=ue(o));var h=(0===t?i:i>>>t)&n,u=1<=Wt)return function(e,t,i,n,s){for(var o=0,a=new Array(r),l=0;0!==i;l++,i>>>=1)a[l]=1&i?t[o++]:void 0;return a[n]=s,new Dt(e,o+1,a)}(e,_,d,h,g);if(f&&!g&&2===_.length&&Nt(_[1^p]))return _[1^p];if(f&&g&&1===_.length&&Nt(g))return g;var m=e&&e===this.ownerID,y=f?g?d:d^u:d|u,b=f?g?Ht(_,p,g,m):function(e,t,i){var r=e.length-1;if(i&&t===r)return e.pop(),e;for(var n=new Array(r),s=0,o=0;o>>e)&n,o=this.nodes[s];return o?o.get(e+5,t,i,r):r},Dt.prototype.update=function(e,t,i,r,o,a,l){void 0===i&&(i=ue(r));var c=(0===t?i:i>>>t)&n,h=o===s,u=this.nodes,d=u[c];if(h&&!d)return this;var f=Ft(d,e,t+5,i,r,o,a,l);if(f===d)return this;var p=this.count;if(d){if(!f&&--p<$t)return function(e,t,i,r){for(var n=0,s=0,o=new Array(i),a=0,l=1,c=t.length;a>>i)&n,l=(0===i?r:r>>>i)&n,c=a===l?[Ut(e,t,i+5,r,s)]:(o=new kt(t,r,s),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,127&(e+=e>>8)+(e>>16)}function Ht(e,t,i,r){var n=r?e:Ge(e);return n[t]=i,n}var jt=8,Wt=16,$t=8,Vt="@@__IMMUTABLE_LIST__@@";function qt(e){return Boolean(e&&e[Vt])}var Kt=function(e){function t(t){var i=ei();if(null==t)return i;if(qt(t))return t;var n=e(t),s=n.size;return 0===s?i:(Xe(s),s>0&&s=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?ni(e,t).set(0,i):ni(e,0,t+1).set(t,i)}));t+=e._origin;var r=e._tail,n=e._root,s={value:!1};return t>=si(e._capacity)?r=ti(r,e.__ownerID,0,t,i,s):n=ti(n,e.__ownerID,e._level,t,i,s),s.value?e.__ownerID?(e._root=n,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Zt(e._origin,e._capacity,e._level,n,r):e}(this,e,t)},t.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):ei()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(i){ni(i,0,t+e.length);for(var r=0;r>>t&n;if(r>=this.array.length)return new Yt([],e);var s,o=0===r;if(t>0){var a=this.array[r];if((s=a&&a.removeBefore(e,t-5,i))===a&&o)return this}if(o&&!s)return this;var l=ii(this,e);if(!o)for(var c=0;c>>t&n;if(s>=this.array.length)return this;if(t>0){var o=this.array[s];if((r=o&&o.removeAfter(e,t-5,i))===o&&s===this.array.length-1)return this}var a=ii(this,e);return a.array.splice(s+1),r&&(a.array[s]=r),a};var Xt,Qt={};function Jt(e,t){var i=e._origin,n=e._capacity,s=si(n),o=e._tail;return function e(a,l,c){return 0===l?function(e,a){var l=a===s?o&&o.array:e&&e.array,c=a>i?0:i-a,h=n-a;return h>r&&(h=r),function(){if(c===h)return Qt;var e=t?--h:c++;return l&&l[e]}}(a,c):function(s,o,a){var l,c=s&&s.array,h=a>i?0:i-a>>o,u=1+(n-a>>o);return u>r&&(u=r),function(){for(;;){if(l){var i=l();if(i!==Qt)return i;l=null}if(h===u)return Qt;var r=t?--u:h++;l=e(c&&c[r],o-5,a+(r<>>i&n,h=e&&c0){var u=e&&e.array[c],d=ti(u,t,i-5,r,s,a);return d===u?e:((l=ii(e,t)).array[c]=d,l)}return h&&e.array[c]===s?e:(a&&o(a),l=ii(e,t),void 0===s&&c===l.array.length-1?l.array.pop():l.array[c]=s,l)}function ii(e,t){return t&&e&&t===e.ownerID?e:new Yt(e?e.array.slice():[],t)}function ri(e,t){if(t>=si(e._capacity))return e._tail;if(t<1<0;)i=i.array[t>>>r&n],r-=5;return i}}function ni(e,t,i){void 0!==t&&(t|=0),void 0!==i&&(i|=0);var r=e.__ownerID||new a,s=e._origin,o=e._capacity,l=s+t,c=void 0===i?o:i<0?o+i:s+i;if(l===s&&c===o)return e;if(l>=c)return e.clear();for(var h=e._level,u=e._root,d=0;l+d<0;)u=new Yt(u&&u.array.length?[void 0,u]:[],r),d+=1<<(h+=5);d&&(l+=d,s+=d,c+=d,o+=d);for(var f=si(o),p=si(c);p>=1<f?new Yt([],r):_;if(_&&p>f&&l5;m-=5){var y=f>>>m&n;g=g.array[y]=ii(g.array[y],r)}g.array[f>>>5&n]=_}if(c=p)l-=p,c-=p,h=5,u=null,v=v&&v.removeBefore(r,0,l);else if(l>s||p>>h&n;if(b!==p>>>h&n)break;b&&(d+=(1<s&&(u=u.removeBefore(r,h,l-d)),u&&p>>5<<5}var oi,ai=function(e){function t(e){return null==e?ci():se(e)?e:ci().withMutations((function(t){var i=x(e);Xe(i.size),i.forEach((function(e,i){return t.set(i,e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(e,t){var i=this._map.get(e);return void 0!==i?this._list.get(i)[1]:t},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):ci()},t.prototype.set=function(e,t){return hi(this,e,t)},t.prototype.remove=function(e){return hi(this,e,s)},t.prototype.__iterate=function(e,t){var i=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],i)}),t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),i=this._list.__ensureOwner(e);return e?li(t,i,e,this.__hash):0===this.size?ci():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=i,this)},t}(Ct);function li(e,t,i,r){var n=Object.create(ai.prototype);return n.size=e?e.size:0,n._map=e,n._list=t,n.__ownerID=i,n.__hash=r,n.__altered=!1,n}function ci(){return oi||(oi=li(Ot(),ei()))}function hi(e,t,i){var n,o,a=e._map,l=e._list,c=a.get(t),h=void 0!==c;if(i===s){if(!h)return e;l.size>=r&&l.size>=2*a.size?(n=(o=l.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(n.__ownerID=o.__ownerID=e.__ownerID)):(n=a.remove(t),o=c===l.size-1?l.pop():l.set(c,void 0))}else if(h){if(i===l.get(c)[1])return e;n=a,o=l.set(c,[t,i])}else n=a.set(t,l.size),o=l.set(l.size,[t,i]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=o,e.__hash=void 0,e.__altered=!0,e):li(n,o)}ai.isOrderedMap=se,ai.prototype[I]=!0,ai.prototype.delete=ai.prototype.remove;var ui="@@__IMMUTABLE_STACK__@@";function di(e){return Boolean(e&&e[ui])}var fi=function(e){function t(e){return null==e?gi():di(e)?e:gi().pushAll(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(e,t){var i=this._head;for(e=c(this,e);i&&e--;)i=i.next;return i?i.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(0===arguments.length)return this;for(var t=this.size+arguments.length,i=this._head,r=arguments.length-1;r>=0;r--)i={value:e[r],next:i};return this.__ownerID?(this.size=t,this._head=i,this.__hash=void 0,this.__altered=!0,this):vi(t,i)},t.prototype.pushAll=function(t){if(0===(t=e(t)).size)return this;if(0===this.size&&di(t))return t;Xe(t.size);var i=this.size,r=this._head;return t.__iterate((function(e){i++,r={value:e,next:r}}),!0),this.__ownerID?(this.size=i,this._head=r,this.__hash=void 0,this.__altered=!0,this):vi(i,r)},t.prototype.pop=function(){return this.slice(1)},t.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):gi()},t.prototype.slice=function(t,i){if(u(t,i,this.size))return this;var r=d(t,this.size);if(f(i,this.size)!==this.size)return e.prototype.slice.call(this,t,i);for(var n=this.size-r,s=this._head;r--;)s=s.next;return this.__ownerID?(this.size=n,this._head=s,this.__hash=void 0,this.__altered=!0,this):vi(n,s)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?vi(this.size,this._head,e,this.__hash):0===this.size?gi():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var i=this;if(t)return new Y(this.toArray()).__iterate((function(t,r){return e(t,r,i)}),t);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},t.prototype.__iterator=function(e,t){if(t)return new Y(this.toArray()).__iterator(e,t);var i=0,r=this._head;return new P((function(){if(r){var t=r.value;return r=r.next,F(e,i++,t)}return{value:void 0,done:!0}}))},t}(E);fi.isStack=di;var pi,_i=fi.prototype;function vi(e,t,i,r){var n=Object.create(_i);return n.size=e,n._head=t,n.__ownerID=i,n.__hash=r,n.__altered=!1,n}function gi(){return pi||(pi=vi(0))}_i[ui]=!0,_i.shift=_i.pop,_i.unshift=_i.push,_i.unshiftAll=_i.pushAll,_i.withMutations=yt,_i.wasAltered=wt,_i.asImmutable=St,_i["@@transducer/init"]=_i.asMutable=bt,_i["@@transducer/step"]=function(e,t){return e.unshift(t)},_i["@@transducer/result"]=function(e){return e.asImmutable()};var mi="@@__IMMUTABLE_SET__@@";function yi(e){return Boolean(e&&e[mi])}function bi(e){return yi(e)&&M(e)}function Si(e,t){if(e===t)return!0;if(!g(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||y(e)!==y(t)||S(e)!==S(t)||M(e)!==M(t))return!1;if(0===e.size&&0===t.size)return!0;var i=!w(e);if(M(e)){var r=e.entries();return t.every((function(e,t){var n=r.next().value;return n&&ae(n[1],e)&&(i||ae(n[0],t))}))&&r.next().done}var n=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{n=!0;var o=e;e=t,t=o}var a=!0,l=t.__iterate((function(t,r){if(i?!e.has(t):n?!ae(t,e.get(r,s)):!ae(e.get(r,s),t))return a=!1,!1}));return a&&e.size===l}function wi(e,t){var i=function(i){e.prototype[i]=t[i]};return Object.keys(t).forEach(i),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(i),e}function Ci(e){if(!e||"object"!=typeof e)return e;if(!g(e)){if(!Ze(e))return e;e=V(e)}if(y(e)){var t={};return e.__iterate((function(e,i){t[i]=Ci(e)})),t}var i=[];return e.__iterate((function(e){i.push(Ci(e))})),i}var xi=function(e){function t(t){return null==t?ki():yi(t)&&!M(t)?t:ki().withMutations((function(i){var r=e(t);Xe(r.size),r.forEach((function(e){return i.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(x(e).keySeq())},t.intersect=function(e){return(e=C(e).toArray()).length?Li.intersect.apply(t(e.pop()),e):ki()},t.union=function(e){return(e=C(e).toArray()).length?Li.union.apply(t(e.pop()),e):ki()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return Di(this,this._map.set(e,e))},t.prototype.remove=function(e){return Di(this,this._map.remove(e))},t.prototype.clear=function(){return Di(this,this._map.clear())},t.prototype.map=function(e,t){var i=this,r=!1,n=Di(this,this._map.mapEntries((function(n){var s=n[1],o=e.call(t,s,s,i);return o!==s&&(r=!0),[o,o]}),t));return r?n:this},t.prototype.union=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(i){for(var r=0;r=0&&t=0&&i>>-15,461845907),t=le(t<<13|t>>>-13,5),t=le((t=(t+3864292196|0)^e)^t>>>16,2246822507),ce((t=le(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(i?t?function(e,t){r=31*r+qi(ue(e),ue(t))|0}:function(e,t){r=r+qi(ue(e),ue(t))|0}:t?function(e){r=31*r+ue(e)|0}:function(e){r=r+ue(e)|0}),r)}(this))}});var Oi=C.prototype;Oi[v]=!0,Oi[O]=Oi.values,Oi.toJSON=Oi.toArray,Oi.__toStringMapper=et,Oi.inspect=Oi.toSource=function(){return this.toString()},Oi.chain=Oi.flatMap,Oi.contains=Oi.includes,wi(x,{flip:function(){return je(this,Re(this))},mapEntries:function(e,t){var i=this,r=0;return je(this,this.toSeq().map((function(n,s){return e.call(t,[s,n],r++,i)})).fromEntrySeq())},mapKeys:function(e,t){var i=this;return je(this,this.toSeq().flip().map((function(r,n){return e.call(t,r,n,i)})).flip())}});var Pi=x.prototype;Pi[m]=!0,Pi[O]=Oi.entries,Pi.toJSON=Bi,Pi.__toStringMapper=function(e,t){return et(t)+": "+et(e)},wi(E,{toKeyedSeq:function(){return new Le(this,!1)},filter:function(e,t){return je(this,Me(this,e,t,!1))},findIndex:function(e,t){var i=this.findEntry(e,t);return i?i[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return je(this,Ie(this,!1))},slice:function(e,t){return je(this,Be(this,e,t,!1))},splice:function(e,t){var i=arguments.length;if(t=Math.max(t||0,0),0===i||2===i&&!t)return this;e=d(e,e<0?this.count():this.size);var r=this.slice(0,e);return je(this,1===i?r:r.concat(Ge(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var i=this.findLastEntry(e,t);return i?i[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return je(this,Fe(this,e,!1))},get:function(e,t){return(e=c(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,i){return i===e}),void 0,t)},has:function(e){return(e=c(this,e))>=0&&(void 0!==this.size?this.size===1/0||et?-1:0}function qi(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Ni.has=Oi.includes,Ni.contains=Ni.includes,Ni.keys=Ni.values,wi(q,Pi),wi(K,Fi),wi(G,Ni);var Ki=function(e){function t(e){return null==e?Qi():bi(e)?e:Qi().withMutations((function(t){var i=L(e);Xe(i.size),i.forEach((function(e){return t.add(e)}))}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(e){return this(x(e).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(xi);Ki.isOrderedSet=bi;var Gi,Yi=Ki.prototype;function Xi(e,t){var i=Object.create(Yi);return i.size=e?e.size:0,i._map=e,i.__ownerID=t,i}function Qi(){return Gi||(Gi=Xi(ci()))}Yi[I]=!0,Yi.zip=Fi.zip,Yi.zipWith=Fi.zipWith,Yi.zipAll=Fi.zipAll,Yi.__empty=Qi,Yi.__make=Xi;var Ji=function(e,t){var i;!function(e){if(R(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(T(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(null===e||"object"!=typeof e)throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}(e);var r=function(s){var o=this;if(s instanceof r)return s;if(!(this instanceof r))return new r(s);if(!i){i=!0;var a=Object.keys(e),l=n._indices={};n._name=t,n._keys=a,n._defaultValues=e;for(var c=0;c{},2967:(e,t,i)=>{"use strict";var r=i(2784),n=i(4616);function s(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i