physical-quantity 1.1.29 → 1.1.35

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/README.md CHANGED
@@ -13,7 +13,7 @@ It is a new HTML element for expressing physical quantities, featuring self-cont
13
13
  - Easy to integrate into any web project.
14
14
 
15
15
  ## Demo: Physical Quantity element - No Unit Converter or Dual Units Needed
16
- [Live Demo on JS Fiddle](https://jsfiddle.net/hithere/tz8ym4fh/134/embedded/result)
16
+ [Live Demo](https://v2-docs.donwen.com/demo/products/quik2.html)
17
17
 
18
18
  [![Example 1 in UI](https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/PQE%2Fexamples%2FPhysicalQuantityElementExample1.png?alt=media&token=2aa81849-9299-4ba5-9f62-79b8604b814f)](https://jsfiddle.net/hithere/tz8ym4fh/100/embedded/result)
19
19
 
@@ -94,6 +94,7 @@ The physical-quantity component supports the following attributes:
94
94
  - <ins>_value_</ins>: The initial value of the physical quantity. It can be any number.
95
95
  - <ins>_unit_</ins>: The initial unit of the physical quantity. It must be a valid unit within the supported unit category (e.g., mm, cm, m, in, ft for length).
96
96
  - <ins>_decimal-places_</ins>: web author can specify the decimal-places depending on the magnitude of the quantity. Default to be 3.
97
+ - <ins>_show-unit-arrow_</ins>: specify to show the downward arrow following the units list. Default to be true. When set to false, it is suitable when the author wants to show in a compact format.
97
98
 
98
99
  ### Supported Units
99
100
  Currently, the component supports the following categories and units:
@@ -145,7 +146,7 @@ Currently, the component supports the following categories and units:
145
146
  | | kA||
146
147
  | | MA||
147
148
  | | esu/s |
148
- | more to update. | (feel free to send your request for other units) ||
149
+ | more to update. | (feel free to send your request for other units & categories) ||
149
150
 
150
151
  ## License
151
152
  This project is licensed under the MIT License. See the LICENSE file for more details.
@@ -156,6 +157,8 @@ Contributions are welcome! Please contact the developer for any bugs, features,
156
157
  ## Change Log
157
158
  | Version | Date | Description |
158
159
  |---|---|---|
160
+ | v1.1.35 |20240616| Added temperature category.|
161
+ | v1.1.30 |20240615| Added "show-unit-arrow" prop to allow web author to create a compact UI; Unit width is now responsive to the chosen unit; Author can force init unit.|
159
162
  | v1.1.28 |20240610| Tooltip for unit list provides a link to the unit converter page for all unit categories. Added more categories.|
160
163
  | v1.1.21 |20240603| Added alias uc-qty. |
161
164
  | v1.1.19 |20240602| Changed to umd for unpkg, and es for module. |
@@ -164,4 +167,5 @@ Contributions are welcome! Please contact the developer for any bugs, features,
164
167
  If you have any questions or feedback, feel free to contact me at don.wen@yahoo.com.
165
168
  For more info, please visit:
166
169
  [AutoCalcs](https://v2.donwen.com/)
167
- [AutoCalcs Docs and Library](https://v2-docs.donwen.com/)
170
+ [AutoCalcs Docs and Library](https://v2-docs.donwen.com/)
171
+ [Demo](https://v2-docs.donwen.com/demo/index.html)
package/dist/pq.es.js CHANGED
@@ -1 +1 @@
1
- const _0x4fd7ec=_0x1b6d;(function(_0x3fbde2,_0x199991){const _0xbdd86b=_0x1b6d,_0x3f11ad=_0x3fbde2();while(!![]){try{const _0x56a199=-parseInt(_0xbdd86b(0xae))/0x1*(-parseInt(_0xbdd86b(0x91))/0x2)+parseInt(_0xbdd86b(0x7c))/0x3+-parseInt(_0xbdd86b(0xb2))/0x4*(-parseInt(_0xbdd86b(0x8b))/0x5)+-parseInt(_0xbdd86b(0x81))/0x6+-parseInt(_0xbdd86b(0x75))/0x7+-parseInt(_0xbdd86b(0xb5))/0x8+parseInt(_0xbdd86b(0xbb))/0x9*(-parseInt(_0xbdd86b(0x80))/0xa);if(_0x56a199===_0x199991)break;else _0x3f11ad['push'](_0x3f11ad['shift']());}catch(_0x40fb3b){_0x3f11ad['push'](_0x3f11ad['shift']());}}}(_0x182e,0xb7833));const s=0.45359237,o=25.4/0x3e8,n=0xc*o,c=0x18bcd,a=133.322387415;class r extends HTMLElement{constructor(){const _0xbce791=_0x1b6d;super(),this['attachShadow']({'mode':_0xbce791(0xa8)}),this['value']=0x0,this[_0xbce791(0x82)]='mm',this[_0xbce791(0x7a)]=_0xbce791(0x72),this[_0xbce791(0x92)]=null,this['decimalPlaces']=0x3,this[_0xbce791(0xa6)]='https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492',this[_0xbce791(0xac)]={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0xbce791(0x97)],'Pressure':['Pa',_0xbce791(0x8e),_0xbce791(0xa9),'GPa',_0xbce791(0x73),_0xbce791(0x6e),_0xbce791(0x89),'mm\x20HG',_0xbce791(0x6f),_0xbce791(0x9e),_0xbce791(0x71),'m\x20W.C.','in\x20W.C.',_0xbce791(0xad),_0xbce791(0x79),_0xbce791(0xab),_0xbce791(0xbc)],'Density':[_0xbce791(0x90),_0xbce791(0x6a),_0xbce791(0x95),_0xbce791(0xbd),'lbm/ft³','lbm/in³'],'Time':[_0xbce791(0x99),'s',_0xbce791(0xa2),'h',_0xbce791(0xa4),_0xbce791(0x98),'week'],'ElectricalCurrent':['A','Ampere[amp]','mA','µA','kA','MA',_0xbce791(0xa5)]},this[_0xbce791(0x77)]={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':o,'ft':n},'Mass':{'kg':0x1,'g':0.001,'lbm':s},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':c,'mm\x20HG':a,'cm\x20HG':a*0xa,'in\x20HG':a*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':o*0x3e8*9.80665,'psf':s*9.80665/Math['pow'](n,0x2),'psi':s*9.80665/Math['pow'](o,0x2),'ksi':s*9.80665/Math[_0xbce791(0x87)](o,0x2)*0x3e8,'ksi[kip/in²]':s*9.80665/Math[_0xbce791(0x87)](o,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0xbce791(0x87)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0xbce791(0x87)](0.001,0x3),'lbm/ft³':s/Math[_0xbce791(0x87)](n,0x3),'lbm/in³':s/Math[_0xbce791(0x87)](o,0x3)},'Time':{'s[second]':0x1,'s':0x1,'minute':0x3c,'h':0xe10,'h[hour]':0xe10,'day':0xe10*0x18,'week':0xe10*0x18*0x7},'ElectricalCurrent':{'A':0x1,'Ampere[amp]':0x1,'mA':0.001,'µA':0.000001,'kA':0x3e8,'MA':0xf4240,'esu/s':0x1/0xb2d05e00}},this['render']();}static get['observedAttributes'](){const _0x47429e=_0x1b6d;return[_0x47429e(0x88),'unit',_0x47429e(0xb0)];}['attributeChangedCallback'](_0x4047e5,_0xbe338d,_0x48d991){const _0x5cc497=_0x1b6d;_0x4047e5===_0x5cc497(0x88)?this['value']=parseFloat(_0x48d991):_0x4047e5===_0x5cc497(0x82)?(this[_0x5cc497(0x82)]=_0x48d991,this[_0x5cc497(0x7a)]=this['getUnitCategory'](_0x48d991)):_0x4047e5==='decimal-places'&&(this['decimalPlaces']=parseInt(_0x48d991)||0x3),this['render']();}[_0x4fd7ec(0xb3)](_0x4a7478){const _0x44e3a6=_0x4fd7ec;for(const _0x8ec474 in this[_0x44e3a6(0xac)])if(this['units'][_0x8ec474][_0x44e3a6(0x8a)](_0x4a7478))return _0x8ec474;return null;}[_0x4fd7ec(0x6b)](){const _0x5ee318=_0x4fd7ec;this[_0x5ee318(0x9f)]['addEventListener'](_0x5ee318(0x6c),this[_0x5ee318(0x7d)][_0x5ee318(0x7e)](this)),this[_0x5ee318(0xb6)]();}[_0x4fd7ec(0xba)](){const _0x483598=_0x4fd7ec;this[_0x483598(0x9f)][_0x483598(0x7f)](_0x483598(0x6c),this['handleUnitChange'][_0x483598(0x7e)](this));}[_0x4fd7ec(0x8c)](_0x3a510f){const _0x46fcd4=_0x4fd7ec;if(_0x3a510f['target'][_0x46fcd4(0x7b)](_0x46fcd4(0x70))){const _0x18d6d6=this[_0x46fcd4(0x9f)][_0x46fcd4(0x85)]('select');_0x18d6d6&&(_0x18d6d6[_0x46fcd4(0xa1)](),_0x18d6d6[_0x46fcd4(0xaf)]());}}['handleUnitChange'](_0x12f77b){const _0x466b4d=_0x4fd7ec;if(_0x12f77b[_0x466b4d(0x8d)]['tagName']===_0x466b4d(0x83)){const _0x33ac3f=_0x12f77b[_0x466b4d(0x8d)]['value'],_0x31f6cd=this[_0x466b4d(0x77)][this['unitCategory']][this['unit']]/this[_0x466b4d(0x77)][this[_0x466b4d(0x7a)]][_0x33ac3f];this['value']=this['value']*_0x31f6cd,this[_0x466b4d(0x82)]=_0x33ac3f,this['render']();}}['formatValue'](_0x1bc8cc){const _0x1a8d71=_0x4fd7ec;return Number[_0x1a8d71(0xbe)](_0x1bc8cc)?_0x1bc8cc[_0x1a8d71(0xb7)]():Math[_0x1a8d71(0x74)](_0x1bc8cc)!==0x0?_0x1bc8cc[_0x1a8d71(0xa3)](this['decimalPlaces'])['replace'](/0+$/,'')['replace'](/\.$/,''):_0x1bc8cc['toPrecision'](0x3);}[_0x4fd7ec(0xb6)](){const _0x1d0dfc=_0x4fd7ec;this['shadowRoot'][_0x1d0dfc(0xb1)]=_0x1d0dfc(0x9b)+this[_0x1d0dfc(0x78)](this[_0x1d0dfc(0x88)])+_0x1d0dfc(0x76)+this[_0x1d0dfc(0xac)][this[_0x1d0dfc(0x7a)]][_0x1d0dfc(0x96)](_0x976724=>'<option\x20value=\x22'+_0x976724+'\x22\x20'+(_0x976724===this[_0x1d0dfc(0x82)]?_0x1d0dfc(0x6d):'')+_0x1d0dfc(0xb4)+_0x976724+'</option>')[_0x1d0dfc(0xb8)]('')+_0x1d0dfc(0xa7)+this[_0x1d0dfc(0xa6)]+_0x1d0dfc(0x84);const _0x552928=this[_0x1d0dfc(0x9f)][_0x1d0dfc(0x85)](_0x1d0dfc(0x70)),_0x382205=this['shadowRoot']['querySelectorAll']('.tooltip')[0x0];_0x552928[_0x1d0dfc(0xb9)](_0x1d0dfc(0xa0),()=>{const _0x5269dd=_0x1d0dfc;this[_0x5269dd(0x92)]=setTimeout(()=>{const _0x1d7add=_0x5269dd;_0x382205[_0x1d7add(0x9c)]['display']=_0x1d7add(0x86);},0x3e8);}),_0x552928[_0x1d0dfc(0xb9)]('mouseout',()=>{setTimeout(()=>{const _0x576516=_0x1b6d;_0x382205[_0x576516(0x9c)][_0x576516(0x8f)]=_0x576516(0x9a);},0x7d0),clearTimeout(this['tooltipTimeout']);}),_0x382205['addEventListener'](_0x1d0dfc(0xaa),()=>{setTimeout(()=>{const _0x56a795=_0x1b6d;_0x382205[_0x56a795(0x9c)]['display']=_0x56a795(0x9a);},0x7d0);});}}customElements[_0x4fd7ec(0x94)](_0x4fd7ec(0x9d),r);function _0x1b6d(_0x1906bf,_0x2f6ee7){const _0x182e48=_0x182e();return _0x1b6d=function(_0x1b6dbe,_0x25bad8){_0x1b6dbe=_0x1b6dbe-0x6a;let _0x362035=_0x182e48[_0x1b6dbe];return _0x362035;},_0x1b6d(_0x1906bf,_0x2f6ee7);}class m extends r{}customElements[_0x4fd7ec(0x94)](_0x4fd7ec(0x93),m);export{r as default};function _0x182e(){const _0x563983=['define','g/cm³','map','lbm','day','s[second]','none','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>','style','physical-quantity','in\x20HG','shadowRoot','mouseover','focus','minute','toFixed','h[hour]','esu/s','e3dLogoUrl','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','open','MPa','mouseout','ksi','units','psf','46vBXVcc','click','decimal-places','innerHTML','8LdCFxq','getUnitCategory','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','4777032PBuUCB','render','toString','join','addEventListener','disconnectedCallback','117siuMjv','ksi[kip/in²]','g/mm³','isInteger','kg/L','connectedCallback','change','selected','mbar','cm\x20HG','.unit-container','mm\x20W.C.','Length','bar','floor','6469785WFDLBL','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unitConversion','formatValue','psi','unitCategory','closest','3797292KMIQxD','handleUnitChange','bind','removeEventListener','132960rQpBoP','1862586Cgvbrj','unit','SELECT','\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','querySelector','block','pow','value','atm','includes','840835YEedRb','handleArrowClick','target','kPa','display','kg/m³','50184wDRjPa','tooltipTimeout','uc-qty'];_0x182e=function(){return _0x563983;};return _0x182e();}
1
+ const _0x207244=_0x3b76;(function(_0x1b0fdb,_0x4e4903){const _0x3bc056=_0x3b76,_0x13a8fd=_0x1b0fdb();while(!![]){try{const _0x3e11c8=-parseInt(_0x3bc056(0x21e))/0x1*(parseInt(_0x3bc056(0x1f1))/0x2)+-parseInt(_0x3bc056(0x221))/0x3*(parseInt(_0x3bc056(0x223))/0x4)+-parseInt(_0x3bc056(0x1cf))/0x5*(-parseInt(_0x3bc056(0x1b6))/0x6)+-parseInt(_0x3bc056(0x1cc))/0x7*(parseInt(_0x3bc056(0x1ba))/0x8)+-parseInt(_0x3bc056(0x1d4))/0x9+parseInt(_0x3bc056(0x1ad))/0xa*(parseInt(_0x3bc056(0x1bd))/0xb)+parseInt(_0x3bc056(0x210))/0xc;if(_0x3e11c8===_0x4e4903)break;else _0x13a8fd['push'](_0x13a8fd['shift']());}catch(_0x20fc19){_0x13a8fd['push'](_0x13a8fd['shift']());}}}(_0x2081,0x621aa));const s=0.45359237,o=25.4/0x3e8,l=0xc*o,m=0x18bcd,h=133.322387415,p={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x207244(0x203)],'Pressure':['Pa',_0x207244(0x1b1),_0x207244(0x1e3),_0x207244(0x1d0),'bar',_0x207244(0x214),'atm',_0x207244(0x1f5),_0x207244(0x1da),_0x207244(0x1dd),_0x207244(0x202),_0x207244(0x1e0),_0x207244(0x1ef),'psf',_0x207244(0x1fe),'ksi','ksi[kip/in²]'],'Density':[_0x207244(0x1e8),_0x207244(0x1ca),_0x207244(0x219),_0x207244(0x1dc),'lbm/ft³',_0x207244(0x207)],'Time':['s[second]','s',_0x207244(0x212),'h','h[hour]',_0x207244(0x1c2),_0x207244(0x1fb)],'ElectricalCurrent':['A',_0x207244(0x1fc),'mA','µA','kA','MA',_0x207244(0x20a)],'Temperature':['°K','°C','°F',_0x207244(0x1ed)]},g={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':o,'ft':l},'Mass':{'kg':0x1,'g':0.001,'lbm':s},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':m,'mm\x20HG':h,'cm\x20HG':h*0xa,'in\x20HG':h*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':o*0x3e8*9.80665,'psf':s*9.80665/Math['pow'](l,0x2),'psi':s*9.80665/Math[_0x207244(0x1fa)](o,0x2),'ksi':s*9.80665/Math[_0x207244(0x1fa)](o,0x2)*0x3e8,'ksi[kip/in²]':s*9.80665/Math[_0x207244(0x1fa)](o,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x207244(0x1fa)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0x207244(0x1fa)](0.001,0x3),'lbm/ft³':s/Math[_0x207244(0x1fa)](l,0x3),'lbm/in³':s/Math[_0x207244(0x1fa)](o,0x3)},'Time':{'s[second]':0x1,'s':0x1,'minute':0x3c,'h':0xe10,'h[hour]':0xe10,'day':0xe10*0x18,'week':0xe10*0x18*0x7},'ElectricalCurrent':{'A':0x1,'Ampere[amp]':0x1,'mA':0.001,'µA':0.000001,'kA':0x3e8,'MA':0xf4240,'esu/s':0x1/0xb2d05e00},'Temperature':{'°K':{'c0':0x1,'c1':0x0},'°C':{'c0':0x1,'c1':273.15},'°F':{'c0':0x5/0x9,'c1':255.3722222},'°Ra':{'c0':0x5/0x9,'c1':0x0}}};class u extends HTMLElement{constructor(){const _0x528e18=_0x207244;super(),this[_0x528e18(0x205)]({'mode':_0x528e18(0x1aa)}),this[_0x528e18(0x1bc)]=0x0,this['tooltipTimeout']=null,this[_0x528e18(0x1b8)]=0x3,this[_0x528e18(0x1db)]=_0x528e18(0x1b7),this[_0x528e18(0x1cb)]=p,this[_0x528e18(0x20f)]=g,this[_0x528e18(0x1ee)]=!this[_0x528e18(0x21c)]('show-unit-arrow')||this[_0x528e18(0x1e9)]('show-unit-arrow')===_0x528e18(0x1d3),this['render']();}static get[_0x207244(0x1e4)](){const _0x35addf=_0x207244;return[_0x35addf(0x1bc),_0x35addf(0x215),'decimal-places',_0x35addf(0x1c7)];}['attributeChangedCallback'](_0x20698e,_0x5c73a2,_0x80a2ed){const _0x5d45cf=_0x207244;_0x20698e===_0x5d45cf(0x1bc)?this[_0x5d45cf(0x1bc)]=parseFloat(_0x80a2ed):_0x20698e==='unit'?(this['unit']=_0x80a2ed,this[_0x5d45cf(0x1c3)]=this[_0x5d45cf(0x21d)](_0x80a2ed)):_0x20698e===_0x5d45cf(0x213)?this[_0x5d45cf(0x1b8)]=parseInt(_0x80a2ed)||0x3:_0x20698e===_0x5d45cf(0x1c7)&&(this[_0x5d45cf(0x1ee)]=_0x80a2ed===null||_0x80a2ed===_0x5d45cf(0x1d3)),this['render']();}[_0x207244(0x21d)](_0x41dfdd){const _0x273d81=_0x207244;for(const _0x587467 in this[_0x273d81(0x1cb)])if(this[_0x273d81(0x1cb)][_0x587467][_0x273d81(0x1be)](_0x41dfdd))return _0x587467;return this['units']['Custom']=this[_0x273d81(0x1cb)][_0x273d81(0x21f)]||[],this['units'][_0x273d81(0x21f)][_0x273d81(0x1d2)](_0x41dfdd),this[_0x273d81(0x20f)][_0x273d81(0x21f)]=this[_0x273d81(0x20f)][_0x273d81(0x21f)]||{},this[_0x273d81(0x20f)]['Custom'][_0x41dfdd]=0x1,_0x273d81(0x21f);}[_0x207244(0x1f2)](){const _0x5a9911=_0x207244;this[_0x5a9911(0x1ea)][_0x5a9911(0x1d5)]('change',this[_0x5a9911(0x1ce)][_0x5a9911(0x1ac)](this)),this['unit']=this[_0x5a9911(0x1e9)](_0x5a9911(0x215))||'mm',this[_0x5a9911(0x1c3)]=this['getUnitCategory'](this['unit']),this[_0x5a9911(0x1ee)]=this['hasAttribute'](_0x5a9911(0x1c7))?this[_0x5a9911(0x1e9)](_0x5a9911(0x1c7))==='true':this[_0x5a9911(0x1c3)]!==_0x5a9911(0x21f),this['render']();}['disconnectedCallback'](){const _0x317dc9=_0x207244;this['shadowRoot']['removeEventListener'](_0x317dc9(0x1b4),this[_0x317dc9(0x1ce)][_0x317dc9(0x1ac)](this));}[_0x207244(0x20e)](_0x1a1c3c){const _0x3d6906=_0x207244;if(_0x1a1c3c['target'][_0x3d6906(0x1c5)](_0x3d6906(0x1f3))){const _0x3d0d2b=this[_0x3d6906(0x1ea)]['querySelector'](_0x3d6906(0x1f0));_0x3d0d2b&&(_0x3d0d2b[_0x3d6906(0x211)](),_0x3d0d2b[_0x3d6906(0x220)]());}}[_0x207244(0x1ce)](_0x27df3c){const _0x338c96=_0x207244;let _0x4a38f2=0x1,_0x128b45=0x1,_0x5f5d55=0x0,_0x374d69=0x0;if(_0x27df3c['target'][_0x338c96(0x1f7)]===_0x338c96(0x1f6)){const _0x40e431=_0x27df3c['target'][_0x338c96(0x1bc)];if(this[_0x338c96(0x1c3)]!==_0x338c96(0x1f4)){const _0xf0e3e9=this['unitConversion'][this[_0x338c96(0x1c3)]][this[_0x338c96(0x215)]]/this[_0x338c96(0x20f)][this['unitCategory']][_0x40e431];this[_0x338c96(0x1bc)]=this[_0x338c96(0x1bc)]*_0xf0e3e9;}else console[_0x338c96(0x20d)](_0x338c96(0x216)+this['unitCategory']),console['log']('unit:\x20'+this[_0x338c96(0x215)]),console[_0x338c96(0x20d)](_0x338c96(0x1b3)+_0x40e431),_0x4a38f2=this[_0x338c96(0x20f)][this[_0x338c96(0x1c3)]][this[_0x338c96(0x215)]]['c0'],_0x128b45=this[_0x338c96(0x20f)][this['unitCategory']][this[_0x338c96(0x215)]]['c1'],_0x5f5d55=this['unitConversion'][this[_0x338c96(0x1c3)]][_0x40e431]['c0'],_0x374d69=this[_0x338c96(0x20f)][this['unitCategory']][_0x40e431]['c1'],this['value']=(this[_0x338c96(0x1bc)]*_0x4a38f2+_0x128b45-_0x374d69)/_0x5f5d55;this[_0x338c96(0x215)]=_0x40e431,this[_0x338c96(0x1bb)]();}this[_0x338c96(0x1f9)]();}[_0x207244(0x206)](_0x1173eb){const _0x303655=_0x207244;return Number['isInteger'](_0x1173eb)?_0x1173eb[_0x303655(0x1ec)]():Math[_0x303655(0x1d8)](_0x1173eb)!==0x0?_0x1173eb[_0x303655(0x1e5)](this[_0x303655(0x1b8)])[_0x303655(0x1d7)](/0+$/,'')[_0x303655(0x1d7)](/\.$/,''):_0x1173eb[_0x303655(0x1ae)](0x3);}[_0x207244(0x1bb)](){const _0x14ca7a=_0x207244;this[_0x14ca7a(0x1ea)][_0x14ca7a(0x20c)]=_0x14ca7a(0x1e6)+(this[_0x14ca7a(0x1ee)]?_0x14ca7a(0x1fd):_0x14ca7a(0x1e2))+_0x14ca7a(0x21b)+(this['showUnitArrow']?_0x14ca7a(0x1fd):_0x14ca7a(0x1e2))+_0x14ca7a(0x1df)+(this[_0x14ca7a(0x1ee)]?'auto':_0x14ca7a(0x1e2))+_0x14ca7a(0x218)+this['formatValue'](this[_0x14ca7a(0x1bc)])+_0x14ca7a(0x1c9)+(this['units'][this[_0x14ca7a(0x1c3)]]||[this[_0x14ca7a(0x215)]])['map'](_0x3e00fe=>'<option\x20value=\x22'+_0x3e00fe+'\x22\x20'+(_0x3e00fe===this[_0x14ca7a(0x215)]?_0x14ca7a(0x1ff):'')+_0x14ca7a(0x1eb)+_0x3e00fe+'</option>')['join']('')+_0x14ca7a(0x204)+(this['showUnitArrow']&&this['unitCategory']!==_0x14ca7a(0x21f)?_0x14ca7a(0x1d6)+this[_0x14ca7a(0x1db)]+_0x14ca7a(0x1de):'')+_0x14ca7a(0x200);const _0x21ebd7=this['shadowRoot'][_0x14ca7a(0x1e7)](_0x14ca7a(0x1f3)),_0x101498=this[_0x14ca7a(0x1ea)][_0x14ca7a(0x1b2)](_0x14ca7a(0x1cd))[0x0];_0x21ebd7&&_0x101498&&(_0x21ebd7['addEventListener'](_0x14ca7a(0x1bf),()=>{const _0x53f429=_0x14ca7a;this[_0x53f429(0x1e1)]=setTimeout(()=>{const _0x582cf6=_0x53f429;_0x101498[_0x582cf6(0x1d1)]['display']='block';},0x3e8);}),_0x21ebd7[_0x14ca7a(0x1d5)](_0x14ca7a(0x222),()=>{setTimeout(()=>{const _0x12934d=_0x3b76;_0x101498[_0x12934d(0x1d1)][_0x12934d(0x1b0)]=_0x12934d(0x1e2);},0x7d0),clearTimeout(this['tooltipTimeout']);}),_0x101498[_0x14ca7a(0x1d5)](_0x14ca7a(0x222),()=>{setTimeout(()=>{const _0x4600f2=_0x3b76;_0x101498[_0x4600f2(0x1d1)][_0x4600f2(0x1b0)]=_0x4600f2(0x1e2);},0x7d0);})),this[_0x14ca7a(0x1f9)]();}[_0x207244(0x1f9)](){const _0x4f4063=_0x207244,_0x51d799=this[_0x4f4063(0x1ea)]['querySelector']('select'),_0x2a16ef=_0x51d799[_0x4f4063(0x1c8)][_0x51d799['selectedIndex']],_0x444169=document[_0x4f4063(0x1c6)](_0x4f4063(0x208));_0x444169[_0x4f4063(0x1d1)]['position']=_0x4f4063(0x1f8),_0x444169[_0x4f4063(0x1d1)][_0x4f4063(0x1c1)]=_0x4f4063(0x1c0),_0x444169[_0x4f4063(0x1d1)]['font']=getComputedStyle(_0x51d799)['font'],document['body'][_0x4f4063(0x1b5)](_0x444169),_0x444169[_0x4f4063(0x201)]=_0x2a16ef[_0x4f4063(0x1d9)];const _0x35a334=_0x444169[_0x4f4063(0x217)];document[_0x4f4063(0x1ab)][_0x4f4063(0x1b9)](_0x444169);const _0x5015f6=parseInt(getComputedStyle(_0x51d799)[_0x4f4063(0x209)])+parseInt(getComputedStyle(_0x51d799)[_0x4f4063(0x21a)]);_0x51d799[_0x4f4063(0x1d1)][_0x4f4063(0x1c4)]=this[_0x4f4063(0x1ee)]?_0x35a334+_0x5015f6+0x16+'px':_0x35a334+_0x5015f6+0x4+'px';}}customElements[_0x207244(0x20b)](_0x207244(0x1af),u);class C extends u{}function _0x3b76(_0x1f4b6f,_0x87f8e5){const _0x20815c=_0x2081();return _0x3b76=function(_0x3b7696,_0x63fa72){_0x3b7696=_0x3b7696-0x1aa;let _0x233aa7=_0x20815c[_0x3b7696];return _0x233aa7;},_0x3b76(_0x1f4b6f,_0x87f8e5);}customElements[_0x207244(0x20b)]('uc-qty',C);function _0x2081(){const _0x3f8d3f=['GPa','style','push','true','5884155TrCcCb','addEventListener','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','replace','floor','text','cm\x20HG','e3dLogoUrl','g/mm³','in\x20HG','\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','m\x20W.C.','tooltipTimeout','none','MPa','observedAttributes','toFixed','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x201px\x203px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20','querySelector','kg/m³','getAttribute','shadowRoot','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','toString','°Ra','showUnitArrow','in\x20W.C.','select','120110ExrFrT','connectedCallback','.unit-container','Temperature','mm\x20HG','SELECT','tagName','absolute','updateDropdownWidth','pow','week','Ampere[amp]','auto','psi','selected','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','textContent','mm\x20W.C.','lbm','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','attachShadow','formatValue','lbm/in³','span','paddingLeft','esu/s','define','innerHTML','log','handleArrowClick','unitConversion','15409008BEaadl','focus','minute','decimal-places','mbar','unit','category:\x20','offsetWidth',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>','g/cm³','paddingRight',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','hasAttribute','getUnitCategory','2fUzjIF','Custom','click','187593ofDomY','mouseout','8eZqCSJ','open','body','bind','190Etbgcm','toPrecision','physical-quantity','display','kPa','querySelectorAll','newUnit:\x20','change','appendChild','1008372XfXCOI','https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492','decimalPlaces','removeChild','208NfHdzF','render','value','249513uvGucb','includes','mouseover','hidden','visibility','day','unitCategory','width','closest','createElement','show-unit-arrow','options','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','kg/L','units','156779LcEgDU','.tooltip','handleUnitChange','5tNUhnA'];_0x2081=function(){return _0x3f8d3f;};return _0x2081();}export{u as default};
package/dist/pq.umd.js CHANGED
@@ -1 +1 @@
1
- function _0x34e1(_0x2fb2b6,_0x4ada79){const _0x1c2b5b=_0x1c2b();return _0x34e1=function(_0x34e1b5,_0x144c49){_0x34e1b5=_0x34e1b5-0xe8;let _0x3258bf=_0x1c2b5b[_0x34e1b5];return _0x3258bf;},_0x34e1(_0x2fb2b6,_0x4ada79);}function _0x1c2b(){const _0x1ec738=['shadowRoot','display','includes','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','addEventListener','toString','in\x20W.C.','973qAvxkG','g/cm³','amd','attachShadow','minute','lbm','disconnectedCallback','esu/s','s[second]','replace','GPa','decimal-places','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20background-color:\x20#f5f5f5;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border:\x201px\x20solid\x20#ccc;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20border-radius:\x204px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>','<option\x20value=\x22','https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492','render','click','style','tooltipTimeout','handleArrowClick','e3dLogoUrl','select','411770llglws','4797051muDyfj','mouseout','kPa','open','MPa','5218670mbiJIn','decimalPlaces','observedAttributes','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','bind','toPrecision','3082390Shugiw','focus','querySelector','m\x20W.C.','Length','none','43784yZTRdY','646697RxUbZd','g/mm³','mbar','formatValue','querySelectorAll','selected','atm','36gIUMNo','removeEventListener','day','bar','units','innerHTML','define','value','unitCategory','closest','Ampere[amp]','.unit-container','unitConversion','change','week','attributeChangedCallback','block','tagName','join','6mMiXUb','map','pow','floor','toFixed','handleUnitChange','function','connectedCallback','unit','3855200KFBIOZ','object','PhysicalQuantity','target','psf','in\x20HG','lbm/ft³'];_0x1c2b=function(){return _0x1ec738;};return _0x1c2b();}(function(_0x481959,_0x5301d1){const _0x168898=_0x34e1,_0x4a007a=_0x481959();while(!![]){try{const _0x5131e0=parseInt(_0x168898(0xf6))/0x1+parseInt(_0x168898(0x13d))/0x2+parseInt(_0x168898(0x13e))/0x3+-parseInt(_0x168898(0x119))/0x4+-parseInt(_0x168898(0xe9))/0x5*(parseInt(_0x168898(0x110))/0x6)+parseInt(_0x168898(0x127))/0x7*(-parseInt(_0x168898(0xf5))/0x8)+parseInt(_0x168898(0xfd))/0x9*(parseInt(_0x168898(0xef))/0xa);if(_0x5131e0===_0x5301d1)break;else _0x4a007a['push'](_0x4a007a['shift']());}catch(_0x349a9){_0x4a007a['push'](_0x4a007a['shift']());}}}(_0x1c2b,0xdfb32),function(_0x3d707b,_0x5809f2){const _0x114ff0=_0x34e1;typeof exports==_0x114ff0(0x11a)&&typeof module<'u'?module['exports']=_0x5809f2():typeof define==_0x114ff0(0x116)&&define[_0x114ff0(0x129)]?define(_0x5809f2):(_0x3d707b=typeof globalThis<'u'?globalThis:_0x3d707b||self,_0x3d707b[_0x114ff0(0x11b)]=_0x5809f2());}(this,function(){'use strict';const _0x31bf6f=_0x34e1;const _0x235a09=0.45359237,_0x570759=25.4/0x3e8,_0x58de78=0xc*_0x570759,_0x5b6f10=0x18bcd,_0x344972=133.322387415;class _0x183773 extends HTMLElement{constructor(){const _0x42af98=_0x34e1;super(),this[_0x42af98(0x12a)]({'mode':_0x42af98(0x141)}),this[_0x42af98(0x104)]=0x0,this[_0x42af98(0x118)]='mm',this[_0x42af98(0x105)]=_0x42af98(0xf3),this['tooltipTimeout']=null,this[_0x42af98(0xea)]=0x3,this['e3dLogoUrl']=_0x42af98(0x135),this[_0x42af98(0x101)]={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x42af98(0x12c)],'Pressure':['Pa',_0x42af98(0x140),_0x42af98(0xe8),_0x42af98(0x131),_0x42af98(0x100),_0x42af98(0xf8),_0x42af98(0xfc),'mm\x20HG','cm\x20HG',_0x42af98(0x11e),'mm\x20W.C.',_0x42af98(0xf2),_0x42af98(0x126),_0x42af98(0x11d),'psi','ksi','ksi[kip/in²]'],'Density':['kg/m³','kg/L',_0x42af98(0x128),_0x42af98(0xf7),_0x42af98(0x11f),'lbm/in³'],'Time':[_0x42af98(0x12f),'s',_0x42af98(0x12b),'h','h[hour]',_0x42af98(0xff),_0x42af98(0x10b)],'ElectricalCurrent':['A',_0x42af98(0x107),'mA','µA','kA','MA',_0x42af98(0x12e)]},this[_0x42af98(0x109)]={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':_0x570759,'ft':_0x58de78},'Mass':{'kg':0x1,'g':0.001,'lbm':_0x235a09},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0x5b6f10,'mm\x20HG':_0x344972,'cm\x20HG':_0x344972*0xa,'in\x20HG':_0x344972*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':_0x570759*0x3e8*9.80665,'psf':_0x235a09*9.80665/Math[_0x42af98(0x112)](_0x58de78,0x2),'psi':_0x235a09*9.80665/Math[_0x42af98(0x112)](_0x570759,0x2),'ksi':_0x235a09*9.80665/Math[_0x42af98(0x112)](_0x570759,0x2)*0x3e8,'ksi[kip/in²]':_0x235a09*9.80665/Math[_0x42af98(0x112)](_0x570759,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math[_0x42af98(0x112)](0.01,0x3),'g/mm³':0x1/0x3e8/Math[_0x42af98(0x112)](0.001,0x3),'lbm/ft³':_0x235a09/Math['pow'](_0x58de78,0x3),'lbm/in³':_0x235a09/Math[_0x42af98(0x112)](_0x570759,0x3)},'Time':{'s[second]':0x1,'s':0x1,'minute':0x3c,'h':0xe10,'h[hour]':0xe10,'day':0xe10*0x18,'week':0xe10*0x18*0x7},'ElectricalCurrent':{'A':0x1,'Ampere[amp]':0x1,'mA':0.001,'µA':0.000001,'kA':0x3e8,'MA':0xf4240,'esu/s':0x1/0xb2d05e00}},this[_0x42af98(0x136)]();}static get[_0x31bf6f(0xeb)](){const _0x112392=_0x31bf6f;return[_0x112392(0x104),'unit',_0x112392(0x132)];}[_0x31bf6f(0x10c)](_0x56f047,_0x2018a5,_0x3270c1){const _0x2859e2=_0x31bf6f;_0x56f047===_0x2859e2(0x104)?this['value']=parseFloat(_0x3270c1):_0x56f047==='unit'?(this[_0x2859e2(0x118)]=_0x3270c1,this[_0x2859e2(0x105)]=this['getUnitCategory'](_0x3270c1)):_0x56f047==='decimal-places'&&(this['decimalPlaces']=parseInt(_0x3270c1)||0x3),this[_0x2859e2(0x136)]();}['getUnitCategory'](_0xb5e736){const _0x3cbdd7=_0x31bf6f;for(const _0x29b5d9 in this[_0x3cbdd7(0x101)])if(this[_0x3cbdd7(0x101)][_0x29b5d9][_0x3cbdd7(0x122)](_0xb5e736))return _0x29b5d9;return null;}[_0x31bf6f(0x117)](){const _0x536de5=_0x31bf6f;this['shadowRoot'][_0x536de5(0x124)]('change',this['handleUnitChange']['bind'](this)),this[_0x536de5(0x136)]();}[_0x31bf6f(0x12d)](){const _0xa3c4e6=_0x31bf6f;this[_0xa3c4e6(0x120)][_0xa3c4e6(0xfe)](_0xa3c4e6(0x10a),this[_0xa3c4e6(0x115)][_0xa3c4e6(0xed)](this));}[_0x31bf6f(0x13a)](_0x140b15){const _0x389778=_0x31bf6f;if(_0x140b15['target'][_0x389778(0x106)](_0x389778(0x108))){const _0x223cc7=this[_0x389778(0x120)][_0x389778(0xf1)](_0x389778(0x13c));_0x223cc7&&(_0x223cc7[_0x389778(0xf0)](),_0x223cc7[_0x389778(0x137)]());}}['handleUnitChange'](_0xf8a45a){const _0x45c223=_0x31bf6f;if(_0xf8a45a[_0x45c223(0x11c)][_0x45c223(0x10e)]==='SELECT'){const _0x11def9=_0xf8a45a[_0x45c223(0x11c)][_0x45c223(0x104)],_0x17e89f=this[_0x45c223(0x109)][this[_0x45c223(0x105)]][this[_0x45c223(0x118)]]/this[_0x45c223(0x109)][this[_0x45c223(0x105)]][_0x11def9];this['value']=this['value']*_0x17e89f,this[_0x45c223(0x118)]=_0x11def9,this[_0x45c223(0x136)]();}}[_0x31bf6f(0xf9)](_0x206c93){const _0x2ceb0c=_0x31bf6f;return Number['isInteger'](_0x206c93)?_0x206c93[_0x2ceb0c(0x125)]():Math[_0x2ceb0c(0x113)](_0x206c93)!==0x0?_0x206c93[_0x2ceb0c(0x114)](this['decimalPlaces'])[_0x2ceb0c(0x130)](/0+$/,'')[_0x2ceb0c(0x130)](/\.$/,''):_0x206c93[_0x2ceb0c(0xee)](0x3);}[_0x31bf6f(0x136)](){const _0x4a3914=_0x31bf6f;this[_0x4a3914(0x120)][_0x4a3914(0x102)]=_0x4a3914(0x133)+this[_0x4a3914(0xf9)](this[_0x4a3914(0x104)])+_0x4a3914(0x123)+this[_0x4a3914(0x101)][this['unitCategory']][_0x4a3914(0x111)](_0x423dcc=>_0x4a3914(0x134)+_0x423dcc+'\x22\x20'+(_0x423dcc===this[_0x4a3914(0x118)]?_0x4a3914(0xfb):'')+'>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x423dcc+'</option>')[_0x4a3914(0x10f)]('')+_0x4a3914(0xec)+this[_0x4a3914(0x13b)]+'\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20';const _0x18d2ca=this['shadowRoot'][_0x4a3914(0xf1)](_0x4a3914(0x108)),_0x4c514c=this[_0x4a3914(0x120)][_0x4a3914(0xfa)]('.tooltip')[0x0];_0x18d2ca['addEventListener']('mouseover',()=>{const _0x3e423f=_0x4a3914;this[_0x3e423f(0x139)]=setTimeout(()=>{const _0x148602=_0x3e423f;_0x4c514c[_0x148602(0x138)][_0x148602(0x121)]=_0x148602(0x10d);},0x3e8);}),_0x18d2ca[_0x4a3914(0x124)](_0x4a3914(0x13f),()=>{setTimeout(()=>{const _0x3f59df=_0x34e1;_0x4c514c['style'][_0x3f59df(0x121)]=_0x3f59df(0xf4);},0x7d0),clearTimeout(this['tooltipTimeout']);}),_0x4c514c['addEventListener'](_0x4a3914(0x13f),()=>{setTimeout(()=>{const _0x51ef7a=_0x34e1;_0x4c514c[_0x51ef7a(0x138)]['display']=_0x51ef7a(0xf4);},0x7d0);});}}customElements['define']('physical-quantity',_0x183773);class _0x101b8c extends _0x183773{}return customElements[_0x31bf6f(0x103)]('uc-qty',_0x101b8c),_0x183773;}));
1
+ function _0x509f(_0xd7fdc8,_0x214a98){const _0x108169=_0x1081();return _0x509f=function(_0x509f8d,_0x385b24){_0x509f8d=_0x509f8d-0x1a4;let _0x49027f=_0x108169[_0x509f8d];return _0x49027f;},_0x509f(_0xd7fdc8,_0x214a98);}function _0x1081(){const _0x9ad48=['mouseout','createElement','day','4062758fyDBjP','focus','unitConversion','exports','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Temperature','true','6350406cBwkBV','Custom','unit:\x20','removeChild','200OTStta','closest','visibility','ksi','decimalPlaces','log','units','2148296DFZMju','target','in\x20W.C.','replace','select','value','GPa','toPrecision','options','selected','join','addEventListener',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20absolute;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bottom:\x2075%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20left:\x2085%;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20transform:\x20translateX(-50%);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20none;\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20font-size:\x2012px;\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.tooltip\x20a:hover\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20text-decoration:\x20underline;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</style>\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20<div\x20class=\x22quantity\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<span\x20class=\x22value\x22\x20style=\x22position:\x20relative;\x22>','mm\x20HG','textContent','map','font','unitCategory','connectedCallback','PhysicalQuantity',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-moz-appearance:\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20</div>\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20','show-unit-arrow','psi','render','paddingLeft','bind','auto','body','block','floor','e3dLogoUrl','toFixed','kg/L','showUnitArrow','kg/m³','none','kPa','uc-qty','decimal-places','https://firebasestorage.googleapis.com/v0/b/auto-calc-80237.appspot.com/o/shared%2Fassets%2Fimages%2Fe3d-logo2.png?alt=media&token=7064f466-6168-4b8a-b921-4e86115cb492','function','esu/s','position','absolute','updateDropdownWidth','shadowRoot','°Ra','319332OjTTwJ','SELECT','</span>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22unit-container\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<select>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','h[hour]','atm','<option\x20value=\x22','change','querySelectorAll','isInteger','unit','paddingRight','display','5uJlqnj','mbar','define','g/mm³','\x22\x20width=\x2212\x22\x20/>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</a>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','1134551jZwdeb','newUnit:\x20','style','s[second]','click','innerHTML','amd','getAttribute',';\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-webkit-appearance:\x20','in\x20HG','observedAttributes','span','formatValue','63513qCUfsR','getUnitCategory','29199TVqYyY','handleUnitChange','\x0a\x20\x20\x20\x20\x20\x20<style>\x0a\x20\x20\x20\x20\x20\x20\x20\x20:host\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-block;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.quantity\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.value\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-left:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin-right:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20.unit-container\x20select\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20position:\x20relative;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display:\x20inline-flex;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20align-items:\x20center;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20blue;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20background-color:\x20lightgray;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border-radius:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20margin:\x200.25em;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20padding:\x201px\x203px;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20cursor:\x20pointer;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20appearance:\x20','category:\x20','1072nICDES','158rpIGeK','includes','>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pow','MPa','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<a\x20class=\x22tooltip\x22\x20href=\x22https://v2-docs.donwen.com/daily-calculations/unit-converter.html\x22\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20title=\x22Unit\x20Converter\x20for\x20All\x20Categories\x22\x20target=\x22_blank\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<img\x20src=\x22','selectedIndex','Ampere[amp]','lbm','handleArrowClick','hasAttribute','.tooltip','querySelector','mm\x20W.C.','.unit-container','tooltipTimeout','object'];_0x1081=function(){return _0x9ad48;};return _0x1081();}(function(_0x5374a6,_0x2879e8){const _0xa1e45e=_0x509f,_0x510ffa=_0x5374a6();while(!![]){try{const _0x16febd=parseInt(_0xa1e45e(0x1f4))/0x1+-parseInt(_0xa1e45e(0x219))/0x2*(-parseInt(_0xa1e45e(0x214))/0x3)+-parseInt(_0xa1e45e(0x1c4))/0x4*(-parseInt(_0xa1e45e(0x200))/0x5)+parseInt(_0xa1e45e(0x1b9))/0x6+-parseInt(_0xa1e45e(0x1b2))/0x7+-parseInt(_0xa1e45e(0x218))/0x8*(-parseInt(_0xa1e45e(0x212))/0x9)+parseInt(_0xa1e45e(0x1bd))/0xa*(-parseInt(_0xa1e45e(0x205))/0xb);if(_0x16febd===_0x2879e8)break;else _0x510ffa['push'](_0x510ffa['shift']());}catch(_0x3e5101){_0x510ffa['push'](_0x510ffa['shift']());}}}(_0x1081,0xf0c1a),function(_0x3c1a18,_0x562a7d){const _0xc81b40=_0x509f;typeof exports==_0xc81b40(0x1ae)&&typeof module<'u'?module[_0xc81b40(0x1b5)]=_0x562a7d():typeof define==_0xc81b40(0x1ed)&&define[_0xc81b40(0x20b)]?define(_0x562a7d):(_0x3c1a18=typeof globalThis<'u'?globalThis:_0x3c1a18||self,_0x3c1a18[_0xc81b40(0x1d7)]=_0x562a7d());}(this,function(){'use strict';const _0x4f68f5=_0x509f;const _0x291536=0.45359237,_0x46e813=25.4/0x3e8,_0x435de4=0xc*_0x46e813,_0xe21930=0x18bcd,_0x394c14=133.322387415,_0x205424={'Length':['m','km','cm','mm','in','ft'],'Mass':['g','kg',_0x4f68f5(0x1a6)],'Pressure':['Pa',_0x4f68f5(0x1e9),_0x4f68f5(0x21d),_0x4f68f5(0x1ca),'bar',_0x4f68f5(0x201),_0x4f68f5(0x1f8),_0x4f68f5(0x1d1),'cm\x20HG',_0x4f68f5(0x20e),_0x4f68f5(0x1ab),'m\x20W.C.',_0x4f68f5(0x1c6),'psf',_0x4f68f5(0x1db),_0x4f68f5(0x1c0),'ksi[kip/in²]'],'Density':[_0x4f68f5(0x1e7),_0x4f68f5(0x1e5),'g/cm³',_0x4f68f5(0x203),'lbm/ft³','lbm/in³'],'Time':[_0x4f68f5(0x208),'s','minute','h',_0x4f68f5(0x1f7),_0x4f68f5(0x1b1),'week'],'ElectricalCurrent':['A',_0x4f68f5(0x1a5),'mA','µA','kA','MA',_0x4f68f5(0x1ee)],'Temperature':['°K','°C','°F',_0x4f68f5(0x1f3)]},_0x661a4a={'Length':{'m':0x1,'km':0x3e8,'cm':0.01,'mm':0.001,'in':_0x46e813,'ft':_0x435de4},'Mass':{'kg':0x1,'g':0.001,'lbm':_0x291536},'Pressure':{'Pa':0x1,'kPa':0x3e8,'MPa':0xf4240,'GPa':0x3b9aca00,'bar':0x64*0x3e8,'mbar':0x64,'atm':_0xe21930,'mm\x20HG':_0x394c14,'cm\x20HG':_0x394c14*0xa,'in\x20HG':_0x394c14*25.4,'mm\x20W.C.':0x1/0x3e8*0x3e8*9.80665,'m\x20W.C.':0x1*0x3e8*9.80665,'in\x20W.C.':_0x46e813*0x3e8*9.80665,'psf':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x435de4,0x2),'psi':_0x291536*9.80665/Math['pow'](_0x46e813,0x2),'ksi':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x46e813,0x2)*0x3e8,'ksi[kip/in²]':_0x291536*9.80665/Math[_0x4f68f5(0x21c)](_0x46e813,0x2)*0x3e8},'Density':{'kg/m³':0x1,'kg/L':0x3e8,'g/cm³':0x1/0x3e8/Math['pow'](0.01,0x3),'g/mm³':0x1/0x3e8/Math['pow'](0.001,0x3),'lbm/ft³':_0x291536/Math[_0x4f68f5(0x21c)](_0x435de4,0x3),'lbm/in³':_0x291536/Math['pow'](_0x46e813,0x3)},'Time':{'s[second]':0x1,'s':0x1,'minute':0x3c,'h':0xe10,'h[hour]':0xe10,'day':0xe10*0x18,'week':0xe10*0x18*0x7},'ElectricalCurrent':{'A':0x1,'Ampere[amp]':0x1,'mA':0.001,'µA':0.000001,'kA':0x3e8,'MA':0xf4240,'esu/s':0x1/0xb2d05e00},'Temperature':{'°K':{'c0':0x1,'c1':0x0},'°C':{'c0':0x1,'c1':273.15},'°F':{'c0':0x5/0x9,'c1':255.3722222},'°Ra':{'c0':0x5/0x9,'c1':0x0}}};class _0x3feca8 extends HTMLElement{constructor(){const _0x3fbacd=_0x4f68f5;super(),this['attachShadow']({'mode':'open'}),this[_0x3fbacd(0x1c9)]=0x0,this[_0x3fbacd(0x1ad)]=null,this[_0x3fbacd(0x1c1)]=0x3,this[_0x3fbacd(0x1e3)]=_0x3fbacd(0x1ec),this[_0x3fbacd(0x1c3)]=_0x205424,this['unitConversion']=_0x661a4a,this[_0x3fbacd(0x1e6)]=!this[_0x3fbacd(0x1a8)](_0x3fbacd(0x1da))||this[_0x3fbacd(0x20c)](_0x3fbacd(0x1da))===_0x3fbacd(0x1b8),this[_0x3fbacd(0x1dc)]();}static get[_0x4f68f5(0x20f)](){const _0x327d05=_0x4f68f5;return[_0x327d05(0x1c9),_0x327d05(0x1fd),_0x327d05(0x1eb),_0x327d05(0x1da)];}['attributeChangedCallback'](_0x784ee8,_0x422a83,_0x52c93f){const _0xb17425=_0x4f68f5;_0x784ee8===_0xb17425(0x1c9)?this[_0xb17425(0x1c9)]=parseFloat(_0x52c93f):_0x784ee8===_0xb17425(0x1fd)?(this[_0xb17425(0x1fd)]=_0x52c93f,this[_0xb17425(0x1d5)]=this[_0xb17425(0x213)](_0x52c93f)):_0x784ee8===_0xb17425(0x1eb)?this[_0xb17425(0x1c1)]=parseInt(_0x52c93f)||0x3:_0x784ee8===_0xb17425(0x1da)&&(this['showUnitArrow']=_0x52c93f===null||_0x52c93f===_0xb17425(0x1b8)),this[_0xb17425(0x1dc)]();}[_0x4f68f5(0x213)](_0x240fc7){const _0x11cdb0=_0x4f68f5;for(const _0x248e5d in this[_0x11cdb0(0x1c3)])if(this[_0x11cdb0(0x1c3)][_0x248e5d][_0x11cdb0(0x21a)](_0x240fc7))return _0x248e5d;return this[_0x11cdb0(0x1c3)][_0x11cdb0(0x1ba)]=this[_0x11cdb0(0x1c3)][_0x11cdb0(0x1ba)]||[],this[_0x11cdb0(0x1c3)]['Custom']['push'](_0x240fc7),this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)]=this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)]||{},this[_0x11cdb0(0x1b4)][_0x11cdb0(0x1ba)][_0x240fc7]=0x1,_0x11cdb0(0x1ba);}[_0x4f68f5(0x1d6)](){const _0x432904=_0x4f68f5;this[_0x432904(0x1f2)][_0x432904(0x1cf)](_0x432904(0x1fa),this[_0x432904(0x215)]['bind'](this)),this[_0x432904(0x1fd)]=this['getAttribute'](_0x432904(0x1fd))||'mm',this['unitCategory']=this[_0x432904(0x213)](this[_0x432904(0x1fd)]),this[_0x432904(0x1e6)]=this[_0x432904(0x1a8)]('show-unit-arrow')?this[_0x432904(0x20c)](_0x432904(0x1da))===_0x432904(0x1b8):this[_0x432904(0x1d5)]!==_0x432904(0x1ba),this[_0x432904(0x1dc)]();}['disconnectedCallback'](){const _0x59bdd4=_0x4f68f5;this['shadowRoot']['removeEventListener'](_0x59bdd4(0x1fa),this['handleUnitChange'][_0x59bdd4(0x1de)](this));}[_0x4f68f5(0x1a7)](_0x1e2df1){const _0x32f16b=_0x4f68f5;if(_0x1e2df1[_0x32f16b(0x1c5)][_0x32f16b(0x1be)](_0x32f16b(0x1ac))){const _0x55153a=this[_0x32f16b(0x1f2)]['querySelector'](_0x32f16b(0x1c8));_0x55153a&&(_0x55153a[_0x32f16b(0x1b3)](),_0x55153a[_0x32f16b(0x209)]());}}[_0x4f68f5(0x215)](_0xcd6a8a){const _0x721f8=_0x4f68f5;let _0x36700f=0x1,_0x433e28=0x1,_0x43691d=0x0,_0x566b05=0x0;if(_0xcd6a8a[_0x721f8(0x1c5)]['tagName']===_0x721f8(0x1f5)){const _0x373cd0=_0xcd6a8a[_0x721f8(0x1c5)]['value'];if(this['unitCategory']!==_0x721f8(0x1b7)){const _0x206b4c=this['unitConversion'][this['unitCategory']][this[_0x721f8(0x1fd)]]/this[_0x721f8(0x1b4)][this['unitCategory']][_0x373cd0];this['value']=this['value']*_0x206b4c;}else console[_0x721f8(0x1c2)](_0x721f8(0x217)+this[_0x721f8(0x1d5)]),console['log'](_0x721f8(0x1bb)+this[_0x721f8(0x1fd)]),console['log'](_0x721f8(0x206)+_0x373cd0),_0x36700f=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][this[_0x721f8(0x1fd)]]['c0'],_0x433e28=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][this['unit']]['c1'],_0x43691d=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][_0x373cd0]['c0'],_0x566b05=this[_0x721f8(0x1b4)][this[_0x721f8(0x1d5)]][_0x373cd0]['c1'],this['value']=(this[_0x721f8(0x1c9)]*_0x36700f+_0x433e28-_0x566b05)/_0x43691d;this[_0x721f8(0x1fd)]=_0x373cd0,this[_0x721f8(0x1dc)]();}this[_0x721f8(0x1f1)]();}['formatValue'](_0x4cb3eb){const _0x176b1a=_0x4f68f5;return Number[_0x176b1a(0x1fc)](_0x4cb3eb)?_0x4cb3eb['toString']():Math[_0x176b1a(0x1e2)](_0x4cb3eb)!==0x0?_0x4cb3eb[_0x176b1a(0x1e4)](this[_0x176b1a(0x1c1)])[_0x176b1a(0x1c7)](/0+$/,'')[_0x176b1a(0x1c7)](/\.$/,''):_0x4cb3eb[_0x176b1a(0x1cb)](0x3);}['render'](){const _0xdc4670=_0x4f68f5;this['shadowRoot'][_0xdc4670(0x20a)]=_0xdc4670(0x216)+(this['showUnitArrow']?_0xdc4670(0x1df):_0xdc4670(0x1e8))+_0xdc4670(0x1d8)+(this['showUnitArrow']?_0xdc4670(0x1df):_0xdc4670(0x1e8))+_0xdc4670(0x20d)+(this[_0xdc4670(0x1e6)]?'auto':_0xdc4670(0x1e8))+_0xdc4670(0x1d0)+this[_0xdc4670(0x211)](this[_0xdc4670(0x1c9)])+_0xdc4670(0x1f6)+(this[_0xdc4670(0x1c3)][this[_0xdc4670(0x1d5)]]||[this[_0xdc4670(0x1fd)]])[_0xdc4670(0x1d3)](_0x116e9e=>_0xdc4670(0x1f9)+_0x116e9e+'\x22\x20'+(_0x116e9e===this[_0xdc4670(0x1fd)]?_0xdc4670(0x1cd):'')+_0xdc4670(0x21b)+_0x116e9e+'</option>')[_0xdc4670(0x1ce)]('')+_0xdc4670(0x1b6)+(this['showUnitArrow']&&this[_0xdc4670(0x1d5)]!=='Custom'?_0xdc4670(0x21e)+this[_0xdc4670(0x1e3)]+_0xdc4670(0x204):'')+_0xdc4670(0x1d9);const _0x446683=this['shadowRoot'][_0xdc4670(0x1aa)](_0xdc4670(0x1ac)),_0x49aaef=this['shadowRoot'][_0xdc4670(0x1fb)](_0xdc4670(0x1a9))[0x0];_0x446683&&_0x49aaef&&(_0x446683['addEventListener']('mouseover',()=>{const _0x1fad54=_0xdc4670;this[_0x1fad54(0x1ad)]=setTimeout(()=>{const _0x40cf11=_0x1fad54;_0x49aaef[_0x40cf11(0x207)][_0x40cf11(0x1ff)]=_0x40cf11(0x1e1);},0x3e8);}),_0x446683[_0xdc4670(0x1cf)](_0xdc4670(0x1af),()=>{const _0x574934=_0xdc4670;setTimeout(()=>{const _0x682d7=_0x509f;_0x49aaef[_0x682d7(0x207)][_0x682d7(0x1ff)]='none';},0x7d0),clearTimeout(this[_0x574934(0x1ad)]);}),_0x49aaef[_0xdc4670(0x1cf)](_0xdc4670(0x1af),()=>{setTimeout(()=>{const _0x7a62f=_0x509f;_0x49aaef['style']['display']=_0x7a62f(0x1e8);},0x7d0);})),this[_0xdc4670(0x1f1)]();}['updateDropdownWidth'](){const _0x2ab2af=_0x4f68f5,_0x5854e6=this[_0x2ab2af(0x1f2)][_0x2ab2af(0x1aa)]('select'),_0x50511c=_0x5854e6[_0x2ab2af(0x1cc)][_0x5854e6[_0x2ab2af(0x1a4)]],_0x21017f=document[_0x2ab2af(0x1b0)](_0x2ab2af(0x210));_0x21017f[_0x2ab2af(0x207)][_0x2ab2af(0x1ef)]=_0x2ab2af(0x1f0),_0x21017f['style'][_0x2ab2af(0x1bf)]='hidden',_0x21017f[_0x2ab2af(0x207)][_0x2ab2af(0x1d4)]=getComputedStyle(_0x5854e6)[_0x2ab2af(0x1d4)],document[_0x2ab2af(0x1e0)]['appendChild'](_0x21017f),_0x21017f[_0x2ab2af(0x1d2)]=_0x50511c['text'];const _0x2c2fdb=_0x21017f['offsetWidth'];document[_0x2ab2af(0x1e0)][_0x2ab2af(0x1bc)](_0x21017f);const _0x5bdc32=parseInt(getComputedStyle(_0x5854e6)[_0x2ab2af(0x1dd)])+parseInt(getComputedStyle(_0x5854e6)[_0x2ab2af(0x1fe)]);_0x5854e6['style']['width']=this[_0x2ab2af(0x1e6)]?_0x2c2fdb+_0x5bdc32+0x16+'px':_0x2c2fdb+_0x5bdc32+0x4+'px';}}customElements[_0x4f68f5(0x202)]('physical-quantity',_0x3feca8);class _0x5fb682 extends _0x3feca8{}return customElements[_0x4f68f5(0x202)](_0x4f68f5(0x1ea),_0x5fb682),_0x3feca8;}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "physical-quantity",
3
- "version": "1.1.29",
3
+ "version": "1.1.35",
4
4
  "description": "A web component to represent a physical quantity with unit conversion.",
5
5
  "main": "dist/pq.umd.js",
6
6
  "module": "dist/pq.es.js",