@performant-software/geospatial 3.1.25-beta.1 → 3.1.25-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs102.js +1 -1
- package/dist/index.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs105.js +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs12.js +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs128.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs134.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs154.js +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs156.js +1 -1
- package/dist/index.cjs157.js +1 -1
- package/dist/index.cjs158.js +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs161.js +1 -1
- package/dist/index.cjs162.js +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs164.js +1 -1
- package/dist/index.cjs165.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs168.js +1 -1
- package/dist/index.cjs17.js +1 -1
- package/dist/index.cjs171.js +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs174.js +1 -1
- package/dist/index.cjs175.js +1 -1
- package/dist/index.cjs176.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs179.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs194.js +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs196.js.map +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs200.js +1 -1
- package/dist/index.cjs200.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs201.js.map +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs211.js +1 -1
- package/dist/index.cjs211.js.map +1 -1
- package/dist/index.cjs212.js +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs214.js +1 -1
- package/dist/index.cjs214.js.map +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs215.js.map +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs216.js.map +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs221.js.map +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs223.js.map +1 -1
- package/dist/index.cjs224.js +1 -1
- package/dist/index.cjs224.js.map +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs225.js.map +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs227.js +1 -1
- package/dist/index.cjs227.js.map +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs228.js.map +1 -1
- package/dist/index.cjs229.js +1 -1
- package/dist/index.cjs229.js.map +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs230.js.map +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs231.js.map +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs232.js.map +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs233.js.map +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs234.js.map +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs235.js.map +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs236.js.map +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs237.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs238.js.map +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs239.js.map +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs240.js.map +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs241.js.map +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs242.js.map +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs243.js.map +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs244.js.map +1 -1
- package/dist/index.cjs245.js +1 -7
- package/dist/index.cjs245.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs246.js.map +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs248.js.map +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs249.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs250.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs251.js.map +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs258.js.map +1 -1
- package/dist/index.cjs259.js +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs260.js +1 -1
- package/dist/index.cjs260.js.map +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs261.js.map +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs262.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs263.js.map +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs264.js.map +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs265.js.map +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs266.js.map +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs267.js.map +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs268.js.map +1 -1
- package/dist/index.cjs269.js +1 -1
- package/dist/index.cjs269.js.map +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs270.js.map +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs272.js +7 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs273.js.map +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs274.js.map +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs275.js.map +1 -1
- package/dist/index.cjs276.js +2 -0
- package/dist/index.cjs276.js.map +1 -0
- package/dist/index.cjs277.js +2 -0
- package/dist/index.cjs277.js.map +1 -0
- package/dist/index.cjs278.js +2 -0
- package/dist/index.cjs278.js.map +1 -0
- package/dist/index.cjs279.js +2 -0
- package/dist/index.cjs279.js.map +1 -0
- package/dist/index.cjs280.js +2 -0
- package/dist/index.cjs280.js.map +1 -0
- package/dist/index.cjs281.js +2 -0
- package/dist/index.cjs281.js.map +1 -0
- package/dist/index.cjs282.js +2 -0
- package/dist/index.cjs282.js.map +1 -0
- package/dist/index.cjs283.js +2 -0
- package/dist/index.cjs283.js.map +1 -0
- package/dist/index.cjs284.js +2 -0
- package/dist/index.cjs284.js.map +1 -0
- package/dist/index.cjs285.js +2 -0
- package/dist/index.cjs285.js.map +1 -0
- package/dist/index.cjs286.js +2 -0
- package/dist/index.cjs286.js.map +1 -0
- package/dist/index.cjs287.js +2 -0
- package/dist/index.cjs287.js.map +1 -0
- package/dist/index.cjs288.js +2 -0
- package/dist/index.cjs288.js.map +1 -0
- package/dist/index.cjs289.js +2 -0
- package/dist/index.cjs289.js.map +1 -0
- package/dist/index.cjs290.js +2 -0
- package/dist/index.cjs290.js.map +1 -0
- package/dist/index.cjs291.js +2 -0
- package/dist/index.cjs291.js.map +1 -0
- package/dist/index.cjs292.js +2 -0
- package/dist/index.cjs292.js.map +1 -0
- package/dist/index.cjs293.js +2 -0
- package/dist/index.cjs293.js.map +1 -0
- package/dist/index.cjs294.js +2 -0
- package/dist/index.cjs294.js.map +1 -0
- package/dist/index.cjs295.js +2 -0
- package/dist/index.cjs295.js.map +1 -0
- package/dist/index.cjs296.js +2 -0
- package/dist/index.cjs296.js.map +1 -0
- package/dist/index.cjs297.js +2 -0
- package/dist/index.cjs297.js.map +1 -0
- package/dist/index.cjs298.js +2 -0
- package/dist/index.cjs298.js.map +1 -0
- package/dist/index.cjs299.js +2 -0
- package/dist/index.cjs299.js.map +1 -0
- package/dist/index.cjs300.js +2 -0
- package/dist/index.cjs300.js.map +1 -0
- package/dist/index.cjs301.js +2 -0
- package/dist/index.cjs301.js.map +1 -0
- package/dist/index.cjs302.js +2 -0
- package/dist/index.cjs302.js.map +1 -0
- package/dist/index.cjs303.js +2 -0
- package/dist/index.cjs303.js.map +1 -0
- package/dist/index.cjs304.js +2 -0
- package/dist/index.cjs304.js.map +1 -0
- package/dist/index.cjs305.js +2 -0
- package/dist/index.cjs305.js.map +1 -0
- package/dist/index.cjs306.js +2 -0
- package/dist/index.cjs306.js.map +1 -0
- package/dist/index.cjs307.js +2 -0
- package/dist/index.cjs307.js.map +1 -0
- package/dist/index.cjs308.js +47 -0
- package/dist/index.cjs308.js.map +1 -0
- package/dist/index.cjs309.js +212 -0
- package/dist/index.cjs309.js.map +1 -0
- package/dist/index.cjs310.js +62 -0
- package/dist/index.cjs310.js.map +1 -0
- package/dist/index.cjs311.js +60 -0
- package/dist/index.cjs311.js.map +1 -0
- package/dist/index.cjs312.js +46 -0
- package/dist/index.cjs312.js.map +1 -0
- package/dist/index.cjs313.js +52 -0
- package/dist/index.cjs313.js.map +1 -0
- package/dist/index.cjs314.js +308 -0
- package/dist/index.cjs314.js.map +1 -0
- package/dist/index.cjs315.js +293 -0
- package/dist/index.cjs315.js.map +1 -0
- package/dist/index.cjs316.js +6 -0
- package/dist/index.cjs316.js.map +1 -0
- package/dist/index.cjs317.js +2 -0
- package/dist/index.cjs317.js.map +1 -0
- package/dist/index.cjs318.js +2 -0
- package/dist/index.cjs318.js.map +1 -0
- package/dist/index.cjs319.js +2 -0
- package/dist/index.cjs319.js.map +1 -0
- package/dist/index.cjs320.js +2 -0
- package/dist/index.cjs320.js.map +1 -0
- package/dist/index.cjs321.js +2 -0
- package/dist/index.cjs321.js.map +1 -0
- package/dist/index.cjs322.js +2 -0
- package/dist/index.cjs322.js.map +1 -0
- package/dist/index.cjs323.js +2 -0
- package/dist/index.cjs323.js.map +1 -0
- package/dist/index.cjs324.js +2 -0
- package/dist/index.cjs324.js.map +1 -0
- package/dist/index.cjs325.js +2 -0
- package/dist/index.cjs325.js.map +1 -0
- package/dist/index.cjs326.js +2 -0
- package/dist/index.cjs326.js.map +1 -0
- package/dist/index.cjs327.js +2 -0
- package/dist/index.cjs327.js.map +1 -0
- package/dist/index.cjs328.js +2 -0
- package/dist/index.cjs328.js.map +1 -0
- package/dist/index.cjs329.js +2 -0
- package/dist/index.cjs329.js.map +1 -0
- package/dist/index.cjs330.js +2 -0
- package/dist/index.cjs330.js.map +1 -0
- package/dist/index.cjs331.js +2 -0
- package/dist/index.cjs331.js.map +1 -0
- package/dist/index.cjs332.js +2 -0
- package/dist/index.cjs332.js.map +1 -0
- package/dist/index.cjs333.js +2 -0
- package/dist/index.cjs333.js.map +1 -0
- package/dist/index.cjs334.js +5 -0
- package/dist/index.cjs334.js.map +1 -0
- package/dist/index.cjs335.js +6 -0
- package/dist/index.cjs335.js.map +1 -0
- package/dist/index.cjs336.js +2 -0
- package/dist/index.cjs336.js.map +1 -0
- package/dist/index.cjs337.js +2 -0
- package/dist/index.cjs337.js.map +1 -0
- package/dist/index.cjs338.js +2 -0
- package/dist/index.cjs338.js.map +1 -0
- package/dist/index.cjs339.js +2 -0
- package/dist/index.cjs339.js.map +1 -0
- package/dist/index.cjs340.js +2 -0
- package/dist/index.cjs340.js.map +1 -0
- package/dist/index.cjs341.js +2 -0
- package/dist/index.cjs341.js.map +1 -0
- package/dist/index.cjs342.js +2 -0
- package/dist/index.cjs342.js.map +1 -0
- package/dist/index.cjs343.js +2 -0
- package/dist/index.cjs343.js.map +1 -0
- package/dist/index.cjs344.js +2 -0
- package/dist/index.cjs344.js.map +1 -0
- package/dist/index.cjs345.js +2 -0
- package/dist/index.cjs345.js.map +1 -0
- package/dist/index.cjs346.js +2 -0
- package/dist/index.cjs346.js.map +1 -0
- package/dist/index.cjs347.js +2 -0
- package/dist/index.cjs347.js.map +1 -0
- package/dist/index.cjs348.js +5 -0
- package/dist/index.cjs348.js.map +1 -0
- package/dist/index.cjs349.js +2 -0
- package/dist/index.cjs349.js.map +1 -0
- package/dist/index.cjs350.js +2 -0
- package/dist/index.cjs350.js.map +1 -0
- package/dist/index.cjs351.js +2 -0
- package/dist/index.cjs351.js.map +1 -0
- package/dist/index.cjs352.js +2 -0
- package/dist/index.cjs352.js.map +1 -0
- package/dist/index.cjs353.js +2 -0
- package/dist/index.cjs353.js.map +1 -0
- package/dist/index.cjs354.js +2 -0
- package/dist/index.cjs354.js.map +1 -0
- package/dist/index.cjs355.js +2 -0
- package/dist/index.cjs355.js.map +1 -0
- package/dist/index.cjs356.js +2 -0
- package/dist/index.cjs356.js.map +1 -0
- package/dist/index.cjs357.js +2 -0
- package/dist/index.cjs357.js.map +1 -0
- package/dist/index.cjs358.js +2 -0
- package/dist/index.cjs358.js.map +1 -0
- package/dist/index.cjs359.js +2 -0
- package/dist/index.cjs359.js.map +1 -0
- package/dist/index.cjs360.js +2 -0
- package/dist/index.cjs360.js.map +1 -0
- package/dist/index.cjs361.js +2 -0
- package/dist/index.cjs361.js.map +1 -0
- package/dist/index.cjs362.js +2 -0
- package/dist/index.cjs362.js.map +1 -0
- package/dist/index.cjs363.js +2 -0
- package/dist/index.cjs363.js.map +1 -0
- package/dist/index.cjs364.js +2 -0
- package/dist/index.cjs364.js.map +1 -0
- package/dist/index.cjs365.js +2 -0
- package/dist/index.cjs365.js.map +1 -0
- package/dist/index.cjs366.js +2 -0
- package/dist/index.cjs366.js.map +1 -0
- package/dist/index.cjs367.js +2 -0
- package/dist/index.cjs367.js.map +1 -0
- package/dist/index.cjs368.js +2 -0
- package/dist/index.cjs368.js.map +1 -0
- package/dist/index.cjs369.js +2 -0
- package/dist/index.cjs369.js.map +1 -0
- package/dist/index.cjs370.js +2 -0
- package/dist/index.cjs370.js.map +1 -0
- package/dist/index.cjs371.js +2 -0
- package/dist/index.cjs371.js.map +1 -0
- package/dist/index.cjs372.js +2 -0
- package/dist/index.cjs372.js.map +1 -0
- package/dist/index.cjs373.js +2 -0
- package/dist/index.cjs373.js.map +1 -0
- package/dist/index.cjs374.js +2 -0
- package/dist/index.cjs374.js.map +1 -0
- package/dist/index.cjs375.js +2 -0
- package/dist/index.cjs375.js.map +1 -0
- package/dist/index.cjs376.js +2 -0
- package/dist/index.cjs376.js.map +1 -0
- package/dist/index.cjs377.js +2 -0
- package/dist/index.cjs377.js.map +1 -0
- package/dist/index.cjs378.js +2 -0
- package/dist/index.cjs378.js.map +1 -0
- package/dist/index.cjs379.js +2 -0
- package/dist/index.cjs379.js.map +1 -0
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs380.js +2 -0
- package/dist/index.cjs380.js.map +1 -0
- package/dist/index.cjs381.js +2 -0
- package/dist/index.cjs381.js.map +1 -0
- package/dist/index.cjs382.js +2 -0
- package/dist/index.cjs382.js.map +1 -0
- package/dist/index.cjs383.js +2 -0
- package/dist/index.cjs383.js.map +1 -0
- package/dist/index.cjs384.js +2 -0
- package/dist/index.cjs384.js.map +1 -0
- package/dist/index.cjs385.js +2 -0
- package/dist/index.cjs385.js.map +1 -0
- package/dist/index.cjs386.js +2 -0
- package/dist/index.cjs386.js.map +1 -0
- package/dist/index.cjs387.js +2 -0
- package/dist/index.cjs387.js.map +1 -0
- package/dist/index.cjs388.js +2 -0
- package/dist/index.cjs388.js.map +1 -0
- package/dist/index.cjs389.js +2 -0
- package/dist/index.cjs389.js.map +1 -0
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs390.js +2 -0
- package/dist/index.cjs390.js.map +1 -0
- package/dist/index.cjs391.js +2 -0
- package/dist/index.cjs391.js.map +1 -0
- package/dist/index.cjs392.js +2 -0
- package/dist/index.cjs392.js.map +1 -0
- package/dist/index.cjs393.js +2 -0
- package/dist/index.cjs393.js.map +1 -0
- package/dist/index.cjs394.js +2 -0
- package/dist/index.cjs394.js.map +1 -0
- package/dist/index.cjs395.js +2 -0
- package/dist/index.cjs395.js.map +1 -0
- package/dist/index.cjs396.js +2 -0
- package/dist/index.cjs396.js.map +1 -0
- package/dist/index.cjs397.js +2 -0
- package/dist/index.cjs397.js.map +1 -0
- package/dist/index.cjs398.js +2 -0
- package/dist/index.cjs398.js.map +1 -0
- package/dist/index.cjs399.js +2 -0
- package/dist/index.cjs399.js.map +1 -0
- package/dist/index.cjs40.js +1 -1
- package/dist/index.cjs400.js +2 -0
- package/dist/index.cjs400.js.map +1 -0
- package/dist/index.cjs401.js +2 -0
- package/dist/index.cjs401.js.map +1 -0
- package/dist/index.cjs402.js +2 -0
- package/dist/index.cjs402.js.map +1 -0
- package/dist/index.cjs403.js +2 -0
- package/dist/index.cjs403.js.map +1 -0
- package/dist/index.cjs404.js +2 -0
- package/dist/index.cjs404.js.map +1 -0
- package/dist/index.cjs405.js +2 -0
- package/dist/index.cjs405.js.map +1 -0
- package/dist/index.cjs406.js +2 -0
- package/dist/index.cjs406.js.map +1 -0
- package/dist/index.cjs407.js +2 -0
- package/dist/index.cjs407.js.map +1 -0
- package/dist/index.cjs408.js +2 -0
- package/dist/index.cjs408.js.map +1 -0
- package/dist/index.cjs409.js +2 -0
- package/dist/index.cjs409.js.map +1 -0
- package/dist/index.cjs410.js +2 -0
- package/dist/index.cjs410.js.map +1 -0
- package/dist/index.cjs411.js +2 -0
- package/dist/index.cjs411.js.map +1 -0
- package/dist/index.cjs412.js +2 -0
- package/dist/index.cjs412.js.map +1 -0
- package/dist/index.cjs413.js +2 -0
- package/dist/index.cjs413.js.map +1 -0
- package/dist/index.cjs414.js +2 -0
- package/dist/index.cjs414.js.map +1 -0
- package/dist/index.cjs415.js +2 -0
- package/dist/index.cjs415.js.map +1 -0
- package/dist/index.cjs416.js +2 -0
- package/dist/index.cjs416.js.map +1 -0
- package/dist/index.cjs417.js +2 -0
- package/dist/index.cjs417.js.map +1 -0
- package/dist/index.cjs418.js +2 -0
- package/dist/index.cjs418.js.map +1 -0
- package/dist/index.cjs419.js +2 -0
- package/dist/index.cjs419.js.map +1 -0
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs420.js +2 -0
- package/dist/index.cjs420.js.map +1 -0
- package/dist/index.cjs421.js +2 -0
- package/dist/index.cjs421.js.map +1 -0
- package/dist/index.cjs422.js +2 -0
- package/dist/index.cjs422.js.map +1 -0
- package/dist/index.cjs423.js +2 -0
- package/dist/index.cjs423.js.map +1 -0
- package/dist/index.cjs424.js +2 -0
- package/dist/index.cjs424.js.map +1 -0
- package/dist/index.cjs425.js +2 -0
- package/dist/index.cjs425.js.map +1 -0
- package/dist/index.cjs426.js +2 -0
- package/dist/index.cjs426.js.map +1 -0
- package/dist/index.cjs427.js +2 -0
- package/dist/index.cjs427.js.map +1 -0
- package/dist/index.cjs428.js +2 -0
- package/dist/index.cjs428.js.map +1 -0
- package/dist/index.cjs429.js +2 -0
- package/dist/index.cjs429.js.map +1 -0
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs430.js +2 -0
- package/dist/index.cjs430.js.map +1 -0
- package/dist/index.cjs431.js +2 -0
- package/dist/index.cjs431.js.map +1 -0
- package/dist/index.cjs432.js +2 -0
- package/dist/index.cjs432.js.map +1 -0
- package/dist/index.cjs433.js +2 -0
- package/dist/index.cjs433.js.map +1 -0
- package/dist/index.cjs434.js +2 -0
- package/dist/index.cjs434.js.map +1 -0
- package/dist/index.cjs435.js +2 -0
- package/dist/index.cjs435.js.map +1 -0
- package/dist/index.cjs436.js +2 -0
- package/dist/index.cjs436.js.map +1 -0
- package/dist/index.cjs437.js +2 -0
- package/dist/index.cjs437.js.map +1 -0
- package/dist/index.cjs438.js +2 -0
- package/dist/index.cjs438.js.map +1 -0
- package/dist/index.cjs439.js +2 -0
- package/dist/index.cjs439.js.map +1 -0
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs440.js +2 -0
- package/dist/index.cjs440.js.map +1 -0
- package/dist/index.cjs441.js +2 -0
- package/dist/index.cjs441.js.map +1 -0
- package/dist/index.cjs442.js +2 -0
- package/dist/index.cjs442.js.map +1 -0
- package/dist/index.cjs443.js +2 -0
- package/dist/index.cjs443.js.map +1 -0
- package/dist/index.cjs444.js +2 -0
- package/dist/index.cjs444.js.map +1 -0
- package/dist/index.cjs445.js +2 -0
- package/dist/index.cjs445.js.map +1 -0
- package/dist/index.cjs446.js +2 -0
- package/dist/index.cjs446.js.map +1 -0
- package/dist/index.cjs447.js +2 -0
- package/dist/index.cjs447.js.map +1 -0
- package/dist/index.cjs448.js +2 -0
- package/dist/index.cjs448.js.map +1 -0
- package/dist/index.cjs449.js +2 -0
- package/dist/index.cjs449.js.map +1 -0
- package/dist/index.cjs450.js +2 -0
- package/dist/index.cjs450.js.map +1 -0
- package/dist/index.cjs451.js +2 -0
- package/dist/index.cjs451.js.map +1 -0
- package/dist/index.cjs452.js +2 -0
- package/dist/index.cjs452.js.map +1 -0
- package/dist/index.cjs453.js +2 -0
- package/dist/index.cjs453.js.map +1 -0
- package/dist/index.cjs454.js +2 -0
- package/dist/index.cjs454.js.map +1 -0
- package/dist/index.cjs455.js +2 -0
- package/dist/index.cjs455.js.map +1 -0
- package/dist/index.cjs456.js +2 -0
- package/dist/index.cjs456.js.map +1 -0
- package/dist/index.cjs457.js +2 -0
- package/dist/index.cjs457.js.map +1 -0
- package/dist/index.cjs458.js +2 -0
- package/dist/index.cjs458.js.map +1 -0
- package/dist/index.cjs459.js +2 -0
- package/dist/index.cjs459.js.map +1 -0
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs460.js +2 -0
- package/dist/index.cjs460.js.map +1 -0
- package/dist/index.cjs461.js +2 -0
- package/dist/index.cjs461.js.map +1 -0
- package/dist/index.cjs462.js +2 -0
- package/dist/index.cjs462.js.map +1 -0
- package/dist/index.cjs463.js +2 -0
- package/dist/index.cjs463.js.map +1 -0
- package/dist/index.cjs464.js +2 -0
- package/dist/index.cjs464.js.map +1 -0
- package/dist/index.cjs465.js +2 -0
- package/dist/index.cjs465.js.map +1 -0
- package/dist/index.cjs466.js +2 -0
- package/dist/index.cjs466.js.map +1 -0
- package/dist/index.cjs467.js +2 -0
- package/dist/index.cjs467.js.map +1 -0
- package/dist/index.cjs468.js +2 -0
- package/dist/index.cjs468.js.map +1 -0
- package/dist/index.cjs469.js +2 -0
- package/dist/index.cjs469.js.map +1 -0
- package/dist/index.cjs47.js +1 -1
- package/dist/index.cjs470.js +2 -0
- package/dist/index.cjs470.js.map +1 -0
- package/dist/index.cjs471.js +2 -0
- package/dist/index.cjs471.js.map +1 -0
- package/dist/index.cjs472.js +2 -0
- package/dist/index.cjs472.js.map +1 -0
- package/dist/index.cjs473.js +2 -0
- package/dist/index.cjs473.js.map +1 -0
- package/dist/index.cjs474.js +2 -0
- package/dist/index.cjs474.js.map +1 -0
- package/dist/index.cjs475.js +2 -0
- package/dist/index.cjs475.js.map +1 -0
- package/dist/index.cjs476.js +2 -0
- package/dist/index.cjs476.js.map +1 -0
- package/dist/index.cjs477.js +2 -0
- package/dist/index.cjs477.js.map +1 -0
- package/dist/index.cjs478.js +2 -0
- package/dist/index.cjs478.js.map +1 -0
- package/dist/index.cjs479.js +2 -0
- package/dist/index.cjs479.js.map +1 -0
- package/dist/index.cjs48.js +1 -1
- package/dist/index.cjs480.js +2 -0
- package/dist/index.cjs480.js.map +1 -0
- package/dist/index.cjs481.js +2 -0
- package/dist/index.cjs481.js.map +1 -0
- package/dist/index.cjs482.js +2 -0
- package/dist/index.cjs482.js.map +1 -0
- package/dist/index.cjs483.js +2 -0
- package/dist/index.cjs483.js.map +1 -0
- package/dist/index.cjs484.js +2 -0
- package/dist/index.cjs484.js.map +1 -0
- package/dist/index.cjs485.js +2 -0
- package/dist/index.cjs485.js.map +1 -0
- package/dist/index.cjs486.js +2 -0
- package/dist/index.cjs486.js.map +1 -0
- package/dist/index.cjs487.js +2 -0
- package/dist/index.cjs487.js.map +1 -0
- package/dist/index.cjs488.js +2 -0
- package/dist/index.cjs488.js.map +1 -0
- package/dist/index.cjs489.js +2 -0
- package/dist/index.cjs489.js.map +1 -0
- package/dist/index.cjs490.js +2 -0
- package/dist/index.cjs490.js.map +1 -0
- package/dist/index.cjs491.js +2 -0
- package/dist/index.cjs491.js.map +1 -0
- package/dist/index.cjs492.js +2 -0
- package/dist/index.cjs492.js.map +1 -0
- package/dist/index.cjs493.js +2 -0
- package/dist/index.cjs493.js.map +1 -0
- package/dist/index.cjs494.js +2 -0
- package/dist/index.cjs494.js.map +1 -0
- package/dist/index.cjs495.js +2 -0
- package/dist/index.cjs495.js.map +1 -0
- package/dist/index.cjs496.js +2 -0
- package/dist/index.cjs496.js.map +1 -0
- package/dist/index.cjs497.js +2 -0
- package/dist/index.cjs497.js.map +1 -0
- package/dist/index.cjs498.js +2 -0
- package/dist/index.cjs498.js.map +1 -0
- package/dist/index.cjs499.js +2 -0
- package/dist/index.cjs499.js.map +1 -0
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs500.js +2 -0
- package/dist/index.cjs500.js.map +1 -0
- package/dist/index.cjs501.js +2 -0
- package/dist/index.cjs501.js.map +1 -0
- package/dist/index.cjs502.js +2 -0
- package/dist/index.cjs502.js.map +1 -0
- package/dist/index.cjs503.js +2 -0
- package/dist/index.cjs503.js.map +1 -0
- package/dist/index.cjs504.js +2 -0
- package/dist/index.cjs504.js.map +1 -0
- package/dist/index.cjs505.js +2 -0
- package/dist/index.cjs505.js.map +1 -0
- package/dist/index.cjs506.js +2 -0
- package/dist/index.cjs506.js.map +1 -0
- package/dist/index.cjs507.js +2 -0
- package/dist/index.cjs507.js.map +1 -0
- package/dist/index.cjs508.js +2 -0
- package/dist/index.cjs508.js.map +1 -0
- package/dist/index.cjs509.js +2 -0
- package/dist/index.cjs509.js.map +1 -0
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs510.js +2 -0
- package/dist/index.cjs510.js.map +1 -0
- package/dist/index.cjs511.js +2 -0
- package/dist/index.cjs511.js.map +1 -0
- package/dist/index.cjs512.js +2 -0
- package/dist/index.cjs512.js.map +1 -0
- package/dist/index.cjs513.js +2 -0
- package/dist/index.cjs513.js.map +1 -0
- package/dist/index.cjs514.js +2 -0
- package/dist/index.cjs514.js.map +1 -0
- package/dist/index.cjs515.js +2 -0
- package/dist/index.cjs515.js.map +1 -0
- package/dist/index.cjs516.js +2 -0
- package/dist/index.cjs516.js.map +1 -0
- package/dist/index.cjs517.js +2 -0
- package/dist/index.cjs517.js.map +1 -0
- package/dist/index.cjs518.js +2 -0
- package/dist/index.cjs518.js.map +1 -0
- package/dist/index.cjs519.js +2 -0
- package/dist/index.cjs519.js.map +1 -0
- package/dist/index.cjs52.js +1 -1
- package/dist/index.cjs520.js +2 -0
- package/dist/index.cjs520.js.map +1 -0
- package/dist/index.cjs521.js +2 -0
- package/dist/index.cjs521.js.map +1 -0
- package/dist/index.cjs522.js +2 -0
- package/dist/index.cjs522.js.map +1 -0
- package/dist/index.cjs523.js +2 -0
- package/dist/index.cjs523.js.map +1 -0
- package/dist/index.cjs524.js +2 -0
- package/dist/index.cjs524.js.map +1 -0
- package/dist/index.cjs525.js +2 -0
- package/dist/index.cjs525.js.map +1 -0
- package/dist/index.cjs526.js +2 -0
- package/dist/index.cjs526.js.map +1 -0
- package/dist/index.cjs527.js +2 -0
- package/dist/index.cjs527.js.map +1 -0
- package/dist/index.cjs528.js +2 -0
- package/dist/index.cjs528.js.map +1 -0
- package/dist/index.cjs529.js +2 -0
- package/dist/index.cjs529.js.map +1 -0
- package/dist/index.cjs530.js +2 -0
- package/dist/index.cjs530.js.map +1 -0
- package/dist/index.cjs531.js +2 -0
- package/dist/index.cjs531.js.map +1 -0
- package/dist/index.cjs532.js +2 -0
- package/dist/index.cjs532.js.map +1 -0
- package/dist/index.cjs533.js +2 -0
- package/dist/index.cjs533.js.map +1 -0
- package/dist/index.cjs534.js +2 -0
- package/dist/index.cjs534.js.map +1 -0
- package/dist/index.cjs535.js +2 -0
- package/dist/index.cjs535.js.map +1 -0
- package/dist/index.cjs536.js +2 -0
- package/dist/index.cjs536.js.map +1 -0
- package/dist/index.cjs537.js +2 -0
- package/dist/index.cjs537.js.map +1 -0
- package/dist/index.cjs538.js +2 -0
- package/dist/index.cjs538.js.map +1 -0
- package/dist/index.cjs539.js +2 -0
- package/dist/index.cjs539.js.map +1 -0
- package/dist/index.cjs540.js +2 -0
- package/dist/index.cjs540.js.map +1 -0
- package/dist/index.cjs541.js +2 -0
- package/dist/index.cjs541.js.map +1 -0
- package/dist/index.cjs542.js +2 -0
- package/dist/index.cjs542.js.map +1 -0
- package/dist/index.cjs543.js +2 -0
- package/dist/index.cjs543.js.map +1 -0
- package/dist/index.cjs544.js +2 -0
- package/dist/index.cjs544.js.map +1 -0
- package/dist/index.cjs545.js +2 -0
- package/dist/index.cjs545.js.map +1 -0
- package/dist/index.cjs546.js +2 -0
- package/dist/index.cjs546.js.map +1 -0
- package/dist/index.cjs547.js +2 -0
- package/dist/index.cjs547.js.map +1 -0
- package/dist/index.cjs548.js +2 -0
- package/dist/index.cjs548.js.map +1 -0
- package/dist/index.cjs549.js +2 -0
- package/dist/index.cjs549.js.map +1 -0
- package/dist/index.cjs550.js +2 -0
- package/dist/index.cjs550.js.map +1 -0
- package/dist/index.cjs551.js +2 -0
- package/dist/index.cjs551.js.map +1 -0
- package/dist/index.cjs552.js +2 -0
- package/dist/index.cjs552.js.map +1 -0
- package/dist/index.cjs553.js +2 -0
- package/dist/index.cjs553.js.map +1 -0
- package/dist/index.cjs554.js +2 -0
- package/dist/index.cjs554.js.map +1 -0
- package/dist/index.cjs555.js +2 -0
- package/dist/index.cjs555.js.map +1 -0
- package/dist/index.cjs556.js +2 -0
- package/dist/index.cjs556.js.map +1 -0
- package/dist/index.cjs557.js +2 -0
- package/dist/index.cjs557.js.map +1 -0
- package/dist/index.cjs558.js +2 -0
- package/dist/index.cjs558.js.map +1 -0
- package/dist/index.cjs559.js +2 -0
- package/dist/index.cjs559.js.map +1 -0
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs560.js +2 -0
- package/dist/index.cjs560.js.map +1 -0
- package/dist/index.cjs561.js +2 -0
- package/dist/index.cjs561.js.map +1 -0
- package/dist/index.cjs562.js +2 -0
- package/dist/index.cjs562.js.map +1 -0
- package/dist/index.cjs563.js +2 -0
- package/dist/index.cjs563.js.map +1 -0
- package/dist/index.cjs564.js +9 -0
- package/dist/index.cjs564.js.map +1 -0
- package/dist/index.cjs565.js +2 -0
- package/dist/index.cjs565.js.map +1 -0
- package/dist/index.cjs566.js +2 -0
- package/dist/index.cjs566.js.map +1 -0
- package/dist/index.cjs567.js +2 -0
- package/dist/index.cjs567.js.map +1 -0
- package/dist/index.cjs568.js +2 -0
- package/dist/index.cjs568.js.map +1 -0
- package/dist/index.cjs569.js +2 -0
- package/dist/index.cjs569.js.map +1 -0
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs570.js +2 -0
- package/dist/index.cjs570.js.map +1 -0
- package/dist/index.cjs571.js +2 -0
- package/dist/index.cjs571.js.map +1 -0
- package/dist/index.cjs572.js +2 -0
- package/dist/index.cjs572.js.map +1 -0
- package/dist/index.cjs573.js +2 -0
- package/dist/index.cjs573.js.map +1 -0
- package/dist/index.cjs574.js +2 -0
- package/dist/index.cjs574.js.map +1 -0
- package/dist/index.cjs575.js +2 -0
- package/dist/index.cjs575.js.map +1 -0
- package/dist/index.cjs576.js +2 -0
- package/dist/index.cjs576.js.map +1 -0
- package/dist/index.cjs577.js +2 -0
- package/dist/index.cjs577.js.map +1 -0
- package/dist/index.cjs578.js +2 -0
- package/dist/index.cjs578.js.map +1 -0
- package/dist/index.cjs579.js +2 -0
- package/dist/index.cjs579.js.map +1 -0
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs580.js +2 -0
- package/dist/index.cjs580.js.map +1 -0
- package/dist/index.cjs581.js +2 -0
- package/dist/index.cjs581.js.map +1 -0
- package/dist/index.cjs582.js +2 -0
- package/dist/index.cjs582.js.map +1 -0
- package/dist/index.cjs583.js +2 -0
- package/dist/index.cjs583.js.map +1 -0
- package/dist/index.cjs584.js +2 -0
- package/dist/index.cjs584.js.map +1 -0
- package/dist/index.cjs585.js +2 -0
- package/dist/index.cjs585.js.map +1 -0
- package/dist/index.cjs586.js +2 -0
- package/dist/index.cjs586.js.map +1 -0
- package/dist/index.cjs587.js +2 -0
- package/dist/index.cjs587.js.map +1 -0
- package/dist/index.cjs588.js +2 -0
- package/dist/index.cjs588.js.map +1 -0
- package/dist/index.cjs589.js +2 -0
- package/dist/index.cjs589.js.map +1 -0
- package/dist/index.cjs590.js +2 -0
- package/dist/index.cjs590.js.map +1 -0
- package/dist/index.cjs591.js +2 -0
- package/dist/index.cjs591.js.map +1 -0
- package/dist/index.cjs592.js +2 -0
- package/dist/index.cjs592.js.map +1 -0
- package/dist/index.cjs593.js +2 -0
- package/dist/index.cjs593.js.map +1 -0
- package/dist/index.cjs594.js +2 -0
- package/dist/index.cjs594.js.map +1 -0
- package/dist/index.cjs595.js +2 -0
- package/dist/index.cjs595.js.map +1 -0
- package/dist/index.cjs596.js +2 -0
- package/dist/index.cjs596.js.map +1 -0
- package/dist/index.cjs597.js +2 -0
- package/dist/index.cjs597.js.map +1 -0
- package/dist/index.cjs598.js +2 -0
- package/dist/index.cjs598.js.map +1 -0
- package/dist/index.cjs599.js +2 -0
- package/dist/index.cjs599.js.map +1 -0
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs600.js +2 -0
- package/dist/index.cjs600.js.map +1 -0
- package/dist/index.cjs601.js +2 -0
- package/dist/index.cjs601.js.map +1 -0
- package/dist/index.cjs602.js +2 -0
- package/dist/index.cjs602.js.map +1 -0
- package/dist/index.cjs603.js +2 -0
- package/dist/index.cjs603.js.map +1 -0
- package/dist/index.cjs604.js +2 -0
- package/dist/index.cjs604.js.map +1 -0
- package/dist/index.cjs605.js +2 -0
- package/dist/index.cjs605.js.map +1 -0
- package/dist/index.cjs606.js +2 -0
- package/dist/index.cjs606.js.map +1 -0
- package/dist/index.cjs607.js +2 -0
- package/dist/index.cjs607.js.map +1 -0
- package/dist/index.cjs608.js +2 -0
- package/dist/index.cjs608.js.map +1 -0
- package/dist/index.cjs609.js +2 -0
- package/dist/index.cjs609.js.map +1 -0
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs610.js +2 -0
- package/dist/index.cjs610.js.map +1 -0
- package/dist/index.cjs611.js +2 -0
- package/dist/index.cjs611.js.map +1 -0
- package/dist/index.cjs612.js +2 -0
- package/dist/index.cjs612.js.map +1 -0
- package/dist/index.cjs613.js +2 -0
- package/dist/index.cjs613.js.map +1 -0
- package/dist/index.cjs614.js +2 -0
- package/dist/index.cjs614.js.map +1 -0
- package/dist/index.cjs615.js +2 -0
- package/dist/index.cjs615.js.map +1 -0
- package/dist/index.cjs616.js +4 -0
- package/dist/index.cjs616.js.map +1 -0
- package/dist/index.cjs617.js +2 -0
- package/dist/index.cjs617.js.map +1 -0
- package/dist/index.cjs618.js +2 -0
- package/dist/index.cjs618.js.map +1 -0
- package/dist/index.cjs619.js +2 -0
- package/dist/index.cjs619.js.map +1 -0
- package/dist/index.cjs620.js +2 -0
- package/dist/index.cjs620.js.map +1 -0
- package/dist/index.cjs621.js +2 -0
- package/dist/index.cjs621.js.map +1 -0
- package/dist/index.cjs622.js +61 -0
- package/dist/index.cjs622.js.map +1 -0
- package/dist/index.cjs623.js +2 -0
- package/dist/index.cjs623.js.map +1 -0
- package/dist/index.cjs624.js +2 -0
- package/dist/index.cjs624.js.map +1 -0
- package/dist/index.cjs625.js +2 -0
- package/dist/index.cjs625.js.map +1 -0
- package/dist/index.cjs626.js +2 -0
- package/dist/index.cjs626.js.map +1 -0
- package/dist/index.cjs627.js +2 -0
- package/dist/index.cjs627.js.map +1 -0
- package/dist/index.cjs628.js +2 -0
- package/dist/index.cjs628.js.map +1 -0
- package/dist/index.cjs629.js +2 -0
- package/dist/index.cjs629.js.map +1 -0
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs630.js +4 -0
- package/dist/index.cjs630.js.map +1 -0
- package/dist/index.cjs631.js +2 -0
- package/dist/index.cjs631.js.map +1 -0
- package/dist/index.cjs632.js +2 -0
- package/dist/index.cjs632.js.map +1 -0
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js +1 -440
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.es100.js +1 -1
- package/dist/index.es101.js +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +1 -1
- package/dist/index.es105.js +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es107.js +1 -1
- package/dist/index.es108.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es114.js +3 -3
- package/dist/index.es115.js +1 -1
- package/dist/index.es116.js +2 -2
- package/dist/index.es117.js +1 -1
- package/dist/index.es12.js +6 -7
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es123.js +1 -1
- package/dist/index.es124.js +1 -1
- package/dist/index.es125.js +1 -1
- package/dist/index.es128.js +2 -2
- package/dist/index.es129.js +2 -2
- package/dist/index.es13.js +8 -8
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js +1 -1
- package/dist/index.es134.js +2 -2
- package/dist/index.es137.js +1 -1
- package/dist/index.es141.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es152.js +1 -1
- package/dist/index.es153.js +1 -1
- package/dist/index.es154.js +1 -1
- package/dist/index.es155.js +2 -2
- package/dist/index.es156.js +1 -1
- package/dist/index.es157.js +1 -1
- package/dist/index.es158.js +1 -1
- package/dist/index.es16.js +4 -4
- package/dist/index.es160.js +2 -2
- package/dist/index.es161.js +2 -2
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +1 -1
- package/dist/index.es164.js +1 -1
- package/dist/index.es165.js +1 -1
- package/dist/index.es166.js +2 -2
- package/dist/index.es167.js +2 -2
- package/dist/index.es168.js +1 -1
- package/dist/index.es17.js +3 -3
- package/dist/index.es171.js +2 -2
- package/dist/index.es172.js +2 -2
- package/dist/index.es174.js +2 -2
- package/dist/index.es175.js +1 -1
- package/dist/index.es176.js +2 -2
- package/dist/index.es177.js +1 -1
- package/dist/index.es178.js +2 -2
- package/dist/index.es179.js +1 -1
- package/dist/index.es18.js +3 -3
- package/dist/index.es180.js +1 -1
- package/dist/index.es181.js +1 -1
- package/dist/index.es187.js +1 -1
- package/dist/index.es188.js +2 -2
- package/dist/index.es189.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es191.js +1 -1
- package/dist/index.es194.js +28 -145
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js +201 -16
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es196.js +8 -6
- package/dist/index.es196.js.map +1 -1
- package/dist/index.es197.js +7 -5
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +7 -3
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +2 -2
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es200.js +3 -38
- package/dist/index.es200.js.map +1 -1
- package/dist/index.es201.js +38 -3
- package/dist/index.es201.js.map +1 -1
- package/dist/index.es202.js +3 -25
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +25 -2
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js +1 -2
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js +2 -1
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es206.js +2 -33
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es207.js +31 -13
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js +11 -12
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js +13 -8
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es210.js +8 -242
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es211.js +60 -41
- package/dist/index.es211.js.map +1 -1
- package/dist/index.es212.js +63 -3
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js +36 -10
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js +476 -10
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es215.js +164 -30
- package/dist/index.es215.js.map +1 -1
- package/dist/index.es216.js +71 -13
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +49 -4
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +379 -7
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js +18 -6
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es220.js +124 -4
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es221.js +355 -3
- package/dist/index.es221.js.map +1 -1
- package/dist/index.es222.js +218 -3
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js +23 -9
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js +58 -18
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es225.js +104 -19
- package/dist/index.es225.js.map +1 -1
- package/dist/index.es226.js +29 -13
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js +29 -15
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es228.js +96 -5
- package/dist/index.es228.js.map +1 -1
- package/dist/index.es229.js +35 -8
- package/dist/index.es229.js.map +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es230.js +18 -7
- package/dist/index.es230.js.map +1 -1
- package/dist/index.es231.js +52 -21
- package/dist/index.es231.js.map +1 -1
- package/dist/index.es232.js +7 -10
- package/dist/index.es232.js.map +1 -1
- package/dist/index.es233.js +527 -9
- package/dist/index.es233.js.map +1 -1
- package/dist/index.es234.js +26 -4
- package/dist/index.es234.js.map +1 -1
- package/dist/index.es235.js +7 -10
- package/dist/index.es235.js.map +1 -1
- package/dist/index.es236.js +4 -7
- package/dist/index.es236.js.map +1 -1
- package/dist/index.es237.js +4 -21
- package/dist/index.es237.js.map +1 -1
- package/dist/index.es238.js +3 -11
- package/dist/index.es238.js.map +1 -1
- package/dist/index.es239.js +3 -18
- package/dist/index.es239.js.map +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es240.js +8 -3
- package/dist/index.es240.js.map +1 -1
- package/dist/index.es241.js +17 -16
- package/dist/index.es241.js.map +1 -1
- package/dist/index.es242.js +19 -10
- package/dist/index.es242.js.map +1 -1
- package/dist/index.es243.js +12 -3
- package/dist/index.es243.js.map +1 -1
- package/dist/index.es244.js +14 -4
- package/dist/index.es244.js.map +1 -1
- package/dist/index.es245.js +5 -7506
- package/dist/index.es245.js.map +1 -1
- package/dist/index.es246.js +8 -2
- package/dist/index.es246.js.map +1 -1
- package/dist/index.es247.js +6 -20
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es248.js +21 -22
- package/dist/index.es248.js.map +1 -1
- package/dist/index.es249.js +8 -6
- package/dist/index.es249.js.map +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es250.js +8 -5
- package/dist/index.es250.js.map +1 -1
- package/dist/index.es251.js +4 -3
- package/dist/index.es251.js.map +1 -1
- package/dist/index.es252.js +10 -24
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +7 -16
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +20 -30
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +10 -21
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +16 -73
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +4 -21
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es258.js +16 -39
- package/dist/index.es258.js.map +1 -1
- package/dist/index.es259.js +11 -49
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js +2 -2
- package/dist/index.es260.js +3 -7
- package/dist/index.es260.js.map +1 -1
- package/dist/index.es261.js +4 -20
- package/dist/index.es261.js.map +1 -1
- package/dist/index.es262.js +242 -65
- package/dist/index.es262.js.map +1 -1
- package/dist/index.es263.js +40 -40
- package/dist/index.es263.js.map +1 -1
- package/dist/index.es264.js +3 -64
- package/dist/index.es264.js.map +1 -1
- package/dist/index.es265.js +9 -7
- package/dist/index.es265.js.map +1 -1
- package/dist/index.es266.js +10 -3
- package/dist/index.es266.js.map +1 -1
- package/dist/index.es267.js +29 -11
- package/dist/index.es267.js.map +1 -1
- package/dist/index.es268.js +12 -58
- package/dist/index.es268.js.map +1 -1
- package/dist/index.es269.js +4 -49
- package/dist/index.es269.js.map +1 -1
- package/dist/index.es27.js +2 -2
- package/dist/index.es270.js +21 -14
- package/dist/index.es270.js.map +1 -1
- package/dist/index.es271.js +20 -2
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +7506 -4
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +2 -70
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +3 -4
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es275.js +268 -21
- package/dist/index.es275.js.map +1 -1
- package/dist/index.es276.js +11 -0
- package/dist/index.es276.js.map +1 -0
- package/dist/index.es277.js +9 -0
- package/dist/index.es277.js.map +1 -0
- package/dist/index.es278.js +24 -0
- package/dist/index.es278.js.map +1 -0
- package/dist/index.es279.js +26 -0
- package/dist/index.es279.js.map +1 -0
- package/dist/index.es280.js +28 -0
- package/dist/index.es280.js.map +1 -0
- package/dist/index.es281.js +20 -0
- package/dist/index.es281.js.map +1 -0
- package/dist/index.es282.js +34 -0
- package/dist/index.es282.js.map +1 -0
- package/dist/index.es283.js +25 -0
- package/dist/index.es283.js.map +1 -0
- package/dist/index.es284.js +78 -0
- package/dist/index.es284.js.map +1 -0
- package/dist/index.es285.js +24 -0
- package/dist/index.es285.js.map +1 -0
- package/dist/index.es286.js +44 -0
- package/dist/index.es286.js.map +1 -0
- package/dist/index.es287.js +53 -0
- package/dist/index.es287.js.map +1 -0
- package/dist/index.es288.js +11 -0
- package/dist/index.es288.js.map +1 -0
- package/dist/index.es289.js +24 -0
- package/dist/index.es289.js.map +1 -0
- package/dist/index.es290.js +69 -0
- package/dist/index.es290.js.map +1 -0
- package/dist/index.es291.js +46 -0
- package/dist/index.es291.js.map +1 -0
- package/dist/index.es292.js +67 -0
- package/dist/index.es292.js.map +1 -0
- package/dist/index.es293.js +12 -0
- package/dist/index.es293.js.map +1 -0
- package/dist/index.es294.js +7 -0
- package/dist/index.es294.js.map +1 -0
- package/dist/index.es295.js +16 -0
- package/dist/index.es295.js.map +1 -0
- package/dist/index.es296.js +63 -0
- package/dist/index.es296.js.map +1 -0
- package/dist/index.es297.js +53 -0
- package/dist/index.es297.js.map +1 -0
- package/dist/index.es298.js +418 -0
- package/dist/index.es298.js.map +1 -0
- package/dist/index.es299.js +80 -0
- package/dist/index.es299.js.map +1 -0
- package/dist/index.es300.js +246 -0
- package/dist/index.es300.js.map +1 -0
- package/dist/index.es301.js +33 -0
- package/dist/index.es301.js.map +1 -0
- package/dist/index.es302.js +157 -0
- package/dist/index.es302.js.map +1 -0
- package/dist/index.es303.js +21 -0
- package/dist/index.es303.js.map +1 -0
- package/dist/index.es304.js +17 -0
- package/dist/index.es304.js.map +1 -0
- package/dist/index.es305.js +565 -0
- package/dist/index.es305.js.map +1 -0
- package/dist/index.es306.js +354 -0
- package/dist/index.es306.js.map +1 -0
- package/dist/index.es307.js +67 -0
- package/dist/index.es307.js.map +1 -0
- package/dist/index.es308.js +50 -0
- package/dist/index.es308.js.map +1 -0
- package/dist/index.es309.js +215 -0
- package/dist/index.es309.js.map +1 -0
- package/dist/index.es310.js +65 -0
- package/dist/index.es310.js.map +1 -0
- package/dist/index.es311.js +63 -0
- package/dist/index.es311.js.map +1 -0
- package/dist/index.es312.js +49 -0
- package/dist/index.es312.js.map +1 -0
- package/dist/index.es313.js +55 -0
- package/dist/index.es313.js.map +1 -0
- package/dist/index.es314.js +329 -0
- package/dist/index.es314.js.map +1 -0
- package/dist/index.es315.js +314 -0
- package/dist/index.es315.js.map +1 -0
- package/dist/index.es316.js +259 -0
- package/dist/index.es316.js.map +1 -0
- package/dist/index.es317.js +60 -0
- package/dist/index.es317.js.map +1 -0
- package/dist/index.es318.js +218 -0
- package/dist/index.es318.js.map +1 -0
- package/dist/index.es319.js +204 -0
- package/dist/index.es319.js.map +1 -0
- package/dist/index.es320.js +20 -0
- package/dist/index.es320.js.map +1 -0
- package/dist/index.es321.js +30 -0
- package/dist/index.es321.js.map +1 -0
- package/dist/index.es322.js +204 -0
- package/dist/index.es322.js.map +1 -0
- package/dist/index.es323.js +9 -0
- package/dist/index.es323.js.map +1 -0
- package/dist/index.es324.js +89 -0
- package/dist/index.es324.js.map +1 -0
- package/dist/index.es325.js +62 -0
- package/dist/index.es325.js.map +1 -0
- package/dist/index.es326.js +17 -0
- package/dist/index.es326.js.map +1 -0
- package/dist/index.es327.js +107 -0
- package/dist/index.es327.js.map +1 -0
- package/dist/index.es328.js +19 -0
- package/dist/index.es328.js.map +1 -0
- package/dist/index.es329.js +30 -0
- package/dist/index.es329.js.map +1 -0
- package/dist/index.es330.js +132 -0
- package/dist/index.es330.js.map +1 -0
- package/dist/index.es331.js +20 -0
- package/dist/index.es331.js.map +1 -0
- package/dist/index.es332.js +8 -0
- package/dist/index.es332.js.map +1 -0
- package/dist/index.es333.js +69 -0
- package/dist/index.es333.js.map +1 -0
- package/dist/index.es334.js +164 -0
- package/dist/index.es334.js.map +1 -0
- package/dist/index.es335.js +142 -0
- package/dist/index.es335.js.map +1 -0
- package/dist/index.es336.js +31 -0
- package/dist/index.es336.js.map +1 -0
- package/dist/index.es337.js +6 -0
- package/dist/index.es337.js.map +1 -0
- package/dist/index.es338.js +8 -0
- package/dist/index.es338.js.map +1 -0
- package/dist/index.es339.js +73 -0
- package/dist/index.es339.js.map +1 -0
- package/dist/index.es340.js +19 -0
- package/dist/index.es340.js.map +1 -0
- package/dist/index.es341.js +65 -0
- package/dist/index.es341.js.map +1 -0
- package/dist/index.es342.js +47 -0
- package/dist/index.es342.js.map +1 -0
- package/dist/index.es343.js +25 -0
- package/dist/index.es343.js.map +1 -0
- package/dist/index.es344.js +11 -0
- package/dist/index.es344.js.map +1 -0
- package/dist/index.es345.js +40 -0
- package/dist/index.es345.js.map +1 -0
- package/dist/index.es346.js +132 -0
- package/dist/index.es346.js.map +1 -0
- package/dist/index.es347.js +48 -0
- package/dist/index.es347.js.map +1 -0
- package/dist/index.es348.js +223 -0
- package/dist/index.es348.js.map +1 -0
- package/dist/index.es349.js +40 -0
- package/dist/index.es349.js.map +1 -0
- package/dist/index.es350.js +286 -0
- package/dist/index.es350.js.map +1 -0
- package/dist/index.es351.js +63 -0
- package/dist/index.es351.js.map +1 -0
- package/dist/index.es352.js +54 -0
- package/dist/index.es352.js.map +1 -0
- package/dist/index.es353.js +251 -0
- package/dist/index.es353.js.map +1 -0
- package/dist/index.es354.js +30 -0
- package/dist/index.es354.js.map +1 -0
- package/dist/index.es355.js +7 -0
- package/dist/index.es355.js.map +1 -0
- package/dist/index.es356.js +7 -0
- package/dist/index.es356.js.map +1 -0
- package/dist/index.es357.js +28 -0
- package/dist/index.es357.js.map +1 -0
- package/dist/index.es358.js +261 -0
- package/dist/index.es358.js.map +1 -0
- package/dist/index.es359.js +108 -0
- package/dist/index.es359.js.map +1 -0
- package/dist/index.es360.js +206 -0
- package/dist/index.es360.js.map +1 -0
- package/dist/index.es361.js +45 -0
- package/dist/index.es361.js.map +1 -0
- package/dist/index.es362.js +18 -0
- package/dist/index.es362.js.map +1 -0
- package/dist/index.es363.js +11 -0
- package/dist/index.es363.js.map +1 -0
- package/dist/index.es364.js +64 -0
- package/dist/index.es364.js.map +1 -0
- package/dist/index.es365.js +50 -0
- package/dist/index.es365.js.map +1 -0
- package/dist/index.es366.js +45 -0
- package/dist/index.es366.js.map +1 -0
- package/dist/index.es367.js +92 -0
- package/dist/index.es367.js.map +1 -0
- package/dist/index.es368.js +89 -0
- package/dist/index.es368.js.map +1 -0
- package/dist/index.es369.js +57 -0
- package/dist/index.es369.js.map +1 -0
- package/dist/index.es370.js +61 -0
- package/dist/index.es370.js.map +1 -0
- package/dist/index.es371.js +58 -0
- package/dist/index.es371.js.map +1 -0
- package/dist/index.es372.js +147 -0
- package/dist/index.es372.js.map +1 -0
- package/dist/index.es373.js +58 -0
- package/dist/index.es373.js.map +1 -0
- package/dist/index.es374.js +85 -0
- package/dist/index.es374.js.map +1 -0
- package/dist/index.es375.js +9 -0
- package/dist/index.es375.js.map +1 -0
- package/dist/index.es376.js +48 -0
- package/dist/index.es376.js.map +1 -0
- package/dist/index.es377.js +13 -0
- package/dist/index.es377.js.map +1 -0
- package/dist/index.es378.js +35 -0
- package/dist/index.es378.js.map +1 -0
- package/dist/index.es379.js +31 -0
- package/dist/index.es379.js.map +1 -0
- package/dist/index.es38.js +1 -1
- package/dist/index.es380.js +1360 -0
- package/dist/index.es380.js.map +1 -0
- package/dist/index.es381.js +9 -0
- package/dist/index.es381.js.map +1 -0
- package/dist/index.es382.js +12 -0
- package/dist/index.es382.js.map +1 -0
- package/dist/index.es383.js +10 -0
- package/dist/index.es383.js.map +1 -0
- package/dist/index.es384.js +120 -0
- package/dist/index.es384.js.map +1 -0
- package/dist/index.es385.js +105 -0
- package/dist/index.es385.js.map +1 -0
- package/dist/index.es386.js +23 -0
- package/dist/index.es386.js.map +1 -0
- package/dist/index.es387.js +95 -0
- package/dist/index.es387.js.map +1 -0
- package/dist/index.es388.js +68 -0
- package/dist/index.es388.js.map +1 -0
- package/dist/index.es389.js +16 -0
- package/dist/index.es389.js.map +1 -0
- package/dist/index.es39.js +1 -1
- package/dist/index.es390.js +61 -0
- package/dist/index.es390.js.map +1 -0
- package/dist/index.es391.js +55 -0
- package/dist/index.es391.js.map +1 -0
- package/dist/index.es392.js +23 -0
- package/dist/index.es392.js.map +1 -0
- package/dist/index.es393.js +34 -0
- package/dist/index.es393.js.map +1 -0
- package/dist/index.es394.js +47 -0
- package/dist/index.es394.js.map +1 -0
- package/dist/index.es395.js +35 -0
- package/dist/index.es395.js.map +1 -0
- package/dist/index.es396.js +59 -0
- package/dist/index.es396.js.map +1 -0
- package/dist/index.es397.js +62 -0
- package/dist/index.es397.js.map +1 -0
- package/dist/index.es398.js +32 -0
- package/dist/index.es398.js.map +1 -0
- package/dist/index.es399.js +53 -0
- package/dist/index.es399.js.map +1 -0
- package/dist/index.es40.js +2 -2
- package/dist/index.es400.js +128 -0
- package/dist/index.es400.js.map +1 -0
- package/dist/index.es401.js +44 -0
- package/dist/index.es401.js.map +1 -0
- package/dist/index.es402.js +29 -0
- package/dist/index.es402.js.map +1 -0
- package/dist/index.es403.js +37 -0
- package/dist/index.es403.js.map +1 -0
- package/dist/index.es404.js +28 -0
- package/dist/index.es404.js.map +1 -0
- package/dist/index.es405.js +69 -0
- package/dist/index.es405.js.map +1 -0
- package/dist/index.es406.js +49 -0
- package/dist/index.es406.js.map +1 -0
- package/dist/index.es407.js +27 -0
- package/dist/index.es407.js.map +1 -0
- package/dist/index.es408.js +48 -0
- package/dist/index.es408.js.map +1 -0
- package/dist/index.es409.js +19 -0
- package/dist/index.es409.js.map +1 -0
- package/dist/index.es410.js +38 -0
- package/dist/index.es410.js.map +1 -0
- package/dist/index.es411.js +49 -0
- package/dist/index.es411.js.map +1 -0
- package/dist/index.es412.js +35 -0
- package/dist/index.es412.js.map +1 -0
- package/dist/index.es413.js +37 -0
- package/dist/index.es413.js.map +1 -0
- package/dist/index.es414.js +29 -0
- package/dist/index.es414.js.map +1 -0
- package/dist/index.es415.js +68 -0
- package/dist/index.es415.js.map +1 -0
- package/dist/index.es416.js +105 -0
- package/dist/index.es416.js.map +1 -0
- package/dist/index.es417.js +27 -0
- package/dist/index.es417.js.map +1 -0
- package/dist/index.es418.js +111 -0
- package/dist/index.es418.js.map +1 -0
- package/dist/index.es419.js +50 -0
- package/dist/index.es419.js.map +1 -0
- package/dist/index.es42.js +2 -2
- package/dist/index.es420.js +36 -0
- package/dist/index.es420.js.map +1 -0
- package/dist/index.es421.js +56 -0
- package/dist/index.es421.js.map +1 -0
- package/dist/index.es422.js +174 -0
- package/dist/index.es422.js.map +1 -0
- package/dist/index.es423.js +61 -0
- package/dist/index.es423.js.map +1 -0
- package/dist/index.es424.js +62 -0
- package/dist/index.es424.js.map +1 -0
- package/dist/index.es425.js +87 -0
- package/dist/index.es425.js.map +1 -0
- package/dist/index.es426.js +26 -0
- package/dist/index.es426.js.map +1 -0
- package/dist/index.es427.js +56 -0
- package/dist/index.es427.js.map +1 -0
- package/dist/index.es428.js +55 -0
- package/dist/index.es428.js.map +1 -0
- package/dist/index.es429.js +8 -0
- package/dist/index.es429.js.map +1 -0
- package/dist/index.es43.js +2 -2
- package/dist/index.es430.js +8 -0
- package/dist/index.es430.js.map +1 -0
- package/dist/index.es431.js +23 -0
- package/dist/index.es431.js.map +1 -0
- package/dist/index.es432.js +7 -0
- package/dist/index.es432.js.map +1 -0
- package/dist/index.es433.js +11 -0
- package/dist/index.es433.js.map +1 -0
- package/dist/index.es434.js +10 -0
- package/dist/index.es434.js.map +1 -0
- package/dist/index.es435.js +7 -0
- package/dist/index.es435.js.map +1 -0
- package/dist/index.es436.js +5 -0
- package/dist/index.es436.js.map +1 -0
- package/dist/index.es437.js +9 -0
- package/dist/index.es437.js.map +1 -0
- package/dist/index.es438.js +13 -0
- package/dist/index.es438.js.map +1 -0
- package/dist/index.es439.js +8 -0
- package/dist/index.es439.js.map +1 -0
- package/dist/index.es44.js +2 -2
- package/dist/index.es440.js +7 -0
- package/dist/index.es440.js.map +1 -0
- package/dist/index.es441.js +6 -0
- package/dist/index.es441.js.map +1 -0
- package/dist/index.es442.js +7 -0
- package/dist/index.es442.js.map +1 -0
- package/dist/index.es443.js +9 -0
- package/dist/index.es443.js.map +1 -0
- package/dist/index.es444.js +11 -0
- package/dist/index.es444.js.map +1 -0
- package/dist/index.es445.js +8 -0
- package/dist/index.es445.js.map +1 -0
- package/dist/index.es446.js +10 -0
- package/dist/index.es446.js.map +1 -0
- package/dist/index.es447.js +9 -0
- package/dist/index.es447.js.map +1 -0
- package/dist/index.es448.js +12 -0
- package/dist/index.es448.js.map +1 -0
- package/dist/index.es449.js +8 -0
- package/dist/index.es449.js.map +1 -0
- package/dist/index.es450.js +10 -0
- package/dist/index.es450.js.map +1 -0
- package/dist/index.es451.js +10 -0
- package/dist/index.es451.js.map +1 -0
- package/dist/index.es452.js +8 -0
- package/dist/index.es452.js.map +1 -0
- package/dist/index.es453.js +13 -0
- package/dist/index.es453.js.map +1 -0
- package/dist/index.es454.js +10 -0
- package/dist/index.es454.js.map +1 -0
- package/dist/index.es455.js +21 -0
- package/dist/index.es455.js.map +1 -0
- package/dist/index.es456.js +15 -0
- package/dist/index.es456.js.map +1 -0
- package/dist/index.es457.js +7 -0
- package/dist/index.es457.js.map +1 -0
- package/dist/index.es458.js +9 -0
- package/dist/index.es458.js.map +1 -0
- package/dist/index.es459.js +19 -0
- package/dist/index.es459.js.map +1 -0
- package/dist/index.es46.js +1 -1
- package/dist/index.es460.js +11 -0
- package/dist/index.es460.js.map +1 -0
- package/dist/index.es461.js +44 -0
- package/dist/index.es461.js.map +1 -0
- package/dist/index.es462.js +80 -0
- package/dist/index.es462.js.map +1 -0
- package/dist/index.es463.js +108 -0
- package/dist/index.es463.js.map +1 -0
- package/dist/index.es464.js +34 -0
- package/dist/index.es464.js.map +1 -0
- package/dist/index.es465.js +25 -0
- package/dist/index.es465.js.map +1 -0
- package/dist/index.es466.js +14 -0
- package/dist/index.es466.js.map +1 -0
- package/dist/index.es467.js +721 -0
- package/dist/index.es467.js.map +1 -0
- package/dist/index.es468.js +26 -0
- package/dist/index.es468.js.map +1 -0
- package/dist/index.es469.js +24 -0
- package/dist/index.es469.js.map +1 -0
- package/dist/index.es47.js +2 -2
- package/dist/index.es470.js +178 -0
- package/dist/index.es470.js.map +1 -0
- package/dist/index.es471.js +24 -0
- package/dist/index.es471.js.map +1 -0
- package/dist/index.es472.js +241 -0
- package/dist/index.es472.js.map +1 -0
- package/dist/index.es473.js +11 -0
- package/dist/index.es473.js.map +1 -0
- package/dist/index.es474.js +13 -0
- package/dist/index.es474.js.map +1 -0
- package/dist/index.es475.js +9 -0
- package/dist/index.es475.js.map +1 -0
- package/dist/index.es476.js +18 -0
- package/dist/index.es476.js.map +1 -0
- package/dist/index.es477.js +26 -0
- package/dist/index.es477.js.map +1 -0
- package/dist/index.es478.js +12 -0
- package/dist/index.es478.js.map +1 -0
- package/dist/index.es479.js +8 -0
- package/dist/index.es479.js.map +1 -0
- package/dist/index.es48.js +2 -2
- package/dist/index.es480.js +118 -0
- package/dist/index.es480.js.map +1 -0
- package/dist/index.es481.js +90 -0
- package/dist/index.es481.js.map +1 -0
- package/dist/index.es482.js +78 -0
- package/dist/index.es482.js.map +1 -0
- package/dist/index.es483.js +13 -0
- package/dist/index.es483.js.map +1 -0
- package/dist/index.es484.js +158 -0
- package/dist/index.es484.js.map +1 -0
- package/dist/index.es485.js +160 -0
- package/dist/index.es485.js.map +1 -0
- package/dist/index.es486.js +18 -0
- package/dist/index.es486.js.map +1 -0
- package/dist/index.es487.js +19 -0
- package/dist/index.es487.js.map +1 -0
- package/dist/index.es488.js +9 -0
- package/dist/index.es488.js.map +1 -0
- package/dist/index.es489.js +10 -0
- package/dist/index.es489.js.map +1 -0
- package/dist/index.es490.js +10 -0
- package/dist/index.es490.js.map +1 -0
- package/dist/index.es491.js +29 -0
- package/dist/index.es491.js.map +1 -0
- package/dist/index.es492.js +9 -0
- package/dist/index.es492.js.map +1 -0
- package/dist/index.es493.js +43 -0
- package/dist/index.es493.js.map +1 -0
- package/dist/index.es494.js +10 -0
- package/dist/index.es494.js.map +1 -0
- package/dist/index.es495.js +11 -0
- package/dist/index.es495.js.map +1 -0
- package/dist/index.es496.js +9 -0
- package/dist/index.es496.js.map +1 -0
- package/dist/index.es497.js +9 -0
- package/dist/index.es497.js.map +1 -0
- package/dist/index.es498.js +6 -0
- package/dist/index.es498.js.map +1 -0
- package/dist/index.es499.js +42 -0
- package/dist/index.es499.js.map +1 -0
- package/dist/index.es50.js +1 -1
- package/dist/index.es500.js +6 -0
- package/dist/index.es500.js.map +1 -0
- package/dist/index.es501.js +16 -0
- package/dist/index.es501.js.map +1 -0
- package/dist/index.es502.js +8 -0
- package/dist/index.es502.js.map +1 -0
- package/dist/index.es503.js +12 -0
- package/dist/index.es503.js.map +1 -0
- package/dist/index.es504.js +5 -0
- package/dist/index.es504.js.map +1 -0
- package/dist/index.es505.js +33 -0
- package/dist/index.es505.js.map +1 -0
- package/dist/index.es506.js +19 -0
- package/dist/index.es506.js.map +1 -0
- package/dist/index.es507.js +8 -0
- package/dist/index.es507.js.map +1 -0
- package/dist/index.es508.js +6 -0
- package/dist/index.es508.js.map +1 -0
- package/dist/index.es509.js +9 -0
- package/dist/index.es509.js.map +1 -0
- package/dist/index.es51.js +1 -1
- package/dist/index.es510.js +9 -0
- package/dist/index.es510.js.map +1 -0
- package/dist/index.es511.js +9 -0
- package/dist/index.es511.js.map +1 -0
- package/dist/index.es512.js +7 -0
- package/dist/index.es512.js.map +1 -0
- package/dist/index.es513.js +7 -0
- package/dist/index.es513.js.map +1 -0
- package/dist/index.es514.js +7 -0
- package/dist/index.es514.js.map +1 -0
- package/dist/index.es515.js +7 -0
- package/dist/index.es515.js.map +1 -0
- package/dist/index.es516.js +7 -0
- package/dist/index.es516.js.map +1 -0
- package/dist/index.es517.js +18 -0
- package/dist/index.es517.js.map +1 -0
- package/dist/index.es518.js +11 -0
- package/dist/index.es518.js.map +1 -0
- package/dist/index.es519.js +7 -0
- package/dist/index.es519.js.map +1 -0
- package/dist/index.es52.js +1 -1
- package/dist/index.es520.js +15 -0
- package/dist/index.es520.js.map +1 -0
- package/dist/index.es521.js +9 -0
- package/dist/index.es521.js.map +1 -0
- package/dist/index.es522.js +7 -0
- package/dist/index.es522.js.map +1 -0
- package/dist/index.es523.js +8 -0
- package/dist/index.es523.js.map +1 -0
- package/dist/index.es524.js +9 -0
- package/dist/index.es524.js.map +1 -0
- package/dist/index.es525.js +10 -0
- package/dist/index.es525.js.map +1 -0
- package/dist/index.es526.js +9 -0
- package/dist/index.es526.js.map +1 -0
- package/dist/index.es527.js +9 -0
- package/dist/index.es527.js.map +1 -0
- package/dist/index.es528.js +11 -0
- package/dist/index.es528.js.map +1 -0
- package/dist/index.es529.js +14 -0
- package/dist/index.es529.js.map +1 -0
- package/dist/index.es530.js +28 -0
- package/dist/index.es530.js.map +1 -0
- package/dist/index.es531.js +8 -0
- package/dist/index.es531.js.map +1 -0
- package/dist/index.es532.js +9 -0
- package/dist/index.es532.js.map +1 -0
- package/dist/index.es533.js +11 -0
- package/dist/index.es533.js.map +1 -0
- package/dist/index.es534.js +7 -0
- package/dist/index.es534.js.map +1 -0
- package/dist/index.es535.js +7 -0
- package/dist/index.es535.js.map +1 -0
- package/dist/index.es536.js +7 -0
- package/dist/index.es536.js.map +1 -0
- package/dist/index.es537.js +7 -0
- package/dist/index.es537.js.map +1 -0
- package/dist/index.es538.js +7 -0
- package/dist/index.es538.js.map +1 -0
- package/dist/index.es539.js +8 -0
- package/dist/index.es539.js.map +1 -0
- package/dist/index.es540.js +9 -0
- package/dist/index.es540.js.map +1 -0
- package/dist/index.es541.js +12 -0
- package/dist/index.es541.js.map +1 -0
- package/dist/index.es542.js +8 -0
- package/dist/index.es542.js.map +1 -0
- package/dist/index.es543.js +9 -0
- package/dist/index.es543.js.map +1 -0
- package/dist/index.es544.js +8 -0
- package/dist/index.es544.js.map +1 -0
- package/dist/index.es545.js +7 -0
- package/dist/index.es545.js.map +1 -0
- package/dist/index.es546.js +14 -0
- package/dist/index.es546.js.map +1 -0
- package/dist/index.es547.js +34 -0
- package/dist/index.es547.js.map +1 -0
- package/dist/index.es548.js +83 -0
- package/dist/index.es548.js.map +1 -0
- package/dist/index.es549.js +20 -0
- package/dist/index.es549.js.map +1 -0
- package/dist/index.es550.js +50 -0
- package/dist/index.es550.js.map +1 -0
- package/dist/index.es551.js +227 -0
- package/dist/index.es551.js.map +1 -0
- package/dist/index.es552.js +21 -0
- package/dist/index.es552.js.map +1 -0
- package/dist/index.es553.js +14 -0
- package/dist/index.es553.js.map +1 -0
- package/dist/index.es554.js +9 -0
- package/dist/index.es554.js.map +1 -0
- package/dist/index.es555.js +8 -0
- package/dist/index.es555.js.map +1 -0
- package/dist/index.es556.js +8 -0
- package/dist/index.es556.js.map +1 -0
- package/dist/index.es557.js +9 -0
- package/dist/index.es557.js.map +1 -0
- package/dist/index.es558.js +10 -0
- package/dist/index.es558.js.map +1 -0
- package/dist/index.es559.js +10 -0
- package/dist/index.es559.js.map +1 -0
- package/dist/index.es56.js +2 -2
- package/dist/index.es560.js +10 -0
- package/dist/index.es560.js.map +1 -0
- package/dist/index.es561.js +10 -0
- package/dist/index.es561.js.map +1 -0
- package/dist/index.es562.js +17 -0
- package/dist/index.es562.js.map +1 -0
- package/dist/index.es563.js +12 -0
- package/dist/index.es563.js.map +1 -0
- package/dist/index.es564.js +3029 -0
- package/dist/index.es564.js.map +1 -0
- package/dist/index.es565.js +5 -0
- package/dist/index.es565.js.map +1 -0
- package/dist/index.es566.js +11 -0
- package/dist/index.es566.js.map +1 -0
- package/dist/index.es567.js +10 -0
- package/dist/index.es567.js.map +1 -0
- package/dist/index.es568.js +21 -0
- package/dist/index.es568.js.map +1 -0
- package/dist/index.es569.js +14 -0
- package/dist/index.es569.js.map +1 -0
- package/dist/index.es57.js +3 -3
- package/dist/index.es570.js +8 -0
- package/dist/index.es570.js.map +1 -0
- package/dist/index.es571.js +7 -0
- package/dist/index.es571.js.map +1 -0
- package/dist/index.es572.js +7 -0
- package/dist/index.es572.js.map +1 -0
- package/dist/index.es573.js +21 -0
- package/dist/index.es573.js.map +1 -0
- package/dist/index.es574.js +8 -0
- package/dist/index.es574.js.map +1 -0
- package/dist/index.es575.js +8 -0
- package/dist/index.es575.js.map +1 -0
- package/dist/index.es576.js +7 -0
- package/dist/index.es576.js.map +1 -0
- package/dist/index.es577.js +7 -0
- package/dist/index.es577.js.map +1 -0
- package/dist/index.es578.js +18 -0
- package/dist/index.es578.js.map +1 -0
- package/dist/index.es579.js +10 -0
- package/dist/index.es579.js.map +1 -0
- package/dist/index.es58.js +1 -1
- package/dist/index.es580.js +11 -0
- package/dist/index.es580.js.map +1 -0
- package/dist/index.es581.js +9 -0
- package/dist/index.es581.js.map +1 -0
- package/dist/index.es582.js +9 -0
- package/dist/index.es582.js.map +1 -0
- package/dist/index.es583.js +9 -0
- package/dist/index.es583.js.map +1 -0
- package/dist/index.es584.js +9 -0
- package/dist/index.es584.js.map +1 -0
- package/dist/index.es585.js +9 -0
- package/dist/index.es585.js.map +1 -0
- package/dist/index.es586.js +9 -0
- package/dist/index.es586.js.map +1 -0
- package/dist/index.es587.js +10 -0
- package/dist/index.es587.js.map +1 -0
- package/dist/index.es588.js +41 -0
- package/dist/index.es588.js.map +1 -0
- package/dist/index.es589.js +46 -0
- package/dist/index.es589.js.map +1 -0
- package/dist/index.es590.js +37 -0
- package/dist/index.es590.js.map +1 -0
- package/dist/index.es591.js +8 -0
- package/dist/index.es591.js.map +1 -0
- package/dist/index.es592.js +8 -0
- package/dist/index.es592.js.map +1 -0
- package/dist/index.es593.js +7 -0
- package/dist/index.es593.js.map +1 -0
- package/dist/index.es594.js +21 -0
- package/dist/index.es594.js.map +1 -0
- package/dist/index.es595.js +9 -0
- package/dist/index.es595.js.map +1 -0
- package/dist/index.es596.js +47 -0
- package/dist/index.es596.js.map +1 -0
- package/dist/index.es597.js +6 -0
- package/dist/index.es597.js.map +1 -0
- package/dist/index.es598.js +25 -0
- package/dist/index.es598.js.map +1 -0
- package/dist/index.es599.js +37 -0
- package/dist/index.es599.js.map +1 -0
- package/dist/index.es60.js +1 -1
- package/dist/index.es600.js +174 -0
- package/dist/index.es600.js.map +1 -0
- package/dist/index.es601.js +31 -0
- package/dist/index.es601.js.map +1 -0
- package/dist/index.es602.js +7 -0
- package/dist/index.es602.js.map +1 -0
- package/dist/index.es603.js +13 -0
- package/dist/index.es603.js.map +1 -0
- package/dist/index.es604.js +9 -0
- package/dist/index.es604.js.map +1 -0
- package/dist/index.es605.js +8 -0
- package/dist/index.es605.js.map +1 -0
- package/dist/index.es606.js +9 -0
- package/dist/index.es606.js.map +1 -0
- package/dist/index.es607.js +6 -0
- package/dist/index.es607.js.map +1 -0
- package/dist/index.es608.js +7 -0
- package/dist/index.es608.js.map +1 -0
- package/dist/index.es609.js +8 -0
- package/dist/index.es609.js.map +1 -0
- package/dist/index.es61.js +1 -1
- package/dist/index.es610.js +8 -0
- package/dist/index.es610.js.map +1 -0
- package/dist/index.es611.js +14 -0
- package/dist/index.es611.js.map +1 -0
- package/dist/index.es612.js +10 -0
- package/dist/index.es612.js.map +1 -0
- package/dist/index.es613.js +10 -0
- package/dist/index.es613.js.map +1 -0
- package/dist/index.es614.js +8 -0
- package/dist/index.es614.js.map +1 -0
- package/dist/index.es615.js +215 -0
- package/dist/index.es615.js.map +1 -0
- package/dist/index.es616.js +246 -0
- package/dist/index.es616.js.map +1 -0
- package/dist/index.es617.js +39 -0
- package/dist/index.es617.js.map +1 -0
- package/dist/index.es618.js +18 -0
- package/dist/index.es618.js.map +1 -0
- package/dist/index.es619.js +567 -0
- package/dist/index.es619.js.map +1 -0
- package/dist/index.es620.js +59 -0
- package/dist/index.es620.js.map +1 -0
- package/dist/index.es621.js +338 -0
- package/dist/index.es621.js.map +1 -0
- package/dist/index.es622.js +1103 -0
- package/dist/index.es622.js.map +1 -0
- package/dist/index.es623.js +41 -0
- package/dist/index.es623.js.map +1 -0
- package/dist/index.es624.js +39 -0
- package/dist/index.es624.js.map +1 -0
- package/dist/index.es625.js +51 -0
- package/dist/index.es625.js.map +1 -0
- package/dist/index.es626.js +65 -0
- package/dist/index.es626.js.map +1 -0
- package/dist/index.es627.js +11 -0
- package/dist/index.es627.js.map +1 -0
- package/dist/index.es628.js +6 -0
- package/dist/index.es628.js.map +1 -0
- package/dist/index.es629.js +298 -0
- package/dist/index.es629.js.map +1 -0
- package/dist/index.es63.js +1 -1
- package/dist/index.es630.js +27 -0
- package/dist/index.es630.js.map +1 -0
- package/dist/index.es631.js +53 -0
- package/dist/index.es631.js.map +1 -0
- package/dist/index.es632.js +9 -0
- package/dist/index.es632.js.map +1 -0
- package/dist/index.es67.js +10 -6
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js +163 -13731
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js +1 -1
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js +1 -1
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js +6 -6
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js +1 -1
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js +4 -4
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js +10 -10
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es93.js +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2019 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/const M=Symbol("Comlink.proxy"),A=Symbol("Comlink.endpoint"),O=Symbol("Comlink.releaseProxy"),E=Symbol("Comlink.finalizer"),h=Symbol("Comlink.thrown"),R=e=>typeof e=="object"&&e!==null||typeof e=="function",_={canHandle:e=>R(e)&&e[M],serialize(e){const{port1:t,port2:r}=new MessageChannel;return S(e,t),[r,[r]]},deserialize(e){return e.start(),z(e)}},j={canHandle:e=>R(e)&&h in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},k=new Map([["proxy",_],["throw",j]]);function I(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function S(e,t=globalThis,r=["*"]){t.addEventListener("message",function g(n){if(!n||!n.data)return;if(!I(r,n.origin)){console.warn(`Invalid origin '${n.origin}' for comlink proxy`);return}const{id:s,type:f,path:c}=Object.assign({path:[]},n.data),l=(n.data.argumentList||[]).map(y);let a;try{const o=c.slice(0,-1).reduce((i,d)=>i[d],e),u=c.reduce((i,d)=>i[d],e);switch(f){case"GET":a=u;break;case"SET":o[c.slice(-1)[0]]=y(n.data.value),a=!0;break;case"APPLY":a=u.apply(o,l);break;case"CONSTRUCT":{const i=new u(...l);a=V(i)}break;case"ENDPOINT":{const{port1:i,port2:d}=new MessageChannel;S(e,d),a=L(i,[i])}break;case"RELEASE":a=void 0;break;default:return}}catch(o){a={value:o,[h]:0}}Promise.resolve(a).catch(o=>({value:o,[h]:0})).then(o=>{const[u,i]=x(o);t.postMessage(Object.assign(Object.assign({},u),{id:s}),i),f==="RELEASE"&&(t.removeEventListener("message",g),C(t),E in e&&typeof e[E]=="function"&&e[E]())}).catch(o=>{const[u,i]=x({value:new TypeError("Unserializable return value"),[h]:0});t.postMessage(Object.assign(Object.assign({},u),{id:s}),i)})}),t.start&&t.start()}function W(e){return e.constructor.name==="MessagePort"}function C(e){W(e)&&e.close()}function z(e,t){const r=new Map;return e.addEventListener("message",function(n){const{data:s}=n;if(!s||!s.id)return;const f=r.get(s.id);if(f)try{f(s)}finally{r.delete(s.id)}}),P(e,r,[],t)}function w(e){if(e)throw new Error("Proxy has been released and is not useable")}function N(e){return m(e,new Map,{type:"RELEASE"}).then(()=>{C(e)})}const b=new WeakMap,p="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(b.get(e)||0)-1;b.set(e,t),t===0&&N(e)});function D(e,t){const r=(b.get(t)||0)+1;b.set(t,r),p&&p.register(e,t,e)}function F(e){p&&p.unregister(e)}function P(e,t,r=[],g=function(){}){let n=!1;const s=new Proxy(g,{get(f,c){if(w(n),c===O)return()=>{F(s),N(e),t.clear(),n=!0};if(c==="then"){if(r.length===0)return{then:()=>s};const l=m(e,t,{type:"GET",path:r.map(a=>a.toString())}).then(y);return l.then.bind(l)}return P(e,t,[...r,c])},set(f,c,l){w(n);const[a,o]=x(l);return m(e,t,{type:"SET",path:[...r,c].map(u=>u.toString()),value:a},o).then(y)},apply(f,c,l){w(n);const a=r[r.length-1];if(a===A)return m(e,t,{type:"ENDPOINT"}).then(y);if(a==="bind")return P(e,t,r.slice(0,-1));const[o,u]=T(l);return m(e,t,{type:"APPLY",path:r.map(i=>i.toString()),argumentList:o},u).then(y)},construct(f,c){w(n);const[l,a]=T(c);return m(e,t,{type:"CONSTRUCT",path:r.map(o=>o.toString()),argumentList:l},a).then(y)}});return D(s,e),s}function U(e){return Array.prototype.concat.apply([],e)}function T(e){const t=e.map(x);return[t.map(r=>r[0]),U(t.map(r=>r[1]))]}const H=new WeakMap;function L(e,t){return H.set(e,t),e}function V(e){return Object.assign(e,{[M]:!0})}function x(e){for(const[t,r]of k)if(r.canHandle(e)){const[g,n]=r.serialize(e);return[{type:"HANDLER",name:t,value:g},n]}return[{type:"RAW",value:e},H.get(e)||[]]}function y(e){switch(e.type){case"HANDLER":return k.get(e.name).deserialize(e.value);case"RAW":return e.value}}function m(e,t,r,g){return new Promise(n=>{const s=G();t.set(s,n),e.start&&e.start(),e.postMessage(Object.assign({id:s},r),g)})}function G(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}exports.createEndpoint=A;exports.expose=S;exports.finalizer=E;exports.proxy=V;exports.proxyMarker=M;exports.releaseProxy=O;exports.transfer=L;exports.transferHandlers=k;exports.wrap=z;
|
|
6
|
+
//# sourceMappingURL=index.cjs316.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs316.js","sources":["../../../node_modules/comlink/dist/esm/comlink.mjs"],"sourcesContent":["/**\n * @license\n * Copyright 2019 Google LLC\n * SPDX-License-Identifier: Apache-2.0\n */\nconst proxyMarker = Symbol(\"Comlink.proxy\");\nconst createEndpoint = Symbol(\"Comlink.endpoint\");\nconst releaseProxy = Symbol(\"Comlink.releaseProxy\");\nconst finalizer = Symbol(\"Comlink.finalizer\");\nconst throwMarker = Symbol(\"Comlink.thrown\");\nconst isObject = (val) => (typeof val === \"object\" && val !== null) || typeof val === \"function\";\n/**\n * Internal transfer handle to handle objects marked to proxy.\n */\nconst proxyTransferHandler = {\n canHandle: (val) => isObject(val) && val[proxyMarker],\n serialize(obj) {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port1);\n return [port2, [port2]];\n },\n deserialize(port) {\n port.start();\n return wrap(port);\n },\n};\n/**\n * Internal transfer handler to handle thrown exceptions.\n */\nconst throwTransferHandler = {\n canHandle: (value) => isObject(value) && throwMarker in value,\n serialize({ value }) {\n let serialized;\n if (value instanceof Error) {\n serialized = {\n isError: true,\n value: {\n message: value.message,\n name: value.name,\n stack: value.stack,\n },\n };\n }\n else {\n serialized = { isError: false, value };\n }\n return [serialized, []];\n },\n deserialize(serialized) {\n if (serialized.isError) {\n throw Object.assign(new Error(serialized.value.message), serialized.value);\n }\n throw serialized.value;\n },\n};\n/**\n * Allows customizing the serialization of certain values.\n */\nconst transferHandlers = new Map([\n [\"proxy\", proxyTransferHandler],\n [\"throw\", throwTransferHandler],\n]);\nfunction isAllowedOrigin(allowedOrigins, origin) {\n for (const allowedOrigin of allowedOrigins) {\n if (origin === allowedOrigin || allowedOrigin === \"*\") {\n return true;\n }\n if (allowedOrigin instanceof RegExp && allowedOrigin.test(origin)) {\n return true;\n }\n }\n return false;\n}\nfunction expose(obj, ep = globalThis, allowedOrigins = [\"*\"]) {\n ep.addEventListener(\"message\", function callback(ev) {\n if (!ev || !ev.data) {\n return;\n }\n if (!isAllowedOrigin(allowedOrigins, ev.origin)) {\n console.warn(`Invalid origin '${ev.origin}' for comlink proxy`);\n return;\n }\n const { id, type, path } = Object.assign({ path: [] }, ev.data);\n const argumentList = (ev.data.argumentList || []).map(fromWireValue);\n let returnValue;\n try {\n const parent = path.slice(0, -1).reduce((obj, prop) => obj[prop], obj);\n const rawValue = path.reduce((obj, prop) => obj[prop], obj);\n switch (type) {\n case \"GET\" /* MessageType.GET */:\n {\n returnValue = rawValue;\n }\n break;\n case \"SET\" /* MessageType.SET */:\n {\n parent[path.slice(-1)[0]] = fromWireValue(ev.data.value);\n returnValue = true;\n }\n break;\n case \"APPLY\" /* MessageType.APPLY */:\n {\n returnValue = rawValue.apply(parent, argumentList);\n }\n break;\n case \"CONSTRUCT\" /* MessageType.CONSTRUCT */:\n {\n const value = new rawValue(...argumentList);\n returnValue = proxy(value);\n }\n break;\n case \"ENDPOINT\" /* MessageType.ENDPOINT */:\n {\n const { port1, port2 } = new MessageChannel();\n expose(obj, port2);\n returnValue = transfer(port1, [port1]);\n }\n break;\n case \"RELEASE\" /* MessageType.RELEASE */:\n {\n returnValue = undefined;\n }\n break;\n default:\n return;\n }\n }\n catch (value) {\n returnValue = { value, [throwMarker]: 0 };\n }\n Promise.resolve(returnValue)\n .catch((value) => {\n return { value, [throwMarker]: 0 };\n })\n .then((returnValue) => {\n const [wireValue, transferables] = toWireValue(returnValue);\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n if (type === \"RELEASE\" /* MessageType.RELEASE */) {\n // detach and deactive after sending release response above.\n ep.removeEventListener(\"message\", callback);\n closeEndPoint(ep);\n if (finalizer in obj && typeof obj[finalizer] === \"function\") {\n obj[finalizer]();\n }\n }\n })\n .catch((error) => {\n // Send Serialization Error To Caller\n const [wireValue, transferables] = toWireValue({\n value: new TypeError(\"Unserializable return value\"),\n [throwMarker]: 0,\n });\n ep.postMessage(Object.assign(Object.assign({}, wireValue), { id }), transferables);\n });\n });\n if (ep.start) {\n ep.start();\n }\n}\nfunction isMessagePort(endpoint) {\n return endpoint.constructor.name === \"MessagePort\";\n}\nfunction closeEndPoint(endpoint) {\n if (isMessagePort(endpoint))\n endpoint.close();\n}\nfunction wrap(ep, target) {\n const pendingListeners = new Map();\n ep.addEventListener(\"message\", function handleMessage(ev) {\n const { data } = ev;\n if (!data || !data.id) {\n return;\n }\n const resolver = pendingListeners.get(data.id);\n if (!resolver) {\n return;\n }\n try {\n resolver(data);\n }\n finally {\n pendingListeners.delete(data.id);\n }\n });\n return createProxy(ep, pendingListeners, [], target);\n}\nfunction throwIfProxyReleased(isReleased) {\n if (isReleased) {\n throw new Error(\"Proxy has been released and is not useable\");\n }\n}\nfunction releaseEndpoint(ep) {\n return requestResponseMessage(ep, new Map(), {\n type: \"RELEASE\" /* MessageType.RELEASE */,\n }).then(() => {\n closeEndPoint(ep);\n });\n}\nconst proxyCounter = new WeakMap();\nconst proxyFinalizers = \"FinalizationRegistry\" in globalThis &&\n new FinalizationRegistry((ep) => {\n const newCount = (proxyCounter.get(ep) || 0) - 1;\n proxyCounter.set(ep, newCount);\n if (newCount === 0) {\n releaseEndpoint(ep);\n }\n });\nfunction registerProxy(proxy, ep) {\n const newCount = (proxyCounter.get(ep) || 0) + 1;\n proxyCounter.set(ep, newCount);\n if (proxyFinalizers) {\n proxyFinalizers.register(proxy, ep, proxy);\n }\n}\nfunction unregisterProxy(proxy) {\n if (proxyFinalizers) {\n proxyFinalizers.unregister(proxy);\n }\n}\nfunction createProxy(ep, pendingListeners, path = [], target = function () { }) {\n let isProxyReleased = false;\n const proxy = new Proxy(target, {\n get(_target, prop) {\n throwIfProxyReleased(isProxyReleased);\n if (prop === releaseProxy) {\n return () => {\n unregisterProxy(proxy);\n releaseEndpoint(ep);\n pendingListeners.clear();\n isProxyReleased = true;\n };\n }\n if (prop === \"then\") {\n if (path.length === 0) {\n return { then: () => proxy };\n }\n const r = requestResponseMessage(ep, pendingListeners, {\n type: \"GET\" /* MessageType.GET */,\n path: path.map((p) => p.toString()),\n }).then(fromWireValue);\n return r.then.bind(r);\n }\n return createProxy(ep, pendingListeners, [...path, prop]);\n },\n set(_target, prop, rawValue) {\n throwIfProxyReleased(isProxyReleased);\n // FIXME: ES6 Proxy Handler `set` methods are supposed to return a\n // boolean. To show good will, we return true asynchronously ¯\\_(ツ)_/¯\n const [value, transferables] = toWireValue(rawValue);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"SET\" /* MessageType.SET */,\n path: [...path, prop].map((p) => p.toString()),\n value,\n }, transferables).then(fromWireValue);\n },\n apply(_target, _thisArg, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const last = path[path.length - 1];\n if (last === createEndpoint) {\n return requestResponseMessage(ep, pendingListeners, {\n type: \"ENDPOINT\" /* MessageType.ENDPOINT */,\n }).then(fromWireValue);\n }\n // We just pretend that `bind()` didn’t happen.\n if (last === \"bind\") {\n return createProxy(ep, pendingListeners, path.slice(0, -1));\n }\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"APPLY\" /* MessageType.APPLY */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n construct(_target, rawArgumentList) {\n throwIfProxyReleased(isProxyReleased);\n const [argumentList, transferables] = processArguments(rawArgumentList);\n return requestResponseMessage(ep, pendingListeners, {\n type: \"CONSTRUCT\" /* MessageType.CONSTRUCT */,\n path: path.map((p) => p.toString()),\n argumentList,\n }, transferables).then(fromWireValue);\n },\n });\n registerProxy(proxy, ep);\n return proxy;\n}\nfunction myFlat(arr) {\n return Array.prototype.concat.apply([], arr);\n}\nfunction processArguments(argumentList) {\n const processed = argumentList.map(toWireValue);\n return [processed.map((v) => v[0]), myFlat(processed.map((v) => v[1]))];\n}\nconst transferCache = new WeakMap();\nfunction transfer(obj, transfers) {\n transferCache.set(obj, transfers);\n return obj;\n}\nfunction proxy(obj) {\n return Object.assign(obj, { [proxyMarker]: true });\n}\nfunction windowEndpoint(w, context = globalThis, targetOrigin = \"*\") {\n return {\n postMessage: (msg, transferables) => w.postMessage(msg, targetOrigin, transferables),\n addEventListener: context.addEventListener.bind(context),\n removeEventListener: context.removeEventListener.bind(context),\n };\n}\nfunction toWireValue(value) {\n for (const [name, handler] of transferHandlers) {\n if (handler.canHandle(value)) {\n const [serializedValue, transferables] = handler.serialize(value);\n return [\n {\n type: \"HANDLER\" /* WireValueType.HANDLER */,\n name,\n value: serializedValue,\n },\n transferables,\n ];\n }\n }\n return [\n {\n type: \"RAW\" /* WireValueType.RAW */,\n value,\n },\n transferCache.get(value) || [],\n ];\n}\nfunction fromWireValue(value) {\n switch (value.type) {\n case \"HANDLER\" /* WireValueType.HANDLER */:\n return transferHandlers.get(value.name).deserialize(value.value);\n case \"RAW\" /* WireValueType.RAW */:\n return value.value;\n }\n}\nfunction requestResponseMessage(ep, pendingListeners, msg, transfers) {\n return new Promise((resolve) => {\n const id = generateUUID();\n pendingListeners.set(id, resolve);\n if (ep.start) {\n ep.start();\n }\n ep.postMessage(Object.assign({ id }, msg), transfers);\n });\n}\nfunction generateUUID() {\n return new Array(4)\n .fill(0)\n .map(() => Math.floor(Math.random() * Number.MAX_SAFE_INTEGER).toString(16))\n .join(\"-\");\n}\n\nexport { createEndpoint, expose, finalizer, proxy, proxyMarker, releaseProxy, transfer, transferHandlers, windowEndpoint, wrap };\n//# sourceMappingURL=comlink.mjs.map\n"],"names":["proxyMarker","createEndpoint","releaseProxy","finalizer","throwMarker","isObject","val","proxyTransferHandler","obj","port1","port2","expose","port","wrap","throwTransferHandler","value","serialized","transferHandlers","isAllowedOrigin","allowedOrigins","origin","allowedOrigin","ep","callback","ev","id","type","path","argumentList","fromWireValue","returnValue","parent","prop","rawValue","proxy","transfer","wireValue","transferables","toWireValue","closeEndPoint","error","isMessagePort","endpoint","target","pendingListeners","data","resolver","createProxy","throwIfProxyReleased","isReleased","releaseEndpoint","requestResponseMessage","proxyCounter","proxyFinalizers","newCount","registerProxy","unregisterProxy","isProxyReleased","_target","r","p","_thisArg","rawArgumentList","last","processArguments","myFlat","arr","processed","v","transferCache","transfers","name","handler","serializedValue","msg","resolve","generateUUID"],"mappings":"gFAAA;AAAA;AAAA;AAAA;AAAA,GAKK,MAACA,EAAc,OAAO,eAAe,EACpCC,EAAiB,OAAO,kBAAkB,EAC1CC,EAAe,OAAO,sBAAsB,EAC5CC,EAAY,OAAO,mBAAmB,EACtCC,EAAc,OAAO,gBAAgB,EACrCC,EAAYC,GAAS,OAAOA,GAAQ,UAAYA,IAAQ,MAAS,OAAOA,GAAQ,WAIhFC,EAAuB,CACzB,UAAYD,GAAQD,EAASC,CAAG,GAAKA,EAAIN,CAAW,EACpD,UAAUQ,EAAK,CACX,KAAM,CAAE,MAAAC,EAAO,MAAAC,CAAK,EAAK,IAAI,eAC7B,OAAAC,EAAOH,EAAKC,CAAK,EACV,CAACC,EAAO,CAACA,CAAK,CAAC,CAC1B,EACA,YAAYE,EAAM,CACd,OAAAA,EAAK,MAAK,EACHC,EAAKD,CAAI,CACpB,CACJ,EAIME,EAAuB,CACzB,UAAYC,GAAUV,EAASU,CAAK,GAAKX,KAAeW,EACxD,UAAU,CAAE,MAAAA,GAAS,CACjB,IAAIC,EACJ,OAAID,aAAiB,MACjBC,EAAa,CACT,QAAS,GACT,MAAO,CACH,QAASD,EAAM,QACf,KAAMA,EAAM,KACZ,MAAOA,EAAM,KACjC,CACA,EAGYC,EAAa,CAAE,QAAS,GAAO,MAAAD,CAAK,EAEjC,CAACC,EAAY,EAAE,CAC1B,EACA,YAAYA,EAAY,CACpB,MAAIA,EAAW,QACL,OAAO,OAAO,IAAI,MAAMA,EAAW,MAAM,OAAO,EAAGA,EAAW,KAAK,EAEvEA,EAAW,KACrB,CACJ,EAIMC,E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K,GAAK,CAAA,CACpC,CACA,CACA,SAASc,EAAcd,EAAO,CAC1B,OAAQA,EAAM,KAAI,CACd,IAAK,UACD,OAAOE,EAAiB,IAAIF,EAAM,IAAI,EAAE,YAAYA,EAAM,KAAK,EACnE,IAAK,MACD,OAAOA,EAAM,KACzB,CACA,CACA,SAASoC,EAAuB7B,EAAIsB,EAAkB8B,EAAKJ,EAAW,CAClE,OAAO,IAAI,QAASK,GAAY,CAC5B,MAAMlD,EAAKmD,EAAY,EACvBhC,EAAiB,IAAInB,EAAIkD,CAAO,EAC5BrD,EAAG,OACHA,EAAG,MAAK,EAEZA,EAAG,YAAY,OAAO,OAAO,CAAE,GAAAG,GAAMiD,CAAG,EAAGJ,CAAS,CACxD,CAAC,CACL,CACA,SAASM,GAAe,CACpB,OAAO,IAAI,MAAM,CAAC,EACb,KAAK,CAAC,EACN,IAAI,IAAM,KAAK,MAAM,KAAK,SAAW,OAAO,gBAAgB,EAAE,SAAS,EAAE,CAAC,EAC1E,KAAK,GAAG,CACjB","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=["log2sigma","twoOmega","airyKavr","signDetJ","thetaa"];function f(t,n,o,c=1){if(t.length===0)return new Map;if(!n||!o)return new Map(t.map(s=>[s,0]));const{E:u,F:g,a:h,b:m}=M(n,o);return new Map(t.map(s=>{if(r.indexOf(s)===-1)throw new Error("Distortion "+s+" not supported");switch(r.indexOf(s)){case 0:return[s,w(h,m,c)];case 1:return[s,q(h,m)];case 2:return[s,O(h,m,c)];case 3:return[s,p(n,o)];case 4:return[s,y(n,h,m,u,g)];default:return[s,0]}}))}function M(t,n){const o=t[0]**2+t[1]**2,c=t[0]*n[0]+t[1]*n[1],u=n[0]**2+n[1]**2,g=Math.sqrt(.5*(o+u+Math.sqrt((o-u)**2+4*c**2))),h=Math.sqrt(.5*(o+u-Math.sqrt((o-u)**2+4*c**2)));return{E:o,F:c,G:u,a:g,b:h}}function w(t,n,o=1){return(Math.log(t*n)-2*Math.log(o))/Math.log(2)}function q(t,n){return 2*Math.asin((t-n)/(t+n))}function O(t,n,o=1){return .5*(Math.log(t/o)**2+Math.log(n/o)**2)}function p(t,n){return Math.sign(t[0]*n[1]-t[1]*n[0])}function y(t,n,o,c,u){const g=Math.atan(t[1]/t[0]),h=Math.sign(-u)*Math.asin(Math.sqrt((1-n**2/c)/(1-(n/o)**2)));return g-h}exports.computeDistortionsFromPartialDerivatives=f;exports.supportedDistortionMeasures=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs317.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs317.js","sources":["../../../node_modules/@allmaps/transform/dist/shared/distortion.js"],"sourcesContent":["export const supportedDistortionMeasures = [\n 'log2sigma',\n 'twoOmega',\n 'airyKavr',\n 'signDetJ',\n 'thetaa'\n];\n/**\n * Compute the distortion value of selected distortion measures from the partial derivatives at a specific point\n *\n * @param distortionMeasures - The requested distortion measures\n * @param partialDerivativeX - The partial derivative to 'x' of the transformation, evaluated at a set point\n * @param partialDerivativeY - The partial derivative to 'y' of the transformation, evaluated at a set point\n * @param referenceScale - The reference area scaling (sigma) to take into account for certain distortion measures (like 'log2sigma'), e.g. computed via a helmert transform\n * @returns A map of distortion measures and distortion values at the point\n */\nexport function computeDistortionsFromPartialDerivatives(distortionMeasures, partialDerivativeX, partialDerivativeY, referenceScale = 1) {\n if (distortionMeasures.length === 0) {\n return new Map();\n }\n if (!partialDerivativeX || !partialDerivativeY) {\n return new Map(distortionMeasures.map((distortionMeasure) => [distortionMeasure, 0]));\n }\n const { E, F, a, b } = computeDistortionIntermediates(partialDerivativeX, partialDerivativeY);\n return new Map(distortionMeasures.map((distortionMeasure) => {\n if (supportedDistortionMeasures.indexOf(distortionMeasure) === -1) {\n throw new Error('Distortion ' + distortionMeasure + ' not supported');\n }\n switch (supportedDistortionMeasures.indexOf(distortionMeasure)) {\n case 0:\n return [distortionMeasure, log2sigma(a, b, referenceScale)];\n case 1:\n return [distortionMeasure, twoOmega(a, b)];\n case 2:\n return [distortionMeasure, airyKavr(a, b, referenceScale)];\n case 3:\n return [\n distortionMeasure,\n signDetJ(partialDerivativeX, partialDerivativeY)\n ];\n case 4:\n return [distortionMeasure, thetaa(partialDerivativeX, a, b, E, F)];\n default:\n return [distortionMeasure, 0];\n }\n }));\n}\nfunction computeDistortionIntermediates(partialDerivativeX, partialDerivativeY) {\n const E = partialDerivativeX[0] ** 2 + partialDerivativeX[1] ** 2;\n const F = partialDerivativeX[0] * partialDerivativeY[0] +\n partialDerivativeX[1] * partialDerivativeY[1];\n const G = partialDerivativeY[0] ** 2 + partialDerivativeY[1] ** 2;\n const a = Math.sqrt(0.5 * (E + G + Math.sqrt((E - G) ** 2 + 4 * F ** 2)));\n const b = Math.sqrt(0.5 * (E + G - Math.sqrt((E - G) ** 2 + 4 * F ** 2)));\n return { E, F, G, a, b };\n}\nfunction log2sigma(a, b, referenceScale = 1) {\n return (Math.log(a * b) - 2 * Math.log(referenceScale)) / Math.log(2);\n}\nfunction twoOmega(a, b) {\n return 2 * Math.asin((a - b) / (a + b));\n}\nfunction airyKavr(a, b, referenceScale = 1) {\n return (0.5 *\n (Math.log(a / referenceScale) ** 2 + Math.log(b / referenceScale) ** 2));\n}\nfunction signDetJ(partialDerivativeX, partialDerivativeY) {\n return Math.sign(partialDerivativeX[0] * partialDerivativeY[1] -\n partialDerivativeX[1] * partialDerivativeY[0]);\n}\nfunction thetaa(partialDerivativeX, a, b, E, F) {\n const thetaxp = Math.atan(partialDerivativeX[1] / partialDerivativeX[0]);\n const alphap = Math.sign(-F) * Math.asin(Math.sqrt((1 - a ** 2 / E) / (1 - (a / b) ** 2)));\n return thetaxp - alphap;\n}\n"],"names":["supportedDistortionMeasures","computeDistortionsFromPartialDerivatives","distortionMeasures","partialDerivativeX","partialDerivativeY","referenceScale","distortionMeasure","E","F","a","b","computeDistortionIntermediates","log2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Symbol.toStringTag,{value:"Module"});const T=require("./index.cjs223.js"),l=require("./index.cjs217.js"),m=require("./index.cjs319.js"),G=require("./index.cjs224.js"),e=require("./index.cjs225.js");class u extends m.GcpTransformer{internalProjection;projection;internalProjectionToProjection;projectionToInternalProjection;lonLatToProjection;projectionToLonLat;constructor(o,n="polynomial",t){const r=l.mergeOptionsUnlessUndefined(e.defaultProjectedGcpTransformerOptions,t),i=T(r.internalProjection.definition,r.projection.definition),s=i.forward,a=i.inverse,p=T(e.lonLatProjection.definition,r.projection.definition),j=p.forward,P=p.inverse,f={...t,postToGeo:s,preToResource:a};o=o.filter(c=>c.geo&&c.resource).map(c=>({resource:c.resource,geo:j(c.geo)})),super(o,n,f),this.internalProjection=r.internalProjection,this.projection=r.projection,this.internalProjectionToProjection=s,this.projectionToInternalProjection=a,this.lonLatToProjection=j,this.projectionToLonLat=P}get gcps(){return super.gcps}get lonlatGcps(){return this.projectedGcps.map(({resource:o,geo:n})=>({resource:o,geo:this.projectionToLonLat(n)}))}get interalProjectedGcps(){return this.projectedGcps.map(({resource:o,geo:n})=>({resource:o,geo:this.projectionToInternalProjection(n)}))}get projectedGcps(){return this.gcps}transformToProjectedGeo(o,n,t){const r=e.projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection,n);return super.transformToGeo(o,r,t)}transformToGeo(o,n,t){return this.transformToProjectedGeo(o,l.mergePartialOptions(n,{projection:e.lonLatProjection}),t)}transformToResource(o,n,t){const r=e.projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection,n);return super.transformToResource(o,r,t)}isNonWarping(){return e.isEqualProjection(this.projection,this.internalProjection)===!0&&G.nonWarpingTransformationTypes.includes(this.type)}getToProjectedGeoTransformationResolution(o,n){const t=e.projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection,n);return super.getToGeoTransformationResolution(o,t)}getToGeoTransformationResolution(o,n){return this.getToProjectedGeoTransformationResolution(o,l.mergePartialOptions(n,{projection:e.lonLatProjection}))}getToResourceTransformationResolution(o,n){const t=e.projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection,n);return super.getToResourceTransformationResolution(o,t)}static fromGeoreferencedMap(o,n){const t={transformationType:o.transformation?.type,internalProjection:o.resourceCrs};return n=l.mergeOptions(t,n),new u(o.gcps,n.transformationType,n)}static setProjection(o,n){if(e.isEqualProjection(n,o.projection))return o;const t=T(o.internalProjection.definition,n.definition),r=t.forward,i=t.inverse,s=T(e.lonLatProjection.definition,n.definition),a=s.forward,p=s.inverse,j={postToGeo:r,preToResource:i};return o.setTransformerOptions(j),o.projection=n,o.internalProjectionToProjection=r,o.projectionToInternalProjection=i,o.lonLatToProjection=a,o.projectionToLonLat=p,o}}exports.ProjectedGcpTransformer=u;
|
|
2
|
+
//# sourceMappingURL=index.cjs318.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs318.js","sources":["../../../node_modules/@allmaps/project/dist/projected-transformers/ProjectedGcpTransformer.js"],"sourcesContent":["import proj4 from 'proj4';\nimport { mergeOptions, mergeOptionsUnlessUndefined, mergePartialOptions } from '@allmaps/stdlib';\nimport { GcpTransformer, nonWarpingTransformationTypes } from '@allmaps/transform';\nimport { defaultProjectedGcpTransformerOptions, isEqualProjection, lonLatProjection, projectedGcpTransformOptionsToGcpTransformOptions } from '../shared/project-functions.js';\n/**\n * Class for Projected Ground Control Point Transformers.\n *\n * A Projected GCP Transformer can transform input geometries between 'resource' and 'projected geo' spaces.\n *\n * It does this using a transformation (of a certain type) built from\n * a set of Ground Control Points (with coordinates in\n * resource and geo space), a transformation type,\n * and an internal projection and projection.\n *\n * GCPs are expected in lon-lat 'EPSG:4326' (and are projected to the internal projection).\n * The default projection for the internal projection and projection is WebMercator 'EPSG:3857'.\n *\n * A postToGeo function is built from the internal projection to the projection (by default an identity projection).\n * A preToResource function is built from the projection to the internal projection (by default an identity projection).\n *\n * Like the GCP Transformer class it extends,\n * it has a method to transform 'toGeo' (from resource to projected geo space)\n * and 'toResource' (from projected geo to resource space),\n *\n * Like the GCP Transformer class it extends,\n * the `differentHandedness` setting is `true` by default,\n * since we expect the resource coordinates to identify pixels on an image,\n * with origin in the top left and the y-axis pointing down.\n *\n * @param internalProjection - the internal projection to which the GCPs (supplied in lon-lat 'EPSG:4326') are projected before building the transformation functions.\n * @param projection - the projection of the 'projected geo' space, in which the 'toProjectedGeo()' methods results its results.\n * @param internalProjectionToProjection - the postToGeo used to go from the internal projection to the projection.\n * @param projectionToInternalProjection - the preToResource function used to go from the projection to the internal projection.\n */\nexport class ProjectedGcpTransformer extends GcpTransformer {\n internalProjection;\n projection;\n internalProjectionToProjection;\n projectionToInternalProjection;\n lonLatToProjection;\n projectionToLonLat;\n /**\n * Create a ProjectedGcpTransformer\n *\n * @param gcps - An array of Ground Control Points (GCPs) in lon-lat 'EPSG:4326'\n * @param type - The transformation type\n * @param partialProjectedGcpTransformerOptions - Projected GCP Transformer options\n */ constructor(gcps, type = 'polynomial', partialProjectedGcpTransformerOptions) {\n const projectedGcpTransformerOptions = mergeOptionsUnlessUndefined(defaultProjectedGcpTransformerOptions, partialProjectedGcpTransformerOptions);\n const internalProjectionToProjectionConverter = proj4(projectedGcpTransformerOptions.internalProjection.definition, projectedGcpTransformerOptions.projection.definition);\n const postToGeo = internalProjectionToProjectionConverter.forward;\n const preToResource = internalProjectionToProjectionConverter.inverse;\n const lonLatToProjectionConverter = proj4(lonLatProjection.definition, projectedGcpTransformerOptions.projection.definition);\n const lonLatToProjection = lonLatToProjectionConverter.forward;\n const projectionToLonlat = lonLatToProjectionConverter.inverse;\n const partialGcpTransformerOptions = {\n ...partialProjectedGcpTransformerOptions,\n postToGeo,\n preToResource\n };\n gcps = gcps\n // Allow incomplete GCPs, but filter them out\n .filter((gcp) => gcp.geo && gcp.resource)\n .map((gcp) => ({\n resource: gcp.resource,\n geo: lonLatToProjection(gcp.geo)\n }));\n super(gcps, type, partialGcpTransformerOptions);\n this.internalProjection = projectedGcpTransformerOptions.internalProjection;\n this.projection = projectedGcpTransformerOptions.projection;\n this.internalProjectionToProjection = postToGeo;\n this.projectionToInternalProjection = preToResource;\n this.lonLatToProjection = lonLatToProjection;\n this.projectionToLonLat = projectionToLonlat;\n }\n /**\n * Get GCPs as they were inputed to the GCP Transformer.\n *\n * For a Projected GCP Transformer, these are the GCPs in projected coordinates.\n */\n get gcps() {\n return super.gcps;\n }\n /**\n * Get GCPs in interal projected coordinates.\n */\n get lonlatGcps() {\n return this.projectedGcps.map(({ resource, geo }) => ({\n resource,\n geo: this.projectionToLonLat(geo)\n }));\n }\n /**\n * Get GCPs in interal projected coordinates.\n */\n get interalProjectedGcps() {\n return this.projectedGcps.map(({ resource, geo }) => ({\n resource,\n geo: this.projectionToInternalProjection(geo)\n }));\n }\n /**\n * Get GCPs in projected coordinates.\n */\n get projectedGcps() {\n return this.gcps;\n }\n /**\n * Transform a geometry from resource space to projected geo space\n *\n * @param resourceGeometry - Geometry to transform\n * @param partialProjectedGcpTransformOptions - Projected GCP Transform options\n * @param gcpToP - Return type function\n * @returns Input geometry transformed to projected geo space\n */\n transformToProjectedGeo(resourceGeometry, partialProjectedGcpTransformOptions, gcpToP) {\n const partialGcpTransformOptions = projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection, partialProjectedGcpTransformOptions);\n return super.transformToGeo(resourceGeometry, partialGcpTransformOptions, gcpToP);\n }\n /**\n * Transform a geometry from resource space to geo space\n *\n * @param resourceGeometry - Geometry to transform\n * @param partialProjectedGcpTransformOptions - Projected GCP Transform options\n * @param gcpToP - Return type function\n * @returns Input geometry transformed to projected geo space\n */\n transformToGeo(resourceGeometry, partialProjectedGcpTransformOptions, gcpToP) {\n return this.transformToProjectedGeo(resourceGeometry, mergePartialOptions(partialProjectedGcpTransformOptions, {\n projection: lonLatProjection\n }), gcpToP);\n }\n /**\n * Transform a geometry from projected geo space to resource space\n *\n * @param projectedGeoGeometry - Geometry to transform\n * @param partialProjectedGcpTransformOptions - Projected GCP Transform options\n * @param gcpToP - Return type function\n * @returns Input geometry transformed to resource space\n */\n transformToResource(projectedGeoGeometry, partialProjectedGcpTransformOptions, gcpToP) {\n const partialGcpTransformOptions = projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection, partialProjectedGcpTransformOptions);\n return super.transformToResource(projectedGeoGeometry, partialGcpTransformOptions, gcpToP);\n }\n isNonWarping() {\n return (isEqualProjection(this.projection, this.internalProjection) === true &&\n nonWarpingTransformationTypes.includes(this.type));\n }\n /**\n * Get the resolution of the toProjectedGeo transformation in resource space, within a given bbox.\n *\n * This informs you in how fine the warping is, in resource space.\n * It can be useful e.g. to create a triangulation in resource space\n * that is fine enough for this warping or set the minSourceDistance options.\n *\n * It is obtained by transforming toProjectedGeo two linestring,\n * namely the horizontal and vertical midlines of the given bbox.\n * The toProjectedGeo transformation will refine these lines:\n * it will break them in small enough pieces to obtain a near continuous result.\n *\n * Resolution returned in the length of the shortest piece, measured in resource coordinates,\n * or undefined if no refinements were needed.\n *\n * @param resourceBbox - BBox in resource space where the resolution is requested, or undefined to get this from the GCPs\n * @param partialGcpTransformOptions - GCP Transform options to consider during the transformation\n * @returns Resolution of the toProjectedGeo transformation in resource space\n */\n getToProjectedGeoTransformationResolution(resourceBbox, partialProjectedGcpTransformOptions) {\n const partialGcpTransformOptions = projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection, partialProjectedGcpTransformOptions);\n return super.getToGeoTransformationResolution(resourceBbox, partialGcpTransformOptions);\n }\n /**\n * Get the resolution of the toGeo transformation in resource space, within a given bbox.\n *\n * This informs you in how fine the warping is, in resource space.\n * It can be useful e.g. to create a triangulation in resource space\n * that is fine enough for this warping or set the minSourceDistance options.\n *\n * It is obtained by transforming toGeo two linestring,\n * namely the horizontal and vertical midlines of the given bbox.\n * The toGeo transformation will refine these lines:\n * it will break them in small enough pieces to obtain a near continuous result.\n *\n * Resolution returned in the length of the shortest piece, measured in resource coordinates,\n * or undefined if no refinements were needed.\n *\n * @param resourceBbox - BBox in resource space where the resolution is requested, or undefined to get this from the GCPs\n * @param partialGcpTransformOptions - GCP Transform options to consider during the transformation\n * @returns Resolution of the toGeo transformation in resource space\n */\n getToGeoTransformationResolution(resourceBbox, partialProjectedGcpTransformOptions) {\n return this.getToProjectedGeoTransformationResolution(resourceBbox, mergePartialOptions(partialProjectedGcpTransformOptions, {\n projection: lonLatProjection\n }));\n }\n /**\n * Get the resolution of the toResource transformation in projected geo space, within a given bbox.\n *\n * This informs you in how fine the warping is, in projected geo space.\n * It can be useful e.g. to create a triangulation in projected geo space\n * that is fine enough for this warping or set the minDestionationDistance options.\n *\n * It is obtained by transforming toResource two linestring,\n * namely the horizontal and vertical midlines of the given bbox.\n * The toResource transformation will refine these lines:\n * it will break them in small enough pieces to obtain a near continuous result.\n *\n * Resolution returned in the length of the shortest piece, measured in internal projected geo coordinates,\n * or undefined if no refinements were needed.\n *\n * @param projectedGeoBbox - BBox in projected geo space where the resolution is requested, or undefined to get this from the GCPs\n * @param partialGcpTransformOptions - GCP Transform options to consider during the transformation\n * @returns Resolution of the toResource transformation in internal projected geo space\n */\n getToResourceTransformationResolution(projectedGeoBbox, partialProjectedGcpTransformOptions) {\n const partialGcpTransformOptions = projectedGcpTransformOptionsToGcpTransformOptions(this.internalProjection, partialProjectedGcpTransformOptions);\n return super.getToResourceTransformationResolution(projectedGeoBbox, partialGcpTransformOptions);\n }\n /**\n * Create a Projected GCP Transformer from a Georeferenced Map\n *\n * @param georeferencedMap - A Georeferenced Map\n * @param options - Options, including Projected GCP Transformer Options, and a transformation type to overrule the type defined in the Georeferenced Map\n * @returns A Projected GCP Transformer\n */\n static fromGeoreferencedMap(georeferencedMap, options) {\n const georeferencedMapInput = {\n transformationType: georeferencedMap.transformation?.type,\n internalProjection: georeferencedMap.resourceCrs\n };\n options = mergeOptions(georeferencedMapInput, options);\n return new ProjectedGcpTransformer(georeferencedMap.gcps, options.transformationType, options);\n }\n /**\n * Set the projection.\n *\n * To transform 'toGeo' or 'toResource' to or from a different projection\n * than set on a transformer's construction (but using the same internal projection)\n * it's possible to specify the requested projection in the transform options.\n *\n * This way we circumvent a possibly expensive recomputation\n * of the toGeo and/or toResource transformations.\n *\n * To do this more systematically, it's possible to set\n * a projected gcp transformer's projection using this method.\n *\n * Combine this with a deep clone of the transformer instance\n * to keep the original transformer as well.\n *\n * @returns this\n */\n static setProjection(projectedTransformer, projection) {\n if (isEqualProjection(projection, projectedTransformer.projection)) {\n return projectedTransformer;\n }\n const internalProjectionToProjectionConverter = proj4(projectedTransformer.internalProjection.definition, projection.definition);\n const postToGeo = internalProjectionToProjectionConverter.forward;\n const preToResource = internalProjectionToProjectionConverter.inverse;\n const lonLatToProjectionConverter = proj4(lonLatProjection.definition, projection.definition);\n const lonLatToProjection = lonLatToProjectionConverter.forward;\n const projectionToLonLat = lonLatToProjectionConverter.inverse;\n const partialGcpTransformerOptions = {\n postToGeo,\n preToResource\n };\n // Note: no need to change the GCPs!\n // They have already been converted to the internal projection\n // in the GCP Transformer constructor\n projectedTransformer.setTransformerOptions(partialGcpTransformerOptions);\n projectedTransformer.projection = projection;\n projectedTransformer.internalProjectionToProjection = postToGeo;\n projectedTransformer.projectionToInternalProjection = preToResource;\n projectedTransformer.lonLatToProjection = lonLatToProjection;\n projectedTransformer.projectionToLonLat = projectionToLonLat;\n return projectedTransformer;\n }\n}\n"],"names":["ProjectedGcpTransformer","GcpTransformer","gcps","type","partialProjectedGcpTransformerOptions","projectedGcpTransformerOptions","mergeOptionsUnlessUndefined","defaultProjectedGcpTransformerOptions","internalProjectionToProjectionConverter","proj4","postToGeo","preToResource","lonLatToProjectionConverter","lonLatProjection","lonLatToProjection","projectionToLonlat","partialGcpTransformerOptions","gcp","resource","geo","resourceGeometry","partialProjectedGcpTransformOptions","gcpToP","partialGcpTransformOptions","projectedGcpTransformOptionsToGcpTransformOptions","mergePartialOptions","projectedGeoGeometry","isEqualProjection","nonWarpingTransformationTypes","resourceBbox","projectedGeoBbox","georeferencedMap","options","georeferencedMapInput","mergeOptions","projectedTransformer","projection","projectionToL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IT,oBAAkBS,EAAYD,EAAqB,UAAU,EAC7D,OAAOA,EAEX,MAAM3B,EAA0CC,EAAM0B,EAAqB,mBAAmB,WAAYC,EAAW,UAAU,EACzH1B,EAAYF,EAAwC,QACpDG,EAAgBH,EAAwC,QACxDI,EAA8BH,EAAMI,EAAAA,iBAAiB,WAAYuB,EAAW,UAAU,EACtFtB,EAAqBF,EAA4B,QACjDyB,EAAqBzB,EAA4B,QACjDI,EAA+B,CACjC,UAAAN,EACA,cAAAC,CAAA,EAKJ,OAAAwB,EAAqB,sBAAsBnB,CAA4B,EACvEmB,EAAqB,WAAaC,EAClCD,EAAqB,+BAAiCzB,EACtDyB,EAAqB,+BAAiCxB,EACtDwB,EAAqB,mBAAqBrB,EAC1CqB,EAAqB,mBAAqBE,EACnCF,CACX,CACJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs330.js"),T=require("./index.cjs275.js"),G=require("./index.cjs217.js"),m=require("./index.cjs334.js"),g=require("./index.cjs360.js"),a=require("./index.cjs224.js"),c=require("./index.cjs361.js");class p extends g.BaseGcpTransformer{constructor(o,r="polynomial",e){const n=o.filter(t=>t.geo&&t.resource).map(c.gcpToGeneralGcp);e=G.mergePartialOptions({differentHandedness:!0},e),super(n,r,a.gcpTransformerOptionsToGeneralGcpTransformerOptions(e))}get gcps(){return this.generalGcpsInternal.map(c.generalGcpToGcp)}getTransformerOptions(){return this.transformerOptions}setTransformerOptions(o){this.transformerOptions=G.mergeOptions(this.transformerOptions,a.gcpTransformerOptionsToGeneralGcpTransformerOptions(o))}getToGeoTransformation(){return super.getForwardTransformationInternal()}getToResourceTransformation(){return super.getBackwardTransformationInternal()}transformToGeo(o,r,e=c.gcpToPointForToGeo){const n=s=>e(c.generalGcpToGcp(s)),t=a.gcpTransformOptionsToGeneralGcpTransformOptions(r);return super.transformForwardInternal(o,t,n)}transformToResource(o,r,e=c.gcpToPointForToResource){const n=s=>e(c.generalGcpToGcp(s)),t=a.gcpTransformOptionsToGeneralGcpTransformOptions(r);return super.transformBackwardInternal(o,t,n)}getToGeoTransformationResolution(o,r){const e=a.gcpTransformOptionsToGeneralGcpTransformOptions(r);return super.getForwardTransformationResolutionInternal(o,e)}getToResourceTransformationResolution(o,r){const e=a.gcpTransformOptionsToGeneralGcpTransformOptions(r);return super.getBackwardTransformationResolutionInternal(o,e)}static transformSvgToGeojson(o,r,e){const n=o.transformToGeo(m.svgGeometryToGeometry(r),e);return T.geometryToGeojsonGeometry(n)}static transformSvgStringToGeojsonFeatureCollection(o,r,e){const n=[];for(const t of m.stringToSvgGeometriesGenerator(r)){const s=this.transformSvgToGeojson(o,t,e);n.push(s)}return i.geojsonGeometriesToGeojsonFeatureCollection(n)}static transformGeojsonToSvg(o,r,e){const n=o.transformToResource(i.geojsonGeometryToGeometry(r),e);return T.geometryToSvgGeometry(n)}static transformGeojsonFeatureCollectionToSvgString(o,r,e){const n=[];for(const t of i.geojsonFeatureCollectionToGeojsonGeometries(r)){const s=this.transformGeojsonToSvg(o,t,e);n.push(s)}return m.svgGeometriesToSvgString(n)}static fromGeoreferencedMap(o,r){return new p(o.gcps,r?.transformationType||o.transformation?.type,r)}}exports.GcpTransformer=p;
|
|
2
|
+
//# sourceMappingURL=index.cjs319.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs319.js","sources":["../../../node_modules/@allmaps/transform/dist/transformers/GcpTransformer.js"],"sourcesContent":["import { geojsonGeometryToGeometry, geojsonGeometriesToGeojsonFeatureCollection, geojsonFeatureCollectionToGeojsonGeometries, geometryToGeojsonGeometry, geometryToSvgGeometry, stringToSvgGeometriesGenerator, svgGeometriesToSvgString, svgGeometryToGeometry, mergePartialOptions, mergeOptions } from '@allmaps/stdlib';\nimport { BaseGcpTransformer } from './BaseGcpTransformer.js';\nimport { gcpTransformerOptionsToGeneralGcpTransformerOptions, gcpTransformOptionsToGeneralGcpTransformOptions } from '../shared/transform-functions.js';\nimport { gcpToGeneralGcp, gcpToPointForToGeo, gcpToPointForToResource, generalGcpToGcp } from '../shared/conversion-functions.js';\n/**\n * Class for Ground Control Point Transformers.\n *\n * A GCP Transformer can transform input geometries between 'resource' and 'geo' spaces.\n *\n * It does this using a transformation (of a certain type) built from\n * a set of Ground Control Points (with coordinates in\n * resource and geo space) and a transformation type.\n *\n * It has a method to transform 'toGeo' (from resource to geo space)\n * and 'toResource' (from geo to resource space),\n *\n * This class differs from the GeneralGcpTransformer class in that\n * it specifically handles the typical Allmaps case where:\n * - We read in Ground Control Points using the Gcp type, with `resource` and `geo` fields.\n * - We use the terms 'toGeo' for the 'forward' transformation and 'toResource' for the 'backward' transformation.\n * - The `differentHandedness` setting is `true` by default, since we expect the resource coordinates to identify pixels on an image, with origin in the top left and the y-axis pointing down.\n * */\nexport class GcpTransformer extends BaseGcpTransformer {\n /**\n * Create a GcpTransformer\n *\n * @param gcps - An array of Ground Control Points (GCPs)\n * @param type - The transformation type\n * @param partialGcpTransformerOptions - GCP Transformer options\n */ constructor(gcps, type = 'polynomial', partialGcpTransformerOptions) {\n const generalGcps = gcps\n // Allow incomplete GCPs, but filter them out\n .filter((gcp) => gcp.geo && gcp.resource)\n .map(gcpToGeneralGcp);\n partialGcpTransformerOptions = mergePartialOptions({ differentHandedness: true }, partialGcpTransformerOptions);\n super(generalGcps, type, gcpTransformerOptionsToGeneralGcpTransformerOptions(partialGcpTransformerOptions));\n }\n /**\n * Get GCPs as they were inputed to the GCP Transformer.\n */\n get gcps() {\n return this.generalGcpsInternal.map(generalGcpToGcp);\n }\n /**\n * Get the transformer options.\n */\n getTransformerOptions() {\n return this.transformerOptions;\n }\n /**\n * Set the transformer options.\n *\n * Use with caution, especially for options that have effects in the constructor.\n */\n setTransformerOptions(partialGcpTransformerOptions) {\n this.transformerOptions = mergeOptions(this.transformerOptions, gcpTransformerOptionsToGeneralGcpTransformerOptions(partialGcpTransformerOptions));\n }\n /**\n * Get the forward transformation. Create if it doesn't exist yet.\n */\n getToGeoTransformation() {\n return super.getForwardTransformationInternal();\n }\n /**\n * Get the backward transformation. Create if it doesn't exist yet.\n */\n getToResourceTransformation() {\n return super.getBackwardTransformationInternal();\n }\n /**\n * Transform a geometry from resource space to geo space\n *\n * @param resourceGeometry - Geometry to transform\n * @param partialGcpTransformOptions - GCP Transform options\n * @param gcpToP - Return type function\n * @returns Input geometry transformed to geo space\n */\n transformToGeo(resourceGeometry, partialGcpTransformOptions, gcpToP = gcpToPointForToGeo) {\n const generalGcpToP = (generalGcp) => gcpToP(generalGcpToGcp(generalGcp));\n const partialGeneralGcpTransformOptions = gcpTransformOptionsToGeneralGcpTransformOptions(partialGcpTransformOptions);\n return super.transformForwardInternal(resourceGeometry, partialGeneralGcpTransformOptions, generalGcpToP);\n }\n /**\n * Transform a geometry from geo space to resource space\n *\n * @param geoGeometry - Geometry to transform\n * @param partialGcpTransformOptions - GCP Transform options\n * @param gcpToP - Return type function\n * @returns Input geometry transformed to resource space\n */\n transformToResource(geoGeometry, partialGcpTransformOptions, gcpToP = gcpToPointForToResource) {\n const generalGcpToP = (generalGcp) => gcpToP(generalGcpToGcp(generalGcp));\n const partialGeneralGcpTransformOptions = gcpTransformOptionsToGeneralGcpTransformOptions(partialGcpTransformOptions);\n return super.transformBackwardInternal(geoGeometry, partialGeneralGcpTransformOptions, generalGcpToP);\n }\n /**\n * Get the resolution of the toGeo transformation in resource space, within a given bbox.\n *\n * This informs you in how fine the warping is, in resource space.\n * It can be useful e.g. to create a triangulation in resource space\n * that is fine enough for this warping or set the minSourceDistance options.\n *\n * It is obtained by transforming toGeo two linestring,\n * namely the horizontal and vertical midlines of the given bbox.\n * The toGeo transformation will refine these lines:\n * it will break them in small enough pieces to obtain a near continuous result.\n *\n * Resolution returned in the length of the shortest piece, measured in resource coordinates,\n * or undefined if no refinements were needed.\n *\n * @param resourceBbox - BBox in resource space where the resolution is requested, or undefined to get this from the GCPs\n * @param partialGcpTransformOptions - GCP Transform options to consider during the transformation\n * @returns Resolution of the toGeo transformation in resource space\n */\n getToGeoTransformationResolution(resourceBbox, partialGcpTransformOptions) {\n const partialGeneralGcpTransformOptions = gcpTransformOptionsToGeneralGcpTransformOptions(partialGcpTransformOptions);\n return super.getForwardTransformationResolutionInternal(resourceBbox, partialGeneralGcpTransformOptions);\n }\n /**\n * Get the resolution of the toResource transformation in geo space, within a given bbox.\n *\n * This informs you in how fine the warping is, in geo space.\n * It can be useful e.g. to create a triangulation in geo space\n * that is fine enough for this warping or set the minDestionationDistance options.\n *\n * It is obtained by transforming toResource two linestring,\n * namely the horizontal and vertical midlines of the given bbox.\n * The toResource transformation will refine these lines:\n * it will break them in small enough pieces to obtain a near continuous result.\n *\n * Resolution returned in the length of the shortest piece, measured in geo coordinates,\n * or undefined if no refinements were needed.\n *\n * @param geoBbox - BBox in geo space where the resolution is requested, or undefined to get this from the GCPs\n * @param partialGcpTransformOptions - GCP Transform options to consider during the transformation\n * @returns Resolution of the toResource transformation in geo space\n */\n getToResourceTransformationResolution(geoBbox, partialGcpTransformOptions) {\n const generalGcpTransformOptions = gcpTransformOptionsToGeneralGcpTransformOptions(partialGcpTransformOptions);\n return super.getBackwardTransformationResolutionInternal(geoBbox, generalGcpTransformOptions);\n }\n /**\n * Transform an SVG geometry from resource space to geo space as a GeoJSON Geometry\n *\n * This is a shortcut method, available as static method in order not to overpopulate intellisense suggestions\n * Note: Multi-geometries are not supported\n *\n * @param transformer - A GCP Transformer defining the transformation\n * @param svgGeometry - SVG geometry to transform\n * @param partialGcpTransformOptions - GCP Transform options\n * @returns Input SVG geometry transformed to geo space, as a GeoJSON Geometry\n */\n static transformSvgToGeojson(transformer, svgGeometry, partialGcpTransformOptions) {\n // This middle step is needed to make typescript happy\n const transformedGeometry = transformer.transformToGeo(svgGeometryToGeometry(svgGeometry), partialGcpTransformOptions);\n return geometryToGeojsonGeometry(transformedGeometry);\n }\n /**\n * Transform an SVG string from resource space to geo space to a GeoJSON FeatureCollection\n *\n * This is a shortcut method, available as static method in order not to overpopulate intellisense suggestions\n * Note: Multi-geometries are not supported\n *\n * @param transformer - A GCP Transformer defining the transformation\n * @param svg - An SVG string to transform\n * @param partialGcpTransformOptions - GCP Transform options\n * @returns Input SVG string transformed to geo space, as a GeoJSON FeatureCollection\n */\n static transformSvgStringToGeojsonFeatureCollection(transformer, svg, partialGcpTransformOptions) {\n const geojsonGeometries = [];\n for (const svgGeometry of stringToSvgGeometriesGenerator(svg)) {\n const geojsonGeometry = this.transformSvgToGeojson(transformer, svgGeometry, partialGcpTransformOptions);\n geojsonGeometries.push(geojsonGeometry);\n }\n return geojsonGeometriesToGeojsonFeatureCollection(geojsonGeometries);\n }\n /**\n * Transform a GeoJSON Geometry from geo space to resource space to a SVG geometry\n *\n * This is a shortcut method, available as static method in order not to overpopulate intellisense suggestions\n * Note: Multi-geometries are not supported\n *\n * @param transformer - A GCP Transformer defining the transformation\n * @param geojsonGeometry - GeoJSON Geometry to transform\n * @param partialGcpTransformOptions - GCP Transform options\n * @returns Input GeoJSON Geometry transform to resource space, as SVG geometry\n */\n static transformGeojsonToSvg(transformer, geojsonGeometry, partialGcpTransformOptions) {\n // This middle step is needed to make typescript happy\n const transformedGeometry = transformer.transformToResource(geojsonGeometryToGeometry(geojsonGeometry), partialGcpTransformOptions);\n return geometryToSvgGeometry(transformedGeometry);\n }\n /**\n * Transform a GeoJSON FeatureCollection from geo space to resource space to a SVG string\n *\n * This is a shortcut method, available as static method in order not to overpopulate intellisense suggestions\n * Note: Multi-geometries are not supported\n *\n * @param transformer - A GCP Transformer defining the transformation\n * @param geojson - GeoJSON FeatureCollection to transform\n * @param partialGcpTransformOptions - GCP Transform options\n * @returns Input GeoJSON FeaturesCollection transformed to resource space, as SVG string\n */\n static transformGeojsonFeatureCollectionToSvgString(transformer, geojson, partialGcpTransformOptions) {\n const svgGeometries = [];\n for (const geojsonGeometry of geojsonFeatureCollectionToGeojsonGeometries(geojson)) {\n const svgGeometry = this.transformGeojsonToSvg(transformer, geojsonGeometry, partialGcpTransformOptions);\n svgGeometries.push(svgGeometry);\n }\n return svgGeometriesToSvgString(svgGeometries);\n }\n /**\n * Create a Projected GCP Transformer from a Georeferenced Map\n *\n * @param georeferencedMap - A Georeferenced Map\n * @param options - Options, including GCP Transformer Options, and a transformation type to overrule the type defined in the Georeferenced Map\n * @returns A Projected GCP Transformer\n */\n static fromGeoreferencedMap(georeferencedMap, options) {\n return new GcpTransformer(georeferencedMap.gcps, options?.transformationType || georeferencedMap.transformation?.type, options);\n }\n}\n"],"names":["GcpTransformer","BaseGcpTransformer","gcps","type","partialGcpTransformerOptions","generalGcps","gcp","gcpToGeneralGcp","mergePartialOptions","gcpTransformerOptionsToGeneralGcpTransformerOptions","generalGcpToGcp","mergeOptions","resourceGeometry","partialGcpTransformOptions","gcpToP","gcpToPointForToGeo","generalGcpToP","generalGcp","partialGeneralGcpTransformOptions","gcpTransformOptionsToGeneralGcpTransformOptions","geoGeometry","gcpToPointForToResource","resourceBbox","geoBbox","generalGcpTransformOptions","transformer","svgGeometry","transformedGeometry","svgGeometryToGeometry","geometryToGeojsonGeometry","svg","geojsonGeometries","stringToSvgGeometriesGenerator","geojsonGeometry","geojsonGeometriesToGeojsonFeatureCollection","geojsonGeometryToGeometry","geometryToSvgGeometry","geojson","svgGeometries","geojsonFeatureCollectionToGeojsonGeometries","svgGeometriesToSvgString","georeferencedMap","options"],"mappings":"+SAsBO,MAAMA,UAAuBC,EAAAA,kBAAmB,CAO/C,YAAYC,EAAMC,EAAO,aAAcC,EAA8B,CACrE,MAAMC,EAAcH,EAEf,OAAQI,GAAQA,EAAI,KAAOA,EAAI,QAAQ,EACvC,IAAIC,EAAAA,eAAe,EACxBH,EAA+BI,EAAAA,oBAAoB,CAAE,oBAAqB,EAAA,EAAQJ,CAA4B,EAC9G,MAAMC,EAAaF,EAAMM,EAAAA,oDAAoDL,CAA4B,CAAC,CAC9G,CAIA,IAAI,MAAO,CACP,OAAO,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D,MAAMG,EAAkB,KAAK,sBAAsBR,EAAaC,EAAab,CAA0B,EACvGkB,EAAkB,KAAKE,CAAe,CAC1C,CACA,OAAOC,EAAAA,4CAA4CH,CAAiB,CACxE,CAYA,OAAO,sBAAsBN,EAAaQ,EAAiBpB,EAA4B,CAEnF,MAAMc,EAAsBF,EAAY,oBAAoBU,EAAAA,0BAA0BF,CAAe,EAAGpB,CAA0B,EAClI,OAAOuB,EAAAA,sBAAsBT,CAAmB,CACpD,CAYA,OAAO,6CAA6CF,EAAaY,EAASxB,EAA4B,CAClG,MAAMyB,EAAgB,CAAA,EACtB,UAAWL,KAAmBM,8CAA4CF,CAAO,EAAG,CAChF,MAAMX,EAAc,KAAK,sBAAsBD,EAAaQ,EAAiBpB,CAA0B,EACvGyB,EAAc,KAAKZ,CAAW,CAClC,CACA,OAAOc,EAAAA,yBAAyBF,CAAa,CACjD,CAQA,OAAO,qBAAqBG,EAAkBC,EAAS,CACnD,OAAO,IAAI1C,EAAeyC,EAAiB,KAAMC,GAAS,oBAAsBD,EAAiB,gBAAgB,KAAMC,CAAO,CAClI,CACJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});async function n(r,t,o){let e;if(typeof o=="function"?e=await o(r,t):e=await fetch(r,t),!e.ok){const s=await e.json();throw s&&s.error?new Error(s.error):e.statusText?new Error(e.statusText):e.status===404?new Error(`Not found: ${r} (404)`):e.status===500?new Error("Internal server error (500)"):new Error(`Failed to fetch: ${r} (${e.status})`)}return e}async function a(r,t,o){return await(await n(r,t,o)).json()}async function f(r,t,o){return await a(`${r}/info.json`,t,o)}exports.fetchImageInfo=f;exports.fetchJson=a;exports.fetchUrl=n;
|
|
2
|
+
//# sourceMappingURL=index.cjs320.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs320.js","sources":["../../../node_modules/@allmaps/stdlib/dist/fetch.js"],"sourcesContent":["export async function fetchUrl(input, init, fetchFn) {\n let response;\n if (typeof fetchFn === 'function') {\n response = await fetchFn(input, init);\n }\n else {\n response = await fetch(input, init);\n }\n if (!response.ok) {\n const json = await response.json();\n if (json && json.error) {\n throw new Error(json.error);\n }\n else if (response.statusText) {\n throw new Error(response.statusText);\n }\n else if (response.status === 404) {\n throw new Error(`Not found: ${input} (404)`);\n }\n else if (response.status === 500) {\n throw new Error('Internal server error (500)');\n }\n else {\n throw new Error(`Failed to fetch: ${input} (${response.status})`);\n }\n }\n return response;\n}\nexport async function fetchJson(input, init, fetchFn) {\n const response = await fetchUrl(input, init, fetchFn);\n return await response.json();\n}\nexport async function fetchImageInfo(imageUri, init, fetchFn) {\n return await fetchJson(`${imageUri}/info.json`, init, fetchFn);\n}\nexport async function fetchImageBitmap(input, init, fetchFn) {\n const response = await fetchUrl(input, init, fetchFn);\n const blob = await response.blob();\n return await createImageBitmap(blob);\n}\n"],"names":["fetchUrl","input","init","fetchFn","response","json","fetchJson","fetchImageInfo","imageUri"],"mappings":"gFAAA,eAAsBA,EAASC,EAAOC,EAAMC,EAAS,CACjD,IAAIC,EAOJ,GANI,OAAOD,GAAY,WACnBC,EAAW,MAAMD,EAAQF,EAAOC,CAAI,EAGpCE,EAAW,MAAM,MAAMH,EAAOC,CAAI,EAElC,CAACE,EAAS,GAAI,CACd,MAAMC,EAAO,MAAMD,EAAS,KAAA,EAC5B,MAAIC,GAAQA,EAAK,MACP,IAAI,MAAMA,EAAK,KAAK,EAErBD,EAAS,WACR,IAAI,MAAMA,EAAS,UAAU,EAE9BA,EAAS,SAAW,IACnB,IAAI,MAAM,cAAcH,CAAK,QAAQ,EAEtCG,EAAS,SAAW,IACnB,IAAI,MAAM,6BAA6B,EAGvC,IAAI,MAAM,oBAAoBH,CAAK,KAAKG,EAAS,MAAM,GAAG,CAExE,CACA,OAAOA,CACX,CACA,eAAsBE,EAAUL,EAAOC,EAAMC,EAAS,CAElD,OAAO,MADU,MAAMH,EAASC,EAAOC,EAAMC,CAAO,GAC9B,KAAA,CAC1B,CACA,eAAsBI,EAAeC,EAAUN,EAAMC,EAAS,CAC1D,OAAO,MAAMG,EAAU,GAAGE,CAAQ,aAAcN,EAAMC,CAAO,CACjE","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function f(t,g,r,e=()=>!0,o=()=>!0){if(t.has(g)&&e(t.get(g)))return t.get(g);{const u=r();return o(u)&&t.set(g,u),u}}function l(t,g,r,e,o=()=>!0,u=()=>!0){if(t.get(g)?.has(r)&&o(t.get(g)?.get(r)))return t.get(g)?.get(r);{const n=e();return u(n)&&(t.get(g)||t.set(g,new Map),t.get(g)?.set(r,n)),n}}function m(t,g,r,e,o,u,n,s=()=>!0,p=()=>!0){if(t.get(g)?.get(r)?.get(e)?.get(o)?.has(u)&&s(t.get(g)?.get(r)?.get(e)?.get(o)?.get(u)))return t.get(g)?.get(r)?.get(e)?.get(o)?.get(u);{const i=n();return p(i)&&(t.get(g)||t.set(g,new Map),t.get(g)?.get(r)||t.get(g)?.set(r,new Map),t.get(g)?.get(r)?.get(e)||t.get(g)?.get(r)?.set(e,new Map),t.get(g)?.get(r)?.get(e)?.get(o)||t.get(g)?.get(r)?.get(e)?.set(o,new Map),t.get(g)?.get(r)?.get(e)?.get(o)?.set(u,i)),i}}exports.getPropertyFromCacheOrComputation=f;exports.getPropertyFromDoubleCacheOrComputation=l;exports.getPropertyFromQuintupleCacheOrComputation=m;
|
|
2
|
+
//# sourceMappingURL=index.cjs321.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs321.js","sources":["../../../node_modules/@allmaps/stdlib/dist/cache.js"],"sourcesContent":["export function getPropertyFromCacheOrComputation(cache, key, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.has(key) && checkUse(cache.get(key))) {\n return cache.get(key);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n cache.set(key, result);\n }\n return result;\n }\n}\nexport function getPropertyFromDoubleCacheOrComputation(cache, key0, key1, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.get(key0)?.has(key1) && checkUse(cache.get(key0)?.get(key1))) {\n return cache.get(key0)?.get(key1);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n if (!cache.get(key0)) {\n cache.set(key0, new Map());\n }\n cache.get(key0)?.set(key1, result);\n }\n return result;\n }\n}\nexport function getPropertyFromTripleCacheOrComputation(cache, key0, key1, key2, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.get(key0)?.get(key1)?.has(key2) &&\n checkUse(cache.get(key0)?.get(key1)?.get(key2))) {\n return cache.get(key0)?.get(key1)?.get(key2);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n if (!cache.get(key0)) {\n cache.set(key0, new Map());\n }\n if (!cache.get(key0)?.get(key1)) {\n cache.get(key0)?.set(key1, new Map());\n }\n cache.get(key0)?.get(key1)?.set(key2, result);\n }\n return result;\n }\n}\nexport function getPropertyFromQuadrupleCacheOrComputation(cache, key0, key1, key2, key3, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.get(key0)?.get(key1)?.get(key2)?.has(key3) &&\n checkUse(cache.get(key0)?.get(key1)?.get(key2)?.get(key3))) {\n return cache.get(key0)?.get(key1)?.get(key2)?.get(key3);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n if (!cache.get(key0)) {\n cache.set(key0, new Map());\n }\n if (!cache.get(key0)?.get(key1)) {\n cache.get(key0)?.set(key1, new Map());\n }\n if (!cache.get(key0)?.get(key1)?.get(key2)) {\n cache.get(key0)?.get(key1)?.set(key2, new Map());\n }\n cache.get(key0)?.get(key1)?.get(key2)?.set(key3, result);\n }\n return result;\n }\n}\nexport function getPropertyFromQuintupleCacheOrComputation(cache, key0, key1, key2, key3, key4, computation, checkUse = () => true, checkStore = () => true) {\n if (cache.get(key0)?.get(key1)?.get(key2)?.get(key3)?.has(key4) &&\n checkUse(cache.get(key0)?.get(key1)?.get(key2)?.get(key3)?.get(key4))) {\n return cache.get(key0)?.get(key1)?.get(key2)?.get(key3)?.get(key4);\n }\n else {\n const result = computation();\n if (checkStore(result)) {\n if (!cache.get(key0)) {\n cache.set(key0, new Map());\n }\n if (!cache.get(key0)?.get(key1)) {\n cache.get(key0)?.set(key1, new Map());\n }\n if (!cache.get(key0)?.get(key1)?.get(key2)) {\n cache.get(key0)?.get(key1)?.set(key2, new Map());\n }\n if (!cache.get(key0)?.get(key1)?.get(key2)?.get(key3)) {\n cache.get(key0)?.get(key1)?.get(key2)?.set(key3, new Map());\n }\n cache.get(key0)?.get(key1)?.get(key2)?.get(key3)?.set(key4, result);\n }\n return result;\n }\n}\n"],"names":["getPropertyFromCacheOrComputation","cache","key","computation","checkUse","checkStore","result","getPropertyFromDoubleCacheOrComputation","key0","key1","getPropertyFromQuintupleCacheOrComputation","key2","key3","key4"],"mappings":"gFAAO,SAASA,EAAkCC,EAAOC,EAAKC,EAAaC,EAAW,IAAM,GAAMC,EAAa,IAAM,GAAM,CACvH,GAAIJ,EAAM,IAAIC,CAAG,GAAKE,EAASH,EAAM,IAAIC,CAAG,CAAC,EACzC,OAAOD,EAAM,IAAIC,CAAG,EAEnB,CACD,MAAMI,EAASH,EAAA,EACf,OAAIE,EAAWC,CAAM,GACjBL,EAAM,IAAIC,EAAKI,CAAM,EAElBA,CACX,CACJ,CACO,SAASC,EAAwCN,EAAOO,EAAMC,EAAMN,EAAaC,EAAW,IAAM,GAAMC,EAAa,IAAM,GAAM,CACpI,GAAIJ,EAAM,IAAIO,CAAI,GAAG,IAAIC,CAAI,GAAKL,EAASH,EAAM,IAAIO,CAAI,GAAG,IAAIC,CAAI,CAAC,EACjE,OAAOR,EAAM,IAAIO,CAAI,GAAG,IAAIC,CAAI,EAE/B,CACD,MAAMH,EAASH,EAAA,EACf,OAAIE,EAAWC,CAAM,IACZL,EAAM,IAAIO,CAAI,GACfP,EAAM,IAAIO,EAAM,IAAI,G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-0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./index.cjs229.js"),l=require("./index.cjs230.js"),d=require("./index.cjs231.js"),w=require("./index.cjs423.js"),S=require("./index.cjs424.js"),m=require("./index.cjs425.js"),j=require("./index.cjs426.js"),z="image";function q(p,e){if(e?.preferredFormats){const n=new Set(p),i=e.preferredFormats.find(o=>n.has(o.toLowerCase()));if(i)return i.toLowerCase()}return"jpg"}class A{embedded=!0;uri;type=z;maxWidth;maxHeight;maxArea;supportsAnyRegionAndSize;supportedFormats;preferredFormats;width;height;majorVersion;constructor(e,n){const{parsedCanvas:i}=n||{};let o,r;if(i&&"service"in e){const s=e;let t,a;if(Array.isArray(s.service)?s.service.forEach(h=>{try{const g=m.getMajorIiifVersionFromImageService(h);(!a||g>a)&&(a=g,t=h)}catch{}}):t=s.service,!t)throw new Error("Unsupported IIIF Image Service");if("@id"in t)this.uri=t["@id"];else if("id"in t)this.uri=t.id;else throw new Error("Unsupported IIIF Image Service");if("type"in t&&t.type==="ImageService3")this.majorVersion=3;else if("type"in t&&t.type==="ImageService2"||"@type"in t&&t["@type"]==="ImageService2"||"@context"in t&&t["@context"]===d.Image2ContextString)this.majorVersion=2;else if("@context"in t&&(t["@context"]===l.Image1ContextString||t["@context"]===l.Image1ContextStringIncorrect))this.majorVersion=1;else if("profile"in t){let h;if(Array.isArray(t.profile)&&t.profile.length>0)h=t.profile[0];else if(typeof t.profile=="string")h=t.profile;else throw new Error("Unsupported IIIF Image Service");h.match(l.image1ProfileUriRegex)?this.majorVersion=1:h.match(d.image2ProfileUriRegex)?this.majorVersion=2:this.majorVersion=3}else throw new Error("Unsupported IIIF Image Service");if("profile"in t){const h=m.getProfileProperties(t);this.supportsAnyRegionAndSize=h.supportsAnyRegionAndSize,this.maxWidth=h.maxWidth,this.maxHeight=h.maxHeight,this.maxArea=h.maxArea,this.supportedFormats=m.getSupportedFormats(t)}else this.supportsAnyRegionAndSize=!1,this.supportedFormats=["jpg"];t.width&&(o=t.width),t.height&&(r=t.height)}else{if("@id"in e)this.uri=e["@id"];else if("id"in e)this.uri=e.id;else throw new Error("Unsupported IIIF Image");if("type"in e&&e.type==="ImageService3")this.majorVersion=3;else if("@type"in e&&e["@type"]==="iiif:Image"||"@context"in e&&e["@context"]===d.Image2ContextString)this.majorVersion=2;else if("@context"in e&&e["@context"]===l.Image1ContextString)this.majorVersion=1;else throw new Error("Unsupported IIIF Image");if("profile"in e){const s=m.getProfileProperties(e);this.supportsAnyRegionAndSize=s.supportsAnyRegionAndSize,this.maxWidth=s.maxWidth,this.maxHeight=s.maxHeight,this.maxArea=s.maxArea,this.supportedFormats=m.getSupportedFormats(e)}else this.supportsAnyRegionAndSize=!1,this.supportedFormats=["jpg"];"preferredFormats"in e&&(this.preferredFormats=e.preferredFormats)}if(!o)if(i)o=i.width;else if(e.width!==void 0)o=e.width;else throw new Error("Width not present on either Canvas or Image Resource");if(!r)if(i)r=i.height;else if(e.height!==void 0)r=e.height;else throw new Error("Height not present on either Canvas or Image Resource");this.width=o,this.height=r}getImageUrl(e,n){const{region:i,size:o}=e;let r,s,t,a,h;i?(h=`${i.x},${i.y},${i.width},${i.height}`,t=i.height,a=i.width):(h="full",t=this.height,a=this.width);let g;if(o){r=Math.round(o.width),s=Math.round(o.height);const R=String(r);let u=String(s);const x=a/t,I=s*x/x;this.majorVersion<=2&&s===Math.round(I)&&(u=""),g=`${R},${u}`}else r=this.width,s=this.height,g=this.majorVersion===2?"full":"max";const c=r*s;if(this.maxWidth!==void 0&&r>this.maxWidth)throw new Error(`Width of requested image is too large: ${r} > ${this.maxWidth}`);if(this.maxHeight!==void 0&&s>this.maxHeight)throw new Error(`Height of requested image is too large: ${s} > ${this.maxHeight}`);if(this.maxArea!==void 0&&c>this.maxArea)throw new Error(`Area of requested image is too large: ${c} > ${this.maxArea}`);const y=this.majorVersion===1?"native":"default",v=q(this.supportedFormats,n);return`${this.uri}/${h}/${g}/0/${y}.${v}`}getImageRequest(e,n="cover"){return S.getImageRequest({width:this.width,height:this.height},e,n,{supportsAnyRegionAndSize:this.supportsAnyRegionAndSize,maxWidth:this.maxWidth,maxHeight:this.maxHeight,maxArea:this.maxArea})}}class f extends A{source;tileZoomLevels;sizes;embedded=!1;constructor(e,n){super(e),this.source=n?.source;const i=m.getProfileProperties(e);let o;"tiles"in e&&(o=e.tiles),this.tileZoomLevels=w.getTileZoomLevels({width:this.width,height:this.height},o,i.supportsAnyRegionAndSize),"sizes"in e&&(this.sizes=e.sizes)}static parse(e,n){const{majorVersion:i,keepSource:o}=n||{};let r;return i===1?r=l.Image1Schema.parse(e):i===2?r=d.Image2Schema.parse(e):i===3?r=j.Image3Schema.parse(e):r=F.ImageSchema.parse(e),new f(r,o?{source:e}:{})}getTileImageRequest(e,n,i){return w.getTileImageRequest({width:this.width,height:this.height},e,n,i)}getImageRequest(e,n="cover"){return S.getImageRequest({width:this.width,height:this.height},e,n,{supportsAnyRegionAndSize:this.supportsAnyRegionAndSize,sizes:this.sizes,tileZoomLevels:this.tileZoomLevels,maxWidth:this.maxWidth,maxHeight:this.maxHeight,maxArea:this.maxArea})}}exports.EmbeddedImage=A;exports.Image=f;
|
|
2
|
+
//# sourceMappingURL=index.cjs322.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs322.js","sources":["../../../node_modules/@allmaps/iiif-parser/dist/classes/image.js"],"sourcesContent":["import { Image1Schema, Image2Schema, Image3Schema, ImageSchema } from '../schemas/iiif.js';\nimport { Image1ContextString, Image1ContextStringIncorrect, image1ProfileUriRegex } from '../schemas/image.1.js';\nimport { Image2ContextString, image2ProfileUriRegex } from '../schemas/image.2.js';\nimport { getTileZoomLevels, getTileImageRequest } from '../lib/tiles.js';\nimport { getImageRequest } from '../lib/image-requests.js';\nimport { getProfileProperties, getMajorIiifVersionFromImageService, getSupportedFormats } from '../lib/profile.js';\nconst ImageTypeString = 'image';\nfunction getImageUrlFormat(supportedFormats, options) {\n if (options?.preferredFormats) {\n const supportedFormatSet = new Set(supportedFormats);\n const preferredFormat = options.preferredFormats.find((format) => supportedFormatSet.has(format.toLowerCase()));\n if (preferredFormat) {\n return preferredFormat.toLowerCase();\n }\n }\n return 'jpg';\n}\n/**\n * Parsed IIIF Image, embedded in a Canvas\n *\n * @property embedded - Whether the Image is embedded in a Canvas\n * @property type - Resource type, equals 'image'\n * @property uri - URI of Image\n * @property majorVersion - IIIF API version of Image\n * @property supportsAnyRegionAndSize - Whether the associated Image Service supports any region and size\n * @property supportedFormats - Array of supported image formats of the associated Image Service\n * @property maxWidth - Maximum width of the associated Image Service\n * @property maxHeight - Maximum height of the associated Image Service\n * @property maxArea - Maximum area of the associated Image Service\n * @property width - Width of Image\n * @property height - Height of Image\n */\nexport class EmbeddedImage {\n embedded = true;\n uri;\n type = ImageTypeString;\n maxWidth;\n maxHeight;\n maxArea;\n supportsAnyRegionAndSize;\n supportedFormats;\n preferredFormats;\n width;\n height;\n majorVersion;\n constructor(parsedImage, options) {\n const { parsedCanvas } = options || {};\n let width;\n let height;\n if (parsedCanvas && 'service' in parsedImage) {\n const parsedEmbeddedImage = parsedImage;\n let imageService;\n let majorVersion;\n if (Array.isArray(parsedEmbeddedImage.service)) {\n parsedEmbeddedImage.service.forEach((currentImageService) => {\n try {\n const currentMajorVersion = getMajorIiifVersionFromImageService(currentImageService);\n if (!majorVersion || currentMajorVersion > majorVersion) {\n majorVersion = currentMajorVersion;\n imageService = currentImageService;\n }\n }\n catch {\n // Ignore this error, throw error later if no valid image service is found\n }\n });\n }\n else {\n imageService = parsedEmbeddedImage.service;\n }\n if (!imageService) {\n throw new Error('Unsupported IIIF Image Service');\n }\n if ('@id' in imageService) {\n this.uri = imageService['@id'];\n }\n else if ('id' in imageService) {\n this.uri = imageService.id;\n }\n else {\n throw new Error('Unsupported IIIF Image Service');\n }\n if ('type' in imageService && imageService.type === 'ImageService3') {\n this.majorVersion = 3;\n }\n else if (('type' in imageService && imageService.type === 'ImageService2') ||\n ('@type' in imageService &&\n imageService['@type'] === 'ImageService2') ||\n ('@context' in imageService &&\n imageService['@context'] === Image2ContextString)) {\n this.majorVersion = 2;\n }\n else if ('@context' in imageService &&\n (imageService['@context'] === Image1ContextString ||\n imageService['@context'] === Image1ContextStringIncorrect)) {\n this.majorVersion = 1;\n }\n else if ('profile' in imageService) {\n let profile;\n if (Array.isArray(imageService.profile) &&\n imageService.profile.length > 0) {\n profile = imageService.profile[0];\n }\n else if (typeof imageService.profile === 'string') {\n profile = imageService.profile;\n }\n else {\n throw new Error('Unsupported IIIF Image Service');\n }\n if (profile.match(image1ProfileUriRegex)) {\n this.majorVersion = 1;\n }\n else if (profile.match(image2ProfileUriRegex)) {\n this.majorVersion = 2;\n }\n else {\n this.majorVersion = 3;\n }\n }\n else {\n throw new Error('Unsupported IIIF Image Service');\n }\n if ('profile' in imageService) {\n const profileProperties = getProfileProperties(imageService);\n this.supportsAnyRegionAndSize =\n profileProperties.supportsAnyRegionAndSize;\n this.maxWidth = profileProperties.maxWidth;\n this.maxHeight = profileProperties.maxHeight;\n this.maxArea = profileProperties.maxArea;\n this.supportedFormats = getSupportedFormats(imageService);\n }\n else {\n this.supportsAnyRegionAndSize = false;\n this.supportedFormats = ['jpg'];\n }\n if (imageService.width) {\n width = imageService.width;\n }\n if (imageService.height) {\n height = imageService.height;\n }\n }\n else {\n if ('@id' in parsedImage) {\n this.uri = parsedImage['@id'];\n }\n else if ('id' in parsedImage) {\n this.uri = parsedImage.id;\n }\n else {\n throw new Error('Unsupported IIIF Image');\n }\n if ('type' in parsedImage && parsedImage.type === 'ImageService3') {\n this.majorVersion = 3;\n }\n else if (('@type' in parsedImage && parsedImage['@type'] === 'iiif:Image') ||\n ('@context' in parsedImage &&\n parsedImage['@context'] === Image2ContextString)) {\n this.majorVersion = 2;\n }\n else if ('@context' in parsedImage &&\n parsedImage['@context'] === Image1ContextString) {\n this.majorVersion = 1;\n }\n else {\n throw new Error('Unsupported IIIF Image');\n }\n if ('profile' in parsedImage) {\n const profileProperties = getProfileProperties(parsedImage);\n this.supportsAnyRegionAndSize =\n profileProperties.supportsAnyRegionAndSize;\n this.maxWidth = profileProperties.maxWidth;\n this.maxHeight = profileProperties.maxHeight;\n this.maxArea = profileProperties.maxArea;\n this.supportedFormats = getSupportedFormats(parsedImage);\n }\n else {\n this.supportsAnyRegionAndSize = false;\n this.supportedFormats = ['jpg'];\n }\n if ('preferredFormats' in parsedImage) {\n this.preferredFormats = parsedImage.preferredFormats;\n }\n }\n if (!width) {\n if (parsedCanvas) {\n width = parsedCanvas.width;\n }\n else if (parsedImage.width !== undefined) {\n width = parsedImage.width;\n }\n else {\n throw new Error('Width not present on either Canvas or Image Resource');\n }\n }\n if (!height) {\n if (parsedCanvas) {\n height = parsedCanvas.height;\n }\n else if (parsedImage.height !== undefined) {\n height = parsedImage.height;\n }\n else {\n throw new Error('Height not present on either Canvas or Image Resource');\n }\n }\n this.width = width;\n this.height = height;\n }\n /**\n * Generates a IIIF Image API URL for the requested region and size\n * @param imageRequest - Image request object containing the desired region and size of the requested image\n * @param options - Options for generating the requested image URL\n * @returns Image API URL that can be used to fetch the requested image\n */\n getImageUrl(imageRequest, options) {\n const { region, size } = imageRequest;\n let width;\n let height;\n let regionHeight;\n let regionWidth;\n let urlRegion;\n if (region) {\n urlRegion = `${region.x},${region.y},${region.width},${region.height}`;\n regionHeight = region.height;\n regionWidth = region.width;\n }\n else {\n urlRegion = 'full';\n regionHeight = this.height;\n regionWidth = this.width;\n }\n let urlSize;\n if (size) {\n width = Math.round(size.width);\n height = Math.round(size.height);\n const widthStr = String(width);\n let heightStr = String(height);\n const aspectRatio = regionWidth / regionHeight;\n const aspectRatioWidth = height * aspectRatio;\n const aspectRatioHeight = aspectRatioWidth / aspectRatio;\n if (this.majorVersion <= 2) {\n // In IIIF Image API 2.1 and below, use\n // \"the w, syntax for images that should be scaled maintaining the aspect ratio\"\n // In version 3, use \"w,h if the size requested does not require upscaling\"\n // See:\n // - https://iiif.io/api/image/2.1/#canonical-uri-syntax\n // - https://iiif.io/api/image/3.0/#48-canonical-uri-syntax\n // And see also:\n // - https://www.jack-reed.com/2016/10/14/rounding-strategies-used-in-iiif.html\n if (height === Math.round(aspectRatioHeight)) {\n heightStr = '';\n }\n }\n urlSize = `${widthStr},${heightStr}`;\n }\n else {\n width = this.width;\n height = this.height;\n urlSize = this.majorVersion === 2 ? 'full' : 'max';\n }\n const area = width * height;\n if (this.maxWidth !== undefined) {\n if (width > this.maxWidth) {\n throw new Error(`Width of requested image is too large: ${width} > ${this.maxWidth}`);\n }\n }\n if (this.maxHeight !== undefined) {\n if (height > this.maxHeight) {\n throw new Error(`Height of requested image is too large: ${height} > ${this.maxHeight}`);\n }\n }\n if (this.maxArea !== undefined) {\n if (area > this.maxArea) {\n throw new Error(`Area of requested image is too large: ${area} > ${this.maxArea}`);\n }\n }\n const quality = this.majorVersion === 1 ? 'native' : 'default';\n const format = getImageUrlFormat(this.supportedFormats, options);\n return `${this.uri}/${urlRegion}/${urlSize}/0/${quality}.${format}`;\n }\n getImageRequest(size, mode = 'cover') {\n return getImageRequest({ width: this.width, height: this.height }, size, mode, {\n supportsAnyRegionAndSize: this.supportsAnyRegionAndSize,\n maxWidth: this.maxWidth,\n maxHeight: this.maxHeight,\n maxArea: this.maxArea\n });\n }\n}\n/**\n * Parsed IIIF Image\n * @property tileZoomLevels - Array of parsed tile zoom levels\n * @property sizes - Array of parsed sizes\n */\nexport class Image extends EmbeddedImage {\n source;\n tileZoomLevels;\n sizes;\n embedded = false;\n constructor(parsedImage, options) {\n super(parsedImage);\n this.source = options?.source;\n const profileProperties = getProfileProperties(parsedImage);\n let tilesets;\n if ('tiles' in parsedImage) {\n tilesets = parsedImage.tiles;\n }\n this.tileZoomLevels = getTileZoomLevels({ width: this.width, height: this.height }, tilesets, profileProperties.supportsAnyRegionAndSize);\n if ('sizes' in parsedImage) {\n this.sizes = parsedImage.sizes;\n }\n }\n /**\n * Parses a IIIF image and returns a [Image](#image) containing the parsed version\n * @param iiifImage - Source data of IIIF Image\n * @param majorVersion - IIIF API version of Image. If not provided, it will be determined automatically\n * @returns Parsed IIIF Image\n * @static\n */\n static parse(iiifImage, parseOptions) {\n const { majorVersion, keepSource } = parseOptions || {};\n let parsedImage;\n if (majorVersion === 1) {\n parsedImage = Image1Schema.parse(iiifImage);\n }\n else if (majorVersion === 2) {\n parsedImage = Image2Schema.parse(iiifImage);\n }\n else if (majorVersion === 3) {\n parsedImage = Image3Schema.parse(iiifImage);\n }\n else {\n parsedImage = ImageSchema.parse(iiifImage);\n }\n return new Image(parsedImage, keepSource ? { source: iiifImage } : {});\n }\n // TODO: rename this to getImageRequest\n /**\n * Returns a Image request object for a tile with the requested zoom level, column, and row\n * @param zoomLevel - Desired zoom level of the requested tile\n * @param column - Column of the requested tile\n * @param row - Row of the requested tile\n * @returns Image request object that can be used to fetch the requested tile\n */\n getTileImageRequest(zoomLevel, column, row) {\n return getTileImageRequest({ width: this.width, height: this.height }, zoomLevel, column, row);\n }\n /**\n * Returns a Image request object for the requested region and size\n * @param size - Size of the requested thumbnail\n * @param mode - Desired fit mode of the requested thumbnail\n * @returns Image request object that can be used to fetch the requested thumbnail\n */\n getImageRequest(size, mode = 'cover') {\n return getImageRequest({ width: this.width, height: this.height }, size, mode, {\n supportsAnyRegionAndSize: this.supportsAnyRegionAndSize,\n sizes: this.sizes,\n tileZoomLevels: this.tileZoomLevels,\n maxWidth: this.maxWidth,\n maxHeight: this.maxHeight,\n maxArea: this.maxArea\n });\n }\n}\n"],"names":["ImageTypeString","getImageUrlFormat","supportedFormats","options","supportedFormatSet","preferredFormat","format","EmbeddedImage","parsedImage","parsedCanvas","width","height","parsedEmbeddedImage","imageService","majorVersion","currentImageService","currentMajorVersion","getMajorIiifVersionFromImageService","Image2ContextString","Image1ContextString","Image1ContextStringIncorrect","profile","image1ProfileUriRegex","image2ProfileUriRegex","profileProperties","getProfileProperties","getSupportedFormats","imageRequest","region","size","regionHeight","regionWidth","urlRegion","urlSize","widthStr","heightStr","aspectRatio","aspectRatioHeight","area","quality","mode","getImageRequest","Image","tilesets","getTileZoomLevels","iiifImage","parseOptions","keepSource","Image1Schema","Image2Schema","Image3Schema","ImageSchema","zoomLevel","column","row","getTileImageRequest"],"mappings":"+SAMMA,EAAkB,QACxB,SAASC,EAAkBC,EAAkBC,EAAS,CAClD,GAAIA,GAAS,iBAAkB,CAC3B,MAAMC,EAAqB,IAAI,IAAIF,CAAgB,EAC7CG,EAAkBF,EAAQ,iBAAiB,KAAMG,GAAWF,EAAmB,IAAIE,EAAO,YAAA,CAAa,CAAC,EAC9G,GAAID,EACA,OAAOA,EAAgB,YAAA,CAE/B,CACA,MAAO,KACX,CAgBO,MAAME,CAAc,CACvB,SAAW,GACX,IACA,KAAOP,EACP,SACA,UACA,QACA,yBACA,iBACA,iBACA,MACA,OACA,aACA,YAAYQ,EAAaL,EAAS,CAC9B,KAAM,CAAE,aAAAM,GAAiBN,GAAW,CAAA,EACpC,IAAIO,EACAC,EACJ,GAAIF,GAAgB,YAAaD,EAAa,CAC1C,MAAMI,EAAsBJ,EAC5B,IAAIK,EACAC,EAkBJ,GAjBI,MAAM,QAAQF,EAAoB,OAAO,EACzCA,EAAoB,QAAQ,QAASG,GAAwB,CACzD,GAAI,CACA,MAAMC,EAAsBC,EAAAA,oCAAoCF,CAAmB,GAC/E,CAACD,GAAgBE,EAAsBF,KACvCA,EAAeE,EACfH,EAAeE,EAEvB,MACM,CAEN,CACJ,CAAC,EAGDF,EAAeD,EAAoB,QAEnC,CAACC,EACD,MAAM,IAAI,MAAM,gCAAgC,EAEpD,GAAI,QAASA,EACT,KAAK,IAAMA,EAAa,KAAK,UAExB,OAAQA,EACb,KAAK,IAAMA,EAAa,OAGxB,OAAM,IAAI,MAAM,gCAAgC,EAEpD,GAAI,SAAUA,GAAgBA,EAAa,OAAS,gBAChD,KAAK,aAAe,UAEd,SAAUA,GAAgBA,EAAa,OAAS,iBACrD,UAAWA,GACRA,EAAa,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BAAkB,CAAE,MAAO,KAAK,MAAO,OAAQ,KAAK,MAAA,EAAUD,EAAUnB,EAAkB,wBAAwB,EACpI,UAAWhB,IACX,KAAK,MAAQA,EAAY,MAEjC,CAQA,OAAO,MAAMqC,EAAWC,EAAc,CAClC,KAAM,CAAE,aAAAhC,EAAc,WAAAiC,CAAA,EAAeD,GAAgB,CAAA,EACrD,IAAItC,EACJ,OAAIM,IAAiB,EACjBN,EAAcwC,EAAAA,aAAa,MAAMH,CAAS,EAErC/B,IAAiB,EACtBN,EAAcyC,EAAAA,aAAa,MAAMJ,CAAS,EAErC/B,IAAiB,EACtBN,EAAc0C,EAAAA,aAAa,MAAML,CAAS,EAG1CrC,EAAc2C,EAAAA,YAAY,MAAMN,CAAS,EAEtC,IAAIH,EAAMlC,EAAauC,EAAa,CAAE,OAAQF,CAAA,EAAc,EAAE,CACzE,CASA,oBAAoBO,EAAWC,EAAQC,EAAK,CACxC,OAAOC,sBAAoB,CAAE,MAAO,KAAK,MAAO,OAAQ,KAAK,MAAA,EAAUH,EAAWC,EAAQC,CAAG,CACjG,CAOA,gBAAgBzB,EAAMW,EAAO,QAAS,CAClC,OAAOC,kBAAgB,CAAE,MAAO,KAAK,MAAO,OAAQ,KAAK,MAAA,EAAUZ,EAAMW,EAAM,CAC3E,yBAA0B,KAAK,yBAC/B,MAAO,KAAK,MACZ,eAAgB,KAAK,eACrB,SAAU,KAAK,SACf,UAAW,KAAK,UAChB,QAAS,KAAK,OAAA,CACjB,CACL,CACJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs323.js","sources":["../../../node_modules/lodash-es/cloneDeep.js"],"sourcesContent":["import baseClone from './_baseClone.js';\n\n/** Used to compose bitmasks for cloning. */\nvar CLONE_DEEP_FLAG = 1,\n CLONE_SYMBOLS_FLAG = 4;\n\n/**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\nfunction cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n}\n\nexport default cloneDeep;\n"],"names":["CLONE_DEEP_FLAG","CLONE_SYMBOLS_FLAG","cloneDeep","value","baseClone"],"mappings":"kDAGA,IAAIA,EAAkB,EAClBC,EAAqB,EAoBzB,SAASC,EAAUC,EAAO,CACxB,OAAOC,EAAUD,EAAOH,EAAkBC,CAAkB,CAC9D","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("./index.cjs358.js"),N=require("./index.cjs218.js"),w=require("./index.cjs215.js"),c=require("./index.cjs275.js"),O=require("./index.cjs217.js"),t=require("./index.cjs359.js"),U=1e-4,K={steinerPoints:[],steinerPolygons:[],minimumTriangleAngle:U,computeInsideSteinerPolygons:!1};function j(i,p,_){const l=O.mergeOptions(K,_);i=c.conformPolygon(i);const R=w.polygonIsBboxRectangle(i);let P=l.steinerPolygons.map(e=>c.conformPolygon(e));const b=t.buildKDBushPointIndex(l.steinerPoints);i=t.splitPolygonLines(i,l.steinerPoints,b),P=P.map(e=>t.splitPolygonLines(e,l.steinerPoints,b));const y=t.preprocessPolygonForInsideCheck(i),B=l.steinerPoints.filter(e=>t.coordsInPolygonForInsidenessCheck(e[0],e[1],y));let u=[],m=[],d=[],f=[],h=[],q=[];p?(u=t.interpolatePolygon(i,p),d=P.map(e=>t.interpolatePolygon(e,p)),h=t.bboxToGridPoints(w.computeBbox(i),p),q=h.filter(e=>t.coordsInPolygonForInsidenessCheck(e[0],e[1],y))):(u=i,d=P),m=u.flat(),f=d.flat(2);const E=[...m,...q,...f,...B],r=[],S=new Map;for(const e of E){const n=`${e[0]},${e[1]}`;S.has(n)||(S.set(n,r.length),r.push(e))}const k=([e,n])=>{const s=S.get(`${e},${n}`);if(s===void 0)throw new Error(`Point not found in uniquePoints: [${e}, ${n}]`);return s},x=u.map(e=>e.map(k)),C=new Set(x.flat()),F=d.map(e=>e.map(n=>n.map(k))),A=[...x,...F.flat()].flatMap(e=>e.map((n,s)=>[n,e[(s+1)%e.length]])),L=new G(r.flat()),o=new N(L);o.delaunify(!0),o.constrainAll(A);let I=[],a=[];const M=[];for(let e=0;e<o.del.triangles.length;e+=3)I.push([o.del.triangles[e],o.del.triangles[e+1],o.del.triangles[e+2]]),a.push([r[o.del.triangles[e]],r[o.del.triangles[e+1]],r[o.del.triangles[e+2]]]),M.push(C.has(o.del.triangles[e])||C.has(o.del.triangles[e+1])||C.has(o.del.triangles[e+2]));let g=a.map(e=>c.midPoint(...e));const T=a.map((e,n)=>M[n]?(R?!0:t.coordsInPolygonForInsidenessCheck(g[n][0],g[n][1],y))&&c.triangleAngles(e).every(s=>s>=l.minimumTriangleAngle):!0);I=I.filter((e,n)=>T[n]),a=a.filter((e,n)=>T[n]),g=g.filter((e,n)=>T[n]);let $=[];const v=P.map(e=>c.closePolygon(e));if(l.computeInsideSteinerPolygons){const e=v.map(n=>t.preprocessPolygonForInsideCheck(n));$=a.map((n,s)=>t.coordsInPolygonsForInsidenessCheck(g[s][0],g[s][1],e)===!0)}return{interpolatedPolygon:u,interpolatedPolygonPoints:m,gridPoints:h,gridPointsInPolygon:q,interpolatedSteinerPolygons:d,interpolatedSteinerPolygonsPoints:f,uniquePoints:r,triangles:a,uniquePointIndexTriangles:I,uniquePointIndexInterpolatedPolygon:x,uniquePointIndexEdges:A,uniquePointIndexInterpolatedSteinerPolygons:F,insideSteinerPolygonsTriangles:$}}exports.interpolatePolygon=t.interpolatePolygon;exports.interpolateRing=t.interpolateRing;exports.triangulateToUnique=j;
|
|
2
|
+
//# sourceMappingURL=index.cjs324.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs324.js","sources":["../../../node_modules/@allmaps/triangulate/dist/triangulate.js"],"sourcesContent":["import Delaunator from 'delaunator';\nimport Constrainautor from '@kninnug/constrainautor';\nimport { closePolygon, computeBbox, conformPolygon, mergeOptions, midPoint, polygonIsBboxRectangle, triangleAngles } from '@allmaps/stdlib';\nimport { bboxToGridPoints, interpolateRing, interpolatePolygon, coordsInPolygonForInsidenessCheck, preprocessPolygonForInsideCheck, coordsInPolygonsForInsidenessCheck, buildKDBushPointIndex, splitPolygonLines } from './shared.js';\nconst MINIMUM_TRIANGLE_ANGLE = 0.0001;\nconst defaultTriangulationOptions = {\n steinerPoints: [],\n steinerPolygons: [],\n minimumTriangleAngle: MINIMUM_TRIANGLE_ANGLE,\n computeInsideSteinerPolygons: false\n};\nexport { interpolateRing, interpolatePolygon };\n/**\n * Triangulate a polygon to triangles smaller then a distance\n *\n * Grid points are placed inside the polygon to obtain small, well conditioned triangles.\n *\n * @param polygon - Polygon\n * @param distance - Distance that conditions the triangles\n * @param triangulationOptions - Triangulation Options.\n * @returns Array of triangles partitioning the polygon\n */\nexport function triangulate(polygon, distance, triangulationOptions) {\n {\n const { triangles } = triangulateToUnique(polygon, distance, triangulationOptions);\n return triangles;\n }\n}\n/**\n * Triangulate a polygon to triangles smaller then a distance, and return them via unique points.\n *\n * Grid points are placed inside the polygon to obtain small, well conditioned triangles.\n *\n * This function returns the triangulation as an array of unique points, and triangles of indices refering to those unique points.\n *\n * @param polygon - Polygon\n * @param distance - Distance that conditions the triangles\n * @param partialOptions - Triangulation Options.\n * @returns Triangulation Object with uniquePointIndexTriangles and uniquePoints\n */\nexport function triangulateToUnique(polygon, distance, partialOptions) {\n const options = mergeOptions(defaultTriangulationOptions, partialOptions);\n // Conform polygon and Steiner polygons (this also checks if there are at least 3 points)\n polygon = conformPolygon(polygon);\n const polygonIsRectangle = polygonIsBboxRectangle(polygon);\n let steinerPolygons = options.steinerPolygons.map((steinerPolygon) => conformPolygon(steinerPolygon));\n // Split polygon and Steiner polygons using Steiner points\n const steinerPointIndex = buildKDBushPointIndex(options.steinerPoints);\n polygon = splitPolygonLines(polygon, options.steinerPoints, steinerPointIndex);\n steinerPolygons = steinerPolygons.map((steinerPolygon) => splitPolygonLines(steinerPolygon, options.steinerPoints, steinerPointIndex));\n // Preprocess polygon\n const polygonForInsidenessCheck = preprocessPolygonForInsideCheck(polygon);\n // Gather Steinerpoints\n const steinerPointsInPolygon = options.steinerPoints.filter((point) => coordsInPolygonForInsidenessCheck(point[0], point[1], polygonForInsidenessCheck));\n // Interpolate polygons and create grid based on distance\n let interpolatedPolygon = [];\n let interpolatedPolygonPoints = [];\n let interpolatedSteinerPolygons = [];\n let interpolatedSteinerPolygonsPoints = [];\n let gridPoints = [];\n let gridPointsInPolygon = [];\n if (distance) {\n // Interpolate polygon\n interpolatedPolygon = interpolatePolygon(polygon, distance);\n // Interpolate Steiner Polygons\n interpolatedSteinerPolygons = steinerPolygons.map((steinerPolygon) => interpolatePolygon(steinerPolygon, distance));\n // Add grid points inside the polygon\n gridPoints = bboxToGridPoints(computeBbox(polygon), distance);\n gridPointsInPolygon = gridPoints.filter((point) => coordsInPolygonForInsidenessCheck(point[0], point[1], polygonForInsidenessCheck));\n }\n else {\n interpolatedPolygon = polygon;\n interpolatedSteinerPolygons = steinerPolygons;\n }\n interpolatedPolygonPoints = interpolatedPolygon.flat();\n interpolatedSteinerPolygonsPoints = interpolatedSteinerPolygons.flat(2);\n // Gather all points and deduplicate to keep only unique points\n // with map from points to their index in uniquePoints, and index getter\n const allPoints = [\n ...interpolatedPolygonPoints,\n ...gridPointsInPolygon,\n ...interpolatedSteinerPolygonsPoints,\n ...steinerPointsInPolygon\n ];\n const uniquePoints = [];\n const uniquePointIndexByPointString = new Map();\n for (const point of allPoints) {\n const key = `${point[0]},${point[1]}`;\n if (!uniquePointIndexByPointString.has(key)) {\n uniquePointIndexByPointString.set(key, uniquePoints.length);\n uniquePoints.push(point);\n }\n }\n const getPointIndex = ([x, y]) => {\n const index = uniquePointIndexByPointString.get(`${x},${y}`);\n if (index === undefined)\n throw new Error(`Point not found in uniquePoints: [${x}, ${y}]`);\n return index;\n };\n // Lookup point indices for the edges of the interpolated polygon\n const uniquePointIndexInterpolatedPolygon = interpolatedPolygon.map((ring) => ring.map(getPointIndex));\n const uniquePointIndexSetInterpolatedPolygon = new Set(uniquePointIndexInterpolatedPolygon.flat());\n // Lookup point indices for the edges of the interpolated steiner polygons\n const uniquePointIndexInterpolatedSteinerPolygons = interpolatedSteinerPolygons.map((polygon) => polygon.map((ring) => ring.map(getPointIndex)));\n // Gather all constrained edges\n // TODO: consider to make unique, but this could be very expensive and low chance of non-uniquess\n const uniquePointIndexEdges = [\n ...uniquePointIndexInterpolatedPolygon,\n ...uniquePointIndexInterpolatedSteinerPolygons.flat()\n ].flatMap((ring) => ring.map((uniquePointIndex, i) => [\n uniquePointIndex,\n ring[(i + 1) % ring.length]\n ]));\n // Initialize Delaunay triangulation\n const delautator = new Delaunator(uniquePoints.flat());\n // Constrain triangulation\n // Note: instead of\n // const constrainautor = new Constrainautor(delautator, uniquePointIndexEdges)\n // which gives an error \"Constraining edge intersects point\" for small distances, e.g. maxDepth 7 on https://gist.githubusercontent.com/sammeltassen/fa3dbfaf4dfa800e00824478c4bd1928/raw/f182beac911e38b0a1d1eb420fbd54b4e6d2f2eb/nl-railway-map.json\n // we perform a delaunify check first as proposed by\n // https://github.com/kninnug/Constrainautor/issues/11#issuecomment-2571296247\n // Keep an eye on proposed solutions, sinche the delaunify check is expensive\n const constrainautor = new Constrainautor(delautator);\n constrainautor.delaunify(true);\n constrainautor.constrainAll(uniquePointIndexEdges);\n let uniquePointIndexTriangles = [];\n let triangles = [];\n const triangleIsAlongInterpolatedPolygon = [];\n for (let i = 0; i < constrainautor.del.triangles.length; i += 3) {\n uniquePointIndexTriangles.push([\n constrainautor.del.triangles[i],\n constrainautor.del.triangles[i + 1],\n constrainautor.del.triangles[i + 2]\n ]);\n triangles.push([\n uniquePoints[constrainautor.del.triangles[i]],\n uniquePoints[constrainautor.del.triangles[i + 1]],\n uniquePoints[constrainautor.del.triangles[i + 2]]\n ]);\n // Only classify triangles if they are along the border\n triangleIsAlongInterpolatedPolygon.push(uniquePointIndexSetInterpolatedPolygon.has(constrainautor.del.triangles[i]) ||\n uniquePointIndexSetInterpolatedPolygon.has(constrainautor.del.triangles[i + 1]) ||\n uniquePointIndexSetInterpolatedPolygon.has(constrainautor.del.triangles[i + 2]));\n }\n // Triangle midPoints\n let triangleMidPoints = triangles.map((triangle) => midPoint(...triangle));\n // Only keep triangles inside polygon\n const triangleShouldKeep = triangles.map((triangle, index) => {\n // Only keep if inside (and can't be outside if polygon is bbox)\n // This check for every triangle is expensive!\n if (triangleIsAlongInterpolatedPolygon[index]) {\n return ((polygonIsRectangle\n ? true\n : coordsInPolygonForInsidenessCheck(triangleMidPoints[index][0], triangleMidPoints[index][1], polygonForInsidenessCheck)) &&\n triangleAngles(triangle).every((angle) => angle >= options.minimumTriangleAngle));\n }\n else {\n return true;\n }\n });\n uniquePointIndexTriangles = uniquePointIndexTriangles.filter((_triangle, index) => triangleShouldKeep[index]);\n triangles = triangles.filter((_triangle, index) => triangleShouldKeep[index]);\n triangleMidPoints = triangleMidPoints.filter((_triangle, index) => triangleShouldKeep[index]);\n // If requested, compute if triangles are inside steiner polygons\n // This check for every triangle is expensive!\n let insideSteinerPolygonsTriangles = [];\n const steinerClosedPolygons = steinerPolygons.map((steinerPolygon) => closePolygon(steinerPolygon));\n if (options.computeInsideSteinerPolygons) {\n const steinerClosedPolygonsForInsidenessCheck = steinerClosedPolygons.map((steinerPolygon) => preprocessPolygonForInsideCheck(steinerPolygon));\n insideSteinerPolygonsTriangles = triangles.map((_triangle, index) => coordsInPolygonsForInsidenessCheck(triangleMidPoints[index][0], triangleMidPoints[index][1], steinerClosedPolygonsForInsidenessCheck) === true);\n }\n return {\n interpolatedPolygon,\n interpolatedPolygonPoints,\n gridPoints,\n gridPointsInPolygon,\n interpolatedSteinerPolygons,\n interpolatedSteinerPolygonsPoints,\n uniquePoints,\n triangles,\n uniquePointIndexTriangles,\n uniquePointIndexInterpolatedPolygon,\n uniquePointIndexEdges,\n uniquePointIndexInterpolatedSteinerPolygons,\n insideSteinerPolygonsTriangles\n };\n}\n"],"names":["MINIMUM_TRIANGLE_ANGLE","defaultTriangulationOptions","triangulateToUnique","polygon","distance","partialOptions","options","mergeOptions","conformPolygon","polygonIsRectangle","polygonIsBboxRectangle","steinerPolygons","steinerPolygon","steinerPointIndex","buildKDBushPointIndex","splitPolygonLines","polygonForInsidenessCheck","preprocessPolygonForInsideCheck","steinerPointsInPolygon","point","coordsInPolygonForInsidenessCheck","interpolatedPolygon","interpolatedPolygonPoints","interpolatedSteinerPolygons","interpolatedSteinerPolygonsPoints","gridPoints","gridPointsInPolygon","interpolatePolygon","bboxToGridPoints","computeBbox","allPoints","uniquePoints","uniquePointIndexByPointString","key","getPointIndex","x","y","index","uniquePointIndexInterpolatedPolygon","ring","uniquePointIndexSetInterpolatedPolygon","uniquePointIndexInterpolatedSteinerPolygons","uniquePointIndexEdges","uniquePointIndex","i","delautator","Delaunator","constrainautor","Constrainautor","uniquePointIndexTriangles","triangles","triangleIsAlongInterpolatedPolygon","triangleMidPoints","triangle","midPoint","triangleShouldKeep","triangleAngles","angle","_triangle","insideSteinerPolygonsTriangles","steinerClosedPolygons","closePolygon","steinerClosedPolygonsForInsidenessCheck","coordsInPolygonsForInsidenessCheck"],"mappings":"gRAIMA,EAAyB,KACzBC,EAA8B,CAChC,cAAe,CAAA,EACf,gBAAiB,CAAA,EACjB,qBAAsBD,EACtB,6BAA8B,EAClC,EA8BO,SAASE,EAAoBC,EAASC,EAAUC,EAAgB,CACnE,MAAMC,EAAUC,EAAAA,aAAaN,EAA6BI,CAAc,EAExEF,EAAUK,EAAAA,eAAeL,CAAO,EAChC,MAAMM,EAAqBC,EAAAA,uBAAuBP,CAAO,EACzD,IAAIQ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A,aAAAO,EACA,UAAAmB,EACA,0BAAAD,EACA,oCAAAX,EACA,sBAAAI,EACA,4CAAAD,EACA,+BAAAkB,CAAA,CAER","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs215.js"),y=require("./index.cjs275.js"),l=require("./index.cjs270.js"),c=require("./index.cjs353.js");var b=!0,u=class{rbush=new c;polygonsById=new Map;bboxesById=new Map;itemsById=new Map;addItem(e,t){this.removeItem(e);const s=a.computeBbox(t),r={minX:s[0],minY:s[1],maxX:s[2],maxY:s[3],id:e};this.polygonsById.set(e,t),this.bboxesById.set(e,s),this.itemsById.set(e,r),this.rbush.insert(r)}removeItem(e){const t=this.itemsById.get(e);t&&(this.rbush.remove(t),this.polygonsById.delete(e),this.bboxesById.delete(e),this.itemsById.delete(e))}clear(){this.polygonsById.clear(),this.bboxesById.clear(),this.itemsById.clear(),this.rbush.clear()}#e(e,t,s,r){return this.rbush.search({minX:e,minY:t,maxX:s,maxY:r})}getBbox(e){return this.bboxesById.get(e)}getPolygon(e){return this.polygonsById.get(e)}searchFromBbox(e){const[t,s,r,i]=e;return this.#e(t,s,r,i).map(n=>n.id)}searchFromPoint(e,t=b){const[s,r,i,n]=[e[0],e[1],e[0],e[1]],m=this.#e(s,r,i,n);return t?m.filter(o=>{const h=this.polygonsById.get(o.id);return h?l(e,y.closePolygon(h)):!1}).map(o=>o.id):m.map(o=>o.id)}};exports.RTree=u;
|
|
2
|
+
//# sourceMappingURL=index.cjs325.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs325.js","sources":["../../../node_modules/@allmaps/render/dist/maps/RTree.js"],"sourcesContent":["import { closePolygon, computeBbox } from \"@allmaps/stdlib\";\nimport inside from \"point-in-polygon-hao\";\nimport RBush from \"rbush\";\n//#region src/maps/RTree.ts\nvar DEFAULT_FILTER_INSIDE_POLYGON = true;\n/**\n* 2D spatial index for polygons\n*/\nvar RTree = class {\n\trbush = new RBush();\n\tpolygonsById = /* @__PURE__ */ new Map();\n\tbboxesById = /* @__PURE__ */ new Map();\n\titemsById = /* @__PURE__ */ new Map();\n\taddItem(id, polygon) {\n\t\tthis.removeItem(id);\n\t\tconst bbox = computeBbox(polygon);\n\t\tconst item = {\n\t\t\tminX: bbox[0],\n\t\t\tminY: bbox[1],\n\t\t\tmaxX: bbox[2],\n\t\t\tmaxY: bbox[3],\n\t\t\tid\n\t\t};\n\t\tthis.polygonsById.set(id, polygon);\n\t\tthis.bboxesById.set(id, bbox);\n\t\tthis.itemsById.set(id, item);\n\t\tthis.rbush.insert(item);\n\t}\n\tremoveItem(id) {\n\t\tconst item = this.itemsById.get(id);\n\t\tif (item) {\n\t\t\tthis.rbush.remove(item);\n\t\t\tthis.polygonsById.delete(id);\n\t\t\tthis.bboxesById.delete(id);\n\t\t\tthis.itemsById.delete(id);\n\t\t}\n\t}\n\tclear() {\n\t\tthis.polygonsById.clear();\n\t\tthis.bboxesById.clear();\n\t\tthis.itemsById.clear();\n\t\tthis.rbush.clear();\n\t}\n\t#search(minX, minY, maxX, maxY) {\n\t\treturn this.rbush.search({\n\t\t\tminX,\n\t\t\tminY,\n\t\t\tmaxX,\n\t\t\tmaxY\n\t\t});\n\t}\n\tgetBbox(id) {\n\t\treturn this.bboxesById.get(id);\n\t}\n\tgetPolygon(id) {\n\t\treturn this.polygonsById.get(id);\n\t}\n\tsearchFromBbox(bbox) {\n\t\tconst [minX, minY, maxX, maxY] = bbox;\n\t\treturn this.#search(minX, minY, maxX, maxY).map((item) => item.id);\n\t}\n\tsearchFromPoint(point, filterInsidePolygon = DEFAULT_FILTER_INSIDE_POLYGON) {\n\t\tconst [minX, minY, maxX, maxY] = [\n\t\t\tpoint[0],\n\t\t\tpoint[1],\n\t\t\tpoint[0],\n\t\t\tpoint[1]\n\t\t];\n\t\tconst rtreeResults = this.#search(minX, minY, maxX, maxY);\n\t\tif (filterInsidePolygon) return rtreeResults.filter((item) => {\n\t\t\tconst polygon = this.polygonsById.get(item.id);\n\t\t\tif (polygon) return inside(point, closePolygon(polygon));\n\t\t\telse return false;\n\t\t}).map((item) => item.id);\n\t\telse return rtreeResults.map((item) => item.id);\n\t}\n};\n//#endregion\nexport { RTree };\n\n//# sourceMappingURL=RTree.js.map"],"names":["DEFAULT_FILTER_INSIDE_POLYGON","RTree","RBush","id","polygon","bbox","computeBbox","item","#search","minX","minY","maxX","maxY","point","filterInsidePolygon","rtreeResults","inside","closePolygon"],"mappings":"kNAIA,IAAIA,EAAgC,GAIhCC,EAAQ,KAAM,CACjB,MAAQ,IAAIC,EACZ,iBAAmC,IACnC,eAAiC,IACjC,cAAgC,IAChC,QAAQC,EAAIC,EAAS,CACpB,KAAK,WAAWD,CAAE,EAClB,MAAME,EAAOC,EAAAA,YAAYF,CAAO,EAC1BG,EAAO,CACZ,KAAMF,EAAK,CAAC,EACZ,KAAMA,EAAK,CAAC,EACZ,KAAMA,EAAK,CAAC,EACZ,KAAMA,EAAK,CAAC,EACZ,GAAAF,CAAA,EAED,KAAK,aAAa,IAAIA,EAAIC,CAAO,EACjC,KAAK,WAAW,IAAID,EAAIE,CAAI,EAC5B,KAAK,UAAU,IAAIF,EAAII,CAAI,EAC3B,KAAK,MAAM,OAAOA,CAAI,CACvB,CACA,WAAWJ,EAAI,CACd,MAAMI,EAAO,KAAK,UAAU,IAAIJ,CAAE,EAC9BI,IACH,KAAK,MAAM,OAAOA,CAAI,EACtB,KAAK,aAAa,OAAOJ,CAAE,EAC3B,KAAK,WAAW,OAAOA,CAAE,EACzB,KAAK,UAAU,OAAOA,CAAE,EAE1B,CACA,OAAQ,CACP,KAAK,aAAa,MAAA,EAClB,KAAK,WAAW,MAAA,EAChB,KAAK,UAAU,MAAA,EACf,KAAK,MAAM,MAAA,CACZ,CACAK,GAAQC,EAAMC,EAAMC,EAAMC,EAAM,CAC/B,OAAO,KAAK,MAAM,OAAO,CACxB,KAAAH,EACA,KAAAC,EACA,KAAAC,EACA,KAAAC,CAAA,CACA,CACF,CACA,QAAQT,EAAI,CACX,OAAO,KAAK,WAAW,IAAIA,CAAE,CAC9B,CACA,WAAWA,EAAI,CACd,OAAO,KAAK,aAAa,IAAIA,CAAE,CAChC,CACA,eAAeE,EAAM,CACpB,KAAM,CAACI,EAAMC,EAAMC,EAAMC,CAAI,EAAIP,EACjC,OAAO,KAAKG,GAAQC,EAAMC,EAAMC,EAAMC,CAAI,EAAE,IAAKL,GAASA,EAAK,EAAE,CAClE,CACA,gBAAgBM,EAAOC,EAAsBd,EAA+B,CAC3E,KAAM,CAACS,EAAMC,EAAMC,EAAMC,CAAI,EAAI,CAChCC,EAAM,CAAC,EACPA,EAAM,CAAC,EACPA,EAAM,CAAC,EACPA,EAAM,CAAC,CAAA,EAEFE,EAAe,KAAKP,GAAQC,EAAMC,EAAMC,EAAMC,CAAI,EACxD,OAAIE,EAA4BC,EAAa,OAAQR,GAAS,CAC7D,MAAMH,EAAU,KAAK,aAAa,IAAIG,EAAK,EAAE,EAC7C,OAAIH,EAAgBY,EAAOH,EAAOI,EAAAA,aAAab,CAAO,CAAC,EAC3C,EACb,CAAC,EAAE,IAAKG,GAASA,EAAK,EAAE,EACZQ,EAAa,IAAKR,GAASA,EAAK,EAAE,CAC/C,CACD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs354.js"),u=require("./index.cjs355.js"),n=16;function a(e){return s.sha1Hex(e)}function r(e,t=n){return a(String(e)).slice(0,t)}function h(e,t=n){return r(u.serialize(e),t)}exports.generateChecksum=h;exports.generateId=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs326.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs326.js","sources":["../../../node_modules/@allmaps/id/dist/sync.js"],"sourcesContent":["import { sha1Hex } from './sha1.js';\nimport { serialize } from './checksum.js';\nconst DEFAULT_LENGTH = 16;\n/**\n * Computes SHA-1 hash of input string.\n *\n * @param Input string.\n * @returns SHA-1 hash of `str`.\n */\nfunction generateHash(str) {\n return sha1Hex(str);\n}\n/**\n * Generates an ID from a string using the SHA-1 algorithm. Given the same input, the ID will always be the same.\n *\n * @param str - Input string\n * @param length - Length of returned hash. The maximum length of the hash is 40 characters. The default length is 16.\n * @returns First `length` characters of the SHA-1 hash of `str`.\n */\nexport function generateId(str, length = DEFAULT_LENGTH) {\n const hash = generateHash(String(str));\n return hash.slice(0, length);\n}\n/**\n * Generates a random ID.\n *\n * @param length - Length of returned hash. The maximum length of the hash is 40 characters.\n * @returns First `length` characters of the SHA-1 hash of a random UUID.\n */\nexport function generateRandomId(length = DEFAULT_LENGTH) {\n const uuid = crypto.randomUUID();\n const id = generateId(uuid, length);\n return id;\n}\n/**\n * Generates a checksum of a JSON object.\n *\n * @param obj - JSON object.\n * @param length - Length of returned hash. The maximum length of the hash is 40 characters.\n * @returns First `length` characters of the SHA-1 hash of sorted and serialized version of `obj`.\n */\nexport function generateChecksum(obj, length = DEFAULT_LENGTH) {\n const checksum = generateId(serialize(obj), length);\n return checksum;\n}\n"],"names":["DEFAULT_LENGTH","generateHash","str","sha1Hex","generateId","length","generateChecksum","obj","serialize"],"mappings":"oJAEMA,EAAiB,GAOvB,SAASC,EAAaC,EAAK,CACvB,OAAOC,EAAAA,QAAQD,CAAG,CACtB,CAQO,SAASE,EAAWF,EAAKG,EAASL,EAAgB,CAErD,OADaC,EAAa,OAAOC,CAAG,CAAC,EACzB,MAAM,EAAGG,CAAM,CAC/B,CAmBO,SAASC,EAAiBC,EAAKF,EAASL,EAAgB,CAE3D,OADiBI,EAAWI,EAAAA,UAAUD,CAAG,EAAGF,CAAM,CAEtD","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs226.js");const n=require("./index.cjs459.js"),i=require("./index.cjs460.js"),l=require("./index.cjs461.js"),d=require("./index.cjs462.js");function f(e){return{id:g(e),...C(e),type:h(e),partOf:m(e),provider:A(e)}}function g(e){if(i.isAnnotation1(e)){const r=e.target.source;return"id"in r?r.id:r["@id"]}else return e.target.service[0]["@id"]}function h(e){return"service"in e.target?e.target.service[0].type:e.target.source.type}function m(e){if(i.isAnnotation1(e))return e.target.source.partOf}function A(e){if(i.isAnnotation1(e))return e.target.source.provider}function w(e){return"pixelCoords"in e?e.pixelCoords:e.resourceCoords}function y(e){return e.body.features.map(r=>({resource:w(r.properties),geo:r.geometry.coordinates}))}function v(e){if(i.isAnnotation1(e))return{created:e.created,modified:e.modified}}function C(e){if(i.isAnnotation1(e))return{width:e.target.source.width,height:e.target.source.height};const s=e.target.selector.value,p=/width="(?<width>\d+)"/.exec(s),o=/height="(?<height>\d+)"/.exec(s),t=p?.groups?.width,c=o?.groups?.height;if(!t||!c)throw new Error("Could not parse image dimensions");return{width:parseInt(t),height:parseInt(c)}}function P(e){const s=e.target.selector.value,o=/points="(?<points>.+)"/.exec(s)?.groups;if(o&&o.points){const t=o.points.trim().split(/\s+/);if(t[0]===t[t.length-1]&&t.splice(-1),t.length>=3)return t.map(c=>{const u=c.split(",");if(u.length===2)return[parseFloat(u[0]),parseFloat(u[1])];throw new Error("Could not parse resource mask")});throw new Error("Could not parse resource mask")}else throw new Error("Could not parse resource mask")}function a(e){let r;"resourceCrs"in e.body&&(r=e.body.resourceCrs);let s;return"_allmaps"in e.body&&(s=e.body._allmaps),{"@context":"https://schemas.allmaps.org/map/2/context.json",type:"GeoreferencedMap",id:e.id,...v(e),resource:f(e),gcps:y(e),resourceMask:P(e),transformation:e.body.transformation,resourceCrs:r,_allmaps:s}}function b(e){if(n.isAnnotationPageBeforeParse(e)){let r;return"items"in e&&Array.isArray(e.items)&&n.isAnnotation0BeforeParse(e.items[0])?r=l.AnnotationPageSchema.parse(e):r=d.AnnotationPageSchema.parse(e),r.items.map(s=>a(s))}else{let r;return n.isAnnotation0BeforeParse(e)?r=l.AnnotationSchema.parse(e):r=d.AnnotationSchema.parse(e),[a(r)]}}exports.parseAnnotation=b;
|
|
2
|
+
//# sourceMappingURL=index.cjs327.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs327.js","sources":["../../../node_modules/@allmaps/annotation/dist/parser.js"],"sourcesContent":["import { Annotation0Schema, Annotation1Schema, AnnotationPage0Schema, AnnotationPage1Schema } from './schemas/annotation.js';\nimport { isAnnotationPageBeforeParse, isAnnotation0BeforeParse } from './before-parse.js';\nimport { isAnnotation1 } from './guards.js';\nfunction parseResource(annotation) {\n return {\n id: parseImageId(annotation),\n ...parseImageDimensions(annotation),\n type: parseResourceType(annotation),\n partOf: parsePartOf(annotation),\n provider: parseProvider(annotation)\n };\n}\nfunction parseImageId(annotation) {\n if (isAnnotation1(annotation)) {\n const source = annotation.target.source;\n if ('id' in source) {\n return source.id;\n }\n else {\n return source['@id'];\n }\n }\n else {\n return annotation.target.service[0]['@id'];\n }\n}\nfunction parseResourceType(annotation) {\n if ('service' in annotation.target) {\n return annotation.target.service[0].type;\n }\n else {\n return annotation.target.source.type;\n }\n}\nfunction parsePartOf(annotation) {\n if (isAnnotation1(annotation)) {\n return annotation.target.source.partOf;\n }\n}\nfunction parseProvider(annotation) {\n if (isAnnotation1(annotation)) {\n return annotation.target.source.provider;\n }\n}\nfunction parseResourceCoords(properties) {\n if ('pixelCoords' in properties) {\n return properties.pixelCoords;\n }\n else {\n return properties.resourceCoords;\n }\n}\nfunction parseGcps(annotation) {\n return annotation.body.features.map((gcpFeature) => ({\n resource: parseResourceCoords(gcpFeature.properties),\n geo: gcpFeature.geometry.coordinates\n }));\n}\nfunction parseDates(annotation) {\n if (isAnnotation1(annotation)) {\n return {\n created: annotation.created,\n modified: annotation.modified\n };\n }\n}\nfunction parseImageDimensions(annotation) {\n if (isAnnotation1(annotation)) {\n return {\n width: annotation.target.source.width,\n height: annotation.target.source.height\n };\n }\n const selector = annotation.target.selector;\n const svg = selector.value;\n const widthResult = /width=\"(?<width>\\d+)\"/.exec(svg);\n const heightResult = /height=\"(?<height>\\d+)\"/.exec(svg);\n const width = widthResult?.groups?.width;\n const height = heightResult?.groups?.height;\n if (!width || !height) {\n throw new Error('Could not parse image dimensions');\n }\n return {\n width: parseInt(width),\n height: parseInt(height)\n };\n}\nfunction parseResourceMask(annotation) {\n const selector = annotation.target.selector;\n const svg = selector.value;\n const result = /points=\"(?<points>.+)\"/.exec(svg);\n const groups = result?.groups;\n if (groups && groups.points) {\n const pointStrings = groups.points.trim().split(/\\s+/);\n // Resource masks are not round-trip: they don't repeat the first point at the end of the list of points.\n // According to their spec, SVG polygons are not supposed to be round-trip either.\n // Here we deal with inputs that are round-trip by removing the last point\n if (pointStrings[0] === pointStrings[pointStrings.length - 1]) {\n pointStrings.splice(-1);\n }\n if (pointStrings.length >= 3) {\n return pointStrings.map((point) => {\n const numberStrings = point.split(',');\n if (numberStrings.length === 2) {\n return [parseFloat(numberStrings[0]), parseFloat(numberStrings[1])];\n }\n else {\n throw new Error('Could not parse resource mask');\n }\n });\n }\n else {\n throw new Error('Could not parse resource mask');\n }\n }\n else {\n throw new Error('Could not parse resource mask');\n }\n}\nfunction getGeoreferencedMap(annotation) {\n let resourceCrs;\n if ('resourceCrs' in annotation.body) {\n resourceCrs = annotation.body.resourceCrs;\n }\n let _allmaps;\n if ('_allmaps' in annotation.body) {\n _allmaps = annotation.body._allmaps;\n }\n return {\n '@context': 'https://schemas.allmaps.org/map/2/context.json',\n type: 'GeoreferencedMap',\n id: annotation.id,\n ...parseDates(annotation),\n resource: parseResource(annotation),\n gcps: parseGcps(annotation),\n resourceMask: parseResourceMask(annotation),\n transformation: annotation.body.transformation,\n resourceCrs,\n _allmaps\n };\n}\n/**\n * Parses a Georeference Annotation or an Annotation Page containing multiple Georeference Annotations\n * and returns an array of Georeferenced Maps.\n * @param {Annotation | AnnotationPage} annotation - Georeference Annotation or Annotation Page containing multiple Georeference Annotations\n * @returns {Map[]} Array of maps\n * @example\n * ```js\n * import fs from 'fs'\n * import { parseAnnotation } from '@allmaps/annotation'\n *\n * const annotation = JSON.parse(fs.readFileSync('./examples/annotation.example.json'))\n * const maps = parseAnnotation(annotation)\n * ```\n */\nexport function parseAnnotation(annotation) {\n if (isAnnotationPageBeforeParse(annotation)) {\n // Seperate .parse for different versions for better Zod errors\n let parsedAnnotationPage;\n if ('items' in annotation &&\n Array.isArray(annotation.items) &&\n isAnnotation0BeforeParse(annotation.items[0])) {\n parsedAnnotationPage = AnnotationPage0Schema.parse(annotation);\n }\n else {\n parsedAnnotationPage = AnnotationPage1Schema.parse(annotation);\n }\n return parsedAnnotationPage.items.map((parsedAnnotation) => getGeoreferencedMap(parsedAnnotation));\n }\n else {\n // Seperate .parse for different versions for better Zod errors\n let parsedAnnotation;\n if (isAnnotation0BeforeParse(annotation)) {\n parsedAnnotation = Annotation0Schema.parse(annotation);\n }\n else {\n parsedAnnotation = Annotation1Schema.parse(annotation);\n }\n return [getGeoreferencedMap(parsedAnnotation)];\n }\n}\n"],"names":["parseResource","annotation","parseImageId","parseImageDimensions","parseResourceType","parsePartOf","parseProvider","isAnnotation1","source","parseResourceCoords","properties","parseGcps","gcpFeature","parseDates","svg","widthResult","heightResult","width","height","parseResourceMask","groups","pointStrings","point","numberStrings","getGeoreferencedMap","resourceCrs","_allmaps","parseAnnotation","isAnnotationPageBeforeParse","parsedAnnotationPage","isAnnotation0BeforeParse","AnnotationPage0Schema","AnnotationPage1Schema","parsedAnnotation","Annotation0Schema","Annotation1Schema"],"mappings":"+OAGA,SAASA,EAAcC,EAAY,CAC/B,MAAO,CACH,GAAIC,EAAaD,CAAU,EAC3B,GAAGE,EAAqBF,CAAU,EAClC,KAAMG,EAAkBH,CAAU,EAClC,OAAQI,EAAYJ,CAAU,EAC9B,SAAUK,EAAcL,CAAU,CAAA,CAE1C,CACA,SAASC,EAAaD,EAAY,CAC9B,GA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5C4B,EAAuBE,EAAAA,qBAAsB,MAAM9B,CAAU,EAG7D4B,EAAuBG,EAAAA,qBAAsB,MAAM/B,CAAU,EAE1D4B,EAAqB,MAAM,IAAKI,GAAqBT,EAAoBS,CAAgB,CAAC,CACrG,KACK,CAED,IAAIA,EACJ,OAAIH,EAAAA,yBAAyB7B,CAAU,EACnCgC,EAAmBC,EAAAA,iBAAkB,MAAMjC,CAAU,EAGrDgC,EAAmBE,EAAAA,iBAAkB,MAAMlC,CAAU,EAElD,CAACuB,EAAoBS,CAAgB,CAAC,CACjD,CACJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index.cjs226.js");require("./index.cjs227.js");const c=require("./index.cjs466.js"),o=require("./index.cjs459.js"),n=require("./index.cjs464.js"),f=require("./index.cjs465.js");function a(e){if(o.isGeoreferencedMapsBeforeParse(e)){let r;return o.isGeoreferencedMap2BeforeParse(e[0])?r=n.GeoreferencedMapsSchema.parse(e):r=f.GeoreferencedMapsSchema.parse(e),c.toGeoreferencedMaps2(r)}else{let r;return o.isGeoreferencedMap2BeforeParse(e)?r=n.GeoreferencedMapSchema.parse(e):r=f.GeoreferencedMapSchema.parse(e),c.toGeoreferencedMap2(r)}}exports.validateGeoreferencedMap=a;
|
|
2
|
+
//# sourceMappingURL=index.cjs328.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs328.js","sources":["../../../node_modules/@allmaps/annotation/dist/validator.js"],"sourcesContent":["import { Annotation0Schema, Annotation1Schema, AnnotationPage0Schema, AnnotationPage1Schema } from './schemas/annotation.js';\nimport { GeoreferencedMap1Schema, GeoreferencedMaps1Schema, GeoreferencedMap2Schema, GeoreferencedMaps2Schema } from './schemas/georeferenced-map.js';\nimport { toAnnotation1, toAnnotationPage1, toGeoreferencedMap2, toGeoreferencedMaps2 } from './convert.js';\nimport { isAnnotationPageBeforeParse, isAnnotation0BeforeParse, isGeoreferencedMapsBeforeParse, isGeoreferencedMap2BeforeParse } from './before-parse.js';\nexport function validateAnnotation(annotation) {\n if (isAnnotationPageBeforeParse(annotation)) {\n // Seperate .parse for different versions for better Zod errors\n let parsedAnnotationPage;\n if ('items' in annotation &&\n Array.isArray(annotation.items) &&\n isAnnotation0BeforeParse(annotation.items[0])) {\n parsedAnnotationPage = AnnotationPage0Schema.parse(annotation);\n }\n else {\n parsedAnnotationPage = AnnotationPage1Schema.parse(annotation);\n }\n return toAnnotationPage1(parsedAnnotationPage);\n }\n else {\n // Seperate .parse for different versions for better Zod errors\n let parsedAnnotation;\n if (isAnnotation0BeforeParse(annotation)) {\n parsedAnnotation = Annotation0Schema.parse(annotation);\n }\n else {\n parsedAnnotation = Annotation1Schema.parse(annotation);\n }\n return toAnnotation1(parsedAnnotation);\n }\n}\nexport function validateGeoreferencedMap(mapOrMaps) {\n if (isGeoreferencedMapsBeforeParse(mapOrMaps)) {\n // Seperate .parse for different versions for better Zod errors\n let parsedGeoreferencedMaps;\n if (isGeoreferencedMap2BeforeParse(mapOrMaps[0])) {\n parsedGeoreferencedMaps = GeoreferencedMaps2Schema.parse(mapOrMaps);\n }\n else {\n parsedGeoreferencedMaps = GeoreferencedMaps1Schema.parse(mapOrMaps);\n }\n return toGeoreferencedMaps2(parsedGeoreferencedMaps);\n }\n else {\n // Seperate .parse for different versions for better Zod errors\n let parsedGeoreferencedMap;\n if (isGeoreferencedMap2BeforeParse(mapOrMaps)) {\n parsedGeoreferencedMap = GeoreferencedMap2Schema.parse(mapOrMaps);\n }\n else {\n parsedGeoreferencedMap = GeoreferencedMap1Schema.parse(mapOrMaps);\n }\n return toGeoreferencedMap2(parsedGeoreferencedMap);\n }\n}\n"],"names":["validateGeoreferencedMap","mapOrMaps","isGeoreferencedMapsBeforeParse","parsedGeoreferencedMaps","isGeoreferencedMap2BeforeParse","GeoreferencedMaps2Schema","GeoreferencedMaps1Schema","toGeoreferencedMaps2","parsedGeoreferencedMap","GeoreferencedMap2Schema","GeoreferencedMap1Schema","toGeoreferencedMap2"],"mappings":"4QA8BO,SAASA,EAAyBC,EAAW,CAChD,GAAIC,EAAAA,+BAA+BD,CAAS,EAAG,CAE3C,IAAIE,EACJ,OAAIC,iCAA+BH,EAAU,CAAC,CAAC,EAC3CE,EAA0BE,EAAAA,wBAAyB,MAAMJ,CAAS,EAGlEE,EAA0BG,EAAAA,wBAAyB,MAAML,CAAS,EAE/DM,EAAAA,qBAAqBJ,CAAuB,CACvD,KACK,CAED,IAAIK,EACJ,OAAIJ,EAAAA,+BAA+BH,CAAS,EACxCO,EAAyBC,EAAAA,uBAAwB,MAAMR,CAAS,EAGhEO,EAAyBE,EAAAA,uBAAwB,MAAMT,CAAS,EAE7DU,EAAAA,oBAAoBH,CAAsB,CACrD,CACJ","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function i(e,n={}){const{sorted:l}=n;l||(e=e.slice().sort(h));const s=e.length,r=new Array(s*2);let t=0;for(let c=0;c<s;c++){const o=e[c];for(;t>=2&&u(r[t-2],r[t-1],o)<=0;)t--;r[t++]=o}const f=t+1;for(let c=s-2;c>=0;c--){const o=e[c];for(;t>=f&&u(r[t-2],r[t-1],o)<=0;)t--;r[t++]=o}return r.slice(0,t-1)}function u(e,n,l){return(n[1]-e[1])*(l[0]-e[0])-(n[0]-e[0])*(l[1]-e[1])}function h(e,n){return e[0]===n[0]?e[1]-n[1]:e[0]-n[0]}module.exports=i;
|
|
2
|
+
//# sourceMappingURL=index.cjs329.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs329.js","sources":["../../../node_modules/monotone-chain-convex-hull/lib-esm/index.js"],"sourcesContent":["/**\n * Computes the convex hull of a binary image using Andrew's Monotone Chain Algorithm\n * http://www.algorithmist.com/index.php/Monotone_Chain_Convex_Hull\n *\n * @param points - An array of points.\n * @param options - MCCH Algorithm options.\n * @return Coordinates of the convex hull in clockwise order\n */\nexport default function monotoneChainConvexHull(points, options = {}) {\n const { sorted } = options;\n if (!sorted) {\n points = points.slice().sort(byXThenY);\n }\n const n = points.length;\n const result = new Array(n * 2);\n let k = 0;\n for (let i = 0; i < n; i++) {\n const point = points[i];\n while (k >= 2 && cw(result[k - 2], result[k - 1], point) <= 0) {\n k--;\n }\n result[k++] = point;\n }\n const t = k + 1;\n for (let i = n - 2; i >= 0; i--) {\n const point = points[i];\n while (k >= t && cw(result[k - 2], result[k - 1], point) <= 0) {\n k--;\n }\n result[k++] = point;\n }\n return result.slice(0, k - 1);\n}\nfunction cw(p1, p2, p3) {\n return (p2[1] - p1[1]) * (p3[0] - p1[0]) - (p2[0] - p1[0]) * (p3[1] - p1[1]);\n}\nfunction byXThenY(point1, point2) {\n if (point1[0] === point2[0]) {\n return point1[1] - point2[1];\n }\n return point1[0] - point2[0];\n}\n//# sourceMappingURL=index.js.map"],"names":["monotoneChainConvexHull","points","options","sorted","byXThenY","n","result","k","i","point","cw","t","p1","p2","p3","point1","point2"],"mappings":"aAQA,SAAwBA,EAAwBC,EAAQC,EAAU,GAAI,CAClE,KAAM,CAAE,OAAAC,GAAWD,EACdC,IACDF,EAASA,EAAO,QAAQ,KAAKG,CAAQ,GAEzC,MAAMC,EAAIJ,EAAO,OACXK,EAAS,IAAI,MAAMD,EAAI,CAAC,EAC9B,IAAIE,EAAI,EACR,QAASC,EAAI,EAAGA,EAAIH,EAAGG,IAAK,CACxB,MAAMC,EAAQR,EAAOO,CAAC,EACtB,KAAOD,GAAK,GAAKG,EAAGJ,EAAOC,EAAI,CAAC,EAAGD,EAAOC,EAAI,CAAC,EAAGE,CAAK,GAAK,GACxDF,IAEJD,EAAOC,GAAG,EAAIE,CAClB,CACA,MAAME,EAAIJ,EAAI,EACd,QAASC,EAAIH,EAAI,EAAGG,GAAK,EAAGA,IAAK,CAC7B,MAAMC,EAAQR,EAAOO,CAAC,EACtB,KAAOD,GAAKI,GAAKD,EAAGJ,EAAOC,EAAI,CAAC,EAAGD,EAAOC,EAAI,CAAC,EAAGE,CAAK,GAAK,GACxDF,IAEJD,EAAOC,GAAG,EAAIE,CAClB,CACA,OAAOH,EAAO,MAAM,EAAGC,EAAI,CAAC,CAChC,CACA,SAASG,EAAGE,EAAIC,EAAIC,EAAI,CACpB,OAAQD,EAAG,CAAC,EAAID,EAAG,CAAC,IAAME,EAAG,CAAC,EAAIF,EAAG,CAAC,IAAMC,EAAG,CAAC,EAAID,EAAG,CAAC,IAAME,EAAG,CAAC,EAAIF,EAAG,CAAC,EAC9E,CACA,SAASR,EAASW,EAAQC,EAAQ,CAC9B,OAAID,EAAO,CAAC,IAAMC,EAAO,CAAC,EACfD,EAAO,CAAC,EAAIC,EAAO,CAAC,EAExBD,EAAO,CAAC,EAAIC,EAAO,CAAC,CAC/B","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs275.js");function l(o){return Array.isArray(o)&&o.length>=2&&o.every(e=>typeof e=="number")}function y(o){return Array.isArray(o)&&o.every(l)}function u(o){return Array.isArray(o)&&o.every(l)}function a(o){return Array.isArray(o)&&o.every(u)}function c(o){return Array.isArray(o)&&o.every(l)}function g(o){return Array.isArray(o)&&o.every(y)}function f(o){return Array.isArray(o)&&o.every(a)}function j(o){return typeof o=="object"&&o!==null&&"type"in o&&o.type==="Point"&&"coordinates"in o&&l(o.coordinates)}function P(o){return typeof o=="object"&&o!==null&&"type"in o&&o.type==="LineString"&&"coordinates"in o&&y(o.coordinates)}function d(o){return typeof o=="object"&&o!==null&&"type"in o&&o.type==="Polygon"&&"coordinates"in o&&Array.isArray(o.coordinates)&&a(o.coordinates)}function G(o){return typeof o=="object"&&o!==null&&"type"in o&&o.type==="MultiPoint"&&"coordinates"in o&&c(o.coordinates)}function M(o){return typeof o=="object"&&o!==null&&"type"in o&&o.type==="MultiLineString"&&"coordinates"in o&&g(o.coordinates)}function m(o){return typeof o=="object"&&o!==null&&"type"in o&&o.type==="MultiPolygon"&&"coordinates"in o&&Array.isArray(o.coordinates)&&f(o.coordinates)}function w(o){const e=typeof o=="object"&&o!==null,n=e&&"type"in o&&typeof o.type=="string"&&(o.type==="Point"||o.type==="LineString"||o.type==="Polygon"||o.type==="MultiPoint"||o.type==="MultiLineString"||o.type==="MultiPolygon"),r=e&&"coordinates"in o&&Array.isArray(o.coordinates);return n&&r}function i(o){return o.slice(0,2)}function T(o){return i(o.coordinates)}function S(o){return s.conformLineString(o.coordinates.map(i))}function L(o,e=!1){const t=s.conformPolygon(o.coordinates.map(n=>n.map(i)));return e?t.map(n=>[...n,n[0]]):t}function A(o){return o.coordinates.map(i)}function p(o){return s.conformMultiLineString(o.coordinates.map(e=>e.map(i)))}function C(o,e=!1){const t=s.conformMultiPolygon(o.coordinates.map(n=>n.map(r=>r.map(i))));return e?t.map(n=>n.map(r=>[...r,r[0]])):t}function F(o){if(j(o))return T(o);if(P(o))return S(o);if(d(o))return L(o);if(G(o))return A(o);if(M(o))return p(o);if(m(o))return C(o);throw new Error("Geometry type not supported")}function O(o){return s.geometryToPoints(F(o))}function v(o,e){return{type:"Feature",properties:{},geometry:o}}function R(o,e){return{type:"FeatureCollection",features:o.map((t,n)=>v(t))}}function h(o){return o.geometry}function q(o){return o.features.map(h)}exports.geojsonFeatureCollectionToGeojsonGeometries=q;exports.geojsonFeatureToGeojsonGeometry=h;exports.geojsonGeometriesToGeojsonFeatureCollection=R;exports.geojsonGeometryToGeojsonFeature=v;exports.geojsonGeometryToGeometry=F;exports.geojsonGeometryToPoints=O;exports.geojsonLineStringToLineString=S;exports.geojsonMultiLineStringToMultiLineString=p;exports.geojsonMultiPointToMultiPoint=A;exports.geojsonMultiPolygonToMultiPolygon=C;exports.geojsonPointToPoint=T;exports.geojsonPolygonToPolygon=L;exports.isGeojsonGeometry=w;exports.isGeojsonLineString=P;exports.isGeojsonLineStringCoordinates=y;exports.isGeojsonMultiLineString=M;exports.isGeojsonMultiLineStringCoordinates=g;exports.isGeojsonMultiPoint=G;exports.isGeojsonMultiPointCoordinates=c;exports.isGeojsonMultiPolygon=m;exports.isGeojsonMultiPolygonCoordinates=f;exports.isGeojsonPoint=j;exports.isGeojsonPolygon=d;exports.isGeojsonPolygonCoordinates=a;exports.isGeojsonRingCoordinates=u;
|
|
2
|
+
//# sourceMappingURL=index.cjs330.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs330.js","sources":["../../../node_modules/@allmaps/stdlib/dist/geojson.js"],"sourcesContent":["import { conformLineString, conformRing, conformPolygon, conformMultiLineString, conformMultiPolygon, geometryToSvgGeometry, geometryToPoints } from './geometry.js';\n// Assert\nfunction isGeojsonPointCoordinates(input) {\n return (Array.isArray(input) &&\n input.length >= 2 &&\n input.every((item) => typeof item === 'number'));\n}\nexport function isGeojsonLineStringCoordinates(input) {\n return Array.isArray(input) && input.every(isGeojsonPointCoordinates);\n}\nexport function isGeojsonRingCoordinates(input) {\n return Array.isArray(input) && input.every(isGeojsonPointCoordinates);\n}\nexport function isGeojsonPolygonCoordinates(input) {\n return Array.isArray(input) && input.every(isGeojsonRingCoordinates);\n}\nexport function isGeojsonMultiPointCoordinates(input) {\n return Array.isArray(input) && input.every(isGeojsonPointCoordinates);\n}\nexport function isGeojsonMultiLineStringCoordinates(input) {\n return Array.isArray(input) && input.every(isGeojsonLineStringCoordinates);\n}\nexport function isGeojsonMultiPolygonCoordinates(input) {\n return Array.isArray(input) && input.every(isGeojsonPolygonCoordinates);\n}\nexport function isGeojsonPoint(input) {\n return (typeof input === 'object' &&\n input !== null &&\n 'type' in input &&\n input.type === 'Point' &&\n 'coordinates' in input &&\n isGeojsonPointCoordinates(input.coordinates));\n}\nexport function isGeojsonLineString(input) {\n return (typeof input === 'object' &&\n input !== null &&\n 'type' in input &&\n input.type === 'LineString' &&\n 'coordinates' in input &&\n isGeojsonLineStringCoordinates(input.coordinates));\n}\nexport function isGeojsonPolygon(input) {\n return (typeof input === 'object' &&\n input !== null &&\n 'type' in input &&\n input.type === 'Polygon' &&\n 'coordinates' in input &&\n Array.isArray(input.coordinates) &&\n isGeojsonPolygonCoordinates(input.coordinates));\n}\nexport function isGeojsonMultiPoint(input) {\n return (typeof input === 'object' &&\n input !== null &&\n 'type' in input &&\n input.type === 'MultiPoint' &&\n 'coordinates' in input &&\n isGeojsonMultiPointCoordinates(input.coordinates));\n}\nexport function isGeojsonMultiLineString(input) {\n return (typeof input === 'object' &&\n input !== null &&\n 'type' in input &&\n input.type === 'MultiLineString' &&\n 'coordinates' in input &&\n isGeojsonMultiLineStringCoordinates(input.coordinates));\n}\nexport function isGeojsonMultiPolygon(input) {\n return (typeof input === 'object' &&\n input !== null &&\n 'type' in input &&\n input.type === 'MultiPolygon' &&\n 'coordinates' in input &&\n Array.isArray(input.coordinates) &&\n isGeojsonMultiPolygonCoordinates(input.coordinates));\n}\nexport function isGeojsonGeometry(obj) {\n const isObject = typeof obj === 'object' && obj !== null;\n const hasStringType = isObject && 'type' in obj && typeof obj.type === 'string';\n const isValidType = hasStringType &&\n (obj.type === 'Point' ||\n obj.type === 'LineString' ||\n obj.type === 'Polygon' ||\n obj.type === 'MultiPoint' ||\n obj.type === 'MultiLineString' ||\n obj.type === 'MultiPolygon');\n const hasCoordinatesArray = isObject && 'coordinates' in obj && Array.isArray(obj.coordinates);\n return isValidType && hasCoordinatesArray;\n}\nexport function isGeojsonMultiGeometry(obj) {\n const isObject = typeof obj === 'object' && obj !== null;\n const hasStringType = isObject && 'type' in obj && typeof obj.type === 'string';\n const isValidType = hasStringType &&\n (obj.type === 'MultiPoint' ||\n obj.type === 'MultiLineString' ||\n obj.type === 'MultiPolygon');\n const hasCoordinatesArray = isObject && 'coordinates' in obj && Array.isArray(obj.coordinates);\n return isValidType && hasCoordinatesArray;\n}\n// Convert to Geometry\n// Note: GeoJSON points can have more then two coordiantes\nfunction geojsonPointCoordinatesToPoint(geojsonPointCoordinates) {\n return geojsonPointCoordinates.slice(0, 2);\n}\nexport function geojsonPointToPoint(geojsonPoint) {\n return geojsonPointCoordinatesToPoint(geojsonPoint.coordinates);\n}\nexport function geojsonLineStringToLineString(geojsonLineString) {\n return conformLineString(geojsonLineString.coordinates.map(geojsonPointCoordinatesToPoint));\n}\nexport function geojsonPolygonToRing(geojsonPolygon, close = false) {\n const outerRing = conformRing(geojsonPolygon.coordinates[0].map(geojsonPointCoordinatesToPoint));\n return close ? [...outerRing, outerRing[0]] : outerRing;\n}\nexport function geojsonPolygonToPolygon(geojsonPolygon, close = false) {\n const polygon = conformPolygon(geojsonPolygon.coordinates.map((ring) => ring.map(geojsonPointCoordinatesToPoint)));\n return close ? polygon.map((ring) => [...ring, ring[0]]) : polygon;\n}\nexport function geojsonMultiPointToMultiPoint(geojsonMultiPoint) {\n return geojsonMultiPoint.coordinates.map(geojsonPointCoordinatesToPoint);\n}\nexport function geojsonMultiLineStringToMultiLineString(geojsonMultiLineString) {\n return conformMultiLineString(geojsonMultiLineString.coordinates.map((l) => l.map(geojsonPointCoordinatesToPoint)));\n}\nexport function geojsonMultiPolygonToMultiPolygon(geojsonMultiPolygon, close = false) {\n const multipolygon = conformMultiPolygon(geojsonMultiPolygon.coordinates.map((p) => p.map((l) => l.map(geojsonPointCoordinatesToPoint))));\n return close\n ? multipolygon.map((polygon) => polygon.map((ring) => [...ring, ring[0]]))\n : multipolygon;\n}\n/**\n * Converts a GeoJSON Geometry to a Geometry\n * @param geojsonGeometry - GeoJSON Geometry\n * @returns Geometry\n */\nexport function geojsonGeometryToGeometry(geojsonGeometry) {\n if (isGeojsonPoint(geojsonGeometry)) {\n return geojsonPointToPoint(geojsonGeometry);\n }\n else if (isGeojsonLineString(geojsonGeometry)) {\n return geojsonLineStringToLineString(geojsonGeometry);\n }\n else if (isGeojsonPolygon(geojsonGeometry)) {\n return geojsonPolygonToPolygon(geojsonGeometry);\n }\n else if (isGeojsonMultiPoint(geojsonGeometry)) {\n return geojsonMultiPointToMultiPoint(geojsonGeometry);\n }\n else if (isGeojsonMultiLineString(geojsonGeometry)) {\n return geojsonMultiLineStringToMultiLineString(geojsonGeometry);\n }\n else if (isGeojsonMultiPolygon(geojsonGeometry)) {\n return geojsonMultiPolygonToMultiPolygon(geojsonGeometry);\n }\n else {\n throw new Error('Geometry type not supported');\n }\n}\n// Convert to SVG\nexport function geojsonGeometryToSvgGeometry(geojsonGeometry) {\n return geometryToSvgGeometry(geojsonGeometryToGeometry(geojsonGeometry));\n}\n// Convert to points\nexport function geojsonGeometryToPoints(geoJsonGeometry) {\n return geometryToPoints(geojsonGeometryToGeometry(geoJsonGeometry));\n}\n// Wrap Geometry in Feature\nexport function geojsonGeometryToGeojsonFeature(geojsonGeometry, properties) {\n return {\n type: 'Feature',\n properties: properties ? properties : {},\n geometry: geojsonGeometry\n };\n}\nexport function geojsonFeaturesToGeojsonFeatureCollection(geojsonFeatures) {\n if (!Array.isArray(geojsonFeatures)) {\n geojsonFeatures = [geojsonFeatures];\n }\n return {\n type: 'FeatureCollection',\n features: geojsonFeatures\n };\n}\nexport function geojsonGeometriesToGeojsonFeatureCollection(geojsonGeometries, properties) {\n return {\n type: 'FeatureCollection',\n features: geojsonGeometries.map((geometry, i) => properties\n ? geojsonGeometryToGeojsonFeature(geometry, properties[i])\n : geojsonGeometryToGeojsonFeature(geometry))\n };\n}\nexport function geojsonFeatureToGeojsonGeometry(geojsonFeature) {\n return geojsonFeature.geometry;\n}\nexport function geojsonFeatureCollectionToGeojsonGeometries(geojsonFeatureCollection) {\n return geojsonFeatureCollection.features.map(geojsonFeatureToGeojsonGeometry);\n}\n// Expand\nexport function expandGeojsonMultiPointToGeojsonPoints(geojsonMultiPoint) {\n return geojsonMultiPoint.coordinates.map((point) => {\n return {\n type: 'Point',\n coordinates: point\n };\n });\n}\nexport function expandGeojsonMultiLineStringToGeojsonLineStrings(geojsonMultiLineString) {\n return geojsonMultiLineString.coordinates.map((lineString) => {\n return {\n type: 'LineString',\n coordinates: lineString\n };\n });\n}\nexport function expandGeojsonMultiPolygonToGeojsonPolygons(geojsonMultiPolygon) {\n return geojsonMultiPolygon.coordinates.map((polygon) => {\n return {\n type: 'Polygon',\n coordinates: polygon\n };\n });\n}\nexport function expandGeojsonMultiGeometryToGeojsonGeometries(geojsonMultiGeometry) {\n if (isGeojsonMultiPoint(geojsonMultiGeometry)) {\n return expandGeojsonMultiPointToGeojsonPoints(geojsonMultiGeometry);\n }\n else if (isGeojsonMultiLineString(geojsonMultiGeometry)) {\n return expandGeojsonMultiLineStringToGeojsonLineStrings(geojsonMultiGeometry);\n }\n else if (isGeojsonMultiPolygon(geojsonMultiGeometry)) {\n return expandGeojsonMultiPolygonToGeojsonPolygons(geojsonMultiGeometry);\n }\n else {\n throw new Error('Geometry type not supported');\n }\n}\n// Contract\nexport function contractGeojsonPointsToGeojsonMultiPoint(geojsonPoints) {\n return {\n type: 'MultiPoint',\n coordinates: geojsonPoints.map((geojsonPoint) => geojsonPoint.coordinates)\n };\n}\nexport function contractGeojsonLineStringsToGeojsonMultiLineString(geojsonLineStrings) {\n return {\n type: 'MultiLineString',\n coordinates: geojsonLineStrings.map((geojsonLineString) => geojsonLineString.coordinates)\n };\n}\nexport function contractGeojsonPolygonsToGeojsonMultiPolygon(geojsonPolygons) {\n return {\n type: 'MultiPolygon',\n coordinates: geojsonPolygons.map((geojsonPolygon) => geojsonPolygon.coordinates)\n };\n}\nexport function contractGeojsonGeometriesToGeojsonMultiGeometry(geojsonGeometries) {\n if (geojsonGeometries.every(isGeojsonPoint)) {\n return contractGeojsonPointsToGeojsonMultiPoint(geojsonGeometries);\n }\n else if (geojsonGeometries.every(isGeojsonLineString)) {\n return contractGeojsonLineStringsToGeojsonMultiLineString(geojsonGeometries);\n }\n else if (geojsonGeometries.every(isGeojsonPolygon)) {\n return contractGeojsonPolygonsToGeojsonMultiPolygon(geojsonGeometries);\n }\n else {\n throw new Error('Geometry type not supported');\n }\n}\nexport function mergeGeojsonFeaturesCollections(geojsonFeatureCollections) {\n return {\n type: 'FeatureCollection',\n features: geojsonFeatureCollections\n .map((geojsonFeatureCollection) => geojsonFeatureCollection.features)\n .flat(1)\n };\n}\n"],"names":["isGeojsonPointCoordinates","input","item","isGeojsonLineStringCoordinates","isGeojsonRingCoordinates","isGeojsonPolygonCoordinates","isGeojsonMultiPointCoordinates","isGeojsonMultiLineStringCoordinates","isGeojsonMultiPolygonCoordinates","isGeojsonPoint","isGeojsonLineString","isGeojsonPolygon","isGeojsonMultiPoint","isGeojsonMultiLineString","isGeojsonMultiPolygon","isGeojsonGeometry","obj","isObject","isValidType","hasCoordinatesArray","geojsonPointCoordinatesToPoint","geojsonPointCoordinates","geojsonPointToPoint","geojsonPoint","geojsonLineStringToLineString","geojsonLineString","conformLineString","geojsonPolygonToPolygon","geojsonPolygon","close","polygon","conformPolygon","ring","geojsonMultiPointToMultiPoint","geojsonMultiPoint","geojsonMultiLineStringToMultiLineString","geojsonMultiLineString","conformMultiLineString","l","geojsonMultiPolygonToMultiPolygon","geojsonMultiPolygon","multipolygon","conformMultiPolygon","p","geojsonGeometryToGeometry","geojsonGeometry","geojsonGeometryToPoints","geoJsonGeometry","geometryToPoints","geojsonGeometryToGeojsonFeature","properties","geojsonGeometriesToGeojsonFeatureCollection","geojsonGeometries","geometry","i","geojsonFeatureToGeojsonGeometry","geojsonFeature","geojsonFeatureCollectionToGeojsonGeometries","geojsonFeatureCollection"],"mappings":"qHAEA,SAASA,EAA0BC,EAAO,CACtC,OAAQ,MAAM,QAAQA,CAAK,GACvBA,EAAM,QAAU,GAChBA,EAAM,MAAOC,GAAS,OAAOA,GAAS,QAAQ,CACtD,CACO,SAASC,EAA+BF,EAAO,CAClD,OAAO,MAAM,QAAQA,CAAK,GAAKA,EAAM,MAAMD,CAAyB,CACxE,CACO,SAASI,EAAyBH,EAAO,CAC5C,OAAO,MAAM,QAAQA,CAAK,GAAKA,EAAM,MAAMD,CAAyB,CACxE,CACO,SAASK,EAA4BJ,EAAO,CAC/C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KX,GAAYA,EAAQ,IAAKE,GAAS,CAAC,GAAGA,EAAMA,EAAK,CAAC,CAAC,CAAC,CAAC,EACvES,CACV,CAMO,SAASG,EAA0BC,EAAiB,CACvD,GAAIpC,EAAeoC,CAAe,EAC9B,OAAOvB,EAAoBuB,CAAe,EAC9C,GACSnC,EAAoBmC,CAAe,EACxC,OAAOrB,EAA8BqB,CAAe,EACxD,GACSlC,EAAiBkC,CAAe,EACrC,OAAOlB,EAAwBkB,CAAe,EAClD,GACSjC,EAAoBiC,CAAe,EACxC,OAAOZ,EAA8BY,CAAe,EACxD,GACShC,EAAyBgC,CAAe,EAC7C,OAAOV,EAAwCU,CAAe,EAClE,GACS/B,EAAsB+B,CAAe,EAC1C,OAAON,EAAkCM,CAAe,EAGxD,MAAM,IAAI,MAAM,6BAA6B,CAErD,CAMO,SAASC,EAAwBC,EAAiB,CACrD,OAAOC,EAAAA,iBAAiBJ,EAA0BG,CAAe,CAAC,CACtE,CAEO,SAASE,EAAgCJ,EAAiBK,EAAY,CACzE,MAAO,CACH,KAAM,UACN,WAAsC,CAAA,EACtC,SAAUL,CAAA,CAElB,CAUO,SAASM,EAA4CC,EAAmBF,EAAY,CACvF,MAAO,CACH,KAAM,oBACN,SAAUE,EAAkB,IAAI,CAACC,EAAUC,IAErCL,EAAgCI,CAAQ,CAAC,CAAA,CAEvD,CACO,SAASE,EAAgCC,EAAgB,CAC5D,OAAOA,EAAe,QAC1B,CACO,SAASC,EAA4CC,EAA0B,CAClF,OAAOA,EAAyB,SAAS,IAAIH,CAA+B,CAChF","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const r="a-f\\d",p=`#?[${r}]{3}[${r}]?`,$=`#?[${r}]{6}([${r}]{2})?`,f=new RegExp(`[^#${r}]`,"gi"),g=new RegExp(`^${p}$|^${$}$`,"i");function u(t,e={}){if(typeof t!="string"||f.test(t)||!g.test(t))throw new TypeError("Expected a valid hex string");t=t.replace(/^#/,"");let a=1;t.length===8&&(a=Number.parseInt(t.slice(6,8),16)/255,t=t.slice(0,6)),t.length===4&&(a=Number.parseInt(t.slice(3,4).repeat(2),16)/255,t=t.slice(0,3)),t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const s=Number.parseInt(t,16),c=s>>16,i=s>>8&255,o=s&255,n=typeof e.alpha=="number"?e.alpha:a;if(e.format==="array")return[c,i,o,n];if(e.format==="css"){const l=n===1?"":` / ${Number((n*100).toFixed(2))}%`;return`rgb(${c} ${i} ${o}${l})`}return{red:c,green:i,blue:o,alpha:n}}module.exports=u;
|
|
2
|
+
//# sourceMappingURL=index.cjs331.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs331.js","sources":["../../../node_modules/hex-rgb/index.js"],"sourcesContent":["const hexCharacters = 'a-f\\\\d';\nconst match3or4Hex = `#?[${hexCharacters}]{3}[${hexCharacters}]?`;\nconst match6or8Hex = `#?[${hexCharacters}]{6}([${hexCharacters}]{2})?`;\nconst nonHexChars = new RegExp(`[^#${hexCharacters}]`, 'gi');\nconst validHexSize = new RegExp(`^${match3or4Hex}$|^${match6or8Hex}$`, 'i');\n\nexport default function hexRgb(hex, options = {}) {\n\tif (typeof hex !== 'string' || nonHexChars.test(hex) || !validHexSize.test(hex)) {\n\t\tthrow new TypeError('Expected a valid hex string');\n\t}\n\n\thex = hex.replace(/^#/, '');\n\tlet alphaFromHex = 1;\n\n\tif (hex.length === 8) {\n\t\talphaFromHex = Number.parseInt(hex.slice(6, 8), 16) / 255;\n\t\thex = hex.slice(0, 6);\n\t}\n\n\tif (hex.length === 4) {\n\t\talphaFromHex = Number.parseInt(hex.slice(3, 4).repeat(2), 16) / 255;\n\t\thex = hex.slice(0, 3);\n\t}\n\n\tif (hex.length === 3) {\n\t\thex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2];\n\t}\n\n\tconst number = Number.parseInt(hex, 16);\n\tconst red = number >> 16;\n\tconst green = (number >> 8) & 255;\n\tconst blue = number & 255;\n\tconst alpha = typeof options.alpha === 'number' ? options.alpha : alphaFromHex;\n\n\tif (options.format === 'array') {\n\t\treturn [red, green, blue, alpha];\n\t}\n\n\tif (options.format === 'css') {\n\t\tconst alphaString = alpha === 1 ? '' : ` / ${Number((alpha * 100).toFixed(2))}%`;\n\t\treturn `rgb(${red} ${green} ${blue}${alphaString})`;\n\t}\n\n\treturn {red, green, blue, alpha};\n}\n"],"names":["hexCharacters","match3or4Hex","match6or8Hex","nonHexChars","validHexSize","hexRgb","hex","options","alphaFromHex","number","red","green","blue","alpha","alphaString"],"mappings":"aAAA,MAAMA,EAAgB,SAChBC,EAAe,MAAMD,CAAa,QAAQA,CAAa,KACvDE,EAAe,MAAMF,CAAa,SAASA,CAAa,SACxDG,EAAc,IAAI,OAAO,MAAMH,CAAa,IAAK,IAAI,EACrDI,EAAe,IAAI,OAAO,IAAIH,CAAY,MAAMC,CAAY,IAAK,GAAG,EAE1E,SAAwBG,EAAOC,EAAKC,EAAU,GAAI,CACjD,GAAI,OAAOD,GAAQ,UAAYH,EAAY,KAAKG,CAAG,GAAK,CAACF,EAAa,KAAKE,CAAG,EAC7E,MAAM,IAAI,UAAU,6BAA6B,EAGlDA,EAAMA,EAAI,QAAQ,KAAM,EAAE,EAC1B,IAAIE,EAAe,EAEfF,EAAI,SAAW,IAClBE,EAAe,OAAO,SAASF,EAAI,MAAM,EAAG,CAAC,EAAG,EAAE,EAAI,IACtDA,EAAMA,EAAI,MAAM,EAAG,CAAC,GAGjBA,EAAI,SAAW,IAClBE,EAAe,OAAO,SAASF,EAAI,MAAM,EAAG,CAAC,EAAE,OAAO,CAAC,EAAG,EAAE,EAAI,IAChEA,EAAMA,EAAI,MAAM,EAAG,CAAC,GAGjBA,EAAI,SAAW,IAClBA,EAAMA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,EAAIA,EAAI,CAAC,GAGzD,MAAMG,EAAS,OAAO,SAASH,EAAK,EAAE,EAChCI,EAAMD,GAAU,GAChBE,EAASF,GAAU,EAAK,IACxBG,EAAOH,EAAS,IAChBI,EAAQ,OAAON,EAAQ,OAAU,SAAWA,EAAQ,MAAQC,EAElE,GAAID,EAAQ,SAAW,QACtB,MAAO,CAACG,EAAKC,EAAOC,EAAMC,CAAK,EAGhC,GAAIN,EAAQ,SAAW,MAAO,CAC7B,MAAMO,EAAcD,IAAU,EAAI,GAAK,MAAM,QAAQA,EAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,IAC7E,MAAO,OAAOH,CAAG,IAAIC,CAAK,IAAIC,CAAI,GAAGE,CAAW,GACjD,CAEA,MAAO,CAAC,IAAAJ,EAAK,MAAAC,EAAO,KAAAC,EAAM,MAAAC,CAAA,CAC3B","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs332.js","sources":["../../../node_modules/lodash-es/isEqual.js"],"sourcesContent":["import baseIsEqual from './_baseIsEqual.js';\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nexport default isEqual;\n"],"names":["isEqual","value","other","baseIsEqual"],"mappings":"kDA8BA,SAASA,EAAQC,EAAOC,EAAO,CAC7B,OAAOC,EAAYF,EAAOC,CAAK,CACjC","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./index.cjs216.js");function m(r,n,a=0){if(r<=0||n<=0)throw new Error("Empty ArrayMatrix not supported");const e=new Array(r);for(let s=0;s<r;s++){const i=new Array(n);for(let o=0;o<n;o++)i[o]=a;e[s]=i}return e}function y(r){return[r.length,r[0].length]}function h(r){const n=r.length,a=new Array(n);for(let e=0;e<n;e++)a[e]=r[e].slice();return a}function p(r,n,a,e){const s=y(e),i=h(r);for(let o=0;o<s[0];o++)for(let c=0;c<s[1];c++)i[n+o][a+c]=e[o][c];return i}function M(r){const n=r.length,a=r[0].length,e=new Array(a);for(let s=0;s<a;s++){const i=new Array(n);for(let o=0;o<n;o++)i[o]=r[o][s];e[s]=i}return e}function g(r,n=0){const a=y(r),e=r.map(t=>t.map(l=>y(l))),s=e.map(t=>t.map(l=>l[0])),i=M(s),o=i[0];if(!i.every(t=>f.isEqualArray(t,i[0])))throw new Error("The blocks, by block column, must have the same sequence of rows.");const c=[];let u=0;o.forEach(t=>{c.push(u),u=u+t});const x=u,w=e.map(t=>t.map(l=>l[1])),v=w[0];if(!w.every(t=>f.isEqualArray(t,v)))throw new Error("The blocks, by block row, must have the same sequence of columns.");u=0,w[0].forEach(t=>{u=u+t});let A=m(x,u,n);for(let t=0;t<a[0];t++)for(let l=0;l<a[1];l++)A=p(A,c[t],c[l],r[t][l]);return A}exports.arrayMatrixSize=y;exports.newArrayMatrix=m;exports.newBlockArrayMatrix=g;exports.pasteArrayMatrix=p;exports.shallowCopyArrayMatrix=h;exports.transposeArrayMatrix=M;
|
|
2
|
+
//# sourceMappingURL=index.cjs333.js.map
|