who.fhir.template 0.0.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.
Files changed (41) hide show
  1. package/README.md +7 -0
  2. package/config.json +20 -0
  3. package/content/assets/css/fonts/glyphicons-halflings-regular_448c34a56d699c29117adc64c43affeb.woff2 +0 -0
  4. package/content/assets/css/fonts/glyphicons-halflings-regular_e18bbf611f2a2e43afc071aa2f4e1512.ttf +0 -0
  5. package/content/assets/css/fonts/glyphicons-halflings-regular_f4769f9bdb7466be65088239c12046d1.eot +0 -0
  6. package/content/assets/css/fonts/glyphicons-halflings-regular_f49c0c87d80ed5a717b0f1654f69fd3b.svg +1 -0
  7. package/content/assets/css/fonts/glyphicons-halflings-regular_fa2772327f55d8198301fdb8bcfc8158.woff +0 -0
  8. package/content/assets/css/images/down_arrow_gray_10_10_4132a6bfb0e59f9584040b12d7535a07.png +0 -0
  9. package/content/assets/css/images/glyphicons-halflings-regular_89889688147bd7575d6327160d64e760.svg +288 -0
  10. package/content/assets/css/images/magnifying_glass_763c744f99ee16ac3c99560a9c7fe0b7.png +0 -0
  11. package/content/assets/css/images/signal-stop_81196e9a93dbdf10e08432093c95194f.png +0 -0
  12. package/content/assets/css/images/ui-bg_glass_75_d0e5f5_1x400_eb83aeb42fd8d8f74c93b391951bcf44.png +0 -0
  13. package/content/assets/css/images/ui-bg_glass_85_dfeffc_1x400_a697d8fd8a5adbdb87faf8d78a90e755.png +0 -0
  14. package/content/assets/css/images/ui-bg_glass_95_fef1ec_1x400_d699723af8436eba22b885328314bd55.png +0 -0
  15. package/content/assets/css/images/ui-bg_gloss-wave_55_5c9ccc_500x100_c56ba853727c57c51ab90b9e27f7f2d3.png +0 -0
  16. package/content/assets/css/images/ui-bg_inset-hard_100_f5f8f9_1x100_eb961b27be02a26af523a68d5774aa6b.png +0 -0
  17. package/content/assets/css/images/ui-bg_inset-hard_100_fcfdfd_1x100_63b926c3d199d7774678ec2f1cfeb44a.png +0 -0
  18. package/content/assets/css/images/ui-icons_217bc0_256x240_33aede1050c87faf490ee203d3d47699.png +0 -0
  19. package/content/assets/css/images/ui-icons_2e83ff_256x240_db3b908bd060c6f278fde9e11b3b94e3.png +0 -0
  20. package/content/assets/css/images/ui-icons_469bdd_256x240_ed2f2ba37982b5f821d46811a5f79836.png +0 -0
  21. package/content/assets/css/images/ui-icons_6da8d5_256x240_72019f22cbcf7555f4bc97aa383f164f.png +0 -0
  22. package/content/assets/css/images/ui-icons_cd0a0a_256x240_a6a39c47239fcdbbe6e1d5bfaa7adac3.png +0 -0
  23. package/content/assets/css/images/ui-icons_d8e7f3_256x240_06f311c437236b376b247382bf815c71.png +0 -0
  24. package/content/assets/css/images/ui-icons_f9bd01_256x240_c34e7954fb08d6d72348b49032dc4876.png +0 -0
  25. package/content/assets/css/lforms.css +9267 -0
  26. package/content/assets/css/themes.min.css +1 -0
  27. package/content/assets/css/who.css +135 -0
  28. package/content/assets/ico/favicon.png +0 -0
  29. package/content/assets/images/cqf.png +0 -0
  30. package/content/assets/images/who-logo-header.jpg +0 -0
  31. package/content/assets/js/lforms.min.js +78 -0
  32. package/content/assets/js/lforms.min.js.map +1 -0
  33. package/content/assets/js/lformsFHIR.min.js +6 -0
  34. package/includes/_append.fragment-css.html +1 -0
  35. package/includes/fragment-pagebegin.html +112 -0
  36. package/includes/fragment-quest-navtabs.html +72 -0
  37. package/layouts/layout-questionnaire-form.html +122 -0
  38. package/layouts/layout-questionnaire-format.html +38 -0
  39. package/layouts/layout-questionnaire-tree.html +26 -0
  40. package/layouts/layout-questionnaire.html +28 -0
  41. package/package.json +1 -0
@@ -0,0 +1,78 @@
1
+ var LForms=function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(i,a,function(t){return e[t]}.bind(null,a));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=21)}([function(e,t,n){!function(){"use strict";var e=["smoothScroll","autocompleteLhcMod","ui.bootstrap.datetimepicker"],t=n(8);e=t._tooltip?[t._animate,t._popover,t._tooltip,"ui.bootstrap"].concat(e):["ngAnimate","ui.bootstrap"].concat(e),angular.module("lformsWidget",e).config(["$animateProvider","$rootScopeProvider","$compileProvider",function(e,t,n){e.classNameFilter(/has-ng-animate/),t.digestTtl(20),n.aHrefSanitizationTrustedUrlList(/^(https?|ftp|mailto|data):/)}]).directive("lforms",(function(){return{restrict:"E",scope:{lfData:"=",item:"=lfData",lfOptions:"=?"},link:function(e,t,n){e.$watch("lfOptions",(function(t){e.lfData&&t&&e.lfData.setTemplateOptions(t)}),!0),e.$watch("lfOptions",(function(t){e.lfData&&t&&e.lfData.setTemplateOptions(t)}))},transclude:!0,controller:"LFormsCtrl",templateUrl:"form-view.html"}}))}();var i=Object.assign({},n(74));e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ucum=void 0;t.Ucum={dimLen_:7,validOps_:[".","/"],codeSep_:": ",valMsgStart_:"Did you mean ",valMsgEnd_:"?",cnvMsgStart_:"We assumed you meant ",cnvMsgEnd_:".",openEmph_:" ->",closeEmph_:"<- ",openEmphHTML_:'<span class="emphSpan">',closeEmphHTML_:"</span>",bracesMsg_:"FYI - annotations (text in curly braces {}) are ignored, except that an annotation without a leading symbol implies the default unit 1 (the unity).",needMoleWeightMsg_:"Did you wish to convert between mass and moles? The molecular weight of the substance represented by the units is required to perform the conversion.",csvCols_:{"case-sensitive code":"csCode_","LOINC property":"loincProperty_","name (display)":"name_",synonyms:"synonyms_",source:"source_",category:"category_",Guidance:"guidance_"},inputKey_:"case-sensitive code",specUnits_:{"B[10.nV]":"specialUnitOne","[m/s2/Hz^(1/2)]":"specialUnitTwo"}}},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.UnitTables=void 0;var a=n(1).Ucum,r=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.unitNames_={},this.unitCodes_={},this.codeOrder_=[],this.unitStrings_={},this.unitDimensions_={},this.unitSynonyms_={},this.massDimIndex_=0}var t,n,r;return t=e,(n=[{key:"unitsCount",value:function(){return Object.keys(this.unitCodes_).length}},{key:"addUnit",value:function(e){e.name_&&this.addUnitName(e),this.addUnitCode(e),this.addUnitString(e);try{e.dim_.getProperty("dimVec_")&&this.addUnitDimension(e)}catch(e){}}},{key:"addUnitName",value:function(e){var t=e.name_;if(!t)throw new Error("UnitTables.addUnitName called for a unit with no name. "+"Unit code = ".concat(e.csCode_,"."));this.unitNames_[t]?this.unitNames_[t].push(e):this.unitNames_[t]=[e]}},{key:"addUnitCode",value:function(e){var t=e.csCode_;if(!t)throw new Error("UnitTables.addUnitCode called for unit that has no code.");if(this.unitCodes_[t])throw new Error("UnitTables.addUnitCode called, already contains entry for "+"unit with code = ".concat(t));if(this.unitCodes_[t]=e,this.codeOrder_.push(t),"g"==t){for(var n=e.dim_.dimVec_,i=0;i<n.length&&n[i]<1;i++);this.massDimIndex_=i}}},{key:"addUnitString",value:function(e){var t=null;if(t=1==a.caseSensitive_?e.csUnitString_:e.ciUnitString_){var n={mag:e.baseFactorStr_,unit:e};this.unitStrings_[t]?this.unitStrings_[t].push(n):this.unitStrings_[t]=[n]}}},{key:"addUnitDimension",value:function(e){var t=e.dim_.getProperty("dimVec_");if(!t)throw new Error("UnitTables.addUnitDimension called for a unit with no dimension. "+"Unit code = ".concat(e.csCode_,"."));this.unitDimensions_[t]?this.unitDimensions_[t].push(e):this.unitDimensions_[t]=[e]}},{key:"buildUnitSynonyms",value:function(){for(var e in this.unitCodes_){var t=this.unitCodes_[e],n=t.synonyms_;if(n){var i=n.split(";");if(""!==i[0])for(var a=i.length,r=0;r<a;r++){var l=i[r].trim();this.addSynonymCodes(e,l)}}this.addSynonymCodes(e,t.name_)}}},{key:"addSynonymCodes",value:function(e,t){for(var n=t.split(" "),i=n.length,a=0;a<i;a++){var r=n[a];this.unitSynonyms_[r]?-1===this.unitSynonyms_[r].indexOf(e)&&this.unitSynonyms_[r].push(e):this.unitSynonyms_[r]=[e]}}},{key:"getUnitByCode",value:function(e){var t=null;return e&&(t=this.unitCodes_[e]),t}},{key:"getUnitByName",value:function(e){if(null==e)throw new Error("Unable to find unit by name because no name was provided.");var t=e.indexOf(a.codeSep_),n=null;t>=1&&(n=e.substr(t+a.codeSep_.length),e=e.substr(0,t));var i=this.unitNames_[e];if(i){var r=i.length;if(n&&r>1){for(var l=0;i[l].csCode_!==n&&l<r;l++);i=l<r?[i[l]]:null}}return i}},{key:"getUnitByString",value:function(e){var t=null;return e&&void 0===(t=this.unitStrings_[e])&&(t=null),t}},{key:"getUnitsByDimension",value:function(e){var t;if(null==e)throw new Error("Unable to find unit by because no dimension vector was provided.");return null==(t=this.unitDimensions_[e])&&console.log("Unable to find unit with dimension = ".concat(e)),t}},{key:"getUnitBySynonym",value:function(e){var t={},n=[];try{if(null==e)throw t.status="error",new Error("Unable to find unit by synonym because no synonym was provided.");var i;if(0===Object.keys(this.unitSynonyms_).length&&this.buildUnitSynonyms(),i=this.unitSynonyms_[e]){t.status="succeeded";for(var a=i.length,r=0;r<a;r++)n.push(this.unitCodes_[i[r]]);t.units=n}0===n.length&&(t.status="failed",t.msg="Unable to find any units with synonym = ".concat(e))}catch(e){t.msg=e.message}return t}},{key:"getAllUnitNames",value:function(){return Object.keys(this.unitNames_)}},{key:"getUnitNamesList",value:function(){var e=[],t=Object.keys(this.unitCodes_);t.sort(this.compareCodes);for(var n=t.length,i=0;i<n;i++)e[i]=t[i]+a.codeSep_+this.unitCodes_[t[i]].name_;return e}},{key:"getMassDimensionIndex",value:function(){return this.massDimIndex_}},{key:"compareCodes",value:function(e,t){return(e=(e=e.replace(/[\[\]]/g,"")).toLowerCase())<(t=(t=t.replace(/[\[\]]/g,"")).toLowerCase())?-1:1}},{key:"getAllUnitCodes",value:function(){return Object.keys(this.unitCodes_)}},{key:"allUnitsByDef",value:function(){for(var e=[],t=this.codeOrder_.length,n=0;n<t;n++)e.push(this.getUnitByCode(this.codeOrder_[n]));return e}},{key:"allUnitsByName",value:function(e,t){null==t&&(t="|");for(var n="",i=this.getAllUnitNames(),a=i.length,r=e.length,l=0;l<a;l++)for(var s=this.getUnitByName(i[l]),o=0;o<s.length;o++){for(var u=s[o],c=0;c<r;c++)if(c>0&&(n+=t),"dim_"===e[c])null!==u.dim_&&void 0!==u.dim_&&u.dim_.dimVec_ instanceof Array?n+="["+u.dim_.dimVec_.join(",")+"]":n+="";else{var f=u[e[c]];n+="string"==typeof f?f.replace(/[\n\r]/g," "):f}n+="\r\n"}return n}},{key:"printUnits",value:function(e,t){void 0===e&&(e=!1),void 0===t&&(t="|");var n="",i=this.codeOrder_.length,a="csCode"+t;e&&(a+="ciCode"+t),a+="name"+t,e&&(a+="isBase"+t),a+="magnitude"+t+"dimension"+t+"from unit(s)"+t+"value"+t+"function"+t,e&&(a+="property"+t+"printSymbol"+t+"synonyms"+t+"source"+t+"class"+t+"isMetric"+t+"variable"+t+"isSpecial"+t+"isAbitrary"+t),n=(a+="comment")+"\n";for(var r=0;r<i;r++){var l=this.getUnitByCode(this.codeOrder_[r]);a=this.codeOrder_[r]+t,e&&(a+=l.getProperty("ciCode_")+t),a+=l.getProperty("name_")+t,e&&(l.getProperty("isBase_")?a+="true"+t:a+="false"+t),a+=l.getProperty("magnitude_")+t;var s=l.getProperty("dim_");a+=s?s.dimVec_+t:"null"+t,l.csUnitString_?a+=l.csUnitString_+t+l.baseFactor_+t:a+="null"+t+"null"+t,l.cnv_?a+=l.cnv_+t:a+="null"+t,e&&(a+=l.getProperty("property_")+t+l.getProperty("printSymbol_")+t+l.getProperty("synonyms_")+t+l.getProperty("source_")+t+l.getProperty("class_")+t+l.getProperty("isMetric_")+t+l.getProperty("variable_")+t+l.getProperty("isSpecial_")+t+l.getProperty("isArbitrary_")+t),l.defError_&&(a+="problem parsing this one, deferred to later."),n+=a+"\n"}return n}}])&&i(t.prototype,n),r&&i(t,r),e}()),l={getInstance:function(){return r}};t.UnitTables=l},function(e,t,n){(function(e){var n;function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
2
+ /*!
3
+ * jQuery JavaScript Library v3.6.0
4
+ * https://jquery.com/
5
+ *
6
+ * Includes Sizzle.js
7
+ * https://sizzlejs.com/
8
+ *
9
+ * Copyright OpenJS Foundation and other contributors
10
+ * Released under the MIT license
11
+ * https://jquery.org/license
12
+ *
13
+ * Date: 2021-03-02T17:08Z
14
+ */!function(t,n){"use strict";"object"===i(e)&&"object"===i(e.exports)?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(a,r){"use strict";var l=[],s=Object.getPrototypeOf,o=l.slice,u=l.flat?function(e){return l.flat.call(e)}:function(e){return l.concat.apply([],e)},c=l.push,f=l.indexOf,d={},p=d.toString,m=d.hasOwnProperty,h=m.toString,g=h.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},b=function(e){return null!=e&&e===e.window},_=a.document,C={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var i,a,r=(n=n||_).createElement("script");if(r.text=e,t)for(i in C)(a=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,a);n.head.appendChild(r).parentNode.removeChild(r)}function $(e){return null==e?e+"":"object"===i(e)||"function"==typeof e?d[p.call(e)]||"object":i(e)}var k=function e(t,n){return new e.fn.init(t,n)};function S(e){var t=!!e&&"length"in e&&e.length,n=$(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.6.0",constructor:k,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(k.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(k.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:l.sort,splice:l.splice},k.extend=k.fn.extend=function(){var e,t,n,a,r,l,s=arguments[0]||{},o=1,u=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[o]||{},o++),"object"===i(s)||y(s)||(s={}),o===u&&(s=this,o--);o<u;o++)if(null!=(e=arguments[o]))for(t in e)a=e[t],"__proto__"!==t&&s!==a&&(c&&a&&(k.isPlainObject(a)||(r=Array.isArray(a)))?(n=s[t],l=r&&!Array.isArray(n)?[]:r||k.isPlainObject(n)?n:{},r=!1,s[t]=k.extend(c,l,a)):void 0!==a&&(s[t]=a));return s},k.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=s(e))||"function"==typeof(n=m.call(t,"constructor")&&t.constructor)&&h.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(S(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(S(Object(e))?k.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:f.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,a=e.length;i<n;i++)e[a++]=t[i];return e.length=a,e},grep:function(e,t,n){for(var i=[],a=0,r=e.length,l=!n;a<r;a++)!t(e[a],a)!==l&&i.push(e[a]);return i},map:function(e,t,n){var i,a,r=0,l=[];if(S(e))for(i=e.length;r<i;r++)null!=(a=t(e[r],r,n))&&l.push(a);else for(r in e)null!=(a=t(e[r],r,n))&&l.push(a);return u(l)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=l[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var M=
15
+ /*!
16
+ * Sizzle CSS Selector Engine v2.3.6
17
+ * https://sizzlejs.com/
18
+ *
19
+ * Copyright JS Foundation and other contributors
20
+ * Released under the MIT license
21
+ * https://js.foundation/
22
+ *
23
+ * Date: 2021-02-16
24
+ */
25
+ function(e){var t,n,i,a,r,l,s,o,u,c,f,d,p,m,h,g,v,y,b,_="sizzle"+1*new Date,C=e.document,w=0,$=0,k=oe(),S=oe(),M=oe(),I=oe(),L=function(e,t){return e===t&&(f=!0),0},A={}.hasOwnProperty,O=[],T=O.pop,x=O.push,D=O.push,U=O.slice,q=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},E="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",P="\\["+N+"*("+R+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+N+"*\\]",F=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+P+")*)|.*)\\)|)",H=new RegExp(N+"+","g"),V=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),B=new RegExp("^"+N+"*,"+N+"*"),j=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),z=new RegExp(N+"|>"),Y=new RegExp(F),G=new RegExp("^"+R+"$"),W={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+P),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+E+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ae=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){d()},le=_e((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{D.apply(O=U.call(C.childNodes),C.childNodes),O[C.childNodes.length].nodeType}catch(e){D={apply:O.length?function(e,t){x.apply(e,U.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,i,a){var r,s,u,c,f,m,v,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!a&&(d(t),t=t||p,h)){if(11!==C&&(f=Z.exec(e)))if(r=f[1]){if(9===C){if(!(u=t.getElementById(r)))return i;if(u.id===r)return i.push(u),i}else if(y&&(u=y.getElementById(r))&&b(t,u)&&u.id===r)return i.push(u),i}else{if(f[2])return D.apply(i,t.getElementsByTagName(e)),i;if((r=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return D.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!I[e+" "]&&(!g||!g.test(e))&&(1!==C||"object"!==t.nodeName.toLowerCase())){if(v=e,y=t,1===C&&(z.test(e)||j.test(e))){for((y=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(ie,ae):t.setAttribute("id",c=_)),s=(m=l(e)).length;s--;)m[s]=(c?"#"+c:":scope")+" "+be(m[s]);v=m.join(",")}try{return D.apply(i,y.querySelectorAll(v)),i}catch(t){I(e,!0)}finally{c===_&&t.removeAttribute("id")}}}return o(e.replace(V,"$1"),t,i,a)}function oe(){var e=[];return function t(n,a){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=a}}function ue(e){return e[_]=!0,e}function ce(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),a=n.length;a--;)i.attrHandle[n[a]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function me(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&le(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ge(e){return ue((function(t){return t=+t,ue((function(n,i){for(var a,r=e([],n.length,t),l=r.length;l--;)n[a=r[l]]&&(n[a]=!(i[a]=n[a]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},r=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!K.test(t||n&&n.nodeName||"HTML")},d=se.setDocument=function(e){var t,a,l=e?e.ownerDocument||e:C;return l!=p&&9===l.nodeType&&l.documentElement?(m=(p=l).documentElement,h=!r(p),C!=p&&(a=p.defaultView)&&a.top!==a&&(a.addEventListener?a.addEventListener("unload",re,!1):a.attachEvent&&a.attachEvent("onunload",re)),n.scope=ce((function(e){return m.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(p.getElementsByClassName),n.getById=ce((function(e){return m.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,i,a,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(a=t.getElementsByName(e),i=0;r=a[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],a=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[a++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=X.test(p.querySelectorAll))&&(ce((function(e){var t;m.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+N+"*(?:value|"+E+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||g.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]"),e.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),m.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=X.test(y=m.matches||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",F)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=X.test(m.compareDocumentPosition),b=t||X.test(m.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},L=t?function(e,t){if(e===t)return f=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==p||e.ownerDocument==C&&b(C,e)?-1:t==p||t.ownerDocument==C&&b(C,t)?1:c?q(c,e)-q(c,t):0:4&i?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,i=0,a=e.parentNode,r=t.parentNode,l=[e],s=[t];if(!a||!r)return e==p?-1:t==p?1:a?-1:r?1:c?q(c,e)-q(c,t):0;if(a===r)return de(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;l[i]===s[i];)i++;return i?de(l[i],s[i]):l[i]==C?-1:s[i]==C?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&h&&!I[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){I(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&d(e),b(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&d(e);var a=i.attrHandle[t.toLowerCase()],r=a&&A.call(i.attrHandle,t.toLowerCase())?a(e,t,!h):void 0;return void 0!==r?r:n.attributes||!h?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},se.escape=function(e){return(e+"").replace(ie,ae)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],a=0,r=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(L),f){for(;t=e[r++];)t===e[r]&&(a=i.push(r));for(;a--;)e.splice(i[a],1)}return c=null,e},a=se.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=a(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=a(t);return n},(i=se.selectors={cacheLength:50,createPseudo:ue,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Y.test(n)&&(t=l(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var a=se.attr(i,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,a){var r="nth"!==e.slice(0,3),l="last"!==e.slice(-4),s="of-type"===t;return 1===i&&0===a?function(e){return!!e.parentNode}:function(t,n,o){var u,c,f,d,p,m,h=r!==l?"nextSibling":"previousSibling",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!o&&!s,b=!1;if(g){if(r){for(;h;){for(d=t;d=d[h];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;m=h="only"===e&&!m&&"nextSibling"}return!0}if(m=[l?g.firstChild:g.lastChild],l&&y){for(b=(p=(u=(c=(f=(d=g)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===w&&u[1])&&u[2],d=p&&g.childNodes[p];d=++p&&d&&d[h]||(b=p=0)||m.pop();)if(1===d.nodeType&&++b&&d===t){c[e]=[w,p,b];break}}else if(y&&(b=p=(u=(c=(f=(d=t)[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]||[])[0]===w&&u[1]),!1===b)for(;(d=++p&&d&&d[h]||(b=p=0)||m.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((c=(f=d[_]||(d[_]={}))[d.uniqueID]||(f[d.uniqueID]={}))[e]=[w,b]),d!==t)););return(b-=a)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,t){var n,a=i.pseudos[e]||i.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return a[_]?a(t):a.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ue((function(e,n){for(var i,r=a(e,t),l=r.length;l--;)e[i=q(e,r[l])]=!(n[i]=r[l])})):function(e){return a(e,0,n)}):a}},pseudos:{not:ue((function(e){var t=[],n=[],i=s(e.replace(V,"$1"));return i[_]?ue((function(e,t,n,a){for(var r,l=i(e,null,a,[]),s=e.length;s--;)(r=l[s])&&(e[s]=!(t[s]=r))})):function(e,a,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}})),has:ue((function(e){return function(t){return se(e,t).length>0}})),contains:ue((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||a(t)).indexOf(e)>-1}})),lang:ue((function(e){return G.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===m},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:he(!1),disabled:he(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ge((function(){return[0]})),last:ge((function(e,t){return[t-1]})),eq:ge((function(e,t,n){return[n<0?n+t:n]})),even:ge((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ge((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ge((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:ge((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=me(t);function ye(){}function be(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function _e(e,t,n){var i=t.dir,a=t.next,r=a||i,l=n&&"parentNode"===r,s=$++;return t.first?function(t,n,a){for(;t=t[i];)if(1===t.nodeType||l)return e(t,n,a);return!1}:function(t,n,o){var u,c,f,d=[w,s];if(o){for(;t=t[i];)if((1===t.nodeType||l)&&e(t,n,o))return!0}else for(;t=t[i];)if(1===t.nodeType||l)if(c=(f=t[_]||(t[_]={}))[t.uniqueID]||(f[t.uniqueID]={}),a&&a===t.nodeName.toLowerCase())t=t[i]||t;else{if((u=c[r])&&u[0]===w&&u[1]===s)return d[2]=u[2];if(c[r]=d,d[2]=e(t,n,o))return!0}return!1}}function Ce(e){return e.length>1?function(t,n,i){for(var a=e.length;a--;)if(!e[a](t,n,i))return!1;return!0}:e[0]}function we(e,t,n,i,a){for(var r,l=[],s=0,o=e.length,u=null!=t;s<o;s++)(r=e[s])&&(n&&!n(r,i,a)||(l.push(r),u&&t.push(s)));return l}function $e(e,t,n,i,a,r){return i&&!i[_]&&(i=$e(i)),a&&!a[_]&&(a=$e(a,r)),ue((function(r,l,s,o){var u,c,f,d=[],p=[],m=l.length,h=r||function(e,t,n){for(var i=0,a=t.length;i<a;i++)se(e,t[i],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!r&&t?h:we(h,d,e,s,o),v=n?a||(r?e:m||i)?[]:l:g;if(n&&n(g,v,s,o),i)for(u=we(v,p),i(u,[],s,o),c=u.length;c--;)(f=u[c])&&(v[p[c]]=!(g[p[c]]=f));if(r){if(a||e){if(a){for(u=[],c=v.length;c--;)(f=v[c])&&u.push(g[c]=f);a(null,v=[],u,o)}for(c=v.length;c--;)(f=v[c])&&(u=a?q(r,f):d[c])>-1&&(r[u]=!(l[u]=f))}}else v=we(v===l?v.splice(m,v.length):v),a?a(null,l,v,o):D.apply(l,v)}))}function ke(e){for(var t,n,a,r=e.length,l=i.relative[e[0].type],s=l||i.relative[" "],o=l?1:0,c=_e((function(e){return e===t}),s,!0),f=_e((function(e){return q(t,e)>-1}),s,!0),d=[function(e,n,i){var a=!l&&(i||n!==u)||((t=n).nodeType?c(e,n,i):f(e,n,i));return t=null,a}];o<r;o++)if(n=i.relative[e[o].type])d=[_e(Ce(d),n)];else{if((n=i.filter[e[o].type].apply(null,e[o].matches))[_]){for(a=++o;a<r&&!i.relative[e[a].type];a++);return $e(o>1&&Ce(d),o>1&&be(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(V,"$1"),n,o<a&&ke(e.slice(o,a)),a<r&&ke(e=e.slice(a)),a<r&&be(e))}d.push(n)}return Ce(d)}return ye.prototype=i.filters=i.pseudos,i.setFilters=new ye,l=se.tokenize=function(e,t){var n,a,r,l,s,o,u,c=S[e+" "];if(c)return t?0:c.slice(0);for(s=e,o=[],u=i.preFilter;s;){for(l in n&&!(a=B.exec(s))||(a&&(s=s.slice(a[0].length)||s),o.push(r=[])),n=!1,(a=j.exec(s))&&(n=a.shift(),r.push({value:n,type:a[0].replace(V," ")}),s=s.slice(n.length)),i.filter)!(a=W[l].exec(s))||u[l]&&!(a=u[l](a))||(n=a.shift(),r.push({value:n,type:l,matches:a}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):S(e,o).slice(0)},s=se.compile=function(e,t){var n,a=[],r=[],s=M[e+" "];if(!s){for(t||(t=l(e)),n=t.length;n--;)(s=ke(t[n]))[_]?a.push(s):r.push(s);(s=M(e,function(e,t){var n=t.length>0,a=e.length>0,r=function(r,l,s,o,c){var f,m,g,v=0,y="0",b=r&&[],_=[],C=u,$=r||a&&i.find.TAG("*",c),k=w+=null==C?1:Math.random()||.1,S=$.length;for(c&&(u=l==p||l||c);y!==S&&null!=(f=$[y]);y++){if(a&&f){for(m=0,l||f.ownerDocument==p||(d(f),s=!h);g=e[m++];)if(g(f,l||p,s)){o.push(f);break}c&&(w=k)}n&&((f=!g&&f)&&v--,r&&b.push(f))}if(v+=y,n&&y!==v){for(m=0;g=t[m++];)g(b,_,l,s);if(r){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=T.call(o));_=we(_)}D.apply(o,_),c&&!r&&_.length>0&&v+t.length>1&&se.uniqueSort(o)}return c&&(w=k,u=C),b};return n?ue(r):r}(r,a))).selector=e}return s},o=se.select=function(e,t,n,a){var r,o,u,c,f,d="function"==typeof e&&e,p=!a&&l(e=d.selector||e);if(n=n||[],1===p.length){if((o=p[0]=p[0].slice(0)).length>2&&"ID"===(u=o[0]).type&&9===t.nodeType&&h&&i.relative[o[1].type]){if(!(t=(i.find.ID(u.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=W.needsContext.test(e)?0:o.length;r--&&(u=o[r],!i.relative[c=u.type]);)if((f=i.find[c])&&(a=f(u.matches[0].replace(te,ne),ee.test(o[0].type)&&ve(t.parentNode)||t))){if(o.splice(r,1),!(e=a.length&&be(o)))return D.apply(n,a),n;break}}return(d||s(e,p))(a,t,!h,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=_.split("").sort(L).join("")===_,n.detectDuplicates=!!f,d(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(E,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),se}(a);k.find=M,(k.expr=M.selectors)[":"]=k.expr.pseudos,k.uniqueSort=k.unique=M.uniqueSort,k.text=M.getText,k.isXMLDoc=M.isXML,k.contains=M.contains,k.escapeSelector=M.escape;var I=function(e,t,n){for(var i=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&k(e).is(n))break;i.push(e)}return i},L=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=k.expr.match.needsContext;function O(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function x(e,t,n){return y(t)?k.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?k.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?k.grep(e,(function(e){return f.call(t,e)>-1!==n})):k.filter(t,e,n)}k.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?k.find.matchesSelector(i,e)?[i]:[]:k.find.matches(e,k.grep(t,(function(e){return 1===e.nodeType})))},k.fn.extend({find:function(e){var t,n,i=this.length,a=this;if("string"!=typeof e)return this.pushStack(k(e).filter((function(){for(t=0;t<i;t++)if(k.contains(a[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)k.find(e,a[t],n);return i>1?k.uniqueSort(n):n},filter:function(e){return this.pushStack(x(this,e||[],!1))},not:function(e){return this.pushStack(x(this,e||[],!0))},is:function(e){return!!x(this,"string"==typeof e&&A.test(e)?k(e):e||[],!1).length}});var D,U=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var i,a;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:U.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),T.test(i[1])&&k.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(a=_.getElementById(i[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,D=k(_);var q=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,a=this.length,r=[],l="string"!=typeof e&&k(e);if(!A.test(e))for(;i<a;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(l?l.index(n)>-1:1===n.nodeType&&k.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?k.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?f.call(k(e),this[0]):f.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return L((e.parentNode||{}).firstChild,e)},children:function(e){return L(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(O(e,"template")&&(e=e.content||e),k.merge([],e.childNodes))}},(function(e,t){k.fn[e]=function(n,i){var a=k.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(a=k.filter(i,a)),this.length>1&&(E[e]||k.uniqueSort(a),q.test(e)&&a.reverse()),this.pushStack(a)}}));var R=/[^\x20\t\r\n\f]+/g;function P(e){return e}function F(e){throw e}function H(e,t,n,i){var a;try{e&&y(a=e.promise)?a.call(e).done(t).fail(n):e&&y(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}k.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return k.each(e.match(R)||[],(function(e,n){t[n]=!0})),t}(e):k.extend({},e);var t,n,i,a,r=[],l=[],s=-1,o=function(){for(a=a||e.once,i=t=!0;l.length;s=-1)for(n=l.shift();++s<r.length;)!1===r[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=r.length,n=!1);e.memory||(n=!1),t=!1,a&&(r=n?[]:"")},u={add:function(){return r&&(n&&!t&&(s=r.length-1,l.push(n)),function t(n){k.each(n,(function(n,i){y(i)?e.unique&&u.has(i)||r.push(i):i&&i.length&&"string"!==$(i)&&t(i)}))}(arguments),n&&!t&&o()),this},remove:function(){return k.each(arguments,(function(e,t){for(var n;(n=k.inArray(t,r,n))>-1;)r.splice(n,1),n<=s&&s--})),this},has:function(e){return e?k.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return a=l=[],r=n="",this},disabled:function(){return!r},lock:function(){return a=l=[],n||t||(r=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],l.push(n),t||o()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},k.extend({Deferred:function(e){var t=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return l.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return k.Deferred((function(n){k.each(t,(function(t,i){var a=y(e[i[4]])&&e[i[4]];l[i[1]]((function(){var e=a&&a.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,a?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var l=0;function s(e,t,n,r){return function(){var o=this,u=arguments,c=function(){var a,c;if(!(e<l)){if((a=n.apply(o,u))===t.promise())throw new TypeError("Thenable self-resolution");c=a&&("object"===i(a)||"function"==typeof a)&&a.then,y(c)?r?c.call(a,s(l,t,P,r),s(l,t,F,r)):(l++,c.call(a,s(l,t,P,r),s(l,t,F,r),s(l,t,P,t.notifyWith))):(n!==P&&(o=void 0,u=[a]),(r||t.resolveWith)(o,u))}},f=r?c:function(){try{c()}catch(i){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(i,f.stackTrace),e+1>=l&&(n!==F&&(o=void 0,u=[i]),t.rejectWith(o,u))}};e?f():(k.Deferred.getStackHook&&(f.stackTrace=k.Deferred.getStackHook()),a.setTimeout(f))}}return k.Deferred((function(i){t[0][3].add(s(0,i,y(r)?r:P,i.notifyWith)),t[1][3].add(s(0,i,y(e)?e:P)),t[2][3].add(s(0,i,y(n)?n:F))})).promise()},promise:function(e){return null!=e?k.extend(e,r):r}},l={};return k.each(t,(function(e,i){var a=i[2],s=i[5];r[i[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(i[3].fire),l[i[0]]=function(){return l[i[0]+"With"](this===l?void 0:this,arguments),this},l[i[0]+"With"]=a.fireWith})),r.promise(l),e&&e.call(l,l),l},when:function(e){var t=arguments.length,n=t,i=Array(n),a=o.call(arguments),r=k.Deferred(),l=function(e){return function(n){i[e]=this,a[e]=arguments.length>1?o.call(arguments):n,--t||r.resolveWith(i,a)}};if(t<=1&&(H(e,r.done(l(n)).resolve,r.reject,!t),"pending"===r.state()||y(a[n]&&a[n].then)))return r.then();for(;n--;)H(a[n],l(n),r.reject);return r.promise()}});var V=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){a.console&&a.console.warn&&e&&V.test(e.name)&&a.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){a.setTimeout((function(){throw e}))};var B=k.Deferred();function j(){_.removeEventListener("DOMContentLoaded",j),a.removeEventListener("load",j),k.ready()}k.fn.ready=function(e){return B.then(e).catch((function(e){k.readyException(e)})),this},k.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--k.readyWait:k.isReady)||(k.isReady=!0,!0!==e&&--k.readyWait>0||B.resolveWith(_,[k]))}}),k.ready.then=B.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?a.setTimeout(k.ready):(_.addEventListener("DOMContentLoaded",j),a.addEventListener("load",j));var z=function e(t,n,i,a,r,l,s){var o=0,u=t.length,c=null==i;if("object"===$(i))for(o in r=!0,i)e(t,n,o,i[o],!0,l,s);else if(void 0!==a&&(r=!0,y(a)||(s=!0),c&&(s?(n.call(t,a),n=null):(c=n,n=function(e,t,n){return c.call(k(e),n)})),n))for(;o<u;o++)n(t[o],i,s?a:a.call(t[o],o,n(t[o],i)));return r?t:c?n.call(t):u?n(t[0],i):l},Y=/^-ms-/,G=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function K(e){return e.replace(Y,"ms-").replace(G,W)}var Q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=k.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,a=this.cache(e);if("string"==typeof t)a[K(t)]=n;else for(i in t)a[K(i)]=t[i];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(K):(t=K(t))in i?[t]:t.match(R)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||k.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var X=new J,Z=new J,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return Z.hasData(e)||X.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),k.fn.extend({data:function(e,t){var n,a,r,l=this[0],s=l&&l.attributes;if(void 0===e){if(this.length&&(r=Z.get(l),1===l.nodeType&&!X.get(l,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(a=s[n].name).indexOf("data-")&&(a=K(a.slice(5)),ne(l,a,r[a]));X.set(l,"hasDataAttrs",!0)}return r}return"object"===i(e)?this.each((function(){Z.set(this,e)})):z(this,(function(t){var n;if(l&&void 0===t)return void 0!==(n=Z.get(l,e))||void 0!==(n=ne(l,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),k.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=X.get(e,t),n&&(!i||Array.isArray(n)?i=X.access(e,t,k.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){var n=k.queue(e,t=t||"fx"),i=n.length,a=n.shift(),r=k._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),i--),a&&("fx"===t&&n.unshift("inprogress"),delete r.stop,a.call(e,(function(){k.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:k.Callbacks("once memory").add((function(){X.remove(e,[t+"queue",n])}))})}}),k.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?k.queue(this[0],e):void 0===t?this:this.each((function(){var n=k.queue(this,e,t);k._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&k.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){k.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,a=k.Deferred(),r=this,l=this.length,s=function(){--i||a.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";l--;)(n=X.get(r[l],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),a.promise(t)}});var ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ae=new RegExp("^(?:([+-])=|)("+ie+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],le=_.documentElement,se=function(e){return k.contains(e.ownerDocument,e)},oe={composed:!0};le.getRootNode&&(se=function(e){return k.contains(e.ownerDocument,e)||e.getRootNode(oe)===e.ownerDocument});var ue=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===k.css(e,"display")};function ce(e,t,n,i){var a,r,l=20,s=i?function(){return i.cur()}:function(){return k.css(e,t,"")},o=s(),u=n&&n[3]||(k.cssNumber[t]?"":"px"),c=e.nodeType&&(k.cssNumber[t]||"px"!==u&&+o)&&ae.exec(k.css(e,t));if(c&&c[3]!==u){for(o/=2,u=u||c[3],c=+o||1;l--;)k.style(e,t,c+u),(1-r)*(1-(r=s()/o||.5))<=0&&(l=0),c/=r;k.style(e,t,(c*=2)+u),n=n||[]}return n&&(c=+c||+o||0,a=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=a)),a}var fe={};function de(e){var t,n=e.ownerDocument,i=e.nodeName,a=fe[i];return a||(t=n.body.appendChild(n.createElement(i)),a=k.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),fe[i]=a,a)}function pe(e,t){for(var n,i,a=[],r=0,l=e.length;r<l;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(a[r]=X.get(i,"display")||null,a[r]||(i.style.display="")),""===i.style.display&&ue(i)&&(a[r]=de(i))):"none"!==n&&(a[r]="none",X.set(i,"display",n)));for(r=0;r<l;r++)null!=a[r]&&(e[r].style.display=a[r]);return e}k.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ue(this)?k(this).show():k(this).hide()}))}});var me,he,ge=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ye=/^$|^module$|\/(?:java|ecma)script/i;me=_.createDocumentFragment().appendChild(_.createElement("div")),(he=_.createElement("input")).setAttribute("type","radio"),he.setAttribute("checked","checked"),he.setAttribute("name","t"),me.appendChild(he),v.checkClone=me.cloneNode(!0).cloneNode(!0).lastChild.checked,me.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue,me.innerHTML="<option></option>",v.option=!!me.lastChild;var be={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function _e(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&O(e,t)?k.merge([e],n):n}function Ce(e,t){for(var n=0,i=e.length;n<i;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,v.option||(be.optgroup=be.option=[1,"<select multiple='multiple'>","</select>"]);var we=/<|&#?\w+;/;function $e(e,t,n,i,a){for(var r,l,s,o,u,c,f=t.createDocumentFragment(),d=[],p=0,m=e.length;p<m;p++)if((r=e[p])||0===r)if("object"===$(r))k.merge(d,r.nodeType?[r]:r);else if(we.test(r)){for(l=l||f.appendChild(t.createElement("div")),s=(ve.exec(r)||["",""])[1].toLowerCase(),o=be[s]||be._default,l.innerHTML=o[1]+k.htmlPrefilter(r)+o[2],c=o[0];c--;)l=l.lastChild;k.merge(d,l.childNodes),(l=f.firstChild).textContent=""}else d.push(t.createTextNode(r));for(f.textContent="",p=0;r=d[p++];)if(i&&k.inArray(r,i)>-1)a&&a.push(r);else if(u=se(r),l=_e(f.appendChild(r),"script"),u&&Ce(l),n)for(c=0;r=l[c++];)ye.test(r.type||"")&&n.push(r);return f}var ke=/^([^.]*)(?:\.(.+)|)/;function Se(){return!0}function Me(){return!1}function Ie(e,t){return e===function(){try{return _.activeElement}catch(e){}}()==("focus"===t)}function Le(e,t,n,a,r,l){var s,o;if("object"===i(t)){for(o in"string"!=typeof n&&(a=a||n,n=void 0),t)Le(e,o,n,a,t[o],l);return e}if(null==a&&null==r?(r=n,a=n=void 0):null==r&&("string"==typeof n?(r=a,a=void 0):(r=a,a=n,n=void 0)),!1===r)r=Me;else if(!r)return e;return 1===l&&(s=r,(r=function(e){return k().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=k.guid++)),e.each((function(){k.event.add(this,t,r,a,n)}))}function Ae(e,t,n){n?(X.set(e,t,!1),k.event.add(e,t,{namespace:!1,handler:function(e){var i,a,r=X.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(k.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=o.call(arguments),X.set(this,t,r),i=n(this,t),this[t](),r!==(a=X.get(this,t))||i?X.set(this,t,!1):a={},r!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}else r.length&&(X.set(this,t,{value:k.event.trigger(k.extend(r[0],k.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===X.get(e,t)&&k.event.add(e,t,Se)}k.event={global:{},add:function(e,t,n,i,a){var r,l,s,o,u,c,f,d,p,m,h,g=X.get(e);if(Q(e))for(n.handler&&(n=(r=n).handler,a=r.selector),a&&k.find.matchesSelector(le,a),n.guid||(n.guid=k.guid++),(o=g.events)||(o=g.events=Object.create(null)),(l=g.handle)||(l=g.handle=function(t){return void 0!==k&&k.event.triggered!==t.type?k.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(R)||[""]).length;u--;)p=h=(s=ke.exec(t[u])||[])[1],m=(s[2]||"").split(".").sort(),p&&(f=k.event.special[p]||{},p=(a?f.delegateType:f.bindType)||p,f=k.event.special[p]||{},c=k.extend({type:p,origType:h,data:i,handler:n,guid:n.guid,selector:a,needsContext:a&&k.expr.match.needsContext.test(a),namespace:m.join(".")},r),(d=o[p])||((d=o[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,i,m,l)||e.addEventListener&&e.addEventListener(p,l)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),a?d.splice(d.delegateCount++,0,c):d.push(c),k.event.global[p]=!0)},remove:function(e,t,n,i,a){var r,l,s,o,u,c,f,d,p,m,h,g=X.hasData(e)&&X.get(e);if(g&&(o=g.events)){for(u=(t=(t||"").match(R)||[""]).length;u--;)if(p=h=(s=ke.exec(t[u])||[])[1],m=(s[2]||"").split(".").sort(),p){for(f=k.event.special[p]||{},d=o[p=(i?f.delegateType:f.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=d.length;r--;)c=d[r],!a&&h!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(d.splice(r,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));l&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,m,g.handle)||k.removeEvent(e,p,g.handle),delete o[p])}else for(p in o)k.event.remove(e,p+t[u],n,i,!0);k.isEmptyObject(o)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,i,a,r,l,s=new Array(arguments.length),o=k.event.fix(e),u=(X.get(this,"events")||Object.create(null))[o.type]||[],c=k.event.special[o.type]||{};for(s[0]=o,t=1;t<arguments.length;t++)s[t]=arguments[t];if(o.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,o)){for(l=k.event.handlers.call(this,o,u),t=0;(a=l[t++])&&!o.isPropagationStopped();)for(o.currentTarget=a.elem,n=0;(r=a.handlers[n++])&&!o.isImmediatePropagationStopped();)o.rnamespace&&!1!==r.namespace&&!o.rnamespace.test(r.namespace)||(o.handleObj=r,o.data=r.data,void 0!==(i=((k.event.special[r.origType]||{}).handle||r.handler).apply(a.elem,s))&&!1===(o.result=i)&&(o.preventDefault(),o.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,o),o.result}},handlers:function(e,t){var n,i,a,r,l,s=[],o=t.delegateCount,u=e.target;if(o&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(r=[],l={},n=0;n<o;n++)void 0===l[a=(i=t[n]).selector+" "]&&(l[a]=i.needsContext?k(a,this).index(u)>-1:k.find(a,this,null,[u]).length),l[a]&&r.push(i);r.length&&s.push({elem:u,handlers:r})}return u=this,o<t.length&&s.push({elem:u,handlers:t.slice(o)}),s},addProp:function(e,t){Object.defineProperty(k.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return ge.test(t.type)&&t.click&&O(t,"input")&&Ae(t,"click",Se),!1},trigger:function(e){var t=this||e;return ge.test(t.type)&&t.click&&O(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return ge.test(t.type)&&t.click&&O(t,"input")&&X.get(t,"click")||O(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},(k.Event=function(e,t){if(!(this instanceof k.Event))return new k.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Se:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[k.expando]=!0}).prototype={constructor:k.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Se,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Se,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Se,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},k.event.addProp),k.each({focus:"focusin",blur:"focusout"},(function(e,t){k.event.special[e]={setup:function(){return Ae(this,e,Ie),!1},trigger:function(){return Ae(this,e),!0},_default:function(){return!0},delegateType:t}})),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){k.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,a=e.relatedTarget,r=e.handleObj;return a&&(a===i||k.contains(i,a))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),k.fn.extend({on:function(e,t,n,i){return Le(this,e,t,n,i)},one:function(e,t,n,i){return Le(this,e,t,n,i,1)},off:function(e,t,n){var a,r;if(e&&e.preventDefault&&e.handleObj)return a=e.handleObj,k(e.delegateTarget).off(a.namespace?a.origType+"."+a.namespace:a.origType,a.selector,a.handler),this;if("object"===i(e)){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){k.event.remove(this,e,n,t)}))}});var Oe=/<script|<style|<link/i,Te=/checked\s*(?:[^=]|=\s*.checked.)/i,xe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return O(e,"table")&&O(11!==t.nodeType?t:t.firstChild,"tr")&&k(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ee(e,t){var n,i,a,r,l,s;if(1===t.nodeType){if(X.hasData(e)&&(s=X.get(e).events))for(a in X.remove(t,"handle events"),s)for(n=0,i=s[a].length;n<i;n++)k.event.add(t,a,s[a][n]);Z.hasData(e)&&(r=Z.access(e),l=k.extend({},r),Z.set(t,l))}}function Ne(e,t){var n=t.nodeName.toLowerCase();"input"===n&&ge.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Re(e,t,n,i){t=u(t);var a,r,l,s,o,c,f=0,d=e.length,p=d-1,m=t[0],h=y(m);if(h||d>1&&"string"==typeof m&&!v.checkClone&&Te.test(m))return e.each((function(a){var r=e.eq(a);h&&(t[0]=m.call(this,a,r.html())),Re(r,t,n,i)}));if(d&&(r=(a=$e(t,e[0].ownerDocument,!1,e,i)).firstChild,1===a.childNodes.length&&(a=r),r||i)){for(s=(l=k.map(_e(a,"script"),Ue)).length;f<d;f++)o=a,f!==p&&(o=k.clone(o,!0,!0),s&&k.merge(l,_e(o,"script"))),n.call(e[f],o,f);if(s)for(c=l[l.length-1].ownerDocument,k.map(l,qe),f=0;f<s;f++)o=l[f],ye.test(o.type||"")&&!X.access(o,"globalEval")&&k.contains(c,o)&&(o.src&&"module"!==(o.type||"").toLowerCase()?k._evalUrl&&!o.noModule&&k._evalUrl(o.src,{nonce:o.nonce||o.getAttribute("nonce")},c):w(o.textContent.replace(xe,""),o,c))}return e}function Pe(e,t,n){for(var i,a=t?k.filter(t,e):e,r=0;null!=(i=a[r]);r++)n||1!==i.nodeType||k.cleanData(_e(i)),i.parentNode&&(n&&se(i)&&Ce(_e(i,"script")),i.parentNode.removeChild(i));return e}k.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,a,r,l,s=e.cloneNode(!0),o=se(e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(l=_e(s),i=0,a=(r=_e(e)).length;i<a;i++)Ne(r[i],l[i]);if(t)if(n)for(r=r||_e(e),l=l||_e(s),i=0,a=r.length;i<a;i++)Ee(r[i],l[i]);else Ee(e,s);return(l=_e(s,"script")).length>0&&Ce(l,!o&&_e(e,"script")),s},cleanData:function(e){for(var t,n,i,a=k.event.special,r=0;void 0!==(n=e[r]);r++)if(Q(n)){if(t=n[X.expando]){if(t.events)for(i in t.events)a[i]?k.event.remove(n,i):k.removeEvent(n,i,t.handle);n[X.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return z(this,(function(e){return void 0===e?k.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Re(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)}))},prepend:function(){return Re(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(_e(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return k.clone(this,e,t)}))},html:function(e){return z(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!be[(ve.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(_e(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,(function(t){var n=this.parentNode;k.inArray(this,e)<0&&(k.cleanData(_e(this)),n&&n.replaceChild(t,this))}),e)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){k.fn[e]=function(e){for(var n,i=[],a=k(e),r=a.length-1,l=0;l<=r;l++)n=l===r?this:this.clone(!0),k(a[l])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Fe=new RegExp("^("+ie+")(?!px)[a-z%]+$","i"),He=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=a),t.getComputedStyle(e)},Ve=function(e,t,n){var i,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in i=n.call(e),t)e.style[a]=r[a];return i},Be=new RegExp(re.join("|"),"i");function je(e,t,n){var i,a,r,l,s=e.style;return(n=n||He(e))&&(""!==(l=n.getPropertyValue(t)||n[t])||se(e)||(l=k.style(e,t)),!v.pixelBoxStyles()&&Fe.test(l)&&Be.test(t)&&(i=s.width,a=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=l,l=n.width,s.width=i,s.minWidth=a,s.maxWidth=r)),void 0!==l?l+"":l}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",le.appendChild(u).appendChild(c);var e=a.getComputedStyle(c);n="1%"!==e.top,o=12===t(e.marginLeft),c.style.right="60%",l=36===t(e.right),i=36===t(e.width),c.style.position="absolute",r=12===t(c.offsetWidth/3),le.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,r,l,s,o,u=_.createElement("div"),c=_.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,k.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),l},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),o},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=_.createElement("table"),t=_.createElement("tr"),n=_.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",le.appendChild(e).appendChild(t).appendChild(n),i=a.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,le.removeChild(e)),s}}))}();var Ye=["Webkit","Moz","ms"],Ge=_.createElement("div").style,We={};function Ke(e){var t=k.cssProps[e]||We[e];return t||(e in Ge?e:We[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ye.length;n--;)if((e=Ye[n]+t)in Ge)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je=/^--/,Xe={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function et(e,t,n){var i=ae.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function tt(e,t,n,i,a,r){var l="width"===t?1:0,s=0,o=0;if(n===(i?"border":"content"))return 0;for(;l<4;l+=2)"margin"===n&&(o+=k.css(e,n+re[l],!0,a)),i?("content"===n&&(o-=k.css(e,"padding"+re[l],!0,a)),"margin"!==n&&(o-=k.css(e,"border"+re[l]+"Width",!0,a))):(o+=k.css(e,"padding"+re[l],!0,a),"padding"!==n?o+=k.css(e,"border"+re[l]+"Width",!0,a):s+=k.css(e,"border"+re[l]+"Width",!0,a));return!i&&r>=0&&(o+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-o-s-.5))||0),o}function nt(e,t,n){var i=He(e),a=(!v.boxSizingReliable()||n)&&"border-box"===k.css(e,"boxSizing",!1,i),r=a,l=je(e,t,i),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(l)){if(!n)return l;l="auto"}return(!v.boxSizingReliable()&&a||!v.reliableTrDimensions()&&O(e,"tr")||"auto"===l||!parseFloat(l)&&"inline"===k.css(e,"display",!1,i))&&e.getClientRects().length&&(a="border-box"===k.css(e,"boxSizing",!1,i),(r=s in e)&&(l=e[s])),(l=parseFloat(l)||0)+tt(e,t,n||(a?"border":"content"),r,i,l)+"px"}function it(e,t,n,i,a){return new it.prototype.init(e,t,n,i,a)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,a){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,l,s,o=K(t),u=Je.test(t),c=e.style;if(u||(t=Ke(o)),s=k.cssHooks[t]||k.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,a))?r:c[t];"string"===(l=i(n))&&(r=ae.exec(n))&&r[1]&&(n=ce(e,t,r),l="number"),null!=n&&n==n&&("number"!==l||u||(n+=r&&r[3]||(k.cssNumber[o]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,a))||(u?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var a,r,l,s=K(t);return Je.test(t)||(t=Ke(s)),(l=k.cssHooks[t]||k.cssHooks[s])&&"get"in l&&(a=l.get(e,!0,n)),void 0===a&&(a=je(e,t,i)),"normal"===a&&t in Ze&&(a=Ze[t]),""===n||n?(r=parseFloat(a),!0===n||isFinite(r)?r||0:a):a}}),k.each(["height","width"],(function(e,t){k.cssHooks[t]={get:function(e,n,i){if(n)return!Qe.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?nt(e,t,i):Ve(e,Xe,(function(){return nt(e,t,i)}))},set:function(e,n,i){var a,r=He(e),l=!v.scrollboxSize()&&"absolute"===r.position,s=(l||i)&&"border-box"===k.css(e,"boxSizing",!1,r),o=i?tt(e,t,i,s,r):0;return s&&l&&(o-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-tt(e,t,"border",!1,r)-.5)),o&&(a=ae.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=k.css(e,t)),et(0,n,o)}}})),k.cssHooks.marginLeft=ze(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(je(e,"marginLeft"))||e.getBoundingClientRect().left-Ve(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),k.each({margin:"",padding:"",border:"Width"},(function(e,t){k.cssHooks[e+t]={expand:function(n){for(var i=0,a={},r="string"==typeof n?n.split(" "):[n];i<4;i++)a[e+re[i]+t]=r[i]||r[i-2]||r[0];return a}},"margin"!==e&&(k.cssHooks[e+t].set=et)})),k.fn.extend({css:function(e,t){return z(this,(function(e,t,n){var i,a,r={},l=0;if(Array.isArray(t)){for(i=He(e),a=t.length;l<a;l++)r[t[l]]=k.css(e,t[l],!1,i);return r}return void 0!==n?k.style(e,t,n):k.css(e,t)}),e,t,arguments.length>1)}}),k.Tween=it,it.prototype={constructor:it,init:function(e,t,n,i,a,r){this.elem=e,this.prop=n,this.easing=a||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(k.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||!k.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},(k.fx=it.prototype.init).step={};var at,rt,lt=/^(?:toggle|show|hide)$/,st=/queueHooks$/;function ot(){rt&&(!1===_.hidden&&a.requestAnimationFrame?a.requestAnimationFrame(ot):a.setTimeout(ot,k.fx.interval),k.fx.tick())}function ut(){return a.setTimeout((function(){at=void 0})),at=Date.now()}function ct(e,t){var n,i=0,a={height:e};for(t=t?1:0;i<4;i+=2-t)a["margin"+(n=re[i])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function ft(e,t,n){for(var i,a=(dt.tweeners[t]||[]).concat(dt.tweeners["*"]),r=0,l=a.length;r<l;r++)if(i=a[r].call(n,t,e))return i}function dt(e,t,n){var i,a,r=0,l=dt.prefilters.length,s=k.Deferred().always((function(){delete o.elem})),o=function(){if(a)return!1;for(var t=at||ut(),n=Math.max(0,u.startTime+u.duration-t),i=1-(n/u.duration||0),r=0,l=u.tweens.length;r<l;r++)u.tweens[r].run(i);return s.notifyWith(e,[u,i,n]),i<1&&l?n:(l||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:k.extend({},t),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var i=k.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(i),i},stop:function(t){var n=0,i=t?u.tweens.length:0;if(a)return this;for(a=!0;n<i;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,i,a,r,l;for(n in e)if(a=t[i=K(n)],r=e[n],Array.isArray(r)&&(a=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(l=k.cssHooks[i])&&"expand"in l)for(n in r=l.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=a);else t[i]=a}(c,u.opts.specialEasing);r<l;r++)if(i=dt.prefilters[r].call(u,e,c,u.opts))return y(i.stop)&&(k._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return k.map(c,ft,u),y(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),k.fx.timer(k.extend(o,{elem:e,anim:u,queue:u.opts.queue})),u}k.Animation=k.extend(dt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,ae.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(R);for(var n,i=0,a=e.length;i<a;i++)n=e[i],dt.tweeners[n]=dt.tweeners[n]||[],dt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,a,r,l,s,o,u,c,f="width"in t||"height"in t,d=this,p={},m=e.style,h=e.nodeType&&ue(e),g=X.get(e,"fxshow");for(i in n.queue||(null==(l=k._queueHooks(e,"fx")).unqueued&&(l.unqueued=0,s=l.empty.fire,l.empty.fire=function(){l.unqueued||s()}),l.unqueued++,d.always((function(){d.always((function(){l.unqueued--,k.queue(e,"fx").length||l.empty.fire()}))}))),t)if(a=t[i],lt.test(a)){if(delete t[i],r=r||"toggle"===a,a===(h?"hide":"show")){if("show"!==a||!g||void 0===g[i])continue;h=!0}p[i]=g&&g[i]||k.style(e,i)}if((o=!k.isEmptyObject(t))||!k.isEmptyObject(p))for(i in f&&1===e.nodeType&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],null==(u=g&&g.display)&&(u=X.get(e,"display")),"none"===(c=k.css(e,"display"))&&(u?c=u:(pe([e],!0),u=e.style.display||u,c=k.css(e,"display"),pe([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===k.css(e,"float")&&(o||(d.done((function(){m.display=u})),null==u&&(c=m.display,u="none"===c?"":c)),m.display="inline-block")),n.overflow&&(m.overflow="hidden",d.always((function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]}))),o=!1,p)o||(g?"hidden"in g&&(h=g.hidden):g=X.access(e,"fxshow",{display:u}),r&&(g.hidden=!h),h&&pe([e],!0),d.done((function(){for(i in h||pe([e]),X.remove(e,"fxshow"),p)k.style(e,i,p[i])}))),o=ft(h?g[i]:0,i,d),i in g||(g[i]=o.start,h&&(o.end=o.start,o.start=0))}],prefilter:function(e,t){t?dt.prefilters.unshift(e):dt.prefilters.push(e)}}),k.speed=function(e,t,n){var a=e&&"object"===i(e)?k.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return k.fx.off?a.duration=0:"number"!=typeof a.duration&&(a.duration in k.fx.speeds?a.duration=k.fx.speeds[a.duration]:a.duration=k.fx.speeds._default),null!=a.queue&&!0!==a.queue||(a.queue="fx"),a.old=a.complete,a.complete=function(){y(a.old)&&a.old.call(this),a.queue&&k.dequeue(this,a.queue)},a},k.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ue).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var a=k.isEmptyObject(e),r=k.speed(t,n,i),l=function(){var t=dt(this,k.extend({},e),r);(a||X.get(this,"finish"))&&t.stop(!0)};return l.finish=l,a||!1===r.queue?this.each(l):this.queue(r.queue,l)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,a=null!=e&&e+"queueHooks",r=k.timers,l=X.get(this);if(a)l[a]&&l[a].stop&&i(l[a]);else for(a in l)l[a]&&l[a].stop&&st.test(a)&&i(l[a]);for(a=r.length;a--;)r[a].elem!==this||null!=e&&r[a].queue!==e||(r[a].anim.stop(n),t=!1,r.splice(a,1));!t&&n||k.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=X.get(this),i=n[e+"queue"],a=n[e+"queueHooks"],r=k.timers,l=i?i.length:0;for(n.finish=!0,k.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<l;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),k.each(["toggle","show","hide"],(function(e,t){var n=k.fn[t];k.fn[t]=function(e,i,a){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ct(t,!0),e,i,a)}})),k.each({slideDown:ct("show"),slideUp:ct("hide"),slideToggle:ct("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){k.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),at=void 0},k.fx.timer=function(e){k.timers.push(e),k.fx.start()},k.fx.interval=13,k.fx.start=function(){rt||(rt=!0,ot())},k.fx.stop=function(){rt=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(e,t){return e=k.fx&&k.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=a.setTimeout(t,e);n.stop=function(){a.clearTimeout(i)}}))},function(){var e=_.createElement("input"),t=_.createElement("select").appendChild(_.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=_.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var pt,mt=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return z(this,k.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){k.removeAttr(this,e)}))}}),k.extend({attr:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?k.prop(e,t,n):(1===r&&k.isXMLDoc(e)||(a=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(i=a.get(e,t))?i:null==(i=k.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&O(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,a=t&&t.match(R);if(a&&1===e.nodeType)for(;n=a[i++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||k.find.attr;mt[t]=function(e,t,i){var a,r,l=t.toLowerCase();return i||(r=mt[l],mt[l]=a,a=null!=n(e,t,i)?l:null,mt[l]=r),a}}));var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(R)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function bt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}k.fn.extend({prop:function(e,t){return z(this,k.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[k.propFix[e]||e]}))}}),k.extend({prop:function(e,t,n){var i,a,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&k.isXMLDoc(e)||(t=k.propFix[t]||t,a=k.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(i=a.set(e,n,t))?i:e[t]=n:a&&"get"in a&&null!==(i=a.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){k.propFix[this.toLowerCase()]=this})),k.fn.extend({addClass:function(e){var t,n,i,a,r,l,s,o=0;if(y(e))return this.each((function(t){k(this).addClass(e.call(this,t,yt(this)))}));if((t=bt(e)).length)for(;n=this[o++];)if(a=yt(n),i=1===n.nodeType&&" "+vt(a)+" "){for(l=0;r=t[l++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a!==(s=vt(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,a,r,l,s,o=0;if(y(e))return this.each((function(t){k(this).removeClass(e.call(this,t,yt(this)))}));if(!arguments.length)return this.attr("class","");if((t=bt(e)).length)for(;n=this[o++];)if(a=yt(n),i=1===n.nodeType&&" "+vt(a)+" "){for(l=0;r=t[l++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");a!==(s=vt(i))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=i(e),a="string"===n||Array.isArray(e);return"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):y(e)?this.each((function(n){k(this).toggleClass(e.call(this,n,yt(this),t),t)})):this.each((function(){var t,i,r,l;if(a)for(i=0,r=k(this),l=bt(e);t=l[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=yt(this))&&X.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":X.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+vt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var _t=/\r/g;k.fn.extend({val:function(e){var t,n,i,a=this[0];return arguments.length?(i=y(e),this.each((function(n){var a;1===this.nodeType&&(null==(a=i?e.call(this,n,k(this).val()):e)?a="":"number"==typeof a?a+="":Array.isArray(a)&&(a=k.map(a,(function(e){return null==e?"":e+""}))),(t=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))}))):a?(t=k.valHooks[a.type]||k.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"==typeof(n=a.value)?n.replace(_t,""):null==n?"":n:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:vt(k.text(e))}},select:{get:function(e){var t,n,i,a=e.options,r=e.selectedIndex,l="select-one"===e.type,s=l?null:[],o=l?r+1:a.length;for(i=r<0?o:l?r:0;i<o;i++)if(((n=a[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!O(n.parentNode,"optgroup"))){if(t=k(n).val(),l)return t;s.push(t)}return s},set:function(e,t){for(var n,i,a=e.options,r=k.makeArray(t),l=a.length;l--;)((i=a[l]).selected=k.inArray(k.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),k.each(["radio","checkbox"],(function(){k.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=k.inArray(k(e).val(),t)>-1}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.focusin="onfocusin"in a;var Ct=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};k.extend(k.event,{trigger:function(e,t,n,r){var l,s,o,u,c,f,d,p,h=[n||_],g=m.call(e,"type")?e.type:e,v=m.call(e,"namespace")?e.namespace.split("."):[];if(s=p=o=n=n||_,3!==n.nodeType&&8!==n.nodeType&&!Ct.test(g+k.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[k.expando]?e:new k.Event(g,"object"===i(e)&&e)).isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),d=k.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!b(n)){for(u=d.delegateType||g,Ct.test(u+g)||(s=s.parentNode);s;s=s.parentNode)h.push(s),o=s;o===(n.ownerDocument||_)&&h.push(o.defaultView||o.parentWindow||a)}for(l=0;(s=h[l++])&&!e.isPropagationStopped();)p=s,e.type=l>1?u:d.bindType||g,(f=(X.get(s,"events")||Object.create(null))[e.type]&&X.get(s,"handle"))&&f.apply(s,t),(f=c&&s[c])&&f.apply&&Q(s)&&(e.result=f.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!Q(n)||c&&y(n[g])&&!b(n)&&((o=n[c])&&(n[c]=null),k.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,wt),n[g](),e.isPropagationStopped()&&p.removeEventListener(g,wt),k.event.triggered=void 0,o&&(n[c]=o)),e.result}},simulate:function(e,t,n){var i=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(i,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each((function(){k.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),v.focusin||k.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){k.event.simulate(t,e.target,k.event.fix(e))};k.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,a=X.access(i,t);a||i.addEventListener(e,n,!0),X.access(i,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,a=X.access(i,t)-1;a?X.access(i,t,a):(i.removeEventListener(e,n,!0),X.remove(i,t))}}}));var $t=a.location,kt={guid:Date.now()},St=/\?/;k.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new a.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||k.error("Invalid XML: "+(n?k.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Mt=/\[\]$/,It=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function Ot(e,t,n,a){var r;if(Array.isArray(t))k.each(t,(function(t,r){n||Mt.test(e)?a(e,r):Ot(e+"["+("object"===i(r)&&null!=r?t:"")+"]",r,n,a)}));else if(n||"object"!==$(t))a(e,t);else for(r in t)Ot(e+"["+r+"]",t[r],n,a)}k.param=function(e,t){var n,i=[],a=function(e,t){var n=y(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,(function(){a(this.name,this.value)}));else for(n in e)Ot(n,e[n],t,a);return i.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&At.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!ge.test(e))})).map((function(e,t){var n=k(this).val();return null==n?null:Array.isArray(n)?k.map(n,(function(e){return{name:t.name,value:e.replace(It,"\r\n")}})):{name:t.name,value:n.replace(It,"\r\n")}})).get()}});var Tt=/%20/g,xt=/#.*$/,Dt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)$/gm,qt=/^(?:GET|HEAD)$/,Et=/^\/\//,Nt={},Rt={},Pt="*/".concat("*"),Ft=_.createElement("a");function Ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,a=0,r=t.toLowerCase().match(R)||[];if(y(n))for(;i=r[a++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Vt(e,t,n,i){var a={},r=e===Rt;function l(s){var o;return a[s]=!0,k.each(e[s]||[],(function(e,s){var u=s(t,n,i);return"string"!=typeof u||r||a[u]?r?!(o=u):void 0:(t.dataTypes.unshift(u),l(u),!1)})),o}return l(t.dataTypes[0])||!a["*"]&&l("*")}function Bt(e,t){var n,i,a=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:i||(i={}))[n]=t[n]);return i&&k.extend(!0,e,i),e}Ft.href=$t.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test($t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,k.ajaxSettings),t):Bt(k.ajaxSettings,e)},ajaxPrefilter:Ht(Nt),ajaxTransport:Ht(Rt),ajax:function(e,t){"object"===i(e)&&(t=e,e=void 0);var n,r,l,s,o,u,c,f,d,p,m=k.ajaxSetup({},t=t||{}),h=m.context||m,g=m.context&&(h.nodeType||h.jquery)?k(h):k.event,v=k.Deferred(),y=k.Callbacks("once memory"),b=m.statusCode||{},C={},w={},$="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ut.exec(l);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?l:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,C[e]=t),this},overrideMimeType:function(e){return null==c&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||$;return n&&n.abort(t),M(0,t),this}};if(v.promise(S),m.url=((e||m.url||$t.href)+"").replace(Et,$t.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(R)||[""],null==m.crossDomain){u=_.createElement("a");try{u.href=m.url,u.href=u.href,m.crossDomain=Ft.protocol+"//"+Ft.host!=u.protocol+"//"+u.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=k.param(m.data,m.traditional)),Vt(Nt,m,t,S),c)return S;for(d in(f=k.event&&m.global)&&0==k.active++&&k.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qt.test(m.type),r=m.url.replace(xt,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(Tt,"+")):(p=m.url.slice(r.length),m.data&&(m.processData||"string"==typeof m.data)&&(r+=(St.test(r)?"&":"?")+m.data,delete m.data),!1===m.cache&&(r=r.replace(Dt,"$1"),p=(St.test(r)?"&":"?")+"_="+kt.guid+++p),m.url=r+p),m.ifModified&&(k.lastModified[r]&&S.setRequestHeader("If-Modified-Since",k.lastModified[r]),k.etag[r]&&S.setRequestHeader("If-None-Match",k.etag[r])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&S.setRequestHeader("Content-Type",m.contentType),S.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Pt+"; q=0.01":""):m.accepts["*"]),m.headers)S.setRequestHeader(d,m.headers[d]);if(m.beforeSend&&(!1===m.beforeSend.call(h,S,m)||c))return S.abort();if($="abort",y.add(m.complete),S.done(m.success),S.fail(m.error),n=Vt(Rt,m,t,S)){if(S.readyState=1,f&&g.trigger("ajaxSend",[S,m]),c)return S;m.async&&m.timeout>0&&(o=a.setTimeout((function(){S.abort("timeout")}),m.timeout));try{c=!1,n.send(C,M)}catch(e){if(c)throw e;M(-1,e)}}else M(-1,"No Transport");function M(e,t,i,s){var u,d,p,_,C,w=t;c||(c=!0,o&&a.clearTimeout(o),n=void 0,l=s||"",S.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(_=function(e,t,n){for(var i,a,r,l,s=e.contents,o=e.dataTypes;"*"===o[0];)o.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){o.unshift(a);break}if(o[0]in n)r=o[0];else{for(a in n){if(!o[0]||e.converters[a+" "+o[0]]){r=a;break}l||(l=a)}r=r||l}if(r)return r!==o[0]&&o.unshift(r),n[r]}(m,S,i)),!u&&k.inArray("script",m.dataTypes)>-1&&k.inArray("json",m.dataTypes)<0&&(m.converters["text script"]=function(){}),_=function(e,t,n,i){var a,r,l,s,o,u={},c=e.dataTypes.slice();if(c[1])for(l in e.converters)u[l.toLowerCase()]=e.converters[l];for(r=c.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!o&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),o=r,r=c.shift())if("*"===r)r=o;else if("*"!==o&&o!==r){if(!(l=u[o+" "+r]||u["* "+r]))for(a in u)if((s=a.split(" "))[1]===r&&(l=u[o+" "+s[0]]||u["* "+s[0]])){!0===l?l=u[a]:!0!==u[a]&&(r=s[0],c.unshift(s[1]));break}if(!0!==l)if(l&&e.throws)t=l(t);else try{t=l(t)}catch(e){return{state:"parsererror",error:l?e:"No conversion from "+o+" to "+r}}}return{state:"success",data:t}}(m,_,S,u),u?(m.ifModified&&((C=S.getResponseHeader("Last-Modified"))&&(k.lastModified[r]=C),(C=S.getResponseHeader("etag"))&&(k.etag[r]=C)),204===e||"HEAD"===m.type?w="nocontent":304===e?w="notmodified":(w=_.state,d=_.data,u=!(p=_.error))):(p=w,!e&&w||(w="error",e<0&&(e=0))),S.status=e,S.statusText=(t||w)+"",u?v.resolveWith(h,[d,w,S]):v.rejectWith(h,[S,w,p]),S.statusCode(b),b=void 0,f&&g.trigger(u?"ajaxSuccess":"ajaxError",[S,m,u?d:p]),y.fireWith(h,[S,w]),f&&(g.trigger("ajaxComplete",[S,m]),--k.active||k.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],(function(e,t){k[t]=function(e,n,i,a){return y(n)&&(a=a||i,i=n,n=void 0),k.ajax(k.extend({url:e,type:t,dataType:a,data:n,success:i},k.isPlainObject(e)&&e))}})),k.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),k._evalUrl=function(e,t,n){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){k.globalEval(e,t,n)}})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){k(this).wrapInner(e.call(this,t))})):this.each((function(){var t=k(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){k(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){k(this).replaceWith(this.childNodes)})),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(e){}};var jt={0:200,1223:204},zt=k.ajaxSettings.xhr();v.cors=!!zt&&"withCredentials"in zt,v.ajax=zt=!!zt,k.ajaxTransport((function(e){var t,n;if(v.cors||zt&&!e.crossDomain)return{send:function(i,r){var l,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(l in e.xhrFields)s[l]=e.xhrFields[l];for(l in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(l,i[l]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?r(0,"error"):r(s.status,s.statusText):r(jt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&a.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),k.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),k.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,a){t=k("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),_.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Yt,Gt=[],Wt=/(=)\?(?=&|$)|\?\?/;k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||k.expando+"_"+kt.guid++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",(function(e,t,n){var i,r,l,s=!1!==e.jsonp&&(Wt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Wt,"$1"+i):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return l||k.error(i+" was not called"),l[0]},e.dataTypes[0]="json",r=a[i],a[i]=function(){l=arguments},n.always((function(){void 0===r?k(a).removeProp(i):a[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(i)),l&&y(r)&&r(l[0]),l=r=void 0})),"script"})),v.createHTMLDocument=((Yt=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Yt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((i=(t=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,t.head.appendChild(i)):t=_),r=!n&&[],(a=T.exec(e))?[t.createElement(a[1])]:(a=$e([e],t,r),r&&r.length&&k(r).remove(),k.merge([],a.childNodes)));var i,a,r},k.fn.load=function(e,t,n){var a,r,l,s=this,o=e.indexOf(" ");return o>-1&&(a=vt(e.slice(o)),e=e.slice(0,o)),y(t)?(n=t,t=void 0):t&&"object"===i(t)&&(r="POST"),s.length>0&&k.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){l=arguments,s.html(a?k("<div>").append(k.parseHTML(e)).find(a):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,l||[e.responseText,t,e])}))}),this},k.expr.pseudos.animated=function(e){return k.grep(k.timers,(function(t){return e===t.elem})).length},k.offset={setOffset:function(e,t,n){var i,a,r,l,s,o,u=k.css(e,"position"),c=k(e),f={};"static"===u&&(e.style.position="relative"),s=c.offset(),r=k.css(e,"top"),o=k.css(e,"left"),("absolute"===u||"fixed"===u)&&(r+o).indexOf("auto")>-1?(l=(i=c.position()).top,a=i.left):(l=parseFloat(r)||0,a=parseFloat(o)||0),y(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+l),null!=t.left&&(f.left=t.left-s.left+a),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){k.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],a={top:0,left:0};if("fixed"===k.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===k.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((a=k(e).offset()).top+=k.css(e,"borderTopWidth",!0),a.left+=k.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-k.css(i,"marginTop",!0),left:t.left-a.left-k.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||le}))}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;k.fn[e]=function(i){return z(this,(function(e,i,a){var r;if(b(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===a)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:a,n?a:r.pageYOffset):e[i]=a}),e,i,arguments.length)}})),k.each(["top","left"],(function(e,t){k.cssHooks[t]=ze(v.pixelPosition,(function(e,n){if(n)return n=je(e,t),Fe.test(n)?k(e).position()[t]+"px":n}))})),k.each({Height:"height",Width:"width"},(function(e,t){k.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){k.fn[i]=function(a,r){var l=arguments.length&&(n||"boolean"!=typeof a),s=n||(!0===a||!0===r?"margin":"border");return z(this,(function(t,n,a){var r;return b(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===a?k.css(t,n,s):k.style(t,n,a,s)}),t,l?a:void 0,l)}}))})),k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){k.fn[t]=function(e){return this.on(t,e)}})),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){k.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;k.proxy=function(e,t){var n,i,a;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return i=o.call(arguments,2),(a=function(){return e.apply(t||this,i.concat(o.call(arguments)))}).guid=e.guid=e.guid||k.guid++,a},k.holdReady=function(e){e?k.readyWait++:k.ready(!0)},k.isArray=Array.isArray,k.parseJSON=JSON.parse,k.nodeName=O,k.isFunction=y,k.isWindow=b,k.camelCase=K,k.type=$,k.now=Date.now,k.isNumeric=function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},k.trim=function(e){return null==e?"":(e+"").replace(Kt,"")},void 0===(n=function(){return k}.apply(t,[]))||(e.exports=n);var Qt=a.jQuery,Jt=a.$;return k.noConflict=function(e){return a.$===k&&(a.$=Jt),e&&a.jQuery===k&&(a.jQuery=Qt),k},void 0===r&&(a.jQuery=a.$=k),k}))}).call(this,n(7)(e))},function(e,t,n){"use strict";t.a=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))}},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.a=function(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(i(e)+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var r=a.length;function l(e,n){if(n&&("object"===i(n)||"function"==typeof n)){var s=n.then;if("function"==typeof s)return void s.call(n,(function(t){l(e,t)}),(function(n){a[e]={status:"rejected",reason:n},0==--r&&t(a)}))}a[e]={status:"fulfilled",value:n},0==--r&&t(a)}for(var s=0;s<a.length;s++)l(s,a[s])}))}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var i={};i.PrototypeAPI=n(37),n(38),n(39)(i),n(40)(i.PrototypeAPI.$,jQuery,i),n(41)(i.PrototypeAPI,i.Effect),n(42)(i.PrototypeAPI.$,i),n(43)(i),n(44)(i),n(45)(i.PrototypeAPI.$,jQuery,i),n(46)(i.PrototypeAPI.$,jQuery,i),n(47)(i),n(48)(i.PrototypeAPI.$,jQuery,i),n(49)(i.PrototypeAPI.$,jQuery,i),n(50)(i.PrototypeAPI.$,jQuery,i),n(51)(i.PrototypeAPI.$,jQuery,i),n(52)(i),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumericString=function(e){var t=""+e;return!isNaN(t)&&!isNaN(parseFloat(t))},t.isIntegerUnit=function(e){return/^\d+$/.test(e)},t.getSynonyms=function(e){var t,n={},a=i.getInstance();if((t=a.getUnitBySynonym(e)).units){n.status="succeeded";var r=t.units.length;n.units=[];for(var l=0;l<r;l++){var s=t.units[l];n.units[l]={code:s.csCode_,name:s.name_,guidance:s.guidance_}}}else n.status=t.status,n.msg=t.msg;return n};var i=n(2).UnitTables},function(e,t,n){var i,a,r;a=[n(3)],void 0===(r="function"==typeof(i=function(e){return e.ui=e.ui||{},e.ui.version="1.12.1"})?i.apply(t,a):i)||(e.exports=r)},function(e,t,n){},function(e,t,n){n(54),n(56),n(58),n(59),n(60),n(61);angular.module("ui.bootstrap.module.tooltip",["ui.bootstrap.tooltip","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-template-popup.html"]),e.exports="ui.bootstrap.module.tooltip"},function(e,t,n){"use strict";(e.exports={}).forEach=function(e,t){for(var n=0;n<e.length;n++){var i=t(e[n]);if(i)return i}}},function(e,t,n){"use strict";var i=e.exports={};i.isIE=function(e){return(-1!==(t=navigator.userAgent.toLowerCase()).indexOf("msie")||-1!==t.indexOf("trident")||-1!==t.indexOf(" edge/"))&&(!e||e===function(){var e=3,t=document.createElement("div"),n=t.getElementsByTagName("i");do{t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e"}while(n[0]);return e>4?e:void 0}());var t},i.isLegacyOpera=function(){return!!window.opera}},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.PrefixTables=t.PrefixTablesFactory=void 0;var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.byCode_={},this.byValue_={}}var t,n,a;return t=e,(n=[{key:"prefixCount",value:function(){return Object.keys(this.byCode_).length}},{key:"allPrefixesByValue",value:function(){for(var e="",t=Object.keys(this.byValue_),n=t.length,i=0;i<n;i++){var a=this.getPrefixByValue(t[i]);e+=a.code_+","+a.name_+",,"+a.value_+"\r\n"}return e}},{key:"allPrefixesByCode",value:function(){var e=[],t=Object.keys(this.byCode_);t.sort();for(var n=t.length,i=0;i<n;i++)e.push(this.getPrefixByCode(t[i]));return e}},{key:"add",value:function(e){this.byCode_[e.getCode()]=e,this.byValue_[e.getValue()]=e}},{key:"isDefined",value:function(e){return null!==this.byCode_[e]&&void 0!==this.byCode_[e]}},{key:"getPrefixByCode",value:function(e){return this.byCode_[e]}},{key:"getPrefixByValue",value:function(e){return this.byValue_[e]}}])&&i(t.prototype,n),a&&i(t,a),e}();t.PrefixTablesFactory=a;var r=new a,l={getInstance:function(){return r}};t.PrefixTables=l},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.Unit=void 0;var l,s=(l=n(105))&&l.__esModule?l:{default:l},o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(9));function u(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}var c,f=n(1).Ucum,d=n(106).Dimension,p=n(17),m=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};i(this,e),this.isBase_=t.isBase_||!1,this.name_=t.name_||"",this.csCode_=t.csCode_||"",this.ciCode_=t.ciCode_||"",this.property_=t.property_||"",this.magnitude_=t.magnitude_||1,void 0===t.dim_||null===t.dim_?this.dim_=new d:void 0!==t.dim_.dimVec_?this.dim_=new d(t.dim_.dimVec_):t.dim_ instanceof d?this.dim_=t.dim_:t.dim_ instanceof Array||p(t.dim_)?this.dim_=new d(t.dim_):this.dim_=new d,this.printSymbol_=t.printSymbol_||null,this.class_=t.class_||null,this.isMetric_=t.isMetric_||!1,this.variable_=t.variable_||null,this.cnv_=t.cnv_||null,this.cnvPfx_=t.cnvPfx_||1,this.isSpecial_=t.isSpecial_||!1,this.isArbitrary_=t.isArbitrary_||!1,this.moleExp_=t.moleExp_||0,this.synonyms_=t.synonyms_||null,this.source_=t.source_||null,this.loincProperty_=t.loincProperty_||null,this.category_=t.category_||null,this.guidance_=t.guidance_||null,this.csUnitString_=t.csUnitString_||null,this.ciUnitString_=t.ciUnitString_||null,this.baseFactorStr_=t.baseFactorStr_||null,this.baseFactor_=t.baseFactor_||null,this.defError_=t.defError_||!1}var t,r,l;return t=e,(r=[{key:"assignUnity",value:function(){return this.name_="",this.magnitude_=1,this.dim_||(this.dim_=new d),this.dim_.assignZero(),this.cnv_=null,this.cnvPfx_=1,this}},{key:"assignVals",value:function(e){for(var t in e){var n="_"===!t.charAt(t.length-1)?t+"_":t;if(!this.hasOwnProperty(n))throw new Error("Parameter error; ".concat(t," is not a property of a Unit"));this[n]=e[t]}}},{key:"clone",value:function(){var t=this,n=new e;return Object.getOwnPropertyNames(this).forEach((function(e){"dim_"===e?t.dim_?n.dim_=t.dim_.clone():n.dim_=null:n[e]=t[e]})),n}},{key:"assign",value:function(e){var t=this;Object.getOwnPropertyNames(e).forEach((function(n){"dim_"===n?e.dim_?t.dim_=e.dim_.clone():t.dim_=null:t[n]=e[n]}))}},{key:"equals",value:function(e){return this.magnitude_===e.magnitude_&&this.cnv_===e.cnv_&&this.cnvPfx_===e.cnvPfx_&&(null===this.dim_&&null===e.dim_||this.dim_.equals(e.dim_))}},{key:"fullEquals",value:function(e){for(var t=Object.keys(this).sort(),n=Object.keys(e).sort(),i=t.length,a=i===n.length,r=0;r<i&&a;r++)a=t[r]===n[r]&&("dim_"===t[r]?this.dim_.equals(e.dim_):this[t[r]]===e[t[r]]);return a}},{key:"getProperty",value:function(e){return this["_"===e.charAt(e.length-1)?e:e+"_"]}},{key:"convertFrom",value:function(e,t){var n=0;if(this.isArbitrary_)throw new Error("Attempt to convert arbitrary unit ".concat(this.name_));if(t.isArbitrary_)throw new Error("Attempt to convert to arbitrary unit ".concat(t.name_));if(t.dim_&&this.dim_&&!t.dim_.equals(this.dim_))throw this.isMoleMassCommensurable(t)?new Error(f.needMoleWeightMsg_):new Error("Sorry. ".concat(t.csCode_," cannot be converted ")+"to ".concat(this.csCode_,"."));if(t.dim_&&(!this.dim_||this.dim_.isNull()))throw new Error("Sorry. ".concat(t.csCode_," cannot be converted ")+"to ".concat(this.csCode_,"."));if(this.dim_&&(!t.dim_||t.dim_.isNull()))throw new Error("Sorry. ".concat(t.csCode_," cannot be converted ")+"to ".concat(this.csCode_,"."));var i=t.cnv_,a=t.magnitude_;if(i===this.cnv_)n=e*a/this.magnitude_;else{var r=0;r=null!=i?s.default.forName(i).cnvFrom(e*t.cnvPfx_)*a:e*a,n=null!=this.cnv_?s.default.forName(this.cnv_).cnvTo(r/this.magnitude_)/this.cnvPfx_:r/this.magnitude_}return n}},{key:"convertTo",value:function(e,t){return t.convertFrom(e,this)}},{key:"convertCoherent",value:function(e){return null!==this.cnv_&&(e=this.cnv_.f_from(e/this.cnvPfx_)*this.magnitude_),e}},{key:"mutateCoherent",value:function(e){e=this.convertCoherent(e),this.magnitude_=1,this.cnv_=null,this.cnvPfx_=1,this.name_="";for(var t=0,n=d.getMax();t<n;t++){var i=this.dim_.getElementAt(t),a=this._getUnitTables().getUnitsByDimension(new d(t));if(null==a)throw new Error("Can't find base unit for dimension ".concat(t));this.name_=a.name+i}return e}},{key:"convertMassToMol",value:function(e,t,n){var i=this.magnitude_*e/n,a=this._getUnitTables().getUnitByCode("mol").magnitude_;return i/(t.magnitude_/a)}},{key:"convertMolToMass",value:function(e,t,n){var i=this._getUnitTables().getUnitByCode("mol").magnitude_;return this.magnitude_/i*e*n/t.magnitude_}},{key:"mutateRatio",value:function(e){return null==this.cnv_?this.mutateCoherent(e):e}},{key:"multiplyThis",value:function(e){var t=this.clone();null!=t.cnv_?t.cnvPfx_*=e:t.magnitude_*=e;var n=e.toString();return t.name_=this._concatStrs(n,"*",this.name_,"[","]"),t.csCode_=this._concatStrs(n,".",this.csCode_,"(",")"),t.ciCode_=this._concatStrs(n,".",this.ciCode_,"(",")"),t.printSymbol_=this._concatStrs(n,".",this.printSymbol_,"(",")"),t}},{key:"multiplyThese",value:function(e){var t=this.clone();if(null!=t.cnv_){if(null!=e.cnv_||e.dim_&&!e.dim_.isZero())throw new Error("Attempt to multiply non-ratio unit ".concat(t.name_," ")+"failed.");t.cnvPfx_*=e.magnitude_}else if(null!=e.cnv_){if(t.dim_&&!t.dim_.isZero())throw new Error("Attempt to multiply non-ratio unit ".concat(e.name_));t.cnvPfx_=e.cnvPfx_*t.magnitude_,t.cnv_=e.cnv_}else t.magnitude_*=e.magnitude_;return!t.dim_||t.dim_&&!t.dim_.dimVec_?e.dim_?t.dim_=e.dim_.clone():t.dim_=e.dim_:e.dim_&&e.dim_ instanceof d&&t.dim_.add(e.dim_),t.name_=this._concatStrs(t.name_,"*",e.name_,"[","]"),t.csCode_=this._concatStrs(t.csCode_,".",e.csCode_,"(",")"),t.ciCode_&&e.ciCode_?t.ciCode_=this._concatStrs(t.ciCode_,".",e.ciCode_,"(",")"):e.ciCode_&&(t.ciCode_=e.ciCode_),t.guidance_="",t.printSymbol_&&e.printSymbol_?t.printSymbol_=this._concatStrs(t.printSymbol_,".",e.printSymbol_,"(",")"):e.printSymbol_&&(t.printSymbol_=e.printSymbol_),t.moleExp_=t.moleExp_+e.moleExp_,t.isArbitrary_||(t.isArbitrary_=e.isArbitrary_),t}},{key:"divide",value:function(e){var t=this.clone();if(null!=t.cnv_)throw new Error("Attempt to divide non-ratio unit ".concat(t.name_));if(null!=e.cnv_)throw new Error("Attempt to divide by non-ratio unit ".concat(e.name_));return t.name_&&e.name_?t.name_=this._concatStrs(t.name_,"/",e.name_,"[","]"):e.name_&&(t.name_=e.invertString(e.name_)),t.csCode_=this._concatStrs(t.csCode_,"/",e.csCode_,"(",")"),t.ciCode_&&e.ciCode_?t.ciCode_=this._concatStrs(t.ciCode_,"/",e.ciCode_,"(",")"):e.ciCode_&&(t.ciCode_=e.invertString(e.ciCode_)),t.guidance_="",t.magnitude_/=e.magnitude_,t.printSymbol_&&e.printSymbol_?t.printSymbol_=this._concatStrs(t.printSymbol_,"/",e.printSymbol_,"(",")"):e.printSymbol_&&(t.printSymbol_=e.invertString(e.printSymbol_)),e.dim_&&(t.dim_?(t.dim_.isNull()&&t.dim_.assignZero(),t.dim_=t.dim_.sub(e.dim_)):t.dim_=e.dim_.clone().minus()),t.moleExp_=t.moleExp_-e.moleExp_,t.isArbitrary_||(t.isArbitrary_=e.isArbitrary_),t}},{key:"invert",value:function(){if(null!=this.cnv_)throw new Error("Attempt to invert a non-ratio unit - ".concat(this.name_));return this.name_=this.invertString(this.name_),this.magnitude_=1/this.magnitude_,this.dim_.minus(),this}},{key:"invertString",value:function(e){if(e.length>0){var t=e.replace("/","!").replace(".","/").replace("!",".");switch(t.charAt(0)){case".":e=t.substr(1);break;case"/":e=t;break;default:e="/"+t}}return e}},{key:"_concatStrs",value:function(e,t,n,i,a){return this._buildOneString(e,i,a)+t+this._buildOneString(n,i,a)}},{key:"_buildOneString",value:function(e,t,n){return o.isNumericString(e)||"("===e.charAt(0)||"["===e.charAt(0)?e:/[./* ]/.test(e)?t+e+n:e}},{key:"power",value:function(e){if(null!=this.cnv_)throw new Error("Attempt to raise a non-ratio unit, ".concat(this.name_,", ")+"to a power.");for(var t=this.csCode_.match(/([./]|[^./]+)/g),n=t.length,i=0;i<n;i++){var a=t[i];if("/"!==a&&"."!==a){var r=parseInt(a);if(p(r))t[i]=Math.pow(r,e).toString();else for(var l=a.length,s=l-1;s>=0;s--){var o=parseInt(a[s]);if(!p(o)){if("-"!==a[s]&&"+"!==a[s]||s--,s<l-1){var u=parseInt(a.substr(s));u=Math.pow(u,e),t[i]=a.substr(0,s)+u.toString(),s=-1}else t[i]+=e.toString(),s=-1;s=-1}}}}return this.csCode_=t.join(""),this.magnitude_=Math.pow(this.magnitude_,e),this.dim_&&this.dim_.mul(e),this}},{key:"isMoleMassCommensurable",value:function(e){var t=this._getUnitTables().getMassDimensionIndex(),n=!1;if(1===this.moleExp_&&0===e.moleExp_){var i=this.dim_.clone(),a=i.getElementAt(t);i.setElementAt(t,a+this.moleExp_),n=i.equals(e.dim_)}else if(1===e.moleExp_&&0===this.moleExp_){var r=e.dim_.clone(),l=r.getElementAt(t);r.setElementAt(t,l+e.moleExp_),n=r.equals(this.dim_)}return n}},{key:"_getUnitTables",value:function(){return c||(c=n(2).UnitTables),c.getInstance()}}])&&a(t.prototype,r),l&&a(t,l),e}();t.Unit=m},function(e,t,n){var i=n(107);e.exports=Number.isInteger||function(e){return"number"==typeof e&&i(e)&&Math.floor(e)===e}},function(e,t,n){"use strict";(function(e){var i=n(4),a=n(5);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var l=setTimeout;function s(e){return Boolean(e&&void 0!==e.length)}function o(){}function u(e){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],h(e,this)}function c(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,u._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void d(t.promise,e)}f(t.promise,i)}else(1===e._state?f:d)(t.promise,e._value)}))):e._deferreds.push(t)}function f(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===r(t)||"function"==typeof t)){var n=t.then;if(t instanceof u)return e._state=3,e._value=t,void p(e);if("function"==typeof n)return void h((i=n,a=t,function(){i.apply(a,arguments)}),e)}e._state=1,e._value=t,p(e)}catch(t){d(e,t)}var i,a}function d(e,t){e._state=2,e._value=t,p(e)}function p(e){2===e._state&&0===e._deferreds.length&&u._immediateFn((function(){e._handled||u._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)c(e,e._deferreds[t]);e._deferreds=null}function m(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function h(e,t){var n=!1;try{e((function(e){n||(n=!0,f(t,e))}),(function(e){n||(n=!0,d(t,e))}))}catch(e){if(n)return;n=!0,d(t,e)}}u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){var n=new this.constructor(o);return c(this,new m(e,t,n)),n},u.prototype.finally=i.a,u.all=function(e){return new u((function(t,n){if(!s(e))return n(new TypeError("Promise.all accepts an array"));var i=Array.prototype.slice.call(e);if(0===i.length)return t([]);var a=i.length;function l(e,s){try{if(s&&("object"===r(s)||"function"==typeof s)){var o=s.then;if("function"==typeof o)return void o.call(s,(function(t){l(e,t)}),n)}i[e]=s,0==--a&&t(i)}catch(e){n(e)}}for(var o=0;o<i.length;o++)l(o,i[o])}))},u.allSettled=a.a,u.resolve=function(e){return e&&"object"===r(e)&&e.constructor===u?e:new u((function(t){t(e)}))},u.reject=function(e){return new u((function(t,n){n(e)}))},u.race=function(e){return new u((function(t,n){if(!s(e))return n(new TypeError("Promise.race accepts an array"));for(var i=0,a=e.length;i<a;i++)u.resolve(e[i]).then(t,n)}))},u._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){l(e,0)},u._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},t.a=u}).call(this,n(23).setImmediate)},function(e,t,n){n(11),e.exports=n(53)},function(e,t,n){n(66),n(11),e.exports=n(12)},function(e,t,n){n(22),n(26),e.exports=n(27)},function(e,t,n){"use strict";n.r(t),function(e){var t=n(18),i=n(4),a=n(5),r=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==e)return e;throw new Error("unable to locate global object")}();"function"!=typeof r.Promise?r.Promise=t.a:r.Promise.prototype.finally?r.Promise.allSettled||(r.Promise.allSettled=a.a):r.Promise.prototype.finally=i.a}.call(this,n(6))},function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,a=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(24),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(6))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,a,r,l,s,o=1,u={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){m(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){m(e.data)},i=function(e){r.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(a=f.documentElement,i=function(e){var t=f.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):i=function(e){setTimeout(m,0,e)}:(l="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(l)&&m(+t.data.slice(l.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(l+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return u[o]=a,i(o),o++},d.clearImmediate=p}function p(e){delete u[e]}function m(e){if(c)setTimeout(m,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(6),n(25))},function(e,t){var n,i,a=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:l}catch(e){i=l}}();var o,u=[],c=!1,f=-1;function d(){c&&o&&(c=!1,o.length?u=o.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(o=u,u=[];++f<t;)o&&o[f].run();f=-1,t=u.length}o=null,c=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===l||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new m(e,t)),1!==u.length||c||s(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=h,a.addListener=h,a.once=h,a.off=h,a.removeListener=h,a.removeAllListeners=h,a.emit=h,a.prependListener=h,a.prependOnceListener=h,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t),n.d(t,"Headers",(function(){return p})),n.d(t,"Request",(function(){return _})),n.d(t,"Response",(function(){return w})),n.d(t,"DOMException",(function(){return k})),n.d(t,"fetch",(function(){return S}));var i="URLSearchParams"in self,a="Symbol"in self&&"iterator"in Symbol,r="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),l="FormData"in self,s="ArrayBuffer"in self;if(s)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&o.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return a&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:r&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:l&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:i&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&r&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,i=m(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},l&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=c(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[c(e)]},p.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},p.prototype.set=function(e,t){this.map[c(e)]=f(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},a&&(p.prototype[Symbol.iterator]=p.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function _(e,t){var n,i,a=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",i=n.toUpperCase(),b.indexOf(i)>-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a)}function C(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),a=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(a))}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},y.call(_.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var $=[301,302,303,307,308];w.redirect=function(e,t){if(-1===$.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})};var k=self.DOMException;try{new k}catch(e){(k=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),k.prototype.constructor=k}function S(e,t){return new Promise((function(n,i){var a=new _(e,t);if(a.signal&&a.signal.aborted)return i(new k("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var e,t,i={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var a=n.join(":").trim();t.append(i,a)}})),t)};i.url="responseURL"in l?l.responseURL:i.headers.get("X-Request-URL");var a="response"in l?l.response:l.responseText;n(new w(a,i))},l.onerror=function(){i(new TypeError("Network request failed"))},l.ontimeout=function(){i(new TypeError("Network request failed"))},l.onabort=function(){i(new k("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&r&&(l.responseType="blob"),a.headers.forEach((function(e,t){l.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",s),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",s)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}S.polyfill=!0,self.fetch||(self.fetch=S,self.Headers=p,self.Request=_,self.Response=w)},function(e,t,n){window.$=window.jQuery=n(3),n(28),n(30),n(31),n(32),n(33),window.angular=n(34),n(36),n(69),n(70),n(72);var i=n(73);i.Def=n(8),i.ucumPkg=n(101),n(111),n(112),n(113),e.exports=i},function(e,t,n){var i,a,r;function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
26
+ /*!
27
+ * jQuery UI Datepicker 1.12.1
28
+ * http://jqueryui.com
29
+ *
30
+ * Copyright jQuery Foundation and other contributors
31
+ * Released under the MIT license.
32
+ * http://jquery.org/license
33
+ */a=[n(3),n(10),n(29)],void 0===(r="function"==typeof(i=function(e){var t;function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=i(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",n,a)}function a(){e.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function r(t,n){for(var i in e.extend(t,n),n)null==n[i]&&(t[i]=n[i]);return t}return e.extend(e.ui,{datepicker:{version:"1.12.1"}}),e.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return r(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var i,a,r;a="div"===(i=t.nodeName.toLowerCase())||"span"===i,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(r=this._newInst(e(t),a)).settings=e.extend({},n||{}),"input"===i?this._connectDatepicker(t,r):a&&this._inlineDatepicker(t,r)},_newInst:function(t,n){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?i(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var i=e(t);n.append=e([]),n.trigger=e([]),i.hasClass(this.markerClassName)||(this._attachments(i,n),i.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var i,a,r,l=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),l&&(n.append=e("<span class='"+this._appendClass+"'>"+l+"</span>"),t[s?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),"focus"!==(i=this._get(n,"showOn"))&&"both"!==i||t.on("focus",this._showDatepicker),"button"!==i&&"both"!==i||(a=this._get(n,"buttonText"),r=this._get(n,"buttonImage"),n.trigger=e(this._get(n,"buttonImageOnly")?e("<img/>").addClass(this._triggerClass).attr({src:r,alt:a,title:a}):e("<button type='button'></button>").addClass(this._triggerClass).html(r?e("<img/>").attr({src:r,alt:a,title:a}):a)),t[s?"before":"after"](n.trigger),n.trigger.on("click",(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,i,a,r=new Date(2009,11,20),l=this._get(e,"dateFormat");l.match(/[DM]/)&&(t=function(e){for(n=0,i=0,a=0;a<e.length;a++)e[a].length>n&&(n=e[a].length,i=a);return i},r.setMonth(t(this._get(e,l.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,l.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length)}},_inlineDatepicker:function(t,n){var i=e(t);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,i,a,l){var s,o,u,c,f,d=this._dialogInst;return d||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",d)),r(d.settings,a||{}),n=n&&n.constructor===Date?this._formatDate(d,n):n,this._dialogInput.val(n),this._pos=l?l.length?l:[l.pageX,l.pageY]:null,this._pos||(o=document.documentElement.clientWidth,u=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,f=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+c,u/2-150+f]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(n){var i,a=e(n),r=e.data(n,"datepicker");a.hasClass(this.markerClassName)&&(i=n.nodeName.toLowerCase(),e.removeData(n,"datepicker"),"input"===i?(r.append.remove(),r.trigger.remove(),a.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||a.removeClass(this.markerClassName).empty(),t===r&&(t=null))},_enableDatepicker:function(t){var n,i,a=e(t),r=e.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!1,r.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||((i=a.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var n,i,a=e(t),r=e.data(t,"datepicker");a.hasClass(this.markerClassName)&&("input"===(n=t.nodeName.toLowerCase())?(t.disabled=!0,r.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||((i=a.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,i){var a,l,s,o,u=this._getInst(t);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?e.extend({},e.datepicker._defaults):u?"all"===n?e.extend({},u.settings):this._get(u,n):null;a=n||{},"string"==typeof n&&((a={})[n]=i),u&&(this._curInst===u&&this._hideDatepicker(),l=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(u,"min"),o=this._getMinMaxDate(u,"max"),r(u.settings,a),null!==s&&void 0!==a.dateFormat&&void 0===a.minDate&&(u.settings.minDate=this._formatDate(u,s)),null!==o&&void 0!==a.dateFormat&&void 0===a.maxDate&&(u.settings.maxDate=this._formatDate(u,o)),"disabled"in a&&(a.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),u),this._autoSize(u),this._setDate(u,l),this._updateAlternate(u),this._updateDatepicker(u))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,i,a,r=e.datepicker._getInst(t.target),l=!0,s=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),l=!1;break;case 13:return(a=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",r.dpDiv))[0]&&e.datepicker._selectDay(t.target,r.selectedMonth,r.selectedYear,a[0]),(n=e.datepicker._get(r,"onSelect"))?(i=e.datepicker._formatDate(r),n.apply(r.input?r.input[0]:null,[i,r])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(r,"stepBigMonths"):-e.datepicker._get(r,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(r,"stepBigMonths"):+e.datepicker._get(r,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),l=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),l=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?1:-1,"D"),l=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(r,"stepBigMonths"):-e.datepicker._get(r,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),l=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?-1:1,"D"),l=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(r,"stepBigMonths"):+e.datepicker._get(r,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),l=t.ctrlKey||t.metaKey;break;default:l=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):l=!1;l&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,i,a=e.datepicker._getInst(t.target);if(e.datepicker._get(a,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(a,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!n||n.indexOf(i)>-1},_doKeyUp:function(t){var n=e.datepicker._getInst(t.target);if(n.input.val()!==n.lastVal)try{e.datepicker.parseDate(e.datepicker._get(n,"dateFormat"),n.input?n.input.val():null,e.datepicker._getFormatConfig(n))&&(e.datepicker._setDateFromField(n),e.datepicker._updateAlternate(n),e.datepicker._updateDatepicker(n))}catch(e){}return!0},_showDatepicker:function(t){var n,i,a,l,s,o,u;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(a=(i=e.datepicker._get(n,"beforeShow"))?i.apply(t,[t,n]):{})&&(r(n.settings,a),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),l=!1,e(t).parents().each((function(){return!(l|="fixed"===e(this).css("position"))})),s={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),s=e.datepicker._checkOffset(n,s,l),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":l?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),n.inline||(o=e.datepicker._get(n,"showAnim"),u=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",function(e){for(var t,n;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[o]?n.dpDiv.show(o,e.datepicker._get(n,"showOptions"),u):n.dpDiv[o||"show"](o?u:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(n){this.maxRows=4,t=n,n.dpDiv.empty().append(this._generateHTML(n)),this._attachHandlers(n);var i,r=this._getNumberOfMonths(n),l=r[1],s=n.dpDiv.find("."+this._dayOverClass+" a");s.length>0&&a.apply(s.get(0)),n.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),l>1&&n.dpDiv.addClass("ui-datepicker-multi-"+l).css("width",17*l+"em"),n.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),n.dpDiv[(this._get(n,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),n===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),n.yearshtml&&(i=n.yearshtml,setTimeout((function(){i===n.yearshtml&&n.yearshtml&&n.dpDiv.find("select.ui-datepicker-year:first").replaceWith(n.yearshtml),i=n.yearshtml=null}),0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,i){var a=t.dpDiv.outerWidth(),r=t.dpDiv.outerHeight(),l=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,o=document.documentElement.clientWidth+(i?0:e(document).scrollLeft()),u=document.documentElement.clientHeight+(i?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?a-l:0,n.left-=i&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=i&&n.top===t.input.offset().top+s?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+a>o&&o>a?Math.abs(n.left+a-o):0),n.top-=Math.min(n.top,n.top+r>u&&u>r?Math.abs(r+s):0),n},_findPos:function(t){for(var n,i=this._getInst(t),a=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.filters.hidden(t));)t=t[a?"previousSibling":"nextSibling"];return[(n=e(t).offset()).left,n.top]},_hideDatepicker:function(t){var n,i,a,r,l=this._curInst;!l||t&&l!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(l,"showAnim"),i=this._get(l,"duration"),a=function(){e.datepicker._tidyDialog(l)},e.effects&&(e.effects.effect[n]||e.effects[n])?l.dpDiv.hide(n,e.datepicker._get(l,"showOptions"),i,a):l.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?i:null,a),n||a(),this._datepickerShowing=!1,(r=this._get(l,"onClose"))&&r.apply(l.input?l.input[0]:null,[l.input?l.input.val():"",l]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),i=e.datepicker._getInst(n[0]);(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===i)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,i){var a=e(t),r=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(r,n+("M"===i?this._get(r,"showCurrentAtPos"):0),i),this._updateDatepicker(r))},_gotoToday:function(t){var n,i=e(t),a=this._getInst(i[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(n=new Date,a.selectedDay=n.getDate(),a.drawMonth=a.selectedMonth=n.getMonth(),a.drawYear=a.selectedYear=n.getFullYear()),this._notifyChange(a),this._adjustDate(i)},_selectMonthYear:function(t,n,i){var a=e(t),r=this._getInst(a[0]);r["selected"+("M"===i?"Month":"Year")]=r["draw"+("M"===i?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(a)},_selectDay:function(t,n,i,a){var r,l=e(t);e(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(l[0])||((r=this._getInst(l[0])).selectedDay=r.currentDay=e("a",a).html(),r.selectedMonth=r.currentMonth=n,r.selectedYear=r.currentYear=i,this._selectDate(t,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var i,a=e(t),r=this._getInst(a[0]);n=null!=n?n:this._formatDate(r),r.input&&r.input.val(n),this._updateAlternate(r),(i=this._get(r,"onSelect"))?i.apply(r.input?r.input[0]:null,[n,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!==l(r.input[0])&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,i,a,r=this._get(t,"altField");r&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),a=this.formatDate(n,i,this._getFormatConfig(t)),e(r).val(a))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,i){if(null==t||null==n)throw"Invalid arguments";if(""===(n="object"===l(n)?n.toString():n+""))return null;var a,r,s,o,u=0,c=(i?i.shortYearCutoff:null)||this._defaults.shortYearCutoff,f="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,p=(i?i.dayNames:null)||this._defaults.dayNames,m=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,h=(i?i.monthNames:null)||this._defaults.monthNames,g=-1,v=-1,y=-1,b=-1,_=!1,C=function(e){var n=a+1<t.length&&t.charAt(a+1)===e;return n&&a++,n},w=function(e){var t=C(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,a=new RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),r=n.substring(u).match(a);if(!r)throw"Missing number at position "+u;return u+=r[0].length,parseInt(r[0],10)},$=function(t,i,a){var r=-1,l=e.map(C(t)?a:i,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(l,(function(e,t){var i=t[1];if(n.substr(u,i.length).toLowerCase()===i.toLowerCase())return r=t[0],u+=i.length,!1})),-1!==r)return r+1;throw"Unknown name at position "+u},k=function(){if(n.charAt(u)!==t.charAt(a))throw"Unexpected literal at position "+u;u++};for(a=0;a<t.length;a++)if(_)"'"!==t.charAt(a)||C("'")?k():_=!1;else switch(t.charAt(a)){case"d":y=w("d");break;case"D":$("D",d,p);break;case"o":b=w("o");break;case"m":v=w("m");break;case"M":v=$("M",m,h);break;case"y":g=w("y");break;case"@":g=(o=new Date(w("@"))).getFullYear(),v=o.getMonth()+1,y=o.getDate();break;case"!":g=(o=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),v=o.getMonth()+1,y=o.getDate();break;case"'":C("'")?k():_=!0;break;default:k()}if(u<n.length&&(s=n.substr(u),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=f?0:-100)),b>-1)for(v=1,y=b;!(y<=(r=this._getDaysInMonth(g,v-1)));)v++,y-=r;if((o=this._daylightSavingAdjust(new Date(g,v-1,y))).getFullYear()!==g||o.getMonth()+1!==v||o.getDate()!==y)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var i,a=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,r=(n?n.dayNames:null)||this._defaults.dayNames,l=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,o=function(t){var n=i+1<e.length&&e.charAt(i+1)===t;return n&&i++,n},u=function(e,t,n){var i=""+t;if(o(e))for(;i.length<n;)i="0"+i;return i},c=function(e,t,n,i){return o(e)?i[t]:n[t]},f="",d=!1;if(t)for(i=0;i<e.length;i++)if(d)"'"!==e.charAt(i)||o("'")?f+=e.charAt(i):d=!1;else switch(e.charAt(i)){case"d":f+=u("d",t.getDate(),2);break;case"D":f+=c("D",t.getDay(),a,r);break;case"o":f+=u("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":f+=u("m",t.getMonth()+1,2);break;case"M":f+=c("M",t.getMonth(),l,s);break;case"y":f+=o("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":f+=t.getTime();break;case"!":f+=1e4*t.getTime()+this._ticksTo1970;break;case"'":o("'")?f+="'":d=!0;break;default:f+=e.charAt(i)}return f},_possibleChars:function(e){var t,n="",i=!1,a=function(n){var i=t+1<e.length&&e.charAt(t+1)===n;return i&&t++,i};for(t=0;t<e.length;t++)if(i)"'"!==e.charAt(t)||a("'")?n+=e.charAt(t):i=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":a("'")?n+="'":i=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),i=e.lastVal=e.input?e.input.val():null,a=this._getDefaultDate(e),r=a,l=this._getFormatConfig(e);try{r=this.parseDate(n,i,l)||a}catch(e){i=t?"":i}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=i?r.getDate():0,e.currentMonth=i?r.getMonth():0,e.currentYear=i?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,i){var a=null==n||""===n?i:"string"==typeof n?function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(e){}for(var i=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,a=i.getFullYear(),r=i.getMonth(),l=i.getDate(),s=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=s.exec(n);o;){switch(o[2]||"d"){case"d":case"D":l+=parseInt(o[1],10);break;case"w":case"W":l+=7*parseInt(o[1],10);break;case"m":case"M":r+=parseInt(o[1],10),l=Math.min(l,e.datepicker._getDaysInMonth(a,r));break;case"y":case"Y":a+=parseInt(o[1],10),l=Math.min(l,e.datepicker._getDaysInMonth(a,r))}o=s.exec(n)}return new Date(a,r,l)}(n):"number"==typeof n?isNaN(n)?i:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(n):new Date(n.getTime());return(a=a&&"Invalid Date"===a.toString()?i:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var i=!t,a=e.selectedMonth,r=e.selectedYear,l=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=l.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=l.getMonth(),e.drawYear=e.selectedYear=e.currentYear=l.getFullYear(),a===e.selectedMonth&&r===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(i?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),i="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(i,-n,"M")},next:function(){e.datepicker._adjustDate(i,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(i)},selectDay:function(){return e.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(i,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var t,n,i,a,r,l,s,o,u,c,f,d,p,m,h,g,v,y,b,_,C,w,$,k,S,M,I,L,A,O,T,x,D,U,q,E,N,R,P,F=new Date,H=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth(),F.getDate())),V=this._get(e,"isRTL"),B=this._get(e,"showButtonPanel"),j=this._get(e,"hideIfNoPrevNext"),z=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),G=this._get(e,"showCurrentAtPos"),W=this._get(e,"stepMonths"),K=1!==Y[0]||1!==Y[1],Q=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(e,"min"),X=this._getMinMaxDate(e,"max"),Z=e.drawMonth-G,ee=e.drawYear;if(Z<0&&(Z+=12,ee--),X)for(t=this._daylightSavingAdjust(new Date(X.getFullYear(),X.getMonth()-Y[0]*Y[1]+1,X.getDate())),t=J&&t<J?J:t;this._daylightSavingAdjust(new Date(ee,Z,1))>t;)--Z<0&&(Z=11,ee--);for(e.drawMonth=Z,e.drawYear=ee,n=this._get(e,"prevText"),n=z?this.formatDate(n,this._daylightSavingAdjust(new Date(ee,Z-W,1)),this._getFormatConfig(e)):n,i=this._canAdjustMonth(e,-1,ee,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(V?"e":"w")+"'>"+n+"</span></a>":j?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(V?"e":"w")+"'>"+n+"</span></a>",a=this._get(e,"nextText"),a=z?this.formatDate(a,this._daylightSavingAdjust(new Date(ee,Z+W,1)),this._getFormatConfig(e)):a,r=this._canAdjustMonth(e,1,ee,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(V?"w":"e")+"'>"+a+"</span></a>":j?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+a+"'><span class='ui-icon ui-icon-circle-triangle-"+(V?"w":"e")+"'>"+a+"</span></a>",l=this._get(e,"currentText"),s=this._get(e,"gotoCurrent")&&e.currentDay?Q:H,l=z?this.formatDate(l,s,this._getFormatConfig(e)):l,o=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",u=B?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(V?o:"")+(this._isInRange(e,s)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+l+"</button>":"")+(V?"":o)+"</div>":"",c=parseInt(this._get(e,"firstDay"),10),c=isNaN(c)?0:c,f=this._get(e,"showWeek"),d=this._get(e,"dayNames"),p=this._get(e,"dayNamesMin"),m=this._get(e,"monthNames"),h=this._get(e,"monthNamesShort"),g=this._get(e,"beforeShowDay"),v=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),b=this._getDefaultDate(e),_="",w=0;w<Y[0];w++){for($="",this.maxRows=4,k=0;k<Y[1];k++){if(S=this._daylightSavingAdjust(new Date(ee,Z,e.selectedDay)),M=" ui-corner-all",I="",K){if(I+="<div class='ui-datepicker-group",Y[1]>1)switch(k){case 0:I+=" ui-datepicker-group-first",M=" ui-corner-"+(V?"right":"left");break;case Y[1]-1:I+=" ui-datepicker-group-last",M=" ui-corner-"+(V?"left":"right");break;default:I+=" ui-datepicker-group-middle",M=""}I+="'>"}for(I+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+M+"'>"+(/all|left/.test(M)&&0===w?V?r:i:"")+(/all|right/.test(M)&&0===w?V?i:r:"")+this._generateMonthYearHeader(e,Z,ee,J,X,w>0||k>0,m,h)+"</div><table class='ui-datepicker-calendar'><thead><tr>",L=f?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",C=0;C<7;C++)L+="<th scope='col'"+((C+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[A=(C+c)%7]+"'>"+p[A]+"</span></th>";for(I+=L+"</tr></thead><tbody>",O=this._getDaysInMonth(ee,Z),ee===e.selectedYear&&Z===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,O)),T=(this._getFirstDayOfMonth(ee,Z)-c+7)%7,x=Math.ceil((T+O)/7),D=K&&this.maxRows>x?this.maxRows:x,this.maxRows=D,U=this._daylightSavingAdjust(new Date(ee,Z,1-T)),q=0;q<D;q++){for(I+="<tr>",E=f?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(U)+"</td>":"",C=0;C<7;C++)N=g?g.apply(e.input?e.input[0]:null,[U]):[!0,""],P=(R=U.getMonth()!==Z)&&!y||!N[0]||J&&U<J||X&&U>X,E+="<td class='"+((C+c+6)%7>=5?" ui-datepicker-week-end":"")+(R?" ui-datepicker-other-month":"")+(U.getTime()===S.getTime()&&Z===e.selectedMonth&&e._keyEvent||b.getTime()===U.getTime()&&b.getTime()===S.getTime()?" "+this._dayOverClass:"")+(P?" "+this._unselectableClass+" ui-state-disabled":"")+(R&&!v?"":" "+N[1]+(U.getTime()===Q.getTime()?" "+this._currentClass:"")+(U.getTime()===H.getTime()?" ui-datepicker-today":""))+"'"+(R&&!v||!N[2]?"":" title='"+N[2].replace(/'/g,"&#39;")+"'")+(P?"":" data-handler='selectDay' data-event='click' data-month='"+U.getMonth()+"' data-year='"+U.getFullYear()+"'")+">"+(R&&!v?"&#xa0;":P?"<span class='ui-state-default'>"+U.getDate()+"</span>":"<a class='ui-state-default"+(U.getTime()===H.getTime()?" ui-state-highlight":"")+(U.getTime()===Q.getTime()?" ui-state-active":"")+(R?" ui-priority-secondary":"")+"' href='#'>"+U.getDate()+"</a>")+"</td>",U.setDate(U.getDate()+1),U=this._daylightSavingAdjust(U);I+=E+"</tr>"}++Z>11&&(Z=0,ee++),$+=I+="</tbody></table>"+(K?"</div>"+(Y[0]>0&&k===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=$}return _+=u,e._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,n,i,a,r,l,s){var o,u,c,f,d,p,m,h,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",_="";if(r||!g)_+="<span class='ui-datepicker-month'>"+l[t]+"</span>";else{for(o=i&&i.getFullYear()===n,u=a&&a.getFullYear()===n,_+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!o||c>=i.getMonth())&&(!u||c<=a.getMonth())&&(_+="<option value='"+c+"'"+(c===t?" selected='selected'":"")+">"+s[c]+"</option>");_+="</select>"}if(y||(b+=_+(!r&&g&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!v)b+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(f=this._get(e,"yearRange").split(":"),d=(new Date).getFullYear(),m=(p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?d+parseInt(e,10):parseInt(e,10);return isNaN(t)?d:t})(f[0]),h=Math.max(m,p(f[1]||"")),m=i?Math.max(m,i.getFullYear()):m,h=a?Math.min(h,a.getFullYear()):h,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m<=h;m++)e.yearshtml+="<option value='"+m+"'"+(m===n?" selected='selected'":"")+">"+m+"</option>";e.yearshtml+="</select>",b+=e.yearshtml,e.yearshtml=null}return b+=this._get(e,"yearSuffix"),y&&(b+=(!r&&g&&v?"":"&#xa0;")+_),b+="</div>"},_adjustInstDate:function(e,t,n){var i=e.selectedYear+("Y"===n?t:0),a=e.selectedMonth+("M"===n?t:0),r=Math.min(e.selectedDay,this._getDaysInMonth(i,a))+("D"===n?t:0),l=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(i,a,r)));e.selectedDay=l.getDate(),e.drawMonth=e.selectedMonth=l.getMonth(),e.drawYear=e.selectedYear=l.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),i=this._getMinMaxDate(e,"max"),a=n&&t<n?n:t;return i&&a>i?i:a},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,i){var a=this._getNumberOfMonths(e),r=this._daylightSavingAdjust(new Date(n,i+(t<0?t:a[0]*a[1]),1));return t<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(e,r)},_isInRange:function(e,t){var n,i,a=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),l=null,s=null,o=this._get(e,"yearRange");return o&&(n=o.split(":"),i=(new Date).getFullYear(),l=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(l+=i),n[1].match(/[+\-].*/)&&(s+=i)),(!a||t.getTime()>=a.getTime())&&(!r||t.getTime()<=r.getTime())&&(!l||t.getFullYear()>=l)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,i){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var a=t?"object"===l(t)?t:this._daylightSavingAdjust(new Date(i,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),a,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)})):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.12.1",e.datepicker})?i.apply(t,a):i)||(e.exports=r)},function(e,t,n){var i,a,r;
34
+ /*!
35
+ * jQuery UI Keycode 1.12.1
36
+ * http://jqueryui.com
37
+ *
38
+ * Copyright jQuery Foundation and other contributors
39
+ * Released under the MIT license.
40
+ * http://jquery.org/license
41
+ */a=[n(3),n(10)],void 0===(r="function"==typeof(i=function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?i.apply(t,a):i)||(e.exports=r)},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){n(35),e.exports=angular},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
42
+ /**
43
+ * @license AngularJS v1.8.2
44
+ * (c) 2010-2020 Google LLC. http://angularjs.org
45
+ * License: MIT
46
+ */!function(e){"use strict";var t={objectMaxDepth:5,urlErrorParamsEnabled:!0};function i(e){if(!F(e))return t;P(e.objectMaxDepth)&&(t.objectMaxDepth=a(e.objectMaxDepth)?e.objectMaxDepth:NaN),P(e.urlErrorParamsEnabled)&&J(e.urlErrorParamsEnabled)&&(t.urlErrorParamsEnabled=e.urlErrorParamsEnabled)}function a(e){return B(e)&&e>0}function r(e,n){n=n||Error;var i="https://errors.angularjs.org/1.8.2/",a=i.replace(".","\\.")+"[\\s\\S]*",r=new RegExp(a,"g");return function(){var a,l,s=arguments[0],o=arguments[1],u="["+(e?e+":":"")+s+"] ",c=fe(arguments,2).map((function(e){return Be(e,t.objectMaxDepth)}));if(u+=o.replace(/\{\d+\}/g,(function(e){var t=+e.slice(1,-1);return t<c.length?c[t].replace(r,""):e})),u+="\n"+i+(e?e+"/":"")+s,t.urlErrorParamsEnabled)for(l=0,a="?";l<c.length;l++,a="&")u+=a+"p"+l+"="+encodeURIComponent(c[l]);return new n(u)}}var l,s,o,u,c=/^\/(.+)\/([a-z]*)$/,f=Object.prototype.hasOwnProperty,d=function(e){return V(e)?e.toLowerCase():e},p=function(e){return V(e)?e.toUpperCase():e},m=[].slice,h=[].splice,g=[].push,v=Object.prototype.toString,y=Object.getPrototypeOf,b=r("ng"),_=e.angular||(e.angular={}),C=0;function w(e){if(null==e||K(e))return!1;if(z(e)||V(e)||s&&e instanceof s)return!0;var t="length"in Object(e)&&e.length;return B(t)&&(t>=0&&t-1 in e||"function"==typeof e.item)}function $(e,t,i){var a,r;if(e)if(G(e))for(a in e)"prototype"!==a&&"length"!==a&&"name"!==a&&e.hasOwnProperty(a)&&t.call(i,e[a],a,e);else if(z(e)||w(e)){var l="object"!==n(e);for(a=0,r=e.length;a<r;a++)(l||a in e)&&t.call(i,e[a],a,e)}else if(e.forEach&&e.forEach!==$)e.forEach(t,i,e);else if(H(e))for(a in e)t.call(i,e[a],a,e);else if("function"==typeof e.hasOwnProperty)for(a in e)e.hasOwnProperty(a)&&t.call(i,e[a],a,e);else for(a in e)f.call(e,a)&&t.call(i,e[a],a,e);return e}function k(e,t,n){for(var i=Object.keys(e).sort(),a=0;a<i.length;a++)t.call(n,e[i[a]],i[a]);return i}function S(e){return function(t,n){e(n,t)}}function M(){return++C}function I(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function L(e,t,n){for(var i=e.$$hashKey,a=0,r=t.length;a<r;++a){var l=t[a];if(F(l)||G(l))for(var s=Object.keys(l),o=0,u=s.length;o<u;o++){var c=s[o],f=l[c];n&&F(f)?j(f)?e[c]=new Date(f.valueOf()):W(f)?e[c]=new RegExp(f):f.nodeName?e[c]=f.cloneNode(!0):ne(f)?e[c]=f.clone():"__proto__"!==c&&(F(e[c])||(e[c]=z(f)?[]:{}),L(e[c],[f],!0)):e[c]=f}}return I(e,i),e}function A(e){return L(e,m.call(arguments,1),!1)}function O(e){return L(e,m.call(arguments,1),!0)}function T(e){return parseInt(e,10)}l=e.document.documentMode;var x=Number.isNaN||function(e){return e!=e};function D(e,t){return A(Object.create(e),t)}function U(){}function q(e){return e}function E(e){return function(){return e}}function N(e){return G(e.toString)&&e.toString!==v}function R(e){return void 0===e}function P(e){return void 0!==e}function F(e){return null!==e&&"object"===n(e)}function H(e){return null!==e&&"object"===n(e)&&!y(e)}function V(e){return"string"==typeof e}function B(e){return"number"==typeof e}function j(e){return"[object Date]"===v.call(e)}function z(e){return Array.isArray(e)||e instanceof Array}function Y(e){switch(v.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}}function G(e){return"function"==typeof e}function W(e){return"[object RegExp]"===v.call(e)}function K(e){return e&&e.window===e}function Q(e){return e&&e.$evalAsync&&e.$watch}function J(e){return"boolean"==typeof e}function X(e){return e&&G(e.then)}U.$inject=[],q.$inject=[];var Z=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/;var ee=function(e){return V(e)?e.trim():e},te=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function ne(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function ie(e){return d(e.nodeName||e[0]&&e[0].nodeName)}function ae(e,t){return-1!==Array.prototype.indexOf.call(e,t)}function re(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function le(e,t,n){var i,r,l=[],s=[];if(n=a(n)?n:NaN,t){if((r=t)&&B(r.length)&&Z.test(v.call(r))||(i=t,"[object ArrayBuffer]"===v.call(i)))throw b("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw b("cpi","Can't copy! Source and destination are identical.");return z(t)?t.length=0:$(t,(function(e,n){"$$hashKey"!==n&&delete t[n]})),l.push(e),s.push(t),o(e,t,n)}return u(e,n);function o(e,t,n){if(--n<0)return"...";var i,a=t.$$hashKey;if(z(e))for(var r=0,l=e.length;r<l;r++)t.push(u(e[r],n));else if(H(e))for(i in e)t[i]=u(e[i],n);else if(e&&"function"==typeof e.hasOwnProperty)for(i in e)e.hasOwnProperty(i)&&(t[i]=u(e[i],n));else for(i in e)f.call(e,i)&&(t[i]=u(e[i],n));return I(t,a),t}function u(e,t){if(!F(e))return e;var n=l.indexOf(e);if(-1!==n)return s[n];if(K(e)||Q(e))throw b("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var i=!1,a=function(e){switch(v.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(u(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(G(e.cloneNode))return e.cloneNode(!0)}(e);return void 0===a&&(a=z(e)?[]:Object.create(y(e)),i=!0),l.push(e),s.push(a),i?o(e,a,t):a}}function se(e,t){return e===t||e!=e&&t!=t}function oe(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var i,a,r,l=n(e);if(l===n(t)&&"object"===l){if(!z(e)){if(j(e))return!!j(t)&&se(e.getTime(),t.getTime());if(W(e))return!!W(t)&&e.toString()===t.toString();if(Q(e)||Q(t)||K(e)||K(t)||z(t)||j(t)||W(t))return!1;for(a in r=Pe(),e)if("$"!==a.charAt(0)&&!G(e[a])){if(!oe(e[a],t[a]))return!1;r[a]=!0}for(a in t)if(!(a in r)&&"$"!==a.charAt(0)&&P(t[a])&&!G(t[a]))return!1;return!0}if(!z(t))return!1;if((i=e.length)===t.length){for(a=0;a<i;a++)if(!oe(e[a],t[a]))return!1;return!0}}return!1}var ue=function t(){if(!P(t.rules)){var n=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(n){var i=n.getAttribute("ng-csp")||n.getAttribute("data-ng-csp");t.rules={noUnsafeEval:!i||-1!==i.indexOf("no-unsafe-eval"),noInlineStyle:!i||-1!==i.indexOf("no-inline-style")}}else t.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return t.rules};function ce(e,t,n){return e.concat(m.call(t,n))}function fe(e,t){return m.call(e,t||0)}function de(e,t){var n=arguments.length>2?fe(arguments,2):[];return!G(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,ce(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function pe(t,n){var i=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?i=void 0:K(n)?i="$WINDOW":n&&e.document===n?i="$DOCUMENT":Q(n)&&(i="$SCOPE"),i}function me(e,t){if(!R(e))return B(t)||(t=t?2:null),JSON.stringify(e,pe,t)}function he(e){return V(e)?JSON.parse(e):e}var ge=/:/g;function ve(e,t){e=e.replace(ge,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return x(n)?t:n}function ye(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function be(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset();return ye(e,n*(ve(t,i)-i))}function _e(e){e=s(e).clone().empty();var t=s("<div></div>").append(e).html();try{return e[0].nodeType===He?d(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,(function(e,t){return"<"+d(t)}))}catch(e){return d(t)}}function Ce(e){try{return decodeURIComponent(e)}catch(e){}}function we(e){var t={};return $((e||"").split("&"),(function(e){var n,i,a;e&&(i=e=e.replace(/\+/g,"%20"),-1!==(n=e.indexOf("="))&&(i=e.substring(0,n),a=e.substring(n+1)),P(i=Ce(i))&&(a=!P(a)||Ce(a),f.call(t,i)?z(t[i])?t[i].push(a):t[i]=[t[i],a]:t[i]=a))})),t}function $e(e){return ke(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ke(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}var Se=["ng-","data-ng-","ng:","x-ng-"];var Me=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var i=n.attributes;return[i.getNamedItem("src"),i.getNamedItem("href"),i.getNamedItem("xlink:href")].every((function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}}))}(e.document);function Ie(t,n){var i,a,r={};if($(Se,(function(e){var n=e+"app";!i&&t.hasAttribute&&t.hasAttribute(n)&&(i=t,a=t.getAttribute(n))})),$(Se,(function(e){var n,r=e+"app";!i&&(n=t.querySelector("["+r.replace(":","\\:")+"]"))&&(i=n,a=n.getAttribute(r))})),i){if(!Me)return void e.console.error("AngularJS: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");r.strictDi=null!==function(e,t){var n,i,a=Se.length;for(i=0;i<a;++i)if(n=Se[i]+t,V(n=e.getAttribute(n)))return n;return null}(i,"strict-di"),n(i,a?[a]:[],r)}}function Le(t,n,i){F(i)||(i={});i=A({strictDi:!1},i);var a=function(){if((t=s(t)).injector()){var a=t[0]===e.document?"document":_e(t);throw b("btstrpd","App already bootstrapped with this element '{0}'",a.replace(/</,"&lt;").replace(/>/,"&gt;"))}(n=n||[]).unshift(["$provide",function(e){e.value("$rootElement",t)}]),i.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var r=Jt(n,i.strictDi);return r.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,i){e.$apply((function(){t.data("$injector",i),n(t)(e)}))}]),r},r=/^NG_ENABLE_DEBUG_INFO!/,l=/^NG_DEFER_BOOTSTRAP!/;if(e&&r.test(e.name)&&(i.debugInfoEnabled=!0,e.name=e.name.replace(r,"")),e&&!l.test(e.name))return a();e.name=e.name.replace(l,""),_.resumeBootstrap=function(e){return $(e,(function(e){n.push(e)})),a()},G(_.resumeDeferredBootstrap)&&_.resumeDeferredBootstrap()}function Ae(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function Oe(e){var t=_.element(e).injector();if(!t)throw b("test","no injector found for element argument to getTestability");return t.get("$$testability")}var Te=/[A-Z]/g;function xe(e,t){return t=t||"_",e.replace(Te,(function(e,n){return(n?t:"")+e.toLowerCase()}))}var De=!1;function Ue(){dt.legacyXHTMLReplacement=!0}function qe(e,t,n){if(!e)throw b("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function Ee(e,t,i){return i&&z(e)&&(e=e[e.length-1]),qe(G(e),t,"not a function, got "+(e&&"object"===n(e)?e.constructor.name||"Object":n(e))),e}function Ne(e,t){if("hasOwnProperty"===e)throw b("badname","hasOwnProperty is not a valid {0} name",t)}function Re(e){for(var t,n=e[0],i=e[e.length-1],a=1;n!==i&&(n=n.nextSibling);a++)(t||e[a]!==n)&&(t||(t=s(m.call(e,0,a))),t.push(n));return t||e}function Pe(){return Object.create(null)}function Fe(e){if(null==e)return"";switch(n(e)){case"string":break;case"number":e=""+e;break;default:e=!N(e)||z(e)||j(e)?me(e):e.toString()}return e}var He=3;function Ve(e,t){if(z(e)){t=t||[];for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}else if(F(e))for(var a in t=t||{},e)"$"===a.charAt(0)&&"$"===a.charAt(1)||(t[a]=e[a]);return t||e}function Be(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):R(e)?"undefined":"string"!=typeof e?function(e,t){var n=[];return a(t)&&(e=_.copy(e,null,t)),JSON.stringify(e,(function(e,t){if(F(t=pe(e,t))){if(n.indexOf(t)>=0)return"...";n.push(t)}return t}))}(e,t):e}var je={full:"1.8.2",major:1,minor:8,dot:2,codeName:"meteoric-mining"};dt.expando="ng339";var ze=dt.cache={},Ye=1;dt._data=function(e){return this.cache[e[this.expando]]||{}};var Ge=/-([a-z])/g,We=/^-ms-/,Ke={mouseleave:"mouseout",mouseenter:"mouseover"},Qe=r("jqLite");function Je(e,t){return t.toUpperCase()}function Xe(e){return e.replace(Ge,Je)}var Ze=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,et=/<|&#?\w+;/,tt=/<([\w:-]+)/,nt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,it={thead:["table"],col:["colgroup","table"],tr:["tbody","table"],td:["tr","tbody","table"]};it.tbody=it.tfoot=it.colgroup=it.caption=it.thead,it.th=it.td;var at={option:[1,'<select multiple="multiple">',"</select>"],_default:[0,"",""]};for(var rt in it){var lt=it[rt],st=lt.slice().reverse();at[rt]=[st.length,"<"+st.join("><")+">","</"+lt.join("></")+">"]}function ot(e){return!et.test(e)}function ut(e){var t=e.nodeType;return 1===t||!t||9===t}function ct(t,n){var i,a,r,s,o,u=n.createDocumentFragment(),c=[];if(ot(t))c.push(n.createTextNode(t));else{if(i=u.appendChild(n.createElement("div")),a=(tt.exec(t)||["",""])[1].toLowerCase(),s=dt.legacyXHTMLReplacement?t.replace(nt,"<$1></$2>"):t,l<10)for(r=at[a]||at._default,i.innerHTML=r[1]+s+r[2],o=r[0];o--;)i=i.firstChild;else{for(o=(r=it[a]||[]).length;--o>-1;)i.appendChild(e.document.createElement(r[o])),i=i.firstChild;i.innerHTML=s}c=ce(c,i.childNodes),(i=u.firstChild).textContent=""}return u.textContent="",u.innerHTML="",$(c,(function(e){u.appendChild(e)})),u}at.optgroup=at.option;var ft=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};function dt(t){if(t instanceof dt)return t;var n,i,a,r;if(V(t)&&(t=ee(t),n=!0),!(this instanceof dt)){if(n&&"<"!==t.charAt(0))throw Qe("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new dt(t)}n?kt(this,(i=t,a=a||e.document,(r=Ze.exec(i))?[a.createElement(r[1])]:(r=ct(i,a))?r.childNodes:[])):G(t)?At(t):kt(this,t)}function pt(e){return e.cloneNode(!0)}function mt(e,t){!t&&ut(e)&&s.cleanData([e]),e.querySelectorAll&&s.cleanData(e.querySelectorAll("*"))}function ht(e){var t;for(t in e)return!1;return!0}function gt(e){var t=e.ng339,n=t&&ze[t],i=n&&n.events,a=n&&n.data;a&&!ht(a)||i&&!ht(i)||(delete ze[t],e.ng339=void 0)}function vt(e,t,n,i){if(P(i))throw Qe("offargs","jqLite#off() does not support the `selector` argument");var a=bt(e),r=a&&a.events,l=a&&a.handle;if(l){if(t){var s=function(t){var i=r[t];P(n)&&re(i||[],n),P(n)&&i&&i.length>0||(e.removeEventListener(t,l),delete r[t])};$(t.split(" "),(function(e){s(e),Ke[e]&&s(Ke[e])}))}else for(t in r)"$destroy"!==t&&e.removeEventListener(t,l),delete r[t];gt(e)}}function yt(e,t){var n=e.ng339,i=n&&ze[n];i&&(t?delete i.data[t]:i.data={},gt(e))}function bt(e,t){var n=e.ng339,i=n&&ze[n];return t&&!i&&(e.ng339=n=++Ye,i=ze[n]={events:{},data:{},handle:void 0}),i}function _t(e,t,n){if(ut(e)){var i,a=P(n),r=!a&&t&&!F(t),l=!t,s=bt(e,!r),o=s&&s.data;if(a)o[Xe(t)]=n;else{if(l)return o;if(r)return o&&o[Xe(t)];for(i in t)o[Xe(i)]=t[i]}}}function Ct(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function wt(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n;$(t.split(" "),(function(e){e=ee(e),i=i.replace(" "+e+" "," ")})),i!==n&&e.setAttribute("class",ee(i))}}function $t(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," "),i=n;$(t.split(" "),(function(e){e=ee(e),-1===i.indexOf(" "+e+" ")&&(i+=e+" ")})),i!==n&&e.setAttribute("class",ee(i))}}function kt(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var i=0;i<n;i++)e[e.length++]=t[i]}else e[e.length++]=t}}function St(e,t){return Mt(e,"$"+(t||"ngController")+"Controller")}function Mt(e,t,n){9===e.nodeType&&(e=e.documentElement);for(var i=z(t)?t:[t];e;){for(var a=0,r=i.length;a<r;a++)if(P(n=s.data(e,i[a])))return n;e=e.parentNode||11===e.nodeType&&e.host}}function It(e){for(mt(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Lt(e,t){t||mt(e);var n=e.parentNode;n&&n.removeChild(e)}function At(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}var Ot=dt.prototype={ready:At,toString:function(){var e=[];return $(this,(function(t){e.push(""+t)})),"["+e.join(", ")+"]"},eq:function(e){return s(e>=0?this[e]:this[this.length+e])},length:0,push:g,sort:[].sort,splice:[].splice},Tt={};$("multiple,selected,checked,disabled,readOnly,required,open".split(","),(function(e){Tt[d(e)]=e}));var xt={};$("input,select,option,textarea,button,form,details".split(","),(function(e){xt[e]=!0}));var Dt={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};function Ut(e,t){var n=Tt[t.toLowerCase()];return n&&xt[ie(e)]&&n}function qt(e,t,n){n.call(e,t)}function Et(e,t,n){var i=t.relatedTarget;i&&(i===e||ft.call(e,i))||n.call(e,t)}function Nt(){this.$get=function(){return A(dt,{hasClass:function(e,t){return e.attr&&(e=e[0]),Ct(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),$t(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),wt(e,t)}})}}function Rt(e,t){var i=e&&e.$$hashKey;if(i)return"function"==typeof i&&(i=e.$$hashKey()),i;var a=n(e);return i="function"===a||"object"===a&&null!==e?e.$$hashKey=a+":"+(t||M)():a+":"+e}$({data:_t,removeData:yt,hasData:function(e){for(var t in ze[e.ng339])return!0;return!1},cleanData:function(e){for(var t=0,n=e.length;t<n;t++)yt(e[t]),vt(e[t])}},(function(e,t){dt[t]=e})),$({data:_t,inheritedData:Mt,scope:function(e){return s.data(e,"$scope")||Mt(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return s.data(e,"$isolateScope")||s.data(e,"$isolateScopeNoTemplate")},controller:St,injector:function(e){return Mt(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:Ct,css:function(e,t,n){if(t=function(e){return Xe(e.replace(We,"ms-"))}(t),!P(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var i,a=e.nodeType;if(a!==He&&2!==a&&8!==a&&e.getAttribute){var r=d(t),l=Tt[r];if(!P(n))return i=e.getAttribute(t),l&&null!==i&&(i=r),null===i?void 0:i;null===n||!1===n&&l?e.removeAttribute(t):e.setAttribute(t,l?r:n)}},prop:function(e,t,n){if(!P(n))return e[t];e[t]=n},text:function(){return e.$dv="",e;function e(e,t){if(R(t)){var n=e.nodeType;return 1===n||n===He?e.textContent:""}e.textContent=t}}(),val:function(e,t){if(R(t)){if(e.multiple&&"select"===ie(e)){var n=[];return $(e.options,(function(e){e.selected&&n.push(e.value||e.text)})),n}return e.value}e.value=t},html:function(e,t){if(R(t))return e.innerHTML;mt(e,!0),e.innerHTML=t},empty:It},(function(e,t){dt.prototype[t]=function(t,n){var i,a,r=this.length;if(e!==It&&R(2===e.length&&e!==Ct&&e!==St?t:n)){if(F(t)){for(i=0;i<r;i++)if(e===_t)e(this[i],t);else for(a in t)e(this[i],a,t[a]);return this}for(var l=e.$dv,s=R(l)?Math.min(r,1):r,o=0;o<s;o++){var u=e(this[o],t,n);l=l?l+u:u}return l}for(i=0;i<r;i++)e(this[i],t,n);return this}})),$({removeData:yt,on:function(e,t,n,i){if(P(i))throw Qe("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(ut(e)){var a=bt(e,!0),r=a.events,l=a.handle;l||(l=a.handle=function(e,t){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var a=t[i||n.type],r=a?a.length:0;if(r){if(R(n.immediatePropagationStopped)){var l=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),l&&l.call(n)}}n.isImmediatePropagationStopped=function(){return!0===n.immediatePropagationStopped};var s=a.specialHandlerWrapper||qt;r>1&&(a=Ve(a));for(var o=0;o<r;o++)n.isImmediatePropagationStopped()||s(e,n,a[o])}};return n.elem=e,n}(e,r));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],o=s.length,u=function(t,i,a){var s=r[t];s||((s=r[t]=[]).specialHandlerWrapper=i,"$destroy"===t||a||e.addEventListener(t,l)),s.push(n)};o--;)t=s[o],Ke[t]?(u(Ke[t],Et),u(t,void 0,!0)):u(t)}},off:vt,one:function(e,t,n){(e=s(e)).on(t,(function i(){e.off(t,n),e.off(t,i)})),e.on(t,n)},replaceWith:function(e,t){var n,i=e.parentNode;mt(e),$(new dt(t),(function(t){n?i.insertBefore(t,n.nextSibling):i.replaceChild(t,e),n=t}))},children:function(e){var t=[];return $(e.childNodes,(function(e){1===e.nodeType&&t.push(e)})),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(1===n||11===n)for(var i=0,a=(t=new dt(t)).length;i<a;i++){var r=t[i];e.appendChild(r)}},prepend:function(e,t){if(1===e.nodeType){var n=e.firstChild;$(new dt(t),(function(t){e.insertBefore(t,n)}))}},wrap:function(e,t){var n,i,a;n=e,i=s(t).eq(0).clone()[0],(a=n.parentNode)&&a.replaceChild(i,n),i.appendChild(n)},remove:Lt,detach:function(e){Lt(e,!0)},after:function(e,t){var n=e,i=e.parentNode;if(i)for(var a=0,r=(t=new dt(t)).length;a<r;a++){var l=t[a];i.insertBefore(l,n.nextSibling),n=l}},addClass:$t,removeClass:wt,toggleClass:function(e,t,n){t&&$(t.split(" "),(function(t){var i=n;R(i)&&(i=!Ct(e,t)),(i?$t:wt)(e,t)}))},parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:pt,triggerHandler:function(e,t,n){var i,a,r,l=t.type||t,s=bt(e),o=s&&s.events,u=o&&o[l];u&&(i={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return!0===this.defaultPrevented},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return!0===this.immediatePropagationStopped},stopPropagation:U,type:l,target:e},t.type&&(i=A(i,t)),a=Ve(u),r=n?[i].concat(n):[i],$(a,(function(t){i.isImmediatePropagationStopped()||t.apply(e,r)})))}},(function(e,t){dt.prototype[t]=function(t,n,i){for(var a,r=0,l=this.length;r<l;r++)R(a)?P(a=e(this[r],t,n,i))&&(a=s(a)):kt(a,e(this[r],t,n,i));return P(a)?a:this}})),dt.prototype.bind=dt.prototype.on,dt.prototype.unbind=dt.prototype.off;var Pt=Object.create(null);function Ft(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}Ft.prototype={_idx:function(e){return e!==this._lastKey&&(this._lastKey=e,this._lastIndex=this._keys.indexOf(e)),this._lastIndex},_transformKey:function(e){return x(e)?Pt:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(-1!==t)return this._values[t]},has:function(e){return e=this._transformKey(e),-1!==this._idx(e)},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);-1===n&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return-1!==t&&(this._keys.splice(t,1),this._values.splice(t,1),this._lastKey=NaN,this._lastIndex=-1,!0)}};var Ht=Ft,Vt=[function(){this.$get=[function(){return Ht}]}],Bt=/^([^(]+?)=>/,jt=/^[^(]*\(\s*([^)]*)\)/m,zt=/,/,Yt=/^\s*(_?)(\S+?)\1\s*$/,Gt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Wt=r("$injector");function Kt(e){return Function.prototype.toString.call(e)}function Qt(e){var t=Kt(e).replace(Gt,"");return t.match(Bt)||t.match(jt)}function Jt(e,t){t=!0===t;var n={},i=[],a=new Ht,r={$provide:{provider:p(m),factory:p(g),service:p((function(e,t){return g(e,["$injector",function(e){return e.instantiate(t)}])})),value:p((function(e,t){return g(e,E(t),!1)})),constant:p((function(e,t){Ne(e,"constant"),r[e]=t,o[e]=t})),decorator:function(e,t){var n=s.get(e+"Provider"),i=n.$get;n.$get=function(){var e=f.invoke(i,n);return f.invoke(t,null,{$delegate:e})}}}},s=r.$injector=y(r,(function(e,t){throw _.isString(t)&&i.push(t),Wt("unpr","Unknown provider: {0}",i.join(" <- "))})),o={},c=y(o,(function(e,t){var n=s.get(e+"Provider",t);return f.invoke(n.$get,n,void 0,e)})),f=c;r.$injectorProvider={$get:E(c)},f.modules=s.modules=Pe();var d=v(e);return(f=c.get("$injector")).strictDi=t,$(d,(function(e){e&&f.invoke(e)})),f.loadNewModules=function(e){$(v(e),(function(e){e&&f.invoke(e)}))},f;function p(e){return function(t,n){if(!F(t))return e(t,n);$(t,S(e))}}function m(e,t){if(Ne(e,"service"),(G(t)||z(t))&&(t=s.instantiate(t)),!t.$get)throw Wt("pget","Provider '{0}' must define $get factory method.",e);return r[e+"Provider"]=t}function h(e,t){return function(){var n=f.invoke(t,this);if(R(n))throw Wt("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function g(e,t,n){return m(e,{$get:!1!==n?h(e,t):t})}function v(e){qe(R(e)||z(e),"modulesToLoad","not an array");var t,n=[];return $(e,(function(e){if(!a.get(e)){a.set(e,!0);try{V(e)?(t=u(e),f.modules[e]=t,n=n.concat(v(t.requires)).concat(t._runBlocks),i(t._invokeQueue),i(t._configBlocks)):G(e)||z(e)?n.push(s.invoke(e)):Ee(e,"module")}catch(t){throw z(e)&&(e=e[e.length-1]),t.message&&t.stack&&-1===t.stack.indexOf(t.message)&&(t=t.message+"\n"+t.stack),Wt("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}function i(e){var t,n;for(t=0,n=e.length;t<n;t++){var i=e[t],a=s.get(i[0]);a[i[1]].apply(a,i[2])}}})),n}function y(e,a){function s(t,r){if(e.hasOwnProperty(t)){if(e[t]===n)throw Wt("cdep","Circular dependency found: {0}",t+" <- "+i.join(" <- "));return e[t]}try{return i.unshift(t),e[t]=n,e[t]=a(t,r),e[t]}catch(i){throw e[t]===n&&delete e[t],i}finally{i.shift()}}function o(e,n,i){for(var a=[],r=Jt.$$annotate(e,t,i),l=0,o=r.length;l<o;l++){var u=r[l];if("string"!=typeof u)throw Wt("itkn","Incorrect injection token! Expected service name as string, got {0}",u);a.push(n&&n.hasOwnProperty(u)?n[u]:s(u,i))}return a}return{invoke:function(e,t,n,i){"string"==typeof n&&(i=n,n=null);var a=o(e,n,i);return z(e)&&(e=e[e.length-1]),function(e){if(l||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return J(t)||(t=e.$$ngIsClass=/^class\b/.test(Kt(e))),t}(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)},instantiate:function(e,t,n){var i=z(e)?e[e.length-1]:e,a=o(e,t,n);return a.unshift(null),new(Function.prototype.bind.apply(i,a))},get:s,annotate:Jt.$$annotate,has:function(t){return r.hasOwnProperty(t+"Provider")||e.hasOwnProperty(t)}}}}function Xt(){var t=!0;this.disableAutoScrolling=function(){t=!1},this.$get=["$window","$location","$rootScope",function(n,i,a){var r=n.document;function l(e){if(e){e.scrollIntoView();var t=function(){var e=o.yOffset;if(G(e))e=e();else if(ne(e)){var t=e[0];e="fixed"!==n.getComputedStyle(t).position?0:t.getBoundingClientRect().bottom}else B(e)||(e=0);return e}();if(t){var i=e.getBoundingClientRect().top;n.scrollBy(0,i-t)}}else n.scrollTo(0,0)}function o(e){var t,n,a;(e=V(e)?e:B(e)?e.toString():i.hash())?(t=r.getElementById(e))?l(t):(n=r.getElementsByName(e),a=null,Array.prototype.some.call(n,(function(e){if("a"===ie(e))return a=e,!0})),(t=a)?l(t):"top"===e&&l(null)):l(null)}return t&&a.$watch((function(){return i.hash()}),(function(t,n){var i,r;t===n&&""===t||(i=function(){a.$evalAsync(o)},"complete"===(r=r||e).document.readyState?r.setTimeout(i):s(r).on("load",i))})),o}]}Jt.$$annotate=function(e,t,n){var i,a;if("function"==typeof e){if(!(i=e.$inject)){if(i=[],e.length){if(t)throw V(n)&&n||(n=e.name||function(e){var t=Qt(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}(e)),Wt("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);$(Qt(e)[1].split(zt),(function(e){e.replace(Yt,(function(e,t,n){i.push(n)}))}))}e.$inject=i}}else z(e)?(Ee(e[a=e.length-1],"fn"),i=e.slice(0,a)):Ee(e,"fn",!0);return i};var Zt=r("$animate");function en(e,t){return e||t?e?t?(z(e)&&(e=e.join(" ")),z(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function tn(e){return F(e)?e:{}}var nn=function(){this.$get=U},an=function(){var e=new Ht,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,i){return{enabled:U,on:U,off:U,pin:U,push:function(l,s,o,u){u&&u(),(o=o||{}).from&&l.css(o.from),o.to&&l.css(o.to),(o.addClass||o.removeClass)&&function(n,l,s){var o=e.get(n)||{},u=a(o,l,!0),c=a(o,s,!1);(u||c)&&(e.set(n,o),t.push(n),1===t.length&&i.$$postDigest(r))}(l,o.addClass,o.removeClass);var c=new n;return c.complete(),c}};function a(e,t,n){var i=!1;return t&&$(t=V(t)?t.split(" "):z(t)?t:[],(function(t){t&&(i=!0,e[t]=n)})),i}function r(){$(t,(function(t){var n=e.get(t);if(n){var i=function(e){V(e)&&(e=e.split(" "));var t=Pe();return $(e,(function(e){e.length&&(t[e]=!0)})),t}(t.attr("class")),a="",r="";$(n,(function(e,t){e!==!!i[t]&&(e?a+=(a.length?" ":"")+t:r+=(r.length?" ":"")+t)})),$(t,(function(e){a&&$t(e,a),r&&wt(e,r)})),e.delete(t)}})),t.length=0}}]},rn=["$provide",function(e){var t=this,n=null,i=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,i){if(n&&"."!==n.charAt(0))throw Zt("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var a=n+"-animation";t.$$registeredAnimations[n.substr(1)]=a,e.factory(a,i)},this.customFilter=function(e){return 1===arguments.length&&(i=G(e)?e:null),i},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){var t=new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]");if(t.test(n.toString()))throw n=null,Zt("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var i=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}(n);!i||i.parentNode||i.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.cancel&&e.cancel()},enter:function(n,i,a,r){return i=i&&s(i),a=a&&s(a),t(n,i=i||a.parent(),a),e.push(n,"enter",tn(r))},move:function(n,i,a,r){return i=i&&s(i),a=a&&s(a),t(n,i=i||a.parent(),a),e.push(n,"move",tn(r))},leave:function(t,n){return e.push(t,"leave",tn(n),(function(){t.remove()}))},addClass:function(t,n,i){return(i=tn(i)).addClass=en(i.addclass,n),e.push(t,"addClass",i)},removeClass:function(t,n,i){return(i=tn(i)).removeClass=en(i.removeClass,n),e.push(t,"removeClass",i)},setClass:function(t,n,i,a){return(a=tn(a)).addClass=en(a.addClass,n),a.removeClass=en(a.removeClass,i),e.push(t,"setClass",a)},animate:function(t,n,i,a,r){return(r=tn(r)).from=r.from?A(r.from,n):n,r.to=r.to?A(r.to,i):i,a=a||"ng-inline-animate",r.tempClasses=en(r.tempClasses,a),e.push(t,"animate",r)}}}]}],ln=function(){this.$get=["$$rAF",function(e){var t=[];function n(n){t.push(n),t.length>1||e((function(){for(var e=0;e<t.length;e++)t[e]();t=[]}))}return function(){var e=!1;return n((function(){e=!0})),function(t){e?t():n(t)}}}]},sn=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,i,a){function r(e){this.setHost(e);var t=n();this._doneCallbacks=[],this._tick=function(e){i()?function(e){a(e,0,!1)}(e):t(e)},this._state=0}return r.chain=function(e,t){var n=0;!function i(){if(n===e.length)return void t(!0);e[n]((function(e){!1!==e?(n++,i()):t(!1)}))}()},r.all=function(e,t){var n=0,i=!0;function a(a){i=i&&a,++n===e.length&&t(i)}$(e,(function(e){e.done(a)}))},r.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:U,getPromise:function(){if(!this.promise){var t=this;this.promise=e((function(e,n){t.done((function(t){!1===t?n():e()}))}))}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick((function(){t._resolve(e)})))},_resolve:function(e){2!==this._state&&($(this._doneCallbacks,(function(t){t(e)})),this._doneCallbacks.length=0,this._state=2)}},r}]},on=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,i){var a=i||{};a.$$prepared||(a=le(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var r,l=new n;return{start:s,end:s};function s(){return e((function(){!function(){a.addClass&&(t.addClass(a.addClass),a.addClass=null);a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null);a.to&&(t.css(a.to),a.to=null)}(),r||l.complete(),r=!0})),l}}}]};function un(e,t,n,i,a){var r=this,l=e.location,o=e.history,u=e.setTimeout,c=e.clearTimeout,f={},d=a(n);r.isMock=!1,r.$$completeOutstandingRequest=d.completeTask,r.$$incOutstandingRequestCount=d.incTaskCount,r.notifyWhenNoOutstandingRequests=d.notifyWhenNoPendingTasks;var p,m,h=l.href,g=t.find("base"),v=null,y=i.history?function(){try{return o.state}catch(e){}}:U;k(),r.url=function(t,n,a){if(R(a)&&(a=null),l!==e.location&&(l=e.location),o!==e.history&&(o=e.history),t){var s=m===a;if(t=oa(t).href,h===t&&(!i.history||s))return r;var u=h&&si(h)===si(t);return h=t,m=a,!i.history||u&&s?(u||(v=t),n?l.replace(t):u?l.hash=function(e){var t=e.indexOf("#");return-1===t?"":e.substr(t)}(t):l.href=t,l.href!==t&&(v=t)):(o[n?"replaceState":"pushState"](a,"",t),k()),v&&(v=t),r}return function(e){return e.replace(/#$/,"")}(v||l.href)},r.state=function(){return p};var b=[],_=!1;function C(){v=null,S()}var w=null;function k(){oe(p=R(p=y())?null:p,w)&&(p=w),w=p,m=p}function S(){var e=m;k(),h===r.url()&&e===p||(h=r.url(),m=p,$(b,(function(e){e(r.url(),p)})))}r.onUrlChange=function(t){return _||(i.history&&s(e).on("popstate",C),s(e).on("hashchange",C),_=!0),b.push(t),t},r.$$applicationDestroyed=function(){s(e).off("hashchange popstate",C)},r.$$checkUrlChange=S,r.baseHref=function(){var e=g.attr("href");return e?e.replace(/^(https?:)?\/\/[^/]*/,""):""},r.defer=function(e,t,n){var i;return t=t||0,n=n||d.DEFAULT_TASK_TYPE,d.incTaskCount(n),i=u((function(){delete f[i],d.completeTask(e,n)}),t),f[i]=n,i},r.defer.cancel=function(e){if(f.hasOwnProperty(e)){var t=f[e];return delete f[e],c(e),d.completeTask(U,t),!0}return!1}}function cn(){this.$get=["$window","$log","$sniffer","$document","$$taskTrackerFactory",function(e,t,n,i,a){return new un(e,i,t,n,a)}]}function fn(){this.$get=function(){var e={};function t(t,n){if(t in e)throw r("$cacheFactory")("iid","CacheId '{0}' is already taken!",t);var i=0,a=A({},n,{id:t}),l=Pe(),s=n&&n.capacity||Number.MAX_VALUE,o=Pe(),u=null,c=null;return e[t]={put:function(e,t){if(!R(t)){if(s<Number.MAX_VALUE)f(o[e]||(o[e]={key:e}));return e in l||i++,l[e]=t,i>s&&this.remove(c.key),t}},get:function(e){if(s<Number.MAX_VALUE){var t=o[e];if(!t)return;f(t)}return l[e]},remove:function(e){if(s<Number.MAX_VALUE){var t=o[e];if(!t)return;t===u&&(u=t.p),t===c&&(c=t.n),d(t.n,t.p),delete o[e]}e in l&&(delete l[e],i--)},removeAll:function(){l=Pe(),i=0,o=Pe(),u=c=null},destroy:function(){l=null,a=null,o=null,delete e[t]},info:function(){return A({},a,{size:i})}};function f(e){e!==u&&(c?c===e&&(c=e.n):c=e,d(e.n,e.p),d(e,u),(u=e).n=null)}function d(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}}return t.info=function(){var t={};return $(e,(function(e,n){t[n]=e.info()})),t},t.get=function(t){return e[t]},t}}function dn(){this.$get=["$cacheFactory",function(e){return e("templates")}]}var pn=r("$compile");var mn=new function(){};function hn(t,n){var i={},a=/^\s*directive:\s*([\w-]+)\s+(.*)$/,r=/(([\w-]+)(?::([^;]+))?;?)/,o=function(e){var t,n={},i=e.split(",");for(t=0;t<i.length;t++)n[i[t]]=!0;return n}("ngSrc,ngSrcset,src,srcset"),u=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,c=/^(on[a-z]+|formaction)$/,p=Pe();function m(e,t,n){var i=/^([@&]|[=<](\*?))(\??)\s*([\w$]*)$/,a=Pe();return $(e,(function(e,r){if((e=e.trim())in p)a[r]=p[e];else{var l=e.match(i);if(!l)throw pn("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,r,e,n?"controller bindings definition":"isolate scope definition");a[r]={mode:l[1][0],collection:"*"===l[2],optional:"?"===l[3],attrName:l[4]||r},l[4]&&(p[e]=a[r])}})),a}function h(e,t){var n={isolateScope:null,bindToController:null};if(F(e.scope)&&(!0===e.bindToController?(n.bindToController=m(e.scope,t,!0),n.isolateScope={}):n.isolateScope=m(e.scope,t,!1)),F(e.bindToController)&&(n.bindToController=m(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw pn("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}this.directive=function e(n,a){return qe(n,"name"),Ne(n,"directive"),V(n)?(!function(e){var t=e.charAt(0);if(!t||t!==d(t))throw pn("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw pn("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}(n),qe(a,"directiveFactory"),i.hasOwnProperty(n)||(i[n]=[],t.factory(n+"Directive",["$injector","$exceptionHandler",function(e,t){var a=[];return $(i[n],(function(i,r){try{var l=e.invoke(i);G(l)?l={compile:E(l)}:!l.compile&&l.link&&(l.compile=E(l.link)),l.priority=l.priority||0,l.index=r,l.name=l.name||n,l.require=function(e){var t=e.require||e.controller&&e.name;return!z(t)&&F(t)&&$(t,(function(e,n){var i=e.match(u);e.substring(i[0].length)||(t[n]=i[0]+n)})),t}(l),l.restrict=function(e,t){if(e&&(!V(e)||!/[EACM]/.test(e)))throw pn("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}(l.restrict,n),l.$$moduleName=i.$$moduleName,a.push(l)}catch(e){t(e)}})),a}])),i[n].push(a)):$(n,S(e)),this},this.component=function e(t,n){if(!V(t))return $(t,S(de(this,e))),this;var i=n.controller||function(){};function a(e){function t(t){return G(t)||z(t)?function(n,i){return e.invoke(t,this,{$element:n,$attrs:i})}:t}var a=n.template||n.templateUrl?n.template:"",r={controller:i,controllerAs:kn(n.controller)||n.controllerAs||"$ctrl",template:t(a),templateUrl:t(n.templateUrl),transclude:n.transclude,scope:{},bindToController:n.bindings||{},restrict:"E",require:n.require};return $(n,(function(e,t){"$"===t.charAt(0)&&(r[t]=e)})),r}return $(n,(function(e,t){"$"===t.charAt(0)&&(a[t]=e,G(i)&&(i[t]=e))})),a.$inject=["$injector"],this.directive(t,a)},this.aHrefSanitizationTrustedUrlList=function(e){return P(e)?(n.aHrefSanitizationTrustedUrlList(e),this):n.aHrefSanitizationTrustedUrlList()},Object.defineProperty(this,"aHrefSanitizationWhitelist",{get:function(){return this.aHrefSanitizationTrustedUrlList},set:function(e){this.aHrefSanitizationTrustedUrlList=e}}),this.imgSrcSanitizationTrustedUrlList=function(e){return P(e)?(n.imgSrcSanitizationTrustedUrlList(e),this):n.imgSrcSanitizationTrustedUrlList()},Object.defineProperty(this,"imgSrcSanitizationWhitelist",{get:function(){return this.imgSrcSanitizationTrustedUrlList},set:function(e){this.imgSrcSanitizationTrustedUrlList=e}});var g=!0;this.debugInfoEnabled=function(e){return P(e)?(g=e,this):g};var y=!1;this.strictComponentBindingsEnabled=function(e){return P(e)?(y=e,this):y};var b=10;this.onChangesTtl=function(e){return arguments.length?(b=e,this):b};var _=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(_=e,this):_};var C=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(C=e,this):C};var w=Pe();this.addPropertySecurityContext=function(e,t,n){var i=e.toLowerCase()+"|"+t.toLowerCase();if(i in w&&w[i]!==n)throw pn("ctxoverride","Property context '{0}.{1}' already set to '{2}', cannot override to '{3}'.",e,t,w[i],n);return w[i]=n,this},function(){function e(e,t){$(t,(function(t){w[t.toLowerCase()]=e}))}e(ji.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),e(ji.CSS,["*|style"]),e(ji.URL,["area|href","area|ping","a|href","a|ping","blockquote|cite","body|background","del|cite","input|src","ins|cite","q|cite"]),e(ji.MEDIA_URL,["audio|src","img|src","img|srcset","source|src","source|srcset","track|src","video|src","video|poster"]),e(ji.RESOURCE_URL,["*|formAction","applet|code","applet|codebase","base|href","embed|src","frame|src","form|action","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])}(),this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate",function(t,n,p,m,k,S,M,I,L){var O,T=/^\w/,x=e.document.createElement("div"),E=_,N=C,P=b;function H(){try{if(!--P)throw O=void 0,pn("infchng","{0} $onChanges() iterations reached. Aborting!\n",b);M.$apply((function(){for(var e=0,t=O.length;e<t;++e)try{O[e]()}catch(e){p(e)}O=void 0}))}finally{P++}}function B(e,t){if(!e)return e;if(!V(e))throw pn("srcset",'Can\'t pass trusted values to `{0}`: "{1}"',t,e.toString());for(var n="",i=ee(e),a=/\s/.test(i)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,r=i.split(a),l=Math.floor(r.length/2),s=0;s<l;s++){var o=2*s;n+=I.getTrustedMediaUrl(ee(r[o])),n+=" "+ee(r[o+1])}var u=ee(r[2*s]).split(/\s/);return n+=I.getTrustedMediaUrl(ee(u[0])),2===u.length&&(n+=" "+ee(u[1])),n}function j(e,t){if(t){var n,i,a,r=Object.keys(t);for(n=0,i=r.length;n<i;n++)this[a=r[n]]=t[a]}else this.$attr={};this.$$element=e}function W(e,t){try{e.addClass(t)}catch(e){}}j.prototype={$normalize:bn,$addClass:function(e){e&&e.length>0&&L.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&L.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=_n(e,t);n&&n.length&&L.addClass(this.$$element,n);var i=_n(t,e);i&&i.length&&L.removeClass(this.$$element,i)},$set:function(e,t,n,i){var a=Ut(this.$$element[0],e),r=Dt[e],l=e;a?(this.$$element.prop(e,t),i=a):r&&(this[r]=t,l=r),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=xe(e,"-")),"img"===ie(this.$$element)&&"srcset"===e&&(this[e]=t=B(t,"$set('srcset', value)")),!1!==n&&(null===t||R(t)?this.$$element.removeAttr(i):T.test(i)?a&&!1===t?this.$$element.removeAttr(i):this.$$element.attr(i,t):function(e,t,n){x.innerHTML="<span "+t+">";var i=x.firstChild.attributes,a=i[0];i.removeNamedItem(a.name),a.value=n,e.attributes.setNamedItem(a)}(this.$$element[0],i,t));var s=this.$$observers;s&&$(s[l],(function(e){try{e(t)}catch(e){p(e)}}))},$observe:function(e,t){var n=this,i=n.$$observers||(n.$$observers=Pe()),a=i[e]||(i[e]=[]);return a.push(t),M.$evalAsync((function(){a.$$inter||!n.hasOwnProperty(e)||R(n[e])||t(n[e])})),function(){re(a,t)}}};var K=n.startSymbol(),X=n.endSymbol(),Z="{{"===K&&"}}"===X?q:function(e){return e.replace(/\{\{/g,K).replace(/}}/g,X)},te=/^ng(Attr|Prop|On)([A-Z].*)$/,ne=/^(.+)Start$/;return ae.$$addBindingInfo=g?function(e,t){var n=e.data("$binding")||[];z(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:U,ae.$$addBindingClass=g?function(e){W(e,"ng-binding")}:U,ae.$$addScopeInfo=g?function(e,t,n,i){var a=n?i?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(a,t)}:U,ae.$$addScopeClass=g?function(e,t){W(e,t?"ng-isolate-scope":"ng-scope")}:U,ae.$$createComment=function(t,n){var i="";return g&&(i=" "+(t||"")+": ",n&&(i+=n+" ")),e.document.createComment(i)},ae;function ae(e,t,n,i,a){e instanceof s||(e=s(e));var r=le(e,t,e,n,i,a);ae.$$addScopeClass(e);var l=null;return function(t,n,i){if(!e)throw pn("multilink","This element has already been linked.");qe(t,"scope"),a&&a.needsNewScope&&(t=t.$parent.$new());var o,u,c,f=(i=i||{}).parentBoundTranscludeFn,d=i.transcludeControllers,p=i.futureParentElement;if(f&&f.$$boundTransclude&&(f=f.$$boundTransclude),l||(u=(o=p)&&o[0],l=u&&"foreignobject"!==ie(u)&&v.call(u).match(/SVG/)?"svg":"html"),c="html"!==l?s(Ie(l,s("<div></div>").append(e).html())):n?Ot.clone.call(e):e,d)for(var m in d)c.data("$"+m+"Controller",d[m].instance);return ae.$$addScopeInfo(c,t),n&&n(c,t),r&&r(t,c,c,f),n||(e=r=null),c}}function le(e,t,n,i,a,r){for(var o,u,c,f,d,p,m,h=[],g=z(e)||e instanceof s,v=0;v<e.length;v++)o=new j,11===l&&ue(e,v,g),(c=(u=pe(e[v],[],o,0===v?i:void 0,a)).length?ve(u,e[v],o,t,n,null,[],[],r):null)&&c.scope&&ae.$$addScopeClass(o.$$element),d=c&&c.terminal||!(f=e[v].childNodes)||!f.length?null:le(f,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||d)&&(h.push(v,c,d),p=!0,m=m||c),r=null;return p?function(e,n,i,a){var r,l,o,u,c,f,d,p,g;if(m){var v=n.length;for(g=new Array(v),c=0;c<h.length;c+=3)d=h[c],g[d]=n[d]}else g=n;for(c=0,f=h.length;c<f;)o=g[h[c++]],r=h[c++],l=h[c++],r?(r.scope?(u=e.$new(),ae.$$addScopeInfo(s(o),u)):u=e,p=r.transcludeOnThisElement?ce(e,r.transclude,a):!r.templateOnThisElement&&a?a:!a&&t?ce(e,t):null,r(l,u,o,i,p)):l&&l(e,o.childNodes,void 0,a)}:null}function ue(e,t,n){var i,a=e[t],r=a.parentNode;if(a.nodeType===He)for(;(i=r?a.nextSibling:e[t+1])&&i.nodeType===He;)a.nodeValue=a.nodeValue+i.nodeValue,i.parentNode&&i.parentNode.removeChild(i),n&&i===e[t+1]&&e.splice(t+1,1)}function ce(e,t,n){function i(i,a,r,l,s){return i||((i=e.$new(!1,s)).$$transcluded=!0),t(i,a,{parentBoundTranscludeFn:n,transcludeControllers:r,futureParentElement:l})}var a=i.$$slots=Pe();for(var r in t.$$slots)t.$$slots[r]?a[r]=ce(e,t.$$slots[r],n):a[r]=null;return i}function pe(e,t,i,l,s){var o,u,c,f=e.nodeType,d=i.$attr;switch(f){case 1:Ce(t,bn(u=ie(e)),"E",l,s);for(var p,m,h,g,v,y=e.attributes,b=0,_=y&&y.length;b<_;b++){var C,w=!1,$=!1,k=!1,S=!1,M=!1;m=(p=y[b]).name,g=p.value,(v=(h=bn(m.toLowerCase())).match(te))?(k="Attr"===v[1],S="Prop"===v[1],M="On"===v[1],m=m.replace(vn,"").toLowerCase().substr(4+v[1].length).replace(/_(.)/g,(function(e,t){return t.toUpperCase()}))):(C=h.match(ne))&&we(C[1])&&(w=m,$=m.substr(0,m.length-5)+"end",m=m.substr(0,m.length-6)),S||M?(i[h]=g,d[h]=p.name,S?Ae(e,t,h,m):Oe(t,h,m)):(d[h=bn(m.toLowerCase())]=m,!k&&i.hasOwnProperty(h)||(i[h]=g,Ut(e,h)&&(i[h]=!0)),Te(e,t,g,h,k),Ce(t,h,"A",l,s,w,$))}if("input"===u&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!N)break;if(F(c=e.className)&&(c=c.animVal),V(c)&&""!==c)for(;o=r.exec(c);)Ce(t,h=bn(o[2]),"C",l,s)&&(i[h]=ee(o[3])),c=c.substr(o.index+o[0].length);break;case He:!function(e,t){var i=n(t,!0);i&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&ae.$$addBindingClass(t),function(e,t){var a=t.parent();n||ae.$$addBindingClass(a),ae.$$addBindingInfo(a,i.expressions),e.$watch(i,(function(e){t[0].nodeValue=e}))}}})}(t,e.nodeValue);break;case 8:if(!E)break;!function(e,t,n,i,r){try{var l=a.exec(e.nodeValue);if(l){var s=bn(l[1]);Ce(t,s,"M",i,r)&&(n[s]=ee(l[2]))}}catch(e){}}(e,t,i,l,s)}return t.sort(Se),t}function me(e,t,n){var i=[],a=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw pn("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);1===e.nodeType&&(e.hasAttribute(t)&&a++,e.hasAttribute(n)&&a--),i.push(e),e=e.nextSibling}while(a>0);else i.push(e);return s(i)}function he(e,t,n){return function(i,a,r,l,s){return a=me(a[0],t,n),e(i,a,r,l,s)}}function ge(e,t,n,i,a,r){var l;return e?ae(t,n,i,a,r):function(){return l||(l=ae(t,n,i,a,r),t=n=r=null),l.apply(this,arguments)}}function ve(t,n,i,a,r,l,o,u,c){c=c||{};for(var f,d,m,h,g,v=-Number.MAX_VALUE,y=c.newScopeDirective,b=c.controllerDirectives,_=c.newIsolateScopeDirective,C=c.templateDirective,w=c.nonTlbTranscludeDirective,k=!1,M=!1,I=c.hasElementTranscludeDirective,L=i.$$element=s(n),O=l,T=a,x=!1,D=!1,U=0,q=t.length;U<q;U++){var E=(f=t[U]).$$start,N=f.$$end;if(E&&(L=me(n,E,N)),m=void 0,v>f.priority)break;if((g=f.scope)&&(f.templateUrl||(F(g)?(Me("new/isolated scope",_||y,f,L),_=f):Me("new/isolated scope",_,f,L)),y=y||f),d=f.name,!x&&(f.replace&&(f.templateUrl||f.template)||f.transclude&&!f.$$tlb)){for(var P,H=U+1;P=t[H++];)if(P.transclude&&!P.$$tlb||P.replace&&(P.templateUrl||P.template)){D=!0;break}x=!0}if(!f.templateUrl&&f.controller&&(b=b||Pe(),Me("'"+d+"' controller",b[d],f,L),b[d]=f),g=f.transclude)if(k=!0,f.$$tlb||(Me("transclusion",w,f,L),w=f),"element"===g)I=!0,v=f.priority,m=L,L=i.$$element=s(ae.$$createComment(d,i[d])),n=L[0],De(r,fe(m),n),T=ge(D,m,a,v,O&&O.name,{nonTlbTranscludeDirective:w});else{var V=Pe();if(F(g)){m=e.document.createDocumentFragment();var B=Pe(),Y=Pe();for(var W in $(g,(function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,B[e]=t,V[t]=null,Y[t]=n})),$(L.contents(),(function(t){var n=B[bn(ie(t))];n?(Y[n]=!0,V[n]=V[n]||e.document.createDocumentFragment(),V[n].appendChild(t)):m.appendChild(t)})),$(Y,(function(e,t){if(!e)throw pn("reqslot","Required transclusion slot `{0}` was not filled.",t)})),V)if(V[W]){var K=s(V[W].childNodes);V[W]=ge(D,K,a)}m=s(m.childNodes)}else m=s(pt(n)).contents();L.empty(),(T=ge(D,m,a,void 0,void 0,{needsNewScope:f.$$isolateScope||f.$$newScope})).$$slots=V}if(f.template)if(M=!0,Me("template",C,f,L),C=f,g=G(f.template)?f.template(L,i):f.template,g=Z(g),f.replace){if(O=f,m=ot(g)?[]:Cn(Ie(f.templateNamespace,ee(g))),n=m[0],1!==m.length||1!==n.nodeType)throw pn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",d,"");De(r,L,n);var J={$attr:{}},X=pe(n,[],J),te=t.splice(U+1,t.length-(U+1));(_||y)&&be(X,_,y),t=t.concat(X).concat(te),$e(i,J),q=t.length}else L.html(g);if(f.templateUrl)M=!0,Me("template",C,f,L),C=f,f.replace&&(O=f),le=ke(t.splice(U,t.length-U),L,i,r,k&&T,o,u,{controllerDirectives:b,newScopeDirective:y!==f&&y,newIsolateScopeDirective:_,templateDirective:C,nonTlbTranscludeDirective:w}),q=t.length;else if(f.compile)try{h=f.compile(L,i,T);var ne=f.$$originalDirective||f;G(h)?re(null,de(ne,h),E,N):h&&re(de(ne,h.pre),de(ne,h.post),E,N)}catch(e){p(e,_e(L))}f.terminal&&(le.terminal=!0,v=Math.max(v,f.priority))}return le.scope=y&&!0===y.scope,le.transcludeOnThisElement=k,le.templateOnThisElement=M,le.transclude=T,c.hasElementTranscludeDirective=I,le;function re(e,t,n,i){e&&(n&&(e=he(e,n,i)),e.require=f.require,e.directiveName=d,(_===f||f.$$isolateScope)&&(e=Ue(e,{isolateScope:!0})),o.push(e)),t&&(n&&(t=he(t,n,i)),t.require=f.require,t.directiveName=d,(_===f||f.$$isolateScope)&&(t=Ue(t,{isolateScope:!0})),u.push(t))}function le(e,t,a,r,l){var c,f,d,m,h,g,v,w,k,M;for(var L in n===a?(k=i,w=i.$$element):k=new j(w=s(a),i),h=t,_?m=t.$new(!0):y&&(h=t.$parent),l&&((v=function(e,t,n,i){var a;Q(e)||(i=n,n=t,t=e,e=void 0);I&&(a=g);n||(n=I?w.parent():w);if(!i)return l(e,t,a,n,D);var r=l.$$slots[i];if(r)return r(e,t,a,n,D);if(R(r))throw pn("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',i,_e(w))}).$$boundTransclude=l,v.isSlotFilled=function(e){return!!l.$$slots[e]}),b&&(g=function(e,t,n,i,a,r,l){var s=Pe();for(var o in i){var u=i[o],c={$scope:u===l||u.$$isolateScope?a:r,$element:e,$attrs:t,$transclude:n},f=u.controller;"@"===f&&(f=t[u.name]);var d=S(f,c,!0,u.controllerAs);s[u.name]=d,e.data("$"+u.name+"Controller",d.instance)}return s}(w,k,v,b,m,t,_)),_&&(ae.$$addScopeInfo(w,m,!0,!(C&&(C===_||C===_.$$originalDirective))),ae.$$addScopeClass(w,!0),m.$$isolateBindings=_.$$isolateBindings,(M=Re(t,k,m,m.$$isolateBindings,_)).removeWatches&&m.$on("$destroy",M.removeWatches)),g){var O=b[L],T=g[L],x=O.$$bindings.bindToController;T.instance=T(),w.data("$"+O.name+"Controller",T.instance),T.bindingInfo=Re(h,k,T.instance,x,O)}for($(b,(function(e,t){var n=e.require;e.bindToController&&!z(n)&&F(n)&&A(g[t].instance,ye(t,n,w,g))})),$(g,(function(e){var t=e.instance;if(G(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){p(e)}if(G(t.$onInit))try{t.$onInit()}catch(e){p(e)}G(t.$doCheck)&&(h.$watch((function(){t.$doCheck()})),t.$doCheck()),G(t.$onDestroy)&&h.$on("$destroy",(function(){t.$onDestroy()}))})),c=0,f=o.length;c<f;c++)Ee(d=o[c],d.isolateScope?m:t,w,k,d.require&&ye(d.directiveName,d.require,w,g),v);var D=t;for(_&&(_.template||null===_.templateUrl)&&(D=m),e&&e(D,a.childNodes,void 0,l),c=u.length-1;c>=0;c--)Ee(d=u[c],d.isolateScope?m:t,w,k,d.require&&ye(d.directiveName,d.require,w,g),v);$(g,(function(e){var t=e.instance;G(t.$postLink)&&t.$postLink()}))}}function ye(e,t,n,i){var a;if(V(t)){var r=t.match(u),l=t.substring(r[0].length),s=r[1]||r[3],o="?"===r[2];if("^^"===s?n=n.parent():a=(a=i&&i[l])&&a.instance,!a){var c="$"+l+"Controller";a="^^"===s&&n[0]&&9===n[0].nodeType?null:s?n.inheritedData(c):n.data(c)}if(!a&&!o)throw pn("ctreq","Controller '{0}', required by directive '{1}', can't be found!",l,e)}else if(z(t)){a=[];for(var f=0,d=t.length;f<d;f++)a[f]=ye(e,t[f],n,i)}else F(t)&&(a={},$(t,(function(t,r){a[r]=ye(e,t,n,i)})));return a||null}function be(e,t,n){for(var i=0,a=e.length;i<a;i++)e[i]=D(e[i],{$$isolateScope:t,$$newScope:n})}function Ce(e,n,a,r,l,s,o){if(n===l)return null;var u=null;if(i.hasOwnProperty(n))for(var c,f=t.get(n+"Directive"),d=0,p=f.length;d<p;d++)if(c=f[d],(R(r)||r>c.priority)&&-1!==c.restrict.indexOf(a)){if(s&&(c=D(c,{$$start:s,$$end:o})),!c.$$bindings){var m=c.$$bindings=h(c,c.name);F(m.isolateScope)&&(c.$$isolateBindings=m.isolateScope)}e.push(c),u=c}return u}function we(e){if(i.hasOwnProperty(e))for(var n=t.get(e+"Directive"),a=0,r=n.length;a<r;a++)if(n[a].multiElement)return!0;return!1}function $e(e,t){var n=t.$attr,i=e.$attr;$(e,(function(i,a){"$"!==a.charAt(0)&&(t[a]&&t[a]!==i&&(i.length?i+=("style"===a?";":" ")+t[a]:i=t[a]),e.$set(a,i,!0,n[a]))})),$(t,(function(t,a){e.hasOwnProperty(a)||"$"===a.charAt(0)||(e[a]=t,"class"!==a&&"style"!==a&&(i[a]=n[a]))}))}function ke(e,t,n,i,a,r,l,o){var u,c,f=[],d=t[0],h=e.shift(),g=D(h,{templateUrl:null,transclude:null,replace:null,$$originalDirective:h}),v=G(h.templateUrl)?h.templateUrl(t,n):h.templateUrl,y=h.templateNamespace;return t.empty(),m(v).then((function(p){var m,b,_,C;if(p=Z(p),h.replace){if(_=ot(p)?[]:Cn(Ie(y,ee(p))),m=_[0],1!==_.length||1!==m.nodeType)throw pn("tplrt","Template for directive '{0}' must have exactly one root element. {1}",h.name,v);b={$attr:{}},De(i,t,m);var w=pe(m,[],b);F(h.scope)&&be(w,!0),e=w.concat(e),$e(n,b)}else m=d,t.html(p);for(e.unshift(g),u=ve(e,m,n,a,t,h,r,l,o),$(i,(function(e,n){e===m&&(i[n]=t[0])})),c=le(t[0].childNodes,a);f.length;){var k=f.shift(),S=f.shift(),M=f.shift(),I=f.shift(),L=t[0];if(!k.$$destroyed){if(S!==d){var A=S.className;o.hasElementTranscludeDirective&&h.replace||(L=pt(m)),De(M,s(S),L),W(s(L),A)}C=u.transcludeOnThisElement?ce(k,u.transclude,I):I,u(c,k,L,i,C)}}f=null})).catch((function(e){Y(e)&&p(e)})),function(e,t,n,i,a){var r=a;t.$$destroyed||(f?f.push(t,n,i,r):(u.transcludeOnThisElement&&(r=ce(t,u.transclude,a)),u(c,t,n,i,r)))}}function Se(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function Me(e,t,n,i){function a(e){return e?" (module: "+e+")":""}if(t)throw pn("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,a(t.$$moduleName),n.name,a(n.$$moduleName),e,_e(i))}function Ie(t,n){switch(t=d(t||"html")){case"svg":case"math":var i=e.document.createElement("div");return i.innerHTML="<"+t+">"+n+"</"+t+">",i.childNodes[0].childNodes;default:return n}}function Le(e){return B(I.valueOf(e),"ng-prop-srcset")}function Ae(e,t,n,i){if(c.test(i))throw pn("nodomevents","Property bindings for HTML DOM event properties are disallowed");var a=ie(e),r=function(e,t){var n=t.toLowerCase();return w[e+"|"+n]||w["*|"+n]}(a,i),l=q;"srcset"!==i||"img"!==a&&"source"!==a?r&&(l=I.getTrusted.bind(I,r)):l=Le,t.push({priority:100,compile:function(e,t){var a=k(t[n]),r=k(t[n],(function(e){return I.valueOf(e)}));return{pre:function(e,t){function n(){var n=a(e);t[0][i]=l(n)}n(),e.$watch(r,n)}}}})}function Oe(e,t,n){e.push(Tr(k,M,p,t,n,!1))}function Te(e,t,i,a,r){var l=ie(e),s=function(e,t){return"srcdoc"===t?I.HTML:"src"===t||"ngSrc"===t?-1===["img","video","audio","source","track"].indexOf(e)?I.RESOURCE_URL:I.MEDIA_URL:"xlinkHref"===t?"image"===e?I.MEDIA_URL:"a"===e?I.URL:I.RESOURCE_URL:"form"===e&&"action"===t||"base"===e&&"href"===t||"link"===e&&"href"===t?I.RESOURCE_URL:"a"!==e||"href"!==t&&"ngHref"!==t?void 0:I.URL}(l,a),u=!r,f=o[a]||r,d=n(i,u,s,f);if(d){if("multiple"===a&&"select"===l)throw pn("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",_e(e));if(c.test(a))throw pn("nodomevents","Interpolations for HTML DOM event attributes are disallowed");t.push({priority:100,compile:function(){return{pre:function(e,t,r){var l=r.$$observers||(r.$$observers=Pe()),o=r[a];o!==i&&(d=o&&n(o,!0,s,f),i=o),d&&(r[a]=d(e),(l[a]||(l[a]=[])).$$inter=!0,(r.$$observers&&r.$$observers[a].$$scope||e).$watch(d,(function(e,t){"class"===a&&e!==t?r.$updateClass(e,t):r.$set(a,e)})))}}}})}}function De(t,n,i){var a,r,l=n[0],o=n.length,u=l.parentNode;if(t)for(a=0,r=t.length;a<r;a++)if(t[a]===l){t[a++]=i;for(var c=a,f=c+o-1,d=t.length;c<d;c++,f++)f<d?t[c]=t[f]:delete t[c];t.length-=o-1,t.context===l&&(t.context=i);break}u&&u.replaceChild(i,l);var p=e.document.createDocumentFragment();for(a=0;a<o;a++)p.appendChild(n[a]);for(s.hasData(l)&&(s.data(i,s.data(l)),s(l).off("$destroy")),s.cleanData(p.querySelectorAll("*")),a=1;a<o;a++)delete n[a];n[0]=i,n.length=1}function Ue(e,t){return A((function(){return e.apply(null,arguments)}),e,t)}function Ee(e,t,n,i,a,r){try{e(t,n,i,a,r)}catch(e){p(e,_e(n))}}function Ne(e,t){if(y)throw pn("missingattr","Attribute '{0}' of '{1}' is non-optional and must be set!",e,t)}function Re(e,t,i,a,r){var l,s=[],o={};function u(t,n,a){G(i.$onChanges)&&!se(n,a)&&(O||(e.$$postDigest(H),O=[]),l||(l={},O.push(c)),l[t]&&(a=l[t].previousValue),l[t]=new gn(a,n))}function c(){i.$onChanges(l),l=void 0}return $(a,(function(a,l){var c,d,p,m,h,g=a.attrName,v=a.optional;switch(a.mode){case"@":v||f.call(t,g)||(Ne(g,r.name),i[l]=t[g]=void 0),h=t.$observe(g,(function(e){if(V(e)||J(e)){var t=i[l];u(l,e,t),i[l]=e}})),t.$$observers[g].$$scope=e,V(c=t[g])?i[l]=n(c)(e):J(c)&&(i[l]=c),o[l]=new gn(mn,i[l]),s.push(h);break;case"=":if(!f.call(t,g)){if(v)break;Ne(g,r.name),t[g]=void 0}if(v&&!t[g])break;d=k(t[g]),m=d.literal?oe:se,p=d.assign||function(){throw c=i[l]=d(e),pn("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[g],g,r.name)},c=i[l]=d(e);var y=function(t){return m(t,i[l])||(m(t,c)?p(e,t=i[l]):i[l]=t),c=t};y.$stateful=!0,h=a.collection?e.$watchCollection(t[g],y):e.$watch(k(t[g],y),null,d.literal),s.push(h);break;case"<":if(!f.call(t,g)){if(v)break;Ne(g,r.name),t[g]=void 0}if(v&&!t[g])break;var b=(d=k(t[g])).literal,_=i[l]=d(e);o[l]=new gn(mn,i[l]),h=e[a.collection?"$watchCollection":"$watch"](d,(function(e,t){if(t===e){if(t===_||b&&oe(t,_))return;t=_}u(l,e,t),i[l]=e})),s.push(h);break;case"&":if(v||f.call(t,g)||Ne(g,r.name),(d=t.hasOwnProperty(g)?k(t[g]):U)===U&&v)break;i[l]=function(t){return d(e,t)}}})),{initialChanges:o,removeWatches:s.length&&function(){for(var e=0,t=s.length;e<t;++e)s[e]()}}}}]}function gn(e,t){this.previousValue=e,this.currentValue=t}hn.$inject=["$provide","$$sanitizeUriProvider"],gn.prototype.isFirstChange=function(){return this.previousValue===mn};var vn=/^((?:x|data)[:\-_])/i,yn=/[:\-_]+(.)/g;function bn(e){return e.replace(vn,"").replace(yn,(function(e,t,n){return n?t.toUpperCase():t}))}function _n(e,t){var n="",i=e.split(/\s+/),a=t.split(/\s+/);e:for(var r=0;r<i.length;r++){for(var l=i[r],s=0;s<a.length;s++)if(l===a[s])continue e;n+=(n.length>0?" ":"")+l}return n}function Cn(e){var t=(e=s(e)).length;if(t<=1)return e;for(;t--;){var n=e[t];(8===n.nodeType||n.nodeType===He&&""===n.nodeValue.trim())&&h.call(e,t,1)}return e}var wn=r("$controller"),$n=/^(\S+)(\s+as\s+([\w$]+))?$/;function kn(e,t){if(t&&V(t))return t;if(V(e)){var n=$n.exec(e);if(n)return n[3]}}function Sn(){var e={};this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){Ne(t,"controller"),F(t)?A(e,t):e[t]=n},this.$get=["$injector",function(t){return function(i,a,r,l){var s,o,u,c;if(r=!0===r,l&&V(l)&&(c=l),V(i)){if(!(o=i.match($n)))throw wn("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",i);if(u=o[1],c=c||o[3],!(i=e.hasOwnProperty(u)?e[u]:function(e,t,n){if(!t)return e;for(var i,a=t.split("."),r=e,l=a.length,s=0;s<l;s++)i=a[s],e&&(e=(r=e)[i]);return!n&&G(e)?de(r,e):e}(a.$scope,u,!0)))throw wn("ctrlreg","The controller with the name '{0}' is not registered.",u);Ee(i,u,!0)}if(r){var f=(z(i)?i[i.length-1]:i).prototype;return s=Object.create(f||null),c&&n(a,c,s,u||i.name),A((function(){var e=t.invoke(i,s,a,u);return e!==s&&(F(e)||G(e))&&(s=e,c&&n(a,c,s,u||i.name)),s}),{instance:s,identifier:c})}return s=t.instantiate(i,a,u),c&&n(a,c,s,u||i.name),s};function n(e,t,n,i){if(!e||!F(e.$scope))throw r("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,t);e.$scope[t]=n}}]}function Mn(){this.$get=["$window",function(e){return s(e.document)}]}function In(){this.$get=["$document","$rootScope",function(e,t){var n=e[0],i=n&&n.hidden;function a(){i=n.hidden}return e.on("visibilitychange",a),t.$on("$destroy",(function(){e.off("visibilitychange",a)})),function(){return i}}]}function Ln(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}var An=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof s&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},On={"Content-Type":"application/json;charset=utf-8"},Tn=/^\[|^\{(?!\{)/,xn={"[":/]$/,"{":/}$/},Dn=/^\)]\}',?\n/,Un=r("$http");function qn(e){return F(e)?j(e)?e.toISOString():me(e):e}function En(){this.$get=function(){return function(e){if(!e)return"";var t=[];return k(e,(function(e,n){null===e||R(e)||G(e)||(z(e)?$(e,(function(e){t.push(ke(n)+"="+ke(qn(e)))})):t.push(ke(n)+"="+ke(qn(e))))})),t.join("&")}}}function Nn(){this.$get=function(){return function(e){if(!e)return"";var t=[];return function e(n,i,a){z(n)?$(n,(function(t,n){e(t,i+"["+(F(t)?n:"")+"]")})):F(n)&&!j(n)?k(n,(function(t,n){e(t,i+(a?"":"[")+n+(a?"":"]"))})):(G(n)&&(n=n()),t.push(ke(i)+"="+(null==n?"":ke(qn(n)))))}(e,"",!0),t.join("&")}}}function Rn(e,t){if(V(e)){var n=e.replace(Dn,"").trim();if(n){var i=t("Content-Type"),a=i&&0===i.indexOf("application/json");if(a||(l=(r=n).match(Tn))&&xn[l[0]].test(r))try{e=he(n)}catch(t){if(!a)return e;throw Un("baddata",'Data must be a valid JSON object. Received: "{0}". Parse error: "{1}"',e,t)}}}var r,l;return e}function Pn(e){var t,n=Pe();function i(e,t){e&&(n[e]=n[e]?n[e]+", "+t:t)}return V(e)?$(e.split("\n"),(function(e){t=e.indexOf(":"),i(d(ee(e.substr(0,t))),ee(e.substr(t+1)))})):F(e)&&$(e,(function(e,t){i(d(t),ee(e))})),n}function Fn(e){var t;return function(n){if(t||(t=Pn(e)),n){var i=t[d(n)];return void 0===i&&(i=null),i}return t}}function Hn(e,t,n,i){return G(i)?i(e,t,n):($(i,(function(i){e=i(e,t,n)})),e)}function Vn(e){return 200<=e&&e<300}function Bn(){var e=this.defaults={transformResponse:[Rn],transformRequest:[function(e){return!F(e)||(t=e,"[object File]"===v.call(t))||function(e){return"[object Blob]"===v.call(e)}(e)||function(e){return"[object FormData]"===v.call(e)}(e)?e:me(e);var t}],headers:{common:{Accept:"application/json, text/plain, */*"},post:Ve(On),put:Ve(On),patch:Ve(On)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},t=!1;this.useApplyAsync=function(e){return P(e)?(t=!!e,this):t};var n=this.interceptors=[],i=this.xsrfTrustedOrigins=[];Object.defineProperty(this,"xsrfWhitelistedOrigins",{get:function(){return this.xsrfTrustedOrigins},set:function(e){this.xsrfTrustedOrigins=e}}),this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(a,l,s,o,u,c,f,m){var h=o("$http");e.paramSerializer=V(e.paramSerializer)?f.get(e.paramSerializer):e.paramSerializer;var g=[];$(n,(function(e){g.unshift(V(e)?f.get(e):f.invoke(e))}));var v,y=(v=[la].concat(i.map(oa)),function(e){var t=oa(e);return v.some(ua.bind(null,t))});function b(n){if(!F(n))throw r("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!V(m.valueOf(n.url)))throw r("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var i=A({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);i.headers=function(t){var n,i,a,r=e.headers,l=A({},t.headers);r=A({},r.common,r[d(t.method)]);e:for(n in r){for(a in i=d(n),l)if(d(a)===i)continue e;l[n]=r[n]}return function(e,t){var n,i={};return $(e,(function(e,a){G(e)?null!=(n=e(t))&&(i[a]=n):i[a]=e})),i}(l,Ve(t))}(n),i.method=p(i.method),i.paramSerializer=V(i.paramSerializer)?f.get(i.paramSerializer):i.paramSerializer,a.$$incOutstandingRequestCount("$http");var o=[],v=[],_=c.resolve(i);return $(g,(function(e){(e.request||e.requestError)&&o.unshift(e.request,e.requestError),(e.response||e.responseError)&&v.push(e.response,e.responseError)})),_=C(_,o),_=(_=C(_=_.then((function(n){var i=n.headers,a=Hn(n.data,Fn(i),void 0,n.transformRequest);R(a)&&$(i,(function(e,t){"content-type"===d(t)&&delete i[t]}));R(n.withCredentials)&&!R(e.withCredentials)&&(n.withCredentials=e.withCredentials);return function(n,i){var a,r,o=c.defer(),f=o.promise,p=n.headers,g="jsonp"===d(n.method),v=n.url;g?v=m.getTrustedResourceUrl(v):V(v)||(v=m.valueOf(v));v=function(e,t){t.length>0&&(e+=(-1===e.indexOf("?")?"?":"&")+t);return e}(v,n.paramSerializer(n.params)),g&&(v=function(e,t){var n=e.split("?");if(n.length>2)throw Un("badjsonp",'Illegal use more than one "?", in url, "{1}"',e);return $(we(n[1]),(function(n,i){if("JSON_CALLBACK"===n)throw Un("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(i===t)throw Un("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e)})),e+=(-1===e.indexOf("?")?"?":"&")+t+"=JSON_CALLBACK"}(v,n.jsonpCallbackParam));b.pendingRequests.push(n),f.then(S,S),!n.cache&&!e.cache||!1===n.cache||"GET"!==n.method&&"JSONP"!==n.method||(a=F(n.cache)?n.cache:F(e.cache)?e.cache:h);a&&(P(r=a.get(v))?X(r)?r.then(k,k):z(r)?w(r[1],r[0],Ve(r[2]),r[3],r[4]):w(r,200,{},"OK","complete"):a.put(v,f));if(R(r)){var _=y(n.url)?s()[n.xsrfCookieName||e.xsrfCookieName]:void 0;_&&(p[n.xsrfHeaderName||e.xsrfHeaderName]=_),l(n.method,v,i,(function(e,n,i,r,l){a&&(Vn(e)?a.put(v,[e,n,Pn(i),r,l]):a.remove(v));function s(){w(n,e,i,r,l)}t?u.$applyAsync(s):(s(),u.$$phase||u.$apply())}),p,n.timeout,n.withCredentials,n.responseType,C(n.eventHandlers),C(n.uploadEventHandlers))}return f;function C(e){if(e){var n={};return $(e,(function(e,i){n[i]=function(n){function i(){e(n)}t?u.$applyAsync(i):u.$$phase?i():u.$apply(i)}})),n}}function w(e,t,i,a,r){(Vn(t=t>=-1?t:0)?o.resolve:o.reject)({data:e,status:t,headers:Fn(i),config:n,statusText:a,xhrStatus:r})}function k(e){w(e.data,e.status,Ve(e.headers()),e.statusText,e.xhrStatus)}function S(){var e=b.pendingRequests.indexOf(n);-1!==e&&b.pendingRequests.splice(e,1)}}(n,a).then(w,w)})),v)).finally((function(){a.$$completeOutstandingRequest(U,"$http")}));function C(e,t){for(var n=0,i=t.length;n<i;){var a=t[n++],r=t[n++];e=e.then(a,r)}return t.length=0,e}function w(e){var t=A({},e);return t.data=Hn(e.data,e.headers,e.status,i.transformResponse),Vn(e.status)?t:c.reject(t)}}return b.pendingRequests=[],function(e){$(arguments,(function(e){b[e]=function(t,n){return b(A({},n||{},{method:e,url:t}))}}))}("get","delete","head","jsonp"),function(e){$(arguments,(function(e){b[e]=function(t,n,i){return b(A({},i||{},{method:e,url:t,data:n}))}}))}("post","put","patch"),b.defaults=e,b}]}function jn(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function zn(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,i){return function(e,t,n,i,a){return function(r,l,s,o,u,c,f,p,m,h){if(l=l||e.url(),"jsonp"===d(r))var g=i.createCallback(l),v=function(e,t,n){e=e.replace("JSON_CALLBACK",t);var r=a.createElement("script"),l=null;return r.type="text/javascript",r.src=e,r.async=!0,l=function(e){r.removeEventListener("load",l),r.removeEventListener("error",l),a.body.removeChild(r),r=null;var s=-1,o="unknown";e&&("load"!==e.type||i.wasCalled(t)||(e={type:"error"}),o=e.type,s="error"===e.type?404:200),n&&n(s,o)},r.addEventListener("load",l),r.addEventListener("error",l),a.body.appendChild(r),l}(l,g,(function(e,t){var n=200===e&&i.getResponse(g);w(o,e,n,"",t,"complete"),i.removeCallback(g)}));else{var y=t(r,l),b=!1;y.open(r,l,!0),$(u,(function(e,t){P(e)&&y.setRequestHeader(t,e)})),y.onload=function(){var e=y.statusText||"",t="response"in y?y.response:y.responseText,n=1223===y.status?204:y.status;0===n&&(n=t?200:"file"===oa(l).protocol?404:0),w(o,n,t,y.getAllResponseHeaders(),e,"complete")};if(y.onerror=function(){w(o,-1,null,null,"","error")},y.ontimeout=function(){w(o,-1,null,null,"","timeout")},y.onabort=function(){w(o,-1,null,null,"",b?"timeout":"abort")},$(m,(function(e,t){y.addEventListener(t,e)})),$(h,(function(e,t){y.upload.addEventListener(t,e)})),f&&(y.withCredentials=!0),p)try{y.responseType=p}catch(e){if("json"!==p)throw e}y.send(R(s)?null:s)}if(c>0)var _=n((function(){C("timeout")}),c);else X(c)&&c.then((function(){C(P(c.$$timeoutId)?"timeout":"abort")}));function C(e){b="timeout"===e,v&&v(),y&&y.abort()}function w(e,t,i,a,r,l){P(_)&&n.cancel(_),v=y=null,e(t,i,a,r,l)}}}(e,i,e.defer,t,n[0])}]}var Yn=_.$interpolateMinErr=r("$interpolate");function Gn(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,i,a){var r=e.length,l=t.length,s=new RegExp(e.replace(/./g,u),"g"),o=new RegExp(t.replace(/./g,u),"g");function u(e){return"\\\\\\"+e}function c(n){return n.replace(s,e).replace(o,t)}function f(e,t,n,i){var a=e.$watch((function(e){return a(),i(e)}),t,n);return a}function d(s,o,u,d){var p=u===a.URL||u===a.MEDIA_URL;if(!s.length||-1===s.indexOf(e)){if(o)return;var m=c(s);p&&(m=a.getTrusted(u,m));var h=E(m);return h.exp=s,h.expressions=[],h.$$watchDelegate=f,h}d=!!d;for(var g,v,y,b,_,C=0,w=[],$=s.length,k=[],S=[];C<$;){if(-1===(g=s.indexOf(e,C))||-1===(v=s.indexOf(t,g+r))){C!==$&&k.push(c(s.substring(C)));break}C!==g&&k.push(c(s.substring(C,g))),b=s.substring(g+r,v),w.push(b),C=v+l,S.push(k.length),k.push("")}_=1===k.length&&1===S.length;var M=p&&_?void 0:function(e){try{return e=u&&!p?a.getTrusted(u,e):a.valueOf(e),d&&!P(e)?e:Fe(e)}catch(e){i(Yn.interr(s,e))}};if(y=w.map((function(e){return n(e,M)})),!o||w.length){var I=function(e){for(var t=0,n=w.length;t<n;t++){if(d&&R(e[t]))return;k[S[t]]=e[t]}return p?a.getTrusted(u,_?k[0]:k.join("")):(u&&k.length>1&&Yn.throwNoconcat(s),k.join(""))};return A((function(e){var t=0,n=w.length,a=new Array(n);try{for(;t<n;t++)a[t]=y[t](e);return I(a)}catch(e){i(Yn.interr(s,e))}}),{exp:s,expressions:w,$$watchDelegate:function(e,t){var n;return e.$watchGroup(y,(function(i,a){var r=I(i);t.call(this,r,i!==a?n:r,e),n=r}))}})}}return d.startSymbol=function(){return e},d.endSymbol=function(){return t},d}]}Yn.throwNoconcat=function(e){throw Yn("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},Yn.interr=function(e,t){return Yn("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var Wn=r("$interval");function Kn(){this.$get=["$$intervalFactory","$window",function(e,t){var n={},i=function(e){t.clearInterval(e),delete n[e]},a=e((function(e,i,a){var r=t.setInterval(e,i);return n[r]=a,r}),i);return a.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$intervalId"))throw Wn("badprom","`$interval.cancel()` called with a promise that was not generated by `$interval()`.");if(!n.hasOwnProperty(e.$$intervalId))return!1;var t=e.$$intervalId,a=n[t];return Pi(a.promise),a.reject("canceled"),i(t),!0},a}]}function Qn(){this.$get=["$browser","$q","$$q","$rootScope",function(e,t,n,i){return function(a,r){return function(l,s,o,u){var c=arguments.length>4,f=c?fe(arguments,4):[],d=0,p=P(u)&&!u,m=(p?n:t).defer(),h=m.promise;function g(){c?l.apply(null,f):l(d)}function v(){p?e.defer(g):i.$evalAsync(g),m.notify(d++),o>0&&d>=o&&(m.resolve(d),r(h.$$intervalId)),p||i.$apply()}return o=P(o)?o:0,h.$$intervalId=a(v,s,m,p),h}}}]}var Jn=function(){this.$get=function(){var e=_.callbacks,t={};return{createCallback:function(n){var i="_"+(e.$$counter++).toString(36),a="angular.callbacks."+i,r=function(e){var t=function e(t){e.data=t,e.called=!0};return t.id=e,t}(i);return t[a]=e[i]=r,a},wasCalled:function(e){return t[e].called},getResponse:function(e){return t[e].data},removeCallback:function(n){var i=t[n];delete e[i.id],delete t[n]}}}},Xn=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,Zn={http:80,https:443,ftp:21},ei=r("$location");function ti(e,t,n){var i,a=(i=[],$(t,(function(e,t){z(e)?$(e,(function(e){i.push(ke(t,!0)+(!0===e?"":"="+ke(e,!0)))})):i.push(ke(t,!0)+(!0===e?"":"="+ke(e,!0)))})),i.length?i.join("&"):""),r=n?"#"+$e(n):"";return function(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=$e(t[n].replace(/%2F/g,"/"));return t.join("/")}(e)+(a?"?"+a:"")+r}function ni(e,t){var n=oa(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=T(n.port)||Zn[n.protocol]||null}var ii=/^\s*[\\/]{2,}/;function ai(e,t,n){if(ii.test(e))throw ei("badpath",'Invalid url "{0}".',e);var i="/"!==e.charAt(0);i&&(e="/"+e);var a=oa(e),r=i&&"/"===a.pathname.charAt(0)?a.pathname.substring(1):a.pathname;t.$$path=function(e,t){for(var n=e.split("/"),i=n.length;i--;)n[i]=decodeURIComponent(n[i]),t&&(n[i]=n[i].replace(/\//g,"%2F"));return n.join("/")}(r,n),t.$$search=we(a.search),t.$$hash=decodeURIComponent(a.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function ri(e,t){return e.slice(0,t.length)===t}function li(e,t){if(ri(t,e))return t.substr(e.length)}function si(e){var t=e.indexOf("#");return-1===t?e:e.substr(0,t)}function oi(e,t,n){this.$$html5=!0,n=n||"",ni(e,this),this.$$parse=function(e){var n=li(t,e);if(!V(n))throw ei("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);ai(n,this,!0),this.$$path||(this.$$path="/"),this.$$compose()},this.$$normalizeUrl=function(e){return t+e.substr(1)},this.$$parseLinkUrl=function(i,a){return a&&"#"===a[0]?(this.hash(a.slice(1)),!0):(P(r=li(e,i))?(l=r,s=n&&P(r=li(n,r))?t+(li("/",r)||r):e+l):P(r=li(t,i))?s=t+r:t===i+"/"&&(s=t),s&&this.$$parse(s),!!s);var r,l,s}}function ui(e,t,n){ni(e,this),this.$$parse=function(i){var a,r=li(e,i)||li(t,i);R(r)||"#"!==r.charAt(0)?this.$$html5?a=r:(a="",R(r)&&(e=i,this.replace())):R(a=li(n,r))&&(a=r),ai(a,this,!1),this.$$path=function(e,t,n){var i,a=/^\/[A-Z]:(\/.*)/;ri(t,n)&&(t=t.replace(n,""));if(a.exec(t))return e;return(i=a.exec(e))?i[1]:e}(this.$$path,a,e),this.$$compose()},this.$$normalizeUrl=function(t){return e+(t?n+t:"")},this.$$parseLinkUrl=function(t,n){return si(e)===si(t)&&(this.$$parse(t),!0)}}function ci(e,t,n){this.$$html5=!0,ui.apply(this,arguments),this.$$parseLinkUrl=function(i,a){return a&&"#"===a[0]?(this.hash(a.slice(1)),!0):(e===si(i)?r=i:(l=li(t,i))?r=e+n+l:t===i+"/"&&(r=t),r&&this.$$parse(r),!!r);var r,l},this.$$normalizeUrl=function(t){return e+n+t}}var fi={$$absUrl:"",$$html5:!1,$$replace:!1,$$compose:function(){this.$$url=ti(this.$$path,this.$$search,this.$$hash),this.$$absUrl=this.$$normalizeUrl(this.$$url),this.$$urlUpdatedByLocation=!0},absUrl:di("$$absUrl"),url:function(e){if(R(e))return this.$$url;var t=Xn.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:di("$$protocol"),host:di("$$host"),port:di("$$port"),path:pi("$$path",(function(e){return"/"===(e=null!==e?e.toString():"").charAt(0)?e:"/"+e})),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(V(e)||B(e))e=e.toString(),this.$$search=we(e);else{if(!F(e))throw ei("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");$(e=le(e,{}),(function(t,n){null==t&&delete e[n]})),this.$$search=e}break;default:R(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:pi("$$hash",(function(e){return null!==e?e.toString():""})),replace:function(){return this.$$replace=!0,this}};function di(e){return function(){return this[e]}}function pi(e,t){return function(n){return R(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function mi(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return P(t)?(e=t,this):e},this.html5Mode=function(e){return J(e)?(t.enabled=e,this):F(e)?(J(e.enabled)&&(t.enabled=e.enabled),J(e.requireBase)&&(t.requireBase=e.requireBase),(J(e.rewriteLinks)||V(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,a,r,l){var o,u,c,f,d=i.baseHref(),p=i.url();if(t.enabled){if(!d&&t.requireBase)throw ei("nobase","$location in HTML5 mode requires a <base> tag to be present!");c=(f=p).substring(0,f.indexOf("/",f.indexOf("//")+2))+(d||"/"),u=a.history?oi:ci}else c=si(p),u=ui;var m=function(e){return e.substr(0,si(e).lastIndexOf("/")+1)}(c);(o=new u(c,m,"#"+e)).$$parseLinkUrl(p,p),o.$$state=i.state();var h=/^\s*(javascript|mailto):/i;function g(e,t,n){var a=o.url(),r=o.$$state;try{i.url(e,t,n),o.$$state=i.state()}catch(e){throw o.url(a),o.$$state=r,e}}r.on("click",(function(e){var a=t.rewriteLinks;if(a&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var l=s(e.target);"a"!==ie(l[0]);)if(l[0]===r[0]||!(l=l.parent())[0])return;if(!V(a)||!R(l.attr(a))){var u=l.prop("href"),c=l.attr("href")||l.attr("xlink:href");F(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=oa(u.animVal).href),h.test(u)||!u||l.attr("target")||e.isDefaultPrevented()||o.$$parseLinkUrl(u,c)&&(e.preventDefault(),o.absUrl()!==i.url()&&n.$apply())}}})),o.absUrl()!==p&&i.url(o.absUrl(),!0);var v=!0;return i.onUrlChange((function(e,t){ri(e,m)?(n.$evalAsync((function(){var i,a=o.absUrl(),r=o.$$state;o.$$parse(e),o.$$state=t,i=n.$broadcast("$locationChangeStart",e,a,t,r).defaultPrevented,o.absUrl()===e&&(i?(o.$$parse(a),o.$$state=r,g(a,!1,r)):(v=!1,y(a,r)))})),n.$$phase||n.$digest()):l.location.href=e})),n.$watch((function(){if(v||o.$$urlUpdatedByLocation){o.$$urlUpdatedByLocation=!1;var e=i.url(),t=o.absUrl(),r=i.state(),l=o.$$replace,s=!((u=e)===(c=t)||oa(u).href===oa(c).href)||o.$$html5&&a.history&&r!==o.$$state;(v||s)&&(v=!1,n.$evalAsync((function(){var t=o.absUrl(),i=n.$broadcast("$locationChangeStart",t,e,o.$$state,r).defaultPrevented;o.absUrl()===t&&(i?(o.$$parse(e),o.$$state=r):(s&&g(t,l,r===o.$$state?null:o.$$state),y(e,r)))})))}var u,c;o.$$replace=!1})),o;function y(e,t){n.$broadcast("$locationChangeSuccess",o.absUrl(),e,o.$$state,t)}}]}function hi(){var e=!0,t=this;this.debugEnabled=function(t){return P(t)?(e=t,this):e},this.$get=["$window",function(n){var i,a=l||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:s("log"),info:s("info"),warn:s("warn"),error:s("error"),debug:(i=s("debug"),function(){e&&i.apply(t,arguments)})};function r(e){return Y(e)&&(e.stack&&a?e=e.message&&-1===e.stack.indexOf(e.message)?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function s(e){var t=n.console||{},i=t[e]||t.log||U;return function(){var e=[];return $(arguments,(function(t){e.push(r(t))})),Function.prototype.apply.call(i,t,e)}}}]}$([ci,ui,oi],(function(e){e.prototype=Object.create(fi),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==oi||!this.$$html5)throw ei("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=R(t)?null:t,this.$$urlUpdatedByLocation=!0,this}}));var gi=r("$parse"),vi={}.constructor.prototype.valueOf;function yi(e){return e+""}var bi=Pe();$("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),(function(e){bi[e]=!0}));var _i={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Ci=function(e){this.options=e};Ci.prototype={constructor:Ci,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),i=n+this.peek(2),a=bi[t],r=bi[n],l=bi[i];if(a||r||l){var s=l?i:r?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return-1!==t.indexOf(e)},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),i=t.charCodeAt(0);return n>=55296&&n<=56319&&i>=56320&&i<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){n=n||this.index;var i=P(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n;throw gi("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,i,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=d(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var i=this.peek();if("e"===n&&this.isExpOperator(i))e+=n;else if(this.isExpOperator(n)&&i&&this.isNumber(i)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||i&&this.isNumber(i)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",i=e,a=!1;this.index<this.text.length;){var r=this.text.charAt(this.index);if(i+=r,a){if("u"===r){var l=this.text.substring(this.index+1,this.index+5);l.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+l+"]"),this.index+=4,n+=String.fromCharCode(parseInt(l,16))}else{n+=_i[r]||r}a=!1}else if("\\"===r)a=!0;else{if(r===e)return this.index++,void this.tokens.push({index:t,text:i,constant:!0,value:n});n+=r}this.index++}this.throwError("Unterminated quote",t)}};var wi=function(e,t){this.lexer=e,this.options=t};function $i(e,t){return void 0!==e?e:t}function ki(e,t){return void 0===e?t:void 0===t?e:e+t}wi.Program="Program",wi.ExpressionStatement="ExpressionStatement",wi.AssignmentExpression="AssignmentExpression",wi.ConditionalExpression="ConditionalExpression",wi.LogicalExpression="LogicalExpression",wi.BinaryExpression="BinaryExpression",wi.UnaryExpression="UnaryExpression",wi.CallExpression="CallExpression",wi.MemberExpression="MemberExpression",wi.Identifier="Identifier",wi.Literal="Literal",wi.ArrayExpression="ArrayExpression",wi.Property="Property",wi.ObjectExpression="ObjectExpression",wi.ThisExpression="ThisExpression",wi.LocalsExpression="LocalsExpression",wi.NGValueParameter="NGValueParameter",wi.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:wi.Program,body:e}},expressionStatement:function(){return{type:wi.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!Ii(e))throw gi("lval","Trying to assign a value to a non l-value");e={type:wi.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:wi.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:wi.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:wi.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:wi.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:wi.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:wi.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:wi.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:wi.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e,t;for(this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=le(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:wi.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());t=this.expect("(","[",".");)"("===t.text?(e={type:wi.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:wi.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:wi.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:wi.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:wi.Identifier,name:e.text}},constant:function(){return{type:wi.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:wi.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:wi.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:wi.ObjectExpression,properties:t}},throwError:function(e,t){throw gi("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw gi("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw gi("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,i){return this.peekAhead(0,e,t,n,i)},peekAhead:function(e,t,n,i,a){if(this.tokens.length>e){var r=this.tokens[e],l=r.text;if(l===t||l===n||l===i||l===a||!t&&!n&&!i&&!a)return r}return!1},expect:function(e,t,n,i){var a=this.peek(e,t,n,i);return!!a&&(this.tokens.shift(),a)},selfReferential:{this:{type:wi.ThisExpression},$locals:{type:wi.LocalsExpression}}};function Si(e,t,n){var i,a,r,l=e.isPure=function(e,t){switch(e.type){case wi.MemberExpression:if(e.computed)return!1;break;case wi.UnaryExpression:return 1;case wi.BinaryExpression:return"+"!==e.operator&&1;case wi.CallExpression:return!1}return void 0===t?2:t}(e,n);switch(e.type){case wi.Program:i=!0,$(e.body,(function(e){Si(e.expression,t,l),i=i&&e.expression.constant})),e.constant=i;break;case wi.Literal:e.constant=!0,e.toWatch=[];break;case wi.UnaryExpression:Si(e.argument,t,l),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case wi.BinaryExpression:Si(e.left,t,l),Si(e.right,t,l),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case wi.LogicalExpression:Si(e.left,t,l),Si(e.right,t,l),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case wi.ConditionalExpression:Si(e.test,t,l),Si(e.alternate,t,l),Si(e.consequent,t,l),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case wi.Identifier:e.constant=!1,e.toWatch=[e];break;case wi.MemberExpression:Si(e.object,t,l),e.computed&&Si(e.property,t,l),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=e.constant?[]:[e];break;case wi.CallExpression:r=!!e.filter&&function(e,t){return!e(t).$stateful}(t,e.callee.name),i=r,a=[],$(e.arguments,(function(e){Si(e,t,l),i=i&&e.constant,a.push.apply(a,e.toWatch)})),e.constant=i,e.toWatch=r?a:[e];break;case wi.AssignmentExpression:Si(e.left,t,l),Si(e.right,t,l),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case wi.ArrayExpression:i=!0,a=[],$(e.elements,(function(e){Si(e,t,l),i=i&&e.constant,a.push.apply(a,e.toWatch)})),e.constant=i,e.toWatch=a;break;case wi.ObjectExpression:i=!0,a=[],$(e.properties,(function(e){Si(e.value,t,l),i=i&&e.value.constant,a.push.apply(a,e.value.toWatch),e.computed&&(Si(e.key,t,!1),i=i&&e.key.constant,a.push.apply(a,e.key.toWatch))})),e.constant=i,e.toWatch=a;break;case wi.ThisExpression:case wi.LocalsExpression:e.constant=!1,e.toWatch=[]}}function Mi(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length||n[0]!==t?n:void 0}}function Ii(e){return e.type===wi.Identifier||e.type===wi.MemberExpression}function Li(e){if(1===e.body.length&&Ii(e.body[0].expression))return{type:wi.AssignmentExpression,left:e.body[0].expression,right:{type:wi.NGValueParameter},operator:"="}}function Ai(e){this.$filter=e}function Oi(e){this.$filter=e}function Ti(e,t,n){this.ast=new wi(e,n),this.astCompiler=n.csp?new Oi(t):new Ai(t)}function xi(e){return G(e.valueOf)?e.valueOf():vi.call(e)}function Di(){var e,t,i=Pe(),a={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){a[e]=t},this.setIdentifierFns=function(n,i){return e=n,t=i,this},this.$get=["$filter",function(r){var l={csp:ue().noUnsafeEval,literals:le(a),isIdentifierStart:G(e)&&e,isIdentifierContinue:G(t)&&t};return s.$$getAst=function(e){return new Ti(new Ci(l),r,l).getAst(e).ast},s;function s(e,t){var a,s;switch(n(e)){case"string":if(e=e.trim(),!(a=i[s=e]))a=new Ti(new Ci(l),r,l).parse(e),i[s]=p(a);return m(a,t);case"function":return m(e,t);default:return m(U,t)}}function o(e,t,i){return null==e||null==t?e===t:!("object"===n(e)&&"object"===n(e=xi(e))&&!i)&&(e===t||e!=e&&t!=t)}function u(e,t,n,i,a){var r,l=i.inputs;if(1===l.length){var s=o;return l=l[0],e.$watch((function(e){var t=l(e);return o(t,s,l.isPure)||(r=i(e,void 0,void 0,[t]),s=t&&xi(t)),r}),t,n,a)}for(var u=[],c=[],f=0,d=l.length;f<d;f++)u[f]=o,c[f]=null;return e.$watch((function(e){for(var t=!1,n=0,a=l.length;n<a;n++){var s=l[n](e);(t||(t=!o(s,u[n],l[n].isPure)))&&(c[n]=s,u[n]=s&&xi(s))}return t&&(r=i(e,void 0,void 0,c)),r}),t,n,a)}function c(e,t,n,i,a){var r,l,s=i.literal?f:P,o=i.$$intercepted||i,u=i.$$interceptor||q,c=i.inputs&&!o.inputs;return m.literal=i.literal,m.constant=i.constant,m.inputs=i.inputs,p(m),r=e.$watch(m,t,n,a);function d(){s(l)&&r()}function m(e,t,n,i){return l=c&&i?i[0]:o(e,t,n,i),s(l)&&e.$$postDigest(d),u(l)}}function f(e){var t=!0;return $(e,(function(e){P(e)||(t=!1)})),t}function d(e,t,n,i){var a=e.$watch((function(e){return a(),i(e)}),t,n);return a}function p(e){return e.constant?e.$$watchDelegate=d:e.oneTime?e.$$watchDelegate=c:e.inputs&&(e.$$watchDelegate=u),e}function m(e,t){if(!t)return e;e.$$interceptor&&(t=function(e,t){function n(n){return t(e(n))}return n.$stateful=e.$stateful||t.$stateful,n.$$pure=e.$$pure&&t.$$pure,n}(e.$$interceptor,t),e=e.$$intercepted);var n=!1,i=function(i,a,r,l){var s=n&&l?l[0]:e(i,a,r,l);return t(s)};return i.$$intercepted=e,i.$$interceptor=t,i.literal=e.literal,i.oneTime=e.oneTime,i.constant=e.constant,t.$stateful||(n=!e.inputs,i.inputs=e.inputs?e.inputs:[e],t.$$pure||(i.inputs=i.inputs.map((function(e){return 2===e.isPure?function(t){return e(t)}:e})))),p(i)}}]}function Ui(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Ei((function(e){t.$evalAsync(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return P(t)?(e=t,this):e}}function qi(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Ei((function(e){t.defer(e)}),n,e)}],this.errorOnUnhandledRejections=function(t){return P(t)?(e=t,this):e}}function Ei(e,t,n){var i=r("$q",TypeError),a=0,l=[];function s(){return new o}function o(){var e=this.promise=new u;this.resolve=function(t){d(e,t)},this.reject=function(t){p(e,t)},this.notify=function(t){h(e,t)}}function u(){this.$$state={status:0}}function c(){for(;!a&&l.length;){var e=l.shift();if(!Ni(e)){Ri(e);var n="Possibly unhandled rejection: "+Be(e.value);Y(e.value)?t(e.value,n):t(n)}}}function f(i){!n||i.pending||2!==i.status||Ni(i)||(0===a&&0===l.length&&e(c),l.push(i)),!i.processScheduled&&i.pending&&(i.processScheduled=!0,++a,e((function(){!function(i){var r,l,s;s=i.pending,i.processScheduled=!1,i.pending=void 0;try{for(var o=0,u=s.length;o<u;++o){Ri(i),l=s[o][0],r=s[o][i.status];try{G(r)?d(l,r(i.value)):1===i.status?d(l,i.value):p(l,i.value)}catch(e){p(l,e),e&&!0===e.$$passToExceptionHandler&&t(e)}}}finally{--a,n&&0===a&&e(c)}}(i)})))}function d(e,t){e.$$state.status||(t===e?m(e,i("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):function e(t,n){var i,a=!1;try{(F(n)||G(n))&&(i=n.then),G(i)?(t.$$state.status=-1,i.call(n,r,l,(function(e){h(t,e)}))):(t.$$state.value=n,t.$$state.status=1,f(t.$$state))}catch(e){l(e)}function r(n){a||(a=!0,e(t,n))}function l(e){a||(a=!0,m(t,e))}}(e,t))}function p(e,t){e.$$state.status||m(e,t)}function m(e,t){e.$$state.value=t,e.$$state.status=2,f(e.$$state)}function h(n,i){var a=n.$$state.pending;n.$$state.status<=0&&a&&a.length&&e((function(){for(var e,n,r=0,l=a.length;r<l;r++){n=a[r][0],e=a[r][3];try{h(n,G(e)?e(i):i)}catch(e){t(e)}}}))}function g(e){var t=new u;return p(t,e),t}function v(e,t,n){var i=null;try{G(n)&&(i=n())}catch(e){return g(e)}return X(i)?i.then((function(){return t(e)}),g):t(e)}function y(e,t,n,i){var a=new u;return d(a,e),a.then(t,n,i)}A(u.prototype,{then:function(e,t,n){if(R(e)&&R(t)&&R(n))return this;var i=new u;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([i,e,t,n]),this.$$state.status>0&&f(this.$$state),i},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then((function(t){return v(t,b,e)}),(function(t){return v(t,g,e)}),t)}});var b=y;function _(e){if(!G(e))throw i("norslvr","Expected resolverFn, got '{0}'",e);var t=new u;return e((function(e){d(t,e)}),(function(e){p(t,e)})),t}return _.prototype=u.prototype,_.defer=s,_.reject=g,_.when=y,_.resolve=b,_.all=function(e){var t=new u,n=0,i=z(e)?[]:{};return $(e,(function(e,a){n++,y(e).then((function(e){i[a]=e,--n||d(t,i)}),(function(e){p(t,e)}))})),0===n&&d(t,i),t},_.race=function(e){var t=s();return $(e,(function(e){y(e).then(t.resolve,t.reject)})),t.promise},_}function Ni(e){return!!e.pur}function Ri(e){e.pur=!0}function Pi(e){e.$$state&&Ri(e.$$state)}function Fi(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,a=!!n,r=a?function(e){var t=n(e);return function(){i(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return r.supported=a,r}]}function Hi(){var e=10,t=r("$rootScope"),n=null,i=null;this.digestTtl=function(t){return arguments.length&&(e=t),e},this.$get=["$exceptionHandler","$parse","$browser",function(a,r,s){function o(e){e.currentScope.$$destroyed=!0}function u(){this.$id=M(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$suspended=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}u.prototype={constructor:u,$new:function(e,t){var n;return t=t||this,e?(n=new u).$root=this.$root:(this.$$ChildScope||(this.$$ChildScope=function(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=M(),this.$$ChildScope=null,this.$$suspended=!1}return t.prototype=e,t}(this)),n=new this.$$ChildScope),n.$parent=t,n.$$prevSibling=t.$$childTail,t.$$childHead?(t.$$childTail.$$nextSibling=n,t.$$childTail=n):t.$$childHead=t.$$childTail=n,(e||t!==this)&&n.$on("$destroy",o),n},$watch:function(e,t,i,a){var l=r(e),s=G(t)?t:U;if(l.$$watchDelegate)return l.$$watchDelegate(this,s,i,l,e);var o=this,u=o.$$watchers,c={fn:s,last:_,get:l,exp:a||e,eq:!!i};return n=null,u||((u=o.$$watchers=[]).$$digestWatchIndex=-1),u.unshift(c),u.$$digestWatchIndex++,y(this,1),function(){var e=re(u,c);e>=0&&(y(o,-1),e<u.$$digestWatchIndex&&u.$$digestWatchIndex--),n=null}},$watchGroup:function(e,t){var n=new Array(e.length),i=new Array(e.length),a=[],r=this,l=!1,s=!0;if(!e.length){var o=!0;return r.$evalAsync((function(){o&&t(i,i,r)})),function(){o=!1}}if(1===e.length)return this.$watch(e[0],(function(e,a,r){i[0]=e,n[0]=a,t(i,e===a?i:n,r)}));function u(){l=!1;try{s?(s=!1,t(i,i,r)):t(i,n,r)}finally{for(var a=0;a<e.length;a++)n[a]=i[a]}}return $(e,(function(e,t){var n=r.$watch(e,(function(e){i[t]=e,l||(l=!0,r.$evalAsync(u))}));a.push(n)})),function(){for(;a.length;)a.shift()()}},$watchCollection:function(e,t){h.$$pure=r(e).literal,h.$stateful=!h.$$pure;var n,i,a,l=this,s=t.length>1,o=0,u=r(e,h),c=[],d={},p=!0,m=0;function h(e){var t,a,r,l;if(!R(n=e)){if(F(n))if(w(n)){i!==c&&(m=(i=c).length=0,o++),t=n.length,m!==t&&(o++,i.length=m=t);for(var s=0;s<t;s++)l=i[s],r=n[s],l!=l&&r!=r||l===r||(o++,i[s]=r)}else{for(a in i!==d&&(i=d={},m=0,o++),t=0,n)f.call(n,a)&&(t++,r=n[a],l=i[a],a in i?l!=l&&r!=r||l===r||(o++,i[a]=r):(m++,i[a]=r,o++));if(m>t)for(a in o++,i)f.call(n,a)||(m--,delete i[a])}else i!==n&&(i=n,o++);return o}}return this.$watch(u,(function(){if(p?(p=!1,t(n,n,l)):t(n,a,l),s)if(F(n))if(w(n)){a=new Array(n.length);for(var e=0;e<n.length;e++)a[e]=n[e]}else for(var i in a={},n)f.call(n,i)&&(a[i]=n[i]);else a=n}))},$digest:function(){var r,l,o,u,f,m,y,b,w,$=e,k=d.length?c:this,S=[];g("$digest"),s.$$checkUrlChange(),this===c&&null!==i&&(s.defer.cancel(i),C()),n=null;do{f=!1,y=k;for(var M=0;M<d.length;M++){try{(0,(w=d[M]).fn)(w.scope,w.locals)}catch(e){a(e)}n=null}d.length=0;e:do{if(u=!y.$$suspended&&y.$$watchers)for(u.$$digestWatchIndex=u.length;u.$$digestWatchIndex--;)try{if(r=u[u.$$digestWatchIndex])if((l=(0,r.get)(y))===(o=r.last)||(r.eq?oe(l,o):x(l)&&x(o))){if(r===n){f=!1;break e}}else f=!0,n=r,r.last=r.eq?le(l,null):l,(0,r.fn)(l,o===_?l:o,y),$<5&&(S[b=4-$]||(S[b]=[]),S[b].push({msg:G(r.exp)?"fn: "+(r.exp.name||r.exp.toString()):r.exp,newVal:l,oldVal:o}))}catch(e){a(e)}if(!(m=!y.$$suspended&&y.$$watchersCount&&y.$$childHead||y!==k&&y.$$nextSibling))for(;y!==k&&!(m=y.$$nextSibling);)y=y.$parent}while(y=m);if((f||d.length)&&!$--)throw v(),t("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",e,S)}while(f||d.length);for(v();h<p.length;)try{p[h++]()}catch(e){a(e)}p.length=h=0,s.$$checkUrlChange()},$suspend:function(){this.$$suspended=!0},$isSuspended:function(){return this.$$suspended},$resume:function(){this.$$suspended=!1},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;for(var t in this.$broadcast("$destroy"),this.$$destroyed=!0,this===c&&s.$$applicationDestroyed(),y(this,-this.$$watchersCount),this.$$listenerCount)b(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=U,this.$on=this.$watch=this.$watchGroup=function(){return U},this.$$listeners={},this.$$nextSibling=null,function e(t){9===l&&(t.$$childHead&&e(t.$$childHead),t.$$nextSibling&&e(t.$$nextSibling)),t.$parent=t.$$nextSibling=t.$$prevSibling=t.$$childHead=t.$$childTail=t.$root=t.$$watchers=null}(this)}},$eval:function(e,t){return r(e)(this,t)},$evalAsync:function(e,t){c.$$phase||d.length||s.defer((function(){d.length&&c.$digest()}),null,"$evalAsync"),d.push({scope:this,fn:r(e),locals:t})},$$postDigest:function(e){p.push(e)},$apply:function(e){try{g("$apply");try{return this.$eval(e)}finally{v()}}catch(e){a(e)}finally{try{c.$digest()}catch(e){throw a(e),e}}},$applyAsync:function(e){var t=this;e&&m.push((function(){t.$eval(e)})),e=r(e),null===i&&(i=s.defer((function(){c.$apply(C)}),null,"$applyAsync"))},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var i=this;do{i.$$listenerCount[e]||(i.$$listenerCount[e]=0),i.$$listenerCount[e]++}while(i=i.$parent);var a=this;return function(){var i=n.indexOf(t);-1!==i&&(delete n[i],b(a,1,e))}},$emit:function(e,t){var n,i,r,l=[],s=this,o=!1,u={name:e,targetScope:s,stopPropagation:function(){o=!0},preventDefault:function(){u.defaultPrevented=!0},defaultPrevented:!1},c=ce([u],arguments,1);do{for(n=s.$$listeners[e]||l,u.currentScope=s,i=0,r=n.length;i<r;i++)if(n[i])try{n[i].apply(null,c)}catch(e){a(e)}else n.splice(i,1),i--,r--;if(o)break;s=s.$parent}while(s);return u.currentScope=null,u},$broadcast:function(e,t){var n=this,i=n,r=n,l={name:e,targetScope:n,preventDefault:function(){l.defaultPrevented=!0},defaultPrevented:!1};if(!n.$$listenerCount[e])return l;for(var s,o,u,c=ce([l],arguments,1);i=r;){for(l.currentScope=i,o=0,u=(s=i.$$listeners[e]||[]).length;o<u;o++)if(s[o])try{s[o].apply(null,c)}catch(e){a(e)}else s.splice(o,1),o--,u--;if(!(r=i.$$listenerCount[e]&&i.$$childHead||i!==n&&i.$$nextSibling))for(;i!==n&&!(r=i.$$nextSibling);)i=i.$parent}return l.currentScope=null,l}};var c=new u,d=c.$$asyncQueue=[],p=c.$$postDigestQueue=[],m=c.$$applyAsyncQueue=[],h=0;return c;function g(e){if(c.$$phase)throw t("inprog","{0} already in progress",c.$$phase);c.$$phase=e}function v(){c.$$phase=null}function y(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function b(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function _(){}function C(){for(;m.length;)try{m.shift()()}catch(e){a(e)}i=null}}]}function Vi(){var e=/^\s*(https?|s?ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationTrustedUrlList=function(t){return P(t)?(e=t,this):e},this.imgSrcSanitizationTrustedUrlList=function(e){return P(e)?(t=e,this):t},this.$get=function(){return function(n,i){var a=i?t:e,r=oa(n&&n.trim()).href;return""===r||r.match(a)?n:"unsafe:"+r}}}Ai.prototype={compile:function(e){var t=this;this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},Si(e,t.$filter);var n,i="";if(this.stage="assign",n=Li(e)){this.state.computing="assign";var a=this.nextId();this.recurse(n,a),this.return_(a),i="fn.assign="+this.generateFunction("assign","s,v,l")}var r=Mi(e.body);t.stage="inputs",$(r,(function(e,n){var i="fn"+n;t.state[i]={vars:[],body:[],own:{}},t.state.computing=i;var a=t.nextId();t.recurse(e,a),t.return_(a),t.state.inputs.push({name:i,isPure:e.isPure}),e.watchId=n})),this.state.computing="fn",this.stage="main",this.recurse(e);var l='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+i+this.watchFns()+"return fn;",s=new Function("$filter","getStringValue","ifDefined","plus",l)(this.$filter,yi,$i,ki);return this.state=this.stage=void 0,s},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return $(t,(function(t){e.push("var "+t.name+"="+n.generateFunction(t.name,"s")),t.isPure&&e.push(t.name,".isPure="+JSON.stringify(t.isPure)+";")})),t.length&&e.push("fn.inputs=["+t.map((function(e){return e.name})).join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return $(this.state.filters,(function(n,i){e.push(n+"=$filter("+t.escape(i)+")")})),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,i,a,r){var l,s,o,u,c,f=this;if(i=i||U,!r&&P(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,i,a,!0));switch(e.type){case wi.Program:$(e.body,(function(t,n){f.recurse(t.expression,void 0,void 0,(function(e){s=e})),n!==e.body.length-1?f.current().body.push(s,";"):f.return_(s)}));break;case wi.Literal:u=this.escape(e.value),this.assign(t,u),i(t||u);break;case wi.UnaryExpression:this.recurse(e.argument,void 0,void 0,(function(e){s=e})),u=e.operator+"("+this.ifDefined(s,0)+")",this.assign(t,u),i(u);break;case wi.BinaryExpression:this.recurse(e.left,void 0,void 0,(function(e){l=e})),this.recurse(e.right,void 0,void 0,(function(e){s=e})),u="+"===e.operator?this.plus(l,s):"-"===e.operator?this.ifDefined(l,0)+e.operator+this.ifDefined(s,0):"("+l+")"+e.operator+"("+s+")",this.assign(t,u),i(u);break;case wi.LogicalExpression:t=t||this.nextId(),f.recurse(e.left,t),f.if_("&&"===e.operator?t:f.not(t),f.lazyRecurse(e.right,t)),i(t);break;case wi.ConditionalExpression:t=t||this.nextId(),f.recurse(e.test,t),f.if_(t,f.lazyRecurse(e.alternate,t),f.lazyRecurse(e.consequent,t)),i(t);break;case wi.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===f.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),f.if_("inputs"===f.stage||f.not(f.getHasOwnProperty("l",e.name)),(function(){f.if_("inputs"===f.stage||"s",(function(){a&&1!==a&&f.if_(f.isNull(f.nonComputedMember("s",e.name)),f.lazyAssign(f.nonComputedMember("s",e.name),"{}")),f.assign(t,f.nonComputedMember("s",e.name))}))}),t&&f.lazyAssign(t,f.nonComputedMember("l",e.name))),i(t);break;case wi.MemberExpression:l=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),f.recurse(e.object,l,void 0,(function(){f.if_(f.notNull(l),(function(){e.computed?(s=f.nextId(),f.recurse(e.property,s),f.getStringValue(s),a&&1!==a&&f.if_(f.not(f.computedMember(l,s)),f.lazyAssign(f.computedMember(l,s),"{}")),u=f.computedMember(l,s),f.assign(t,u),n&&(n.computed=!0,n.name=s)):(a&&1!==a&&f.if_(f.isNull(f.nonComputedMember(l,e.property.name)),f.lazyAssign(f.nonComputedMember(l,e.property.name),"{}")),u=f.nonComputedMember(l,e.property.name),f.assign(t,u),n&&(n.computed=!1,n.name=e.property.name))}),(function(){f.assign(t,"undefined")})),i(t)}),!!a);break;case wi.CallExpression:t=t||this.nextId(),e.filter?(s=f.filter(e.callee.name),o=[],$(e.arguments,(function(e){var t=f.nextId();f.recurse(e,t),o.push(t)})),u=s+"("+o.join(",")+")",f.assign(t,u),i(t)):(s=f.nextId(),l={},o=[],f.recurse(e.callee,s,l,(function(){f.if_(f.notNull(s),(function(){$(e.arguments,(function(t){f.recurse(t,e.constant?void 0:f.nextId(),void 0,(function(e){o.push(e)}))})),u=l.name?f.member(l.context,l.name,l.computed)+"("+o.join(",")+")":s+"("+o.join(",")+")",f.assign(t,u)}),(function(){f.assign(t,"undefined")})),i(t)})));break;case wi.AssignmentExpression:s=this.nextId(),l={},this.recurse(e.left,void 0,l,(function(){f.if_(f.notNull(l.context),(function(){f.recurse(e.right,s),u=f.member(l.context,l.name,l.computed)+e.operator+s,f.assign(t,u),i(t||u)}))}),1);break;case wi.ArrayExpression:o=[],$(e.elements,(function(t){f.recurse(t,e.constant?void 0:f.nextId(),void 0,(function(e){o.push(e)}))})),u="["+o.join(",")+"]",this.assign(t,u),i(t||u);break;case wi.ObjectExpression:o=[],c=!1,$(e.properties,(function(e){e.computed&&(c=!0)})),c?(t=t||this.nextId(),this.assign(t,"{}"),$(e.properties,(function(e){e.computed?(l=f.nextId(),f.recurse(e.key,l)):l=e.key.type===wi.Identifier?e.key.name:""+e.key.value,s=f.nextId(),f.recurse(e.value,s),f.assign(f.member(t,l,e.computed),s)}))):($(e.properties,(function(t){f.recurse(t.value,e.constant?void 0:f.nextId(),void 0,(function(e){o.push(f.escape(t.key.type===wi.Identifier?t.key.name:""+t.key.value)+":"+e)}))})),u="{"+o.join(",")+"}",this.assign(t,u)),i(t||u);break;case wi.ThisExpression:this.assign(t,"s"),i(t||"s");break;case wi.LocalsExpression:this.assign(t,"l"),i(t||"l");break;case wi.NGValueParameter:this.assign(t,"v"),i(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,i=this.current().own;return i.hasOwnProperty(n)||(i[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),i[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(!0===e)t();else{var i=this.current().body;i.push("if(",e,"){"),t(),i.push("}"),n&&(i.push("else{"),n(),i.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){return/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,i,a,r){var l=this;return function(){l.recurse(e,t,n,i,a,r)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(V(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(B(e))return e.toString();if(!0===e)return"true";if(!1===e)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw gi("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},Oi.prototype={compile:function(e){var t,n,i=this;Si(e,i.$filter),(t=Li(e))&&(n=this.recurse(t));var a,r=Mi(e.body);r&&(a=[],$(r,(function(e,t){var n=i.recurse(e);n.isPure=e.isPure,e.input=n,a.push(n),e.watchId=t})));var l=[];$(e.body,(function(e){l.push(i.recurse(e.expression))}));var s=0===e.body.length?U:1===e.body.length?l[0]:function(e,t){var n;return $(l,(function(i){n=i(e,t)})),n};return n&&(s.assign=function(e,t,i){return n(e,i,t)}),a&&(s.inputs=a),s},recurse:function(e,t,n){var i,a,r,l=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case wi.Literal:return this.value(e.value,t);case wi.UnaryExpression:return a=this.recurse(e.argument),this["unary"+e.operator](a,t);case wi.BinaryExpression:case wi.LogicalExpression:return i=this.recurse(e.left),a=this.recurse(e.right),this["binary"+e.operator](i,a,t);case wi.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case wi.Identifier:return l.identifier(e.name,t,n);case wi.MemberExpression:return i=this.recurse(e.object,!1,!!n),e.computed||(a=e.property.name),e.computed&&(a=this.recurse(e.property)),e.computed?this.computedMember(i,a,t,n):this.nonComputedMember(i,a,t,n);case wi.CallExpression:return r=[],$(e.arguments,(function(e){r.push(l.recurse(e))})),e.filter&&(a=this.$filter(e.callee.name)),e.filter||(a=this.recurse(e.callee,!0)),e.filter?function(e,n,i,l){for(var s=[],o=0;o<r.length;++o)s.push(r[o](e,n,i,l));var u=a.apply(void 0,s,l);return t?{context:void 0,name:void 0,value:u}:u}:function(e,n,i,l){var s,o=a(e,n,i,l);if(null!=o.value){for(var u=[],c=0;c<r.length;++c)u.push(r[c](e,n,i,l));s=o.value.apply(o.context,u)}return t?{value:s}:s};case wi.AssignmentExpression:return i=this.recurse(e.left,!0,1),a=this.recurse(e.right),function(e,n,r,l){var s=i(e,n,r,l),o=a(e,n,r,l);return s.context[s.name]=o,t?{value:o}:o};case wi.ArrayExpression:return r=[],$(e.elements,(function(e){r.push(l.recurse(e))})),function(e,n,i,a){for(var l=[],s=0;s<r.length;++s)l.push(r[s](e,n,i,a));return t?{value:l}:l};case wi.ObjectExpression:return r=[],$(e.properties,(function(e){e.computed?r.push({key:l.recurse(e.key),computed:!0,value:l.recurse(e.value)}):r.push({key:e.key.type===wi.Identifier?e.key.name:""+e.key.value,computed:!1,value:l.recurse(e.value)})})),function(e,n,i,a){for(var l={},s=0;s<r.length;++s)r[s].computed?l[r[s].key(e,n,i,a)]=r[s].value(e,n,i,a):l[r[s].key]=r[s].value(e,n,i,a);return t?{value:l}:l};case wi.ThisExpression:return function(e){return t?{value:e}:e};case wi.LocalsExpression:return function(e,n){return t?{value:n}:n};case wi.NGValueParameter:return function(e,n,i){return t?{value:i}:i}}},"unary+":function(e,t){return function(n,i,a,r){var l=e(n,i,a,r);return l=P(l)?+l:0,t?{value:l}:l}},"unary-":function(e,t){return function(n,i,a,r){var l=e(n,i,a,r);return l=P(l)?-l:-0,t?{value:l}:l}},"unary!":function(e,t){return function(n,i,a,r){var l=!e(n,i,a,r);return t?{value:l}:l}},"binary+":function(e,t,n){return function(i,a,r,l){var s=ki(e(i,a,r,l),t(i,a,r,l));return n?{value:s}:s}},"binary-":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l),o=t(i,a,r,l),u=(P(s)?s:0)-(P(o)?o:0);return n?{value:u}:u}},"binary*":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)*t(i,a,r,l);return n?{value:s}:s}},"binary/":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)/t(i,a,r,l);return n?{value:s}:s}},"binary%":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)%t(i,a,r,l);return n?{value:s}:s}},"binary===":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)===t(i,a,r,l);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)!==t(i,a,r,l);return n?{value:s}:s}},"binary==":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)==t(i,a,r,l);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)!=t(i,a,r,l);return n?{value:s}:s}},"binary<":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)<t(i,a,r,l);return n?{value:s}:s}},"binary>":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)>t(i,a,r,l);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)<=t(i,a,r,l);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)>=t(i,a,r,l);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)&&t(i,a,r,l);return n?{value:s}:s}},"binary||":function(e,t,n){return function(i,a,r,l){var s=e(i,a,r,l)||t(i,a,r,l);return n?{value:s}:s}},"ternary?:":function(e,t,n,i){return function(a,r,l,s){var o=e(a,r,l,s)?t(a,r,l,s):n(a,r,l,s);return i?{value:o}:o}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(i,a,r,l){var s=a&&e in a?a:i;n&&1!==n&&s&&null==s[e]&&(s[e]={});var o=s?s[e]:void 0;return t?{context:s,name:e,value:o}:o}},computedMember:function(e,t,n,i){return function(a,r,l,s){var o,u,c=e(a,r,l,s);return null!=c&&(o=yi(o=t(a,r,l,s)),i&&1!==i&&c&&!c[o]&&(c[o]={}),u=c[o]),n?{context:c,name:o,value:u}:u}},nonComputedMember:function(e,t,n,i){return function(a,r,l,s){var o=e(a,r,l,s);i&&1!==i&&o&&null==o[t]&&(o[t]={});var u=null!=o?o[t]:void 0;return n?{context:o,name:t,value:u}:u}},inputs:function(e,t){return function(n,i,a,r){return r?r[t]:e(n,i,a)}}},Ti.prototype={constructor:Ti,parse:function(e){var t=this.getAst(e),n=this.astCompiler.compile(t.ast);return n.literal=function(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===wi.Literal||e.body[0].expression.type===wi.ArrayExpression||e.body[0].expression.type===wi.ObjectExpression)}(t.ast),n.constant=function(e){return e.constant}(t.ast),n.oneTime=t.oneTime,n},getAst:function(e){var t=!1;return":"===(e=e.trim()).charAt(0)&&":"===e.charAt(1)&&(t=!0,e=e.substring(2)),{ast:this.ast.ast(e),oneTime:t}}};var Bi=r("$sce"),ji={HTML:"html",CSS:"css",MEDIA_URL:"mediaUrl",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},zi=/_([a-z])/g;function Yi(e){return e.replace(zi,Je)}function Gi(e){var t=[];return P(e)&&$(e,(function(e){t.push(function(e){if("self"===e)return e;if(V(e)){if(e.indexOf("***")>-1)throw Bi("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=te(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(W(e))return new RegExp("^"+e.source+"$");throw Bi("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}(e))})),t}function Wi(){this.SCE_CONTEXTS=ji;var t=["self"],n=[];this.trustedResourceUrlList=function(e){return arguments.length&&(t=Gi(e)),t},Object.defineProperty(this,"resourceUrlWhitelist",{get:function(){return this.trustedResourceUrlList},set:function(e){this.trustedResourceUrlList=e}}),this.bannedResourceUrlList=function(e){return arguments.length&&(n=Gi(e)),n},Object.defineProperty(this,"resourceUrlBlacklist",{get:function(){return this.bannedResourceUrlList},set:function(e){this.bannedResourceUrlList=e}}),this.$get=["$injector","$$sanitizeUri",function(i,a){var r=function(e){throw Bi("unsafe","Attempting to use an unsafe value in a safe context.")};function l(t,n){return"self"===t?ua(n,la)||function(t){return ua(t,function(){if(e.document.baseURI)return e.document.baseURI;aa||((aa=e.document.createElement("a")).href=".",aa=aa.cloneNode(!1));return aa.href}())}(n):!!t.exec(n.href)}function s(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}i.has("$sanitize")&&(r=i.get("$sanitize"));var o=s(),u={};return u[ji.HTML]=s(o),u[ji.CSS]=s(o),u[ji.MEDIA_URL]=s(o),u[ji.URL]=s(u[ji.MEDIA_URL]),u[ji.JS]=s(o),u[ji.RESOURCE_URL]=s(u[ji.URL]),{trustAs:function(e,t){var n=u.hasOwnProperty(e)?u[e]:null;if(!n)throw Bi("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||R(t)||""===t)return t;if("string"!=typeof t)throw Bi("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)},getTrusted:function(e,i){if(null===i||R(i)||""===i)return i;var s=u.hasOwnProperty(e)?u[e]:null;if(s&&i instanceof s)return i.$$unwrapTrustedValue();if(G(i.$$unwrapTrustedValue)&&(i=i.$$unwrapTrustedValue()),e===ji.MEDIA_URL||e===ji.URL)return a(i.toString(),e===ji.MEDIA_URL);if(e===ji.RESOURCE_URL){if(function(e){var i,a,r=oa(e.toString()),s=!1;for(i=0,a=t.length;i<a;i++)if(l(t[i],r)){s=!0;break}if(s)for(i=0,a=n.length;i<a;i++)if(l(n[i],r)){s=!1;break}return s}(i))return i;throw Bi("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",i.toString())}if(e===ji.HTML)return r(i);throw Bi("unsafe","Attempting to use an unsafe value in a safe context.")},valueOf:function(e){return e instanceof o?e.$$unwrapTrustedValue():e}}}]}function Ki(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&l<8)throw Bi("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var i=Ve(ji);i.isEnabled=function(){return e},i.trustAs=n.trustAs,i.getTrusted=n.getTrusted,i.valueOf=n.valueOf,e||(i.trustAs=i.getTrusted=function(e,t){return t},i.valueOf=q),i.parseAs=function(e,n){var a=t(n);return a.literal&&a.constant?a:t(n,(function(t){return i.getTrusted(e,t)}))};var a=i.parseAs,r=i.getTrusted,s=i.trustAs;return $(ji,(function(e,t){var n=d(t);i[Yi("parse_as_"+n)]=function(t){return a(e,t)},i[Yi("get_trusted_"+n)]=function(t){return r(e,t)},i[Yi("trust_as_"+n)]=function(t){return s(e,t)}})),i}]}function Qi(){this.$get=["$window","$document",function(e,t){var n={},i=!(!(e.nw&&e.nw.process)&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id))&&e.history&&e.history.pushState,a=T((/android (\d+)/.exec(d((e.navigator||{}).userAgent))||[])[1]),r=/Boxee/i.test((e.navigator||{}).userAgent),s=t[0]||{},o=s.body&&s.body.style,u=!1,c=!1;return o&&(u=!(!("transition"in o)&&!("webkitTransition"in o)),c=!(!("animation"in o)&&!("webkitAnimation"in o))),{history:!(!i||a<4||r),hasEvent:function(e){if("input"===e&&l)return!1;if(R(n[e])){var t=s.createElement("div");n[e]="on"+e in t}return n[e]},csp:ue(),transitions:u,animations:c,android:a}}]}function Ji(){this.$get=E((function(e){return new Xi(e)}))}function Xi(e){var t={},n=[],i=this.ALL_TASKS_TYPE="$$all$$",a=this.DEFAULT_TASK_TYPE="$$default$$";function r(){var e=n.pop();return e&&e.cb}function l(e){for(var t=n.length-1;t>=0;--t){var i=n[t];if(i.type===e)return n.splice(t,1),i.cb}}this.completeTask=function(n,s){s=s||a;try{n()}finally{!function(e){t[e=e||a]&&(t[e]--,t[i]--)}(s);var o=t[s],u=t[i];if(!u||!o)for(var c,f=u?l:r;c=f(s);)try{c()}catch(t){e.error(t)}}},this.incTaskCount=function(e){t[e=e||a]=(t[e]||0)+1,t[i]=(t[i]||0)+1},this.notifyWhenNoPendingTasks=function(e,a){t[a=a||i]?n.push({type:a,cb:e}):e()}}var Zi=r("$templateRequest");function ea(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,i,a,r){function l(s,o){l.totalPendingRequests++,V(s)&&!R(n.get(s))||(s=r.getTrustedResourceUrl(s));var u=i.defaults&&i.defaults.transformResponse;return z(u)?u=u.filter((function(e){return e!==Rn})):u===Rn&&(u=null),i.get(s,A({cache:n,transformResponse:u},e)).finally((function(){l.totalPendingRequests--})).then((function(e){return n.put(s,e.data)}),(function(e){o||(e=Zi("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e));return a.reject(e)}))}return l.totalPendingRequests=0,l}]}function ta(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var i={findBindings:function(e,t,n){var i=e.getElementsByClassName("ng-binding"),a=[];return $(i,(function(e){var i=_.element(e).data("$binding");i&&$(i,(function(i){n?new RegExp("(^|\\s)"+te(t)+"(\\s|\\||$)").test(i)&&a.push(e):-1!==i.indexOf(t)&&a.push(e)}))})),a},findModels:function(e,t,n){for(var i=["ng-","data-ng-","ng\\:"],a=0;a<i.length;++a){var r="["+i[a]+"model"+(n?"=":"*=")+'"'+t+'"]',l=e.querySelectorAll(r);if(l.length)return l}},getLocation:function(){return n.url()},setLocation:function(t){t!==n.url()&&(n.url(t),e.$digest())},whenStable:function(e){t.notifyWhenNoOutstandingRequests(e)}};return i}]}var na=r("$timeout");function ia(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,i,a){var r={};function l(l,s,o){G(l)||(o=s,s=l,l=U);var u,c=fe(arguments,3),f=P(o)&&!o,d=(f?i:n).defer(),p=d.promise;return u=t.defer((function(){try{d.resolve(l.apply(null,c))}catch(e){d.reject(e),a(e)}finally{delete r[p.$$timeoutId]}f||e.$apply()}),s,"$timeout"),p.$$timeoutId=u,r[u]=d,p}return l.cancel=function(e){if(!e)return!1;if(!e.hasOwnProperty("$$timeoutId"))throw na("badprom","`$timeout.cancel()` called with a promise that was not generated by `$timeout()`.");if(!r.hasOwnProperty(e.$$timeoutId))return!1;var n=e.$$timeoutId,i=r[n];return Pi(i.promise),i.reject("canceled"),delete r[n],t.defer.cancel(n)},l}]}var aa,ra=e.document.createElement("a"),la=oa(e.location.href);ra.href="http://[::1]";var sa="[::1]"===ra.hostname;function oa(e){if(!V(e))return e;var t=e;l&&(ra.setAttribute("href",t),t=ra.href),ra.setAttribute("href",t);var n=ra.hostname;return!sa&&n.indexOf(":")>-1&&(n="["+n+"]"),{href:ra.href,protocol:ra.protocol?ra.protocol.replace(/:$/,""):"",host:ra.host,search:ra.search?ra.search.replace(/^\?/,""):"",hash:ra.hash?ra.hash.replace(/^#/,""):"",hostname:n,port:ra.port,pathname:"/"===ra.pathname.charAt(0)?ra.pathname:"/"+ra.pathname}}function ua(e,t){return e=oa(e),t=oa(t),e.protocol===t.protocol&&e.host===t.host}function ca(){this.$get=E(e)}function fa(e){var t=e[0]||{},n={},i="";function a(e){try{return decodeURIComponent(e)}catch(t){return e}}return function(){var e,r,l,s,o,u=function(e){try{return e.cookie||""}catch(e){return""}}(t);if(u!==i)for(e=(i=u).split("; "),n={},l=0;l<e.length;l++)(s=(r=e[l]).indexOf("="))>0&&(o=a(r.substring(0,s)),R(n[o])&&(n[o]=a(r.substring(s+1))));return n}}function da(){this.$get=fa}function pa(e){function t(n,i){if(F(n)){var a={};return $(n,(function(e,n){a[n]=t(n,e)})),a}return e.factory(n+"Filter",i)}this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+"Filter")}}],t("currency",va),t("date",Aa),t("filter",ma),t("json",Oa),t("limitTo",Da),t("lowercase",Ta),t("number",ya),t("orderBy",qa),t("uppercase",xa)}function ma(){return function(e,t,n,i){if(!w(e)){if(null==e)return e;throw r("filter")("notarray","Expected array but received: {0}",e)}var a,l;switch(i=i||"$",ga(t)){case"function":a=t;break;case"boolean":case"null":case"number":case"string":l=!0;case"object":a=function(e,t,n,i){var a=F(e)&&n in e;!0===t?t=oe:G(t)||(t=function(e,t){return!R(e)&&(null===e||null===t?e===t:!(F(t)||F(e)&&!N(e))&&(e=d(""+e),t=d(""+t),-1!==e.indexOf(t)))});return function(r){return a&&!F(r)?ha(r,e[n],t,n,!1):ha(r,e,t,n,i)}}(t,n,i,l);break;default:return e}return Array.prototype.filter.call(e,a)}}function ha(e,t,n,i,a,r){var l=ga(e),s=ga(t);if("string"===s&&"!"===t.charAt(0))return!ha(e,t.substring(1),n,i,a);if(z(e))return e.some((function(e){return ha(e,t,n,i,a)}));switch(l){case"object":var o;if(a){for(o in e)if(o.charAt&&"$"!==o.charAt(0)&&ha(e[o],t,n,i,!0))return!0;return!r&&ha(e,t,n,i,!1)}if("object"===s){for(o in t){var u=t[o];if(!G(u)&&!R(u)){var c=o===i;if(!ha(c?e:e[o],u,n,i,c,c))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function ga(e){return null===e?"null":n(e)}fa.$inject=["$document"],pa.$inject=["$provide"];function va(e){var t=e.NUMBER_FORMATS;return function(e,n,i){R(n)&&(n=t.CURRENCY_SYM),R(i)&&(i=t.PATTERNS[1].maxFrac);var a=n?/\u00A4/g:/\s*\u00A4\s*/g;return null==e?e:ba(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,i).replace(a,n)}}function ya(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:ba(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function ba(e,t,n,i,a){if(!V(e)&&!B(e)||isNaN(e))return"";var r,l=!isFinite(e),s=!1,o=Math.abs(e)+"",u="";if(l)u="∞";else{(function(e,t,n,i){var a=e.d,r=a.length-e.i,l=(t=R(t)?Math.min(Math.max(n,r),i):+t)+e.i,s=a[l];if(l>0){a.splice(Math.max(e.i,l));for(var o=l;o<a.length;o++)a[o]=0}else{r=Math.max(0,r),e.i=1,a.length=Math.max(1,l=t+1),a[0]=0;for(var u=1;u<l;u++)a[u]=0}if(s>=5)if(l-1<0){for(var c=0;c>l;c--)a.unshift(0),e.i++;a.unshift(1),e.i++}else a[l-1]++;for(;r<Math.max(0,t);r++)a.push(0);var f=a.reduceRight((function(e,t,n,i){return t+=e,i[n]=t%10,Math.floor(t/10)}),0);f&&(a.unshift(f),e.i++)})(r=function(e){var t,n,i,a,r,l=0;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(i=e.search(/e/i))>0?(n<0&&(n=i),n+=+e.slice(i+1),e=e.substring(0,i)):n<0&&(n=e.length),i=0;"0"===e.charAt(i);i++);if(i===(r=e.length))t=[0],n=1;else{for(r--;"0"===e.charAt(r);)r--;for(n-=i,t=[],a=0;i<=r;i++,a++)t[a]=+e.charAt(i)}return n>22&&(t=t.splice(0,21),l=n-1,n=1),{d:t,e:l,i:n}}(o),a,t.minFrac,t.maxFrac);var c=r.d,f=r.i,d=r.e,p=[];for(s=c.reduce((function(e,t){return e&&!t}),!0);f<0;)c.unshift(0),f++;f>0?p=c.splice(f,c.length):(p=c,c=[0]);var m=[];for(c.length>=t.lgSize&&m.unshift(c.splice(-t.lgSize,c.length).join(""));c.length>t.gSize;)m.unshift(c.splice(-t.gSize,c.length).join(""));c.length&&m.unshift(c.join("")),u=m.join(n),p.length&&(u+=i+p.join("")),d&&(u+="e+"+d)}return e<0&&!s?t.negPre+u+t.negSuf:t.posPre+u+t.posSuf}function _a(e,t,n,i){var a="";for((e<0||i&&e<=0)&&(i?e=1-e:(e=-e,a="-")),e=""+e;e.length<t;)e="0"+e;return n&&(e=e.substr(e.length-t)),a+e}function Ca(e,t,n,i,a){return n=n||0,function(r){var l=r["get"+e]();return(n>0||l>-n)&&(l+=n),0===l&&-12===n&&(l=12),_a(l,t,i,a)}}function wa(e,t,n){return function(i,a){var r=i["get"+e]();return a[p((n?"STANDALONE":"")+(t?"SHORT":"")+e)][r]}}function $a(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function ka(e){return function(t){var n,i=$a(t.getFullYear()),a=+(n=t,new Date(n.getFullYear(),n.getMonth(),n.getDate()+(4-n.getDay())))-+i;return _a(1+Math.round(a/6048e5),e)}}function Sa(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}va.$inject=["$locale"],ya.$inject=["$locale"];var Ma={yyyy:Ca("FullYear",4,0,!1,!0),yy:Ca("FullYear",2,0,!0,!0),y:Ca("FullYear",1,0,!1,!0),MMMM:wa("Month"),MMM:wa("Month",!0),MM:Ca("Month",2,1),M:Ca("Month",1,1),LLLL:wa("Month",!1,!0),dd:Ca("Date",2),d:Ca("Date",1),HH:Ca("Hours",2),H:Ca("Hours",1),hh:Ca("Hours",2,-12),h:Ca("Hours",1,-12),mm:Ca("Minutes",2),m:Ca("Minutes",1),ss:Ca("Seconds",2),s:Ca("Seconds",1),sss:Ca("Milliseconds",3),EEEE:wa("Day"),EEE:wa("Day",!0),a:function(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]},Z:function(e,t,n){var i=-1*n,a=i>=0?"+":"";return a+=_a(Math[i>0?"floor":"ceil"](i/60),2)+_a(Math.abs(i%60),2)},ww:ka(2),w:ka(1),G:Sa,GG:Sa,GGG:Sa,GGGG:function(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}},Ia=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))([\s\S]*)/,La=/^-?\d+$/;function Aa(e){var t=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,i,a){var r,l,s="",o=[];if(i=i||"mediumDate",i=e.DATETIME_FORMATS[i]||i,V(n)&&(n=La.test(n)?T(n):function(e){var n;if(n=e.match(t)){var i=new Date(0),a=0,r=0,l=n[8]?i.setUTCFullYear:i.setFullYear,s=n[8]?i.setUTCHours:i.setHours;n[9]&&(a=T(n[9]+n[10]),r=T(n[9]+n[11])),l.call(i,T(n[1]),T(n[2])-1,T(n[3]));var o=T(n[4]||0)-a,u=T(n[5]||0)-r,c=T(n[6]||0),f=Math.round(1e3*parseFloat("0."+(n[7]||0)));return s.call(i,o,u,c,f),i}return e}(n)),B(n)&&(n=new Date(n)),!j(n)||!isFinite(n.getTime()))return n;for(;i;)(l=Ia.exec(i))?i=(o=ce(o,l,1)).pop():(o.push(i),i=null);var u=n.getTimezoneOffset();return a&&(u=ve(a,u),n=be(n,a,!0)),$(o,(function(t){s+=(r=Ma[t])?r(n,e.DATETIME_FORMATS,u):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),s}}function Oa(){return function(e,t){return R(t)&&(t=2),me(e,t)}}Aa.$inject=["$locale"];var Ta=E(d),xa=E(p);function Da(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):T(t),x(t)?e:(B(e)&&(e=e.toString()),w(e)?(n=(n=!n||isNaN(n)?0:T(n))<0?Math.max(0,e.length+n):n,t>=0?Ua(e,n,n+t):0===n?Ua(e,t,e.length):Ua(e,Math.max(0,n+t),n)):e)}}function Ua(e,t,n){return V(e)?e.slice(t,n):m.call(e,t,n)}function qa(e){return function(a,l,s,o){if(null==a)return a;if(!w(a))throw r("orderBy")("notarray","Expected array but received: {0}",a);z(l)||(l=[l]),0===l.length&&(l=["+"]);var u=l.map((function(t){var n=1,i=q;if(G(t))i=t;else if(V(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(i=e(t)).constant)){var a=i();i=function(e){return e[a]}}return{get:i,descending:n}})),c=s?-1:1,f=G(o)?o:i,d=Array.prototype.map.call(a,(function(e,i){return{value:e,tieBreaker:{value:i,type:"number",index:i},predicateValues:u.map((function(a){return function(e,i){var a=n(e);null===e?a="null":"object"===a&&(e=function(e){if(G(e.valueOf)&&t(e=e.valueOf()))return e;if(N(e)&&t(e=e.toString()))return e;return e}(e));return{value:e,type:a,index:i}}(a.get(e),i)}))}}));return d.sort((function(e,t){for(var n=0,a=u.length;n<a;n++){var r=f(e.predicateValues[n],t.predicateValues[n]);if(r)return r*u[n].descending*c}return(f(e.tieBreaker,t.tieBreaker)||i(e.tieBreaker,t.tieBreaker))*c})),a=d.map((function(e){return e.value}))};function t(e){switch(n(e)){case"number":case"boolean":case"string":return!0;default:return!1}}function i(e,t){var n=0,i=e.type,a=t.type;if(i===a){var r=e.value,l=t.value;"string"===i?(r=r.toLowerCase(),l=l.toLowerCase()):"object"===i&&(F(r)&&(r=e.index),F(l)&&(l=t.index)),r!==l&&(n=r<l?-1:1)}else n="undefined"===i?1:"undefined"===a?-1:"null"===i?1:"null"===a||i<a?-1:1;return n}}function Ea(e){return G(e)&&(e={link:e}),e.restrict=e.restrict||"AC",E(e)}qa.$inject=["$parse"];var Na=E({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===v.call(t.prop("href"))?"xlink:href":"href";t.on("click",(function(e){t.attr(n)||e.preventDefault()}))}}}}),Ra={};$(Tt,(function(e,t){if("multiple"!==e){var n=bn("ng-"+t),i=a;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[n]&&a(e,0,i)}),Ra[n]=function(){return{restrict:"A",priority:100,link:i}}}function a(e,i,a){e.$watch(a[n],(function(e){a.$set(t,!!e)}))}})),$(Dt,(function(e,t){Ra[t]=function(){return{priority:100,link:function(e,n,i){if("ngPattern"===t&&"/"===i.ngPattern.charAt(0)){var a=i.ngPattern.match(c);if(a)return void i.$set("ngPattern",new RegExp(a[1],a[2]))}e.$watch(i[t],(function(e){i.$set(t,e)}))}}}})),$(["src","srcset","href"],(function(e){var t=bn("ng-"+e);Ra[t]=["$sce",function(n){return{priority:99,link:function(i,a,r){var s=e,o=e;"href"===e&&"[object SVGAnimatedString]"===v.call(a.prop("href"))&&(o="xlinkHref",r.$attr[o]="xlink:href",s=null),r.$set(t,n.getTrustedMediaUrl(r[t])),r.$observe(t,(function(t){t?(r.$set(o,t),l&&s&&a.prop(s,r[o])):"href"===e&&r.$set(o,null)}))}}}]}));var Pa={$addControl:U,$getControls:E([]),$$renameControl:function(e,t){e.$name=t},$removeControl:U,$setValidity:U,$setDirty:U,$setPristine:U,$setSubmitted:U,$$setSubmitted:U};function Fa(e,t,n,i,a){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=a(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Pa,this.$$element=e,this.$$animate=i,ja(this)}Fa.$inject=["$element","$attrs","$scope","$animate","$interpolate"],Fa.prototype={$rollbackViewValue:function(){$(this.$$controls,(function(e){e.$rollbackViewValue()}))},$commitViewValue:function(){$(this.$$controls,(function(e){e.$commitViewValue()}))},$addControl:function(e){Ne(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$getControls:function(){return Ve(this.$$controls)},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],$(this.$pending,(function(t,n){this.$setValidity(n,null,e)}),this),$(this.$error,(function(t,n){this.$setValidity(n,null,e)}),this),$(this.$$success,(function(t,n){this.$setValidity(n,null,e)}),this),re(this.$$controls,e),e.$$parentForm=Pa},$setDirty:function(){this.$$animate.removeClass(this.$$element,Pr),this.$$animate.addClass(this.$$element,Fr),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,Pr,Fr+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,$(this.$$controls,(function(e){e.$setPristine()}))},$setUntouched:function(){$(this.$$controls,(function(e){e.$setUntouched()}))},$setSubmitted:function(){for(var e=this;e.$$parentForm&&e.$$parentForm!==Pa;)e=e.$$parentForm;e.$$setSubmitted()},$$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,$(this.$$controls,(function(e){e.$$setSubmitted&&e.$$setSubmitted()}))}},za({clazz:Fa,set:function(e,t,n){var i=e[t];i?-1===i.indexOf(n)&&i.push(n):e[t]=[n]},unset:function(e,t,n){var i=e[t];i&&(re(i,n),0===i.length&&delete e[t])}});var Ha=function(e){return["$timeout","$parse",function(t,n){return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:Fa,compile:function(n,a){n.addClass(Pr).addClass(Nr);var r=a.name?"name":!(!e||!a.ngForm)&&"ngForm";return{pre:function(e,n,a,l){var s=l[0];if(!("action"in a)){var o=function(t){e.$apply((function(){s.$commitViewValue(),s.$setSubmitted()})),t.preventDefault()};n[0].addEventListener("submit",o),n.on("$destroy",(function(){t((function(){n[0].removeEventListener("submit",o)}),0,!1)}))}(l[1]||s.$$parentForm).$addControl(s);var u=r?i(s.$name):U;r&&(u(e,s),a.$observe(r,(function(t){s.$name!==t&&(u(e,void 0),s.$$parentForm.$$renameControl(s,t),(u=i(s.$name))(e,s))}))),n.on("$destroy",(function(){s.$$parentForm.$removeControl(s),u(e,void 0),A(s,Pa)}))}}}};function i(e){return""===e?n('this[""]').assign:n(e).assign||U}}]},Va=Ha(),Ba=Ha(!0);function ja(e){e.$$classCache={},e.$$classCache[Rr]=!(e.$$classCache[Nr]=e.$$element.hasClass(Nr))}function za(e){var t=e.clazz,n=e.set,i=e.unset;function a(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function r(e,t,n){t=t?"-"+xe(t,"-"):"",a(e,Nr+t,!0===n),a(e,Rr+t,!1===n)}t.prototype.$setValidity=function(e,t,l){var s;R(t)?function(e,t,i,a){e[t]||(e[t]={});n(e[t],i,a)}(this,"$pending",e,l):function(e,t,n,a){e[t]&&i(e[t],n,a);Ya(e[t])&&(e[t]=void 0)}(this,"$pending",e,l),J(t)?t?(i(this.$error,e,l),n(this.$$success,e,l)):(n(this.$error,e,l),i(this.$$success,e,l)):(i(this.$error,e,l),i(this.$$success,e,l)),this.$pending?(a(this,"ng-pending",!0),this.$valid=this.$invalid=void 0,r(this,"",null)):(a(this,"ng-pending",!1),this.$valid=Ya(this.$error),this.$invalid=!this.$valid,r(this,"",this.$valid)),r(this,e,s=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null)),this.$$parentForm.$setValidity(e,s,this)}}function Ya(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}var Ga=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,Wa=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,Ka=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,Qa=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,Ja=/^(\d{4,})-(\d{2})-(\d{2})$/,Xa=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Za=/^(\d{4,})-W(\d\d)$/,er=/^(\d{4,})-(\d\d)$/,tr=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,nr=Pe();$("date,datetime-local,month,time,week".split(","),(function(e){nr[e]=!0}));var ir={text:function(e,t,n,i,a,r){rr(e,t,n,i,a,r),ar(i)},date:sr("date",Ja,lr(Ja,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":sr("datetimelocal",Xa,lr(Xa,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:sr("time",tr,lr(tr,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:sr("week",Za,(function(e,t){if(j(e))return e;if(V(e)){Za.lastIndex=0;var n=Za.exec(e);if(n){var i=+n[1],a=+n[2],r=0,l=0,s=0,o=0,u=$a(i),c=7*(a-1);return t&&(r=t.getHours(),l=t.getMinutes(),s=t.getSeconds(),o=t.getMilliseconds()),new Date(i,0,u.getDate()+c,r,l,s,o)}}return NaN}),"yyyy-Www"),month:sr("month",er,lr(er,["yyyy","MM"]),"yyyy-MM"),number:function(e,t,n,i,a,r,l,s){var o;if(or(e,t,n,i,"number"),ur(i),rr(e,t,n,i,a,r),P(n.min)||n.ngMin){var u=n.min||s(n.ngMin)(e);o=cr(u),i.$validators.min=function(e,t){return i.$isEmpty(t)||R(o)||t>=o},n.$observe("min",(function(e){e!==u&&(o=cr(e),u=e,i.$validate())}))}if(P(n.max)||n.ngMax){var c=n.max||s(n.ngMax)(e),f=cr(c);i.$validators.max=function(e,t){return i.$isEmpty(t)||R(f)||t<=f},n.$observe("max",(function(e){e!==c&&(f=cr(e),c=e,i.$validate())}))}if(P(n.step)||n.ngStep){var d=n.step||s(n.ngStep)(e),p=cr(d);i.$validators.step=function(e,t){return i.$isEmpty(t)||R(p)||pr(t,o||0,p)},n.$observe("step",(function(e){e!==d&&(p=cr(e),d=e,i.$validate())}))}},url:function(e,t,n,i,a,r){rr(e,t,n,i,a,r),ar(i),i.$validators.url=function(e,t){var n=e||t;return i.$isEmpty(n)||Wa.test(n)}},email:function(e,t,n,i,a,r){rr(e,t,n,i,a,r),ar(i),i.$validators.email=function(e,t){var n=e||t;return i.$isEmpty(n)||Ka.test(n)}},radio:function(e,t,n,i){var a=!n.ngTrim||"false"!==ee(n.ngTrim);R(n.name)&&t.attr("name",M());t.on("change",(function(e){var r;t[0].checked&&(r=n.value,a&&(r=ee(r)),i.$setViewValue(r,e&&e.type))})),i.$render=function(){var e=n.value;a&&(e=ee(e)),t[0].checked=e===i.$viewValue},n.$observe("value",i.$render)},range:function(e,t,n,i,a,r){or(e,t,n,i,"range"),ur(i),rr(e,t,n,i,a,r);var l=i.$$hasNativeValidators&&"range"===t[0].type,s=l?0:void 0,o=l?100:void 0,u=l?1:void 0,c=t[0].validity,f=P(n.min),d=P(n.max),p=P(n.step),m=i.$render;i.$render=l&&P(c.rangeUnderflow)&&P(c.rangeOverflow)?function(){m(),i.$setViewValue(t.val())}:m,f&&(s=cr(n.min),i.$validators.min=l?function(){return!0}:function(e,t){return i.$isEmpty(t)||R(s)||t>=s},h("min",(function(e){if(s=cr(e),x(i.$modelValue))return;if(l){var n=t.val();s>n&&(n=s,t.val(n)),i.$setViewValue(n)}else i.$validate()})));d&&(o=cr(n.max),i.$validators.max=l?function(){return!0}:function(e,t){return i.$isEmpty(t)||R(o)||t<=o},h("max",(function(e){if(o=cr(e),x(i.$modelValue))return;if(l){var n=t.val();o<n&&(t.val(o),n=o<s?s:o),i.$setViewValue(n)}else i.$validate()})));p&&(u=cr(n.step),i.$validators.step=l?function(){return!c.stepMismatch}:function(e,t){return i.$isEmpty(t)||R(u)||pr(t,s||0,u)},h("step",(function(e){if(u=cr(e),x(i.$modelValue))return;l?i.$viewValue!==t.val()&&i.$setViewValue(t.val()):i.$validate()})));function h(e,i){t.attr(e,n[e]);var a=n[e];n.$observe(e,(function(e){e!==a&&(a=e,i(e))}))}},checkbox:function(e,t,n,i,a,r,l,s){var o=mr(s,e,"ngTrueValue",n.ngTrueValue,!0),u=mr(s,e,"ngFalseValue",n.ngFalseValue,!1);t.on("change",(function(e){i.$setViewValue(t[0].checked,e&&e.type)})),i.$render=function(){t[0].checked=i.$viewValue},i.$isEmpty=function(e){return!1===e},i.$formatters.push((function(e){return oe(e,o)})),i.$parsers.push((function(e){return e?o:u}))},hidden:U,button:U,submit:U,reset:U,file:U};function ar(e){e.$formatters.push((function(t){return e.$isEmpty(t)?t:t.toString()}))}function rr(e,t,n,i,a,r){var l,s=d(t[0].type);if(!a.android){var o=!1;t.on("compositionstart",(function(){o=!0})),t.on("compositionupdate",(function(e){(R(e.data)||""===e.data)&&(o=!1)})),t.on("compositionend",(function(){o=!1,u()}))}var u=function(e){if(l&&(r.defer.cancel(l),l=null),!o){var a=t.val(),u=e&&e.type;"password"===s||n.ngTrim&&"false"===n.ngTrim||(a=ee(a)),(i.$viewValue!==a||""===a&&i.$$hasNativeValidators)&&i.$setViewValue(a,u)}};if(a.hasEvent("input"))t.on("input",u);else{var c=function(e,t,n){l||(l=r.defer((function(){l=null,t&&t.value===n||u(e)})))};t.on("keydown",(function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||c(e,this,this.value)})),a.hasEvent("paste")&&t.on("paste cut drop",c)}t.on("change",u),nr[s]&&i.$$hasNativeValidators&&s===n.type&&t.on("keydown wheel mousedown",(function(e){if(!l){var t=this.validity,n=t.badInput,i=t.typeMismatch;l=r.defer((function(){l=null,t.badInput===n&&t.typeMismatch===i||u(e)}))}})),i.$render=function(){var e=i.$isEmpty(i.$viewValue)?"":i.$viewValue;t.val()!==e&&t.val(e)}}function lr(e,t){return function(n,i){var a,r;if(j(n))return n;if(V(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),Ga.test(n))return new Date(n);if(e.lastIndex=0,a=e.exec(n)){a.shift(),r=i?{yyyy:i.getFullYear(),MM:i.getMonth()+1,dd:i.getDate(),HH:i.getHours(),mm:i.getMinutes(),ss:i.getSeconds(),sss:i.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},$(a,(function(e,n){n<t.length&&(r[t[n]]=+e)}));var l=new Date(r.yyyy,r.MM-1,r.dd,r.HH,r.mm,r.ss||0,1e3*r.sss||0);return r.yyyy<100&&l.setFullYear(r.yyyy),l}}return NaN}}function sr(e,t,n,i){return function(a,r,l,s,o,u,c,f){or(a,r,l,s,e),rr(0,r,l,s,o,u);var d,p,m="time"===e||"datetimelocal"===e;if(s.$parsers.push((function(n){return s.$isEmpty(n)?null:t.test(n)?C(n,d):void(s.$$parserName=e)})),s.$formatters.push((function(e){if(e&&!j(e))throw Hr("datefmt","Expected `{0}` to be a date",e);if(b(e)){d=e;var t=s.$options.getOption("timezone");return t&&(p=t,d=be(d,t,!0)),function(e,t){var n=i;m&&V(s.$options.getOption("timeSecondsFormat"))&&(n=i.replace("ss.sss",s.$options.getOption("timeSecondsFormat")).replace(/:$/,""));var a=c("date")(e,n,t);m&&s.$options.getOption("timeStripZeroSeconds")&&(a=a.replace(/(?::00)?(?:\.000)?$/,""));return a}(e,t)}return d=null,p=null,""})),P(l.min)||l.ngMin){var h=l.min||f(l.ngMin)(a),g=_(h);s.$validators.min=function(e){return!b(e)||R(g)||n(e)>=g},l.$observe("min",(function(e){e!==h&&(g=_(e),h=e,s.$validate())}))}if(P(l.max)||l.ngMax){var v=l.max||f(l.ngMax)(a),y=_(v);s.$validators.max=function(e){return!b(e)||R(y)||n(e)<=y},l.$observe("max",(function(e){e!==v&&(y=_(e),v=e,s.$validate())}))}function b(e){return e&&!(e.getTime&&e.getTime()!=e.getTime())}function _(e){return P(e)&&!j(e)?C(e)||void 0:e}function C(e,t){var i=s.$options.getOption("timezone");p&&p!==i&&(t=ye(t,ve(p)));var a=n(e,t);return!isNaN(a)&&i&&(a=be(a,i)),a}}}function or(e,t,n,i,a){var r=t[0];(i.$$hasNativeValidators=F(r.validity))&&i.$parsers.push((function(e){var n=t.prop("validity")||{};if(!n.badInput&&!n.typeMismatch)return e;i.$$parserName=a}))}function ur(e){e.$parsers.push((function(t){return e.$isEmpty(t)?null:Qa.test(t)?parseFloat(t):void(e.$$parserName="number")})),e.$formatters.push((function(t){if(!e.$isEmpty(t)){if(!B(t))throw Hr("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t}))}function cr(e){return P(e)&&!B(e)&&(e=parseFloat(e)),x(e)?void 0:e}function fr(e){return(0|e)===e}function dr(e){var t=e.toString(),n=t.indexOf(".");if(-1===n){if(-1<e&&e<1){var i=/e-(\d+)$/.exec(t);if(i)return Number(i[1])}return 0}return t.length-n-1}function pr(e,t,n){var i=Number(e),a=!fr(i),r=!fr(t),l=!fr(n);if(a||r||l){var s=a?dr(i):0,o=r?dr(t):0,u=l?dr(n):0,c=Math.max(s,o,u),f=Math.pow(10,c);i*=f,t*=f,n*=f,a&&(i=Math.round(i)),r&&(t=Math.round(t)),l&&(n=Math.round(n))}return(i-t)%n==0}function mr(e,t,n,i,a){var r;if(P(i)){if(!(r=e(i)).constant)throw Hr("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i);return r(t)}return a}var hr=["$browser","$sniffer","$filter","$parse",function(e,t,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(a,r,l,s){s[0]&&(ir[d(l.type)]||ir.text)(a,r,l,s[0],t,e,n,i)}}}}],gr=function(){var e={configurable:!0,enumerable:!1,get:function(){return this.getAttribute("value")||""},set:function(e){this.setAttribute("value",e)}};return{restrict:"E",priority:200,compile:function(t,n){if("hidden"===d(n.type))return{pre:function(t,n,i,a){var r=n[0];r.parentNode&&r.parentNode.insertBefore(r,r.nextSibling),Object.defineProperty&&Object.defineProperty(r,"value",e)}}}}},vr=/^(true|false|\d+)$/,yr=function(){function e(e,t,n){var i=P(n)?n:9===l?"":null;e.prop("value",i),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return vr.test(n.ngValue)?function(t,n,i){e(n,i,t.$eval(i.ngValue))}:function(t,n,i){t.$watch(i.ngValue,(function(t){e(n,i,t)}))}}}},br=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,i){e.$$addBindingInfo(n,i.ngBind),n=n[0],t.$watch(i.ngBind,(function(e){n.textContent=Fe(e)}))}}}}],_r=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,i,a){var r=e(i.attr(a.$attr.ngBindTemplate));t.$$addBindingInfo(i,r.expressions),i=i[0],a.$observe("ngBindTemplate",(function(e){i.textContent=R(e)?"":e}))}}}}],Cr=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(i,a){var r=t(a.ngBindHtml),l=t(a.ngBindHtml,(function(t){return e.valueOf(t)}));return n.$$addBindingClass(i),function(t,i,a){n.$$addBindingInfo(i,a.ngBindHtml),t.$watch(l,(function(){var n=r(t);i.html(e.getTrustedHtml(n)||"")}))}}}}],wr=E({restrict:"A",require:"ngModel",link:function(e,t,n,i){i.$viewChangeListeners.push((function(){e.$eval(n.ngChange)}))}});function $r(e,t){var n;return e="ngClass"+e,["$parse",function(l){return{restrict:"AC",link:function(s,o,u){var c,f=o.data("$classCounts"),d=!0;function p(e,t){var n=[];return $(e,(function(e){(t>0||f[e])&&(f[e]=(f[e]||0)+t,f[e]===+(t>0)&&n.push(e))})),n.join(" ")}f||(f=Pe(),o.data("$classCounts",f)),"ngClass"!==e&&(n||(n=l("$index",(function(e){return 1&e}))),s.$watch(n,(function(e){e===t?(n=p(a(n=c),1),u.$addClass(n)):function(e){e=p(a(e),-1),u.$removeClass(e)}(c);var n;d=e}))),s.$watch(l(u[e],r),(function(e){d===t&&function(e,t){var n=a(e),r=a(t),l=i(n,r),s=i(r,n),o=p(l,-1),c=p(s,1);u.$addClass(c),u.$removeClass(o)}(c,e);c=e}))}}}];function i(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var i=0;i<e.length;i++){for(var a=e[i],r=0;r<t.length;r++)if(a===t[r])continue e;n.push(a)}return n}function a(e){return e&&e.split(" ")}function r(e){if(!e)return e;var t=e;return z(e)?t=e.map(r).join(" "):F(e)?t=Object.keys(e).filter((function(t){return e[t]})).join(" "):V(e)||(t=e+""),t}}var kr=$r("",!0),Sr=$r("Odd",0),Mr=$r("Even",1),Ir=Ea({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),Lr=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],Ar={},Or={blur:!0,focus:!0};function Tr(e,t,n,i,a,r){return{restrict:"A",compile:function(l,s){var o=e(s[i]);return function(e,i){i.on(a,(function(i){var a=function(){o(e,{$event:i})};if(t.$$phase)if(r)e.$evalAsync(a);else try{a()}catch(e){n(e)}else e.$apply(a)}))}}}}$("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),(function(e){var t=bn("ng-"+e);Ar[t]=["$parse","$rootScope","$exceptionHandler",function(n,i,a){return Tr(n,i,a,t,e,Or[e])}]}));var xr=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,a,r,l){var s,o,u;n.$watch(a.ngIf,(function(n){n?o||l((function(n,r){o=r,n[n.length++]=t.$$createComment("end ngIf",a.ngIf),s={clone:n},e.enter(n,i.parent(),i)})):(u&&(u.remove(),u=null),o&&(o.$destroy(),o=null),s&&(u=Re(s.clone),e.leave(u).done((function(e){!1!==e&&(u=null)})),s=null))}))}}}],Dr=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:_.noop,compile:function(i,a){var r=a.ngInclude||a.src,l=a.onload||"",s=a.autoscroll;return function(i,a,o,u,c){var f,d,p,m=0,h=function(){d&&(d.remove(),d=null),f&&(f.$destroy(),f=null),p&&(n.leave(p).done((function(e){!1!==e&&(d=null)})),d=p,p=null)};i.$watch(r,(function(r){var o=function(e){!1===e||!P(s)||s&&!i.$eval(s)||t()},d=++m;r?(e(r,!0).then((function(e){if(!i.$$destroyed&&d===m){var t=i.$new();u.template=e;var s=c(t,(function(e){h(),n.enter(e,null,a).done(o)}));p=s,(f=t).$emit("$includeContentLoaded",r),i.$eval(l)}}),(function(){i.$$destroyed||d===m&&(h(),i.$emit("$includeContentError",r))})),i.$emit("$includeContentRequested",r)):(h(),u.template=null)}))}}}}],Ur=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,i,a,r){if(v.call(i[0]).match(/SVG/))return i.empty(),void t(ct(r.template,e.document).childNodes)(n,(function(e){i.append(e)}),{futureParentElement:i});i.html(r.template),t(i.contents())(n)}}}],qr=Ea({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Er=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,i){var a=n.ngList||", ",r="false"!==n.ngTrim,l=r?ee(a):a;i.$parsers.push((function(e){if(!R(e)){var t=[];return e&&$(e.split(l),(function(e){e&&t.push(r?ee(e):e)})),t}})),i.$formatters.push((function(e){if(z(e))return e.join(a)})),i.$isEmpty=function(e){return!e||!e.length}}}},Nr="ng-valid",Rr="ng-invalid",Pr="ng-pristine",Fr="ng-dirty",Hr=r("ngModel");function Vr(e,t,n,i,a,r,l,s,o){var u;this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=o(n.name||"",!1)(e),this.$$parentForm=Pa,this.$options=Br,this.$$updateEvents="",this.$$updateEventHandler=this.$$updateEventHandler.bind(this),this.$$parsedNgModel=a(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$parserName="parse",this.$$currentValidationRunId=0,this.$$scope=e,this.$$rootScope=e.$root,this.$$attr=n,this.$$element=i,this.$$animate=r,this.$$timeout=l,this.$$parse=a,this.$$q=s,this.$$exceptionHandler=t,ja(this),(u=this).$$scope.$watch((function(e){var t=u.$$ngModelGet(e);return t===u.$modelValue||u.$modelValue!=u.$modelValue&&t!=t||u.$$setModelValue(t),t}))}Vr.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Vr.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return G(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){G(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Hr("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,_e(this.$$element))},$render:U,$isEmpty:function(e){return R(e)||""===e||null===e||e!=e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Fr),this.$$animate.addClass(this.$$element,Pr)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,Pr),this.$$animate.addClass(this.$$element,Fr),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!x(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,i=this.$modelValue,a=this.$options.getOption("allowInvalid"),r=this;this.$$runValidators(t,e,(function(e){a||n===e||(r.$modelValue=e?t:void 0,r.$modelValue!==i&&r.$$writeModelToScope())}))}},$$runValidators:function(e,t,n){this.$$currentValidationRunId++;var i,a,r=this.$$currentValidationRunId,l=this;(function(){var e=l.$$parserName;if(!R(l.$$parserValid))return l.$$parserValid||($(l.$validators,(function(e,t){s(t,null)})),$(l.$asyncValidators,(function(e,t){s(t,null)}))),s(e,l.$$parserValid),l.$$parserValid;s(e,null);return!0})()?!function(){var n=!0;if($(l.$validators,(function(i,a){var r=Boolean(i(e,t));n=n&&r,s(a,r)})),!n)return $(l.$asyncValidators,(function(e,t){s(t,null)})),!1;return!0}()?o(!1):(i=[],a=!0,$(l.$asyncValidators,(function(n,r){var l=n(e,t);if(!X(l))throw Hr("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",l);s(r,void 0),i.push(l.then((function(){s(r,!0)}),(function(){a=!1,s(r,!1)})))})),i.length?l.$$q.all(i).then((function(){o(a)}),U):o(!0)):o(!1);function s(e,t){r===l.$$currentValidationRunId&&l.$setValidity(e,t)}function o(e){r===l.$$currentValidationRunId&&n(e)}},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){var e=this.$$lastCommittedViewValue,t=this;if(this.$$parserValid=!R(e)||void 0,this.$setValidity(this.$$parserName,null),this.$$parserName="parse",this.$$parserValid)for(var n=0;n<this.$parsers.length;n++)if(R(e=this.$parsers[n](e))){this.$$parserValid=!1;break}x(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var i=this.$modelValue,a=this.$options.getOption("allowInvalid");function r(){t.$modelValue!==i&&t.$$writeModelToScope()}this.$$rawModelValue=e,a&&(this.$modelValue=e,r()),this.$$runValidators(e,this.$$lastCommittedViewValue,(function(n){a||(t.$modelValue=n?e:void 0,r())}))},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),$(this.$viewChangeListeners,(function(e){try{e()}catch(e){this.$$exceptionHandler(e)}}),this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");B(t[e])?t=t[e]:B(t.default)&&-1===this.$options.getOption("updateOn").indexOf(e)?t=t.default:B(t["*"])&&(t=t["*"]),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout((function(){n.$commitViewValue()}),t):this.$$rootScope.$$phase?this.$commitViewValue():this.$$scope.$apply((function(){n.$commitViewValue()}))},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e),this.$$setUpdateOnEvents()},$processModelValue:function(){var e=this.$$format();this.$viewValue!==e&&(this.$$updateEmptyClasses(e),this.$viewValue=this.$$lastCommittedViewValue=e,this.$render(),this.$$runValidators(this.$modelValue,this.$viewValue,U))},$$format:function(){for(var e=this.$formatters,t=e.length,n=this.$modelValue;t--;)n=e[t](n);return n},$$setModelValue:function(e){this.$modelValue=this.$$rawModelValue=e,this.$$parserValid=void 0,this.$processModelValue()},$$setUpdateOnEvents:function(){this.$$updateEvents&&this.$$element.off(this.$$updateEvents,this.$$updateEventHandler),this.$$updateEvents=this.$options.getOption("updateOn"),this.$$updateEvents&&this.$$element.on(this.$$updateEvents,this.$$updateEventHandler)},$$updateEventHandler:function(e){this.$$debounceViewValueCommit(e&&e.type)}},za({clazz:Vr,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Br,jr=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Vr,priority:1,compile:function(t){return t.addClass(Pr).addClass("ng-untouched").addClass(Nr),{pre:function(e,t,n,i){var a=i[0],r=i[1]||a.$$parentForm,l=i[2];l&&(a.$options=l.$options),a.$$initGetterSetters(),r.$addControl(a),n.$observe("name",(function(e){a.$name!==e&&a.$$parentForm.$$renameControl(a,e)})),e.$on("$destroy",(function(){a.$$parentForm.$removeControl(a)}))},post:function(t,n,i,a){var r=a[0];function l(){r.$setTouched()}r.$$setUpdateOnEvents(),n.on("blur",(function(){r.$touched||(e.$$phase?t.$evalAsync(l):t.$apply(l))}))}}}}}],zr=/(\s+|^)default(\s+|$)/;function Yr(e){this.$$options=e}Yr.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return $(e=A({},e),(function(n,i){"$inherit"===n?"*"===i?t=!0:(e[i]=this.$$options[i],"updateOn"===i&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===i&&(e.updateOnDefault=!1,e[i]=ee(n.replace(zr,(function(){return e.updateOnDefault=!0," "}))))}),this),t&&(delete e["*"],Wr(e,this.$$options)),Wr(e,Br.$$options),new Yr(e)}},Br=new Yr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var Gr=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:Br,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}};function Wr(e,t){$(t,(function(t,n){P(e[n])||(e[n]=t)}))}var Kr=Ea({terminal:!0,priority:1e3}),Qr=r("ngOptions"),Jr=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,Xr=["$compile","$document","$parse",function(t,n,i){var a=e.document.createElement("option"),r=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,i){i[0].registerOption=U},post:function(e,l,o,u){for(var c=u[0],f=u[1],d=o.multiple,p=0,m=l.children(),h=m.length;p<h;p++)if(""===m[p].value){c.hasEmptyOption=!0,c.emptyOption=m.eq(p);break}l.empty();var g,v=!!c.emptyOption;s(a.cloneNode(!1)).val("?");var y=function(e,t,n){var a=e.match(Jr);if(!a)throw Qr("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,_e(t));var r=a[5]||a[7],l=a[6],s=/ as /.test(a[0])&&a[1],o=a[9],u=i(a[2]?a[1]:r),c=s&&i(s)||u,f=o&&i(o),d=o?function(e,t){return f(n,t)}:function(e){return Rt(e)},p=function(e,t){return d(e,b(e,t))},m=i(a[2]||a[1]),h=i(a[3]||""),g=i(a[4]||""),v=i(a[8]),y={},b=l?function(e,t){return y[l]=t,y[r]=e,y}:function(e){return y[r]=e,y};function _(e,t,n,i,a){this.selectValue=e,this.viewValue=t,this.label=n,this.group=i,this.disabled=a}function C(e){var t;if(!l&&w(e))t=e;else for(var n in t=[],e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n);return t}return{trackBy:o,getTrackByValue:p,getWatchables:i(v,(function(e){for(var t=[],i=C(e=e||[]),r=i.length,l=0;l<r;l++){var s=e===i?l:i[l],o=e[s],u=b(o,s),c=d(o,u);if(t.push(c),a[2]||a[1]){var f=m(n,u);t.push(f)}if(a[4]){var p=g(n,u);t.push(p)}}return t})),getOptions:function(){for(var e=[],t={},i=v(n)||[],a=C(i),r=a.length,l=0;l<r;l++){var s=i===a?l:a[l],u=i[s],f=b(u,s),y=c(n,f),w=d(y,f),$=new _(w,y,m(n,f),h(n,f),g(n,f));e.push($),t[w]=$}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[p(e)]},getViewValueFromOption:function(e){return o?le(e.viewValue):e.viewValue}}}}}(o.ngOptions,l,e),b=n[0].createDocumentFragment();function _(e,t){var n=a.cloneNode(!1);t.appendChild(n),function(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label);t.value=e.selectValue}(e,n)}function C(e){var t=g.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}c.generateUnknownOptionValue=function(e){return"?"},d?(c.writeValue=function(e){if(g){var t=e&&e.map(C)||[];g.items.forEach((function(e){e.element.selected&&!ae(t,e)&&(e.element.selected=!1)}))}},c.readValue=function(){var e=l.val()||[],t=[];return $(e,(function(e){var n=g.selectValueMap[e];n&&!n.disabled&&t.push(g.getViewValueFromOption(n))})),t},y.trackBy&&e.$watchCollection((function(){if(z(f.$viewValue))return f.$viewValue.map((function(e){return y.getTrackByValue(e)}))}),(function(){f.$render()}))):(c.writeValue=function(e){if(g){var t=l[0].options[l[0].selectedIndex],n=g.getOptionFromViewValue(e);t&&t.removeAttribute("selected"),n?(l[0].value!==n.selectValue&&(c.removeUnknownOption(),l[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):c.selectUnknownOrEmptyOption(e)}},c.readValue=function(){var e=g.selectValueMap[l.val()];return e&&!e.disabled?(c.unselectEmptyOption(),c.removeUnknownOption(),g.getViewValueFromOption(e)):null},y.trackBy&&e.$watch((function(){return y.getTrackByValue(f.$viewValue)}),(function(){f.$render()}))),v&&(t(c.emptyOption)(e),l.prepend(c.emptyOption),8===c.emptyOption[0].nodeType?(c.hasEmptyOption=!1,c.registerOption=function(e,t){""===t.val()&&(c.hasEmptyOption=!0,c.emptyOption=t,c.emptyOption.removeClass("ng-scope"),f.$render(),t.on("$destroy",(function(){var e=c.$isEmptyOptionSelected();c.hasEmptyOption=!1,c.emptyOption=void 0,e&&f.$render()})))}):c.emptyOption.removeClass("ng-scope")),e.$watchCollection(y.getWatchables,(function(){var e=g&&c.readValue();if(g)for(var t=g.items.length-1;t>=0;t--){var n=g.items[t];P(n.group)?Lt(n.element.parentNode):Lt(n.element)}g=y.getOptions();var i={};if(g.items.forEach((function(e){var t;P(e.group)?((t=i[e.group])||(t=r.cloneNode(!1),b.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),_(e,t)):_(e,b)})),l[0].appendChild(b),f.$render(),!f.$isEmpty(e)){var a=c.readValue();(y.trackBy||d?oe(e,a):e===a)||(f.$setViewValue(a),f.$render())}}))}}}}],Zr=["$locale","$interpolate","$log",function(e,t,n){var i=/{}/g,a=/^when(Minus)?(.+)$/;return{link:function(r,l,s){var o,u=s.count,c=s.$attr.when&&l.attr(s.$attr.when),f=s.offset||0,p=r.$eval(c)||{},m={},h=t.startSymbol(),g=t.endSymbol(),v=h+u+"-"+f+g,y=_.noop;function b(e){l.text(e||"")}$(s,(function(e,t){var n=a.exec(t);if(n){var i=(n[1]?"-":"")+d(n[2]);p[i]=l.attr(s.$attr[t])}})),$(p,(function(e,n){m[n]=t(e.replace(i,v))})),r.$watch(u,(function(t){var i=parseFloat(t),a=x(i);if(a||i in p||(i=e.pluralCat(i-f)),!(i===o||a&&x(o))){y();var l=m[i];R(l)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+i+"' in "+c),y=U,b()):y=r.$watch(l,b),o=i}}))}}}],el=r("ngRef"),tl=["$parse",function(e){return{priority:-1,restrict:"A",compile:function(t,n){var i=bn(ie(t)),a=e(n.ngRef),r=a.assign||function(){throw el("nonassign",'Expression in ngRef="{0}" is non-assignable!',n.ngRef)};return function(e,t,l){var s;if(l.hasOwnProperty("ngRefRead")){if("$element"===l.ngRefRead)s=t;else if(!(s=t.data("$"+l.ngRefRead+"Controller")))throw el("noctrl",'The controller for ngRefRead="{0}" could not be found on ngRef="{1}"',l.ngRefRead,n.ngRef)}else s=t.data("$"+i+"Controller");r(e,s=s||t),t.on("$destroy",(function(){a(e)===s&&r(e,null)}))}}}}],nl=["$parse","$animate","$compile",function(e,t,n){var i=r("ngRepeat"),a=function(e,t,n,i,a,r,l){e[n]=i,a&&(e[a]=r),e.$index=t,e.$first=0===t,e.$last=t===l-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},l=function(e){return e.clone[0]},s=function(e){return e.clone[e.clone.length-1]},o=function(e,t,n){return Rt(n)},u=function(e,t){return t};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(r,c){var d=c.ngRepeat,p=n.$$createComment("end ngRepeat",d),m=d.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!m)throw i("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",d);var h=m[1],g=m[2],v=m[3],y=m[4];if(!(m=h.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw i("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",h);var b,_=m[3]||m[1],C=m[2];if(v&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(v)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(v)))throw i("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",v);if(y){var k={$id:Rt},S=e(y);b=function(e,t,n,i){return C&&(k[C]=t),k[_]=n,k.$index=i,S(e,k)}}return function(e,n,r,c,m){var h=Pe();e.$watchCollection(g,(function(r){var c,g,y,S,M,I,L,A,O,T,x,D,U=n[0],q=Pe();if(v&&(e[v]=r),w(r))O=r,A=b||o;else for(var E in A=b||u,O=[],r)f.call(r,E)&&"$"!==E.charAt(0)&&O.push(E);for(S=O.length,x=new Array(S),c=0;c<S;c++)if(M=r===O?c:O[c],I=r[M],L=A(e,M,I,c),h[L])T=h[L],delete h[L],q[L]=T,x[c]=T;else{if(q[L])throw $(x,(function(e){e&&e.scope&&(h[e.id]=e)})),i("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",d,L,I);x[c]={id:L,scope:void 0,clone:void 0},q[L]=!0}for(var N in k&&(k[_]=void 0),h){if(D=Re((T=h[N]).clone),t.leave(D),D[0].parentNode)for(c=0,g=D.length;c<g;c++)D[c].$$NG_REMOVED=!0;T.scope.$destroy()}for(c=0;c<S;c++)if(M=r===O?c:O[c],I=r[M],(T=x[c]).scope){y=U;do{y=y.nextSibling}while(y&&y.$$NG_REMOVED);l(T)!==y&&t.move(Re(T.clone),null,U),U=s(T),a(T.scope,c,_,I,C,M,S)}else m((function(e,n){T.scope=n;var i=p.cloneNode(!1);e[e.length++]=i,t.enter(e,null,U),U=i,T.clone=e,q[T.id]=T,a(T.scope,c,_,I,C,M,S)}));h=q}))}}}}],il=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,i){t.$watch(i.ngShow,(function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],al=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,i){t.$watch(i.ngHide,(function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})}))}}}],rl=Ea((function(e,t,n){e.$watchCollection(n.ngStyle,(function(e,n){n&&e!==n&&$(n,(function(e,n){t.css(n,"")})),e&&t.css(e)}))})),ll=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,i,a,r){var l=a.ngSwitch||a.on,s=[],o=[],u=[],c=[],f=function(e,t){return function(n){!1!==n&&e.splice(t,1)}};n.$watch(l,(function(n){for(var i,a;u.length;)e.cancel(u.pop());for(i=0,a=c.length;i<a;++i){var l=Re(o[i].clone);c[i].$destroy(),(u[i]=e.leave(l)).done(f(u,i))}o.length=0,c.length=0,(s=r.cases["!"+n]||r.cases["?"])&&$(s,(function(n){n.transclude((function(i,a){c.push(a);var r=n.element;i[i.length++]=t.$$createComment("end ngSwitchWhen");var l={clone:i};o.push(l),e.enter(i,r.parent(),r)}))}))}))}}}],sl=Ea({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,a){$(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter((function(e,t,n){return n[t-1]!==e})),(function(e){i.cases["!"+e]=i.cases["!"+e]||[],i.cases["!"+e].push({transclude:a,element:t})}))}}),ol=Ea({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,i,a){i.cases["?"]=i.cases["?"]||[],i.cases["?"].push({transclude:a,element:t})}}),ul=r("ngTransclude"),cl=["$compile",function(e){return{restrict:"EAC",compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,i,a,r){if(!r)throw ul("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",_e(t));i.ngTransclude===i.$attr.ngTransclude&&(i.ngTransclude="");var l=i.ngTransclude||i.ngTranscludeSlot;function s(){n(e,(function(e){t.append(e)}))}r((function(e,n){e.length&&function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i.nodeType!==He||i.nodeValue.trim())return!0}}(e)?t.append(e):(s(),n.$destroy())}),null,l),l&&!r.isSlotFilled(l)&&s()}}}}],fl=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var i=n.id,a=t[0].text;e.put(i,a)}}}}],dl={$setViewValue:U,$render:U};function pl(e,t){e.prop("selected",t),e.attr("selected",t)}var ml=["$element","$scope",function(t,n){var i=this,a=new Ht;i.selectValueMap={},i.ngModelCtrl=dl,i.multiple=!1,i.unknownOption=s(e.document.createElement("option")),i.hasEmptyOption=!1,i.emptyOption=void 0,i.renderUnknownOption=function(e){var n=i.generateUnknownOptionValue(e);i.unknownOption.val(n),t.prepend(i.unknownOption),pl(i.unknownOption,!0),t.val(n)},i.updateUnknownOption=function(e){var n=i.generateUnknownOptionValue(e);i.unknownOption.val(n),pl(i.unknownOption,!0),t.val(n)},i.generateUnknownOptionValue=function(e){return"? "+Rt(e)+" ?"},i.removeUnknownOption=function(){i.unknownOption.parent()&&i.unknownOption.remove()},i.selectEmptyOption=function(){i.emptyOption&&(t.val(""),pl(i.emptyOption,!0))},i.unselectEmptyOption=function(){i.hasEmptyOption&&pl(i.emptyOption,!1)},n.$on("$destroy",(function(){i.renderUnknownOption=U})),i.readValue=function(){var e=t.val(),n=e in i.selectValueMap?i.selectValueMap[e]:e;return i.hasOption(n)?n:null},i.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&pl(s(n),!1),i.hasOption(e)){i.removeUnknownOption();var a=Rt(e);t.val(a in i.selectValueMap?a:e);var r=t[0].options[t[0].selectedIndex];pl(s(r),!0)}else i.selectUnknownOrEmptyOption(e)},i.addOption=function(e,t){if(8!==t[0].nodeType){Ne(e,'"option value"'),""===e&&(i.hasEmptyOption=!0,i.emptyOption=t);var n=a.get(e)||0;a.set(e,n+1),l()}},i.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.delete(e),""===e&&(i.hasEmptyOption=!1,i.emptyOption=void 0)):a.set(e,t-1))},i.hasOption=function(e){return!!a.get(e)},i.$hasEmptyOption=function(){return i.hasEmptyOption},i.$isUnknownOptionSelected=function(){return t[0].options[0]===i.unknownOption[0]},i.$isEmptyOptionSelected=function(){return i.hasEmptyOption&&t[0].options[t[0].selectedIndex]===i.emptyOption[0]},i.selectUnknownOrEmptyOption=function(e){null==e&&i.emptyOption?(i.removeUnknownOption(),i.selectEmptyOption()):i.unknownOption.parent().length?i.updateUnknownOption(e):i.renderUnknownOption(e)};var r=!1;function l(){r||(r=!0,n.$$postDigest((function(){r=!1,i.ngModelCtrl.$render()})))}var o=!1;function u(e){o||(o=!0,n.$$postDigest((function(){n.$$destroyed||(o=!1,i.ngModelCtrl.$setViewValue(i.readValue()),e&&i.ngModelCtrl.$render())})))}i.registerOption=function(e,t,n,a,r){var s,o;n.$attr.ngValue?n.$observe("value",(function(e){var n,a=t.prop("selected");P(o)&&(i.removeOption(s),delete i.selectValueMap[o],n=!0),o=Rt(e),s=e,i.selectValueMap[o]=e,i.addOption(e,t),t.attr("value",o),n&&a&&u()})):a?n.$observe("value",(function(e){var n;i.readValue();var a=t.prop("selected");P(s)&&(i.removeOption(s),n=!0),s=e,i.addOption(e,t),n&&a&&u()})):r?e.$watch(r,(function(e,a){n.$set("value",e);var r=t.prop("selected");a!==e&&i.removeOption(a),i.addOption(e,t),a&&r&&u()})):i.addOption(n.value,t);n.$observe("disabled",(function(e){("true"===e||e&&t.prop("selected"))&&(i.multiple?u(!0):(i.ngModelCtrl.$setViewValue(null),i.ngModelCtrl.$render()))})),t.on("$destroy",(function(){var e=i.readValue(),t=n.value;i.removeOption(t),l(),(i.multiple&&e&&-1!==e.indexOf(t)||e===t)&&u(!0)}))}}],hl=function(){return{restrict:"E",require:["select","?ngModel"],controller:ml,priority:1,link:{pre:function(e,t,n,i){var a=i[0],r=i[1];if(!r)return void(a.registerOption=U);if(a.ngModelCtrl=r,t.on("change",(function(){a.removeUnknownOption(),e.$apply((function(){r.$setViewValue(a.readValue())}))})),n.multiple){a.multiple=!0,a.readValue=function(){var e=[];return $(t.find("option"),(function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in a.selectValueMap?a.selectValueMap[n]:n)}})),e},a.writeValue=function(e){$(t.find("option"),(function(t){var n=!!e&&(ae(e,t.value)||ae(e,a.selectValueMap[t.value]));n!==t.selected&&pl(s(t),n)}))};var l,o=NaN;e.$watch((function(){o!==r.$viewValue||oe(l,r.$viewValue)||(l=Ve(r.$viewValue),r.$render()),o=r.$viewValue})),r.$isEmpty=function(e){return!e||0===e.length}}},post:function(e,t,n,i){var a=i[1];if(!a)return;var r=i[0];a.$render=function(){r.writeValue(a.$viewValue)}}}}},gl=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var i,a;return P(n.ngValue)||(P(n.value)?i=e(n.value,!0):(a=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var r=t.parent(),l=r.data("$selectController")||r.parent().data("$selectController");l&&l.registerOption(e,t,n,i,a)}}}}],vl=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,i,a){if(a){var r=i.hasOwnProperty("required")||e(i.ngRequired)(t);i.ngRequired||(i.required=!0),a.$validators.required=function(e,t){return!r||!a.$isEmpty(t)},i.$observe("required",(function(e){r!==e&&(r=e,a.$validate())}))}}}}],yl=["$parse",function(e){return{restrict:"A",require:"?ngModel",compile:function(t,n){var i,a;return n.ngPattern&&(i=n.ngPattern,a="/"===n.ngPattern.charAt(0)&&c.test(n.ngPattern)?function(){return n.ngPattern}:e(n.ngPattern)),function(e,t,n,r){if(r){var l=n.pattern;n.ngPattern?l=a(e):i=n.pattern;var s=Cl(l,i,t);n.$observe("pattern",(function(e){var n=s;s=Cl(e,i,t),(n&&n.toString())!==(s&&s.toString())&&r.$validate()})),r.$validators.pattern=function(e,t){return r.$isEmpty(t)||R(s)||s.test(t)}}}}}}],bl=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,i,a){if(a){var r=i.maxlength||e(i.ngMaxlength)(t),l=wl(r);i.$observe("maxlength",(function(e){r!==e&&(l=wl(e),r=e,a.$validate())})),a.$validators.maxlength=function(e,t){return l<0||a.$isEmpty(t)||t.length<=l}}}}}],_l=["$parse",function(e){return{restrict:"A",require:"?ngModel",link:function(t,n,i,a){if(a){var r=i.minlength||e(i.ngMinlength)(t),l=wl(r)||-1;i.$observe("minlength",(function(e){r!==e&&(l=wl(e)||-1,r=e,a.$validate())})),a.$validators.minlength=function(e,t){return a.$isEmpty(t)||t.length>=l}}}}}];function Cl(e,t,n){if(e){if(V(e)&&(e=new RegExp("^"+e+"$")),!e.test)throw r("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",t,e,_e(n));return e}}function wl(e){var t=T(e);return x(t)?-1:t}e.angular.bootstrap?e.console&&console.log("WARNING: Tried to load AngularJS more than once."):(!function(){var t;if(!De){var n=function t(){if(P(t.name_))return t.name_;var n,i,a,r,l=Se.length;for(i=0;i<l;++i)if(a=Se[i],n=e.document.querySelector("["+a.replace(":","\\:")+"jq]")){r=n.getAttribute(a+"jq");break}return t.name_=r}();(o=R(n)?e.jQuery:n?e[n]:void 0)&&o.fn.on?(s=o,A(o.fn,{scope:Ot.scope,isolateScope:Ot.isolateScope,controller:Ot.controller,injector:Ot.injector,inheritedData:Ot.inheritedData})):s=dt,t=s.cleanData,s.cleanData=function(e){for(var n,i,a=0;null!=(i=e[a]);a++)(n=(s._data(i)||{}).events)&&n.$destroy&&s(i).triggerHandler("$destroy");t(e)},_.element=s,De=!0}}(),function(t){A(t,{errorHandlingConfig:i,bootstrap:Le,copy:le,extend:A,merge:O,equals:oe,element:s,forEach:$,injector:Jt,noop:U,bind:de,toJson:me,fromJson:he,identity:q,isUndefined:R,isDefined:P,isString:V,isFunction:G,isObject:F,isNumber:B,isElement:ne,isArray:z,version:je,isDate:j,callbacks:{$$counter:0},getTestability:Oe,reloadWithDebugInfo:Ae,UNSAFE_restoreLegacyJqLiteXHTMLReplacement:Ue,$$minErr:r,$$csp:ue,$$encodeUriSegment:$e,$$encodeUriQuery:ke,$$lowercase:d,$$stringify:Fe,$$uppercase:p}),(u=function(e){var t=r("$injector"),n=r("ng");function i(e,t,n){return e[t]||(e[t]=n())}var a=i(e,"angular",Object);return a.$$minErr=a.$$minErr||r,i(a,"module",(function(){var e={};return function(a,r,l){var s={};return function(e,t){if("hasOwnProperty"===e)throw n("badname","hasOwnProperty is not a valid {0} name",t)}(a,"module"),r&&e.hasOwnProperty(a)&&(e[a]=null),i(e,a,(function(){if(!r)throw t("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",a);var e=[],i=[],o=[],u=f("$injector","invoke","push",i),c={_invokeQueue:e,_configBlocks:i,_runBlocks:o,info:function(e){if(P(e)){if(!F(e))throw n("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:r,name:a,provider:d("$provide","provider"),factory:d("$provide","factory"),service:d("$provide","service"),value:f("$provide","value"),constant:f("$provide","constant","unshift"),decorator:d("$provide","decorator",i),animation:d("$animateProvider","register"),filter:d("$filterProvider","register"),controller:d("$controllerProvider","register"),directive:d("$compileProvider","directive"),component:d("$compileProvider","component"),config:u,run:function(e){return o.push(e),this}};return l&&u(l),c;function f(t,n,i,a){return a||(a=e),function(){return a[i||"push"]([t,n,arguments]),c}}function d(t,n,i){return i||(i=e),function(e,r){return r&&G(r)&&(r.$$moduleName=a),i.push([t,n,arguments]),c}}}))}}))}(e))("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:Vi}),e.provider("$compile",hn).directive({a:Na,input:hr,textarea:hr,form:Va,script:fl,select:hl,option:gl,ngBind:br,ngBindHtml:Cr,ngBindTemplate:_r,ngClass:kr,ngClassEven:Mr,ngClassOdd:Sr,ngCloak:Ir,ngController:Lr,ngForm:Ba,ngHide:al,ngIf:xr,ngInclude:Dr,ngInit:qr,ngNonBindable:Kr,ngPluralize:Zr,ngRef:tl,ngRepeat:nl,ngShow:il,ngStyle:rl,ngSwitch:ll,ngSwitchWhen:sl,ngSwitchDefault:ol,ngOptions:Xr,ngTransclude:cl,ngModel:jr,ngList:Er,ngChange:wr,pattern:yl,ngPattern:yl,required:vl,ngRequired:vl,minlength:_l,ngMinlength:_l,maxlength:bl,ngMaxlength:bl,ngValue:yr,ngModelOptions:Gr}).directive({ngInclude:Ur,input:gr}).directive(Ra).directive(Ar),e.provider({$anchorScroll:Xt,$animate:rn,$animateCss:on,$$animateJs:nn,$$animateQueue:an,$$AnimateRunner:sn,$$animateAsyncRun:ln,$browser:cn,$cacheFactory:fn,$controller:Sn,$document:Mn,$$isDocumentHidden:In,$exceptionHandler:Ln,$filter:pa,$$forceReflow:An,$interpolate:Gn,$interval:Kn,$$intervalFactory:Qn,$http:Bn,$httpParamSerializer:En,$httpParamSerializerJQLike:Nn,$httpBackend:zn,$xhrFactory:jn,$jsonpCallbacks:Jn,$location:mi,$log:hi,$parse:Di,$rootScope:Hi,$q:Ui,$$q:qi,$sce:Ki,$sceDelegate:Wi,$sniffer:Qi,$$taskTrackerFactory:Ji,$templateCache:dn,$templateRequest:ea,$$testability:ta,$timeout:ia,$window:ca,$$rAF:Fi,$$jqLite:Nt,$$Map:Vt,$$cookieReader:da})}]).info({angularVersion:"1.8.2"})}(_),_.module("ngLocale",[],["$provide",function(e){var t="one",n="other";e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,i){var a=0|e,r=function(e,t){var n=t;void 0===n&&(n=Math.min(function(e){var t=(e+="").indexOf(".");return-1==t?0:e.length-t-1}(e),3));var i=Math.pow(10,n);return{v:n,f:(e*i|0)%i}}(e,i);return 1==a&&0==r.v?t:n}})}]),s((function(){Ie(e.document,Le)})))}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend(window.angular.element("<style>").text('@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}'))},function(e,t,n){"use strict";n.r(t);var i=n(19),a=n.n(i),r=n(20),l=n.n(r),s=n(8);s._popover=a.a,s._tooltip=l.a,s._animate=n(67)},function(e,t,n){if(void 0===i)var i={};i.PrototypeAPI=function(){"use strict";var e={};function t(e){if(!e)return[];if("toArray"in Object(e))return e.toArray();for(var t=e.length||0,n=new Array(t);t--;)n[t]=e[t];return n}function n(e){var t=e;return i.PrototypeAPI.isString(e)&&(t=document.getElementById(e)),t}var a,r,l=Object.prototype.toString,s=(a="undefined"!=typeof navigator&&navigator.userAgent,r="[object Opera]"==Object.prototype.toString.call(window.opera),{IE:!!window.attachEvent&&!r,Opera:r,WebKit:a&&a.indexOf("AppleWebKit/")>-1,Gecko:a&&a.indexOf("Gecko")>-1&&-1===a.indexOf("KHTML"),MobileSafari:a&&/Apple.*Mobile/.test(a)});function o(e){return"[object Function]"===l.call(e)}function u(e,t){for(var n in t)e[n]=t[n];return e}function c(e){return e}var f=function(){var e=function(){for(var e in{toString:1})if("toString"===e)return!1;return!0}();function n(){}return{create:function(){var e=null,i=t(arguments);function a(){this.initialize.apply(this,arguments)}o(i[0])&&(e=i.shift()),u(a,f.Methods),a.superclass=e,a.subclasses=[],e&&(n.prototype=e.prototype,a.prototype=new n,e.subclasses.push(a));for(var r=0,l=i.length;r<l;r++)a.addMethods(i[r]);return a.prototype.initialize||(a.prototype.initialize=function(){}),a.prototype.constructor=a,a},Methods:{addMethods:function(t){var n,i,a=this.superclass&&this.superclass.prototype,r=Object.keys(t);e&&(t.toString!=Object.prototype.toString&&r.push("toString"),t.valueOf!=Object.prototype.valueOf&&r.push("valueOf"));for(var l=0,s=r.length;l<s;l++){var u=r[l],c=t[u];if(a&&o(c)&&"$super"==(n=c,i=void 0,i=n.toString().match(/^[\s\(]*function[^(]*\(([^)]*)\)/)[1].replace(/\/\/.*?[\r\n]|\/\*(?:.|[\r\n])*?\*\//g,"").replace(/\s+/g,"").split(","),1!=i.length||i[0]?i:[])[0]){var f=c;(c=function(e){return function(){return a[e].apply(this,arguments)}}(u).wrap(f)).valueOf=function(e){return function(){return e.valueOf.call(e)}}(f),c.toString=function(e){return function(){return e.toString.call(e)}}(f)}this.prototype[u]=c}return this}}}}(),d=function(){function n(t,n){t=t||c;var i=!0;return this.each((function(a,r){if(!(i=i&&!!t.call(n,a,r,this)))throw e}),this),i}function a(t,n){t=t||c;var i=!1;return this.each((function(a,r){if(i=!!t.call(n,a,r,this))throw e}),this),i}function r(e,t){e=e||c;var n=[];return this.each((function(i,a){n.push(e.call(t,i,a,this))}),this),n}function l(t,n){var i;return this.each((function(a,r){if(t.call(n,a,r,this))throw i=a,e}),this),i}function s(e,t){var n=[];return this.each((function(i,a){e.call(t,i,a,this)&&n.push(i)}),this),n}function u(t){if(o(this.indexOf)&&-1!=this.indexOf(t))return!0;var n=!1;return this.each((function(i){if(i==t)throw n=!0,e})),n}function f(){return this.map()}return{each:function(t,n){try{this._each(t,n)}catch(t){if(t!=e)throw t}return this},eachSlice:function(e,t,n){var i=-e,a=[],r=this.toArray();if(e<1)return r;for(;(i+=e)<r.length;)a.push(r.slice(i,i+e));return a.collect(t,n)},all:n,every:n,any:a,some:a,collect:r,map:r,detect:l,findAll:s,select:s,filter:s,grep:function(e,t,n){t=t||c;var a=[];return i.PrototypeAPI.isString(e)&&(e=new RegExp(RegExp.escape(e))),this.each((function(i,r){e.match(i)&&a.push(t.call(n,i,r,this))}),this),a},include:u,member:u,inGroupsOf:function(e,t){return t=Object.isUndefined(t)?null:t,this.eachSlice(e,(function(n){for(;n.length<e;)n.push(t);return n}))},inject:function(e,t,n){return this.each((function(i,a){e=t.call(n,e,i,a,this)}),this),e},invoke:function(e){var n=t(arguments).slice(1);return this.map((function(t){return t[e].apply(t,n)}))},max:function(e,t){var n;return e=e||c,this.each((function(i,a){i=e.call(t,i,a,this),(null==n||i>=n)&&(n=i)}),this),n},min:function(e,t){var n;return e=e||c,this.each((function(i,a){i=e.call(t,i,a,this),(null==n||i<n)&&(n=i)}),this),n},partition:function(e,t){e=e||c;var n=[],i=[];return this.each((function(a,r){(e.call(t,a,r,this)?n:i).push(a)}),this),[n,i]},pluck:function(e){var t=[];return this.each((function(n){t.push(n[e])})),t},reject:function(e,t){var n=[];return this.each((function(i,a){e.call(t,i,a,this)||n.push(i)}),this),n},sortBy:function(e,t){return this.map((function(n,i){return{value:n,criteria:e.call(t,n,i,this)}}),this).sort((function(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0})).pluck("value")},toArray:f,entries:f,zip:function(){var e=t(arguments),n=[this].concat(e).map(t);return this.map((function(e,t){for(var i=[],a=0,r=n.length;a<r;++a)i.push(n[a][t]);return i}))},size:function(){return this.toArray().length},inspect:function(){return"#<Enumerable:"+this.toArray().inspect()+">"},find:l}}();function p(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}var m={setOpacity:function(e,t){return 1==t||""===t?t="":t<1e-5&&(t=0),(e=n(e)).style.opacity=t,e},setStyle:function(e,t){var a=(e=n(e)).style;if(i.PrototypeAPI.isString(t)){if(a.cssText+=";"+t,t.include("opacity")){var r=t.match(/opacity:\s*(\d?\.?\d*)/)[1];i.PrototypeAPI.setOpacity(e,r)}return e}for(var l in t)if("opacity"===l)i.PrototypeAPI.setOpacity(e,t[l]);else{var s=t[l];"float"!==l&&"cssFloat"!==l||(l=void 0===a.styleFloat?"cssFloat":"styleFloat"),a[l]=s}return e},getStyle:function(e,t){var i=(e=n(e)).style[t];if(!i||"auto"===i){var a=document.defaultView.getComputedStyle(e,null);i=a?a[t]:null}return"opacity"===t?i?parseFloat(i):1:"auto"===i?null:i},makePositioned:function(e){e=n(e);var t=i.PrototypeAPI.getStyle(e,"position"),a={};return"static"!==t&&t||(a.position="relative",i.PrototypeAPI.Browser.Opera&&(a.top=0,a.left=0),i.PrototypeAPI.setStyle(e,a),jQuery(e).data("prototype_made_positioned",!0)),e},undoPositioned:function(e){e=n(e);var t=jQuery(e);return t.data("prototype_made_positioned")&&(t.removeData("prototype_made_positioned"),i.PrototypeAPI.setStyle(e,{position:"",top:"",bottom:"",left:"",right:""})),e}};return{$:n,Class:f,Enumerable:d,isString:function(e){return"[object String]"===l.call(e)},isArray:function(e){return"[object Array]"===l.call(e)},Browser:s,parseQuery:function(e){var t=e.trim().match(/([^?#]*)(#.*)?$/);if(!t)return{};for(var n=t[1].split("&"),i=0,a=n.length;i<a;++i){var r=n[i];if((r=r.split("="))[0]){var l=decodeURIComponent(r.shift()),s=r.length>1?r.join("="):r[0];null!=s&&(s=s.gsub("+"," "),s=decodeURIComponent(s)),l in hash?(this.isArray(hash[l])||(hash[l]=[hash[l]]),hash[l].push(s)):hash[l]=s}}return{}},escapeHTML:p,escapeAttribute:p,getStyle:m.getStyle,setStyle:m.setStyle,makePositioned:m.makePositioned,undoPositioned:m.undoPositioned,$A:t}}(),e.exports=i.PrototypeAPI},function(e,t){"function"!=typeof Object.assign&&(Object.assign=function(e){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var a in i)i.hasOwnProperty(a)&&(t[a]=i[a])}return t}),String.prototype.trimLeft=function(){for(var e=-1;this.charCodeAt(++e)<33;);return this.slice(e,this.length)}},function(e,t,n){e.exports=function(e){e.jqueryLite=function(){"use strict";return{ui:{keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}}}(),Object.assign(jQuery,e.jqueryLite)}},function(e,t,n){if(void 0===i)var i={};e.exports=function(e,t,n){"use strict";var i=n.PrototypeAPI.Class,a=n.PrototypeAPI.Enumerable,r=(n.PrototypeAPI.$A,n.PrototypeAPI.isString),l={_elementDoesNotExistError:{name:"ElementDoesNotExistError",message:"The specified DOM element does not exist, but is required for this effect to operate"},Transitions:{linear:function(e){return e},sinoidal:function(e){return-Math.cos(e*Math.PI)/2+.5},reverse:function(e){return 1-e},flicker:function(e){return(e=-Math.cos(e*Math.PI)/4+.75+Math.random()/4)>1?1:e},wobble:function(e){return-Math.cos(e*Math.PI*(9*e))/2+.5},pulse:function(e,t){return-Math.cos(e*((t||5)-.5)*2*Math.PI)/2+.5},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)},none:function(e){return 0},full:function(e){return 1}},DefaultOptions:{duration:1,fps:100,sync:!1,from:0,to:1,delay:0,queue:"parallel"}};l.DefaultOptions.transition=l.Transitions.sinoidal,l.ScopedQueue=i.create(a,{initialize:function(){this.effects=[],this.interval=null},_each:function(e){this.effects._each(e)},add:function(e){var n=(new Date).getTime();switch(r(e.options.queue)?e.options.queue:e.options.queue.position){case"front":this.effects.findAll((function(e){return"idle"==e.state})).each((function(t){t.startOn+=e.finishOn,t.finishOn+=e.finishOn}));break;case"with-last":n=this.effects.pluck("startOn").max()||n;break;case"end":n=this.effects.pluck("finishOn").max()||n}e.startOn+=n,e.finishOn+=n,(!e.options.queue.limit||this.effects.length<e.options.queue.limit)&&this.effects.push(e),this.interval||(this.interval=setInterval(t.proxy(this.loop,this),15))},remove:function(e){for(var t;(t=this.effects.indexOf(e))>-1;)this.effects.splice(t,1);0==this.effects.length&&(clearInterval(this.interval),this.interval=null)},loop:function(){for(var e=(new Date).getTime(),t=0,n=this.effects.length;t<n;t++)this.effects[t]&&this.effects[t].loop(e)}}),l.Queues={instances:{},get:function(e){return r(e)?this.instances[e]||(this.instances[e]=new l.ScopedQueue):e}},l.Queue=l.Queues.get("global"),l.Base=i.create({position:null,start:function(e){e&&!1===e.transition&&(e.transition=l.Transitions.linear),this.options=t.extend(t.extend({},l.DefaultOptions),e||{}),this.currentFrame=0,this.state="idle",this.startOn=1e3*this.options.delay,this.finishOn=this.startOn+1e3*this.options.duration,this.fromToDelta=this.options.to-this.options.from,this.totalTime=this.finishOn-this.startOn,this.totalFrames=this.options.fps*this.options.duration,this.render=function(){function e(e,t){e.options[t+"Internal"]&&e.options[t+"Internal"](e),e.options[t]&&e.options[t](e)}return function(t){"idle"===this.state&&(this.state="running",e(this,"beforeSetup"),this.setup&&this.setup(),e(this,"afterSetup")),"running"===this.state&&(t=this.options.transition(t)*this.fromToDelta+this.options.from,this.position=t,e(this,"beforeUpdate"),this.update&&this.update(t),e(this,"afterUpdate"))}}(),this.event("beforeStart"),this.options.sync||l.Queues.get(r(this.options.queue)?"global":this.options.queue.scope).add(this)},loop:function(e){if(e>=this.startOn){if(e>=this.finishOn)return this.render(1),this.cancel(),this.event("beforeFinish"),this.finish&&this.finish(),void this.event("afterFinish");var t=(e-this.startOn)/this.totalTime,n=Math.round(t*this.totalFrames);n>this.currentFrame&&(this.render(t),this.currentFrame=n)}},cancel:function(){this.options.sync||l.Queues.get(r(this.options.queue)?"global":this.options.queue.scope).remove(this),this.state="finished"},event:function(e){this.options[e+"Internal"]&&this.options[e+"Internal"](this),this.options[e]&&this.options[e](this)},inspect:function(){var e=$H();for(property in this)Object.isFunction(this[property])||e.set(property,this[property]);return"#<Effect:"+e.inspect()+",options:"+$H(this.options).inspect()+">"}}),l.Move=i.create(l.Base,{initialize:function(n){if(this.element=e(n),!this.element)throw l._elementDoesNotExistError;var i=t.extend({x:0,y:0,mode:"relative"},arguments[1]||{});this.start(i)},setup:function(){n.PrototypeAPI.makePositioned(this.element);var e=n.PrototypeAPI;this.originalLeft=parseFloat(e.getStyle(this.element,"left")||"0"),this.originalTop=parseFloat(e.getStyle(this.element,"top")||"0"),"absolute"==this.options.mode&&(this.options.x=this.options.x-this.originalLeft,this.options.y=this.options.y-this.originalTop)},update:function(e){n.PrototypeAPI.setStyle(this.element,{left:Math.round(this.options.x*e+this.originalLeft)+"px",top:Math.round(this.options.y*e+this.originalTop)+"px"})}}),l.Shake=function(i){i=e(i);var a=t.extend({distance:20,duration:.5},arguments[1]||{}),r=parseFloat(a.distance),s=parseFloat(a.duration)/10,o=t(i).offset(),u=n.PrototypeAPI,c={top:o.top,left:o.left};return new l.Move(i,{x:r,y:0,duration:s,afterFinishInternal:function(e){new l.Move(e.element,{x:2*-r,y:0,duration:2*s,afterFinishInternal:function(e){new l.Move(e.element,{x:2*r,y:0,duration:2*s,afterFinishInternal:function(e){new l.Move(e.element,{x:2*-r,y:0,duration:2*s,afterFinishInternal:function(e){new l.Move(e.element,{x:2*r,y:0,duration:2*s,afterFinishInternal:function(e){new l.Move(e.element,{x:-r,y:0,duration:s,afterFinishInternal:function(e){u.setStyle(u.undoPositioned(e.element),c)}})}})}})}})}})}})},n.Effect=l}},function(e,t,n){e.exports=function(e,t){"use strict";var n=e.Class,i=e.$;function a(e,t,n){if(e=i(e),1==arguments.length){var a=e.cumulativeOffset();window.scrollTo(a[0],a[1])}else e.scrollLeft=t,e.scrollTop=n;return e}t.Scroll=n.create(),jQuery.extend(jQuery.extend(t.Scroll.prototype,t.Base.prototype),{currentScrollPos:function(e){return this.element===window?document.viewport.getScrollOffsets():this.element===document.documentElement&&0===document.documentElement.scrollTop&&0===document.documentElement.scrollLeft?{left:document.body.scrollLeft,top:document.body.scrollTop}:{left:this.element.scrollLeft,top:this.element.scrollTop}},initialize:function(e){if(this.element=i(e),!this.element)throw t._elementDoesNotExistError;var n=this.currentScrollPos(e),a=jQuery.extend({x:0,y:0},arguments[1]||{}),r={x:n.left+a.x,y:n.top+a.y};this.start(r)},setup:function(){},update:function(e){var t=this.currentScrollPos(this.element),n=Math.round((this.options.x-t.left)*e+t.left),i=Math.round((this.options.y-t.top)*e+t.top);a(this.element,n,i),this.element===document.documentElement&&a(document.body,n,i)}})}},function(e,t,n){e.exports=function(e,t){"use strict";var n={HTMLEvents:/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,MouseEvents:/^(?:click|mouse(?:down|up|over|move|out))$/},i={pointerX:0,pointerY:0,button:0,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,bubbles:!0,cancelable:!0};t.Event={},t.Event.simulate=function(t,a){var r,l=jQuery.extend(i,arguments[2]||{}),s=null;for(var o in t=e(t),n)if(n[o].test(a)){s=o;break}if(!s)throw new SyntaxError("Only HTMLEvents and MouseEvents interfaces are supported");return document.createEvent?(r=document.createEvent(s),"HTMLEvents"==s?r.initEvent(a,l.bubbles,l.cancelable):r.initMouseEvent(a,l.bubbles,l.cancelable,document.defaultView,l.button,l.pointerX,l.pointerY,l.pointerX,l.pointerY,l.ctrlKey,l.altKey,l.shiftKey,l.metaKey,l.button,t),t.dispatchEvent(r)):(l.clientX=l.pointerX,l.clientY=l.pointerY,r=jQuery.extend(document.createEventObject(),l),t.fireEvent("on"+a,r)),t}}},function(e,t,n){if(void 0===i)var i={};e.exports=function(e){"use strict";e.Observable={callbacks_:null,notifyObservers:function(e,t,n){null!==this.callbacks_&&(n.field_id=e?e.id:null,setTimeout(function(){var i=this.callbacks_[t];if(void 0!==i){if(null!==e)var a=i[this.lookupKey(e)];for(var r=[a,i.null],l=0,s=r.length;l<s;++l){var o=r[l];if(void 0!==o)for(var u=0,c=o.length;u<c;++u)o[u].call(this,n)}}}.bind(this)))},lookupKey:function(e){return e.name||e.id},storeCallback:function(e,t,n){null===this.callbacks_&&(this.callbacks_={});var i=this.callbacks_[t];void 0===i&&(i={},this.callbacks_[t]=i);var a=i[e];void 0===a&&(a=[],i[e]=a),a.push(n)},removeCallback:function(e,t,n){if(null!==this.callbacks_){var i=this.callbacks_[t];if(void 0!==i){var a=i[e];if(void 0!==a){var r=a.indexOf(n);r>-1&&a.splice(r,1)}}}}}}},function(e,t,n){e.exports=function(e){"use strict";e.ScreenReaderLog=function(e){if(void 0===e){e="reader_log";for(var t=1;document.getElementById(e);)e="reader_log"+ ++t;this.logElement_=document.createElement("div"),this.logElement_.setAttribute("id",e),document.body.appendChild(this.logElement_)}else this.logElement_=document.getElementById(e);this.logElement_.setAttribute("aria-live","assertive"),this.logElement_.setAttribute("aria-relevant","additions"),this.logElement_.setAttribute("role","log"),this.logElement_.setAttribute("class","screen_reader_only")},e.ScreenReaderLog.prototype={add:function(e){var t=document.createElement("p");t.appendChild(document.createTextNode(e)),this.logElement_.appendChild(t)}},e.ScreenReaderLog.add=function(t){this.log_||(this.log_=new e.ScreenReaderLog("reader_log")),this.log_.add(t)}}},function(e,t,n){if(void 0===i)var i={};e.exports=function(e,t,n){"use strict";var i=n.PrototypeAPI.Class;n.RecordDataRequester=i.create();var a={formField_:null,codeField_:null,dataURL_:null,dataReqInput_:null,dataReqOutput_:null,inputFieldsHash_:null,outputFieldsHash_:null,noPriorDataReq_:!0,latestPendingAjaxRequest_:null,lastFieldVal_:null,lastDataHash_:null,outputToSameGroup_:null,autoCompUpdateList_:null,initialize:function(e,t,n,i,a){this.formField_=e,this.dataURL_=t,this.dataReqInput_=n,this.dataReqOutput_=i,this.outputToSameGroup_=a,this.setOutputNamesToRDRNames(e,i)},setOutputNamesToRDRNames:function(e,t){for(var i=n.Autocompleter.getFieldLookupKey(e),a=n.RecordDataRequester.outputFieldNameToRDRFieldName_,r=0,l=t.length;r<l;++r)a[t[r]]=i},dupForField:function(t){return new n.RecordDataRequester(e(t),this.dataURL_,this.dataReqInput_,this.dataReqOutput_,this.outputToSameGroup_)},requestData:function(e){this.noPriorDataReq_=!1,this.inputFieldsHash_||this.initFieldsHash(),this.dataRequestOptions_||(this.dataRequestOptions_={}),e||this.clearDataOutputFields(),this.dataRequestOptions_.complete=t.proxy(e?this.onDataReqCompleteForListData:this.onDataReqComplete,this),this.dataRequestOptions_.data=this.buildParameters(),this.latestPendingAjaxRequest_=t.ajax(this.dataURL_,this.dataRequestOptions_),this.lastFieldVal_=n.Autocompleter.getFieldVal(this.formField_)},assignListData:function(){this.noPriorDataReq_&&""!==n.Autocompleter.getFieldVal(this.formField_)&&this.requestData(!0)},getFieldData:function(e){var t=null;return this.lastDataHash_&&n.Autocompleter.getFieldVal(this.formField_)===this.lastFieldVal_&&(t=this.lastDataHash_[e]),t},onDataReqComplete:function(e){if(this.latestPendingAjaxRequest_===e){this.lastFieldVal_=n.Autocompleter.getFieldVal(this.formField_);var t=e.responseJSON||JSON.parse(e.responseText);this.lastDataHash_=t,this.assignDataToFields(t),this.processUpdateList(t),this.latestPendingAjaxRequest_=null}},onDataReqCompleteForListData:function(e){if(this.latestPendingAjaxRequest_===e){var t=e.responseJSON||JSON.parse(e.responseText);this.lastDataHash_=t,this.assignDataToFields(t,!0),this.processUpdateList(t),this.latestPendingAjaxRequest_=null}},clearDataOutputFields:function(){this.inputFieldsHash_||this.initFieldsHash();for(var e=[],t=this.getOutputFieldsHash(),i=0,a=this.dataReqOutput_.length;i<a;++i){var r=t[this.dataReqOutput_[i]];if(void 0!==r)for(var l=0,s=r.length;l<s;++l){var o=r[l];o.autocomp&&o.autocomp.setListAndField?o.autocomp.setListAndField([]):(n.Autocompleter.setFieldVal(o,"",!1),e.push(o))}}n.Autocompleter.Event.notifyObservers(null,"RDR_CLEARING",e)},addFieldsToUpdateList:function(e,t,n){null===this.autoCompUpdateList_&&(this.autoCompUpdateList_={}),null===this.autoCompUpdateList_[e]&&(this.autoCompUpdateList_[e]={}),null===this.autoCompUpdateList_[e][n]?this.autoCompUpdateList_[e][n]=[t]:this.autoCompUpdateList_[e][n].push(t)},processUpdateList:function(t){if(null!==this.autoCompUpdateList_)for(var i in t){var a=t[i],r=a instanceof Array&&a.length>0;if(null!==this.autoCompUpdateList_[i])for(var l in this.autoCompUpdateList_[i]){var s=l.split(","),o=e(s[0]),u=n.Autocompleter.getFieldVal(o);if("EQ"===s[1]&&u===s[2]||"NE"===s[1]&&u!==s[2])for(var c=this.autoCompUpdateList_[i][l],f=0,d=c.length;f<d;f++)c[f].element&&(r?a[0]instanceof Array?c[f].setListAndField(a[0],a[1]):c[f].setListAndField(a):null===a&&c[f].setListAndField([],[]))}}},initFieldsHash:function(){this.inputFieldsHash_={};var e=n.Autocompleter;if(this.dataReqInput_)for(var t=this.dataReqInput_,i=0,a=t.length;i<a;++i){var r=t[i],l=e.findRelatedFields(this.formField_,r);1===l.length&&(this.inputFieldsHash_[r]=l[0])}this.outputToSameGroup_&&(this.outputFieldsHash_=this.constructOutputFieldsHash())},getOutputFieldsHash:function(){return this.outputToSameGroup_?this.outputFieldsHash_:this.constructOutputFieldsHash()},constructOutputFieldsHash:function(){for(var e={},t=this.dataReqOutput_,i=n.Autocompleter,a=0,r=t.length;a<r;++a){var l=t[a],s=i.findRelatedFields(this.formField_,l);s.length>0&&(e[l]=s)}return e},assignDataToFields:function(e,t){this.inputFieldsHash_||this.initFieldsHash();var i=[],a={},r=this.getOutputFieldsHash(),l=n.Autocompleter;for(var s in e){var o=r[s];if(void 0!==o)for(var u=0,c=o.length;u<c;++u){var f=o[u],d=e[s];if(d instanceof Array){if(null!==f.autocomp){var p=l.getFieldLookupKey(f);if(this.setOutputNamesToRDRNames(this.formField_,[p]),d.length>0&&d[0]instanceof Array?(d[2]&&f.autocomp.initHeadings(d[2]),t?f.autocomp.setList(d[0],d[1]):f.autocomp.setListAndField(d[0],d[1])):t?f.autocomp.setList(d):f.autocomp.setListAndField(d),null!==this.autoCompUpdateList_&&null!==this.autoCompUpdateList_[p]){var m={};m[p]=d,this.processUpdateList(m)}}}else t||(void 0!==f.comboField?f.comboField.mimicField(d,this.formField_.id):(n.Autocompleter.setFieldVal(f,d,!1),i.push(f),a[f.id]=d))}}n.Autocompleter.Event.notifyObservers(null,"RDR_ASSIGNMENT",{updatedFields:i,updatedFieldIDToVal:a,listField:this.formField_})},buildParameters:function(){var e={};this.inputFieldsHash_||this.initFieldsHash();var t=this.formField_.autocomp.getSelectedCodes()[0];if(null!=t?e.code_val=t:e.field_val=n.Autocompleter.getFieldVal(this.formField_),this.dataReqInput_)for(var i=0,a=this.dataReqInput_.length;i<a;++i){var r=this.dataReqInput_[i],l=this.inputFieldsHash_[r];if(null==l)throw"Could not find field for "+r;e[r]=n.Autocompleter.getFieldVal(l)}return e.authenticity_token=window._token||"",e}};t.extend(n.RecordDataRequester.prototype,a),a=null,t.extend(n.RecordDataRequester,{outputFieldNameToRDRFieldName_:{},getOutputFieldRDR:function(t){var i=null,a=e(t),r=n.Autocompleter.getFieldLookupKey(a),l=this.outputFieldNameToRDRFieldName_[r],s=n.Autocompleter.findRelatedFields(a,l);if(1===s.length){var o=s[0].autocomp;o&&(i=o.recDataRequester_)}return i}})}},function(e,t,n){if(void 0===i)var i={};e.exports=function(e,t,n){"use strict";n.FieldAlarms={setOffAlarm:function(e){void 0===this.bonk&&(this.bonk=new Audio(this.soundData_)),this.bonk.readyState>=2&&(this.bonk.currentTime=0,0!==this.bonk.currentTime&&(this.bonk.src=this.bonk.src)),this.bonk.play(),n.Effect.Shake(e.id,5)},cancelAlarm:function(e){e.shakeCanceled=!0,this.bonk.pause(),this.bonk.currentTime=0}}}},function(e,t,n){e.exports=function(e){e.FieldAlarms.soundData_="data:audio/mp3;base64,/+OAxAAAAAAAAAAAAEluZm8AAAAPAAAABwAADQ4AJCQkJCQkJCQkJCQkJCRJSUlJSUlJSUlJSUlJSW1tbW1tbW1tbW1tbW1tkpKSkpKSkpKSkpKSkpKStra2tra2tra2tra2trbb29vb29vb29vb29vb2///////////////////AAAAWkxBTUUzLjkyIAHDAAAAAAAAAAACQCQF2SEAAAAAAA0OXWa08wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/+OAxABa1IIMF5uwACCDBAGAB/86aEEGTrP/hZNdJTyqr/pn4OCRDARfjtIEHqAZfjEAZzj+AZkhOeMiITA2IE0A1rkeA6cdIA9GMcA66Ro+MmOYSZqT4G0RQAGcoYgGMcNoGAQPQGJ4KH4wyIEXNjUiYGUkgoGMMRYGEkBIGFkLYGG8P4GGMDv8tmpPn0J4DEOL0DGmI8AYFQGEkHIGDUHIGDEBYGD4F3/NicKiaCSJfLYGBoAQr4GFIIgGDoGwGCYAgGCsC4WhAFAQAw7hT//PE+ZmREB5IkLgGAO8ghUAwXgbAaAuUwMAIHQMFYDwMQAngMUwZgIAJAx5CmAwpAQFrAwcAs//6d97vTdngYJAPAFAkAGAeK2DlAGABluASAMDAaAsL3gYBwBgYAwDgNAHDU///////AwBgDDfxkBjxS4aoGQWIIF0nxWgYoFgJoAwBABwFBBQMiCAH//4GAUAIGAMA4DQBwAgDhc2MmBgWAgDY6AcA9UJAILy11W1dqwrXViy2OQCw1TFUqEku6WxLaggJZ4skWaLxKbQemiY/+OCxCha9IJFQ9jwABJw+YDYFRgagfGCiDUYQ4UhhvilGSSRkauQAZguA5mCgBuYC4DRgKgBBcBJxU5SzpgBADmAMAWYBQC5gFgGGAaAUYBIAxgDgBGAGAAWaQeV070dgBymHLDLDKmVMoEw1xZajTDtnsNKVBQAEwCgITBSAeMBcAgFABJFLucp3ozGYzLYzGcq0qpYzGYy5L+w67LszVqmv3dVYzLY1Gniac/0PRp/mlJiNeh6TyyNRqNQ1GYZf2GX9jLOXVgatTQ0/0PQWYEALbAkTlAVSs5a6zl/Xdh2My6mtayzq1aXKmlVymtU2WPa0n3n+tZY1X2TgjVNTU1al3j+5mUfg0WUQn9ZWvyxu473zH/5r/5jzHX/zHDn719rLLn3bO+5VuxaGm/ZbLbUqtU1rLP48+l/Hm5bD1NTUtLZpsfwxxuZU2SPPcqaaQAhh+FryH0uXjKpcoDewl+bSaWw/SLjbQLj8agKecVQYFATAIARMA0CgwBgSzAVCgMFAdkxD47Tt0DxMGgRAwHwVTAtAHBwVhgyiBBgOSTMH//jgsRRWgyCFULXtuQ5FkPVXXrENw3ZinyWZDgGE5YWqR/J+P0gNEVBZdGEjl1wlmZgAkb+ljIIyOMR2tdf7s3Fbzds47dprvwFI701C0yHDlMW5VhyelLWaO8MgTbROzjZc4MF3gn26qtiU/vstkOdu+6bR0TXks1pmVLtAosYDlE1+mY4CbaNMqlEbpb2oKk8kty2tauSKXyZusW+ih2GakYp2DVpRlRUUnmnjVAX3jVmJ87EpXEdSBuqVOMVFA1JhGCC4zBkqv3MotL5fRw1HpdnGpJD8odr56cgJyb0jm3ihiHJuIu9KqODsvkUzhS1uSqWx0EAa/YQ/N+jcF8ZqGIgoEJBNBSV5hbC9sZqDr8MqW/L6sVl2MM2pIYKQJncuwwqmR50hLvF3Zl0dUbAs7ViSSi7QSKIS6Hc9Z27ECMHRnIgBDAGAaMAkFEwJwFzEzJPMjjX89/l5TFqBeMCUC0wEQATAoA6MEcGZLtXk5SdWTA29vrU1POVTvBQwfEZbbtQ9KZRD4oA2JAExp9XBhyXxJK8wCALmttYq1rcamv/44LEfVscgggNWvAAViw7L6zk9Vh+eytw9KmttugmdZokWo5RJ9Yu1LMGBV5fOP9uEEwAMlpIJbWahqdmqlWgn6Wwy59WI3ZbHZA4bymB6BIDAFm5xtUiw1q/GXrsw5uVPLDVSnhFR+FtwKuxe0odCHpdTY3aTeFXka5L9KrAYBKV0UruS7KR3rlM6Rf7O8IgAXsQVijiSx5VrLCt86jEXVWbYclwoBj7IlH2ssGpJG6NiIPhGnLaWuZe7uxJ/YTMu03Z2WbQA3GSqbLqaS4sOupDcvf2rF4csW3Rrqyr2lcMUuT1ONYu3KGWwqgqOjCIy+2FuUhYAeBcoRTVBCSCRkof4QBfxYWZQMRCQAd1kQCzHgTXLwA6pYCCAFTAtBRMD8A8wOAcTBoAvMFUQ6GoZRCMKEQcwQJFzHkCyMMINwwiBNTHuK1MwwuswSAgVbn3Y0wIwvARi7Jg+AoAIDkwFwCzCwDVMKwEcwNAbzCAB1MDADCD4KhrN4jAwAOAoD5gNgDoCTAnAZDAMzA6BpMFYCcwBQVjAmA/MBIAQwMQUIat/+OCxKV/zGIABZrwAMBRK/NGBWBKQgDquMCEBtC9SwwGQATAMAVEIERgWgPBcAwwIwKgwCswCwJq1/H8pmqVAAAUATDQIAGFgCAAAIYBAACxTASAEMCUBQqgRmAiBIPARGAYBWYAYBRYALMBgB198JmryrV5vY8ABPGAMAAvFWNPARgImBAAOhPLVs3MAMAMwCAFwwCEEAHmAsAmCAADACAXAQEIhAUAgAqNhgFgJNdxrZbmq3a1butJ1v0YBIA8aZIgPTQXQ+4QAAtRUiDiXKNgNAIAwCyRxgBgCISwSAUBgEiAAkEgCK/AAB6gSMoCAFZj3HHUzVwmavKtXn+zR/ggAxmKQb8l91L0w3HTDLfoL0KAeLqELfTsYKAABU4AsACBgBUdAYAGmaFwBkEq+ACAFOoZJ9JpFtmHoCkNkdca2W61btat3Wu739XH6qokhHEYI6j8M4aRRKZP2lS1p8UxbTope7WqTEFNRTMuOTKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqv/jgsQ6AAADSAHAAACqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqpMQU1FMy45Mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr/44LE/wAAA0gAAAAAqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqTEFNRTMuOTKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq"}},function(e,t,n){if(void 0===i)var i={};e.exports=function(e,t,n){"use strict";var i=n.PrototypeAPI.Browser,a=!!window.attachEvent&&!i.isOpera||"undefined"!=typeof navigator&&navigator.userAgent.indexOf("Trident")>=0;n.Autocompleter={isIE:a,currentAutoCompField_:-1,USE_STATISTICS:2,NO_COMPLETION_SUGGESTIONS:0,SUGGEST_SHORTEST:1,LIST_ITEM_FIELD_SEP:" - ",screenReaderLog_:new n.ScreenReaderLog,setOptions:function(e){t.extend(this,e)},getFieldVal:function(e){return e.value},setFieldVal:function(e,t,i){var a;e.autocomp?e.autocomp.setFieldVal(t,i):(void 0===i&&(i=!0),i&&(a=this.getFieldVal(e)),e.value=t,i&&a!==t&&n.Event.simulate(e,"change"))},getFieldLookupKey:n.Observable.lookupKey,lookupFields:function(e){for(var t=[],n=0,i=document.forms.length;n<i;++n){var a=document.forms[n].elements[e];void 0!==a&&t.push(a)}return t},findRelatedFields:function(e,t){return this.lookupFields(t)},getFieldLabel:function(e){return null},listItemElementContainer:function(){var e=t("#completionOptions")[0].firstChild;return e&&"TABLE"===e.tagName&&(e=e.tBodies[0]),e},listItemElements:function(){var e=null,t=this.listItemElementContainer();return t&&(e=t.childNodes),e},setOffAlarm:function(e){n.FieldAlarms.setOffAlarm(e)},cancelAlarm:function(e){n.FieldAlarms.cancelAlarm(e)},stopEvent:function(e){e.stopImmediatePropagation(),e.preventDefault()},screenReaderLog:function(e){n.Autocompleter.screenReaderLog_.add(e)},createDOMCache:function(e,t){var n={data:{},get:function(e){var t=this.data[e];return void 0===t&&(t=this.data[e]=this.refresh[e].apply(this)),t},set:function(e,t){this.data[e]=t},invalidate:function(e){e?delete this.data[e]:this.data={}},refresh:{}};return Object.assign(n,e),Object.assign(n.refresh,t),n}},n.Autocompleter.Base=function(){},t.extend(n.Autocompleter.Base,{MAX_ITEMS_BELOW_FIELD:7,classInit_:!1,classInit:function(){this.classInit_||(t(document.body).append('<div id="searchResults" class="form_auto_complete"> <div id="completionOptionsScroller"> <span class="auto_complete" id="completionOptions"></span> </div> <div id="moreResults">See more items (Ctl Ret)</div> <div id="searchCount">Search Results\x3c!-- place holder for result count, needed for height calculation--\x3e</div> <div id="searchHint">Search Hint\x3c!--place holder--\x3e</div> </div>'),t("#moreResults").mousedown((function(t){var i=e(n.Autocompleter.currentAutoCompField_);i.autocomp.handleSeeMoreItems(t),n.Autocompleter.Event.notifyObservers(i,"LIST_EXP",{list_expansion_method:"clicked"})})),t("#completionOptionsScroller").mousedown(t.proxy((function(t){if(n.Autocompleter.isIE&&"completionOptionsScroller"===t.target.id&&(n.Autocompleter.stopEvent(t),n.Autocompleter.completionOptionsScrollerClicked_=!0,-1!=e(n.Autocompleter.currentAutoCompField_))){var i=e(n.Autocompleter.currentAutoCompField_);setTimeout((function(){i.focus()}))}}),this)),this.classInit_=!0)},noCaseSort:function(e,t){var n=e.toLowerCase(),i=t.toLowerCase();return n>i?1:n<i?-1:0},escapeAttribute:n.PrototypeAPI.escapeAttribute,unescapeAttribute:function(e){return e.replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">")}}),n.Autocompleter.sharedDOMCache=n.Autocompleter.createDOMCache({},{spacerDiv:function(){var t=e("spacer");return t||(t=document.createElement("div"),t.setAttribute("id","spacer"),document.body.appendChild(t)),t},listContainer:function(){return e("searchResults")},firstEntryWidth:function(){return n.Autocompleter.listItemElements()[0].offsetWidth},listBoundingRect:function(){return this.get("listContainer").getBoundingClientRect()},viewPortWidth:function(){return document.documentElement.clientWidth},spacerCoords:function(){return this.get("spacerDiv").getBoundingClientRect()}});var r={constructorOpts_:null,scoreField_:null,scoreFieldInitialized_:!1,itemToDataIndex_:null,selectedCodes_:null,selectedItems_:null,selectedItemData_:null,matchListValue_:null,invalidStatus_:!1,matchStatus_:!0,focusInProgress_:!1,refocusInProgress_:!1,listBelowField_:!0,listContainer:null,recDataRequester_:null,enabled_:!0,preFieldFillVal_:null,fieldValIsListVal_:null,indexToHeadingLevel_:{},suggestionMode_:n.Autocompleter.SUGGEST_SHORTEST,lastScrollEffect_:null,multiSelect_:!1,listExtraData_:null,processedFieldVal_:null,defAutocompleterBaseInit:function(i,a){a||(a={}),a.wordBoundaryChars&&(a.tokens=a.wordBoundaryChars),void 0!==a.suggestionMode&&(this.suggestionMode_=a.suggestionMode),this.twoColumnFlow_=a.twoColumnFlow,void 0===this.twoColumnFlow_&&(this.twoColumnFlow_=!0),a.tokens||void 0===a.maxSelect?a.maxSelect=1:"*"===a.maxSelect&&(a.maxSelect=1/0),this.multiSelect_=1!==a.maxSelect,void 0!==a.scrolledContainer?this.scrolledContainer_=a.scrolledContainer:this.scrolledContainer_=document.documentElement,void 0===(this.nonMatchSuggestions_=a.nonMatchSuggestions)&&(this.nonMatchSuggestions_=!1),this.constructorOpts_=a,this.selectedCodes_={},this.selectedItems_={},this.selectedItemData_=[];var r=a.dataRequester;if(n.Autocompleter.Base.classInit_||n.Autocompleter.Base.classInit(),this.matchListValue_=a.matchListValue||!1,this.recDataRequester_=r,this.update=e("completionOptions"),this.options=a,this.options.frequency=this.options.frequency||.01,this.options.minChars=this.options.minChars||1,this.element="string"==typeof i?e(i):i,!this.element)throw"string"==typeof i?new Error("Could not find the field with id '"+i+'"'):new Error("The autocompleter constructor requires an field element or an ID");this.ensureNeededAttrs(),this.hasFocus=!1,this.changed=!1,this.active=!1,this.index=0,this.entryCount=0,this.observer=null,this.element.setAttribute("autocomplete","off"),t(this.update).hide();var l=t(this.element);if(l.blur(t.proxy(this.onBlur,this)),l.keydown(t.proxy(this.onKeyPress,this)),this.options.tokens&&l.click(function(){this.tokenBounds=null,this.getTokenBounds(this.element.selectionStart)}.bind(this)),a.maxSelect>1){var s=t('<span class="autocomp_selected"><ul></ul></span>')[0];this.element.parentNode.replaceChild(s,this.element),s.appendChild(this.element),this.selectedList=s.firstChild}this.element.setAttribute("role","combobox"),this.element.setAttribute("aria-expanded","false"),this.onMouseDownListener=t.proxy(this.onMouseDown,this),t(this.element).change(t.proxy(this.onChange,this)),t(this.element).keypress(t.proxy(this.changeToFieldByKeys,this));var o=t.proxy((function(){this.typedSinceLastFocus_=!0}),this);t(this.element).bind("paste cut",o),this.listContainer=n.Autocompleter.sharedDOMCache.get("listContainer"),this.options.showList=t.proxy(this.showList,this),this.options.hideList=t.proxy(this.hideList,this),this.options.posAnsList=t.proxy(this.posAnsList,this),this.update.style.display="block",this.element.autocomp=this,this.index=-1,this.initDOMCache(),this.oldElementValue=this.domCache.get("elemVal")},setFieldVal:function(e,t){var i;void 0===t&&(t=!0),t&&(i=this.domCache.get("elemVal")),this.domCache.set("elemVal",this.element.value=this.oldElementValue=e),this.tokenBounds=null,t&&i!==e&&n.Event.simulate(this.element,"change")},ensureNeededAttrs:function(){var e=this.element;""===e.id&&(n.Autocompleter.lastGeneratedID_||(n.Autocompleter.lastGeneratedID_=0),e.id="ac"+ ++n.Autocompleter.lastGeneratedID_)},dupDataReqForField:function(e){var t=null;return this.recDataRequester_&&(t=this.recDataRequester_.dupForField(e)),t},getSelectedCodes:function(){for(var e=this.getSelectedItems(),t=[],n=0,i=e.length;n<i;++n)t.push(this.selectedCodes_[e[n]]);return t},getSelectedItems:function(){return Object.keys(this.selectedItems_)},getSelectedItemData:function(){return this.selectedItemData_.length>0?this.selectedItemData_:null},storeSelectedItem:function(e,t){if(void 0===e&&(e=this.domCache.get("elemVal"),t=this.getItemCode(e)),this.multiSelect_||(this.selectedCodes_={},this.selectedItems_={},this.selectedItemData_=[]),e){var n,i=null!=t;i&&(this.selectedCodes_[e]=t),this.selectedItems_[e]=1,this.getItemData?n=this.getItemData(e):(n={text:e},i&&(n.code=t)),this.selectedItemData_.push(n)}},getItemCode:function(e){this.itemToDataIndex_||this.initItemToDataIndex();var t=this.itemToDataIndex_[e],n=null;return void 0!==t&&this.itemCodes_&&(n=this.itemCodes_[t]),n},addToSelectedArea:function(e){var i=n.Autocompleter.Base.escapeAttribute(e),a=t('<li><button type="button" alt="'+i+'"><span aria-hidden="true">&times;</span></button>'+i+"</li>")[0];this.selectedList.appendChild(a);var r=a.childNodes[0];return t(r).click(t.proxy(this.removeSelection,this)),i},moveEntryToSelectedArea:function(){var e=this.addToSelectedArea(this.domCache.get("elemVal"));if(this.setFieldVal(this.processedFieldVal_="",!1),n.Autocompleter.screenReaderLog("Selected "+e),this.index>=0){var t=n.Autocompleter.listItemElementContainer();t.removeChild(this.getCurrentEntry()),--this.entryCount;for(var i=t.childNodes,a=this.index,r=i.length;a<r;++a)i[a].autocompleteIndex=a;if(this.index==this.entryCount&&--this.index,this.numHeadings_){for(var l=this.index;this.index<this.entryCount&&this.liIsHeading(this.getCurrentEntry());)++this.index;if(this.index==this.entryCount)for(this.index=l-1;this.index>0&&this.liIsHeading(this.getCurrentEntry());)--this.index}this.render()}this.active=!0,this.hasFocus=!0,this.posAnsList()},removeSelection:function(e){var t=e.target.parentNode;"SPAN"===e.target.tagName&&(t=t.parentNode),t.parentNode.removeChild(t);var i=t.childNodes[1].textContent;delete this.selectedCodes_[i],delete this.selectedItems_[i];for(var a=0,r=this.selectedItemData_.length;a<r;++a)if(this.selectedItemData_[a].text===i){this.selectedItemData_.splice(a,1);break}this.listSelectionNotification(i,!0,!0),n.Autocompleter.screenReaderLog("Unselected "+i)},isSelected:function(e){return this.selectedItems_&&void 0!==this.selectedItems_[e]},getScoreField:function(){return this.scoreFieldInitialized_||(this.scoreField_=n.Autocompleter.getScoreField(this.element),this.scoreField_&&(this.scoreFieldInitialized_=!0)),this.scoreField_},changeToFieldByKeys:function(e){if(!this.typedSinceLastFocus_){var t=!1;void 0===e.which?t=!0:"number"==typeof e.which&&e.which>0&&(t=!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which),this.typedSinceLastFocus_=t}},addObservers:function(e){t(e).mousedown(this.onMouseDownListener)},listItemValue:function(e){return this.options.tableFormat?e.getAttribute("data-fieldval"):e.textContent},markPrevious:function(){null===this.preFieldFillVal_&&(this.preFieldFillVal_=this.domCache.get("elemVal"));var e,t=this.index;-1===t&&(t=this.entryCount-1);do{this.index>0?this.index--:this.index=this.entryCount-1,e=this.getCurrentEntry();var i=this.listItemValue(e);this.itemTextIsHeading(i)&&(n.Autocompleter.screenReaderLog("Above list heading: "+i),e=null)}while(!e&&this.index!==t);e&&(this.scrollToShow(e,this.update.parentNode),this.updateElementAfterMarking(e))},markNext:function(){null===this.preFieldFillVal_&&(this.preFieldFillVal_=this.domCache.get("elemVal"));var e,t=this.index;-1===t&&(t=this.entryCount-1);do{this.index<this.entryCount-1?this.index++:this.index=0,e=this.getCurrentEntry();var i=this.listItemValue(e);this.itemTextIsHeading(i)&&(n.Autocompleter.screenReaderLog("Under list heading: "+i),e=null)}while(!e&&this.index!==t);e&&(this.scrollToShow(e,this.update.parentNode),this.updateElementAfterMarking(e))},updateElementAfterMarking:function(e){var i=this.tokenBounds;if(this.updateElement(e),this.options.tokens?(this.getTokenBounds(i&&i[0]),this.element.setSelectionRange(this.tokenBounds[0],this.tokenBounds[1])):this.element.select(),this.options.tableFormat){var a=[],r=t(e).children("td");if(r.length>1){for(var l=0,s=r.length;l<s;++l)a.push(r[l].innerText);n.Autocompleter.screenReaderLog(a.join("; "))}}},hideList:function(){n.Autocompleter.currentAutoCompField_===this.element.id&&("visible"!==this.listContainer.style.visibility||(this.listContainer.style.visibility="hidden",this.listShowing=!1,this.listContainer.setAttribute("aria-hidden","true"),this.element.setAttribute("aria-expanded","false")))},showList:function(){var e="visible"!==this.listContainer.style.visibility;this.listContainer.style.visibility="visible",this.listShowing=!0,this.listContainer.setAttribute("aria-hidden","false"),this.element.setAttribute("aria-expanded","true"),e&&!this.temporaryHide_&&this.entryCount>0&&(n.Autocompleter.screenReaderLog("A list has appeared below the "+this.getFieldName()+"."),this.options.tableFormat&&this.options.colHeaders&&n.Autocompleter.screenReaderLog("The column headers on the multi-column list are "+this.options.colHeaders.join("; ")))},getFieldName:function(){if(void 0===this.fieldName_){var e=n.Autocompleter.getFieldLabel(this.element.id);this.fieldName_=null===e?"field":'field "'+e+'"'}return this.fieldName_},scrollToShow:function(e,t){if(e.offsetTop<t.scrollTop)t.scrollTop=e.offsetTop;else{var n=e.clientHeight,i=t.clientHeight;e.offsetTop+n-t.scrollTop>i&&(t.scrollTop=e.offsetTop+n-i)}},pageOptionsUpOrDown:function(e){var n,i=t("#completionOptionsScroller")[0],a=i.clientHeight;if(e)i.scrollTop>0&&((n=i.scrollTop-a)<0&&(n=0),i.scrollTop=n);else{var r=t("#completionOptions")[0].clientHeight-a;r<0&&(r=0),i.scrollTop<r&&((n=i.scrollTop+a)>r&&(n=r),i.scrollTop=n)}},isSearchKey:function(e){return e.ctrlKey&&e.keyCode===t.ui.keyCode.ENTER},onKeyPress:function(e){if(this.enabled_){var i=e.keyCode,a=!0;if(this.fieldEventIsBigList(e))e.stopImmediatePropagation(),this.preFieldFillVal_&&this.setFieldVal(this.preFieldFillVal_,!1),this.handleSeeMoreItems(e),n.Autocompleter.Event.notifyObservers(this.element,"LIST_EXP",{list_expansion_method:"CtrlRet"});else{var r=t.ui.keyCode;switch(i){case r.ENTER:this.multiSelect_&&n.Autocompleter.stopEvent(e),this.handleDataEntry(e);break;case r.TAB:""!==this.domCache.get("elemVal")&&this.handleDataEntry(e);break;case r.ESCAPE:null!==this.preFieldFillVal_&&(this.setFieldVal(this.preFieldFillVal_,!1),n.Autocompleter.Event.notifyObservers(this.element,"CANCEL",{restored_value:this.preFieldFillVal_})),this.active&&(this.index=-1,this.hide(),this.active=!1);break;default:if(this.active)switch(i){case r.PAGE_UP:this.pageOptionsUpOrDown(!0);break;case r.PAGE_DOWN:this.pageOptionsUpOrDown(!1);break;default:if(e.ctrlKey)a=!1;else switch(i){case r.DOWN:case r.UP:i===r.UP?this.markPrevious():this.markNext(),this.render(),n.Autocompleter.stopEvent(e);break;case r.LEFT:case r.RIGHT:this.options.tokens&&(this.tokenBounds=null,this.getTokenBounds()),!e.ctrlKey&&this.index>=0&&t(this.update).hasClass("multi_col")&&this.moveToOtherColumn(e);break;default:a=!1}}else a=!1}}a||e.ctrlKey&&86!==i||16===i||17===i||0===i||(this.preFieldFillVal_=null,this.changed=!0,this.hasFocus=!0,this.matchListItemsToField_=!0,this.observer&&clearTimeout(this.observer),this.observer=setTimeout(t.proxy(this.onObserverEvent,this),1e3*this.options.frequency))}},setMatchStatusIndicator:function(e){e!==this.matchStatus_&&(e?t(this.element).hasClass("no_match")&&(t(this.element).removeClass("no_match"),n.Autocompleter.screenReaderLog("The field no longer contains a non-matching value.")):(t(this.element).addClass("no_match"),n.Autocompleter.screenReaderLog("The field's value does not match any items in the list.")),this.matchStatus_=e)},setInvalidValIndicator:function(e){e?(n.Autocompleter.setOffAlarm(this.element),this.invalidStatus_||(t(this.element).addClass("invalid"),this.element.setAttribute("invalid",!0))):this.invalidStatus_&&(t(this.element).removeClass("invalid"),this.element.setAttribute("invalid",!1)),this.invalidStatus_=e},cancelInvalidValIndicator:function(){n.Autocompleter.cancelAlarm(this.element)},updateChoices:function(e,i){if(this.index=-1,!this.changed&&this.hasFocus){this.update.innerHTML=e;var a=this.update.firstChild;a&&a.tHead&&t(a.tHead).mousedown((function(e){n.Autocompleter.stopEvent(e)}));var r=n.Autocompleter.listItemElements();if(r){var l;if(this.entryCount=r.length,this.suggestionMode_!==n.Autocompleter.NO_COMPLETION_SUGGESTIONS&&this.entryCount>0&&!this.focusInProgress_&&i){for(l=0;this.liIsHeading(r[l])&&l<this.entryCount;++l);this.index=l}for(l=0;l<this.entryCount;l++){var s=this.getEntry(l);s.autocompleteIndex=l,this.addObservers(s)}}else this.entryCount=0;1===this.entryCount&&this.options.autoSelect?(this.selectEntry(),this.hide()):this.render(),this.focusInProgress_||this.setMatchStatusIndicator(this.entryCount>0||""===this.trimmedElemVal)}},pickedByNumber:function(){return this.add_seqnum&&this.trimmedElemVal.match(/^\d+$/)},pickBestMatch:function(e){var t=this.trimmedElemVal.toLowerCase(),n=e.length,i=-1;if(t.length>0&&n>0){for(var a=-1,r=1/0,l=-1,s=r,o=-1,u=r,c=0;c<n;++c){var f=e[c];if(!this.itemTextIsHeading(f)){var d=f.toLowerCase(),p=(d=d.replace(/^\W+/,"")).indexOf(t),m=f.length;0===p?/(^\d+$)/.test(t)?(l=0,s=0):m<s&&(l=c,s=m):-1===l&&(p>0?m<u&&(o=c,u=m):-1===o&&m<r&&(r=m,a=c))}}i=l>-1?l:o>-1?o:a}return i},posAnsList:function(){this.posListBelowFieldInMultiCol(),this.index>0&&this.scrollToShow(this.getCurrentEntry(),e("completionOptionsScroller"))},posListBelowFieldInMultiCol:function(){var t=n.Autocompleter.sharedDOMCache,i=this.domCache.element,a=this.update;this.domCache.invalidate("elemPos"),t.invalidate("firstEntryWidth"),t.invalidate("listBoundingRect"),t.invalidate("viewPortWidth"),a.style.height&&(a.style.height=""),this.setListWrap(!1),a.style.width="auto",e("completionOptionsScroller").style.height="",this.listContainer.style.width="",this.listHeight=void 0;var r=this.listContainer;r.style.display="none";var l=this.domCache.get("elemPos");r.style.display="",r.style.top=l.top+i.offsetHeight+"px";var s=this.scrolledContainer_,o=document.documentElement.clientHeight,u=o,c=($=t.get("listBoundingRect")).bottom;if(c<=u)this.setListLeft();else{var f=this.twoColumnFlow_&&!this.options.tableFormat&&this.entryCount>4;if(f&&(f=this.setListWrap(!0))&&(c=t.get("listBoundingRect").bottom),f&&c<=u)this.setListLeft();else{var d=i.getBoundingClientRect(),p=void 0;if(s){this.lastScrollEffect_&&this.lastScrollEffect_.cancel();var m,h=c-u,g=d.top,v=0,y=this.constructorOpts_.headerBar;if(y){var b=document.getElementById(y);b&&(v=b.offsetHeight)}var _=s.getBoundingClientRect().top;h>(m=_>v?g-_:g-v)&&(h=m,p=o-d.height-v),c=void 0===p?t.get("listBoundingRect").bottom:t.get("listBoundingRect").top+p;var C=t.get("spacerCoords");c>C.bottom&&(t.get("spacerDiv").style.height=c-C.top+"px",t.invalidate("spacerCoords")),this.lastScrollEffect_=new n.Effect.Scroll(s,{y:h,duration:.4})}else p=window.innerHeight-d.bottom;if(void 0!==p){this.setListHeight(p);var w=t.get("viewPortWidth"),$=t.get("listBoundingRect");t.listWrap&&$.width>w&&this.setListWrap(!1)}this.setListLeft()}}},initDOMCache:function(){var e=this,i=n.Autocompleter;this.domCache=i.createDOMCache({element:e.listPositioningElem()},{elemPos:function(){return t(this.element).offset()},elemVal:function(){return i.getFieldVal(e.element)}})},listPositioningElem:function(){return this.multiSelect_?this.element.parentNode:this.element},setListWrap:function(e){var i=n.Autocompleter.sharedDOMCache;if(e!==i.listWrap){if(e){var a=2*i.get("firstEntryWidth")+4;a<=i.get("viewPortWidth")&&(this.listContainer.style.width=a+"px",t(this.update).addClass("multi_col"),i.listWrap=!0)}else t(this.update).removeClass("multi_col"),this.listContainer.style.width="",i.listWrap=!1,i.invalidate("viewPortWidth");i.invalidate("listBoundingRect"),this.domCache.invalidate("elemPos")}return i.listWrap},setListLeft:function(){var e=this.listContainer,t=n.Autocompleter.sharedDOMCache,i=t.get("viewPortWidth"),a=t.get("listBoundingRect"),r=this.domCache.get("elemPos"),l=a.width-(i-r.left);l<0&&(l=0);var s=r.left-l;s<0&&(s=0);var o=n.Autocompleter.sharedDOMCache;o.listPosLeft!==s&&(e.style.left=s+"px",o.listPosLeft=s)},setListHeight:function(t){var i=n.Autocompleter.sharedDOMCache,a=i.get("listBoundingRect");t=t-a.height+this.update.offsetHeight,this.listContainer.style.width=a.width+20+"px",t>=20&&(e("completionOptionsScroller").style.height=t+"px",i.invalidate("listBoundingRect"))},getToken:function(){var e=this.domCache.get("elemVal");if(this.options.tokens){var t=this.getTokenBounds();e=e.substring(t[0],t[1])}return e},getTokenBounds:function(e){if(null!=this.tokenBounds)return this.tokenBounds;var t=this.domCache.get("elemVal");if(""===t.trim())return[-1,0];for(var n,i=void 0!==e?e:this.element.selectionStart,a=i==this.oldElementValue.length?1:0,r=-1,l=t.length,s=0,o=this.options.tokens.length;s<o;++s)(n=t.lastIndexOf(this.options.tokens[s],i+a-1))>r&&(r=n),-1!=(n=t.indexOf(this.options.tokens[s],i+a))&&n<l&&(l=n);return this.tokenBounds=[r+1,l]},dupForField:function(e){throw"dupForField must be overridden by autocompleter subclasses."},initItemToDataIndex:function(){throw"initItemToDataIndex must be overridden by autocompleter classes that need it"},propagateFieldChanges:function(e){void 0===e&&(e=this.matchStatus_),this.recDataRequester_&&(e&&""!==this.domCache.get("elemVal").trim()?this.recDataRequester_.requestData():this.recDataRequester_.clearDataOutputFields())},getValTyped:function(){return null===this.preFieldFillVal_?this.domCache.get("elemVal"):this.preFieldFillVal_},listSelectionNotification:function(e,t,i){var a;void 0===i?i=!1:i&&(a=e,e=""),void 0===a&&(a=this.domCache.get("elemVal"));var r=this.clickSelectionInProgress_?"clicked":null===this.preFieldFillVal_?"typed":"arrows",l="typed"!==r&&t,s=this.getItemCode(a);n.Autocompleter.Event.notifyObservers(this.element,"LIST_SEL",{input_method:r,val_typed_in:e,final_val:a,used_list:l,list:this.rawList_,on_list:t,item_code:s,removed:i})},attemptSelection:function(){var e=!1,t=this.getValTyped();if(this.active){if(-1===this.index){for(var i=this.domCache.get("elemVal").trim(),a=i.toLowerCase(),r=-1,l=-1,s=0;s<this.entryCount&&r<0;++s){var o=this.getEntry(s),u=this.listItemValue(o);this.liIsHeading(o)||(i===u?r=s:l<0&&a===u.toLowerCase()&&(l=s))}r>=0?(this.index=r,e=!0):l>=0&&(this.index=l,e=!0)}else e=this.entryCount>0&&!this.liIsHeading(this.getCurrentEntry());this.fieldValIsListVal_=e,e&&(this.active=!1,this.updateElement(this.getCurrentEntry()),this.storeSelectedItem(),null!==n.Autocompleter.Event.callbacks_&&this.listSelectionNotification(t,!0),this.processedFieldVal_=n.Autocompleter.getFieldVal(this.element),this.setMatchStatusIndicator(!0),this.setInvalidValIndicator(!1),this.propagateFieldChanges(),this.multiSelect_&&this.moveEntryToSelectedArea()),this.multiSelect_||(this.active=!1,this.hide())}return e},selectEntry:function(){this.attemptSelection()},handleNonListEntry:function(){this.propagateFieldChanges(!1),this.multiSelect_||(this.selectedCodes_={},this.selectedItems_={});var e=n.Autocompleter.getFieldVal(this.element);""===n.Autocompleter.getFieldVal(this.element)?(this.setMatchStatusIndicator(!0),this.setInvalidValIndicator(!1),this.storeSelectedItem(""),null!==n.Autocompleter.Event.callbacks_&&this.listSelectionNotification("",!1),this.processedFieldVal_=e):(this.enabled_&&this.setMatchStatusIndicator(!1),null!==n.Autocompleter.Event.callbacks_&&this.listSelectionNotification(this.getValTyped(),!1),this.matchListValue_?(n.Autocompleter.screenReaderLog("For this field your entry must match an item from the suggestion list."),this.setInvalidValIndicator(!0),this.refocusInProgress_=!0,this.processedFieldVal_=e,setTimeout(t.proxy((function(){this.element.focus(),this.element.select(),this.refocusInProgress_=!1}),this))):(this.storeSelectedItem(),this.multiSelect_?this.moveEntryToSelectedArea():this.processedFieldVal_=e,this.findSuggestions&&this.nonMatchSuggestions_&&!this.multiSelect_&&setTimeout(t.proxy((function(){this.findSuggestions()}),this))))},onChange:function(e){this.domCache.invalidate("elemVal"),n.Autocompleter.completionOptionsScrollerClicked_||this.handleDataEntry(e)},onBlur:function(e){n.Autocompleter.completionOptionsScrollerClicked_||(this.lastScrollEffect_&&this.lastScrollEffect_.cancel(),n.Autocompleter.getFieldVal(this.element)!==this.processedFieldVal_&&n.Event.simulate(this.element,"change"),this.enabled_&&!this.refocusInProgress_&&(this.hide(),this.hasFocus=!1,this.active=!1,this.invalidStatus_?this.clearInvalidFieldVal():""===n.Autocompleter.getFieldVal(this.element)?this.setMatchStatusIndicator(!0):!1===this.fieldValIsListVal_&&this.setMatchStatusIndicator(!1)))},clearInvalidFieldVal:function(){this.setFieldVal("",!1),this.setInvalidValIndicator(!1),this.setMatchStatusIndicator(!0),this.listSelectionNotification("",!1),this.processedFieldVal_=""},onFocus:function(e){if(n.Autocompleter.currentAutoCompField_=this.element.id,this.refocusInProgress_||(this.processedFieldVal_=n.Autocompleter.getFieldVal(this.element)),this.refocusInProgress_=!1,this.preFieldFillVal_=null,n.Autocompleter.Event.notifyObservers(this.element,"FOCUS",{start_val:this.processedFieldVal_}),this.multiSelect_){var t=Object.getOwnPropertyNames(this.selectedItems_);if(t.length>0){var i="Above this multi-select field are deselection buttons for each selected item. Currently selected:"+t.join(", ");n.Autocompleter.screenReaderLog(i)}}},onMouseDown:function(e){n.Autocompleter.stopEvent(e);for(var t=e.target;t&&void 0===t.autocompleteIndex;)t=t.parentNode;t&&!this.liIsHeading(t)&&(this.clickSelectionInProgress_=!0,this.index=t.autocompleteIndex,this.selectEntry(),this.hide(),this.clickSelectionInProgress_=!1,this.multiSelect_&&this.showList()),this.tokenBounds=null},handleDataEntry:function(e){if(this.invalidStatus_&&this.processedFieldVal_===this.domCache.get("elemVal"))this.clearInvalidFieldVal();else{this.observer&&clearTimeout(this.observer);var t=n.Autocompleter.getFieldVal(this.element),i=!1;(this.processedFieldVal_!==t&&""!==t||this.multiSelect_&&""===t&&this.index>=0)&&(i=this.attemptSelection()),this.processedFieldVal_===t||i||(""===t&&(this.fieldValIsListVal_=!1),this.handleNonListEntry()),this.multiSelect_||(this.hide(),this.active=!1),!e.stopped&&this.matchListValue_&&this.invalidStatus_&&n.Autocompleter.stopEvent(e)}},itemTextIsHeading:function(e){var t=!!this.numHeadings_;if(t){this.itemToDataIndex_||this.initItemToDataIndex();var n=this.itemToDataIndex_[e];t=void 0!==n&&!!this.indexToHeadingLevel_[n]}return t},liIsHeading:function(e){var t=!!this.numHeadings_;return t&&(t=this.itemTextIsHeading(this.listItemValue(e))),t},onShow:function(e,t){e.autocomp.showList()},onHide:function(e,t){e.autocomp.hideList()},moveToOtherColumn:function(e){var t=n.Autocompleter.listItemElements().length,i=Math.floor(t/2),a=Math.ceil(t/2),r=this.index;if(this.index<i?r=this.index+a:this.index>=a&&(r=this.index-a),r!==this.index){var l=this.getEntry(r);this.liIsHeading(l)||(this.index=r,this.setFieldVal(this.listItemValue(l),!1),this.element.select(),this.render(),n.Autocompleter.stopEvent(e))}},handleSeeMoreItems:function(e){},readSearchCount:function(){var t=!1;return"none"!==e("searchCount").style.display&&(n.Autocompleter.screenReaderLog("Showing "+e("searchCount").innerHTML+"."),"none"!==e("moreResults").style.display&&n.Autocompleter.screenReaderLog("Pressing control+return will expand the list."),t=!0),t},destroy:function(){this.stopObservingEvents(),this.detachFromDOM()},stopObservingEvents:function(){t(this.element).unbind()},detachFromDOM:function(){this.element.autocomp=null,this.element=null,this.update=null,this.listContainer=null,this.recDataRequester_=null},updateElement:function(e){var t=this.listItemValue(e),n=t;if(this.options.tokens){var i=this.getTokenBounds();if(-1!=i[0]){var a=this.domCache.get("elemVal"),r=a.substr(0,i[0]),l=a.substr(i[0]).match(/^\s+/);l&&(r+=l[0]),n=r+t+a.substr(i[1])}}this.setFieldVal(n,!1),this.options.afterUpdateElement&&this.options.afterUpdateElement(this.element,e)},show:function(){"none"==t(this.update).css("display")&&this.options.onShow(this.element,this.update),!this.iefix&&i.IE&&"absolute"==t(this.update).css("position")&&(new Insertion.After(this.update,'<iframe id="'+this.update.id+'_iefix" style="display:none;position:absolute;filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0);" src="javascript:false;" frameborder="0" scrolling="no"></iframe>'),this.iefix=e(this.update.id+"_iefix")),this.iefix&&setTimeout(t.proxy(this.fixIEOverlapping,this),50)},fixIEOverlapping:function(){var e=this.update.offset();this.iefix.style.left=e.left,this.update.style.height||(this.update.style.top=e.top),this.iefix.style.zIndex=1,this.update.style.zIndex=2,t(this.iefix).show()},hide:function(){"none"!=t(this.update).css("display")&&this.options.onHide(this.element,this.update),this.iefix&&t(this.iefix).hide()},render:function(){if(this.entryCount>0){for(var e=0;e<this.entryCount;e++)this.index==e?t(this.getEntry(e)).addClass("selected"):t(this.getEntry(e)).removeClass("selected");this.hasFocus&&(this.show(),this.active=!0)}else this.active=!1,this.hide()},getEntry:function(e){return n.Autocompleter.listItemElements()[e]},getCurrentEntry:function(){return this.getEntry(this.index)},onObserverEvent:function(){this.domCache.invalidate("elemVal"),this.changed=!1,this.tokenBounds=null,this.getToken().length>=this.options.minChars?this.getUpdatedChoices():(this.active=!1,this.hide()),this.oldElementValue=this.domCache.get("elemVal")}};t.extend(n.Autocompleter.Base.prototype,r),r=null}},function(e,t,n){e.exports=function(e,t,n){"use strict";var i=n.PrototypeAPI.Class,a=n.PrototypeAPI.Browser;n.Autocompleter.Prefetch=i.create(),n.Autocompleter.Prefetch.constructor=n.Autocompleter.Prefetch,t.extend(n.Autocompleter.Prefetch.prototype,n.Autocompleter.Base.prototype),n.Autocompleter.Prefetch.prototype.className="Def.Autocompleter.Prefetch";var r={SEQ_NUM_PREFIX:'<span class="listNum">',SEQ_NUM_SEPARATOR:":</span>&nbsp; ",validationFailed_:!1,listIsOriginal_:!0,rawList_:null,itemCodes_:null,listLoadAttempted_:!1,seeMoreItemsClicked_:!1,matchListItemsToField_:!1,defaultSelectionIndex_:null,autoFill_:!0,initialize:function(e,i,a){var r=(a=t.extend({ignoreCase:!0,fullSearch:!1,selector:this.selector,onShow:this.onShow,onHide:this.onHide},a||{})).addSeqNum;this.add_seqnum=void 0===r||r;var l=a.autoFill;void 0!==l&&(this.autoFill_=l),n.Autocompleter.Base.classInit_||n.Autocompleter.Base.classInit(),this.initHeadings(a),this.defAutocompleterBaseInit(e,a),t(this.element).focus(t.proxy(this.onFocus,this)),t(this.element).click(t.proxy(this.onFieldClick,this));var s=a.codes;this.setList(i,s),this.listIsOriginal_=!0,this.originalCodes_=s,this.options.minChars=0,this.splitAutocomp_=!1,t(this.element).addClass("ansList")},getUpdatedChoices:function(){this.trimmedElemVal=this.domCache.get("elemVal").trim(),this.updateChoices(this.options.selector(this),this.pickedByNumber())},dupItemToDataIndex:function(e){this.listIsOriginal_&&(this.itemToDataIndex_||this.initItemToDataIndex(),e.itemToDataIndex_=this.itemToDataIndex_)},dupForField:function(e){var i=this.dupDataReqForField(e),a={};t.extend(!0,a,this.constructorOpts_),a.dataRequester=i;var r=new n.Autocompleter.Prefetch(e,this.rawList_,a);return this.dupItemToDataIndex(r),r},initHeadings:function(e){var t=e.codes,n=e.itemToHeading;if(n){e.itemToHeading=null;for(var i={},a={},r=0,l=t.length;r<l;++r){var s=n[t[r]];if(s){var o=i[s];if(!o){var u=n[s];o=u?i[u]+1:1,i[s]=o}}}for(r=0,l=t.length;r<l;++r)o=i[t[r]],a[r]=o||0;this.indexToHeadingLevel_=a,e.indexToHeadingLevel=a,this.numHeadings_=Object.keys(i).length,e.numHeadings=this.numHeadings_}else e.indexToHeadingLevel&&(this.indexToHeadingLevel_=e.indexToHeadingLevel,this.numHeadings_=e.numHeadings)},initItemToDataIndex:function(){if(this.itemToDataIndex_={},this.rawList_)for(var e=0,t=this.rawList_.length;e<t;++e)this.itemToDataIndex_[this.rawList_[e]]=e},selector:function(t){var i=t.getToken(),a=0,r=null,l=!t.matchListItemsToField_||""===t.domCache.get("elemVal").trim(),s=t.seeMoreItemsClicked_?1/0:2*n.Autocompleter.Base.MAX_ITEMS_BELOW_FIELD,o=l&&!t.seeMoreItemsClicked_?Math.floor(s/t.numHeadings_):1/0;o<1&&(o=1);var u=0,c=[],f={},d=null,p=!1,m=0,h=0,g=0,v=n.Autocompleter.Base.escapeAttribute;t.options.ignoreCase&&(i=i.toLowerCase());for(var y=0,b=t.rawList_.length;y<b;++y){var _=!1;if(t.indexToHeadingLevel_[y])d=t.rawList_[y],p=!1,++m;else{var C=null,w=t.rawList_[y];l&&(++a,C=v(w));var $=null,k=!1,S=!1;if(t.add_seqnum&&(_=($=y+1-m+"")===i,l||!_&&0!==$.indexOf(i)||(++a,S=!0,(_||a<=s)&&($="<strong>"+$.substr(0,i.length)+"</strong>"+$.substr(i.length),k=!0,C=t.SEQ_NUM_PREFIX+$+t.SEQ_NUM_SEPARATOR+v(w)))),!S&&!l){var M=!1,I=w;t.options.ignoreCase&&(I=w.toLowerCase());for(var L=I.indexOf(i);!M&&-1!==L;)0===L?(M=!0,++a<=s&&(C="<strong>"+v(w.substr(0,i.length))+"</strong>"+v(w.substr(i.length)))):(t.options.fullSearch||/(.\b|_)./.test(I.substr(L-1,2)))&&(M=!0,++a<=s&&(C=v(w.substr(0,L))+"<strong>"+v(w.substr(L,i.length))+"</strong>"+v(w.substr(L+i.length)))),M||(L=I.indexOf(i,L+1))}var A=!1;t.multiSelect_&&(A=t.isSelected(w))&&++g,!A&&C&&(_||a<=s||t.numHeadings_>0&&l)&&(d&&!p&&(p=!0,c.push(d),++h,f[d]=[v(d),"heading"],u=0),(!l||!t.numHeadings_||u<o||_)&&(!k&&t.add_seqnum&&(C=t.SEQ_NUM_PREFIX+$+t.SEQ_NUM_SEPARATOR+C),c.push(w),_&&(r=c.length-1),f[w]=[C],l&&++u))}}var O=c.length-h;return a>O+g?(e("searchCount").innerHTML=O+" of "+a+" items total",e("moreResults").style.display="block",e("searchCount").style.display="block"):(e("moreResults").style.display="none",e("searchCount").style.display="none"),t.buildHTML(c,f,r)},buildHTML:function(e,t,i){var a,r=-1,l=null!==i;if(!this.numHeadings_&&this.matchListItemsToField_&&(l||this.suggestionMode_===n.Autocompleter.SUGGEST_SHORTEST)&&(r=l?i:this.pickBestMatch(e))>=0){var s=e[r];for(a=r;a>0;--a)e[a]=e[a-1];e[0]=s}var o="<ul>";a=0,r>=0&&(o+='<li class="suggestion">'+t[s][0]+"</li>",++a);for(var u=e.length;a<u;++a){var c=t[e[a]],f=c[1];o+=f?'<li class="'+f+'">'+c[0]+"</li>":"<li>"+c[0]+"</li>"}return o+="</ul>"},setList:function(e,i){this.listIsOriginal_=!1;var a=e.length;this.rawList_=new Array(a);for(var r=0,l=e.length;r<l;++r)this.rawList_[r]=e[r].trim();for(var s=new Array(a),o=n.Autocompleter.Base.escapeAttribute,u=0;u<a;++u)s[u]=o(this.rawList_[u]),!0!==this.add_seqnum||this.indexToHeadingLevel_[u]||(s[u]=this.SEQ_NUM_PREFIX+(u+1)+this.SEQ_NUM_SEPARATOR+s[u]);this.options.array=s,this.itemCodes_=i,this.itemToDataIndex_=null,this.enabled_=e.length>0,e.length>1?t(this.element).addClass("ac_multiple"):t(this.element).removeClass("ac_multiple"),(this.hasFocus||document.activeElement===this.element)&&this.onFocus()},setFieldToListValue:function(e){this.setFieldVal(e,!1),this.fieldValIsListVal_=!0,this.storeSelectedItem(),this.processedFieldVal_=e,this.listSelectionNotification("",!0),this.setMatchStatusIndicator(!0),this.setInvalidValIndicator(!1),this.propagateFieldChanges()},setListAndField:function(e,t,i,a){void 0===i&&(i=!1),void 0===a&&(a=!1),this.setList(e,t),n.Autocompleter.Event.notifyObservers(this.element,"LIST_ASSIGNMENT",{});var r,l=this.domCache.get("elemVal"),s=e.length;!1===i&&(r=this.autoFill_&&(1===s||s>1&&a)?this.assembleValue(e[0]):"",this.setFieldVal(r,!1),this.fieldValIsListVal_=!0),i||l===r||this.setFieldToListValue(r),this.setInvalidValIndicator(!1),this.setMatchStatusIndicator(!0),this.options.afterUpdateElement&&this.options.afterUpdateElement()},assembleValue:function(e){return e.trim()},onObserverEvent:function(){this.temporaryHide_=!0,this.hideList(),n.Autocompleter.Base.prototype.onObserverEvent.apply(this,[]),this.posAnsList(),this.showList(),this.temporaryHide_=!1},loadList:function(t,i){void 0===t&&(t=this.element.id);var a=n.Autocompleter.getFieldLookupKey(this.element);this.listLoadAttempted_=!0;var r=n.RecordDataRequester.getOutputFieldRDR(t);if(r){var l=r.getFieldData(a);if(l?this.setListAndField(l[0],l[1],!0,!1):r.assignListData(),t!==this.element.id){var s=e(i),o=[i,"EQ",n.Autocompleter.getFieldVal(s)];r.addFieldsToUpdateList(t,this,o)}}},listIsEmpty:function(){return 0===this.options.array.length},getInitialSelectionIndex:function(){var e=-1;if(""==this.domCache.get("elemVal"))if(this.defaultSelectionIndex_)e=this.defaultSelectionIndex_;else{var t=this.constructorOpts_.defaultValue;if(void 0!==t){if(this.itemCodes_)for(var i=0,a=this.itemCodes_.length;i<a;++i)this.itemCodes_[i]===t&&(e=i);if(-1===e)for(var r=0,l=this.rawList_.length;r<l;++r)this.rawList_[r]===t&&(e=r)}e>=2*n.Autocompleter.Base.MAX_ITEMS_BELOW_FIELD&&(e=-1),this.defaultSelectionIndex_=e}return e},onFocus:function(){!0===n.Autocompleter.completionOptionsScrollerClicked_?n.Autocompleter.completionOptionsScrollerClicked_=!1:(this.matchListItemsToField_=!1,this.listLoadAttempted_||!this.listIsEmpty()||this.element.comboField||this.loadList(),this.enabled_&&(this.listBelowField_=!0,this.focusInProgress_=!0,this.hideList(),n.Autocompleter.Base.prototype.onFocus.apply(this),this.element.shakeCanceled=!1,this.maybeShowList(),this.index=this.getInitialSelectionIndex(),this.index>=0&&(this.setFieldToListValue(this.listItemValue(this.getCurrentEntry())),this.element.select(),this.render()),this.focusInProgress_=!1))},maybeShowList:function(){this.activate(),this.render();var e=!1;0==this.add_seqnum?e=this.entryCount>0:this.entryCount>1?e=!0:1==this.entryCount&&(e=this.listItemValue(n.Autocompleter.listItemElements()[0])!=this.processedFieldVal_),1==e&&(this.posAnsList(),this.showList(),this.readSearchCount())},onFieldClick:function(){if(this.enabled_&&this.element.id===n.Autocompleter.currentAutoCompField_&&(!this.listShowing||this.matchListItemsToField_)){this.matchListItemsToField_=!1;var e=this.suggestionMode_;this.suggestionMode_=n.Autocompleter.NO_COMPLETION_SUGGESTIONS,this.maybeShowList(),this.suggestionMode_=e}},focusField:function(){this.element.focus()},listItemValue:function(e){var t=e.innerHTML;if(this.add_seqnum){a.IE&&(t=t.replace("SPAN","span"));var i=t.indexOf(this.SEQ_NUM_SEPARATOR);i>=0&&(t=t.substring(i+this.SEQ_NUM_SEPARATOR.length)),t=t.replace(/(<([^>]+)>)/gi,""),t=n.Autocompleter.Base.unescapeAttribute(t)}else t=e.textContent;return t},fieldEventIsBigList:function(e){return e.ctrlKey&&e.keyCode===t.ui.keyCode.ENTER},handleSeeMoreItems:function(t){this.seeMoreItemsClicked_=!0,e("searchHint").style.display="none",this.listBelowField_=!1,this.getUpdatedChoices(),this.posAnsList(),this.seeMoreItemsClicked_=!1,this.splitAutocomp_=!1,n.Autocompleter.stopEvent(t)},findItemIndexByCode:function(e){for(var t=null,n=0,i=this.itemCodes_.length;n<i&&!t;++n)e==this.itemCodes_[n]&&(t=n);return t},selectByCode:function(e){var t=this.findItemIndexByCode(e);null!=t&&this.setFieldToListValue(this.rawList_[t])},readSearchCount:function(){var e=n.Autocompleter.Base.prototype.readSearchCount.apply(this);return!e&&this.entryCount>0&&(n.Autocompleter.screenReaderLog("Showing "+this.entryCount+" of "+this.rawList_.length+" items."),e=!0),e},activate:function(){this.changed=!1,this.hasFocus=!0,this.getUpdatedChoices()}};t.extend(n.Autocompleter.Prefetch.prototype,r),r=null}},function(e,t,n){e.exports=function(e,t,n){"use strict";var i=n.PrototypeAPI.Class;n.Autocompleter.Search=i.create();var a={urlToCache_:{},RESULT_CACHE_AUTOCOMP_RESULTS:1,RESULT_CACHE_SEARCH_RESULTS:0,MAX_VALUE_SIZE_FOR_AUTOCOMP:25,EXPANDED_COUNT:500,constructor:n.Autocompleter.Search,superclass:n.Autocompleter.Base.prototype};t.extend(n.Autocompleter.Search,a),a=null,t.extend(n.Autocompleter.Search.prototype,n.Autocompleter.Base.prototype),n.Autocompleter.Search.prototype.className="Def.Autocompleter.Search";var r={lastAjaxRequest_:null,resultCache_:null,useResultCache_:!0,suggestionList_:null,initialize:function(i,a,r){r=t.extend({partialChars:2,onHide:t.proxy((function(t,i){e("searchCount").style.display="none",e("moreResults").style.display="none",n.Autocompleter.Base.prototype.hideList.apply(this)}),this),onShow:t.proxy((function(t,i){e("searchCount").style.display="block",e("moreResults").style.display="block",n.Autocompleter.Base.prototype.showList.apply(this)}),this),onComplete:t.proxy(this.onComplete,this)},r||{}),n.Autocompleter.Base.classInit_||n.Autocompleter.Base.classInit(),this.url=a,this.fhir=r.fhir,this.defAutocompleterBaseInit(i,r),this.autocomp=r.autocomp,void 0===this.autocomp?this.autocomp=!0:this.autocomp||(this.options.frequency=31536e3),void 0===r.sort&&(r.sort=!0),null!==r.useResultCache&&!1===r.useResultCache&&(this.useResultCache_=!1),t(this.element).focus(t.proxy(this.onFocus,this));var l=r.buttonID;if(this.buttonID=l,l&&"null"!==l){var s=t(document.getElementById(l));s.mousedown(t.proxy(this.buttonClick,this)),s.keypress(t.proxy(this.buttonKeyPress,this))}t(this.element).addClass("search_field"),r.colHeaders&&(this.colHeaderHTML="<table><thead><th>"+r.colHeaders.join("</th><th>")+"</th></thead><tbody>")},initItemToDataIndex:function(){this.itemToDataIndex_={}},dupForField:function(e){var t=this.dupDataReqForField(e),i=Object.clone(this.constructorOpts_);return i.dataRequester=t,new n.Autocompleter.Search(e,this.url,i)},getSearchStr:function(e){var t=n.Autocompleter;return t.LIST_ITEM_FIELD_SEP_REGEX||(t.LIST_ITEM_FIELD_SEP_REGEX=new RegExp(t.LIST_ITEM_FIELD_SEP,"g")),e||(e=this.getToken()),e.replace(t.LIST_ITEM_FIELD_SEP_REGEX," ").trimLeft()},runSearch:function(){this.lastAjaxRequest_&&this.lastAjaxRequest_.transport&&this.lastAjaxRequest_.abort();var e=this.fhir&&this.fhir.search;if(this.url||e){this.searchInProgress=!0,this.searchStartTime=(new Date).getTime();var t=this.getSearchStr(),i=null;this.useResultCache_&&(i=this.getCachedResults(t,n.Autocompleter.Search.RESULT_CACHE_SEARCH_RESULTS))&&this.onComplete(i,null,!0),i||(e?this.useSearchFn(t,n.Autocompleter.Search.EXPANDED_COUNT):this.urlSearch(t,n.Autocompleter.Search.EXPANDED_COUNT),this.changed=!1,this.hasFocus=!0)}},useSearchFn:function(e,t){var n=this;this.fhir.search(e,t).then((function(i){i.requestedCount=t,i.searchStr=e,n.onComplete(i)}),(function(e){console.log("FHIR search failed: "+e)}))},urlSearch:function(e,i){var a={};this.fhir?(a.filter=e,a._format="application/json",a.count=i):(a.terms=e,i!=n.Autocompleter.Base.MAX_ITEMS_BELOW_FIELD&&(a.maxList=null)),window._token&&(params.authenticity_token=window._token);var r={data:a,dataType:"json",complete:this.options.onComplete};this.lastAjaxRequest_=t.ajax(this.url,r),this.lastAjaxRequest_.requestParamData_=a},initResultCache:function(){this.resultCache_=this.url?n.Autocompleter.Search.urlToCache_[this.url]:null,this.resultCache_||(this.resultCache_=[{},{}],this.url&&(n.Autocompleter.Search.urlToCache_[this.url]=this.resultCache_))},getCachedResults:function(e,t){return this.resultCache_||this.initResultCache(),this.resultCache_[t][e]},storeCachedResults:function(e,t,n){this.resultCache_||this.initResultCache(),this.resultCache_[t][e]=n},clearCachedResults:function(){this.resultCache_=[{},{}],n.Autocompleter.Search.urlToCache_[this.url]=this.resultCache_},setURL:function(e){this.url=e,this.initResultCache()},fieldEventIsBigList:function(e){return e.keyCode===t.ui.keyCode.ENTER&&(e.ctrlKey||!this.autocomp&&this.domCache.get("elemVal")!==this.processedFieldVal_&&""!==this.domCache.get("elemVal").trim())},buttonKeyPress:function(e){e.keyCode===t.ui.keyCode.ENTER&&this.runSearch()},processChoices:function(e){for(var t=[],i=Object.keys(e),a=0,r=i.length;a<r;++a){var l=i[a];this.multiSelect_&&this.isSelected(l)||t.push(l)}if(t.length>0&&!this.numHeadings_){var s=null,o=-1;if(this.suggestionMode_===n.Autocompleter.USE_STATISTICS?o=0:this.suggestionMode_===n.Autocompleter.SUGGEST_SHORTEST&&(o=this.pickBestMatch(t)),this.options.sort)o>-1&&(s=t[o],t[o]=""),t=t.sort(n.Autocompleter.Base.noCaseSort),o>-1&&(t[0]=s);else if(o>0){var u=t[0];t[0]=t[o],t[o]=u}}return[t,o>-1]},escapeHTML:function(e){return n.Autocompleter.Base.escapeAttribute(e).replace(/&lt;(\/)?span&gt;/g,"<$1span>")},buildUpdateHTML:function(e,t,i){var a,r,l,s,o,u,c,f=this.options.tableFormat;f?(r=this.colHeaderHTML||"<table><tbody>",l="</tbody></table>",s="<tr",o="><td>",u="</td><td>",c="</td></tr>"):(r="<ul>",l="</ul>",s="<li",o=">",u=n.Autocompleter.LIST_ITEM_FIELD_SEP,c="</li>"),a=r;for(var d=0,p=e.length;d<p;++d){for(var m=e[d],h=i[m],g=[],v=0,y=h.length;v<y;++v)g[v]=this.escapeHTML(h[v]);a+=s,0===d&&t&&(a+=' class="suggestion"'),f&&(a+=' data-fieldval="'+this.escapeHTML(m)+'"'),a+=o,a+=g.join(u),a+=c}return a+=l},setSearchCountDiv:function(t,n,i){var a=e("searchCount"),r="";if(t>0){r=n+" of "+t+" total";var l=(new Date).getTime()-this.searchStartTime+1e3*this.options.frequency+"",s=i+"";s.length<3&&(s+="&nbsp;");var o="; ";void 0!==i&&(o+=s+" bytes in "),o+=l+" ms",l.length<3&&(o+="&nbsp;"),r+=o,a.innerHTML=r}},createFieldVals:function(e){var t={},i=this.options.valueCols,a=n.Autocompleter.LIST_ITEM_FIELD_SEP;if(this.itemToDataIndex_={},i)var r=i.length;for(var l=0,s=e.length;l<s;++l){var o,u=e[l];if(i){o=[];for(var c=0;c<r;++c)o[c]=u[i[c]]}else o=u;var f=o.join(a);f=f.replace(/<\/?span>/g,""),this.itemToDataIndex_[f]=l,t[f]=u}return t},onComplete:function(t,i,a){var r=this.getToken();this.trimmedElemVal=r.trim(),this.lastAjaxRequest_===t&&(this.lastAjaxRequest_=null);var l="ValueSet"==t.resourceType;if(200===t.status||l){var s=t.requestParamData_;if(this.fhir)if(l)o=t.searchStr,u=t.requestedCount===n.Autocompleter.Base.MAX_ITEMS_BELOW_FIELD;else var o=s.filter,u=s.count===n.Autocompleter.Base.MAX_ITEMS_BELOW_FIELD;else o=s.terms,u=void 0===s.maxList;var c=n.Autocompleter.Search;if(!a&&this.useResultCache_){var f=u?c.RESULT_CACHE_AUTOCOMP_RESULTS:c.RESULT_CACHE_SEARCH_RESULTS;this.storeCachedResults(o,f,t)}var d=this.getSearchStr(r);if(u&&(d=d.substr(0,c.MAX_VALUE_SIZE_FOR_AUTOCOMP)),(this.hasFocus||this.refocusInProgress_)&&d===o){var p=l?t:t.responseJSON||JSON.parse(t.responseText);if(this.fhir){y=p.expansion.total,this.listExtraData_=null,this.itemCodes_=[],this.itemCodeSystems_=[],this.rawList_=[];var m=p.expansion.contains;if(m)for(var h=0,g=m.length;h<g;++h){var v=m[h];this.itemCodes_[h]=v.code,this.itemCodeSystems_[h]=v.system,this.rawList_[h]=[v.display]}}else{var y=p[0];this.itemCodes_=p[1],this.listExtraData_=p[2],this.itemCodeSystems_=p[4],this.rawList_=p[3]}var b=this.createFieldVals(this.rawList_),_=this.processChoices(b),C=_[0],w=_[1],$=this.buildUpdateHTML(C,w,b);this.updateChoices($,!1);var k=C.length;this.setSearchCountDiv(y,k,l?void 0:t.responseText.length),e("moreResults").style.display=k<y&&u?"block":"none",this.searchInProgress=!1,this.listBelowField_=this.entryCount<=n.Autocompleter.Base.MAX_ITEMS_BELOW_FIELD,this.posAnsList()}}},getItemExtraData:function(e){var t={};if(this.listExtraData_){var n=this.itemToDataIndex_[e];if(null!=n)for(var i=Object.keys(this.listExtraData_),a=0,r=i.length;a<r;++a){var l=i[a];t[l]=this.listExtraData_[l][n]}}return t},getItemData:function(e){e||(e=this.domCache.get("elemVal"));var t={text:e};if(""!=e&&this.itemToDataIndex_){var n=this.getItemCode(e);if(null!=n&&(t.code=n,this.itemCodeSystems_)){var i=this.itemToDataIndex_[e],a=this.itemCodeSystems_[i];a&&(t.code_system=a)}var r=this.getItemExtraData(e);Object.keys(r).length>0&&(t.data=r)}return t},show:function(){"hidden"!==this.listContainer.style.visibility&&""!==this.listContainer.style.visibility||this.options.onShow(this.element,this.update)},hide:function(){this.searchInProgress||n.Autocompleter.Search.superclass.hide.apply(this)},buttonClick:function(e){this.observer&&clearTimeout(this.observer),this.searchInProgress=!0,this.runSearch(),n.Autocompleter.stopEvent(e)},handleSeeMoreItems:function(e){this.multiSelect_&&""===this.domCache.get("elemVal")&&this.preFieldFillVal_&&this.setFieldVal(this.preFieldFillVal_,!1),this.buttonClick(e)},onFocus:function(){!0===n.Autocompleter.completionOptionsScrollerClicked_?n.Autocompleter.completionOptionsScrollerClicked_=!1:(this.refocusInProgress_||(n.Autocompleter.screenReaderLog("Type to show matching list values."),this.hide(),this.rawList_=[]),n.Autocompleter.Base.prototype.onFocus.apply(this),this.hasFocus=!0)},onBlur:function(e){this.refocusInProgress_||n.Autocompleter.completionOptionsScrollerClicked_||(n.Autocompleter.Base.prototype.onBlur.apply(this,[e]),this.searchInProgress||(this.active=!1))},getUpdatedChoices:function(){this.lastAjaxRequest_&&this.lastAjaxRequest_.transport&&this.lastAjaxRequest_.abort();var e=this.fhir&&this.fhir.search;if(this.url||e){this.searchStartTime=(new Date).getTime();var t=null,i=n.Autocompleter.Search,a=this.getSearchStr();a.length>i.MAX_VALUE_SIZE_FOR_AUTOCOMP&&(a=a.substr(0,i.MAX_VALUE_SIZE_FOR_AUTOCOMP)),this.useResultCache_&&(t=this.getCachedResults(a,i.RESULT_CACHE_AUTOCOMP_RESULTS))&&this.onComplete(t,null,!0),t||(e?this.useSearchFn(a,n.Autocompleter.Base.MAX_ITEMS_BELOW_FIELD):this.urlSearch(a,n.Autocompleter.Base.MAX_ITEMS_BELOW_FIELD))}},findSuggestions:function(){if(this.url){var e={field_val:this.getSearchStr(),suggest:1};window._token&&(params.authenticity_token=window._token);var n={data:e,complete:t.proxy(this.onFindSuggestionComplete,this)};t.ajax(this.url,n)}},onFindSuggestionComplete:function(e){if(200===e.status){var t=e.responseJSON||JSON.parse(e.responseText),i=[],a=!1;if(t[0].length>0){var r=t[1];this.suggestionList_=t;for(var l=this.domCache.get("elemVal").trim().toLowerCase(),s=n.Autocompleter.LIST_ITEM_FIELD_SEP,o=0,u=r.length;!a&&o<u;++o)r[o]=r[o].join(s),r[o].toLowerCase()===l&&(a=!0,this.observer&&clearTimeout(this.observer),this.acceptSuggestion(o));a||(i=r)}a||n.Autocompleter.Event.notifyObservers(this.element,"SUGGESTIONS",{suggestion_list:i})}},acceptSuggestion:function(e){var t=this.suggestionList_[0],i=this.suggestionList_[1],a=i[e],r=this.domCache.get("elemVal");i[e],this.setFieldVal(this.processedFieldVal_=a,!1),this.setMatchStatusIndicator(!0),this.fieldValIsListVal_=!0,this.propagateFieldChanges(),n.Autocompleter.Event.notifyObservers(this.element,"SUGGESTION_USED",{suggestion_used:a}),this.itemCodes_=t,this.itemToDataIndex_={},this.itemToDataIndex_[i[e]]=e,this.listExtraData_=this.suggestionList_[2],this.itemCodeSystems_=this.suggestionList_[3],this.listSelectionNotification(r,!0),this.element.focus()}};t.extend(n.Autocompleter.Search.prototype,r),r=null}},function(e,t,n){e.exports=function(e,t,n){"use strict";n.Autocompleter.Event={observeListExpansions:function(e,t){this.storeCallback(e,"LIST_EXP",t)},observeListSelections:function(e,t){this.storeCallback(e,"LIST_SEL",t)},observeFocusEvents:function(e,t){this.storeCallback(e,"FOCUS",t)},observeCancelList:function(e,t){this.storeCallback(e,"CANCEL",t)},observeSuggestions:function(e,t){this.storeCallback(e,"SUGGESTIONS",t)},observeSuggestionUsed:function(e,t){this.storeCallback(e,"SUGGESTION_USED",t)},observeListAssignments:function(e,t){this.storeCallback(e,"LIST_ASSIGNMENT",t)},observeRDRClearing:function(e){this.storeCallback(null,"RDR_CLEARING",e)},observeRDRAssignment:function(e){this.storeCallback(null,"RDR_ASSIGNMENT",e)}},t.extend(n.Autocompleter.Event,n.Observable)}},function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=function(e){"use strict";var t=e.PrototypeAPI.Class.create({initialize:function(e,t,n,i){if(this.displayedProp=e.display||"text",this.scope=t,this.acOptions=e,i){this.pElem=n[0];var a=this.pElem.autocomp;a&&(a.destroy(),t.modelData=null,this.removeAutocompFunction(i.$formatters),this.removeAutocompFunction(i.$parsers));var r=e.hasOwnProperty("url")||e.fhir&&e.fhir.search;this.ac=r?this.searchList():this.prefetchList();var l=t.modelData;if(null!=l)if(this.ac.multiSelect_){for(var s=0,o=l.length;s<o;++s){var u=l[s][this.displayedProp];this.ac.storeSelectedItem(u,l[s].code),this.ac.addToSelectedArea(u)}this.ac.setFieldVal("",!1)}else"string"==typeof(u=l[this.displayedProp])?(this.ac.storeSelectedItem(u,l.code),this.ac.setFieldVal(u,!1)):this.ac.setFieldVal("",!1);this.parser=this.parser.bind(this),this.parser.fromAutocomp=!0,i.$parsers.push(this.parser),this.formatter=this.formatter.bind(this),this.formatter.fromAutocomp=!0,i.$formatters.push(this.formatter)}},parser:function(e){var t=this.scope.modelData;return void 0===t&&(t=null),t},formatter:function(e){var t="";return this.ac.multiSelect_?t="":("string"==typeof e?t=e:null!==e&&"object"===i(e)&&"string"==typeof e[this.displayedProp]&&(t=e[this.displayedProp]),t=t.trim()),this.ac.setFieldVal(t,!1),t},getPrefetchItemModelData:function(e,t){var n=t[e];return n||(""!=e?(n={_notOnList:!0})[this.displayedProp]=e:n=null),n},prefetchListSelHandler:function(e,t){var n=e.final_val;if(this.ac.multiSelect_){this.scope.modelData||(this.scope.modelData=[]);var i=this.scope.modelData;if(e.removed){for(var a=e.final_val,r=0,l=i.length;r<l;++r)if(a===i[r][this.displayedProp]){i.splice(r,1);break}}else if(e.on_list||!this.acOptions.matchListValue){var s=this.getPrefetchItemModelData(n,t);s&&i.push(s)}}else this.scope.modelData=this.getPrefetchItemModelData(n,t)},prefetchList:function(){var t=[],n={},i=this.acOptions,a=null,r=i.defaultValue,l=null,s=this.displayedProp;void 0===r||void 0!==this.scope.modelData&&null!==this.scope.modelData||("string"==typeof r?(a=s,l=r):l=r[a=Object.keys(r)[0]]);for(var o,u=null,c=0,f=i.listItems.length;c<f;++c){var d=i.listItems[c];o=d[s],t[c]=o;var p=o.trim();n[p]=d,a&&d[a].trim()===l&&(u=this.getPrefetchItemModelData(p,n))}var m=new e.Autocompleter.Prefetch(this.pElem,t,i);this.addNameAttr();var h=this;return this.updateListSelectionHandler((function(e){h.scope.$apply((function(){h.prefetchListSelHandler(e,n)}))})),null===u||this.scope.modelData||(this.scope.modelData=m.multiSelect_?[u]:u),m},getSearchItemModelData:function(e,t){var n;return""===e?n=null:(n=this.ac.getItemData(e),t||(n._notOnList=!0)),n},addNameAttr:function(){""===this.pElem.name&&(this.pElem.name=this.pElem.id)},searchListSelHandler:function(e){var t=e.final_val,n=e.on_list;if(this.ac.multiSelect_){this.scope.modelData||(this.scope.modelData=[]);var i=this.scope.modelData;if(e.removed){for(var a=e.final_val,r=0,l=i.length;r<l;++r)if(a===i[r].text){i.splice(r,1);break}}else if(e.on_list||!this.acOptions.matchListValue){var s=this.getSearchItemModelData(t,n);s&&i.push(s)}}else this.scope.modelData=this.getSearchItemModelData(t,n)},searchList:function(){var t=new e.Autocompleter.Search(this.pElem,this.acOptions.url,this.acOptions);this.addNameAttr();var n=this;return this.updateListSelectionHandler((function(e){n.scope.$apply((function(){n.searchListSelHandler(e)}))})),t},removeAutocompFunction:function(e){for(var t=0,n=e.length;t<n;++t)if(e[t].fromAutocomp){e.splice(t,1);break}},updateListSelectionHandler:function(t){var n=this.pElem,i=e.Observable.lookupKey(n),a=e.Autocompleter.directiveListEventHandlers,r=a[n.id];r&&e.Autocompleter.Event.removeCallback(i,"LIST_SEL",r),e.Autocompleter.Event.observeListSelections(i,t),a[n.id]=t}});e.Autocompleter.directiveListEventHandlers={},"undefined"!=typeof angular&&angular.module("autocompleteLhcMod",[]).directive("autocompleteLhc",[function(){return{restrict:"A",require:"?ngModel",scope:{modelData:"=ngModel",acOpts:"=autocompleteLhc"},link:function(e,n,i,a){a.$options||(a.$options={}),a.$options.updateOn="none",a.$options.updateOnDefault=!1,e.$watch("acOpts",(function(i){new t(i,e,n,a)}),!0)}}}])}},function(e,t,n){n(12),n(62),n(63),n(64),n(65);angular.module("ui.bootstrap.module.popover",["ui.bootstrap.popover","uib/template/popover/popover.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html"]),e.exports="ui.bootstrap.module.popover"},function(e,t,n){n(55);angular.module("ui.bootstrap.module.position",["ui.bootstrap.position"]),e.exports="ui.bootstrap.module.position"},function(e,t){angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,i,a={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},r={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},l=/(HTML|BODY)/;return{getRawNode:function(e){return e.nodeName?e:e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(n){var i,a=(n=this.getRawNode(n)).offsetParent||e[0].documentElement;for(;a&&a!==e[0].documentElement&&(i=a,"static"===(t.getComputedStyle(i).position||"static"));)a=a.offsetParent;return a||e[0].documentElement},scrollbarWidth:function(a){if(a){if(angular.isUndefined(i)){var r=e.find("body");r.addClass("uib-position-body-scrollbar-measure"),i=t.innerWidth-r[0].clientWidth,i=isFinite(i)?i:0,r.removeClass("uib-position-body-scrollbar-measure")}return i}if(angular.isUndefined(n)){var l=angular.element('<div class="uib-position-scrollbar-measure"></div>');e.find("body").append(l),n=l[0].offsetWidth-l[0].clientWidth,n=isFinite(n)?n:0,l.remove()}return n},scrollbarPadding:function(e){e=this.getRawNode(e);var n=t.getComputedStyle(e),i=this.parseStyle(n.paddingRight),a=this.parseStyle(n.paddingBottom),r=this.scrollParent(e,!1,!0),s=this.scrollbarWidth(r,l.test(r.tagName));return{scrollbarWidth:s,widthOverflow:r.scrollWidth>r.clientWidth,right:i+s,originalRight:i,heightOverflow:r.scrollHeight>r.clientHeight,bottom:a+s,originalBottom:a}},isScrollable:function(e,n){e=this.getRawNode(e);var i=n?a.hidden:a.normal,r=t.getComputedStyle(e);return i.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(n,i,r){n=this.getRawNode(n);var l=i?a.hidden:a.normal,s=e[0].documentElement,o=t.getComputedStyle(n);if(r&&l.test(o.overflow+o.overflowY+o.overflowX))return n;var u="absolute"===o.position,c=n.parentElement||s;if(c===s||"fixed"===o.position)return s;for(;c.parentElement&&c!==s;){var f=t.getComputedStyle(c);if(u&&"static"!==f.position&&(u=!1),!u&&l.test(f.overflow+f.overflowY+f.overflowX))break;c=c.parentElement}return c},position:function(n,i){n=this.getRawNode(n);var a=this.offset(n);if(i){var r=t.getComputedStyle(n);a.top-=this.parseStyle(r.marginTop),a.left-=this.parseStyle(r.marginLeft)}var l=this.offsetParent(n),s={top:0,left:0};return l!==e[0].documentElement&&((s=this.offset(l)).top+=l.clientTop-l.scrollTop,s.left+=l.clientLeft-l.scrollLeft),{width:Math.round(angular.isNumber(a.width)?a.width:n.offsetWidth),height:Math.round(angular.isNumber(a.height)?a.height:n.offsetHeight),top:Math.round(a.top-s.top),left:Math.round(a.left-s.left)}},offset:function(n){var i=(n=this.getRawNode(n)).getBoundingClientRect();return{width:Math.round(angular.isNumber(i.width)?i.width:n.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:n.offsetHeight),top:Math.round(i.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(i.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,i,a){a=!1!==a;var r=(n=this.getRawNode(n)).getBoundingClientRect(),l={top:0,left:0,bottom:0,right:0},s=i?e[0].documentElement:this.scrollParent(n),o=s.getBoundingClientRect();if(l.top=o.top+s.clientTop,l.left=o.left+s.clientLeft,s===e[0].documentElement&&(l.top+=t.pageYOffset,l.left+=t.pageXOffset),l.bottom=l.top+s.clientHeight,l.right=l.left+s.clientWidth,a){var u=t.getComputedStyle(s);l.top+=this.parseStyle(u.paddingTop),l.bottom-=this.parseStyle(u.paddingBottom),l.left+=this.parseStyle(u.paddingLeft),l.right-=this.parseStyle(u.paddingRight)}return{top:Math.round(r.top-l.top),bottom:Math.round(l.bottom-r.bottom),left:Math.round(r.left-l.left),right:Math.round(l.right-r.right)}},parsePlacement:function(e){var t=r.auto.test(e);return t&&(e=e.replace(r.auto,"")),(e=e.split("-"))[0]=e[0]||"top",r.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",r.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,n,i,a){e=this.getRawNode(e),n=this.getRawNode(n);var l=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),s=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");i=this.parsePlacement(i);var o=a?this.offset(e):this.position(e),u={top:0,left:0,placement:""};if(i[2]){var c=this.viewportOffset(e,a),f=t.getComputedStyle(n),d={width:l+Math.round(Math.abs(this.parseStyle(f.marginLeft)+this.parseStyle(f.marginRight))),height:s+Math.round(Math.abs(this.parseStyle(f.marginTop)+this.parseStyle(f.marginBottom)))};if(i[0]="top"===i[0]&&d.height>c.top&&d.height<=c.bottom?"bottom":"bottom"===i[0]&&d.height>c.bottom&&d.height<=c.top?"top":"left"===i[0]&&d.width>c.left&&d.width<=c.right?"right":"right"===i[0]&&d.width>c.right&&d.width<=c.left?"left":i[0],i[1]="top"===i[1]&&d.height-o.height>c.bottom&&d.height-o.height<=c.top?"bottom":"bottom"===i[1]&&d.height-o.height>c.top&&d.height-o.height<=c.bottom?"top":"left"===i[1]&&d.width-o.width>c.right&&d.width-o.width<=c.left?"right":"right"===i[1]&&d.width-o.width>c.left&&d.width-o.width<=c.right?"left":i[1],"center"===i[1])if(r.vertical.test(i[0])){var p=o.width/2-l/2;c.left+p<0&&d.width-o.width<=c.right?i[1]="left":c.right+p<0&&d.width-o.width<=c.left&&(i[1]="right")}else{var m=o.height/2-d.height/2;c.top+m<0&&d.height-o.height<=c.bottom?i[1]="top":c.bottom+m<0&&d.height-o.height<=c.top&&(i[1]="bottom")}}switch(i[0]){case"top":u.top=o.top-s;break;case"bottom":u.top=o.top+o.height;break;case"left":u.left=o.left-l;break;case"right":u.left=o.left+o.width}switch(i[1]){case"top":u.top=o.top;break;case"bottom":u.top=o.top+o.height-s;break;case"left":u.left=o.left;break;case"right":u.left=o.left+o.width-l;break;case"center":r.vertical.test(i[0])?u.left=o.left+o.width/2-l/2:u.top=o.top+o.height/2-s/2}return u.top=Math.round(u.top),u.left=Math.round(u.left),u.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],u},positionArrow:function(e,n){var i=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(i){var a=angular.element(i).hasClass("tooltip-inner"),l=a?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(l){var s={top:"",bottom:"",left:"",right:""};if("center"!==(n=this.parsePlacement(n))[1]){var o="border-"+n[0]+"-width",u=t.getComputedStyle(l)[o],c="border-";r.vertical.test(n[0])?c+=n[0]+"-"+n[1]:c+=n[1]+"-"+n[0],c+="-radius";var f=t.getComputedStyle(a?i:e)[c];switch(n[0]){case"top":s.bottom=a?"0":"-"+u;break;case"bottom":s.top=a?"0":"-"+u;break;case"left":s.right=a?"0":"-"+u;break;case"right":s.left=a?"0":"-"+u}s[n[1]]=f,angular.element(l).css(s)}else angular.element(l).css(s)}}}}}])},function(e,t,n){n(57);angular.module("ui.bootstrap.module.stackedMap",["ui.bootstrap.stackedMap"]),e.exports="ui.bootstrap.module.stackedMap"},function(e,t){angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",(function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t===e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,i=0;i<e.length;i++)if(t===e[i].key){n=i;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}}))},function(e,t){angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}])},function(e,t){angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}])},function(e,t){angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}])},function(e,t){angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",(function(){var e={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},t={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},n={};this.options=function(e){angular.extend(n,e)},this.setTriggers=function(e){angular.extend(t,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(i,a,r,l,s,o,u,c,f){var d=f.createNew();function p(e){if(27===e.which){var t=d.top();t&&(t.value.close(),d.removeTop(),t=null)}}return l.on("keypress",p),u.$on("$destroy",(function(){l.off("keypress",p)})),function(i,u,f,p){function m(e){var n=(e||p.trigger||f).split(" "),i=n.map((function(e){return t[e]||e}));return{show:n,hide:i}}p=angular.extend({},e,n,p);var h=i.replace(/[A-Z]/g,(function(e,t){return(t?"-":"")+e.toLowerCase()})),g=o.startSymbol(),v=o.endSymbol(),y="<div "+h+'-popup uib-title="'+g+"title"+v+'" '+(p.useContentExp?'content-exp="contentExp()" ':'content="'+g+"content"+v+'" ')+'placement="'+g+"placement"+v+'" popup-class="'+g+"popupClass"+v+'" animation="animation" is-open="isOpen" origin-scope="origScope" class="uib-position-measure"></div>';return{compile:function(e,t){var n=a(y);return function(e,t,a,o){var f,h,g,v,y,b,_,C=!!angular.isDefined(p.appendToBody)&&p.appendToBody,w=m(void 0),$=angular.isDefined(a[u+"Enable"]),k=e.$new(!0),S=!1,M=!!angular.isDefined(a[u+"IsOpen"])&&c(a[u+"IsOpen"]),I=!!p.useContentExp&&c(a[i]),L=[],A=function(){f&&f.html()&&(b||(b=r((function(){var e=s.positionElements(t,f,k.placement,C);f.css({top:e.top+"px",left:e.left+"px"}),f.hasClass(e.placement.split("-")[0])||(f.removeClass(_.split("-")[0]),f.addClass(e.placement.split("-")[0])),f.hasClass(p.placementClassPrefix+e.placement)||(f.removeClass(p.placementClassPrefix+_),f.addClass(p.placementClassPrefix+e.placement)),f.hasClass("uib-position-measure")?(s.positionArrow(f,e.placement),f.removeClass("uib-position-measure")):_!==e.placement&&s.positionArrow(f,e.placement),_=e.placement,b=null}),0,!1)))};function O(){k.isOpen?x():T()}function T(){$&&!e.$eval(a[u+"Enable"])||(E(),function(){k.title=a[u+"Title"],k.content=I?I(e):a[i];k.popupClass=a[u+"Class"],k.placement=angular.isDefined(a[u+"Placement"])?a[u+"Placement"]:p.placement;var t=s.parsePlacement(k.placement);_=t[1]?t[0]+"-"+t[1]:t[0];var n=parseInt(a[u+"PopupDelay"],10),r=parseInt(a[u+"PopupCloseDelay"],10);k.popupDelay=isNaN(n)?p.popupDelay:n,k.popupCloseDelay=isNaN(r)?p.popupCloseDelay:r}(),k.popupDelay?v||(v=r(D,k.popupDelay,!1)):D())}function x(){U(),k.popupCloseDelay?y||(y=r(q,k.popupCloseDelay,!1)):q()}function D(){if(U(),E(),!k.content)return angular.noop;!function(){if(f)return;h=k.$new(),f=n(h,(function(e){C?l.find("body").append(e):t.after(e)})),function(){L.length=0,I?(L.push(e.$watch(I,(function(e){k.content=e,!e&&k.isOpen&&q()}))),L.push(h.$watch((function(){S||(S=!0,h.$$postDigest((function(){S=!1,k&&k.isOpen&&A()})))})))):L.push(a.$observe(i,(function(e){k.content=e,!e&&k.isOpen?q():A()})));L.push(a.$observe(u+"Title",(function(e){k.title=e,k.isOpen&&A()}))),L.push(a.$observe(u+"Placement",(function(e){k.placement=e||p.placement,k.isOpen&&A()})))}()}(),k.$evalAsync((function(){k.isOpen=!0,R(!0),A()}))}function U(){v&&(r.cancel(v),v=null),b&&(r.cancel(b),b=null)}function q(){k&&k.$evalAsync((function(){k&&(k.isOpen=!1,R(!1),k.animation?g||(g=r(N,150,!1)):N())}))}function E(){y&&(r.cancel(y),y=null),g&&(r.cancel(g),g=null)}function N(){U(),E(),L.length&&(angular.forEach(L,(function(e){e()})),L.length=0),f&&(f.remove(),f=null),h&&(h.$destroy(),h=null)}function R(t){M&&angular.isFunction(M.assign)&&M.assign(e,t)}function P(e){k&&k.isOpen&&f&&(t[0].contains(e.target)||f[0].contains(e.target)||x())}k.origScope=e,k.isOpen=!1,d.add(k,{close:q}),k.contentExp=function(){return k.content},a.$observe("disabled",(function(e){e&&U(),e&&k.isOpen&&q()})),M&&e.$watch(M,(function(e){k&&!e===k.isOpen&&O()}));var F,H=function(){w.show.forEach((function(e){"outsideClick"===e?t.off("click",O):(t.off(e,T),t.off(e,O))})),w.hide.forEach((function(e){"outsideClick"===e?l.off("click",P):t.off(e,x)}))};F=a[u+"Trigger"],H(),"none"!==(w=m(F)).show&&w.show.forEach((function(e,n){"outsideClick"===e?(t.on("click",O),l.on("click",P)):e===w.hide[n]?t.on(e,O):e&&(t.on(e,T),t.on(w.hide[n],x)),t.on("keypress",(function(e){27===e.which&&x()}))}));var V,B=e.$eval(a[u+"Animation"]);k.animation=angular.isDefined(B)?!!B:p.animation;var j=u+"AppendToBody";V=j in a&&void 0===a[j]||e.$eval(a[j]),C=angular.isDefined(V)?V:C,e.$on("$destroy",(function(){H(),N(),d.remove(k),k=null}))}}}}}]})).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,i){return{link:function(a,r,l){var s,o,u,c=a.$eval(l.tooltipTemplateTranscludeScope),f=0,d=function(){o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),u&&(e.leave(u).then((function(){o=null})),o=u,u=null)};a.$watch(t.parseAsResourceUrl(l.uibTooltipTemplateTransclude),(function(t){var l=++f;t?(i(t,!0).then((function(i){if(l===f){var a=c.$new(),o=n(i)(a,(function(t){d(),e.enter(t,r)}));u=o,(s=a).$emit("$includeContentLoaded",t)}}),(function(){l===f&&(d(),a.$emit("$includeContentError",t))})),a.$emit("$includeContentRequested",t)):d()})),a.$on("$destroy",d)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,n,i){if(t.placement){var a=e.parsePlacement(t.placement);n.addClass(a[0])}t.popupClass&&n.addClass(t.popupClass),t.animation()&&n.addClass(i.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",(function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}})).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",(function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}})).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",(function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}})).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}])},function(e,t){angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}])},function(e,t){angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n </div>\n</div>\n')}])},function(e,t){angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}])},function(e,t){angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",(function(){return{replace:!0,scope:{uibTitle:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}})).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",(function(){return{replace:!0,scope:{contentExp:"&",uibTitle:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}})).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",(function(){return{replace:!0,scope:{uibTitle:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}})).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}])},function(e,t,n){},function(e,t,n){n(68),e.exports="ngAnimate"},function(e,t){
47
+ /**
48
+ * @license AngularJS v1.8.2
49
+ * (c) 2010-2020 Google LLC. http://angularjs.org
50
+ * License: MIT
51
+ */
52
+ !function(e,t){"use strict";var n,i,a,r;void 0===e.ontransitionend&&void 0!==e.onwebkittransitionend?("-webkit-",n="WebkitTransition",i="webkitTransitionEnd transitionend"):(n="transition",i="transitionend"),void 0===e.onanimationend&&void 0!==e.onwebkitanimationend?("-webkit-",a="WebkitAnimation",r="webkitAnimationEnd animationend"):(a="animation",r="animationend");var l=a+"Delay",s=a+"Duration",o=n+"Delay",u=n+"Duration",c=t.$$minErr("ng");function f(e,t,n){if(!e)throw c("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function d(e,t){return e||t?e?t?(R(e)&&(e=e.join(" ")),R(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function p(e,t,n){var i="";return e=R(e)?e:e&&B(e)&&e.length?e.split(/\s+/):[],N(e,(function(e,a){e&&e.length>0&&(i+=a>0?" ":"",i+=n?t+e:e+t)})),i}function m(e){if(e instanceof z)switch(e.length){case 0:return e;case 1:if(1===e[0].nodeType)return e;break;default:return z(h(e))}if(1===e.nodeType)return z(e)}function h(e){if(!e[0])return e;for(var t=0;t<e.length;t++){var n=e[t];if(1===n.nodeType)return n}}function g(e){return function(t,n){n.addClass&&(!function(e,t,n){N(t,(function(t){e.addClass(t,n)}))}(e,t,n.addClass),n.addClass=null),n.removeClass&&(!function(e,t,n){N(t,(function(t){e.removeClass(t,n)}))}(e,t,n.removeClass),n.removeClass=null)}}function v(e){if(!(e=e||{}).$$prepared){var t=e.domOperation||Y;e.domOperation=function(){e.$$domOperationFired=!0,t(),t=Y},e.$$prepared=!0}return e}function y(e,t){b(e,t),_(e,t)}function b(e,t){t.from&&(e.css(t.from),t.from=null)}function _(e,t){t.to&&(e.css(t.to),t.to=null)}function C(e,t,n){var i=t.options||{},a=n.options||{},r=(i.addClass||"")+" "+(a.addClass||""),l=(i.removeClass||"")+" "+(a.removeClass||""),s=function(e,t,n){var i={};e=r(e),t=r(t),N(t,(function(e,t){i[t]=1})),n=r(n),N(n,(function(e,t){i[t]=1===i[t]?null:-1}));var a={addClass:"",removeClass:""};function r(e){B(e)&&(e=e.split(" "));var t={};return N(e,(function(e){e.length&&(t[e]=!0)})),t}return N(i,(function(t,n){var i,r;1===t?(i="addClass",r=!e[n]||e[n+"-remove"]):-1===t&&(i="removeClass",r=e[n]||e[n+"-add"]),r&&(a[i].length&&(a[i]+=" "),a[i]+=n)})),a}(e.attr("class"),r,l);a.preparationClasses&&(i.preparationClasses=S(a.preparationClasses,i.preparationClasses),delete a.preparationClasses);var o=i.domOperation!==Y?i.domOperation:null;return E(i,a),o&&(i.domOperation=o),s.addClass?i.addClass=s.addClass:i.addClass=null,s.removeClass?i.removeClass=s.removeClass:i.removeClass=null,t.addClass=i.addClass,t.removeClass=i.removeClass,i}function w(e){return e instanceof z?e[0]:e}function $(e,t){var n=t?"paused":"",i=a+"PlayState";return k(e,[i,n]),[i,n]}function k(e,t){var n=t[0],i=t[1];e.style[n]=i}function S(e,t){return e?t?e+" "+t:e:t}var M=function(e,t){var n=t?"-"+t+"s":"";return k(e,[o,n]),[o,n]},I=["$interpolate",function(e){return{link:function(t,n,i){var a=i.ngAnimateChildren;function r(e){e="on"===e||"true"===e,n.data("$$ngAnimateChildren",e)}B(a)&&0===a.length?n.data("$$ngAnimateChildren",!0):(r(e(a)(t)),i.$observe("ngAnimateChildren",r))}}}],L={transitionDuration:u,transitionDelay:o,transitionProperty:n+"Property",animationDuration:s,animationDelay:l,animationIterationCount:a+"IterationCount"},A={transitionDuration:u,transitionDelay:o,animationDuration:s,animationDelay:l};function O(e,t){return[t?l:o,e+"s"]}function T(e,t,n){var i=Object.create(null),a=e.getComputedStyle(t)||{};return N(n,(function(e,t){var n,r,l=a[e];if(l){var s=l.charAt(0);("-"===s||"+"===s||s>=0)&&(n=0,r=l.split(/\s*,\s*/),N(r,(function(e){"s"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=parseFloat(e)||0,n=n?Math.max(e,n):e})),l=n),0===l&&(l=null),i[t]=l}})),i}function x(e){return 0===e||null!=e}function D(e,t){var i=n,a=e+"s";return t?i+="Duration":a+=" linear all",[i,a]}function U(e,t,n){N(n,(function(n){e[n]=P(e[n])?e[n]:t.style.getPropertyValue(n)}))}var q,E,N,R,P,F,H,V,B,j,z,Y,G=["$animateProvider",function(e){this.$get=["$window","$$jqLite","$$AnimateRunner","$timeout","$$animateCache","$$forceReflow","$sniffer","$$rAFScheduler","$$animateQueue",function(e,t,l,o,u,c,f,d,m){var h=g(t);var C=[];function S(e){C.push(e),d.waitUntilQuiet((function(){u.flush();for(var e=c(),t=0;t<C.length;t++)C[t](e);C.length=0}))}function I(t,n,i,a){var r=function(t,n,i,a,r){var l=u.get(i);l||"infinite"===(l=T(e,t,r)).animationIterationCount&&(l.animationIterationCount=1);var s=a||l.transitionDuration>0||l.animationDuration>0;return u.put(i,l,s),l}(t,0,i,a,L),l=r.animationDelay,s=r.transitionDelay;return r.maxDelay=l&&s?Math.max(l,s):l||s,r.maxDuration=Math.max(r.animationDuration*r.animationIterationCount,r.transitionDuration),r}return function(c,d){var g=d||{};g.$$prepared||(g=v(q(g)));var C={},L=w(c);if(!L||!L.parentNode||!m.enabled())return we();var E,P,F,H,V,B,j,z,G,W,K=[],Q=(c.attr("class"),function(e){var t={};return e&&(e.to||e.from)&&(t.to=e.to,t.from=e.from),t}(g)),J=[];if(0===g.duration||!f.animations&&!f.transitions)return we();var X=g.event&&R(g.event)?g.event.join(" "):g.event,Z=X&&g.structural,ee="",te="";Z?ee=p(X,"ng-",!0):X&&(ee=X),g.addClass&&(te+=p(g.addClass,"-add")),g.removeClass&&(te.length&&(te+=" "),te+=p(g.removeClass,"-remove")),g.applyClassesEarly&&te.length&&h(c,g);var ne=[ee,te].join(" ").trim(),ie=Q.to&&Object.keys(Q.to).length>0;if(!((g.keyframeStyle||"").length>0)&&!ie&&!ne)return we();var ae,re,le=u.cacheKey(L,X,g.addClass,g.removeClass);if(u.containsCachedAnimationWithoutDuration(le))return ne=null,we();if(g.stagger>0){var se=parseFloat(g.stagger);ae={transitionDelay:se,animationDelay:se,transitionDuration:0,animationDuration:0}}else ae=function(n,i,a,r){var l,s="stagger-"+a;if(u.count(a)>0&&!(l=u.get(s))){var o=p(i,"-stagger");t.addClass(n,o),(l=T(e,n,r)).animationDuration=Math.max(l.animationDuration,0),l.transitionDuration=Math.max(l.transitionDuration,0),t.removeClass(n,o),u.put(s,l,!0)}return l||{}}(L,ne,le,A);if(g.$$skipPreparationClasses||t.addClass(c,ne),g.transitionStyle){var oe=[n,g.transitionStyle];k(L,oe),K.push(oe)}if(g.duration>=0){re=L.style[n].length>0;var ue=D(g.duration,re);k(L,ue),K.push(ue)}if(g.keyframeStyle){var ce=[a,g.keyframeStyle];k(L,ce),K.push(ce)}var fe=ae?g.staggerIndex>=0?g.staggerIndex:u.count(le):0,de=0===fe;de&&!g.skipBlocking&&M(L,9999);var pe=I(L,0,le,!Z),me=pe.maxDelay;B=Math.max(me,0),z=pe.maxDuration;var he={};if(he.hasTransitions=pe.transitionDuration>0,he.hasAnimations=pe.animationDuration>0,he.hasTransitionAll=he.hasTransitions&&"all"===pe.transitionProperty,he.applyTransitionDuration=ie&&(he.hasTransitions&&!he.hasTransitionAll||he.hasAnimations&&!he.hasTransitions),he.applyAnimationDuration=g.duration&&he.hasAnimations,he.applyTransitionDelay=x(g.delay)&&(he.applyTransitionDuration||he.hasTransitions),he.applyAnimationDelay=x(g.delay)&&he.hasAnimations,he.recalculateTimingStyles=te.length>0,(he.applyTransitionDuration||he.applyAnimationDuration)&&(z=g.duration?parseFloat(g.duration):z,he.applyTransitionDuration&&(he.hasTransitions=!0,pe.transitionDuration=z,re=L.style[n+"Property"].length>0,K.push(D(z,re))),he.applyAnimationDuration&&(he.hasAnimations=!0,pe.animationDuration=z,K.push([s,z+"s"]))),0===z&&!he.recalculateTimingStyles)return we();var ge,ve=p(ne,"-active");null!=g.delay&&("boolean"!=typeof g.delay&&(ge=parseFloat(g.delay),B=Math.max(ge,0)),he.applyTransitionDelay&&K.push(O(ge)),he.applyAnimationDelay&&K.push(O(ge,!0)));return null==g.duration&&pe.transitionDuration>0&&(he.recalculateTimingStyles=he.recalculateTimingStyles||de),j=1e3*B,G=1e3*z,g.skipBlocking||(he.blockTransition=pe.transitionDuration>0,he.blockKeyframeAnimation=pe.animationDuration>0&&ae.animationDelay>0&&0===ae.animationDuration),g.from&&(g.cleanupStyles&&U(C,L,Object.keys(g.from)),b(c,g)),he.blockTransition||he.blockKeyframeAnimation?Ce(z):g.skipBlocking||M(L,!1),{$$willAnimate:!0,end:ye,start:function(){if(!E)return H=new l(V={end:ye,cancel:be,resume:null,pause:null}),S(ke),H}};function ye(){_e()}function be(){_e(!0)}function _e(e){if(!(E||F&&P)){E=!0,P=!1,ne&&!g.$$skipPreparationClasses&&t.removeClass(c,ne),ve&&t.removeClass(c,ve),$(L,!1),M(L,!1),N(K,(function(e){L.style[e[0]]=""})),h(c,g),y(c,g),Object.keys(C).length&&N(C,(function(e,t){e?L.style.setProperty(t,e):L.style.removeProperty(t)})),g.onDone&&g.onDone(),J&&J.length&&c.off(J.join(" "),$e);var n=c.data("$$animateCss");n&&(o.cancel(n[0].timer),c.removeData("$$animateCss")),H&&H.complete(!e)}}function Ce(e){he.blockTransition&&M(L,e),he.blockKeyframeAnimation&&$(L,!!e)}function we(){return H=new l({end:ye,cancel:be}),S(Y),_e(),{$$willAnimate:!1,start:function(){return H},end:ye}}function $e(e){e.stopPropagation();var t=e.originalEvent||e;if(t.target===L){var n=t.$manualTimeStamp||Date.now(),i=parseFloat(t.elapsedTime.toFixed(3));Math.max(n-W,0)>=j&&i>=z&&(F=!0,_e())}}function ke(){if(!E)if(L.parentNode){var e=function(e){if(F)P&&e&&(P=!1,_e());else if(P=!e,pe.animationDuration){var t=$(L,P);P?K.push(t):(i=t,a=(n=K).indexOf(i),i>=0&&n.splice(a,1))}var n,i,a},l=fe>0&&(pe.transitionDuration&&0===ae.transitionDuration||pe.animationDuration&&0===ae.animationDuration)&&Math.max(ae.animationDelay,ae.transitionDelay);l?o(s,Math.floor(l*fe*1e3),!1):s(),V.resume=function(){e(!0)},V.pause=function(){e(!1)}}else _e();function s(){if(!E){if(Ce(!1),N(K,(function(e){var t=e[0],n=e[1];L.style[t]=n})),h(c,g),t.addClass(c,ve),he.recalculateTimingStyles){if(L.getAttribute("class")+" "+ne,le=u.cacheKey(L,X,g.addClass,g.removeClass),pe=I(L,0,le,!1),me=pe.maxDelay,B=Math.max(me,0),0===(z=pe.maxDuration))return void _e();he.hasTransitions=pe.transitionDuration>0,he.hasAnimations=pe.animationDuration>0}if(he.applyAnimationDelay&&(me="boolean"!=typeof g.delay&&x(g.delay)?parseFloat(g.delay):me,B=Math.max(me,0),pe.animationDelay=me,ge=O(me,!0),K.push(ge),L.style[ge[0]]=ge[1]),j=1e3*B,G=1e3*z,g.easing){var e,l=g.easing;he.hasTransitions&&(e=n+"TimingFunction",K.push([e,l]),L.style[e]=l),he.hasAnimations&&(e=a+"TimingFunction",K.push([e,l]),L.style[e]=l)}pe.transitionDuration&&J.push(i),pe.animationDuration&&J.push(r),W=Date.now();var s=j+1.5*G,d=W+s,p=c.data("$$animateCss")||[],m=!0;if(p.length){var v=p[0];(m=d>v.expectedEndTime)?o.cancel(v.timer):p.push(_e)}if(m){var y=o(f,s,!1);p[0]={timer:y,expectedEndTime:d},p.push(_e),c.data("$$animateCss",p)}J.length&&c.on(J.join(" "),$e),g.to&&(g.cleanupStyles&&U(C,L,Object.keys(g.to)),_(c,g))}}function f(){var e=c.data("$$animateCss");if(e){for(var t=1;t<e.length;t++)e[t]();c.removeData("$$animateCss")}}}}}]}],W=["$$animationProvider",function(e){e.drivers.push("$$animateCssDriver");this.$get=["$animateCss","$rootScope","$$AnimateRunner","$rootElement","$sniffer","$$jqLite","$document",function(e,t,n,i,a,r,l){if(!a.animations&&!a.transitions)return Y;var s,o=l[0].body,u=w(i),c=z((s=u).parentNode&&11===s.parentNode.nodeType||o.contains(u)?u:o);return function(t){return t.from&&t.to?function(t,i,a,r){var l=p(t),s=p(i),u=[];if(N(r,(function(t){var i=function(t,i,a){var r=z(w(i).cloneNode(!0)),l=f(h(r));i.addClass("ng-animate-shim"),a.addClass("ng-animate-shim"),r.addClass("ng-anchor"),c.append(r);var s,u=function(){var t=e(r,{addClass:"ng-anchor-out",delay:!0,from:m(i)});return t.$$willAnimate?t:null}();if(!u&&!(s=g()))return v();var p=u||s;return{start:function(){var e,t=p.start();return t.done((function(){if(t=null,!s&&(s=g()))return(t=s.start()).done((function(){t=null,v(),e.complete()})),t;v(),e.complete()})),e=new n({end:i,cancel:i});function i(){t&&t.end()}}};function m(e){var t={},n=w(e).getBoundingClientRect();return N(["width","height","top","left"],(function(e){var i=n[e];switch(e){case"top":i+=o.scrollTop;break;case"left":i+=o.scrollLeft}t[e]=Math.floor(i)+"px"})),t}function h(e){return e.attr("class")||""}function g(){var t=f(h(a)),n=d(t,l),i=d(l,t),s=e(r,{to:m(a),addClass:"ng-anchor-in "+n,removeClass:"ng-anchor-out "+i,delay:!0});return s.$$willAnimate?s:null}function v(){r.remove(),i.removeClass("ng-animate-shim"),a.removeClass("ng-animate-shim")}}(0,t.out,t.in);i&&u.push(i)})),!l&&!s&&0===u.length)return;return{start:function(){var e=[];l&&e.push(l.start()),s&&e.push(s.start()),N(u,(function(t){e.push(t.start())}));var t=new n({end:i,cancel:i});return n.all(e,(function(e){t.complete(e)})),t;function i(){N(e,(function(e){e.end()}))}}}}(t.from,t.to,t.classes,t.anchors):p(t)};function f(e){return e.replace(/\bng-\S+\b/g,"")}function d(e,t){return B(e)&&(e=e.split(" ")),B(t)&&(t=t.split(" ")),e.filter((function(e){return-1===t.indexOf(e)})).join(" ")}function p(t){var n=t.element,i=t.options||{};t.structural&&(i.event=t.event,i.structural=!0,i.applyClassesEarly=!0,"leave"===t.event&&(i.onDone=i.domOperation)),i.preparationClasses&&(i.event=S(i.event,i.preparationClasses));var a=e(n,i);return a.$$willAnimate?a:null}}]}],K=["$animateProvider",function(e){this.$get=["$injector","$$AnimateRunner","$$jqLite",function(t,n,i){var a=g(i);return function(e,t,i,l){var s=!1;3===arguments.length&&V(i)&&(l=i,i=null),l=v(l),i||(i=e.attr("class")||"",l.addClass&&(i+=" "+l.addClass),l.removeClass&&(i+=" "+l.removeClass));var o,u,c,f,d,p=l.addClass,m=l.removeClass,h=r(i);h.length&&("leave"===t?(f="leave",c="afterLeave"):(f="before"+t.charAt(0).toUpperCase()+t.substr(1),c=t),"enter"!==t&&"move"!==t&&(o=w(e,t,l,h,f)),u=w(e,t,l,h,c));if(o||u)return{$$willAnimate:!0,end:function(){return d?d.end():(b(),(d=new n).complete(!0)),d},start:function(){if(d)return d;var e;d=new n;var t=[];return o&&t.push((function(t){e=o(t)})),t.length?t.push((function(e){g(),e(!0)})):g(),u&&t.push((function(t){e=u(t)})),d.setHost({end:function(){a()},cancel:function(){a(!0)}}),n.chain(t,i),d;function i(e){b(),d.complete(e)}function a(t){s||((e||Y)(t),i(t))}}};function g(){l.domOperation(),a(e,l)}function b(){s=!0,g(),y(e,l)}function _(e,t,i,a,r){var l;switch(i){case"animate":l=[t,a.from,a.to,r];break;case"setClass":l=[t,p,m,r];break;case"addClass":l=[t,p,r];break;case"removeClass":l=[t,m,r];break;default:l=[t,r]}l.push(a);var s=e.apply(e,l);if(s)if(H(s.start)&&(s=s.start()),s instanceof n)s.done(r);else if(H(s))return s;return Y}function C(e,t,i,a,r){var l=[];return N(a,(function(a){var s=a[r];s&&l.push((function(){var a,r,l=!1,o=function(e){l||(l=!0,(r||Y)(e),a.complete(!e))};return a=new n({end:function(){o()},cancel:function(){o(!0)}}),r=_(s,e,t,i,(function(e){o(!1===e)})),a}))})),l}function w(e,t,i,a,r){var l,s,o=C(e,t,i,a,r);0===o.length&&("beforeSetClass"===r?(l=C(e,"removeClass",i,a,"beforeRemoveClass"),s=C(e,"addClass",i,a,"beforeAddClass")):"setClass"===r&&(l=C(e,"removeClass",i,a,"removeClass"),s=C(e,"addClass",i,a,"addClass")),l&&(o=o.concat(l)),s&&(o=o.concat(s)));if(0!==o.length)return function(e){var t=[];return o.length&&N(o,(function(e){t.push(e())})),t.length?n.all(t,e):e(),function(e){N(t,(function(t){e?t.cancel():t.end()}))}}}};function r(n){n=R(n)?n:n.split(" ");for(var i=[],a={},r=0;r<n.length;r++){var l=n[r],s=e.$$registeredAnimations[l];s&&!a[l]&&(i.push(t.get(s)),a[l]=!0)}return i}}]}],Q=["$$animationProvider",function(e){e.drivers.push("$$animateJsDriver"),this.$get=["$$animateJs","$$AnimateRunner",function(e,t){return function(e){if(e.from&&e.to){var i=n(e.from),a=n(e.to);if(!i&&!a)return;return{start:function(){var e=[];i&&e.push(i.start()),a&&e.push(a.start()),t.all(e,(function(e){n.complete(e)}));var n=new t({end:r(),cancel:r()});return n;function r(){return function(){N(e,(function(e){e.end()}))}}}}}return n(e)};function n(t){var n=t.element,i=t.event,a=t.options,r=t.classes;return e(n,i,r,a)}}]}],J=["$animateProvider",function(t){var n=this.rules={skip:[],cancel:[],join:[]};function i(e){return{addClass:e.addClass,removeClass:e.removeClass,from:e.from,to:e.to}}function a(e,t){if(e&&t){var n=function(e){if(!e)return null;var t=e.split(" "),n=Object.create(null);return N(t,(function(e){n[e]=!0})),n}(t);return e.split(" ").some((function(e){return n[e]}))}}function r(e,t,i){return n[e].some((function(e){return e(t,i)}))}function l(e,t){var n=(e.addClass||"").length>0,i=(e.removeClass||"").length>0;return t?n&&i:n||i}n.join.push((function(e,t){return!e.structural&&l(e)})),n.skip.push((function(e,t){return!e.structural&&!l(e)})),n.skip.push((function(e,t){return"leave"===t.event&&e.structural})),n.skip.push((function(e,t){return t.structural&&2===t.state&&!e.structural})),n.cancel.push((function(e,t){return t.structural&&e.structural})),n.cancel.push((function(e,t){return 2===t.state&&e.structural})),n.cancel.push((function(e,t){if(t.structural)return!1;var n=e.addClass,i=e.removeClass,r=t.addClass,l=t.removeClass;return!(j(n)&&j(i)||j(r)&&j(l))&&(a(n,l)||a(i,r))})),this.$get=["$$rAF","$rootScope","$rootElement","$document","$$Map","$$animation","$$AnimateRunner","$templateRequest","$$jqLite","$$forceReflow","$$isDocumentHidden",function(n,a,s,o,u,c,d,b,_,$,k){var M=new u,I=new u,L=null;function A(e){I.delete(e.target)}var O=a.$watch((function(){return 0===b.totalPendingRequests}),(function(e){e&&(O(),a.$$postDigest((function(){a.$$postDigest((function(){null===L&&(L=!0)}))})))})),T=Object.create(null),x=t.customFilter(),D=t.classNameFilter(),U=function(){return!0},H=x||U,Y=D?function(e,t){var n=[e.getAttribute("class"),t.addClass,t.removeClass].join(" ");return D.test(n)}:U,G=g(_);function W(e,t){return C(e,t,{})}var K=e.Node.prototype.contains||function(e){return this===e||!!(16&this.compareDocumentPosition(e))};function Q(e,t,n){var i=h(t);return e.filter((function(e){return!(e.node===i&&(!n||e.callback===n))}))}function J(e,t){"close"!==e||t.parentNode||X.off(t)}var X={on:function(e,t,n){var i=h(t);T[e]=T[e]||[],T[e].push({node:i,callback:n}),z(t).on("$destroy",(function(){M.get(i)||X.off(e,t,n)}))},off:function(e,t,n){if(1!==arguments.length||B(arguments[0])){var i=T[e];i&&(T[e]=1===arguments.length?null:Q(i,t,n))}else for(var a in t=arguments[0],T)T[a]=Q(T[a],t)},pin:function(e,t){f(F(e),"element","not an element"),f(F(t),"parentElement","not an element"),e.data("$ngAnimatePin",t)},push:function(e,t,u,f){return(u=u||{}).domOperation=f,function(e,t,u){var f=q(u),h=m(e),g=w(h),b=g&&g.parentNode;f=v(f);var _=new d,$=(A=!1,function(e){A?e():a.$$postDigest((function(){A=!0,e()}))});var A;R(f.addClass)&&(f.addClass=f.addClass.join(" "));f.addClass&&!B(f.addClass)&&(f.addClass=null);R(f.removeClass)&&(f.removeClass=f.removeClass.join(" "));f.removeClass&&!B(f.removeClass)&&(f.removeClass=null);f.from&&!V(f.from)&&(f.from=null);f.to&&!V(f.to)&&(f.to=null);if(!(L&&g&&H(g,t,u)&&Y(g,f)))return ne(),_;var O=["enter","move","leave"].indexOf(t)>=0,x=k(),D=x||I.get(g),U=!D&&M.get(g)||{},E=!!U.state;D||E&&1===U.state||(D=!function(e,t,n){var i,a=o[0].body,r=w(s),l=e===a||"HTML"===e.nodeName,u=e===r,c=!1,f=I.get(e),d=z.data(e,"$ngAnimatePin");d&&(t=w(d));for(;t&&(u||(u=t===r),1===t.nodeType);){var p=M.get(t)||{};if(!c){var m=I.get(t);if(!0===m&&!1!==f){f=!0;break}!1===m&&(f=!1),c=p.structural}if(j(i)||!0===i){var h=z.data(t,"$$ngAnimateChildren");P(h)&&(i=h)}if(c&&!1===i)break;if(l||(l=t===a),l&&u)break;t=u||!(d=z.data(t,"$ngAnimatePin"))?t.parentNode:w(d)}return(!c||i)&&!0!==f&&u&&l}(g,b));if(D)return x&&te(_,t,"start",i(f)),ne(),x&&te(_,t,"close",i(f)),_;O&&function(e){var t=e.querySelectorAll("[data-ng-animate]");N(t,(function(e){var t=parseInt(e.getAttribute("data-ng-animate"),10),n=M.get(e);if(n)switch(t){case 2:n.runner.end();case 1:M.delete(e)}}))}(g);var F={structural:O,element:h,event:t,addClass:f.addClass,removeClass:f.removeClass,close:ne,options:f,runner:_};if(E){if(r("skip",F,U))return 2===U.state?(ne(),_):(C(h,U,F),U.runner);if(r("cancel",F,U))if(2===U.state)U.runner.end();else{if(!U.structural)return C(h,U,F),U.runner;U.close()}else if(r("join",F,U)){if(2!==U.state)return function(e,t,n,i){var a="";n&&(a=p(n,"ng-",!0)),i.addClass&&(a=S(a,p(i.addClass,"-add"))),i.removeClass&&(a=S(a,p(i.removeClass,"-remove"))),a.length&&(i.preparationClasses=a,t.addClass(a))}(0,h,O?t:null,f),t=F.event=U.event,f=C(h,U,F),U.runner;W(h,F)}}else W(h,F);var Q=F.structural;Q||(Q="animate"===F.event&&Object.keys(F.options.to||{}).length>0||l(F));if(!Q)return ne(),Z(g),_;var X=(U.counter||0)+1;return F.counter=X,ee(g,1,F),a.$$postDigest((function(){h=m(e);var n=M.get(g),a=!n;n=n||{};var r=(h.parent()||[]).length>0&&("animate"===n.event||n.structural||l(n));if(a||n.counter!==X||!r)return a&&(G(h,f),y(h,f)),(a||O&&n.event!==t)&&(f.domOperation(),_.end()),void(r||Z(g));t=!n.structural&&l(n,!0)?"setClass":n.event,ee(g,2);var s=c(h,t,n.options);_.setHost(s),te(_,t,"start",i(f)),s.done((function(e){ne(!e);var n=M.get(g);n&&n.counter===X&&Z(g),te(_,t,"close",i(f))}))})),_;function te(e,t,i,a){$((function(){var e=function(e,t,n){var i=[],a=T[n];return a&&N(a,(function(a){(K.call(a.node,t)||"leave"===n&&K.call(a.node,e))&&i.push(a.callback)})),i}(b,g,t);e.length?n((function(){N(e,(function(e){e(h,i,a)})),J(i,g)})):J(i,g)})),e.progress(t,i,a)}function ne(e){!function(e,t){t.preparationClasses&&(e.removeClass(t.preparationClasses),t.preparationClasses=null),t.activeClasses&&(e.removeClass(t.activeClasses),t.activeClasses=null)}(h,f),G(h,f),y(h,f),f.domOperation(),_.complete(!e)}}(e,t,u)},enabled:function(e,t){var n=arguments.length;if(0===n)t=!!L;else{var i=F(e);if(i){var a=w(e);1===n?t=!I.get(a):(I.has(a)||z(e).on("$destroy",A),I.set(a,!t))}else t=L=!!e}return t}};return X;function Z(e){e.removeAttribute("data-ng-animate"),M.delete(e)}function ee(e,t,n){(n=n||{}).state=t,e.setAttribute("data-ng-animate",t);var i=M.get(e),a=i?E(i,n):n;M.set(e,a)}}]}],X=["$animateProvider",function(e){var t=this.drivers=[];function n(e){return e.data("$$animationRunner")}this.$get=["$$jqLite","$rootScope","$injector","$$AnimateRunner","$$Map","$$rAFScheduler","$$animateCache",function(e,i,a,r,l,s,o){var u=[],c=g(e);return function(f,p,m){m=v(m);var h=["enter","move","leave"].indexOf(p)>=0,g=new r({end:function(){k()},cancel:function(){k(!0)}});if(!t.length)return k(),g;var b=d(f.attr("class"),d(m.addClass,m.removeClass)),_=m.tempClasses;return _&&(b+=" "+_,m.tempClasses=null),h&&f.data("$$animatePrepareClasses","ng-"+p+"-prepare"),function(e,t){e.data("$$animationRunner",t)}(f,g),u.push({element:f,classes:b,event:p,structural:h,options:m,beforeStart:function(){_=(_?_+" ":"")+"ng-animate",e.addClass(f,_);var t=f.data("$$animatePrepareClasses");t&&(e.removeClass(f,t),t=null)},close:k}),f.on("$destroy",$),u.length>1||i.$$postDigest((function(){var i=[];N(u,(function(e){n(e.element)?i.push(e):e.close()})),u.length=0;var r=function(e){var t=[],n={};N(e,(function(e,i){var a=w(e.element),r=e.event,l=["enter","move"].indexOf(r)>=0,s=e.structural?function(e){var t=e.hasAttribute("ng-animate-ref")?[e]:e.querySelectorAll("[ng-animate-ref]"),n=[];return N(t,(function(e){var t=e.getAttribute("ng-animate-ref");t&&t.length&&n.push(e)})),n}(a):[];if(s.length){var o=l?"to":"from";N(s,(function(e){var t=e.getAttribute("ng-animate-ref");n[t]=n[t]||{},n[t][o]={animationID:i,element:z(e)}}))}else t.push(e)}));var i={},a={};return N(n,(function(n,r){var l=n.from,s=n.to;if(l&&s){var o=e[l.animationID],u=e[s.animationID],c=l.animationID.toString();if(!a[c]){var f=a[c]={structural:!0,beforeStart:function(){o.beforeStart(),u.beforeStart()},close:function(){o.close(),u.close()},classes:C(o.classes,u.classes),from:o,to:u,anchors:[]};f.classes.length?t.push(f):(t.push(o),t.push(u))}a[c].anchors.push({out:l.element,in:s.element})}else{var d=l?l.animationID:s.animationID,p=d.toString();i[p]||(i[p]=!0,t.push(e[d]))}})),t}(i),c=[];N(r,(function(e){var i=e.from?e.from.element:e.element,r=m.addClass;r=(r?r+" ":"")+"ng-animate";var l=o.cacheKey(i[0],e.event,r,m.removeClass);c.push({element:i,domNode:w(i),fn:function(){var i,r=e.close;if(o.containsCachedAnimationWithoutDuration(l))r();else{if(e.beforeStart(),n(e.anchors?e.from.element||e.to.element:e.element)){var s=function(e){for(var n=t.length-1;n>=0;n--){var i=t[n],r=a.get(i)(e);if(r)return r}}(e);s&&(i=s.start)}if(i){var u=i();u.done((function(e){r(!e)})),function(e,t){e.from&&e.to?(i(e.from.element),i(e.to.element)):i(e.element);function i(e){var i=n(e);i&&i.setHost(t)}}(e,u)}else r()}}})}));for(var f=function(e){var t,n={children:[]},i=new l;for(t=0;t<e.length;t++){var a=e[t];i.set(a.domNode,e[t]={domNode:a.domNode,element:a.element,fn:a.fn,children:[]})}for(t=0;t<e.length;t++)r(e[t]);return function(e){var t,n=[],i=[];for(t=0;t<e.children.length;t++)i.push(e.children[t]);var a=i.length,r=0,l=[];for(t=0;t<i.length;t++){var s=i[t];a<=0&&(a=r,r=0,n.push(l),l=[]),l.push(s),s.children.forEach((function(e){r++,i.push(e)})),a--}l.length&&n.push(l);return n}(n);function r(e){if(e.processed)return e;e.processed=!0;var t,a=e.domNode,l=a.parentNode;for(i.set(a,e);l;){if(t=i.get(l)){t.processed||(t=r(t));break}l=l.parentNode}return(t||n).children.push(e),e}}(c),d=0;d<f.length;d++)for(var p=f[d],h=0;h<p.length;h++){var g=p[h],v=g.element;if(f[d][h]=g.fn,0!==d){var y=v.data("$$animatePrepareClasses");y&&e.addClass(v,y)}else v.removeData("$$animatePrepareClasses")}s(f)})),g;function C(e,t){e=e.split(" "),t=t.split(" ");for(var n=[],i=0;i<e.length;i++){var a=e[i];if("ng-"!==a.substring(0,3))for(var r=0;r<t.length;r++)if(a===t[r]){n.push(a);break}}return n.join(" ")}function $(){var e=n(f);!e||"leave"===p&&m.$$domOperationFired||e.end()}function k(t){f.off("$destroy",$),function(e){e.removeData("$$animationRunner")}(f),c(f,m),y(f,m),m.domOperation(),_&&e.removeClass(f,_),g.complete(!t)}}}]}];t.module("ngAnimate",[],(function(){Y=t.noop,q=t.copy,E=t.extend,z=t.element,N=t.forEach,R=t.isArray,B=t.isString,V=t.isObject,j=t.isUndefined,P=t.isDefined,H=t.isFunction,F=t.isElement})).info({angularVersion:"1.8.2"}).directive("ngAnimateSwap",["$animate",function(e){return{restrict:"A",transclude:"element",terminal:!0,priority:550,link:function(t,n,i,a,r){var l,s;t.$watchCollection(i.ngAnimateSwap||i.for,(function(t){l&&e.leave(l),s&&(s.$destroy(),s=null),(t||0===t)&&r((function(t,i){l=t,s=i,e.enter(t,null,n)}))}))}}}]).directive("ngAnimateChildren",I).factory("$$rAFScheduler",["$$rAF",function(e){var t,n;function i(e){t=t.concat(e),a()}return t=i.queue=[],i.waitUntilQuiet=function(t){n&&n(),n=e((function(){n=null,t(),a()}))},i;function a(){if(t.length){for(var i=t.shift(),r=0;r<i.length;r++)i[r]();n||e((function(){n||a()}))}}}]).provider("$$animateQueue",J).provider("$$animateCache",(function(){var e="$$ngAnimateParentKey",t=0,n=Object.create(null);this.$get=[function(){return{cacheKey:function(n,i,a,r){var l=n.parentNode,s=[l[e]||(l[e]=++t),i,n.getAttribute("class")];return a&&s.push(a),r&&s.push(r),s.join(" ")},containsCachedAnimationWithoutDuration:function(e){var t=n[e];return t&&!t.isValid||!1},flush:function(){n=Object.create(null)},count:function(e){var t=n[e];return t?t.total:0},get:function(e){var t=n[e];return t&&t.value},put:function(e,t,i){n[e]?(n[e].total++,n[e].value=t):n[e]={total:1,value:t,isValid:i}}}}]})).provider("$$animation",X).provider("$animateCss",G).provider("$$animateCssDriver",W).provider("$$animateJs",K).provider("$$animateJsDriver",Q)}(window,window.angular)},function(e,t){
53
+ /*!
54
+ * Angular Smooth Scroll (ngSmoothScroll)
55
+ * Animates scrolling to elements, by David Oliveros.
56
+ *
57
+ * Callback hooks contributed by Ben Armston https://github.com/benarmston
58
+ * Easing support contributed by Willem Liu. https://github.com/willemliu
59
+ * Easing functions forked from Gaëtan Renaudeau. https://gist.github.com/gre/1650294
60
+ * Infinite loop bugs in iOS and Chrome (when zoomed) by Alex Guzman. https://github.com/alexguzman
61
+ * Support for scrolling in custom containers by Joseph Matthias Goh. https://github.com/zephinzer
62
+ * Influenced by Chris Ferdinandi
63
+ * https://github.com/cferdinandi
64
+ *
65
+ * Version: 2.0.0
66
+ * License: MIT
67
+ */
68
+ !function(){"use strict";var e=angular.module("smoothScroll",[]),t=function(e,t){var n=(t=t||{}).duration||800,i=t.offset||0,a=t.easing||"easeInOutQuart",r=t.callbackBefore||function(){},l=t.callbackAfter||function(){},s=document.getElementById(t.containerId)||null,o=null!=s&&null!=s,u=function(){return o?s.scrollTop:window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop};setTimeout((function(){var t,c,f,d,p=null,m=u(),h=function(e){var t=0;if(e.offsetParent)do{t+=e.offsetTop,e=e.offsetParent}while(e);return t=Math.max(t-i,0)}(e),g=0,v=h-m;r(e);var y=setInterval((function(){c=m+v*function(e,t){switch(e){case"easeInQuad":return t*t;case"easeOutQuad":return t*(2-t);case"easeInOutQuad":return t<.5?2*t*t:(4-2*t)*t-1;case"easeInCubic":return t*t*t;case"easeOutCubic":return--t*t*t+1;case"easeInOutCubic":return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1;case"easeInQuart":return t*t*t*t;case"easeOutQuart":return 1- --t*t*t*t;case"easeInOutQuart":return t<.5?8*t*t*t*t:1-8*--t*t*t*t;case"easeInQuint":return t*t*t*t*t;case"easeOutQuint":return 1+--t*t*t*t*t;case"easeInOutQuint":return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t;default:return t}}(a,t=(t=(g+=16)/n)>1?1:t),o?s.scrollTop=c:window.scrollTo(0,c),p=u(),o?(f=s.scrollHeight,d=s.clientHeight+p):(f=document.body.scrollheight,d=window.innerHeight+p),(c==h||p==h||d>=f)&&(clearInterval(y),l(e))}),16)}),0)};e.factory("smoothScroll",(function(){return t})),e.directive("smoothScroll",["smoothScroll",function(e){return{restrict:"A",scope:{callbackBefore:"&",callbackAfter:"&"},link:function(t,n,i){void 0!==i.scrollIf&&"true"!==i.scrollIf||setTimeout((function(){e(n[0],{duration:i.duration,offset:i.offset,easing:i.easing,callbackBefore:function(e){if(i.callbackBefore){var n=t.callbackBefore({element:e});"function"==typeof n&&n(e)}},callbackAfter:function(e){if(i.callbackAfter){var n=t.callbackAfter({element:e});"function"==typeof n&&n(e)}},containerId:i.containerId})}),0)}}}]),e.directive("scrollTo",["smoothScroll",function(e){return{restrict:"A",scope:{callbackBefore:"&",callbackAfter:"&"},link:function(t,n,i){var a;n.on("click",(function(n){if(n.preventDefault(),a=document.getElementById(i.scrollTo)){a.focus();return e(a,{duration:i.duration,offset:i.offset,easing:i.easing,callbackBefore:function(e){if(i.callbackBefore){var n=t.callbackBefore({element:e});"function"==typeof n&&n(e)}},callbackAfter:function(e){if(i.callbackAfter){var n=t.callbackAfter({element:e});"function"==typeof n&&n(e)}},containerId:i.containerId}),!1}}))}}}])}()},function(e,t,n){n(71),e.exports="ui.bootstrap"},function(e,t){angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui.bootstrap.isClass","ui.bootstrap.datepicker","ui.bootstrap.position","ui.bootstrap.datepickerPopup","ui.bootstrap.debounce","ui.bootstrap.dropdown","ui.bootstrap.stackedMap","ui.bootstrap.modal","ui.bootstrap.paging","ui.bootstrap.pager","ui.bootstrap.pagination","ui.bootstrap.tooltip","ui.bootstrap.popover","ui.bootstrap.progressbar","ui.bootstrap.rating","ui.bootstrap.tabs","ui.bootstrap.timepicker","ui.bootstrap.typeahead"]),angular.module("ui.bootstrap.tpls",["uib/template/accordion/accordion-group.html","uib/template/accordion/accordion.html","uib/template/alert/alert.html","uib/template/carousel/carousel.html","uib/template/carousel/slide.html","uib/template/datepicker/datepicker.html","uib/template/datepicker/day.html","uib/template/datepicker/month.html","uib/template/datepicker/year.html","uib/template/datepickerPopup/popup.html","uib/template/modal/backdrop.html","uib/template/modal/window.html","uib/template/pager/pager.html","uib/template/pagination/pagination.html","uib/template/tooltip/tooltip-html-popup.html","uib/template/tooltip/tooltip-popup.html","uib/template/tooltip/tooltip-template-popup.html","uib/template/popover/popover-html.html","uib/template/popover/popover-template.html","uib/template/popover/popover.html","uib/template/progressbar/bar.html","uib/template/progressbar/progress.html","uib/template/progressbar/progressbar.html","uib/template/rating/rating.html","uib/template/tabs/tab.html","uib/template/tabs/tabset.html","uib/template/timepicker/timepicker.html","uib/template/typeahead/typeahead-match.html","uib/template/typeahead/typeahead-popup.html"]),angular.module("ui.bootstrap.collapse",[]).directive("uibCollapse",["$animate","$q","$parse","$injector",function(e,t,n,i){var a=i.has("$animateCss")?i.get("$animateCss"):null;return{link:function(i,r,l){var s=n(l.expanding),o=n(l.expanded),u=n(l.collapsing),c=n(l.collapsed);function f(){r.removeClass("collapsing").addClass("collapse").css({height:"auto"}),o(i)}function d(){r.css({height:"0"}),r.removeClass("collapsing").addClass("collapse"),c(i)}i.$eval(l.uibCollapse)||r.addClass("in").addClass("collapse").attr("aria-expanded",!0).attr("aria-hidden",!1).css({height:"auto"}),i.$watch(l.uibCollapse,(function(n){n?function(){if(!r.hasClass("collapse")&&!r.hasClass("in"))return d();t.resolve(u(i)).then((function(){r.css({height:r[0].scrollHeight+"px"}).removeClass("collapse").addClass("collapsing").attr("aria-expanded",!1).attr("aria-hidden",!0),a?a(r,{removeClass:"in",to:{height:"0"}}).start().finally(d):e.removeClass(r,"in",{to:{height:"0"}}).then(d)}))}():r.hasClass("collapse")&&r.hasClass("in")||t.resolve(s(i)).then((function(){r.removeClass("collapse").addClass("collapsing").attr("aria-expanded",!0).attr("aria-hidden",!1),a?a(r,{addClass:"in",easing:"ease",to:{height:r[0].scrollHeight+"px"}}).start().finally(f):e.addClass(r,"in",{to:{height:r[0].scrollHeight+"px"}}).then(f)}))}))}}}]),angular.module("ui.bootstrap.accordion",["ui.bootstrap.collapse"]).constant("uibAccordionConfig",{closeOthers:!0}).controller("UibAccordionController",["$scope","$attrs","uibAccordionConfig",function(e,t,n){this.groups=[],this.closeOthers=function(i){(angular.isDefined(t.closeOthers)?e.$eval(t.closeOthers):n.closeOthers)&&angular.forEach(this.groups,(function(e){e!==i&&(e.isOpen=!1)}))},this.addGroup=function(e){var t=this;this.groups.push(e),e.$on("$destroy",(function(n){t.removeGroup(e)}))},this.removeGroup=function(e){var t=this.groups.indexOf(e);-1!==t&&this.groups.splice(t,1)}}]).directive("uibAccordion",(function(){return{controller:"UibAccordionController",controllerAs:"accordion",transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion.html"}}})).directive("uibAccordionGroup",(function(){return{require:"^uibAccordion",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/accordion/accordion-group.html"},scope:{heading:"@",panelClass:"@?",isOpen:"=?",isDisabled:"=?"},controller:function(){this.setHeading=function(e){this.heading=e}},link:function(e,t,n,i){i.addGroup(e),e.openClass=n.openClass||"panel-open",e.panelClass=n.panelClass||"panel-default",e.$watch("isOpen",(function(n){t.toggleClass(e.openClass,!!n),n&&i.closeOthers(e)})),e.toggleOpen=function(t){e.isDisabled||t&&32!==t.which||(e.isOpen=!e.isOpen)};var a="accordiongroup-"+e.$id+"-"+Math.floor(1e4*Math.random());e.headingId=a+"-tab",e.panelId=a+"-panel"}}})).directive("uibAccordionHeading",(function(){return{transclude:!0,template:"",replace:!0,require:"^uibAccordionGroup",link:function(e,t,n,i,a){i.setHeading(a(e,angular.noop))}}})).directive("uibAccordionTransclude",(function(){return{require:"^uibAccordionGroup",link:function(e,t,n,i){e.$watch((function(){return i[n.uibAccordionTransclude]}),(function(e){if(e){var n=angular.element(t[0].querySelector("uib-accordion-header,data-uib-accordion-header,x-uib-accordion-header,uib\\:accordion-header,[uib-accordion-header],[data-uib-accordion-header],[x-uib-accordion-header]"));n.html(""),n.append(e)}}))}}})),angular.module("ui.bootstrap.alert",[]).controller("UibAlertController",["$scope","$attrs","$interpolate","$timeout",function(e,t,n,i){e.closeable=!!t.close;var a=angular.isDefined(t.dismissOnTimeout)?n(t.dismissOnTimeout)(e.$parent):null;a&&i((function(){e.close()}),parseInt(a,10))}]).directive("uibAlert",(function(){return{controller:"UibAlertController",controllerAs:"alert",templateUrl:function(e,t){return t.templateUrl||"uib/template/alert/alert.html"},transclude:!0,replace:!0,scope:{type:"@",close:"&"}}})),angular.module("ui.bootstrap.buttons",[]).constant("uibButtonConfig",{activeClass:"active",toggleEvent:"click"}).controller("UibButtonsController",["uibButtonConfig",function(e){this.activeClass=e.activeClass||"active",this.toggleEvent=e.toggleEvent||"click"}]).directive("uibBtnRadio",["$parse",function(e){return{require:["uibBtnRadio","ngModel"],controller:"UibButtonsController",controllerAs:"buttons",link:function(t,n,i,a){var r=a[0],l=a[1],s=e(i.uibUncheckable);n.find("input").css({display:"none"}),l.$render=function(){n.toggleClass(r.activeClass,angular.equals(l.$modelValue,t.$eval(i.uibBtnRadio)))},n.on(r.toggleEvent,(function(){if(!i.disabled){var e=n.hasClass(r.activeClass);e&&!angular.isDefined(i.uncheckable)||t.$apply((function(){l.$setViewValue(e?null:t.$eval(i.uibBtnRadio)),l.$render()}))}})),i.uibUncheckable&&t.$watch(s,(function(e){i.$set("uncheckable",e?"":void 0)}))}}}]).directive("uibBtnCheckbox",(function(){return{require:["uibBtnCheckbox","ngModel"],controller:"UibButtonsController",controllerAs:"button",link:function(e,t,n,i){var a=i[0],r=i[1];function l(){return s(n.btnCheckboxTrue,!0)}function s(t,n){return angular.isDefined(t)?e.$eval(t):n}t.find("input").css({display:"none"}),r.$render=function(){t.toggleClass(a.activeClass,angular.equals(r.$modelValue,l()))},t.on(a.toggleEvent,(function(){n.disabled||e.$apply((function(){r.$setViewValue(t.hasClass(a.activeClass)?s(n.btnCheckboxFalse,!1):l()),r.$render()}))}))}}})),angular.module("ui.bootstrap.carousel",[]).controller("UibCarouselController",["$scope","$element","$interval","$timeout","$animate",function(e,t,n,i,a){var r,l,s=this,o=s.slides=e.slides=[],u=e.active,c=[],f=!1;function d(){for(;c.length;)c.shift()}function p(e){for(var t=0;t<o.length;t++)o[t].slide.active=t===e}function m(e){for(var t=0;t<o.length;t++)if(o[t].slide===e)return t}function h(){r&&(n.cancel(r),r=null)}function g(){h();var t=+e.interval;!isNaN(t)&&t>0&&(r=n(v,t))}function v(){var t=+e.interval;l&&!isNaN(t)&&t>0&&o.length?e.next():e.pause()}s.addSlide=function(t,n){o.push({slide:t,element:n}),o.sort((function(e,t){return+e.slide.index-+t.slide.index})),(t.index===e.active||1===o.length&&!angular.isNumber(e.active))&&(e.$currentTransition&&(e.$currentTransition=null),u=t.index,e.active=t.index,p(u),s.select(o[m(t)]),1===o.length&&e.play())},s.getCurrentIndex=function(){for(var e=0;e<o.length;e++)if(o[e].slide.index===u)return e},s.next=e.next=function(){var t=(s.getCurrentIndex()+1)%o.length;if(0!==t||!e.noWrap())return s.select(o[t],"next");e.pause()},s.prev=e.prev=function(){var t=s.getCurrentIndex()-1<0?o.length-1:s.getCurrentIndex()-1;if(!e.noWrap()||t!==o.length-1)return s.select(o[t],"prev");e.pause()},s.removeSlide=function(t){var n=m(t),i=c.indexOf(o[n]);-1!==i&&c.splice(i,1),o.splice(n,1),o.length>0&&u===n?n>=o.length?(u=o.length-1,e.active=u,p(u),s.select(o[o.length-1])):(u=n,e.active=u,p(u),s.select(o[n])):u>n&&(u--,e.active=u),0===o.length&&(u=null,e.active=null,d())},s.select=e.select=function(n,i){var r=m(n.slide);void 0===i&&(i=r>s.getCurrentIndex()?"next":"prev"),n.slide.index===u||e.$currentTransition?n&&n.slide.index!==u&&e.$currentTransition&&c.push(o[r]):function n(i,r,l){if(f)return;if(angular.extend(i,{direction:l}),angular.extend(o[u].slide||{},{direction:l}),a.enabled(t)&&!e.$currentTransition&&o[r].element&&s.slides.length>1){o[r].element.data("uib-slideDirection",i.direction);var m=s.getCurrentIndex();angular.isNumber(m)&&o[m].element&&o[m].element.data("uib-slideDirection",i.direction),e.$currentTransition=!0,a.on("addClass",o[r].element,(function(t,i){if("close"===i&&(e.$currentTransition=null,a.off("addClass",t),c.length)){var r=c.pop().slide,l=r.index,o=l>s.getCurrentIndex()?"next":"prev";d(),n(r,l,o)}}))}e.active=i.index,u=i.index,p(r),g()}(n.slide,r,i)},e.indexOfSlide=function(e){return+e.slide.index},e.isActive=function(t){return e.active===t.slide.index},e.isPrevDisabled=function(){return 0===e.active&&e.noWrap()},e.isNextDisabled=function(){return e.active===o.length-1&&e.noWrap()},e.pause=function(){e.noPause||(l=!1,h())},e.play=function(){l||(l=!0,g())},e.$on("$destroy",(function(){f=!0,h()})),e.$watch("noTransition",(function(e){a.enabled(t,!e)})),e.$watch("interval",g),e.$watchCollection("slides",(function(t){t.length||(e.$currentTransition=null,d())})),e.$watch("active",(function(e){if(angular.isNumber(e)&&u!==e){for(var t=0;t<o.length;t++)if(o[t].slide.index===e){e=t;break}o[e]&&(p(e),s.select(o[e]),u=e)}}))}]).directive("uibCarousel",(function(){return{transclude:!0,replace:!0,controller:"UibCarouselController",controllerAs:"carousel",templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/carousel.html"},scope:{active:"=",interval:"=",noTransition:"=",noPause:"=",noWrap:"&"}}})).directive("uibSlide",(function(){return{require:"^uibCarousel",transclude:!0,replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/carousel/slide.html"},scope:{actual:"=?",index:"=?"},link:function(e,t,n,i){i.addSlide(e,t),e.$on("$destroy",(function(){i.removeSlide(e)}))}}})).animation(".item",["$animateCss",function(e){function t(e,t,n){e.removeClass(t),n&&n()}return{beforeAddClass:function(n,i,a){if("active"===i){var r=n.data("uib-slideDirection"),l="next"===r?"left":"right",s=t.bind(this,n,l+" "+r,a);return n.addClass(r),e(n,{addClass:l}).start().done(s),function(){!0}}a()},beforeRemoveClass:function(n,i,a){if("active"===i){var r="next"===n.data("uib-slideDirection")?"left":"right",l=t.bind(this,n,r,a);return e(n,{addClass:r}).start().done(l),function(){!0}}a()}}}]),angular.module("ui.bootstrap.dateparser",[]).service("uibDateParser",["$log","$locale","dateFilter","orderByFilter",function(e,t,n,i){var a,r,l=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;function s(e,t){var n=[],a=e.split(""),l=e.indexOf("'");if(l>-1){var s=!1;e=e.split("");for(var o=l;o<e.length;o++)s?("'"===e[o]&&(o+1<e.length&&"'"===e[o+1]?(e[o+1]="$",a[o+1]=""):(a[o]="",s=!1)),e[o]="$"):"'"===e[o]&&(e[o]="$",a[o]="",s=!0);e=e.join("")}return angular.forEach(r,(function(i){var r=e.indexOf(i.key);if(r>-1){e=e.split(""),a[r]="("+i.regex+")",e[r]="$";for(var l=r+1,s=r+i.key.length;l<s;l++)a[l]="",e[l]="$";e=e.join(""),n.push({index:r,key:i.key,apply:i[t],matcher:i.regex})}})),{regex:new RegExp("^"+a.join("")+"$"),map:i(n,"index")}}function o(e){return parseInt(e,10)}function u(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function c(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}function f(e,t,n){n=n?-1:1;var i=e.getTimezoneOffset();return c(e,n*(u(t,i)-i))}this.init=function(){a=t.id,this.parsers={},this.formatters={},r=[{key:"yyyy",regex:"\\d{4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yyyy")}},{key:"yy",regex:"\\d{2}",apply:function(e){e=+e,this.year=e<69?e+2e3:e+1900},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"yy")}},{key:"y",regex:"\\d{1,4}",apply:function(e){this.year=+e},formatter:function(e){var t=new Date;return t.setFullYear(Math.abs(e.getFullYear())),n(t,"y")}},{key:"M!",regex:"0?[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){var t=e.getMonth();return/^[0-9]$/.test(t)?n(e,"MM"):n(e,"M")}},{key:"MMMM",regex:t.DATETIME_FORMATS.MONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.MONTH.indexOf(e)},formatter:function(e){return n(e,"MMMM")}},{key:"MMM",regex:t.DATETIME_FORMATS.SHORTMONTH.join("|"),apply:function(e){this.month=t.DATETIME_FORMATS.SHORTMONTH.indexOf(e)},formatter:function(e){return n(e,"MMM")}},{key:"MM",regex:"0[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"MM")}},{key:"M",regex:"[1-9]|1[0-2]",apply:function(e){this.month=e-1},formatter:function(e){return n(e,"M")}},{key:"d!",regex:"[0-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){var t=e.getDate();return/^[1-9]$/.test(t)?n(e,"dd"):n(e,"d")}},{key:"dd",regex:"[0-2][0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"dd")}},{key:"d",regex:"[1-2]?[0-9]{1}|3[0-1]{1}",apply:function(e){this.date=+e},formatter:function(e){return n(e,"d")}},{key:"EEEE",regex:t.DATETIME_FORMATS.DAY.join("|"),formatter:function(e){return n(e,"EEEE")}},{key:"EEE",regex:t.DATETIME_FORMATS.SHORTDAY.join("|"),formatter:function(e){return n(e,"EEE")}},{key:"HH",regex:"(?:0|1)[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"HH")}},{key:"hh",regex:"0[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"hh")}},{key:"H",regex:"1?[0-9]|2[0-3]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"H")}},{key:"h",regex:"[0-9]|1[0-2]",apply:function(e){this.hours=+e},formatter:function(e){return n(e,"h")}},{key:"mm",regex:"[0-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"mm")}},{key:"m",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.minutes=+e},formatter:function(e){return n(e,"m")}},{key:"sss",regex:"[0-9][0-9][0-9]",apply:function(e){this.milliseconds=+e},formatter:function(e){return n(e,"sss")}},{key:"ss",regex:"[0-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"ss")}},{key:"s",regex:"[0-9]|[1-5][0-9]",apply:function(e){this.seconds=+e},formatter:function(e){return n(e,"s")}},{key:"a",regex:t.DATETIME_FORMATS.AMPMS.join("|"),apply:function(e){12===this.hours&&(this.hours=0),"PM"===e&&(this.hours+=12)},formatter:function(e){return n(e,"a")}},{key:"Z",regex:"[+-]\\d{4}",apply:function(e){var t=e.match(/([+-])(\d{2})(\d{2})/),n=t[1],i=t[2],a=t[3];this.hours+=o(n+i),this.minutes+=o(n+a)},formatter:function(e){return n(e,"Z")}},{key:"ww",regex:"[0-4][0-9]|5[0-3]",formatter:function(e){return n(e,"ww")}},{key:"w",regex:"[0-9]|[1-4][0-9]|5[0-3]",formatter:function(e){return n(e,"w")}},{key:"GGGG",regex:t.DATETIME_FORMATS.ERANAMES.join("|").replace(/\s/g,"\\s"),formatter:function(e){return n(e,"GGGG")}},{key:"GGG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GGG")}},{key:"GG",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"GG")}},{key:"G",regex:t.DATETIME_FORMATS.ERAS.join("|"),formatter:function(e){return n(e,"G")}}]},this.init(),this.filter=function(e,n){if(!angular.isDate(e)||isNaN(e)||!n)return"";n=t.DATETIME_FORMATS[n]||n,t.id!==a&&this.init(),this.formatters[n]||(this.formatters[n]=s(n,"formatter"));var i=this.formatters[n].map,r=n;return i.reduce((function(t,n,a){var l=r.match(new RegExp("(.*)"+n.key));l&&angular.isString(l[1])&&(t+=l[1],r=r.replace(l[1]+n.key,""));var s=a===i.length-1?r:"";return n.apply?t+n.apply.call(null,e)+s:t+s}),"")},this.parse=function(n,i,r){if(!angular.isString(n)||!i)return n;i=(i=t.DATETIME_FORMATS[i]||i).replace(l,"\\$&"),t.id!==a&&this.init(),this.parsers[i]||(this.parsers[i]=s(i,"apply"));var o=this.parsers[i],u=o.regex,c=o.map,f=n.match(u),d=!1;if(f&&f.length){var p,m;angular.isDate(r)&&!isNaN(r.getTime())?p={year:r.getFullYear(),month:r.getMonth(),date:r.getDate(),hours:r.getHours(),minutes:r.getMinutes(),seconds:r.getSeconds(),milliseconds:r.getMilliseconds()}:(r&&e.warn("dateparser:","baseDate is not a valid date"),p={year:1900,month:0,date:1,hours:0,minutes:0,seconds:0,milliseconds:0});for(var h=1,g=f.length;h<g;h++){var v=c[h-1];"Z"===v.matcher&&(d=!0),v.apply&&v.apply.call(p,f[h])}var y=d?Date.prototype.setUTCFullYear:Date.prototype.setFullYear,b=d?Date.prototype.setUTCHours:Date.prototype.setHours;return function(e,t,n){if(n<1)return!1;if(1===t&&n>28)return 29===n&&(e%4==0&&e%100!=0||e%400==0);if(3===t||5===t||8===t||10===t)return n<31;return!0}(p.year,p.month,p.date)&&(!angular.isDate(r)||isNaN(r.getTime())||d?(m=new Date(0),y.call(m,p.year,p.month,p.date),b.call(m,p.hours||0,p.minutes||0,p.seconds||0,p.milliseconds||0)):(m=new Date(r),y.call(m,p.year,p.month,p.date),b.call(m,p.hours,p.minutes,p.seconds,p.milliseconds))),m}},this.toTimezone=function(e,t){return e&&t?f(e,t):e},this.fromTimezone=function(e,t){return e&&t?f(e,t,!0):e},this.timezoneToOffset=u,this.addDateMinutes=c,this.convertTimezoneToLocal=f}]),angular.module("ui.bootstrap.isClass",[]).directive("uibIsClass",["$animate",function(e){var t=/^\s*([\s\S]+?)\s+on\s+([\s\S]+?)\s*$/,n=/^\s*([\s\S]+?)\s+for\s+([\s\S]+?)\s*$/;return{restrict:"A",compile:function(i,a){var r=[],l=[],s={},o=a.uibIsClass.match(t),u=o[2],c=o[1].split(",");return function(t,i,a){r.push(t),l.push({scope:t,element:i}),c.forEach((function(i,a){!function(t,i){var a=t.match(n),r=i.$eval(a[1]),o=a[2],c=s[t];if(!c){var f=function(t){var n=null;l.some((function(e){if(e.scope.$eval(u)===t)return n=e,!0})),c.lastActivated!==n&&(c.lastActivated&&e.removeClass(c.lastActivated.element,r),n&&e.addClass(n.element,r),c.lastActivated=n)};s[t]=c={lastActivated:null,scope:i,watchFn:f,compareWithExp:o,watcher:i.$watch(o,f)}}c.watchFn(i.$eval(o))}(i,t)})),t.$on("$destroy",f)};function f(e){var t=e.targetScope,n=r.indexOf(t);if(r.splice(n,1),l.splice(n,1),r.length){var i=r[0];angular.forEach(s,(function(e){e.scope===t&&(e.watcher=i.$watch(e.compareWithExp,e.watchFn),e.scope=i)}))}else s={}}}}}]),angular.module("ui.bootstrap.datepicker",["ui.bootstrap.dateparser","ui.bootstrap.isClass"]).value("$datepickerSuppressError",!1).value("$datepickerLiteralWarning",!0).constant("uibDatepickerConfig",{datepickerMode:"day",formatDay:"dd",formatMonth:"MMMM",formatYear:"yyyy",formatDayHeader:"EEE",formatDayTitle:"MMMM yyyy",formatMonthTitle:"yyyy",maxDate:null,maxMode:"year",minDate:null,minMode:"day",ngModelOptions:{},shortcutPropagation:!1,showWeeks:!0,yearColumns:5,yearRows:4}).controller("UibDatepickerController",["$scope","$attrs","$parse","$interpolate","$locale","$log","dateFilter","uibDatepickerConfig","$datepickerLiteralWarning","$datepickerSuppressError","uibDateParser",function(e,t,n,i,a,r,l,s,o,u,c){var f=this,d={$setViewValue:angular.noop},p={},m=[];t.datepickerOptions;e.datepickerOptions||(e.datepickerOptions={}),this.modes=["day","month","year"],["customClass","dateDisabled","datepickerMode","formatDay","formatDayHeader","formatDayTitle","formatMonth","formatMonthTitle","formatYear","maxDate","maxMode","minDate","minMode","showWeeks","shortcutPropagation","startingDay","yearColumns","yearRows"].forEach((function(t){switch(t){case"customClass":case"dateDisabled":e[t]=e.datepickerOptions[t]||angular.noop;break;case"datepickerMode":e.datepickerMode=angular.isDefined(e.datepickerOptions.datepickerMode)?e.datepickerOptions.datepickerMode:s.datepickerMode;break;case"formatDay":case"formatDayHeader":case"formatDayTitle":case"formatMonth":case"formatMonthTitle":case"formatYear":f[t]=angular.isDefined(e.datepickerOptions[t])?i(e.datepickerOptions[t])(e.$parent):s[t];break;case"showWeeks":case"shortcutPropagation":case"yearColumns":case"yearRows":f[t]=angular.isDefined(e.datepickerOptions[t])?e.datepickerOptions[t]:s[t];break;case"startingDay":angular.isDefined(e.datepickerOptions.startingDay)?f.startingDay=e.datepickerOptions.startingDay:angular.isNumber(s.startingDay)?f.startingDay=s.startingDay:f.startingDay=(a.DATETIME_FORMATS.FIRSTDAYOFWEEK+8)%7;break;case"maxDate":case"minDate":e.$watch("datepickerOptions."+t,(function(e){e?angular.isDate(e)?f[t]=c.fromTimezone(new Date(e),p.timezone):(o&&r.warn("Literal date support has been deprecated, please switch to date object usage"),f[t]=new Date(l(e,"medium"))):f[t]=s[t]?c.fromTimezone(new Date(s[t]),p.timezone):null,f.refreshView()}));break;case"maxMode":case"minMode":e.datepickerOptions[t]?e.$watch((function(){return e.datepickerOptions[t]}),(function(n){f[t]=e[t]=angular.isDefined(n)?n:datepickerOptions[t],("minMode"===t&&f.modes.indexOf(e.datepickerOptions.datepickerMode)<f.modes.indexOf(f[t])||"maxMode"===t&&f.modes.indexOf(e.datepickerOptions.datepickerMode)>f.modes.indexOf(f[t]))&&(e.datepickerMode=f[t],e.datepickerOptions.datepickerMode=f[t])})):f[t]=e[t]=s[t]||null}})),e.uniqueId="datepicker-"+e.$id+"-"+Math.floor(1e4*Math.random()),e.disabled=angular.isDefined(t.disabled)||!1,angular.isDefined(t.ngDisabled)&&m.push(e.$parent.$watch(t.ngDisabled,(function(t){e.disabled=t,f.refreshView()}))),e.isActive=function(t){return 0===f.compare(t.date,f.activeDate)&&(e.activeDateId=t.uid,!0)},this.init=function(t){d=t,p=t.$options||s.ngModelOptions,e.datepickerOptions.initDate?(f.activeDate=c.fromTimezone(e.datepickerOptions.initDate,p.timezone)||new Date,e.$watch("datepickerOptions.initDate",(function(e){e&&(d.$isEmpty(d.$modelValue)||d.$invalid)&&(f.activeDate=c.fromTimezone(e,p.timezone),f.refreshView())}))):f.activeDate=new Date;var n=d.$modelValue?new Date(d.$modelValue):new Date;this.activeDate=isNaN(n)?c.fromTimezone(new Date,p.timezone):c.fromTimezone(n,p.timezone),d.$render=function(){f.render()}},this.render=function(){if(d.$viewValue){var e=new Date(d.$viewValue);!isNaN(e)?this.activeDate=c.fromTimezone(e,p.timezone):u||r.error('Datepicker directive: "ng-model" value must be a Date object')}this.refreshView()},this.refreshView=function(){if(this.element){e.selectedDt=null,this._refreshView(),e.activeDt&&(e.activeDateId=e.activeDt.uid);var t=d.$viewValue?new Date(d.$viewValue):null;t=c.fromTimezone(t,p.timezone),d.$setValidity("dateDisabled",!t||this.element&&!this.isDisabled(t))}},this.createDateObject=function(t,n){var i=d.$viewValue?new Date(d.$viewValue):null;i=c.fromTimezone(i,p.timezone);var a=new Date;a=c.fromTimezone(a,p.timezone);var r=this.compare(t,a),l={date:t,label:c.filter(t,n),selected:i&&0===this.compare(t,i),disabled:this.isDisabled(t),past:r<0,current:0===r,future:r>0,customClass:this.customClass(t)||null};return i&&0===this.compare(t,i)&&(e.selectedDt=l),f.activeDate&&0===this.compare(l.date,f.activeDate)&&(e.activeDt=l),l},this.isDisabled=function(t){return e.disabled||this.minDate&&this.compare(t,this.minDate)<0||this.maxDate&&this.compare(t,this.maxDate)>0||e.dateDisabled&&e.dateDisabled({date:t,mode:e.datepickerMode})},this.customClass=function(t){return e.customClass({date:t,mode:e.datepickerMode})},this.split=function(e,t){for(var n=[];e.length>0;)n.push(e.splice(0,t));return n},e.select=function(t){if(e.datepickerMode===f.minMode){var n=d.$viewValue?c.fromTimezone(new Date(d.$viewValue),p.timezone):new Date(0,0,0,0,0,0,0);n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),n=c.toTimezone(n,p.timezone),d.$setViewValue(n),d.$render()}else f.activeDate=t,h(f.modes[f.modes.indexOf(e.datepickerMode)-1]),e.$emit("uib:datepicker.mode");e.$broadcast("uib:datepicker.focus")},e.move=function(e){var t=f.activeDate.getFullYear()+e*(f.step.years||0),n=f.activeDate.getMonth()+e*(f.step.months||0);f.activeDate.setFullYear(t,n,1),f.refreshView()},e.toggleMode=function(t){t=t||1,e.datepickerMode===f.maxMode&&1===t||e.datepickerMode===f.minMode&&-1===t||(h(f.modes[f.modes.indexOf(e.datepickerMode)+t]),e.$emit("uib:datepicker.mode"))},e.keys={13:"enter",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down"};function h(t){e.datepickerMode=t,e.datepickerOptions.datepickerMode=t}e.$on("uib:datepicker.focus",(function(){f.element[0].focus()})),e.keydown=function(t){var n=e.keys[t.which];if(n&&!t.shiftKey&&!t.altKey&&!e.disabled)if(t.preventDefault(),f.shortcutPropagation||t.stopPropagation(),"enter"===n||"space"===n){if(f.isDisabled(f.activeDate))return;e.select(f.activeDate)}else!t.ctrlKey||"up"!==n&&"down"!==n?(f.handleKeyDown(n,t),f.refreshView()):e.toggleMode("up"===n?1:-1)},e.$on("$destroy",(function(){for(;m.length;)m.shift()()}))}]).controller("UibDaypickerController",["$scope","$element","dateFilter",function(e,t,n){var i=[31,28,31,30,31,30,31,31,30,31,30,31];function a(e,t){return 1!==t||e%4!=0||e%100==0&&e%400!=0?i[t]:29}function r(e){var t=new Date(e);t.setDate(t.getDate()+4-(t.getDay()||7));var n=t.getTime();return t.setMonth(0),t.setDate(1),Math.floor(Math.round((n-t)/864e5)/7)+1}this.step={months:1},this.element=t,this.init=function(t){angular.extend(t,this),e.showWeeks=t.showWeeks,t.refreshView()},this.getDates=function(e,t){for(var n,i=new Array(t),a=new Date(e),r=0;r<t;)n=new Date(a),i[r++]=n,a.setDate(a.getDate()+1);return i},this._refreshView=function(){var t=this.activeDate.getFullYear(),i=this.activeDate.getMonth(),a=new Date(this.activeDate);a.setFullYear(t,i,1);var l=this.startingDay-a.getDay(),s=l>0?7-l:-l,o=new Date(a);s>0&&o.setDate(1-s);for(var u=this.getDates(o,42),c=0;c<42;c++)u[c]=angular.extend(this.createDateObject(u[c],this.formatDay),{secondary:u[c].getMonth()!==i,uid:e.uniqueId+"-"+c});e.labels=new Array(7);for(var f=0;f<7;f++)e.labels[f]={abbr:n(u[f].date,this.formatDayHeader),full:n(u[f].date,"EEEE")};if(e.title=n(this.activeDate,this.formatDayTitle),e.rows=this.split(u,7),e.showWeeks){e.weekNumbers=[];for(var d=(11-this.startingDay)%7,p=e.rows.length,m=0;m<p;m++)e.weekNumbers.push(r(e.rows[m][d].date))}},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDate()),i=new Date(t.getFullYear(),t.getMonth(),t.getDate());return n.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),n-i},this.handleKeyDown=function(e,t){var n=this.activeDate.getDate();if("left"===e)n-=1;else if("up"===e)n-=7;else if("right"===e)n+=1;else if("down"===e)n+=7;else if("pageup"===e||"pagedown"===e){var i=this.activeDate.getMonth()+("pageup"===e?-1:1);this.activeDate.setMonth(i,1),n=Math.min(a(this.activeDate.getFullYear(),this.activeDate.getMonth()),n)}else"home"===e?n=1:"end"===e&&(n=a(this.activeDate.getFullYear(),this.activeDate.getMonth()));this.activeDate.setDate(n)}}]).controller("UibMonthpickerController",["$scope","$element","dateFilter",function(e,t,n){this.step={years:1},this.element=t,this.init=function(e){angular.extend(e,this),e.refreshView()},this._refreshView=function(){for(var t,i=new Array(12),a=this.activeDate.getFullYear(),r=0;r<12;r++)(t=new Date(this.activeDate)).setFullYear(a,r,1),i[r]=angular.extend(this.createDateObject(t,this.formatMonth),{uid:e.uniqueId+"-"+r});e.title=n(this.activeDate,this.formatMonthTitle),e.rows=this.split(i,3)},this.compare=function(e,t){var n=new Date(e.getFullYear(),e.getMonth()),i=new Date(t.getFullYear(),t.getMonth());return n.setFullYear(e.getFullYear()),i.setFullYear(t.getFullYear()),n-i},this.handleKeyDown=function(e,t){var n=this.activeDate.getMonth();if("left"===e)n-=1;else if("up"===e)n-=3;else if("right"===e)n+=1;else if("down"===e)n+=3;else if("pageup"===e||"pagedown"===e){var i=this.activeDate.getFullYear()+("pageup"===e?-1:1);this.activeDate.setFullYear(i)}else"home"===e?n=0:"end"===e&&(n=11);this.activeDate.setMonth(n)}}]).controller("UibYearpickerController",["$scope","$element","dateFilter",function(e,t,n){var i,a;function r(e){return parseInt((e-1)/a,10)*a+1}this.element=t,this.yearpickerInit=function(){i=this.yearColumns,a=this.yearRows*i,this.step={years:a}},this._refreshView=function(){for(var t,n=new Array(a),l=0,s=r(this.activeDate.getFullYear());l<a;l++)(t=new Date(this.activeDate)).setFullYear(s+l,0,1),n[l]=angular.extend(this.createDateObject(t,this.formatYear),{uid:e.uniqueId+"-"+l});e.title=[n[0].label,n[a-1].label].join(" - "),e.rows=this.split(n,i),e.columns=i},this.compare=function(e,t){return e.getFullYear()-t.getFullYear()},this.handleKeyDown=function(e,t){var n=this.activeDate.getFullYear();"left"===e?n-=1:"up"===e?n-=i:"right"===e?n+=1:"down"===e?n+=i:"pageup"===e||"pagedown"===e?n+=("pageup"===e?-1:1)*a:"home"===e?n=r(this.activeDate.getFullYear()):"end"===e&&(n=r(this.activeDate.getFullYear())+a-1),this.activeDate.setFullYear(n)}}]).directive("uibDatepicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/datepicker.html"},scope:{datepickerOptions:"=?"},require:["uibDatepicker","^ngModel"],controller:"UibDatepickerController",controllerAs:"datepicker",link:function(e,t,n,i){var a=i[0],r=i[1];a.init(r)}}})).directive("uibDaypicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/day.html"},require:["^uibDatepicker","uibDaypicker"],controller:"UibDaypickerController",link:function(e,t,n,i){var a=i[0];i[1].init(a)}}})).directive("uibMonthpicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/month.html"},require:["^uibDatepicker","uibMonthpicker"],controller:"UibMonthpickerController",link:function(e,t,n,i){var a=i[0];i[1].init(a)}}})).directive("uibYearpicker",(function(){return{replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepicker/year.html"},require:["^uibDatepicker","uibYearpicker"],controller:"UibYearpickerController",link:function(e,t,n,i){var a=i[0];angular.extend(a,i[1]),a.yearpickerInit(),a.refreshView()}}})),angular.module("ui.bootstrap.position",[]).factory("$uibPosition",["$document","$window",function(e,t){var n,i,a={normal:/(auto|scroll)/,hidden:/(auto|scroll|hidden)/},r={auto:/\s?auto?\s?/i,primary:/^(top|bottom|left|right)$/,secondary:/^(top|bottom|left|right|center)$/,vertical:/^(top|bottom)$/},l=/(HTML|BODY)/;return{getRawNode:function(e){return e.nodeName?e:e[0]||e},parseStyle:function(e){return e=parseFloat(e),isFinite(e)?e:0},offsetParent:function(n){var i,a=(n=this.getRawNode(n)).offsetParent||e[0].documentElement;for(;a&&a!==e[0].documentElement&&(i=a,"static"===(t.getComputedStyle(i).position||"static"));)a=a.offsetParent;return a||e[0].documentElement},scrollbarWidth:function(a){if(a){if(angular.isUndefined(i)){var r=e.find("body");r.addClass("uib-position-body-scrollbar-measure"),i=t.innerWidth-r[0].clientWidth,i=isFinite(i)?i:0,r.removeClass("uib-position-body-scrollbar-measure")}return i}if(angular.isUndefined(n)){var l=angular.element('<div class="uib-position-scrollbar-measure"></div>');e.find("body").append(l),n=l[0].offsetWidth-l[0].clientWidth,n=isFinite(n)?n:0,l.remove()}return n},scrollbarPadding:function(e){e=this.getRawNode(e);var n=t.getComputedStyle(e),i=this.parseStyle(n.paddingRight),a=this.parseStyle(n.paddingBottom),r=this.scrollParent(e,!1,!0),s=this.scrollbarWidth(r,l.test(r.tagName));return{scrollbarWidth:s,widthOverflow:r.scrollWidth>r.clientWidth,right:i+s,originalRight:i,heightOverflow:r.scrollHeight>r.clientHeight,bottom:a+s,originalBottom:a}},isScrollable:function(e,n){e=this.getRawNode(e);var i=n?a.hidden:a.normal,r=t.getComputedStyle(e);return i.test(r.overflow+r.overflowY+r.overflowX)},scrollParent:function(n,i,r){n=this.getRawNode(n);var l=i?a.hidden:a.normal,s=e[0].documentElement,o=t.getComputedStyle(n);if(r&&l.test(o.overflow+o.overflowY+o.overflowX))return n;var u="absolute"===o.position,c=n.parentElement||s;if(c===s||"fixed"===o.position)return s;for(;c.parentElement&&c!==s;){var f=t.getComputedStyle(c);if(u&&"static"!==f.position&&(u=!1),!u&&l.test(f.overflow+f.overflowY+f.overflowX))break;c=c.parentElement}return c},position:function(n,i){n=this.getRawNode(n);var a=this.offset(n);if(i){var r=t.getComputedStyle(n);a.top-=this.parseStyle(r.marginTop),a.left-=this.parseStyle(r.marginLeft)}var l=this.offsetParent(n),s={top:0,left:0};return l!==e[0].documentElement&&((s=this.offset(l)).top+=l.clientTop-l.scrollTop,s.left+=l.clientLeft-l.scrollLeft),{width:Math.round(angular.isNumber(a.width)?a.width:n.offsetWidth),height:Math.round(angular.isNumber(a.height)?a.height:n.offsetHeight),top:Math.round(a.top-s.top),left:Math.round(a.left-s.left)}},offset:function(n){var i=(n=this.getRawNode(n)).getBoundingClientRect();return{width:Math.round(angular.isNumber(i.width)?i.width:n.offsetWidth),height:Math.round(angular.isNumber(i.height)?i.height:n.offsetHeight),top:Math.round(i.top+(t.pageYOffset||e[0].documentElement.scrollTop)),left:Math.round(i.left+(t.pageXOffset||e[0].documentElement.scrollLeft))}},viewportOffset:function(n,i,a){a=!1!==a;var r=(n=this.getRawNode(n)).getBoundingClientRect(),l={top:0,left:0,bottom:0,right:0},s=i?e[0].documentElement:this.scrollParent(n),o=s.getBoundingClientRect();if(l.top=o.top+s.clientTop,l.left=o.left+s.clientLeft,s===e[0].documentElement&&(l.top+=t.pageYOffset,l.left+=t.pageXOffset),l.bottom=l.top+s.clientHeight,l.right=l.left+s.clientWidth,a){var u=t.getComputedStyle(s);l.top+=this.parseStyle(u.paddingTop),l.bottom-=this.parseStyle(u.paddingBottom),l.left+=this.parseStyle(u.paddingLeft),l.right-=this.parseStyle(u.paddingRight)}return{top:Math.round(r.top-l.top),bottom:Math.round(l.bottom-r.bottom),left:Math.round(r.left-l.left),right:Math.round(l.right-r.right)}},parsePlacement:function(e){var t=r.auto.test(e);return t&&(e=e.replace(r.auto,"")),(e=e.split("-"))[0]=e[0]||"top",r.primary.test(e[0])||(e[0]="top"),e[1]=e[1]||"center",r.secondary.test(e[1])||(e[1]="center"),e[2]=!!t,e},positionElements:function(e,n,i,a){e=this.getRawNode(e),n=this.getRawNode(n);var l=angular.isDefined(n.offsetWidth)?n.offsetWidth:n.prop("offsetWidth"),s=angular.isDefined(n.offsetHeight)?n.offsetHeight:n.prop("offsetHeight");i=this.parsePlacement(i);var o=a?this.offset(e):this.position(e),u={top:0,left:0,placement:""};if(i[2]){var c=this.viewportOffset(e,a),f=t.getComputedStyle(n),d={width:l+Math.round(Math.abs(this.parseStyle(f.marginLeft)+this.parseStyle(f.marginRight))),height:s+Math.round(Math.abs(this.parseStyle(f.marginTop)+this.parseStyle(f.marginBottom)))};if(i[0]="top"===i[0]&&d.height>c.top&&d.height<=c.bottom?"bottom":"bottom"===i[0]&&d.height>c.bottom&&d.height<=c.top?"top":"left"===i[0]&&d.width>c.left&&d.width<=c.right?"right":"right"===i[0]&&d.width>c.right&&d.width<=c.left?"left":i[0],i[1]="top"===i[1]&&d.height-o.height>c.bottom&&d.height-o.height<=c.top?"bottom":"bottom"===i[1]&&d.height-o.height>c.top&&d.height-o.height<=c.bottom?"top":"left"===i[1]&&d.width-o.width>c.right&&d.width-o.width<=c.left?"right":"right"===i[1]&&d.width-o.width>c.left&&d.width-o.width<=c.right?"left":i[1],"center"===i[1])if(r.vertical.test(i[0])){var p=o.width/2-l/2;c.left+p<0&&d.width-o.width<=c.right?i[1]="left":c.right+p<0&&d.width-o.width<=c.left&&(i[1]="right")}else{var m=o.height/2-d.height/2;c.top+m<0&&d.height-o.height<=c.bottom?i[1]="top":c.bottom+m<0&&d.height-o.height<=c.top&&(i[1]="bottom")}}switch(i[0]){case"top":u.top=o.top-s;break;case"bottom":u.top=o.top+o.height;break;case"left":u.left=o.left-l;break;case"right":u.left=o.left+o.width}switch(i[1]){case"top":u.top=o.top;break;case"bottom":u.top=o.top+o.height-s;break;case"left":u.left=o.left;break;case"right":u.left=o.left+o.width-l;break;case"center":r.vertical.test(i[0])?u.left=o.left+o.width/2-l/2:u.top=o.top+o.height/2-s/2}return u.top=Math.round(u.top),u.left=Math.round(u.left),u.placement="center"===i[1]?i[0]:i[0]+"-"+i[1],u},positionArrow:function(e,n){var i=(e=this.getRawNode(e)).querySelector(".tooltip-inner, .popover-inner");if(i){var a=angular.element(i).hasClass("tooltip-inner"),l=a?e.querySelector(".tooltip-arrow"):e.querySelector(".arrow");if(l){var s={top:"",bottom:"",left:"",right:""};if("center"!==(n=this.parsePlacement(n))[1]){var o="border-"+n[0]+"-width",u=t.getComputedStyle(l)[o],c="border-";r.vertical.test(n[0])?c+=n[0]+"-"+n[1]:c+=n[1]+"-"+n[0],c+="-radius";var f=t.getComputedStyle(a?i:e)[c];switch(n[0]){case"top":s.bottom=a?"0":"-"+u;break;case"bottom":s.top=a?"0":"-"+u;break;case"left":s.right=a?"0":"-"+u;break;case"right":s.left=a?"0":"-"+u}s[n[1]]=f,angular.element(l).css(s)}else angular.element(l).css(s)}}}}}]),angular.module("ui.bootstrap.datepickerPopup",["ui.bootstrap.datepicker","ui.bootstrap.position"]).value("$datepickerPopupLiteralWarning",!0).constant("uibDatepickerPopupConfig",{altInputFormats:[],appendToBody:!1,clearText:"Clear",closeOnDateSelection:!0,closeText:"Done",currentText:"Today",datepickerPopup:"yyyy-MM-dd",datepickerPopupTemplateUrl:"uib/template/datepickerPopup/popup.html",datepickerTemplateUrl:"uib/template/datepicker/datepicker.html",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},onOpenFocus:!0,showButtonBar:!0,placement:"auto bottom-left"}).controller("UibDatepickerPopupController",["$scope","$element","$attrs","$compile","$log","$parse","$window","$document","$rootScope","$uibPosition","dateFilter","uibDateParser","uibDatepickerPopupConfig","$timeout","uibDatepickerConfig","$datepickerPopupLiteralWarning",function(e,t,n,i,a,r,l,s,o,u,c,f,d,p,m,h){var g,v,y,b,_,C,w,$,k,S,M,I,L,A,O=!1,T=[];function x(t){var n=f.parse(t,g,e.date);if(isNaN(n))for(var i=0;i<L.length;i++)if(n=f.parse(t,L[i],e.date),!isNaN(n))return n;return n}function D(e){if(angular.isNumber(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=x(e);if(!isNaN(t))return f.toTimezone(t,A)}return S.$options&&S.$options.allowInvalid?e:void 0}function U(e,t){var i=e||t;return!n.ngRequired&&!i||(angular.isNumber(i)&&(i=new Date(i)),!i||(!(!angular.isDate(i)||isNaN(i))||!!angular.isString(i)&&!isNaN(x(t))))}function q(n){if(e.isOpen||!e.disabled){var i=I[0],a=t[0].contains(n.target),r=void 0!==i.contains&&i.contains(n.target);!e.isOpen||a||r||e.$apply((function(){e.isOpen=!1}))}}function E(n){27===n.which&&e.isOpen?(n.preventDefault(),n.stopPropagation(),e.$apply((function(){e.isOpen=!1})),t[0].focus()):40!==n.which||e.isOpen||(n.preventDefault(),n.stopPropagation(),e.$apply((function(){e.isOpen=!0})))}function N(){if(e.isOpen){var i=angular.element(I[0].querySelector(".uib-datepicker-popup")),a=n.popupPlacement?n.popupPlacement:d.placement,r=u.positionElements(t,i,a,y);i.css({top:r.top+"px",left:r.left+"px"}),i.hasClass("uib-position-measure")&&i.removeClass("uib-position-measure")}}this.init=function(a){if(S=a,M=a.$options,v=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):d.closeOnDateSelection,y=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):d.appendToBody,b=angular.isDefined(n.onOpenFocus)?e.$parent.$eval(n.onOpenFocus):d.onOpenFocus,_=angular.isDefined(n.datepickerPopupTemplateUrl)?n.datepickerPopupTemplateUrl:d.datepickerPopupTemplateUrl,C=angular.isDefined(n.datepickerTemplateUrl)?n.datepickerTemplateUrl:d.datepickerTemplateUrl,L=angular.isDefined(n.altInputFormats)?e.$parent.$eval(n.altInputFormats):d.altInputFormats,e.showButtonBar=angular.isDefined(n.showButtonBar)?e.$parent.$eval(n.showButtonBar):d.showButtonBar,d.html5Types[n.type]?(g=d.html5Types[n.type],O=!0):(g=n.uibDatepickerPopup||d.datepickerPopup,n.$observe("uibDatepickerPopup",(function(e,t){var n=e||d.datepickerPopup;if(n!==g&&(g=n,S.$modelValue=null,!g))throw new Error("uibDatepickerPopup must have a date format specified.")}))),!g)throw new Error("uibDatepickerPopup must have a date format specified.");if(O&&n.uibDatepickerPopup)throw new Error("HTML5 date input types do not support custom formats.");w=angular.element("<div uib-datepicker-popup-wrap><div uib-datepicker></div></div>"),M?(A=M.timezone,e.ngModelOptions=angular.copy(M),e.ngModelOptions.timezone=null,!0===e.ngModelOptions.updateOnDefault&&(e.ngModelOptions.updateOn=e.ngModelOptions.updateOn?e.ngModelOptions.updateOn+" default":"default"),w.attr("ng-model-options","ngModelOptions")):A=null,w.attr({"ng-model":"date","ng-change":"dateSelection(date)","template-url":_}),($=angular.element(w.children()[0])).attr("template-url",C),e.datepickerOptions||(e.datepickerOptions={}),O&&"month"===n.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),$.attr("datepicker-options","datepickerOptions"),O?S.$formatters.push((function(t){return e.date=f.fromTimezone(t,A),t})):(S.$$parserName="date",S.$validators.date=U,S.$parsers.unshift(D),S.$formatters.push((function(t){return S.$isEmpty(t)?(e.date=t,t):(angular.isNumber(t)&&(t=new Date(t)),e.date=f.fromTimezone(t,A),f.filter(e.date,g))}))),S.$viewChangeListeners.push((function(){e.date=x(S.$viewValue)})),t.on("keydown",E),I=i(w)(e),w.remove(),y?s.find("body").append(I):t.after(I),e.$on("$destroy",(function(){for(!0===e.isOpen&&(o.$$phase||e.$apply((function(){e.isOpen=!1}))),I.remove(),t.off("keydown",E),s.off("click",q),k&&k.off("scroll",N),angular.element(l).off("resize",N);T.length;)T.shift()()}))},e.getText=function(t){return e[t+"Text"]||d[t+"Text"]},e.isDisabled=function(t){"today"===t&&(t=f.fromTimezone(new Date,A));var n={};return angular.forEach(["minDate","maxDate"],(function(t){e.datepickerOptions[t]?angular.isDate(e.datepickerOptions[t])?n[t]=f.fromTimezone(new Date(e.datepickerOptions[t]),A):(h&&a.warn("Literal date support has been deprecated, please switch to date object usage"),n[t]=new Date(c(e.datepickerOptions[t],"medium"))):n[t]=null})),e.datepickerOptions&&n.minDate&&e.compare(t,n.minDate)<0||n.maxDate&&e.compare(t,n.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.dateSelection=function(n){angular.isDefined(n)&&(e.date=n);var i=e.date?f.filter(e.date,g):null;t.val(i),S.$setViewValue(i),v&&(e.isOpen=!1,t[0].focus())},e.keydown=function(n){27===n.which&&(n.stopPropagation(),e.isOpen=!1,t[0].focus())},e.select=function(t,n){if(n.stopPropagation(),"today"===t){var i=new Date;angular.isDate(e.date)?(t=new Date(e.date)).setFullYear(i.getFullYear(),i.getMonth(),i.getDate()):t=new Date(i.setHours(0,0,0,0))}e.dateSelection(t)},e.close=function(n){n.stopPropagation(),e.isOpen=!1,t[0].focus()},e.disabled=angular.isDefined(n.disabled)||!1,n.ngDisabled&&T.push(e.$parent.$watch(r(n.ngDisabled),(function(t){e.disabled=t}))),e.$watch("isOpen",(function(i){i?e.disabled?e.isOpen=!1:p((function(){N(),b&&e.$broadcast("uib:datepicker.focus"),s.on("click",q);var i=n.popupPlacement?n.popupPlacement:d.placement;y||u.parsePlacement(i)[2]?(k=k||angular.element(u.scrollParent(t)))&&k.on("scroll",N):k=null,angular.element(l).on("resize",N)}),0,!1):(s.off("click",q),k&&k.off("scroll",N),angular.element(l).off("resize",N))})),e.$on("uib:datepicker.mode",(function(){p(N,0,!1)}))}]).directive("uibDatepickerPopup",(function(){return{require:["ngModel","uibDatepickerPopup"],controller:"UibDatepickerPopupController",scope:{datepickerOptions:"=?",isOpen:"=?",currentText:"@",clearText:"@",closeText:"@"},link:function(e,t,n,i){var a=i[0];i[1].init(a)}}})).directive("uibDatepickerPopupWrap",(function(){return{replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/datepickerPopup/popup.html"}}})),angular.module("ui.bootstrap.debounce",[]).factory("$$debounce",["$timeout",function(e){return function(t,n){var i;return function(){var a=this,r=Array.prototype.slice.call(arguments);i&&e.cancel(i),i=e((function(){t.apply(a,r)}),n)}}}]),angular.module("ui.bootstrap.dropdown",["ui.bootstrap.position"]).constant("uibDropdownConfig",{appendToOpenClass:"uib-dropdown-open",openClass:"open"}).service("uibDropdownService",["$document","$rootScope",function(e,t){var n=null;this.open=function(t,r){n||(e.on("click",i),r.on("keydown",a)),n&&n!==t&&(n.isOpen=!1),n=t},this.close=function(t,r){n===t&&(n=null,e.off("click",i),r.off("keydown",a))};var i=function(e){if(n&&!(e&&"disabled"===n.getAutoClose()||e&&3===e.which)){var i=n.getToggleElement();if(!(e&&i&&i[0].contains(e.target))){var a=n.getDropdownElement();e&&"outsideClick"===n.getAutoClose()&&a&&a[0].contains(e.target)||(n.isOpen=!1,t.$$phase||n.$apply())}}},a=function(e){27===e.which?(e.stopPropagation(),n.focusToggleElement(),i()):n.isKeynavEnabled()&&-1!==[38,40].indexOf(e.which)&&n.isOpen&&(e.preventDefault(),e.stopPropagation(),n.focusDropdownEntry(e.which))}}]).controller("UibDropdownController",["$scope","$element","$attrs","$parse","uibDropdownConfig","uibDropdownService","$animate","$uibPosition","$document","$compile","$templateRequest",function(e,t,n,i,a,r,l,s,o,u,c){var f,d,p=this,m=e.$new(),h=a.appendToOpenClass,g=a.openClass,v=angular.noop,y=n.onToggle?i(n.onToggle):angular.noop,b=!1,_=null,C=!1,w=o.find("body");t.addClass("dropdown"),this.init=function(){if(n.isOpen&&(d=i(n.isOpen),v=d.assign,e.$watch(d,(function(e){m.isOpen=!!e}))),angular.isDefined(n.dropdownAppendTo)){var a=i(n.dropdownAppendTo)(m);a&&(_=angular.element(a))}b=angular.isDefined(n.dropdownAppendToBody),C=angular.isDefined(n.keyboardNav),b&&!_&&(_=w),_&&p.dropdownMenu&&(_.append(p.dropdownMenu),t.on("$destroy",(function(){p.dropdownMenu.remove()})))},this.toggle=function(e){return m.isOpen=arguments.length?!!e:!m.isOpen,angular.isFunction(v)&&v(m,m.isOpen),m.isOpen},this.isOpen=function(){return m.isOpen},m.getToggleElement=function(){return p.toggleElement},m.getAutoClose=function(){return n.autoClose||"always"},m.getElement=function(){return t},m.isKeynavEnabled=function(){return C},m.focusDropdownEntry=function(e){var n=p.dropdownMenu?angular.element(p.dropdownMenu).find("a"):t.find("ul").eq(0).find("a");switch(e){case 40:angular.isNumber(p.selectedOption)?p.selectedOption=p.selectedOption===n.length-1?p.selectedOption:p.selectedOption+1:p.selectedOption=0;break;case 38:angular.isNumber(p.selectedOption)?p.selectedOption=0===p.selectedOption?0:p.selectedOption-1:p.selectedOption=n.length-1}n[p.selectedOption].focus()},m.getDropdownElement=function(){return p.dropdownMenu},m.focusToggleElement=function(){p.toggleElement&&p.toggleElement[0].focus()},m.$watch("isOpen",(function(n,i){if(_&&p.dropdownMenu){var a,o,d,C=s.positionElements(t,p.dropdownMenu,"bottom-left",!0);if(a={top:C.top+"px",display:n?"block":"none"},(o=p.dropdownMenu.hasClass("dropdown-menu-right"))?(a.left="auto",d=s.scrollbarWidth(!0),a.right=window.innerWidth-d-(C.left+t.prop("offsetWidth"))+"px"):(a.left=C.left+"px",a.right="auto"),!b){var w=s.offset(_);a.top=C.top-w.top+"px",o?a.right=window.innerWidth-(C.left-w.left+t.prop("offsetWidth"))+"px":a.left=C.left-w.left+"px"}p.dropdownMenu.css(a)}var $=_||t;if($.hasClass(_?h:g)===!n&&l[n?"addClass":"removeClass"]($,_?h:g).then((function(){angular.isDefined(n)&&n!==i&&y(e,{open:!!n})})),n)p.dropdownMenuTemplateUrl&&c(p.dropdownMenuTemplateUrl).then((function(e){f=m.$new(),u(e.trim())(f,(function(e){var t=e;p.dropdownMenu.replaceWith(t),p.dropdownMenu=t}))})),m.focusToggleElement(),r.open(m,t);else{if(p.dropdownMenuTemplateUrl){f&&f.$destroy();var k=angular.element('<ul class="dropdown-menu"></ul>');p.dropdownMenu.replaceWith(k),p.dropdownMenu=k}r.close(m,t),p.selectedOption=null}angular.isFunction(v)&&v(e,n)}))}]).directive("uibDropdown",(function(){return{controller:"UibDropdownController",link:function(e,t,n,i){i.init()}}})).directive("uibDropdownMenu",(function(){return{restrict:"A",require:"?^uibDropdown",link:function(e,t,n,i){if(i&&!angular.isDefined(n.dropdownNested)){t.addClass("dropdown-menu");var a=n.templateUrl;a&&(i.dropdownMenuTemplateUrl=a),i.dropdownMenu||(i.dropdownMenu=t)}}}})).directive("uibDropdownToggle",(function(){return{require:"?^uibDropdown",link:function(e,t,n,i){if(i){t.addClass("dropdown-toggle"),i.toggleElement=t;var a=function(a){a.preventDefault(),t.hasClass("disabled")||n.disabled||e.$apply((function(){i.toggle()}))};t.bind("click",a),t.attr({"aria-haspopup":!0,"aria-expanded":!1}),e.$watch(i.isOpen,(function(e){t.attr("aria-expanded",!!e)})),e.$on("$destroy",(function(){t.unbind("click",a)}))}}}})),angular.module("ui.bootstrap.stackedMap",[]).factory("$$stackedMap",(function(){return{createNew:function(){var e=[];return{add:function(t,n){e.push({key:t,value:n})},get:function(t){for(var n=0;n<e.length;n++)if(t===e[n].key)return e[n]},keys:function(){for(var t=[],n=0;n<e.length;n++)t.push(e[n].key);return t},top:function(){return e[e.length-1]},remove:function(t){for(var n=-1,i=0;i<e.length;i++)if(t===e[i].key){n=i;break}return e.splice(n,1)[0]},removeTop:function(){return e.splice(e.length-1,1)[0]},length:function(){return e.length}}}}})),angular.module("ui.bootstrap.modal",["ui.bootstrap.stackedMap","ui.bootstrap.position"]).factory("$$multiMap",(function(){return{createNew:function(){var e={};return{entries:function(){return Object.keys(e).map((function(t){return{key:t,value:e[t]}}))},get:function(t){return e[t]},hasKey:function(t){return!!e[t]},keys:function(){return Object.keys(e)},put:function(t,n){e[t]||(e[t]=[]),e[t].push(n)},remove:function(t,n){var i=e[t];if(i){var a=i.indexOf(n);-1!==a&&i.splice(a,1),i.length||delete e[t]}}}}}})).provider("$uibResolve",(function(){var e=this;this.resolver=null,this.setResolver=function(e){this.resolver=e},this.$get=["$injector","$q",function(t,n){var i=e.resolver?t.get(e.resolver):null;return{resolve:function(e,a,r,l){if(i)return i.resolve(e,a,r,l);var s=[];return angular.forEach(e,(function(e){angular.isFunction(e)||angular.isArray(e)?s.push(n.resolve(t.invoke(e))):angular.isString(e)?s.push(n.resolve(t.get(e))):s.push(n.resolve(e))})),n.all(s).then((function(t){var n={},i=0;return angular.forEach(e,(function(e,a){n[a]=t[i++]})),n}))}}}]})).directive("uibModalBackdrop",["$animate","$injector","$uibModalStack",function(e,t,n){return{replace:!0,templateUrl:"uib/template/modal/backdrop.html",compile:function(e,t){return e.addClass(t.backdropClass),i}};function i(t,i,a){a.modalInClass&&(e.addClass(i,a.modalInClass),t.$on(n.NOW_CLOSING_EVENT,(function(n,r){var l=r();t.modalOptions.animation?e.removeClass(i,a.modalInClass).then(l):l()})))}}]).directive("uibModalWindow",["$uibModalStack","$q","$animateCss","$document",function(e,t,n,i){return{scope:{index:"@"},replace:!0,transclude:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/modal/window.html"},link:function(a,r,l){r.addClass(l.windowClass||""),r.addClass(l.windowTopClass||""),a.size=l.size,a.close=function(t){var n=e.getTop();n&&n.value.backdrop&&"static"!==n.value.backdrop&&t.target===t.currentTarget&&(t.preventDefault(),t.stopPropagation(),e.dismiss(n.key,"backdrop click"))},r.on("click",a.close),a.$isRendered=!0;var s=t.defer();l.$observe("modalRender",(function(e){"true"===e&&s.resolve()})),s.promise.then((function(){var s=null;l.modalInClass&&(s=n(r,{addClass:l.modalInClass}).start(),a.$on(e.NOW_CLOSING_EVENT,(function(e,t){var i=t();n(r,{removeClass:l.modalInClass}).start().then(i)}))),t.when(s).then((function(){var t=e.getTop();if(t&&e.modalRendered(t.key),!i[0].activeElement||!r[0].contains(i[0].activeElement)){var n=r[0].querySelector("[autofocus]");n?n.focus():r[0].focus()}}))}))}}}]).directive("uibModalAnimationClass",(function(){return{compile:function(e,t){t.modalAnimation&&e.addClass(t.uibModalAnimationClass)}}})).directive("uibModalTransclude",(function(){return{link:function(e,t,n,i,a){a(e.$parent,(function(e){t.empty(),t.append(e)}))}}})).factory("$uibModalStack",["$animate","$animateCss","$document","$compile","$rootScope","$q","$$multiMap","$$stackedMap","$uibPosition",function(e,t,n,i,a,r,l,s,o){var u,c,f,d=s.createNew(),p=l.createNew(),m={NOW_CLOSING_EVENT:"modal.stack.now-closing"},h=0,g=null;function v(){for(var e=-1,t=d.keys(),n=0;n<t.length;n++)d.get(t[n]).value.backdrop&&(e=n);return e>-1&&e<h&&(e=h),e}function y(e,t){var n=d.get(e).value,i=n.appendTo;d.remove(e),(g=d.top())&&(h=parseInt(g.value.modalDomEl.attr("index"),10)),_(n.modalDomEl,n.modalScope,(function(){var t=n.openedClass||"modal-open";p.remove(t,e);var a=p.hasKey(t);i.toggleClass(t,a),!a&&f&&f.heightOverflow&&f.scrollbarWidth&&(f.originalRight?i.css({paddingRight:f.originalRight+"px"}):i.css({paddingRight:""}),f=null),b(!0)}),n.closedDeferred),function(){if(u&&-1===v()){_(u,c,(function(){null})),u=void 0,c=void 0}}(),t&&t.focus?t.focus():i.focus&&i.focus()}function b(e){var t;d.length()>0&&(t=d.top().value).modalDomEl.toggleClass(t.windowTopClass||"",e)}function _(t,n,i,a){var l,s=null;return n.$broadcast(m.NOW_CLOSING_EVENT,(function(){return l||(l=r.defer(),s=l.promise),function(){l.resolve()}})),r.when(s).then((function r(){if(r.done)return;r.done=!0,e.leave(t).then((function(){t.remove(),a&&a.resolve()})),n.$destroy(),i&&i()}))}function C(e){if(e.isDefaultPrevented())return e;var t=d.top();if(t)switch(e.which){case 27:t.value.keyboard&&(e.preventDefault(),a.$apply((function(){m.dismiss(t.key,"escape key press")})));break;case 9:var n=m.loadFocusElementList(t),i=!1;e.shiftKey?(m.isFocusInFirstItem(e,n)||m.isModalFocused(e,t))&&(i=m.focusLastFocusableElement(n)):m.isFocusInLastItem(e,n)&&(i=m.focusFirstFocusableElement(n)),i&&(e.preventDefault(),e.stopPropagation())}}function w(e,t,n){return!e.value.modalScope.$broadcast("modal.closing",t,n).defaultPrevented}return a.$watch(v,(function(e){c&&(c.index=e)})),n.on("keydown",C),a.$on("$destroy",(function(){n.off("keydown",C)})),m.open=function(t,r){var l=n[0].activeElement,s=r.openedClass||"modal-open";b(!1),g=d.top(),d.add(t,{deferred:r.deferred,renderDeferred:r.renderDeferred,closedDeferred:r.closedDeferred,modalScope:r.scope,backdrop:r.backdrop,keyboard:r.keyboard,openedClass:r.openedClass,windowTopClass:r.windowTopClass,animation:r.animation,appendTo:r.appendTo}),p.put(s,t);var m=r.appendTo,y=v();if(!m.length)throw new Error("appendTo element not found. Make sure that the element passed is in DOM.");y>=0&&!u&&((c=a.$new(!0)).modalOptions=r,c.index=y,(u=angular.element('<div uib-modal-backdrop="modal-backdrop"></div>')).attr("backdrop-class",r.backdropClass),r.animation&&u.attr("modal-animation","true"),i(u)(c),e.enter(u,m),(f=o.scrollbarPadding(m)).heightOverflow&&f.scrollbarWidth&&m.css({paddingRight:f.right+"px"})),h=g?parseInt(g.value.modalDomEl.attr("index"),10)+1:0;var _=angular.element('<div uib-modal-window="modal-window"></div>');_.attr({"template-url":r.windowTemplateUrl,"window-class":r.windowClass,"window-top-class":r.windowTopClass,size:r.size,index:h,animate:"animate"}).html(r.content),r.animation&&_.attr("modal-animation","true"),m.addClass(s),e.enter(i(_)(r.scope),m),d.top().value.modalDomEl=_,d.top().value.modalOpener=l},m.close=function(e,t){var n=d.get(e);return n&&w(n,t,!0)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.resolve(t),y(e,n.value.modalOpener),!0):!n},m.dismiss=function(e,t){var n=d.get(e);return n&&w(n,t,!1)?(n.value.modalScope.$$uibDestructionScheduled=!0,n.value.deferred.reject(t),y(e,n.value.modalOpener),!0):!n},m.dismissAll=function(e){for(var t=this.getTop();t&&this.dismiss(t.key,e);)t=this.getTop()},m.getTop=function(){return d.top()},m.modalRendered=function(e){var t=d.get(e);t&&t.value.renderDeferred.resolve()},m.focusFirstFocusableElement=function(e){return e.length>0&&(e[0].focus(),!0)},m.focusLastFocusableElement=function(e){return e.length>0&&(e[e.length-1].focus(),!0)},m.isModalFocused=function(e,t){if(e&&t){var n=t.value.modalDomEl;if(n&&n.length)return(e.target||e.srcElement)===n[0]}return!1},m.isFocusInFirstItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[0]},m.isFocusInLastItem=function(e,t){return t.length>0&&(e.target||e.srcElement)===t[t.length-1]},m.loadFocusElementList=function(e){if(e){var t=e.value.modalDomEl;if(t&&t.length){var n=t[0].querySelectorAll("a[href], area[href], input:not([disabled]), button:not([disabled]),select:not([disabled]), textarea:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable=true]");return n?Array.prototype.filter.call(n,(function(e){return function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}(e)})):n}}},m}]).provider("$uibModal",(function(){var e={options:{animation:!0,backdrop:!0,keyboard:!0},$get:["$rootScope","$q","$document","$templateRequest","$controller","$uibResolve","$uibModalStack",function(t,n,i,a,r,l,s){var o={};var u=null;return o.getPromiseChain=function(){return u},o.open=function(o){var c=n.defer(),f=n.defer(),d=n.defer(),p=n.defer(),m={result:c.promise,opened:f.promise,closed:d.promise,rendered:p.promise,close:function(e){return s.close(m,e)},dismiss:function(e){return s.dismiss(m,e)}};if((o=angular.extend({},e.options,o)).resolve=o.resolve||{},o.appendTo=o.appendTo||i.find("body").eq(0),!o.template&&!o.templateUrl)throw new Error("One of template or templateUrl options is required.");var h,g,v=n.all([(h=o,h.template?n.when(h.template):a(angular.isFunction(h.templateUrl)?h.templateUrl():h.templateUrl)),l.resolve(o.resolve,{},null,null)]);function y(){return v}return g=u=n.all([u]).then(y,y).then((function(e){var n=o.scope||t,i=n.$new();i.$close=m.close,i.$dismiss=m.dismiss,i.$on("$destroy",(function(){i.$$uibDestructionScheduled||i.$dismiss("$uibUnscheduledDestruction")}));var a,l,u={};o.controller&&(u.$scope=i,u.$scope.$resolve={},u.$uibModalInstance=m,angular.forEach(e[1],(function(e,t){u[t]=e,u.$scope.$resolve[t]=e})),l=r(o.controller,u,!0,o.controllerAs),o.controllerAs&&o.bindToController&&((a=l.instance).$close=i.$close,a.$dismiss=i.$dismiss,angular.extend(a,{$resolve:u.$scope.$resolve},n)),a=l(),angular.isFunction(a.$onInit)&&a.$onInit()),s.open(m,{scope:i,deferred:c,renderDeferred:p,closedDeferred:d,content:e[0],animation:o.animation,backdrop:o.backdrop,keyboard:o.keyboard,backdropClass:o.backdropClass,windowTopClass:o.windowTopClass,windowClass:o.windowClass,windowTemplateUrl:o.windowTemplateUrl,size:o.size,openedClass:o.openedClass,appendTo:o.appendTo}),f.resolve(!0)}),(function(e){f.reject(e),c.reject(e)})).finally((function(){u===g&&(u=null)})),m},o}]};return e})),angular.module("ui.bootstrap.paging",[]).factory("uibPaging",["$parse",function(e){return{create:function(t,n,i){t.setNumPages=i.numPages?e(i.numPages).assign:angular.noop,t.ngModelCtrl={$setViewValue:angular.noop},t._watchers=[],t.init=function(e,a){t.ngModelCtrl=e,t.config=a,e.$render=function(){t.render()},i.itemsPerPage?t._watchers.push(n.$parent.$watch(i.itemsPerPage,(function(e){t.itemsPerPage=parseInt(e,10),n.totalPages=t.calculateTotalPages(),t.updatePage()}))):t.itemsPerPage=a.itemsPerPage,n.$watch("totalItems",(function(e,i){(angular.isDefined(e)||e!==i)&&(n.totalPages=t.calculateTotalPages(),t.updatePage())}))},t.calculateTotalPages=function(){var e=t.itemsPerPage<1?1:Math.ceil(n.totalItems/t.itemsPerPage);return Math.max(e||0,1)},t.render=function(){n.page=parseInt(t.ngModelCtrl.$viewValue,10)||1},n.selectPage=function(e,i){i&&i.preventDefault(),(!n.ngDisabled||!i)&&n.page!==e&&e>0&&e<=n.totalPages&&(i&&i.target&&i.target.blur(),t.ngModelCtrl.$setViewValue(e),t.ngModelCtrl.$render())},n.getText=function(e){return n[e+"Text"]||t.config[e+"Text"]},n.noPrevious=function(){return 1===n.page},n.noNext=function(){return n.page===n.totalPages},t.updatePage=function(){t.setNumPages(n.$parent,n.totalPages),n.page>n.totalPages?n.selectPage(n.totalPages):t.ngModelCtrl.$render()},n.$on("$destroy",(function(){for(;t._watchers.length;)t._watchers.shift()()}))}}}]),angular.module("ui.bootstrap.pager",["ui.bootstrap.paging"]).controller("UibPagerController",["$scope","$attrs","uibPaging","uibPagerConfig",function(e,t,n,i){e.align=angular.isDefined(t.align)?e.$parent.$eval(t.align):i.align,n.create(this,e,t)}]).constant("uibPagerConfig",{itemsPerPage:10,previousText:"« Previous",nextText:"Next »",align:!0}).directive("uibPager",["uibPagerConfig",function(e){return{scope:{totalItems:"=",previousText:"@",nextText:"@",ngDisabled:"="},require:["uibPager","?ngModel"],controller:"UibPagerController",controllerAs:"pager",templateUrl:function(e,t){return t.templateUrl||"uib/template/pager/pager.html"},replace:!0,link:function(t,n,i,a){var r=a[0],l=a[1];l&&r.init(l,e)}}}]),angular.module("ui.bootstrap.pagination",["ui.bootstrap.paging"]).controller("UibPaginationController",["$scope","$attrs","$parse","uibPaging","uibPaginationConfig",function(e,t,n,i,a){var r=this,l=angular.isDefined(t.maxSize)?e.$parent.$eval(t.maxSize):a.maxSize,s=angular.isDefined(t.rotate)?e.$parent.$eval(t.rotate):a.rotate,o=angular.isDefined(t.forceEllipses)?e.$parent.$eval(t.forceEllipses):a.forceEllipses,u=angular.isDefined(t.boundaryLinkNumbers)?e.$parent.$eval(t.boundaryLinkNumbers):a.boundaryLinkNumbers,c=angular.isDefined(t.pageLabel)?function(n){return e.$parent.$eval(t.pageLabel,{$page:n})}:angular.identity;function f(e,t,n){return{number:e,text:t,active:n}}e.boundaryLinks=angular.isDefined(t.boundaryLinks)?e.$parent.$eval(t.boundaryLinks):a.boundaryLinks,e.directionLinks=angular.isDefined(t.directionLinks)?e.$parent.$eval(t.directionLinks):a.directionLinks,i.create(this,e,t),t.maxSize&&r._watchers.push(e.$parent.$watch(n(t.maxSize),(function(e){l=parseInt(e,10),r.render()})));var d=this.render;this.render=function(){d(),e.page>0&&e.page<=e.totalPages&&(e.pages=function(e,t){var n=[],i=1,a=t,r=angular.isDefined(l)&&l<t;r&&(s?(a=(i=Math.max(e-Math.floor(l/2),1))+l-1)>t&&(i=(a=t)-l+1):(i=(Math.ceil(e/l)-1)*l+1,a=Math.min(i+l-1,t)));for(var d=i;d<=a;d++){var p=f(d,c(d),d===e);n.push(p)}if(r&&l>0&&(!s||o||u)){if(i>1){if(!u||i>3){var m=f(i-1,"...",!1);n.unshift(m)}if(u){if(3===i){var h=f(2,"2",!1);n.unshift(h)}var g=f(1,"1",!1);n.unshift(g)}}if(a<t){if(!u||a<t-2){var v=f(a+1,"...",!1);n.push(v)}if(u){if(a===t-2){var y=f(t-1,t-1,!1);n.push(y)}var b=f(t,t,!1);n.push(b)}}}return n}(e.page,e.totalPages))}}]).constant("uibPaginationConfig",{itemsPerPage:10,boundaryLinks:!1,boundaryLinkNumbers:!1,directionLinks:!0,firstText:"First",previousText:"Previous",nextText:"Next",lastText:"Last",rotate:!0,forceEllipses:!1}).directive("uibPagination",["$parse","uibPaginationConfig",function(e,t){return{scope:{totalItems:"=",firstText:"@",previousText:"@",nextText:"@",lastText:"@",ngDisabled:"="},require:["uibPagination","?ngModel"],controller:"UibPaginationController",controllerAs:"pagination",templateUrl:function(e,t){return t.templateUrl||"uib/template/pagination/pagination.html"},replace:!0,link:function(e,n,i,a){var r=a[0],l=a[1];l&&r.init(l,t)}}}]),angular.module("ui.bootstrap.tooltip",["ui.bootstrap.position","ui.bootstrap.stackedMap"]).provider("$uibTooltip",(function(){var e={placement:"top",placementClassPrefix:"",animation:!0,popupDelay:0,popupCloseDelay:0,useContentExp:!1},t={mouseenter:"mouseleave",click:"click",outsideClick:"outsideClick",focus:"blur",none:""},n={};this.options=function(e){angular.extend(n,e)},this.setTriggers=function(e){angular.extend(t,e)},this.$get=["$window","$compile","$timeout","$document","$uibPosition","$interpolate","$rootScope","$parse","$$stackedMap",function(i,a,r,l,s,o,u,c,f){var d=f.createNew();function p(e){if(27===e.which){var t=d.top();t&&(t.value.close(),d.removeTop(),t=null)}}return l.on("keypress",p),u.$on("$destroy",(function(){l.off("keypress",p)})),function(i,u,f,p){function m(e){var n=(e||p.trigger||f).split(" "),i=n.map((function(e){return t[e]||e}));return{show:n,hide:i}}p=angular.extend({},e,n,p);var h=i.replace(/[A-Z]/g,(function(e,t){return(t?"-":"")+e.toLowerCase()})),g=o.startSymbol(),v=o.endSymbol(),y="<div "+h+'-popup uib-title="'+g+"title"+v+'" '+(p.useContentExp?'content-exp="contentExp()" ':'content="'+g+"content"+v+'" ')+'placement="'+g+"placement"+v+'" popup-class="'+g+"popupClass"+v+'" animation="animation" is-open="isOpen" origin-scope="origScope" class="uib-position-measure"></div>';return{compile:function(e,t){var n=a(y);return function(e,t,a,o){var f,h,g,v,y,b,_,C=!!angular.isDefined(p.appendToBody)&&p.appendToBody,w=m(void 0),$=angular.isDefined(a[u+"Enable"]),k=e.$new(!0),S=!1,M=!!angular.isDefined(a[u+"IsOpen"])&&c(a[u+"IsOpen"]),I=!!p.useContentExp&&c(a[i]),L=[],A=function(){f&&f.html()&&(b||(b=r((function(){var e=s.positionElements(t,f,k.placement,C);f.css({top:e.top+"px",left:e.left+"px"}),f.hasClass(e.placement.split("-")[0])||(f.removeClass(_.split("-")[0]),f.addClass(e.placement.split("-")[0])),f.hasClass(p.placementClassPrefix+e.placement)||(f.removeClass(p.placementClassPrefix+_),f.addClass(p.placementClassPrefix+e.placement)),f.hasClass("uib-position-measure")?(s.positionArrow(f,e.placement),f.removeClass("uib-position-measure")):_!==e.placement&&s.positionArrow(f,e.placement),_=e.placement,b=null}),0,!1)))};function O(){k.isOpen?x():T()}function T(){$&&!e.$eval(a[u+"Enable"])||(E(),function(){k.title=a[u+"Title"],k.content=I?I(e):a[i];k.popupClass=a[u+"Class"],k.placement=angular.isDefined(a[u+"Placement"])?a[u+"Placement"]:p.placement;var t=s.parsePlacement(k.placement);_=t[1]?t[0]+"-"+t[1]:t[0];var n=parseInt(a[u+"PopupDelay"],10),r=parseInt(a[u+"PopupCloseDelay"],10);k.popupDelay=isNaN(n)?p.popupDelay:n,k.popupCloseDelay=isNaN(r)?p.popupCloseDelay:r}(),k.popupDelay?v||(v=r(D,k.popupDelay,!1)):D())}function x(){U(),k.popupCloseDelay?y||(y=r(q,k.popupCloseDelay,!1)):q()}function D(){if(U(),E(),!k.content)return angular.noop;!function(){if(f)return;h=k.$new(),f=n(h,(function(e){C?l.find("body").append(e):t.after(e)})),function(){L.length=0,I?(L.push(e.$watch(I,(function(e){k.content=e,!e&&k.isOpen&&q()}))),L.push(h.$watch((function(){S||(S=!0,h.$$postDigest((function(){S=!1,k&&k.isOpen&&A()})))})))):L.push(a.$observe(i,(function(e){k.content=e,!e&&k.isOpen?q():A()})));L.push(a.$observe(u+"Title",(function(e){k.title=e,k.isOpen&&A()}))),L.push(a.$observe(u+"Placement",(function(e){k.placement=e||p.placement,k.isOpen&&A()})))}()}(),k.$evalAsync((function(){k.isOpen=!0,R(!0),A()}))}function U(){v&&(r.cancel(v),v=null),b&&(r.cancel(b),b=null)}function q(){k&&k.$evalAsync((function(){k&&(k.isOpen=!1,R(!1),k.animation?g||(g=r(N,150,!1)):N())}))}function E(){y&&(r.cancel(y),y=null),g&&(r.cancel(g),g=null)}function N(){U(),E(),L.length&&(angular.forEach(L,(function(e){e()})),L.length=0),f&&(f.remove(),f=null),h&&(h.$destroy(),h=null)}function R(t){M&&angular.isFunction(M.assign)&&M.assign(e,t)}function P(e){k&&k.isOpen&&f&&(t[0].contains(e.target)||f[0].contains(e.target)||x())}k.origScope=e,k.isOpen=!1,d.add(k,{close:q}),k.contentExp=function(){return k.content},a.$observe("disabled",(function(e){e&&U(),e&&k.isOpen&&q()})),M&&e.$watch(M,(function(e){k&&!e===k.isOpen&&O()}));var F,H=function(){w.show.forEach((function(e){"outsideClick"===e?t.off("click",O):(t.off(e,T),t.off(e,O))})),w.hide.forEach((function(e){"outsideClick"===e?l.off("click",P):t.off(e,x)}))};F=a[u+"Trigger"],H(),"none"!==(w=m(F)).show&&w.show.forEach((function(e,n){"outsideClick"===e?(t.on("click",O),l.on("click",P)):e===w.hide[n]?t.on(e,O):e&&(t.on(e,T),t.on(w.hide[n],x)),t.on("keypress",(function(e){27===e.which&&x()}))}));var V,B=e.$eval(a[u+"Animation"]);k.animation=angular.isDefined(B)?!!B:p.animation;var j=u+"AppendToBody";V=j in a&&void 0===a[j]||e.$eval(a[j]),C=angular.isDefined(V)?V:C,e.$on("$destroy",(function(){H(),N(),d.remove(k),k=null}))}}}}}]})).directive("uibTooltipTemplateTransclude",["$animate","$sce","$compile","$templateRequest",function(e,t,n,i){return{link:function(a,r,l){var s,o,u,c=a.$eval(l.tooltipTemplateTranscludeScope),f=0,d=function(){o&&(o.remove(),o=null),s&&(s.$destroy(),s=null),u&&(e.leave(u).then((function(){o=null})),o=u,u=null)};a.$watch(t.parseAsResourceUrl(l.uibTooltipTemplateTransclude),(function(t){var l=++f;t?(i(t,!0).then((function(i){if(l===f){var a=c.$new(),o=n(i)(a,(function(t){d(),e.enter(t,r)}));u=o,(s=a).$emit("$includeContentLoaded",t)}}),(function(){l===f&&(d(),a.$emit("$includeContentError",t))})),a.$emit("$includeContentRequested",t)):d()})),a.$on("$destroy",d)}}}]).directive("uibTooltipClasses",["$uibPosition",function(e){return{restrict:"A",link:function(t,n,i){if(t.placement){var a=e.parsePlacement(t.placement);n.addClass(a[0])}t.popupClass&&n.addClass(t.popupClass),t.animation()&&n.addClass(i.tooltipAnimationClass)}}}]).directive("uibTooltipPopup",(function(){return{replace:!0,scope:{content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-popup.html"}})).directive("uibTooltip",["$uibTooltip",function(e){return e("uibTooltip","tooltip","mouseenter")}]).directive("uibTooltipTemplatePopup",(function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/tooltip/tooltip-template-popup.html"}})).directive("uibTooltipTemplate",["$uibTooltip",function(e){return e("uibTooltipTemplate","tooltip","mouseenter",{useContentExp:!0})}]).directive("uibTooltipHtmlPopup",(function(){return{replace:!0,scope:{contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/tooltip/tooltip-html-popup.html"}})).directive("uibTooltipHtml",["$uibTooltip",function(e){return e("uibTooltipHtml","tooltip","mouseenter",{useContentExp:!0})}]),angular.module("ui.bootstrap.popover",["ui.bootstrap.tooltip"]).directive("uibPopoverTemplatePopup",(function(){return{replace:!0,scope:{uibTitle:"@",contentExp:"&",placement:"@",popupClass:"@",animation:"&",isOpen:"&",originScope:"&"},templateUrl:"uib/template/popover/popover-template.html"}})).directive("uibPopoverTemplate",["$uibTooltip",function(e){return e("uibPopoverTemplate","popover","click",{useContentExp:!0})}]).directive("uibPopoverHtmlPopup",(function(){return{replace:!0,scope:{contentExp:"&",uibTitle:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover-html.html"}})).directive("uibPopoverHtml",["$uibTooltip",function(e){return e("uibPopoverHtml","popover","click",{useContentExp:!0})}]).directive("uibPopoverPopup",(function(){return{replace:!0,scope:{uibTitle:"@",content:"@",placement:"@",popupClass:"@",animation:"&",isOpen:"&"},templateUrl:"uib/template/popover/popover.html"}})).directive("uibPopover",["$uibTooltip",function(e){return e("uibPopover","popover","click")}]),angular.module("ui.bootstrap.progressbar",[]).constant("uibProgressConfig",{animate:!0,max:100}).controller("UibProgressController",["$scope","$attrs","uibProgressConfig",function(e,t,n){var i=this,a=angular.isDefined(t.animate)?e.$parent.$eval(t.animate):n.animate;function r(){return angular.isDefined(e.maxParam)?e.maxParam:n.max}this.bars=[],e.max=r(),this.addBar=function(e,t,n){a||t.css({transition:"none"}),this.bars.push(e),e.max=r(),e.title=n&&angular.isDefined(n.title)?n.title:"progressbar",e.$watch("value",(function(t){e.recalculatePercentage()})),e.recalculatePercentage=function(){var t=i.bars.reduce((function(e,t){return t.percent=+(100*t.value/t.max).toFixed(2),e+t.percent}),0);t>100&&(e.percent-=t-100)},e.$on("$destroy",(function(){t=null,i.removeBar(e)}))},this.removeBar=function(e){this.bars.splice(this.bars.indexOf(e),1),this.bars.forEach((function(e){e.recalculatePercentage()}))},e.$watch("maxParam",(function(e){i.bars.forEach((function(e){e.max=r(),e.recalculatePercentage()}))}))}]).directive("uibProgress",(function(){return{replace:!0,transclude:!0,controller:"UibProgressController",require:"uibProgress",scope:{maxParam:"=?max"},templateUrl:"uib/template/progressbar/progress.html"}})).directive("uibBar",(function(){return{replace:!0,transclude:!0,require:"^uibProgress",scope:{value:"=",type:"@"},templateUrl:"uib/template/progressbar/bar.html",link:function(e,t,n,i){i.addBar(e,t,n)}}})).directive("uibProgressbar",(function(){return{replace:!0,transclude:!0,controller:"UibProgressController",scope:{value:"=",maxParam:"=?max",type:"@"},templateUrl:"uib/template/progressbar/progressbar.html",link:function(e,t,n,i){i.addBar(e,angular.element(t.children()[0]),{title:n.title})}}})),angular.module("ui.bootstrap.rating",[]).constant("uibRatingConfig",{max:5,stateOn:null,stateOff:null,enableReset:!0,titles:["one","two","three","four","five"]}).controller("UibRatingController",["$scope","$attrs","uibRatingConfig",function(e,t,n){var i={$setViewValue:angular.noop},a=this;this.init=function(a){(i=a).$render=this.render,i.$formatters.push((function(e){return angular.isNumber(e)&&e<<0!==e&&(e=Math.round(e)),e})),this.stateOn=angular.isDefined(t.stateOn)?e.$parent.$eval(t.stateOn):n.stateOn,this.stateOff=angular.isDefined(t.stateOff)?e.$parent.$eval(t.stateOff):n.stateOff,this.enableReset=angular.isDefined(t.enableReset)?e.$parent.$eval(t.enableReset):n.enableReset;var r=angular.isDefined(t.titles)?e.$parent.$eval(t.titles):n.titles;this.titles=angular.isArray(r)&&r.length>0?r:n.titles;var l=angular.isDefined(t.ratingStates)?e.$parent.$eval(t.ratingStates):new Array(angular.isDefined(t.max)?e.$parent.$eval(t.max):n.max);e.range=this.buildTemplateObjects(l)},this.buildTemplateObjects=function(e){for(var t=0,n=e.length;t<n;t++)e[t]=angular.extend({index:t},{stateOn:this.stateOn,stateOff:this.stateOff,title:this.getTitle(t)},e[t]);return e},this.getTitle=function(e){return e>=this.titles.length?e+1:this.titles[e]},e.rate=function(t){if(!e.readonly&&t>=0&&t<=e.range.length){var n=a.enableReset&&i.$viewValue===t?0:t;i.$setViewValue(n),i.$render()}},e.enter=function(t){e.readonly||(e.value=t),e.onHover({value:t})},e.reset=function(){e.value=i.$viewValue,e.onLeave()},e.onKeydown=function(t){/(37|38|39|40)/.test(t.which)&&(t.preventDefault(),t.stopPropagation(),e.rate(e.value+(38===t.which||39===t.which?1:-1)))},this.render=function(){e.value=i.$viewValue,e.title=a.getTitle(e.value-1)}}]).directive("uibRating",(function(){return{require:["uibRating","ngModel"],scope:{readonly:"=?readOnly",onHover:"&",onLeave:"&"},controller:"UibRatingController",templateUrl:"uib/template/rating/rating.html",replace:!0,link:function(e,t,n,i){var a=i[0],r=i[1];a.init(r)}}})),angular.module("ui.bootstrap.tabs",[]).controller("UibTabsetController",["$scope",function(e){var t,n,i=this;function a(e){for(var t=0;t<i.tabs.length;t++)if(i.tabs[t].index===e)return t}i.tabs=[],i.select=function(e,r){if(!n){var l=a(t),s=i.tabs[l];if(s){if(s.tab.onDeselect({$event:r,$selectedIndex:e}),r&&r.isDefaultPrevented())return;s.tab.active=!1}var o=i.tabs[e];o?(o.tab.onSelect({$event:r}),o.tab.active=!0,i.active=o.index,t=o.index):!o&&angular.isDefined(t)&&(i.active=null,t=null)}},i.addTab=function(e){if(i.tabs.push({tab:e,index:e.index}),i.tabs.sort((function(e,t){return e.index>t.index?1:e.index<t.index?-1:0})),e.index===i.active||!angular.isDefined(i.active)&&1===i.tabs.length){var t=a(e.index);i.select(t)}},i.removeTab=function(e){for(var t,n=0;n<i.tabs.length;n++)if(i.tabs[n].tab===e){t=n;break}if(i.tabs[t].index===i.active){var a=t===i.tabs.length-1?t-1:t+1%i.tabs.length;i.select(a)}i.tabs.splice(t,1)},e.$watch("tabset.active",(function(e){angular.isDefined(e)&&e!==t&&i.select(a(e))})),e.$on("$destroy",(function(){n=!0}))}]).directive("uibTabset",(function(){return{transclude:!0,replace:!0,scope:{},bindToController:{active:"=?",type:"@"},controller:"UibTabsetController",controllerAs:"tabset",templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tabset.html"},link:function(e,t,n){e.vertical=!!angular.isDefined(n.vertical)&&e.$parent.$eval(n.vertical),e.justified=!!angular.isDefined(n.justified)&&e.$parent.$eval(n.justified)}}})).directive("uibTab",["$parse",function(e){return{require:"^uibTabset",replace:!0,templateUrl:function(e,t){return t.templateUrl||"uib/template/tabs/tab.html"},transclude:!0,scope:{heading:"@",index:"=?",classes:"@?",onSelect:"&select",onDeselect:"&deselect"},controller:function(){},controllerAs:"tab",link:function(t,n,i,a,r){t.disabled=!1,i.disable&&t.$parent.$watch(e(i.disable),(function(e){t.disabled=!!e})),angular.isUndefined(i.index)&&(a.tabs&&a.tabs.length?t.index=Math.max.apply(null,a.tabs.map((function(e){return e.index})))+1:t.index=0),angular.isUndefined(i.classes)&&(t.classes=""),t.select=function(e){if(!t.disabled){for(var n,i=0;i<a.tabs.length;i++)if(a.tabs[i].tab===t){n=i;break}a.select(n,e)}},a.addTab(t),t.$on("$destroy",(function(){a.removeTab(t)})),t.$transcludeFn=r}}}]).directive("uibTabHeadingTransclude",(function(){return{restrict:"A",require:"^uibTab",link:function(e,t){e.$watch("headingElement",(function(e){e&&(t.html(""),t.append(e))}))}}})).directive("uibTabContentTransclude",(function(){return{restrict:"A",require:"^uibTabset",link:function(e,t,n){var i=e.$eval(n.uibTabContentTransclude).tab;i.$transcludeFn(i.$parent,(function(e){angular.forEach(e,(function(e){!function(e){return e.tagName&&(e.hasAttribute("uib-tab-heading")||e.hasAttribute("data-uib-tab-heading")||e.hasAttribute("x-uib-tab-heading")||"uib-tab-heading"===e.tagName.toLowerCase()||"data-uib-tab-heading"===e.tagName.toLowerCase()||"x-uib-tab-heading"===e.tagName.toLowerCase()||"uib:tab-heading"===e.tagName.toLowerCase())}(e)?t.append(e):i.headingElement=e}))}))}}})),angular.module("ui.bootstrap.timepicker",[]).constant("uibTimepickerConfig",{hourStep:1,minuteStep:1,secondStep:1,showMeridian:!0,showSeconds:!1,meridians:null,readonlyInput:!1,mousewheel:!0,arrowkeys:!0,showSpinners:!0,templateUrl:"uib/template/timepicker/timepicker.html"}).controller("UibTimepickerController",["$scope","$element","$attrs","$parse","$log","$locale","uibTimepickerConfig",function(e,t,n,i,a,r,l){var s=new Date,o=[],u={$setViewValue:angular.noop},c=angular.isDefined(n.meridians)?e.$parent.$eval(n.meridians):l.meridians||r.DATETIME_FORMATS.AMPMS,f=!angular.isDefined(n.padHours)||e.$parent.$eval(n.padHours);e.tabindex=angular.isDefined(n.tabindex)?n.tabindex:0,t.removeAttr("tabindex"),this.init=function(t,i){(u=t).$render=this.render,u.$formatters.unshift((function(e){return e?new Date(e):null}));var a=i.eq(0),r=i.eq(1),s=i.eq(2);(angular.isDefined(n.mousewheel)?e.$parent.$eval(n.mousewheel):l.mousewheel)&&this.setupMousewheelEvents(a,r,s),(angular.isDefined(n.arrowkeys)?e.$parent.$eval(n.arrowkeys):l.arrowkeys)&&this.setupArrowkeyEvents(a,r,s),e.readonlyInput=angular.isDefined(n.readonlyInput)?e.$parent.$eval(n.readonlyInput):l.readonlyInput,this.setupInputEvents(a,r,s)};var d=l.hourStep;n.hourStep&&o.push(e.$parent.$watch(i(n.hourStep),(function(e){d=+e})));var p,m,h=l.minuteStep;n.minuteStep&&o.push(e.$parent.$watch(i(n.minuteStep),(function(e){h=+e}))),o.push(e.$parent.$watch(i(n.min),(function(e){var t=new Date(e);p=isNaN(t)?void 0:t}))),o.push(e.$parent.$watch(i(n.max),(function(e){var t=new Date(e);m=isNaN(t)?void 0:t})));var g=!1;n.ngDisabled&&o.push(e.$parent.$watch(i(n.ngDisabled),(function(e){g=e}))),e.noIncrementHours=function(){var e=S(s,60*d);return g||e>m||e<s&&e<p},e.noDecrementHours=function(){var e=S(s,60*-d);return g||e<p||e>s&&e>m},e.noIncrementMinutes=function(){var e=S(s,h);return g||e>m||e<s&&e<p},e.noDecrementMinutes=function(){var e=S(s,-h);return g||e<p||e>s&&e>m},e.noIncrementSeconds=function(){var e=M(s,v);return g||e>m||e<s&&e<p},e.noDecrementSeconds=function(){var e=M(s,-v);return g||e<p||e>s&&e>m},e.noToggleMeridian=function(){return s.getHours()<12?g||S(s,720)>m:g||S(s,-720)<p};var v=l.secondStep;function y(){var t=+e.hours;if((e.showMeridian?t>0&&t<13:t>=0&&t<24)&&""!==e.hours)return e.showMeridian&&(12===t&&(t=0),e.meridian===c[1]&&(t+=12)),t}function b(){var t=+e.minutes;if(t>=0&&t<60&&""!==e.minutes)return t}function _(e,t){return null===e?"":angular.isDefined(e)&&e.toString().length<2&&!t?"0"+e:e.toString()}function C(e){w(),u.$setViewValue(new Date(s)),$(e)}function w(){u.$setValidity("time",!0),e.invalidHours=!1,e.invalidMinutes=!1,e.invalidSeconds=!1}function $(t){if(u.$modelValue){var n=s.getHours(),i=s.getMinutes(),a=s.getSeconds();e.showMeridian&&(n=0===n||12===n?12:n%12),e.hours="h"===t?n:_(n,!f),"m"!==t&&(e.minutes=_(i)),e.meridian=s.getHours()<12?c[0]:c[1],"s"!==t&&(e.seconds=_(a)),e.meridian=s.getHours()<12?c[0]:c[1]}else e.hours=null,e.minutes=null,e.seconds=null,e.meridian=c[0]}function k(e){s=M(s,e),C()}function S(e,t){return M(e,60*t)}function M(e,t){var n=new Date(e.getTime()+1e3*t),i=new Date(e);return i.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),i}function I(){return(null===e.hours||""===e.hours)&&(null===e.minutes||""===e.minutes)&&(!e.showSeconds||e.showSeconds&&(null===e.seconds||""===e.seconds))}n.secondStep&&o.push(e.$parent.$watch(i(n.secondStep),(function(e){v=+e}))),e.showSeconds=l.showSeconds,n.showSeconds&&o.push(e.$parent.$watch(i(n.showSeconds),(function(t){e.showSeconds=!!t}))),e.showMeridian=l.showMeridian,n.showMeridian&&o.push(e.$parent.$watch(i(n.showMeridian),(function(t){if(e.showMeridian=!!t,u.$error.time){var n=y(),i=b();angular.isDefined(n)&&angular.isDefined(i)&&(s.setHours(n),C())}else $()}))),this.setupMousewheelEvents=function(t,n,i){var a=function(e){e.originalEvent&&(e=e.originalEvent);var t=e.wheelDelta?e.wheelDelta:-e.deltaY;return e.detail||t>0};t.bind("mousewheel wheel",(function(t){g||e.$apply(a(t)?e.incrementHours():e.decrementHours()),t.preventDefault()})),n.bind("mousewheel wheel",(function(t){g||e.$apply(a(t)?e.incrementMinutes():e.decrementMinutes()),t.preventDefault()})),i.bind("mousewheel wheel",(function(t){g||e.$apply(a(t)?e.incrementSeconds():e.decrementSeconds()),t.preventDefault()}))},this.setupArrowkeyEvents=function(t,n,i){t.bind("keydown",(function(t){g||(38===t.which?(t.preventDefault(),e.incrementHours(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementHours(),e.$apply()))})),n.bind("keydown",(function(t){g||(38===t.which?(t.preventDefault(),e.incrementMinutes(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementMinutes(),e.$apply()))})),i.bind("keydown",(function(t){g||(38===t.which?(t.preventDefault(),e.incrementSeconds(),e.$apply()):40===t.which&&(t.preventDefault(),e.decrementSeconds(),e.$apply()))}))},this.setupInputEvents=function(t,n,i){if(e.readonlyInput)return e.updateHours=angular.noop,e.updateMinutes=angular.noop,void(e.updateSeconds=angular.noop);var a=function(t,n,i){u.$setViewValue(null),u.$setValidity("time",!1),angular.isDefined(t)&&(e.invalidHours=t),angular.isDefined(n)&&(e.invalidMinutes=n),angular.isDefined(i)&&(e.invalidSeconds=i)};e.updateHours=function(){var e=y(),t=b();u.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(s.setHours(e),s.setMinutes(t),s<p||s>m?a(!0):C("h")):a(!0)},t.bind("blur",(function(t){u.$setTouched(),I()?w():null===e.hours||""===e.hours?a(!0):!e.invalidHours&&e.hours<10&&e.$apply((function(){e.hours=_(e.hours,!f)}))})),e.updateMinutes=function(){var e=b(),t=y();u.$setDirty(),angular.isDefined(e)&&angular.isDefined(t)?(s.setHours(t),s.setMinutes(e),s<p||s>m?a(void 0,!0):C("m")):a(void 0,!0)},n.bind("blur",(function(t){u.$setTouched(),I()?w():null===e.minutes?a(void 0,!0):!e.invalidMinutes&&e.minutes<10&&e.$apply((function(){e.minutes=_(e.minutes)}))})),e.updateSeconds=function(){var t=function(){var t=+e.seconds;return t>=0&&t<60?t:void 0}();u.$setDirty(),angular.isDefined(t)?(s.setSeconds(t),C("s")):a(void 0,void 0,!0)},i.bind("blur",(function(t){I()?w():!e.invalidSeconds&&e.seconds<10&&e.$apply((function(){e.seconds=_(e.seconds)}))}))},this.render=function(){var t=u.$viewValue;isNaN(t)?(u.$setValidity("time",!1),a.error('Timepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.')):(t&&(s=t),s<p||s>m?(u.$setValidity("time",!1),e.invalidHours=!0,e.invalidMinutes=!0):w(),$())},e.showSpinners=angular.isDefined(n.showSpinners)?e.$parent.$eval(n.showSpinners):l.showSpinners,e.incrementHours=function(){e.noIncrementHours()||k(60*d*60)},e.decrementHours=function(){e.noDecrementHours()||k(60*-d*60)},e.incrementMinutes=function(){e.noIncrementMinutes()||k(60*h)},e.decrementMinutes=function(){e.noDecrementMinutes()||k(60*-h)},e.incrementSeconds=function(){e.noIncrementSeconds()||k(v)},e.decrementSeconds=function(){e.noDecrementSeconds()||k(-v)},e.toggleMeridian=function(){var t=b(),n=y();e.noToggleMeridian()||(angular.isDefined(t)&&angular.isDefined(n)?k(720*(s.getHours()<12?60:-60)):e.meridian=e.meridian===c[0]?c[1]:c[0])},e.blur=function(){u.$setTouched()},e.$on("$destroy",(function(){for(;o.length;)o.shift()()}))}]).directive("uibTimepicker",["uibTimepickerConfig",function(e){return{require:["uibTimepicker","?^ngModel"],controller:"UibTimepickerController",controllerAs:"timepicker",replace:!0,scope:{},templateUrl:function(t,n){return n.templateUrl||e.templateUrl},link:function(e,t,n,i){var a=i[0],r=i[1];r&&a.init(r,t.find("input"))}}}]),angular.module("ui.bootstrap.typeahead",["ui.bootstrap.debounce","ui.bootstrap.position"]).factory("uibTypeaheadParser",["$parse",function(e){var t=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w\d]*))\s+in\s+([\s\S]+?)$/;return{parse:function(n){var i=n.match(t);if(!i)throw new Error('Expected typeahead specification in form of "_modelValue_ (as _label_)? for _item_ in _collection_" but got "'+n+'".');return{itemName:i[3],source:e(i[4]),viewMapper:e(i[2]||i[1]),modelMapper:e(i[1])}}}}]).controller("UibTypeaheadController",["$scope","$element","$attrs","$compile","$parse","$q","$timeout","$document","$window","$rootScope","$$debounce","$uibPosition","uibTypeaheadParser",function(e,t,n,i,a,r,l,s,o,u,c,f,d){var p,m,h=[9,13,27,38,40],g=e.$eval(n.typeaheadMinLength);g||0===g||(g=1),e.$watch(n.typeaheadMinLength,(function(e){g=e||0===e?e:1}));var v=e.$eval(n.typeaheadWaitMs)||0,y=!1!==e.$eval(n.typeaheadEditable);e.$watch(n.typeaheadEditable,(function(e){y=!1!==e}));var b,_,C=a(n.typeaheadLoading).assign||angular.noop,w=n.typeaheadShouldSelect?a(n.typeaheadShouldSelect):function(e,t){var n=t.$event;return 13===n.which||9===n.which},$=a(n.typeaheadOnSelect),k=!!angular.isDefined(n.typeaheadSelectOnBlur)&&e.$eval(n.typeaheadSelectOnBlur),S=a(n.typeaheadNoResults).assign||angular.noop,M=n.typeaheadInputFormatter?a(n.typeaheadInputFormatter):void 0,I=!!n.typeaheadAppendToBody&&e.$eval(n.typeaheadAppendToBody),L=n.typeaheadAppendTo?e.$eval(n.typeaheadAppendTo):null,A=!1!==e.$eval(n.typeaheadFocusFirst),O=!!n.typeaheadSelectOnExact&&e.$eval(n.typeaheadSelectOnExact),T=a(n.typeaheadIsOpen).assign||angular.noop,x=e.$eval(n.typeaheadShowHint)||!1,D=a(n.ngModel),U=a(n.ngModel+"($$$p)"),q=d.parse(n.uibTypeahead),E=e.$new(),N=e.$on("$destroy",(function(){E.$destroy()}));E.$on("$destroy",N);var R,P,F="typeahead-"+E.$id+"-"+Math.floor(1e4*Math.random());t.attr({"aria-autocomplete":"list","aria-expanded":!1,"aria-owns":F}),x&&((R=angular.element("<div></div>")).css("position","relative"),t.after(R),(P=t.clone()).attr("placeholder",""),P.attr("tabindex","-1"),P.val(""),P.css({position:"absolute",top:"0px",left:"0px","border-color":"transparent","box-shadow":"none",opacity:1,background:"none 0% 0% / auto repeat scroll padding-box border-box rgb(255, 255, 255)",color:"#999"}),t.css({position:"relative","vertical-align":"top","background-color":"transparent"}),R.append(P),P.after(t));var H=angular.element("<div uib-typeahead-popup></div>");H.attr({id:F,matches:"matches",active:"activeIdx",select:"select(activeIdx, evt)","move-in-progress":"moveInProgress",query:"query",position:"position","assign-is-open":"assignIsOpen(isOpen)",debounce:"debounceUpdate"}),angular.isDefined(n.typeaheadTemplateUrl)&&H.attr("template-url",n.typeaheadTemplateUrl),angular.isDefined(n.typeaheadPopupTemplateUrl)&&H.attr("popup-template-url",n.typeaheadPopupTemplateUrl);var V=function(){E.matches=[],E.activeIdx=-1,t.attr("aria-expanded",!1),x&&P.val("")},B=function(e){return F+"-option-"+e};E.$watch("activeIdx",(function(e){e<0?t.removeAttr("aria-activedescendant"):t.attr("aria-activedescendant",B(e))}));var j=function(n,i){var a={$viewValue:n};C(e,!0),S(e,!1),r.when(q.source(e,a)).then((function(r){var l=n===p.$viewValue;if(l&&b)if(r&&r.length>0){E.activeIdx=A?0:-1,S(e,!1),E.matches.length=0;for(var s=0;s<r.length;s++)a[q.itemName]=r[s],E.matches.push({id:B(s),label:q.viewMapper(E,a),model:r[s]});if(E.query=n,W(),t.attr("aria-expanded",!0),O&&1===E.matches.length&&function(e,t){return!!(E.matches.length>t&&e)&&e.toUpperCase()===E.matches[t].label.toUpperCase()}(n,0)&&(angular.isNumber(E.debounceUpdate)||angular.isObject(E.debounceUpdate)?c((function(){E.select(0,i)}),angular.isNumber(E.debounceUpdate)?E.debounceUpdate:E.debounceUpdate.default):E.select(0,i)),x){var o=E.matches[0].label;angular.isString(n)&&n.length>0&&o.slice(0,n.length).toUpperCase()===n.toUpperCase()?P.val(n+o.slice(n.length)):P.val("")}}else V(),S(e,!0);l&&C(e,!1)}),(function(){V(),C(e,!1),S(e,!0)}))};I&&(angular.element(o).on("resize",G),s.find("body").on("scroll",G));var z,Y=c((function(){E.matches.length&&W(),E.moveInProgress=!1}),200);function G(){E.moveInProgress||(E.moveInProgress=!0,E.$digest()),Y()}function W(){E.position=I?f.offset(t):f.position(t),E.position.top+=t.prop("offsetHeight")}E.moveInProgress=!1,E.query=void 0;var K=function(){z&&l.cancel(z)};V(),E.assignIsOpen=function(t){T(e,t)},E.select=function(i,a){var r,s,o={};_=!0,o[q.itemName]=s=E.matches[i].model,r=q.modelMapper(e,o),function(t,n){angular.isFunction(D(e))&&m&&m.$options&&m.$options.getterSetter?U(t,{$$$p:n}):D.assign(t,n)}(e,r),p.$setValidity("editable",!0),p.$setValidity("parse",!0),$(e,{$item:s,$model:r,$label:q.viewMapper(e,o),$event:a}),V(),!1!==E.$eval(n.typeaheadFocusOnSelect)&&l((function(){t[0].focus()}),0,!1)},t.on("keydown",(function(t){if(0!==E.matches.length&&-1!==h.indexOf(t.which)){var n,i=w(e,{$event:t});if(-1===E.activeIdx&&i||9===t.which&&t.shiftKey)return V(),void E.$digest();switch(t.preventDefault(),t.which){case 27:t.stopPropagation(),V(),e.$digest();break;case 38:E.activeIdx=(E.activeIdx>0?E.activeIdx:E.matches.length)-1,E.$digest(),(n=H.find("li")[E.activeIdx]).parentNode.scrollTop=n.offsetTop;break;case 40:E.activeIdx=(E.activeIdx+1)%E.matches.length,E.$digest(),(n=H.find("li")[E.activeIdx]).parentNode.scrollTop=n.offsetTop;break;default:i&&E.$apply((function(){angular.isNumber(E.debounceUpdate)||angular.isObject(E.debounceUpdate)?c((function(){E.select(E.activeIdx,t)}),angular.isNumber(E.debounceUpdate)?E.debounceUpdate:E.debounceUpdate.default):E.select(E.activeIdx,t)}))}}})),t.bind("focus",(function(e){b=!0,0!==g||p.$viewValue||l((function(){j(p.$viewValue,e)}),0)})),t.bind("blur",(function(e){k&&E.matches.length&&-1!==E.activeIdx&&!_&&(_=!0,E.$apply((function(){angular.isObject(E.debounceUpdate)&&angular.isNumber(E.debounceUpdate.blur)?c((function(){E.select(E.activeIdx,e)}),E.debounceUpdate.blur):E.select(E.activeIdx,e)}))),!y&&p.$error.editable&&(p.$setViewValue(),p.$setValidity("editable",!0),p.$setValidity("parse",!0),t.val("")),b=!1,_=!1}));var Q=function(n){t[0]!==n.target&&3!==n.which&&0!==E.matches.length&&(V(),u.$$phase||e.$digest())};s.on("click",Q),e.$on("$destroy",(function(){s.off("click",Q),(I||L)&&J.remove(),I&&(angular.element(o).off("resize",G),s.find("body").off("scroll",G)),H.remove(),x&&R.remove()}));var J=i(H)(E);I?s.find("body").append(J):L?angular.element(L).eq(0).append(J):t.after(J),this.init=function(t,n){p=t,m=n,E.debounceUpdate=p.$options&&a(p.$options.debounce)(e),p.$parsers.unshift((function(t){return b=!0,0===g||t&&t.length>=g?v>0?(K(),function(e){z=l((function(){j(e)}),v)}(t)):j(t):(C(e,!1),K(),V()),y?t:t?void p.$setValidity("editable",!1):(p.$setValidity("editable",!0),null)})),p.$formatters.push((function(t){var n,i={};return y||p.$setValidity("editable",!0),M?(i.$model=t,M(e,i)):(i[q.itemName]=t,n=q.viewMapper(e,i),i[q.itemName]=void 0,n!==q.viewMapper(e,i)?n:t)}))}}]).directive("uibTypeahead",(function(){return{controller:"UibTypeaheadController",require:["ngModel","^?ngModelOptions","uibTypeahead"],link:function(e,t,n,i){i[2].init(i[0],i[1])}}})).directive("uibTypeaheadPopup",["$$debounce",function(e){return{scope:{matches:"=",query:"=",active:"=",position:"&",moveInProgress:"=",select:"&",assignIsOpen:"&",debounce:"&"},replace:!0,templateUrl:function(e,t){return t.popupTemplateUrl||"uib/template/typeahead/typeahead-popup.html"},link:function(t,n,i){t.templateUrl=i.templateUrl,t.isOpen=function(){var e=t.matches.length>0;return t.assignIsOpen({isOpen:e}),e},t.isActive=function(e){return t.active===e},t.selectActive=function(e){t.active=e},t.selectMatch=function(n,i){var a=t.debounce();angular.isNumber(a)||angular.isObject(a)?e((function(){t.select({activeIdx:n,evt:i})}),angular.isNumber(a)?a:a.default):t.select({activeIdx:n,evt:i})}}}}]).directive("uibTypeaheadMatch",["$templateRequest","$compile","$parse",function(e,t,n){return{scope:{index:"=",match:"=",query:"="},link:function(i,a,r){var l=n(r.templateUrl)(i.$parent)||"uib/template/typeahead/typeahead-match.html";e(l).then((function(e){var n=angular.element(e.trim());a.replaceWith(n),t(n)(i)}))}}}]).filter("uibTypeaheadHighlight",["$sce","$injector","$log",function(e,t,n){var i;return i=t.has("$sanitize"),function(t,a){return!i&&function(e){return/<.*>/g.test(e)}(t)&&n.warn("Unsafe use of typeahead please use ngSanitize"),t=a?(""+t).replace(new RegExp(a.replace(/([.?*+^$[\]\\(){}|-])/g,"\\$1"),"gi"),"<strong>$&</strong>"):t,i||(t=e.trustAsHtml(t)),t}}]),angular.module("uib/template/accordion/accordion-group.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion-group.html",'<div class="panel" ng-class="panelClass || \'panel-default\'">\n <div role="tab" id="{{::headingId}}" aria-selected="{{isOpen}}" class="panel-heading" ng-keypress="toggleOpen($event)">\n <h4 class="panel-title">\n <a role="button" data-toggle="collapse" href aria-expanded="{{isOpen}}" aria-controls="{{::panelId}}" tabindex="0" class="accordion-toggle" ng-click="toggleOpen()" uib-accordion-transclude="heading"><span uib-accordion-header ng-class="{\'text-muted\': isDisabled}">{{heading}}</span></a>\n </h4>\n </div>\n <div id="{{::panelId}}" aria-labelledby="{{::headingId}}" aria-hidden="{{!isOpen}}" role="tabpanel" class="panel-collapse collapse" uib-collapse="!isOpen">\n <div class="panel-body" ng-transclude></div>\n </div>\n</div>\n')}]),angular.module("uib/template/accordion/accordion.html",[]).run(["$templateCache",function(e){e.put("uib/template/accordion/accordion.html",'<div role="tablist" class="panel-group" ng-transclude></div>')}]),angular.module("uib/template/alert/alert.html",[]).run(["$templateCache",function(e){e.put("uib/template/alert/alert.html",'<div class="alert" ng-class="[\'alert-\' + (type || \'warning\'), closeable ? \'alert-dismissible\' : null]" role="alert">\n <button ng-show="closeable" type="button" class="close" ng-click="close({$event: $event})">\n <span aria-hidden="true">&times;</span>\n <span class="sr-only">Close</span>\n </button>\n <div ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/carousel/carousel.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/carousel.html",'<div ng-mouseenter="pause()" ng-mouseleave="play()" class="carousel" ng-swipe-right="prev()" ng-swipe-left="next()">\n <div class="carousel-inner" ng-transclude></div>\n <a role="button" href class="left carousel-control" ng-click="prev()" ng-class="{ disabled: isPrevDisabled() }" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-left"></span>\n <span class="sr-only">previous</span>\n </a>\n <a role="button" href class="right carousel-control" ng-click="next()" ng-class="{ disabled: isNextDisabled() }" ng-show="slides.length > 1">\n <span aria-hidden="true" class="glyphicon glyphicon-chevron-right"></span>\n <span class="sr-only">next</span>\n </a>\n <ol class="carousel-indicators" ng-show="slides.length > 1">\n <li ng-repeat="slide in slides | orderBy:indexOfSlide track by $index" ng-class="{ active: isActive(slide) }" ng-click="select(slide)">\n <span class="sr-only">slide {{ $index + 1 }} of {{ slides.length }}<span ng-if="isActive(slide)">, currently active</span></span>\n </li>\n </ol>\n</div>\n')}]),angular.module("uib/template/carousel/slide.html",[]).run(["$templateCache",function(e){e.put("uib/template/carousel/slide.html",'<div ng-class="{\n \'active\': active\n }" class="item text-center" ng-transclude></div>\n')}]),angular.module("uib/template/datepicker/datepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/datepicker.html",'<div class="uib-datepicker" ng-switch="datepickerMode" role="application" ng-keydown="keydown($event)">\n <uib-daypicker ng-switch-when="day" tabindex="0"></uib-daypicker>\n <uib-monthpicker ng-switch-when="month" tabindex="0"></uib-monthpicker>\n <uib-yearpicker ng-switch-when="year" tabindex="0"></uib-yearpicker>\n</div>\n')}]),angular.module("uib/template/datepicker/day.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/day.html",'<table class="uib-daypicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::5 + showWeeks}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n <tr>\n <th ng-if="showWeeks" class="text-center"></th>\n <th ng-repeat="label in ::labels track by $index" class="text-center"><small aria-label="{{::label.full}}">{{::label.abbr}}</small></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-weeks" ng-repeat="row in rows track by $index">\n <td ng-if="showWeeks" class="text-center h6"><em>{{ weekNumbers[$index] }}</em></td>\n <td ng-repeat="dt in row" class="uib-day text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default btn-sm"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-muted\': dt.secondary, \'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/month.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/month.html",'<table class="uib-monthpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-months" ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row" class="uib-month text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepicker/year.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepicker/year.html",'<table class="uib-yearpicker" role="grid" aria-labelledby="{{::uniqueId}}-title" aria-activedescendant="{{activeDateId}}">\n <thead>\n <tr>\n <th><button type="button" class="btn btn-default btn-sm pull-left uib-left" ng-click="move(-1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-left"></i></button></th>\n <th colspan="{{::columns - 2}}"><button id="{{::uniqueId}}-title" role="heading" aria-live="assertive" aria-atomic="true" type="button" class="btn btn-default btn-sm uib-title" ng-click="toggleMode()" ng-disabled="datepickerMode === maxMode" tabindex="-1"><strong>{{title}}</strong></button></th>\n <th><button type="button" class="btn btn-default btn-sm pull-right uib-right" ng-click="move(1)" tabindex="-1"><i class="glyphicon glyphicon-chevron-right"></i></button></th>\n </tr>\n </thead>\n <tbody>\n <tr class="uib-years" ng-repeat="row in rows track by $index">\n <td ng-repeat="dt in row" class="uib-year text-center" role="gridcell"\n id="{{::dt.uid}}"\n ng-class="::dt.customClass">\n <button type="button" class="btn btn-default"\n uib-is-class="\n \'btn-info\' for selectedDt,\n \'active\' for activeDt\n on dt"\n ng-click="select(dt.date)"\n ng-disabled="::dt.disabled"\n tabindex="-1"><span ng-class="::{\'text-info\': dt.current}">{{::dt.label}}</span></button>\n </td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/datepickerPopup/popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/datepickerPopup/popup.html",'<div>\n <ul class="uib-datepicker-popup dropdown-menu uib-position-measure" dropdown-nested ng-if="isOpen" ng-keydown="keydown($event)" ng-click="$event.stopPropagation()">\n <li ng-transclude></li>\n <li ng-if="showButtonBar" class="uib-button-bar">\n <span class="btn-group pull-left">\n <button type="button" class="btn btn-sm btn-info uib-datepicker-current" ng-click="select(\'today\', $event)" ng-disabled="isDisabled(\'today\')">{{ getText(\'current\') }}</button>\n <button type="button" class="btn btn-sm btn-danger uib-clear" ng-click="select(null, $event)">{{ getText(\'clear\') }}</button>\n </span>\n <button type="button" class="btn btn-sm btn-success pull-right uib-close" ng-click="close($event)">{{ getText(\'close\') }}</button>\n </li>\n </ul>\n</div>\n')}]),angular.module("uib/template/modal/backdrop.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/backdrop.html",'<div class="modal-backdrop"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1040 + (index && 1 || 0) + index*10}"\n></div>\n')}]),angular.module("uib/template/modal/window.html",[]).run(["$templateCache",function(e){e.put("uib/template/modal/window.html",'<div modal-render="{{$isRendered}}" tabindex="-1" role="dialog" class="modal"\n uib-modal-animation-class="fade"\n modal-in-class="in"\n ng-style="{\'z-index\': 1050 + index*10, display: \'block\'}">\n <div class="modal-dialog {{size ? \'modal-\' + size : \'\'}}"><div class="modal-content" uib-modal-transclude></div></div>\n</div>\n')}]),angular.module("uib/template/pager/pager.html",[]).run(["$templateCache",function(e){e.put("uib/template/pager/pager.html",'<ul class="pager">\n <li ng-class="{disabled: noPrevious()||ngDisabled, previous: align}"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-class="{disabled: noNext()||ngDisabled, next: align}"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n</ul>\n')}]),angular.module("uib/template/pagination/pagination.html",[]).run(["$templateCache",function(e){e.put("uib/template/pagination/pagination.html",'<ul class="pagination">\n <li ng-if="::boundaryLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-first"><a href ng-click="selectPage(1, $event)">{{::getText(\'first\')}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noPrevious()||ngDisabled}" class="pagination-prev"><a href ng-click="selectPage(page - 1, $event)">{{::getText(\'previous\')}}</a></li>\n <li ng-repeat="page in pages track by $index" ng-class="{active: page.active,disabled: ngDisabled&&!page.active}" class="pagination-page"><a href ng-click="selectPage(page.number, $event)">{{page.text}}</a></li>\n <li ng-if="::directionLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-next"><a href ng-click="selectPage(page + 1, $event)">{{::getText(\'next\')}}</a></li>\n <li ng-if="::boundaryLinks" ng-class="{disabled: noNext()||ngDisabled}" class="pagination-last"><a href ng-click="selectPage(totalPages, $event)">{{::getText(\'last\')}}</a></li>\n</ul>\n')}]),angular.module("uib/template/tooltip/tooltip-html-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-html-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind-html="contentExp()"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner" ng-bind="content"></div>\n</div>\n')}]),angular.module("uib/template/tooltip/tooltip-template-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/tooltip/tooltip-template-popup.html",'<div class="tooltip"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="tooltip-arrow"></div>\n <div class="tooltip-inner"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n</div>\n')}]),angular.module("uib/template/popover/popover-html.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-html.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind-html="contentExp()"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/popover/popover-template.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover-template.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/popover/popover.html",[]).run(["$templateCache",function(e){e.put("uib/template/popover/popover.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind="content"></div>\n </div>\n</div>\n')}]),angular.module("uib/template/progressbar/bar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/bar.html",'<div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n')}]),angular.module("uib/template/progressbar/progress.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progress.html",'<div class="progress" ng-transclude aria-labelledby="{{::title}}"></div>')}]),angular.module("uib/template/progressbar/progressbar.html",[]).run(["$templateCache",function(e){e.put("uib/template/progressbar/progressbar.html",'<div class="progress">\n <div class="progress-bar" ng-class="type && \'progress-bar-\' + type" role="progressbar" aria-valuenow="{{value}}" aria-valuemin="0" aria-valuemax="{{max}}" ng-style="{width: (percent < 100 ? percent : 100) + \'%\'}" aria-valuetext="{{percent | number:0}}%" aria-labelledby="{{::title}}" ng-transclude></div>\n</div>\n')}]),angular.module("uib/template/rating/rating.html",[]).run(["$templateCache",function(e){e.put("uib/template/rating/rating.html",'<span ng-mouseleave="reset()" ng-keydown="onKeydown($event)" tabindex="0" role="slider" aria-valuemin="0" aria-valuemax="{{range.length}}" aria-valuenow="{{value}}" aria-valuetext="{{title}}">\n <span ng-repeat-start="r in range track by $index" class="sr-only">({{ $index < value ? \'*\' : \' \' }})</span>\n <i ng-repeat-end ng-mouseenter="enter($index + 1)" ng-click="rate($index + 1)" class="glyphicon" ng-class="$index < value && (r.stateOn || \'glyphicon-star\') || (r.stateOff || \'glyphicon-star-empty\')" ng-attr-title="{{r.title}}"></i>\n</span>\n')}]),angular.module("uib/template/tabs/tab.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tab.html",'<li ng-class="[{active: active, disabled: disabled}, classes]" class="uib-tab nav-item">\n <a href ng-click="select($event)" class="nav-link" uib-tab-heading-transclude>{{heading}}</a>\n</li>\n')}]),angular.module("uib/template/tabs/tabset.html",[]).run(["$templateCache",function(e){e.put("uib/template/tabs/tabset.html",'<div>\n <ul class="nav nav-{{tabset.type || \'tabs\'}}" ng-class="{\'nav-stacked\': vertical, \'nav-justified\': justified}" ng-transclude></ul>\n <div class="tab-content">\n <div class="tab-pane"\n ng-repeat="tab in tabset.tabs"\n ng-class="{active: tabset.active === tab.index}"\n uib-tab-content-transclude="tab">\n </div>\n </div>\n</div>\n')}]),angular.module("uib/template/timepicker/timepicker.html",[]).run(["$templateCache",function(e){e.put("uib/template/timepicker/timepicker.html",'<table class="uib-timepicker">\n <tbody>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-increment hours"><a ng-click="incrementHours()" ng-class="{disabled: noIncrementHours()}" class="btn btn-link" ng-disabled="noIncrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td>&nbsp;</td>\n <td class="uib-increment minutes"><a ng-click="incrementMinutes()" ng-class="{disabled: noIncrementMinutes()}" class="btn btn-link" ng-disabled="noIncrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showSeconds">&nbsp;</td>\n <td ng-show="showSeconds" class="uib-increment seconds"><a ng-click="incrementSeconds()" ng-class="{disabled: noIncrementSeconds()}" class="btn btn-link" ng-disabled="noIncrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-up"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n <tr>\n <td class="form-group uib-time hours" ng-class="{\'has-error\': invalidHours}">\n <input type="text" placeholder="HH" ng-model="hours" ng-change="updateHours()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementHours()" ng-blur="blur()">\n </td>\n <td class="uib-separator">:</td>\n <td class="form-group uib-time minutes" ng-class="{\'has-error\': invalidMinutes}">\n <input type="text" placeholder="MM" ng-model="minutes" ng-change="updateMinutes()" class="form-control text-center" ng-readonly="::readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementMinutes()" ng-blur="blur()">\n </td>\n <td ng-show="showSeconds" class="uib-separator">:</td>\n <td class="form-group uib-time seconds" ng-class="{\'has-error\': invalidSeconds}" ng-show="showSeconds">\n <input type="text" placeholder="SS" ng-model="seconds" ng-change="updateSeconds()" class="form-control text-center" ng-readonly="readonlyInput" maxlength="2" tabindex="{{::tabindex}}" ng-disabled="noIncrementSeconds()" ng-blur="blur()">\n </td>\n <td ng-show="showMeridian" class="uib-time am-pm"><button type="button" ng-class="{disabled: noToggleMeridian()}" class="btn btn-default text-center" ng-click="toggleMeridian()" ng-disabled="noToggleMeridian()" tabindex="{{::tabindex}}">{{meridian}}</button></td>\n </tr>\n <tr class="text-center" ng-show="::showSpinners">\n <td class="uib-decrement hours"><a ng-click="decrementHours()" ng-class="{disabled: noDecrementHours()}" class="btn btn-link" ng-disabled="noDecrementHours()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td>&nbsp;</td>\n <td class="uib-decrement minutes"><a ng-click="decrementMinutes()" ng-class="{disabled: noDecrementMinutes()}" class="btn btn-link" ng-disabled="noDecrementMinutes()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showSeconds">&nbsp;</td>\n <td ng-show="showSeconds" class="uib-decrement seconds"><a ng-click="decrementSeconds()" ng-class="{disabled: noDecrementSeconds()}" class="btn btn-link" ng-disabled="noDecrementSeconds()" tabindex="{{::tabindex}}"><span class="glyphicon glyphicon-chevron-down"></span></a></td>\n <td ng-show="showMeridian"></td>\n </tr>\n </tbody>\n</table>\n')}]),angular.module("uib/template/typeahead/typeahead-match.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-match.html",'<a href\n tabindex="-1"\n ng-bind-html="match.label | uibTypeaheadHighlight:query"\n ng-attr-title="{{match.label}}"></a>\n')}]),angular.module("uib/template/typeahead/typeahead-popup.html",[]).run(["$templateCache",function(e){e.put("uib/template/typeahead/typeahead-popup.html",'<ul class="dropdown-menu" ng-show="isOpen() && !moveInProgress" ng-style="{top: position().top+\'px\', left: position().left+\'px\'}" role="listbox" aria-hidden="{{!isOpen()}}">\n <li ng-repeat="match in matches track by $index" ng-class="{active: isActive($index) }" ng-mouseenter="selectActive($index)" ng-click="selectMatch($index, $event)" role="option" id="{{::match.id}}">\n <div uib-typeahead-match index="$index" match="match" query="query" template-url="templateUrl"></div>\n </li>\n</ul>\n')}]),angular.module("ui.bootstrap.carousel").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibCarouselCss&&angular.element(document).find("head").prepend('<style type="text/css">.ng-animate.item:not(.left):not(.right){-webkit-transition:0s ease-in-out left;transition:0s ease-in-out left}</style>'),angular.$$uibCarouselCss=!0})),angular.module("ui.bootstrap.datepicker").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker .uib-title{width:100%;}.uib-day button,.uib-month button,.uib-year button{min-width:100%;}.uib-left,.uib-right{width:100%}</style>'),angular.$$uibDatepickerCss=!0})),angular.module("ui.bootstrap.position").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibPositionCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-position-measure{display:block !important;visibility:hidden !important;position:absolute !important;top:-9999px !important;left:-9999px !important;}.uib-position-scrollbar-measure{position:absolute !important;top:-9999px !important;width:50px !important;height:50px !important;overflow:scroll !important;}.uib-position-body-scrollbar-measure{overflow:scroll !important;}</style>'),angular.$$uibPositionCss=!0})),angular.module("ui.bootstrap.datepickerPopup").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibDatepickerpopupCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-datepicker-popup.dropdown-menu{display:block;float:none;margin:0;}.uib-button-bar{padding:10px 9px 2px;}</style>'),angular.$$uibDatepickerpopupCss=!0})),angular.module("ui.bootstrap.tooltip").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTooltipCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-tooltip-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-html-popup].tooltip.right-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.top-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-left > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.bottom-right > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.left-bottom > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-top > .tooltip-arrow,[uib-tooltip-template-popup].tooltip.right-bottom > .tooltip-arrow,[uib-popover-popup].popover.top-left > .arrow,[uib-popover-popup].popover.top-right > .arrow,[uib-popover-popup].popover.bottom-left > .arrow,[uib-popover-popup].popover.bottom-right > .arrow,[uib-popover-popup].popover.left-top > .arrow,[uib-popover-popup].popover.left-bottom > .arrow,[uib-popover-popup].popover.right-top > .arrow,[uib-popover-popup].popover.right-bottom > .arrow,[uib-popover-html-popup].popover.top-left > .arrow,[uib-popover-html-popup].popover.top-right > .arrow,[uib-popover-html-popup].popover.bottom-left > .arrow,[uib-popover-html-popup].popover.bottom-right > .arrow,[uib-popover-html-popup].popover.left-top > .arrow,[uib-popover-html-popup].popover.left-bottom > .arrow,[uib-popover-html-popup].popover.right-top > .arrow,[uib-popover-html-popup].popover.right-bottom > .arrow,[uib-popover-template-popup].popover.top-left > .arrow,[uib-popover-template-popup].popover.top-right > .arrow,[uib-popover-template-popup].popover.bottom-left > .arrow,[uib-popover-template-popup].popover.bottom-right > .arrow,[uib-popover-template-popup].popover.left-top > .arrow,[uib-popover-template-popup].popover.left-bottom > .arrow,[uib-popover-template-popup].popover.right-top > .arrow,[uib-popover-template-popup].popover.right-bottom > .arrow{top:auto;bottom:auto;left:auto;right:auto;margin:0;}[uib-popover-popup].popover,[uib-popover-html-popup].popover,[uib-popover-template-popup].popover{display:block !important;}</style>'),angular.$$uibTooltipCss=!0})),angular.module("ui.bootstrap.timepicker").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTimepickerCss&&angular.element(document).find("head").prepend('<style type="text/css">.uib-time input{width:50px;}</style>'),angular.$$uibTimepickerCss=!0})),angular.module("ui.bootstrap.typeahead").run((function(){!angular.$$csp().noInlineStyle&&!angular.$$uibTypeaheadCss&&angular.element(document).find("head").prepend('<style type="text/css">[uib-typeahead-popup].dropdown-menu{display:block;}</style>'),angular.$$uibTypeaheadCss=!0}))},function(e,t,n){(function(e){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}angular.module("ui.bootstrap.datetimepicker",["ui.bootstrap.dateparser","ui.bootstrap.position"]).constant("uiDatetimePickerConfig",{dateFormat:"yyyy-MM-dd HH:mm",defaultTime:"00:00:00",html5Types:{date:"yyyy-MM-dd","datetime-local":"yyyy-MM-ddTHH:mm:ss.sss",month:"yyyy-MM"},initialPicker:"date",reOpenDefault:!1,disableFocusStealing:!1,enableDate:!0,enableTime:!0,buttonBar:{show:!0,now:{show:!0,text:"Now",cls:"btn-sm btn-default"},today:{show:!0,text:"Today",cls:"btn-sm btn-default"},clear:{show:!0,text:"Clear",cls:"btn-sm btn-default"},date:{show:!0,text:"Date",cls:"btn-sm btn-default"},time:{show:!0,text:"Time",cls:"btn-sm btn-default"},close:{show:!0,text:"Close",cls:"btn-sm btn-default"},cancel:{show:!1,text:"Cancel",cls:"btn-sm btn-default"}},closeOnDateSelection:!0,closeOnTimeNow:!0,appendToBody:!1,altInputFormats:[],ngModelOptions:{timezone:null},saveAs:!1,readAs:!1}).controller("DateTimePickerController",["$scope","$element","$attrs","$compile","$parse","$document","$timeout","$uibPosition","dateFilter","uibDateParser","uiDatetimePickerConfig","$rootScope",function(e,t,n,i,a,r,l,s,o,u,c,f){var d,p,m,h=c.dateFormat,g={},v=[],y=angular.isDefined(n.closeOnDateSelection)?e.$parent.$eval(n.closeOnDateSelection):c.closeOnDateSelection,b=angular.isDefined(n.closeOnTimeNow)?e.$parent.$eval(n.closeOnTimeNow):c.closeOnTimeNow,_=angular.isDefined(n.datepickerAppendToBody)?e.$parent.$eval(n.datepickerAppendToBody):c.appendToBody,C=angular.isDefined(n.altInputFormats)?e.$parent.$eval(n.altInputFormats):c.altInputFormats,w=angular.isDefined(n.saveAs)?e.$parent.$eval(n.saveAs)||n.saveAs:c.saveAs,$=angular.isDefined(n.readAs)?e.$parent.$eval(n.readAs):c.readAs,k=null;function S(n){var i=m[0],a=t[0].contains(n.target),r=void 0!==i.contains&&i.contains(n.target);!e.isOpen||a||r||e.$apply((function(){e.close(!1)}))}function M(n){27===n.which&&e.isOpen?(n.preventDefault(),n.stopPropagation(),e.$apply((function(){e.close(!1)})),t[0].focus()):40!==n.which||e.isOpen||(n.preventDefault(),n.stopPropagation(),e.$apply((function(){e.isOpen=!0})))}function I(t){var n=u.parse(t,h,e.date);if(isNaN(n))for(var i=0;i<C.length;i++)if(n=u.parse(t,C[i],e.date),!isNaN(n))return n;return n}function L(e){if(angular.isNumber(e)&&!isNaN(e)&&(e=new Date(e)),!e)return null;if(angular.isDate(e)&&!isNaN(e))return e;if(angular.isString(e)){var t=I(e);return isNaN(t)?void 0:u.toTimezone(t,p.getOption("timezone"))}}function A(t){return!(e.datepickerOptions.minDate&&t<e.datepickerOptions.minDate)&&!(e.datepickerOptions.maxDate&&t>e.datepickerOptions.maxDate)}function O(e,t){var i=e||t;return!(n.ngRequired||n.required||i)||(angular.isNumber(i)&&(i=new Date(i)),!i||(angular.isDate(i)&&!isNaN(i)?A(i):angular.isDate(new Date(i))&&!isNaN(new Date(i).valueOf())?A(new Date(i)):!!angular.isString(i)&&(!isNaN(I(t))&&A(I(t)))))}this.init=function(a){if(p=function(e){var t;angular.version.minor<6?(t=angular.isObject(e.$options)?e.$options:{timezone:null}).getOption=function(e){return t[e]}:t=e.$options;return t}(d=a),e.buttonBar=angular.isDefined(n.buttonBar)?e.$parent.$eval(n.buttonBar):c.buttonBar,e.enableDate=angular.isDefined(e.enableDate)?e.enableDate:c.enableDate,e.enableTime=angular.isDefined(e.enableTime)?e.enableTime:c.enableTime,e.initialPicker=angular.isDefined(n.initialPicker)?n.initialPicker:e.enableDate?c.initialPicker:"time",e.reOpenDefault=angular.isDefined(n.reOpenDefault)?n.reOpenDefault:c.reOpenDefault,e.disableFocusStealing=angular.isDefined(n.disableFocusStealing)?n.disableFocusStealing:c.disableFocusStealing,"date"===e.initialPicker&&!e.enableDate)throw new Error("datetimePicker can't have initialPicker set to date and have enableDate set to false.");e.showPicker=e.enableDate?e.initialPicker:"time";var l=!1;if(c.html5Types[n.type]?(h=c.html5Types[n.type],l=!0):(h=n.datetimePicker||c.dateFormat,n.$observe("datetimePicker",(function(e){var t=e||c.dateFormat;if(t!==h&&(h=t,d.$modelValue=null,!h))throw new Error("datetimePicker must have a date format specified.")}))),!h)throw new Error("datetimePicker must have a date format specified.");var s=angular.element('<div date-picker-wrap><div uib-datepicker></div></div><div time-picker-wrap><div uib-timepicker style="margin:0 auto"></div></div>');s.attr({"ng-model":"date","ng-change":"dateSelection(date)"});var o=angular.element(s.children()[0]);e.datepickerOptions||(e.datepickerOptions={}),l&&"month"===n.type&&(e.datepickerOptions.datepickerMode="month",e.datepickerOptions.minMode="month"),o.attr("datepicker-options","datepickerOptions"),angular.isDefined(e.datepickerOptions.datepickerMode)||(e.datepickerOptions.datepickerMode="day");var f=angular.element(s.children()[1]);for(var g in e.timepickerOptions||(e.timepickerOptions={showMeridian:!0}),e.timepickerOptions)f.attr(g.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})),"timepickerOptions."+g);angular.forEach(["minDate","maxDate","initDate"],(function(t){e.datepickerOptions[t]&&("minDate"===t?e.timepickerOptions.min?f.attr("min","timepickerOptions.min"):f.attr("min","datepickerOptions.minDate"):"maxDate"===t&&(e.timepickerOptions.max?f.attr("max","timepickerOptions.max"):f.attr("max","datepickerOptions.maxDate")))})),l?d.$formatters.push((function(t){return e.date=u.fromTimezone(t,p.getOption("timezone")),t})):(d.$$parserName="datetime",d.$validators.datetime=O,d.$parsers.unshift(L),d.$formatters.push((function(t){return d.$isEmpty(t)?(e.date=t,t):(e.date=u.fromTimezone(t,p.getOption("timezone")),h=h.replace(/M!/,"MM").replace(/d!/,"dd"),u.filter(e.date,h))}))),w&&(angular.isFunction(w)?d.$parsers.push(w):d.$parsers.push((function(e){if(!e||angular.isString(e)||!angular.isDate(e)||isNaN(e))return e;if("ISO"===w)return e.toISOString();if("json"===w)return e.toJSON();if("number"===w)return e.valueOf();return l?u.fromTimezone(e,p.getOption("timezone")).toLocaleString():(h=h.replace(/M!/,"MM").replace(/d!/,"dd"),u.filter(u.fromTimezone(e,p.getOption("timezone")),h))})),angular.isFunction($)?d.$formatters.push($):d.$formatters.push((function(e){if(d.$isEmpty(e))return e;var t=new Date(e);return angular.isDate(t)&&!isNaN(t)?t:e}))),d.$viewChangeListeners.push((function(){if(e.timepickerOptions.min){var t=new Date(e.timepickerOptions.min).getHours(),n=new Date(e.timepickerOptions.min).getMinutes(),i=new Date(e.date);i.setHours(t),i.setMinutes(n),e.timepickerOptions.min=i}if(e.timepickerOptions.max){var a=new Date(e.timepickerOptions.max).getHours(),r=new Date(e.timepickerOptions.max).getMinutes(),l=new Date(e.date);l.setHours(a),l.setMinutes(r),e.timepickerOptions.max=l}e.date=I(d.$viewValue)})),t.bind("keydown",M),m=i(s)(e),s.remove(),_?r.find("body").append(m):t.after(m)},e.getText=function(t){return e.buttonBar[t].text||c.buttonBar[t].text},e.getClass=function(t){return e.buttonBar[t].cls||c.buttonBar[t].cls},e.keydown=function(n){27===n.which&&(n.preventDefault(),n.stopPropagation(),e.close(!1),l((function(){t[0].focus()}),0))},e.doShow=function(t){return angular.isDefined(e.buttonBar[t].show)?e.buttonBar[t].show:c.buttonBar[t].show},e.dateSelection=function(i,a){if(e.enableTime&&"time"===e.showPicker)if(i||null!=i){if(angular.isDefined(e.date)&&null!=e.date||(e.date=new Date),i&&null!=i){var r=new Date(e.date);r.setHours(i.getHours()),r.setMinutes(i.getMinutes()),r.setSeconds(i.getSeconds()),r.setMilliseconds(i.getMilliseconds()),i=r}}else e.oldDate=e.date;if(angular.isDefined(i)){if(!e.date){var l=angular.isDefined(n.defaultTime)?n.defaultTime:c.defaultTime,s=new Date("2001/01/01 "+l);isNaN(s)||null==i||(i.setHours(s.getHours()),i.setMinutes(s.getMinutes()),i.setSeconds(s.getSeconds()),i.setMilliseconds(s.getMilliseconds()))}e.date=i,i&&e.oldDate&&(i.setDate(e.oldDate.getDate()),i.setMonth(e.oldDate.getMonth()),i.setFullYear(e.oldDate.getFullYear()),delete e.oldDate)}var u=e.date?o(e.date,h):null;t.val(u),d.$setViewValue(u),y&&("time"!==e.showPicker&&null!=u?e.enableTime?e.open("time"):e.close(!1):b&&"time"===e.showPicker&&null!=u&&"now"===a&&e.close(!1))},e.$watch("isOpen",(function(n){if(e.dropdownStyle={display:n?"block":"none"},n){g.openDate=e.date;var i=_?s.offset(t):s.position(t);e.dropdownStyle.top=_?i.top+t.prop("offsetHeight")+"px":void 0,e.dropdownStyle.left=i.left+"px",l((function(){e.disableFocusStealing||e.$broadcast("uib:datepicker.focus"),r.bind("click",S)}),0,!1),e.open(e.showPicker)}else r.unbind("click",S)})),e.isDisabled=function(t){"today"!==t&&"now"!==t||(t=u.fromTimezone(new Date,p.getOption("timezone")));var n={};return angular.forEach(["minDate","maxDate"],(function(t){e.datepickerOptions[t]?angular.isDate(e.datepickerOptions[t])?n[t]=u.fromTimezone(new Date(e.datepickerOptions[t]),p.getOption("timezone")):n[t]=new Date(o(e.datepickerOptions[t],"medium")):n[t]=null})),e.datepickerOptions&&n.minDate&&e.compare(t,n.minDate)<0||n.maxDate&&e.compare(t,n.maxDate)>0},e.compare=function(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate())-new Date(t.getFullYear(),t.getMonth(),t.getDate())},e.select=function(t,n){angular.isDefined(n)&&(n.preventDefault(),n.stopPropagation());var i=null;if("today"===t||"now"===t){var a=new Date;angular.isDate(e.date)?((i=new Date(e.date)).setFullYear(a.getFullYear(),a.getMonth(),a.getDate()),i.setHours(a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds())):i=a}e.dateSelection(i,t)},e.cancel=function(n){angular.isDefined(n)&&(n.preventDefault(),n.stopPropagation()),t.val(o(k,h)),d.$setViewValue(o(k,h)),e.close(!1)},e.open=function(n,i){angular.isDefined(i)&&(i.preventDefault(),i.stopPropagation()),k=t.val(),l((function(){e.showPicker=n}),0),"time"===n&&l((function(){e.date=I(d.$viewValue)}),50)},e.close=function(n,i){angular.isDefined(i)&&(i.preventDefault(),i.stopPropagation()),e.isOpen=!1,e.enableDate&&e.enableTime&&(e.showPicker=!1===e.reOpenDefault?"date":e.reOpenDefault),"blur"===p.getOption("updateOn")&&(t[0].focus(),l((function(){t[0].blur()}),50)),angular.isDefined(n)?e.whenClosed({args:{closePressed:n,openDate:g.openDate||null,closeDate:e.date}}):t[0].focus()},e.$on("$destroy",(function(){!0===e.isOpen&&(f.$$phase||e.$apply((function(){e.close()}))),v.forEach((function(e){e()})),m.remove(),t.unbind("keydown",M),r.unbind("click",S)}))}]).directive("datetimePicker",(function(){return{restrict:"A",require:["ngModel","datetimePicker"],controller:"DateTimePickerController",scope:{isOpen:"=?",datepickerOptions:"=?",timepickerOptions:"=?",enableDate:"=?",enableTime:"=?",initialPicker:"=?",reOpenDefault:"=?",whenClosed:"&"},link:function(e,t,n,i){var a=i[0];i[1].init(a)}}})).directive("datePickerWrap",(function(){return{restrict:"EA",priority:2,replace:!0,transclude:!0,templateUrl:"template/date-picker.html"}})).directive("timePickerWrap",(function(){return{restrict:"EA",priority:2,replace:!0,transclude:!0,templateUrl:"template/time-picker.html"}})),angular.module("ui.bootstrap.datetimepicker").run(["$templateCache",function(e){"use strict";e.put("template/date-picker.html","<ul class=\"dropdown-menu dropdown-menu-left datetime-picker-dropdown\" ng-if=\"isOpen && showPicker == 'date'\" ng-style=dropdownStyle style=left:inherit ng-keydown=keydown($event) ng-click=\"$event.preventDefault(); $event.stopPropagation()\"><li style=\"padding:0 5px 5px 5px\" class=date-picker-menu><div ng-transclude></div></li><li style=padding:5px ng-if=buttonBar.show><span class=\"btn-group pull-left\" style=margin-right:10px ng-if=\"doShow('today') || doShow('clear')\"><button type=button class=btn ng-class=\"getClass('today')\" ng-if=\"doShow('today')\" ng-click=\"select('today', $event)\" ng-disabled=\"isDisabled('today')\">{{ getText('today') }}</button> <button type=button class=btn ng-class=\"getClass('clear')\" ng-if=\"doShow('clear')\" ng-click=\"select('clear', $event)\">{{ getText('clear') }}</button></span> <span class=\"btn-group pull-right\" ng-if=\"(doShow('time') && enableTime) || doShow('close') || doShow('cancel')\"><button type=button class=btn ng-class=\"getClass('time')\" ng-if=\"doShow('time') && enableTime\" ng-click=\"open('time', $event)\">{{ getText('time')}}</button> <button type=button class=btn ng-class=\"getClass('close')\" ng-if=\"doShow('close')\" ng-click=\"close(true, $event)\">{{ getText('close') }}</button> <button type=button class=btn ng-class=\"getClass('cancel')\" ng-if=\"doShow('cancel')\" ng-click=cancel($event)>{{ getText('cancel') }}</button></span> <span class=clearfix></span></li></ul>"),e.put("template/time-picker.html","<ul class=\"dropdown-menu dropdown-menu-left datetime-picker-dropdown\" ng-if=\"isOpen && showPicker == 'time'\" ng-style=dropdownStyle style=left:inherit ng-keydown=keydown($event) ng-click=\"$event.preventDefault(); $event.stopPropagation()\"><li style=\"padding:0 5px 5px 5px\" class=time-picker-menu><div ng-transclude></div></li><li style=padding:5px ng-if=buttonBar.show><span class=\"btn-group pull-left\" style=margin-right:10px ng-if=\"doShow('now') || doShow('clear')\"><button type=button class=btn ng-class=\"getClass('now')\" ng-if=\"doShow('now')\" ng-click=\"select('now', $event)\" ng-disabled=\"isDisabled('now')\">{{ getText('now') }}</button> <button type=button class=btn ng-class=\"getClass('clear')\" ng-if=\"doShow('clear')\" ng-click=\"select('clear', $event)\">{{ getText('clear') }}</button></span> <span class=\"btn-group pull-right\" ng-if=\"(doShow('date') && enableDate) || doShow('close') || doShow('cancel')\"><button type=button class=btn ng-class=\"getClass('date')\" ng-if=\"doShow('date') && enableDate\" ng-click=\"open('date', $event)\">{{ getText('date')}}</button> <button type=button class=btn ng-class=\"getClass('close')\" ng-if=\"doShow('close')\" ng-click=\"close(true, $event)\">{{ getText('close') }}</button> <button type=button class=btn ng-class=\"getClass('cancel')\" ng-if=\"doShow('cancel')\" ng-click=cancel($event)>{{ getText('cancel') }}</button></span> <span class=clearfix></span></li></ul>")}]),"object"===n(t)&&"object"===n(e)&&(e.exports="ui.bootstrap.datetimepicker")}).call(this,n(7)(e))},function(e,t,n){var i=n(0);n(75),n(76),n(77),n(78),n(79),n(80),n(81),n(84),n(114),n(85),n(86),i.Util.FHIRSupport=n(88),n(89),i._elementResizeDetectorMaker=n(90),e.exports=i},function(e){e.exports=JSON.parse('{"lformsVersion":"29.3.1"}')},function(e,t){angular.module("lformsWidget").constant("LF_CONSTANTS",{BLANK_GIF_DATAURL:"data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///////wAAACH5BAUUAAIALAAAAAABAAEAAAICVAEAOw==",EVENT_REPEATING_ITEM_ADDED:"LF_EVENT_REPEATING_ITEM_ADDED",EVENT_REPEATING_ITEM_DELETED:"LF_EVENT_REPEATING_ITEM_DELETED",VALIDATION_MESSAGE_INITIAL_SHOW_TIME:2e3})},function(e,t){angular.module("lformsWidget").service("lformsConfig",["$animate",function(e){"use strict";return{enableAnimate:function(){e.enabled(!0)},disableAnimate:function(){e.enabled(!1)}}}])},function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(0);angular.module("lformsWidget").controller("LFormsCtrl",["$window","$scope","$element","$timeout","$interval","$sce","smoothScroll","LF_CONSTANTS","lformsConfig",function(e,t,n,r,l,s,o,u,c){"use strict";t.debug=!1,t.hasUnused=!1,t.repeatingSectionStatus={},t.validationInitialShowTime=u.VALIDATION_MESSAGE_INITIAL_SHOW_TIME,t.blankGifDataUrl=u.BLANK_GIF_DATAURL,t.dateOptions={changeYear:!0,changeMonth:!0,yearRange:"1800:-0",showOn:"button",constrainInput:!1,showOtherMonths:!0,selectOtherMonths:!0,showMonthAfterYear:!0,buttonText:"Show date picker"},t.uibDateTimePickerFormat="MM/dd/yyyy HH:mm",t.uibDatePickerAltFormats=["yyyy","M/yyyy","MM/yyyy","yyyy/M","yyyy/MM","M/d/yyyy","MM/d/yyyy","M/dd/yyyy","MM/dd/yyyy","M/d/yyyy HH:mm","MM/d/yyyy HH:mm","M/dd/yyyy HH:mm","yyyy-MM","yyyy-MM-dd","yyyy-MM-dd HH:mm"],t.uibDatePickerOptions={showWeeks:!1},t.uibTimePickerOptions={arrowkeys:!0},t.openUibDtmPicker=function(e){this.isOpen=!0},t.uibDtmPickerButtonBar={show:!0,now:{},today:{},clear:{},date:{},time:{},close:{cls:"btn-sm btn-default lf-dtmpk-close"},cancel:{}},t.uibDtmPickerOnBlur=function(e){"input"===e&&this.isOpen&&setTimeout((function(){document.getElementsByClassName("lf-dtmpk-close")[0].click()}))},t.checkViewWidth=function(){var e=n.width();t._viewMode="",t._inputFieldWidth="",t._viewMode=e<=400?"sm":e<=600?"md":"lg",t._inputFieldWidth={width:e/2}},a._elementResizeDetectorMaker({strategy:"scroll"}).listenTo(n,(function(e){t.$apply(t.checkViewWidth())})),t.checkViewWidth(),t.getViewModeClass=function(){var e="";if(t.lfData){var n=t.lfData.templateOptions.viewMode;switch(n&&"auto"!==n||(n=t._viewMode),n){case"lg":e="lf-view-lg";break;case"md":e="lf-view-md";break;case"sm":e="lf-view-sm"}}return e},t.getItemViewModeClass=function(e){var n,i="";if(t.lfData)switch((n=e.displayControl&&e.displayControl.viewMode?e.displayControl.viewMode:t.lfData.templateOptions.viewMode)&&"auto"!==n||(n=t._viewMode),n){case"lg":i="lf-item-view-lg";break;case"md":i="lf-item-view-md";break;case"sm":i="lf-item-view-sm";break;default:i="lf-item-view-lg"}return i},t.setActiveRow=function(e){t.lfData.setActiveRow(e)},t.getFieldWidth=function(e){return"lf-item-view-lg"===t.getItemViewModeClass(e)?t._inputFieldWidth:null},t.setValidationInitialShowTime=function(e){t.validationInitialShowTime=e},t.activeRowOnBlur=function(e){if(e._visitedBefore)e._showValidation=!1;else{e._showValidation=!0;var n=l((function(){e._showValidation=!1,e._visitedBefore=!0,l.cancel(n)}),t.validationInitialShowTime)}},t.getActiveRowClass=function(e){return t.lfData.getActiveRowClass(e)},t.setFormData=function(e){t.lfData=e},t.isFormDone=function(){return t.lfData.isFormDone()},t.checkUnits=function(e){return!!(e._unitAutocompOptions||e._unitReadonly&&e.unit&&e.unit._displayUnit)},t.getSkipLogicClass=function(e){return t.lfData.getSkipLogicClass(e)},t.getHeaderItemStyle=function(e){var n={};if(e.displayControl&&angular.isArray(e.displayControl.colCSS)&&"lf-view-lg"===t.getViewModeClass())for(var i=e.displayControl.colCSS,a=0,r=i.length;a<r;a++){var l=i[a];n[l.name]=l.value}return n},t.getTableColumnStyle=function(e){var t={};if(e.displayControl&&angular.isArray(e.displayControl.colCSS))for(var n=e.displayControl.colCSS,i=0,a=n.length;i<a;i++){var r=n[i];t[r.name]=r.value}return t},t.getItemStyle=function(e){var t={};if(e.displayControl&&angular.isArray(e.displayControl.css))for(var n=0,i=e.displayControl.css.length;n<i;n++){var a=e.displayControl.css[n];t[a.name]=a.value}return t},t.targetShown=function(e){return!1!==e._enableWhenExpVal&&"target-disabled"!==t.lfData.getSkipLogicClass(e)},t.hideShowFormOptionPanel=function(){t.lfData.templateOptions.showFormOptionPanel=!t.lfData.templateOptions.showFormOptionPanel},t.isItemOptionPanelButtonShown=function(e){var n=t.lfData.templateOptions.showItemOptionPanelButton&&("SECTION"===e.dataType||e.answers&&("CWE"===e.dataType||"CNE"===e.dataType));return n||(e._showItemOptionPanel=!1),n},t.hideShowItemOptionPanel=function(e){t.isItemOptionPanelButtonShown(e)&&(e._showItemOptionPanel=!e._showItemOptionPanel)},t.isQuestionLayoutAllowed=function(e,t){var n=!1;if("matrix"===t||"horizontal"===t)if(n=!0,"SECTION"===e.dataType&&e.items&&e.items.length>0)for(var i=e.items[0].answers,a=e.items[0].dataType,r=e.items[0].answerCardinality,l=0,s=e.items.length;l<s;l++){var o=e.items[l];if("SECTION"===o.dataType||"TITLE"===o.dataType||o.items&&o.items.length>0){n=!1;break}if("matrix"===t){if("CWE"!==o.dataType&&"CNE"!==o.dataType){n=!1;break}if(l>0&&a!==e.items[l].dataType||!angular.equals(r,o.answerCardinality)||!angular.equals(i,o.answers)){n=!1;break}}}else n=!1;return n},t.getCodingInstructionsDisplayType=function(e){var n="";if(e.codingInstructions&&e.codingInstructions.length>0){var i=t.lfData.templateOptions.showCodingInstruction?"inline":"popover";if(t.lfData.templateOptions.allowHTMLInInstructions&&"html"===e.codingInstructionsFormat)var a="html";else a="escaped";n=i+"-"+a}return n},t.getTrustedCodingInstructions=function(e){return e.codingInstructions?s.trustAsHtml(e.codingInstructions):""},t.getRepeatingSN=function(e){var t="";e._questionRepeatable&&(t=e._idPath.slice(1).replace(/\//g,"."));return t},t.$watch((function(){var e=null;if(t.lfData&&t.lfData.itemList){e=[];for(var n=0,i=t.lfData.itemList.length;n<i;n++){var a=t.lfData.itemList[n];(a._formulaTargets||a._dataControlTargets||a._skipLogicTargets)&&e.push({value:a.value,unit:a.unit,id:a._elementId,enableWhenExp:a._enableWhenExpVal})}}return e}),(function(e,n){var i=[];if(e){if(n)if(n.length<e.length)i.push(e[e.length-1].id);else if(n.length>e.length);else for(a=0,r=e.length;a<r;a++)angular.equals(e[a],n[a])||i.push(e[a].id);else for(var a=0,r=e.length;a<r;a++)i.push(e[a].id);for(var l=0,s=i.length;l<s;l++){var o=t.lfData.itemHash[i[l]];t.updateOnSourceItemChange(o)}}}),!0),t.$watch("lfData",(function(){var e=t.lfData;c.disableAnimate(),e&&e.templateOptions&&e.templateOptions.useAnimation&&r((function(){e&&e.templateOptions&&e.templateOptions.useAnimation&&c.enableAnimate()}),1),a.FHIR&&(e?((e._hasResponsiveExpr||e._hasInitialExpr)&&e._hasResponsiveExpr&&(t.unwatchFHIRPath&&t.unwatchFHIRPath(),t.unwatchFHIRPath=t.$watch((function(){return JSON.stringify(e,(function(e,t){return 0===(e=""+e).indexOf("_")||0===e.indexOf("$$")?void 0:t}))}),(function(){e&&e._expressionProcessor.runCalculations(!1).then((function(){t.$evalAsync()}))}))),e._controllerInit||!e._hasResponsiveExpr&&!e._hasInitialExpr||e._expressionProcessor.runCalculations(!0).then((function(){t.$evalAsync()})),e._controllerInit=!0):(t.unwatchFHIRPath&&(t.unwatchFHIRPath(),t.unwatchFHIRPath=null),t.unwatchAsync&&(t.unwatchAsync(),t.unwatchAsync=null)))})),t.updateOnSourceItemChange=function(e){var n=t.lfData;n&&(n.updateOnSourceItemChange(e),t.sendActionsToScreenReader())},t.autoExpand=function(e){var t="object"===i(e)?e.target:document.getElementById(e),n=t.scrollHeight+2;t.style.height=n+"px"},t.getNumberOfQuestions=function(){var e=0,n=t.lfData;if(n&&n.itemList)for(var i=0,a=n.itemList.length;i<a;i++)n.itemList[i].header||e++;return e},t.getSiblingStatus=function(e){var t="";return e._lastSibling&&(t+="lf-last-item"),e._firstSibling&&(t+=" lf-first-item"),t},t.getIndentationStyle=function(){return t.lfData.templateOptions.useTreeLineStyle?"lf-indentation-tree":"lf-indentation-bar"},t.getRowClass=function(e){var t="level"+e._displayLevel;return t+=" lf-datatype-"+e.dataType,e._answerRequired&&(t+=" lf-answer-required"),e.header?t+=" lf-section-header":t+=" lf-question",e.question&&0!==e.question.length||(t+=" lf-empty-question"),e._visitedBefore&&(t+=" lf-visited-before"),e._showValidation&&(t+=" lf-show-validation"),e._isHiddenFromView&&(t+=" lf-hidden-from-view"),"TITLE"===e.dataType&&(t+=" lf-title-row"),t},t.addOneRepeatingItem=function(e,n){var i=t.lfData,a=!1;if(t.lfData&&!t.lfData.templateOptions.allowMultipleEmptyRepeatingItems&&(a=i.areAnyRepeatingItemsEmpty(e))&&e._showUnusedItemWarning&&(e._unusedItemWarning||(e._unusedItemWarning='Please enter info in the blank "'+e._text+'"'),t.sendMsgToScreenReader(e._unusedItemWarning)),!a){var r=n?i.appendRepeatingItems(e):i.addRepeatingItems(e);t.sendActionsToScreenReader(),t.$emit(u.EVENT_REPEATING_ITEM_ADDED,{event:u.EVENT_REPEATING_ITEM_ADDED,formId:t.lfData.code,itemId:r._elementId,time:new Date}),setTimeout((function(){var e=window.innerHeight||document.documentElement.clientHeight,t=jQuery("label[for='"+r._elementId+"']")[0],n=document.getElementById("del-"+r._elementId);if(t)var i=t;else if(n)i=n;if(i){var a=i.getBoundingClientRect();a&&a.bottom>e-70&&o(i,{duration:500,easing:"easeInQuad",offset:e-105}),n&&n.focus()}}),1)}},t.hideUnusedItemWarning=function(e){t.lfData&&!t.lfData.templateOptions.allowMultipleEmptyRepeatingItems&&(e._showUnusedItemWarning=!1)},t.sendMsgToScreenReader=function(e){a.Def.Autocompleter.screenReaderLog(e)},t.sendActionsToScreenReader=function(){var e=t.lfData;e._actionLogs.length>0&&(e._actionLogs.forEach((function(e){a.Def.Autocompleter.screenReaderLog(e)})),e._actionLogs=[])},t.removeOneRepeatingItem=function(e){var n=t.lfData,i=n.getNextRepeatingItem(e),a="";if(i)a=2===n.getRepeatingItemCount(e)?"add-"+i._elementId:"del-"+i._elementId;else{var r=n.getPrevRepeatingItem(e);r&&(a="add-"+r._elementId)}t.lfData.removeRepeatingItems(e),t.sendActionsToScreenReader(),t.$emit(u.EVENT_REPEATING_ITEM_DELETED,{event:u.EVENT_REPEATING_ITEM_DELETED,formId:t.lfData.code,itemId:e._elementId,time:new Date}),setTimeout((function(){var e=document.getElementById(a);e&&e.focus()}),1)},t.hasOneRepeatingItem=function(e){return!(t.lfData.getRepeatingItemCount(e)>1)},t.hasOneRepeatingRow=function(e){var n=!1,i=t.lfData._horizontalTableInfo[e._codePath+e._parentIdPath_];return i&&i.tableRows&&1===i.tableRows.length&&(n=!0),n},t.needExtra=function(e){return t.lfData.needExtra(e)},t.getUserData=function(e,n,i){return t.lfData.getUserData(e,n,i)},t.getFormData=function(){return t.lfData.getFormData()},t.onclick=function(){},t.getAnswerLayoutColumnClass=function(e){var t="";if(e&&e.displayControl&&e.displayControl.answerLayout&&"RADIO_CHECKBOX"===e.displayControl.answerLayout.type){var n=parseInt(e.displayControl.answerLayout.columns);(isNaN(n)||n>6||n<0)&&(n=0),t="lf-"+n+"-col"}return t},t.updateCheckboxList=function(e,t){if(e.value&&angular.isArray(e.value)){for(var n,i=!1,a=0,r=e.value.length;a<r;a++)if(angular.equals(e.value[a],t)){i=!0,n=a;break}i?e.value.splice(n,1):e.value.push(t)}else e.value=[t]},t.updateCheckboxListForOther=function(e,t){var n={text:t,_notOnList:!0};if(e._otherValueChecked)if(e.value&&angular.isArray(e.value)){for(var i=!1,a=0,r=e.value.length;a<r;a++)if(e.value[a]._notOnList){e.value[a]=n,i=!0;break}i||e.value.push(n)}else e.value=[n];else if(e.value&&angular.isArray(e.value)){var l;for(i=!1,a=0,r=e.value.length;a<r;a++)if(e.value[a]._notOnList){i=!0,l=a;break}i&&e.value.splice(l,1)}},t.updateRadioList=function(e){e._otherValueChecked=!1},t.updateRadioListForOther=function(e,t){e._otherValueChecked&&(e.value={text:t,_notOnList:!0})},t.checkAnswer=function(e,t){var n=!1;if(e&&e.value)if(angular.isArray(e.value))for(var i=0,a=e.value.length;i<a;i++){if(e.value[i].text===t.text){n=!0;break}}else e.value.text===t.text&&(n=!0);return n},t.handleNavigationKeyEventByTab=function(e){var n=t.lfData;if(n.templateOptions.tabOnInputFieldsOnly&&e.keyCode===n.Navigation.TAB){if(e.shiftKey)var i=n.Navigation.ARROW.LEFT;else i=n.Navigation.ARROW.RIGHT;var a,r=e.target.id;do{r=n.Navigation.getNextFieldId(i,r),a=document.getElementById(r)}while(r&&(!a||!jQuery(a).is(":visible")));var l=e.target;a&&a.id!==l.id&&(e.preventDefault(),e.stopPropagation(),setTimeout((function(){a.focus(),a.select()}),1),l.blur())}},t.handleNavigationKeyEventByArrowKeys=function(e){var n=t.lfData,i=n.Navigation.ARROW;if(e.ctrlKey&&jQuery.inArray(e.keyCode,[i.LEFT,i.UP,i.RIGHT,i.DOWN])>=0){var a,r=e.target.id;do{r=n.Navigation.getNextFieldId(e.keyCode,r),a=document.getElementById(r)}while(r&&(!a||!jQuery(a).is(":visible")));var l=e.target;a&&a.id!==l.id&&(e.preventDefault(),e.stopPropagation(),setTimeout((function(){a.focus()}),1),l.blur())}}}])},function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){"use strict";var e=n(0);angular.module("lformsWidget").factory("RecursionHelper",["$compile",function(e){return{compile:function(t,n){angular.isFunction(n)&&(n={post:n});var i,a=t.contents().remove();return{pre:n&&n.pre?n.pre:null,post:function(t,r){i||(i=e(a)),i(t,(function(e){r.append(e)})),n&&n.post&&n.post.apply(null,arguments)}}}}}]).directive("lfItem",(function(){return{restrict:"E",transclude:!0,templateUrl:"item.html"}})).directive("lfTableItem",["RecursionHelper",function(e){return{restrict:"E",templateUrl:"table-item.html",compile:function(t){return e.compile(t)}}}]).constant("lfDateConfig",{}).directive("lfDate",["lfDateConfig","$timeout",function(t,n){var a;return a={},angular.extend(a,t),{require:"?ngModel",link:function(n,a,r,l){n.$watch({},(function(){var s=!1,o=angular.extend({},t,n.$eval(r.lfDate));if(l){var u=o.onSelect||angular.noop;o.onSelect=function(e,t){s=!0,l.$setViewValue(a.datepicker("getDate")),u(e,t),a.change()},o.beforeShow=function(){a.click(),s=!0},o.onClose=function(e,t){s=!1},a.on("change",(function(){var t=e.Util.stringToDate(this.value);t&&(l.$setViewValue(t),a.datepicker("setDate",t),s||n.$apply((function(){a.datepicker("setDate",a.datepicker("getDate")),l.$setViewValue(a.datepicker("getDate"))})))})),l.$render=function(){var t=l.$viewValue;if(angular.isDefined(t)&&null!==t&&!angular.isDate(t)&&"string"!=typeof t)throw new Error("ng-Model value must be a Date object or a string - currently it is a "+i(t));"string"==typeof t&&(t=e.Util.stringToDate(t,!0)),a.datepicker("setDate",t)}}a.datepicker("destroy"),a.datepicker(o),l&&l.$render()}),!0)}}}]).directive("lfAnswers",(function(){return{restrict:"E",transclude:!0,templateUrl:"field-answers.html"}})).directive("lfUnits",(function(){return{restrict:"E",scope:{item:"="},transclude:!0,templateUrl:"field-units.html"}})).directive("lfSectionHorizontal",(function(){return{restrict:"E",transclude:!0,templateUrl:"layout-horizontal.html"}})).directive("lfSectionMatrix",(function(){return{restrict:"E",transclude:!0,templateUrl:"layout-matrix.html"}})).directive("lfRepeatingButton",(function(){return{restrict:"E",transclude:!0,templateUrl:"repeating-button.html"}})).directive("lfFormControls",(function(){return{restrict:"E",transclude:!0,templateUrl:"form-controls.html"}})).directive("lfFormTitle",(function(){return{restrict:"E",transclude:!0,templateUrl:"form-title.html"}})).directive("lfFormOptions",(function(){return{restrict:"E",transclude:!0,templateUrl:"form-options.html"}})).directive("lfItemOptions",(function(){return{restrict:"E",transclude:!0,templateUrl:"item-options.html"}})).directive("lfFormHeader",(function(){return{restrict:"E",transclude:!0,templateUrl:"form-header.html"}})).directive("lfAttachment",["$timeout",function(e){return{restrict:"E",templateUrl:"attachment.html",scope:{item:"=",labelledBy:"="},controller:["$scope",function(t){t.removeAttachment=function(e){delete e.value,delete e._attachmentName,delete e._attachmentURL,delete e._fileInfo,delete e._useURL},t.createAttachment=function(e){if(e._fileInfo||e._attachmentURL){var n;e.value={title:e._attachmentName||(null===(n=e._fileInfo)||void 0===n?void 0:n.name)};var i=e.value;if(e._attachmentURL&&(i.url=e._attachmentURL),e._fileInfo){var a=e._fileInfo;i.contentType=a.type,a.lastModified?i.creation=new Date(a.lastModified).toISOString():a.lastModifiedDate&&(i.creation=a.lastModifiedDate.toISOString()),e.value._progress=.001;var r=new FileReader;r.onload=function(e){var n=e.target.result,a=n.indexOf(",");if(0!=n.indexOf("data:")||a<0)throw new Error("data URL did not start with expected prefix, but with "+n.slice(0,30));t.$apply((function(){delete i._progress,i.data=n.slice(a+1)}))},r.onprogress=function(n){t.$apply((function(){e._progress=n.loaded/n.total}))},r.readAsDataURL(a)}}else alert("An attachment must have either a file or a URL (or both).")},t.downloadAttachment=function(t,n){if(t.data){var i=n.target,a=i.href;i.href="data:"+(t.contentType?t.contentType:"")+";base64,"+t.data,i.download=t.title,e((function(){i.href=a}))}}}],link:function(e,t,n){t.bind("change",(function(n){if(n.target.files){var i=n.target.files[0],a=e.item;if(i.type){if(a.allowedAttachmentTypes&&a.allowedAttachmentTypes.indexOf(i.type)<0){var r=a.allowedAttachmentTypes;alert("The file "+i.name+" is not one of the mime types permitted by this questionnaire ("+r.slice(0,-1).join(", ")+" and "+r.slice(-1)+"). Please make sure your file has an appropriate file extension for its type in its filename."),i=null}else if(i.size>a.maxAttachmentSize){var l="The file "+i.name+" exceeds the maximum attachment size of "+a.maxAttachmentSize+" bytes permitted by this questionnaire. If you can specify the file with a URL, use the button to open the URL field and enter that instead.";alert(l),i=null}else if(i.size>5e8){l="Adding a large file as an attachment might cause your computer to run low on memory. There is a button to enter a URL instead of attaching the file data. Are you sure you want to attach the file data?";confirm(l)||(i=null)}}else alert("Unknown file type. Please ensure the file has an appropriate extension"),i=null;i||(t[0].getElementsByTagName("input")[0].value=null),a._fileInfo=i,i&&!a._useURL&&e.$apply((function(){e.createAttachment(a)}))}}))}}}]).directive("lfValidate",(function(){return{require:"ngModel",restrict:"A",scope:{itemData:"=lfValidate"},template:'<div ng-repeat="error in itemData._validationErrors"><div class="validation-error">"{{itemData.question}}" {{error}}</div></div>',link:function(t,n,i,a){function r(n,i,a){n._validationErrors=[];var r=e.Validations.checkDataType(n.dataType,i,n._validationErrors);a.$setValidity("lf-datatype",r);var l=e.Validations.checkRestrictions(n.restrictions,i,n._validationErrors);a.$setValidity("lf-restrictions",l);var s=e.Validations.checkRequired(n._answerRequired,i,n._validationErrors);a.$setValidity("lf-required",s);for(var o=0,u=n._validationErrors.length;o<u;++o)t.$parent.sendMsgToScreenReader('"'+n._text+'"'+n._validationErrors[o]);return r&&l&&s}a.$parsers.unshift((function(e){if(void 0!==e)return t.itemData._validationErrors=[],r(t.itemData,e,a)?e:void 0})),a.$formatters.unshift((function(e){if(void 0!==e)return t.itemData._validationErrors=[],r(t.itemData,e,a),e}))}}}))}()},function(e,t){angular.module("lformsWidget").config(["$provide",function(e){for(var t={uibPopoverPopupDirective:"uib-popover-templates/uib-popover.html",uibPopoverTemplatePopupDirective:"uib-popover-templates/uib-popover-template.html"},n=Object.keys(t),i=n.length,a=0;a<i;++a){var r=n[a],l=t[r];e.decorator(r,["$delegate",function(e){return function(t){return t[0].templateUrl=e,t}}(l)])}}])},function(e,t){!function(){if(!window.console){window.console={};for(var e=["log","info","warn","error","debug","trace","dir","group","groupCollapsed","groupEnd","time","timeEnd","profile","profileEnd","dirxml","assert","count","markTimeline","timeStamp","clear"],t=0;t<e.length;t++)window.console[e[t]]||(window.console[e[t]]=function(){})}}()},function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var a=n(82),r=["M/D/YYYY","M/D/YY","M/D","M-D-YYYY","M-D-YY","M-D","YYYY","YYYY-M-D","YYYY/M/D",a.ISO_8601,"M/D/YYYY HH:mm","M/D/YY HH:mm","M/D HH:mm","M-D-YYYY HH:mm","M-D-YY HH:mm","M-D HH:mm"],l=n(0);l.Util={addFormToPage:function(e,t,n){t="string"==typeof t?$("#"+t):$(t);"string"==typeof e&&(e=e.indexOf("{")>=0?JSON.parse(e):window[e]);var i=e.resourceType,a=n&&n.fhirVersion;if("Questionnaire"===i)e=this.convertFHIRQuestionnaireToLForms(e,a);else if(i)throw new Error("Only Questionnaire FHIR content is supported in addFormToPage.");this.pageFormID_||(this.pageFormID_=0);var r="LFormsApp"+ ++this.pageFormID_,s="LFormsAppController"+this.pageFormID_;l.addedFormDefs||(l.addedFormDefs=[]);var o=l.addedFormDefs.length;l.addedFormDefs.push(e);var u=n&&!0===n.prepopulate;t.html('<div ng-controller="'+s+'"><lforms lf-data="myFormData"></lforms></div>');var c=new Promise((function(e,t){angular.module(r,["lformsWidget"]).controller(s,["$scope",function(n){try{var i=new l.LFormsData(l.addedFormDefs[o]);l.fhirContext?i.loadFHIRResources(u).then((function(){n.$apply((function(){n.myFormData=i,e()}))}),(function(e){t(e)})):(n.myFormData=i,e())}catch(e){t(e)}}])})).catch((function(e){var n=e instanceof Error?e.message:e.toString();throw t.html('<div id=lformsErrors style="color: red"><b>Unable to display the form, due to the following error:</b><p id=lformsErrorContent></p>'),$("#lformsErrorContent").text(n),e}));return t.injector&&t.injector()||angular.bootstrap(t.children(":first"),[r]),c},getUserData:function(e,t,n,i){var a=this._getFormObjectInScope(e);return a?a.getUserData(t,n,i):null},getFormData:function(e,t,n){var i=this._getFormObjectInScope(e);return i?i.getFormData(t,n):null},getFormHL7Data:function(e){var t=this._getFormObjectInScope(e);return t?l.HL7.toHL7Segments(t):null},getFormFHIRData:function(e,t,n,i){return(!n||n instanceof HTMLElement||"string"==typeof n)&&(n=this._getFormObjectInScope(n)),this._convertLFormsToFHIRData(e,t,n,i)},checkValidity:function(e){var t=this._getFormObjectInScope(e);return t?t.checkValidity():null},_convertLFormsToFHIRData:function(e,t,n,i){i||(i={}),n instanceof l.LFormsData||(n=new l.LFormsData(n));var a=this.validateFHIRVersion(t),r=l.FHIR[a],s=null;if(n)switch(e){case"DiagnosticReport":var o=i?i.bundleType:void 0,u=null!=o;s=r.DiagnosticReport.createDiagnosticReport(n,i.subject,u,o);break;case"Questionnaire":s=r.SDC.convertLFormsToQuestionnaire(n,i.noExtensions);break;case"QuestionnaireResponse":s=i.extract?r.SDC.convertLFormsToFHIRData(n,i.noExtensions,i.subject):r.SDC.convertLFormsToQuestionnaireResponse(n,i.noExtensions,i.subject)}return s},convertFHIRQuestionnaireToLForms:function(e,t){var n=null;e&&(t=this._requireValidFHIRVersion(t,e),n=l.FHIR[t].SDC.convertQuestionnaireToLForms(e));return n},mergeFHIRDataIntoLForms:function(e,t,n,i){if(t){i=this._requireValidFHIRVersion(i,t);var a=l.FHIR[i];switch(e){case"DiagnosticReport":(n=a.DiagnosticReport.mergeDiagnosticReportToLForms(n,t)).hasSavedData=!0;break;case"QuestionnaireResponse":(n=a.SDC.mergeQuestionnaireResponseToLForms(n,t)).hasSavedData=!0}}return n},_requireValidFHIRVersion:function(e,t){if(e||(e=this.detectFHIRVersion(t)||this.guessFHIRVersion(t)),!e)throw new Error("Could not determine the FHIR version for this resource. Please make sure it is specified via meta.profile (see http://build.fhir.org/versioning.html#mp-version and https://www.hl7.org/fhir/references.html#canonical). Example 1: http://hl7.org/fhir/4.0/StructureDefinition/Questionnaire (for Questionnaire version 4.0, a.k.a. R4).Example 2: http://hl7.org/fhir/3.0/StructureDefinition/Questionnaire (for Questionnaire version 3.0, a.k.a. STU3).Example 3: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire|2.7 (for SDC Questionnaire version 2.7).");return e=this.validateFHIRVersion(e)},setFHIRContext:function(e){if(!l.FHIR)throw new Error("LHC-Forms FHIR support files have not been loaded.See http://lhncbc.github.io/lforms/#fhirScripts");l.fhirContext=e,l.fhirCapabilities={},delete l._serverFHIRReleaseID},_fhirVersionToRelease:function(e){var t=e,n=e.match(/^\d+(\.\d+)/);if(n){var i=parseFloat(n[0]);t=i>3&&i<=4?"R4":i>=1.1&&i<=3?"STU3":e}return t},getServerFHIRReleaseID:function(e){if(!l.fhirContext)throw new Error("setFHIRContext needs to be called before getFHIRReleaseID");if(l._serverFHIRReleaseID)setTimeout((function(){e(l._serverFHIRReleaseID)}));else try{l.fhirContext.getFhirVersion().then((function(t){l._serverFHIRReleaseID=l.Util._fhirVersionToRelease(t),console.log("Server FHIR version is "+l._serverFHIRReleaseID+" ("+t+")"),e(l._serverFHIRReleaseID)}),(function(t){console.log("Error retrieving server's CompatibilityStatement:"),console.log(t),e()}))}catch(t){throw setTimeout((function(){e()})),t}},validateFHIRVersion:function(e){if(!l.Util.FHIRSupport[e])throw new Error("Version "+e+" of FHIR is not supported.");if(!l.FHIR)throw new Error("The FHIR support files for LHC-Forms do not appear to have been loaded. Please consult the documentation at http://lhncbc.github.io/lforms/#fhirSupport.");if(!l.FHIR[e])throw new Error("Version "+e+" of FHIR is supported, but the supporting code was not loaded.");return e},detectFHIRVersion:function(e){var t;if(e.meta&&e.meta.profile)for(var n=e.meta.profile,i=new RegExp("http://hl7.org/fhir/(\\d+.\\d+)([\\.\\d]+)?/StructureDefinition/Questionnaire"),a=new RegExp("http://hl7.org/fhir/u./sdc/StructureDefinition/sdc-questionnaire\\|(\\d+.\\d+)(.\\d+)?"),r=0,l=n.length&&!t;r<l;++r){var s=n[r].match(i);s?t=s[1]:(s=n[r].match(a))&&("2.0"==(t=s[1])?t="3.0":parseFloat(t)>=2.1&&(t="4.0"))}return t&&(t=this._fhirVersionToRelease(t)),t},guessFHIRVersion:function(e){var t=null;if("Questionnaire"==e.resourceType){t=this._testValues(e,"item",(function(e){return!!(e.option||e.options||e.enableWhen&&"hasAnswer"in e.enableWhen)}))?"STU3":"R4"}else if("QuestionnaireResponse"==e.resourceType){if(e.parent)t="STU3";else t=this._testValues(e,"item",(function(e){return!!e.subject}))?"STU3":"R4"}return t},_testValues:function(e,t,n){var a=!1;if(e instanceof Array)for(var r=0,l=e.length;!a&&r<l;++r)a=this._testValues(e[r],t,n);else if("object"===i(e))for(var s=Object.keys(e),o=0,u=s.length;!a&&o<u;++o){var c=s[o],f=e[c];if(c===t)if(f instanceof Array)for(var d=0,p=f.length;!a&&d<p;++d)a=n(f[d]);else a=n(f);a||(a=this._testValues(f,t,n))}return a},_getFormObjectInScope:function(e){var t;e||(e=jQuery("body"));var n=jQuery(e).find(".lf-form");return angular.forEach(n,(function(e,n){var i=angular.element(e);if(i.scope()&&i.scope().lfData)return t=i.scope().lfData,!1})),t},dateToDTStringISO:function(e){return e&&e instanceof Date&&!isNaN(e.getTime())?[(1e4+e.getFullYear()).toString().substr(1),(101+e.getMonth()).toString().substr(1),(100+e.getDate()).toString().substr(1)].join("-"):void 0},stringToDTDateISO:function(e){var t=new Date(e);return isNaN(t.getTime())?void 0:new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},dateToDTMString:function(e){return"string"==typeof e&&(e=l.Util.stringToDate(e,!0)),e.toISOString()},stringToDate:function(e,t){if(!e||"string"!=typeof e)return e;if("t"===e.trim())return new Date;var n=a(e,r,!0);return t&&!n.isValid()&&(n=a(e)),n.isValid()?n.toDate():null},isValidDate:function(e){return!!l.Util.stringToDate(e)},formatDate:function(e,t){return a(e).format(t)},isItemValueEmpty:function(e){var t=!0;if(null!=e&&""!==e&&"function"!=typeof e)if("string"==typeof e||e instanceof String)t=""===e.trim();else if(Array.isArray(e)){for(var n=0;n<e.length;++n)if(!this.isItemValueEmpty(e[n])){t=!1;break}}else if("object"===i(e)){var a=Object.keys(e);if(a.length>0){n=0;for(var r=a.length;n<r;n++)if(!this.isItemValueEmpty(e[a[n]])){t=!1;break}}else e.constructor!==Object&&(t=!1)}else t=!1;return t},getNextLetter:function(e){for(var t=[],n=e;n>0;){var i=n%26;i=0===i?25:i-1,t.push(i),n=Math.floor((n-1)/26)}for(var a="",r=t.length-1;r>=0;r--)a+="abcdefghijklmnopqrstuvqxyz".charAt(t[r]);return a},findObjectInArray:function(e,t,n,i,a){var r=a?[]:null;if(Array.isArray(e)){var l=0;i&&Math.abs(i)<e.length&&(l=i<0?e.length+i:i);for(var s=e.length,o=l;o<s;o++)if(e[o][t]===n){var u=e[o];if(!a){r=u;break}r.push(u)}}return r},findItem:function(e,t,n){var i=null;if(e)for(var a=0;!i&&a<e.length;++a){var r=e[a];r[t]===n?i=r:Array.isArray(r.items)&&(i=this.findItem(r.items,t,n))}return i},_pruneObject:function(e,t,n){if("object"===i(t))for(var a in t)if(a.match(e))delete t[a];else if(n&&a===n){var r=t[a];if(Array.isArray(r))for(var l=r.length,s=0;s<l;s++)this._pruneObject(e,r[s],n);else this._pruneObject(e,r,n)}},pruneNulls:function(e){if(Array.isArray(e))for(var t=e.length-1;t>=0;t--)null===e[t]||void 0===e[t]?e.splice(t,1):"object"===i(e[t])&&l.Util.pruneNulls(e[t]);else if(e&&"object"===i(e)){Object.keys(e).forEach((function(t){null===e[t]||void 0===e[t]?delete e[t]:"object"===i(e[t])&&l.Util.pruneNulls(e[t])}))}},initializeCodes:function(e){var t=e.question||e.questionCode,n=t?e.questionCode:e.code,i=t?e.questionCodeSystem:e.codeSystem,a=t?e.question:e.name,r=l.Util.getCodeSystem(i);if(n){e.codeList||(e.codeList=[]);for(var s=e.codeList,o=!1,u=0;u<s.length;u++)if(n===s[u].code&&(!r&&!s[u].system||r===s[u].system)){o=!0;break}if(!o&&"LinkId"!==r){n={code:n,display:a};r&&(n.system=r),s.unshift(n)}}else e.codeList&&e.codeList.length>0&&(t?(e.questionCode=e.codeList[0].code,e.questionCodeSystem=e.codeList[0].system):(e.code=e.codeList[0].code,e.codeSystem=e.codeList[0].system));return e},createLocalFHIRReference:function(e){var t={reference:e.resourceType+"/"+e.id};if("Patient"===e.resourceType&&e.name&&e.name.length>0){var n=e.name[0];n.text?t.display=n.text:(n.given&&n.given.length>0&&(t.display=n.given[0]),n.family&&(t.display?t.display=t.display+" "+n.family:t.display=n.family))}return t},getCodeSystem:function(e){var t;switch(e){case"LOINC":t="http://loinc.org";break;default:t=e}return t},removeObjectsFromArray:function(e,t,n,i,a){var r=a?[]:null,l=a?[]:null;if(Array.isArray(e)){var s=0;i&&Math.abs(i)<e.length&&(s=i<0?e.length+i:i);for(var o=e.length,u=s;u<o;u++)if(e[u][t]===n){var c=e[u];if(!a){r=u,l=c;break}r.push(u),l.push(c)}if(Array.isArray(r))for(u=r.length-1;u>=0;u--)e.splice(r[u],1);else null!==r&&e.splice(r,1)}return l},baseFormDef:function(){return{lformsVersion:l.lformsVersion}},getAnswersResourceStatus:function(e){return(!e||e instanceof HTMLElement||"string"==typeof e)&&(e=this._getFormObjectInScope(e)),e.checkAnswersResourceStatus()},deepCopy:function(e){return angular.copy(e)},showWarning:function(e,t){t&&(e='The question "'+t.text+'" produced the following warning: '+e),console.log(e)}}},function(e,t,n){(function(e){var i,a,r;function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}
69
+ //! moment.js
70
+ //! version : 2.27.0
71
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
72
+ //! license : MIT
73
+ //! momentjs.com
74
+ r=function(){"use strict";var t,i;function a(){return t.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function c(e){return void 0===e}function f(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function p(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function m(e,t){for(var n in t)o(t,n)&&(e[n]=t[n]);return o(t,"toString")&&(e.toString=t.toString),o(t,"valueOf")&&(e.valueOf=t.valueOf),e}function h(e,t,n,i){return Mt(e,t,n,i,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function v(e){if(null==e._isValid){var t=g(e),n=i.call(t.parsedDateParts,(function(e){return null!=e})),a=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(a=a&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return a;e._isValid=a}return e._isValid}function y(e){var t=h(NaN);return null!=e?m(g(t),e):g(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=a.momentProperties=[],_=!1;function C(e,t){var n,i,a;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),b.length>0)for(n=0;n<b.length;n++)c(a=t[i=b[n]])||(e[i]=a);return e}function w(e){C(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,a.updateOffset(this),_=!1)}function $(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function k(e){!1===a.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return m((function(){if(null!=a.deprecationHandler&&a.deprecationHandler(null,e),n){var i,r,s,u=[];for(r=0;r<arguments.length;r++){if(i="","object"===l(arguments[r])){for(s in i+="\n["+r+"] ",arguments[0])o(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[r];u.push(i)}k(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var M,I={};function L(e,t){null!=a.deprecationHandler&&a.deprecationHandler(e,t),I[e]||(k(t),I[e]=!0)}function A(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e,t){var n,i=m({},e);for(n in t)o(t,n)&&(s(e[n])&&s(t[n])?(i[n]={},m(i[n],e[n]),m(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)o(e,n)&&!o(t,n)&&s(e[n])&&(i[n]=m({},i[n]));return i}function T(e){null!=e&&this.set(e)}function x(e,t,n){var i=""+Math.abs(e),a=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+i}a.suppressDeprecationWarnings=!1,a.deprecationHandler=null,M=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)o(e,t)&&n.push(t);return n};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,q={},E={};function N(e,t,n,i){var a=i;"string"==typeof i&&(a=function(){return this[i]()}),e&&(E[e]=a),t&&(E[t[0]]=function(){return x(a.apply(this,arguments),t[1],t[2])}),n&&(E[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function R(e,t){return e.isValid()?(t=P(t,e.localeData()),q[t]=q[t]||function(e){var t,n,i,a=e.match(D);for(t=0,n=a.length;t<n;t++)E[a[t]]?a[t]=E[a[t]]:a[t]=(i=a[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,r="";for(i=0;i<n;i++)r+=A(a[i])?a[i].call(t,e):a[i];return r}}(t),q[t](e)):e.localeData().invalidDate()}function P(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(U.lastIndex=0;n>=0&&U.test(e);)e=e.replace(U,i),U.lastIndex=0,n-=1;return e}var F={};function H(e,t){var n=e.toLowerCase();F[n]=F[n+"s"]=F[t]=e}function V(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function B(e){var t,n,i={};for(n in e)o(e,n)&&(t=V(n))&&(i[t]=e[n]);return i}var j={};function z(e,t){j[e]=t}function Y(e){return e%4==0&&e%100!=0||e%400==0}function G(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function W(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=G(t)),n}function K(e,t){return function(n){return null!=n?(J(this,e,n),a.updateOffset(this,t),this):Q(this,e)}}function Q(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function J(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&Y(e.year())&&1===e.month()&&29===e.date()?(n=W(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),$e(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}var X,Z=/\d/,ee=/\d\d/,te=/\d{3}/,ne=/\d{4}/,ie=/[+-]?\d{6}/,ae=/\d\d?/,re=/\d\d\d\d?/,le=/\d\d\d\d\d\d?/,se=/\d{1,3}/,oe=/\d{1,4}/,ue=/[+-]?\d{1,6}/,ce=/\d+/,fe=/[+-]?\d+/,de=/Z|[+-]\d\d:?\d\d/gi,pe=/Z|[+-]\d\d(?::?\d\d)?/gi,me=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function he(e,t,n){X[e]=A(t)?t:function(e,i){return e&&n?n:t}}function ge(e,t){return o(X,e)?X[e](t._strict,t._locale):new RegExp(ve(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,a){return t||n||i||a}))))}function ve(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}X={};var ye,be={};function _e(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),f(t)&&(i=function(e,n){n[t]=W(e)}),n=0;n<e.length;n++)be[e[n]]=i}function Ce(e,t){_e(e,(function(e,n,i,a){i._w=i._w||{},t(e,i._w,i,a)}))}function we(e,t,n){null!=t&&o(be,e)&&be[e](t,n._a,n,e)}function $e(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?Y(e)?29:28:31-i%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},N("M",["MM",2],"Mo",(function(){return this.month()+1})),N("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),N("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),H("month","M"),z("month",8),he("M",ae),he("MM",ae,ee),he("MMM",(function(e,t){return t.monthsShortRegex(e)})),he("MMMM",(function(e,t){return t.monthsRegex(e)})),_e(["M","MM"],(function(e,t){t[1]=W(e)-1})),_e(["MMM","MMMM"],(function(e,t,n,i){var a=n._locale.monthsParse(e,i,n._strict);null!=a?t[1]=a:g(n).invalidMonth=e}));var ke="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Se="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Me=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ie=me,Le=me;function Ae(e,t,n){var i,a,r,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(a=ye.call(this._shortMonthsParse,l))?a:null:-1!==(a=ye.call(this._longMonthsParse,l))?a:null:"MMM"===t?-1!==(a=ye.call(this._shortMonthsParse,l))||-1!==(a=ye.call(this._longMonthsParse,l))?a:null:-1!==(a=ye.call(this._longMonthsParse,l))||-1!==(a=ye.call(this._shortMonthsParse,l))?a:null}function Oe(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=W(t);else if(!f(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),$e(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function Te(e){return null!=e?(Oe(this,e),a.updateOffset(this,!0),this):Q(this,"Month")}function xe(){function e(e,t){return t.length-e.length}var t,n,i=[],a=[],r=[];for(t=0;t<12;t++)n=h([2e3,t]),i.push(this.monthsShort(n,"")),a.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),a.sort(e),r.sort(e),t=0;t<12;t++)i[t]=ve(i[t]),a[t]=ve(a[t]);for(t=0;t<24;t++)r[t]=ve(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function De(e){return Y(e)?366:365}N("Y",0,0,(function(){var e=this.year();return e<=9999?x(e,4):"+"+e})),N(0,["YY",2],0,(function(){return this.year()%100})),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),H("year","y"),z("year",1),he("Y",fe),he("YY",ae,ee),he("YYYY",oe,ne),he("YYYYY",ue,ie),he("YYYYYY",ue,ie),_e(["YYYYY","YYYYYY"],0),_e("YYYY",(function(e,t){t[0]=2===e.length?a.parseTwoDigitYear(e):W(e)})),_e("YY",(function(e,t){t[0]=a.parseTwoDigitYear(e)})),_e("Y",(function(e,t){t[0]=parseInt(e,10)})),a.parseTwoDigitYear=function(e){return W(e)+(W(e)>68?1900:2e3)};var Ue=K("FullYear",!0);function qe(e,t,n,i,a,r,l){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,a,r,l),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,a,r,l),s}function Ee(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ne(e,t,n){var i=7+t-n;return-(7+Ee(e,0,i).getUTCDay()-t)%7+i-1}function Re(e,t,n,i,a){var r,l,s=1+7*(t-1)+(7+n-i)%7+Ne(e,i,a);return s<=0?l=De(r=e-1)+s:s>De(e)?(r=e+1,l=s-De(e)):(r=e,l=s),{year:r,dayOfYear:l}}function Pe(e,t,n){var i,a,r=Ne(e.year(),t,n),l=Math.floor((e.dayOfYear()-r-1)/7)+1;return l<1?i=l+Fe(a=e.year()-1,t,n):l>Fe(e.year(),t,n)?(i=l-Fe(e.year(),t,n),a=e.year()+1):(a=e.year(),i=l),{week:i,year:a}}function Fe(e,t,n){var i=Ne(e,t,n),a=Ne(e+1,t,n);return(De(e)-i+a)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),H("week","w"),H("isoWeek","W"),z("week",5),z("isoWeek",5),he("w",ae),he("ww",ae,ee),he("W",ae),he("WW",ae,ee),Ce(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=W(e)})),N("d",0,"do","day"),N("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),N("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),N("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),H("day","d"),H("weekday","e"),H("isoWeekday","E"),z("day",11),z("weekday",11),z("isoWeekday",11),he("d",ae),he("e",ae),he("E",ae),he("dd",(function(e,t){return t.weekdaysMinRegex(e)})),he("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),he("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ce(["dd","ddd","dddd"],(function(e,t,n,i){var a=n._locale.weekdaysParse(e,i,n._strict);null!=a?t.d=a:g(n).invalidWeekday=e})),Ce(["d","e","E"],(function(e,t,n,i){t[i]=W(e)}));var Ve="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Be="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),je="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ze=me,Ye=me,Ge=me;function We(e,t,n){var i,a,r,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(a=ye.call(this._weekdaysParse,l))?a:null:"ddd"===t?-1!==(a=ye.call(this._shortWeekdaysParse,l))?a:null:-1!==(a=ye.call(this._minWeekdaysParse,l))?a:null:"dddd"===t?-1!==(a=ye.call(this._weekdaysParse,l))||-1!==(a=ye.call(this._shortWeekdaysParse,l))||-1!==(a=ye.call(this._minWeekdaysParse,l))?a:null:"ddd"===t?-1!==(a=ye.call(this._shortWeekdaysParse,l))||-1!==(a=ye.call(this._weekdaysParse,l))||-1!==(a=ye.call(this._minWeekdaysParse,l))?a:null:-1!==(a=ye.call(this._minWeekdaysParse,l))||-1!==(a=ye.call(this._weekdaysParse,l))||-1!==(a=ye.call(this._shortWeekdaysParse,l))?a:null}function Ke(){function e(e,t){return t.length-e.length}var t,n,i,a,r,l=[],s=[],o=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),i=ve(this.weekdaysMin(n,"")),a=ve(this.weekdaysShort(n,"")),r=ve(this.weekdays(n,"")),l.push(i),s.push(a),o.push(r),u.push(i),u.push(a),u.push(r);l.sort(e),s.sort(e),o.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+l.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Je(e,t){N(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Xe(e,t){return t._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Qe),N("k",["kk",2],0,(function(){return this.hours()||24})),N("hmm",0,0,(function(){return""+Qe.apply(this)+x(this.minutes(),2)})),N("hmmss",0,0,(function(){return""+Qe.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)})),N("Hmm",0,0,(function(){return""+this.hours()+x(this.minutes(),2)})),N("Hmmss",0,0,(function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)})),Je("a",!0),Je("A",!1),H("hour","h"),z("hour",13),he("a",Xe),he("A",Xe),he("H",ae),he("h",ae),he("k",ae),he("HH",ae,ee),he("hh",ae,ee),he("kk",ae,ee),he("hmm",re),he("hmmss",le),he("Hmm",re),he("Hmmss",le),_e(["H","HH"],3),_e(["k","kk"],(function(e,t,n){var i=W(e);t[3]=24===i?0:i})),_e(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),_e(["h","hh"],(function(e,t,n){t[3]=W(e),g(n).bigHour=!0})),_e("hmm",(function(e,t,n){var i=e.length-2;t[3]=W(e.substr(0,i)),t[4]=W(e.substr(i)),g(n).bigHour=!0})),_e("hmmss",(function(e,t,n){var i=e.length-4,a=e.length-2;t[3]=W(e.substr(0,i)),t[4]=W(e.substr(i,2)),t[5]=W(e.substr(a)),g(n).bigHour=!0})),_e("Hmm",(function(e,t,n){var i=e.length-2;t[3]=W(e.substr(0,i)),t[4]=W(e.substr(i))})),_e("Hmmss",(function(e,t,n){var i=e.length-4,a=e.length-2;t[3]=W(e.substr(0,i)),t[4]=W(e.substr(i,2)),t[5]=W(e.substr(a))}));var Ze,et=K("Hours",!0),tt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:ke,monthsShort:Se,week:{dow:0,doy:6},weekdays:Ve,weekdaysMin:je,weekdaysShort:Be,meridiemParse:/[ap]\.?m?\.?/i},nt={},it={};function at(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function lt(t){var i=null;if(void 0===nt[t]&&void 0!==e&&e&&e.exports)try{i=Ze._abbr,n(83)("./"+t),st(i)}catch(e){nt[t]=null}return nt[t]}function st(e,t){var n;return e&&((n=c(t)?ut(e):ot(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function ot(e,t){if(null!==t){var n,i=tt;if(t.abbr=e,null!=nt[e])L("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=nt[e]._config;else if(null!=t.parentLocale)if(null!=nt[t.parentLocale])i=nt[t.parentLocale]._config;else{if(null==(n=lt(t.parentLocale)))return it[t.parentLocale]||(it[t.parentLocale]=[]),it[t.parentLocale].push({name:e,config:t}),null;i=n._config}return nt[e]=new T(O(i,t)),it[e]&&it[e].forEach((function(e){ot(e.name,e.config)})),st(e),nt[e]}return delete nt[e],null}function ut(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!r(e)){if(t=lt(e))return t;e=[e]}return function(e){for(var t,n,i,a,r=0;r<e.length;){for(t=(a=rt(e[r]).split("-")).length,n=(n=rt(e[r+1]))?n.split("-"):null;t>0;){if(i=lt(a.slice(0,t).join("-")))return i;if(n&&n.length>=t&&at(a,n)>=t-1)break;t--}r++}return Ze}(e)}function ct(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>$e(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,g(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),g(e)._overflowWeeks&&-1===t&&(t=7),g(e)._overflowWeekday&&-1===t&&(t=8),g(e).overflow=t),e}var ft=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,pt=/Z|[+-]\d\d(?::?\d\d)?/,mt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ht=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],gt=/^\/?Date\((-?\d+)/i,vt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,yt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bt(e){var t,n,i,a,r,l,s=e._i,o=ft.exec(s)||dt.exec(s);if(o){for(g(e).iso=!0,t=0,n=mt.length;t<n;t++)if(mt[t][1].exec(o[1])){a=mt[t][0],i=!1!==mt[t][2];break}if(null==a)return void(e._isValid=!1);if(o[3]){for(t=0,n=ht.length;t<n;t++)if(ht[t][1].exec(o[3])){r=(o[2]||" ")+ht[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(o[4]){if(!pt.exec(o[4]))return void(e._isValid=!1);l="Z"}e._f=a+(r||"")+(l||""),kt(e)}else e._isValid=!1}function _t(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Ct(e){var t,n,i,a,r,l,s,o,u=vt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],i=u[3],a=u[2],r=u[5],l=u[6],s=u[7],o=[_t(n),Se.indexOf(i),parseInt(a,10),parseInt(r,10),parseInt(l,10)],s&&o.push(parseInt(s,10)),t=o,!function(e,t,n){return!e||Be.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return yt[e];if(t)return 0;var i=parseInt(n,10),a=i%100;return(i-a)/100*60+a}(u[8],u[9],u[10]),e._d=Ee.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function wt(e,t,n){return null!=e?e:null!=t?t:n}function $t(e){var t,n,i,r,l,s=[];if(!e._d){for(i=function(e){var t=new Date(a.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,a,r,l,s,o,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,l=4,n=wt(t.GG,e._a[0],Pe(It(),1,4).year),i=wt(t.W,1),((a=wt(t.E,1))<1||a>7)&&(o=!0)):(r=e._locale._week.dow,l=e._locale._week.doy,u=Pe(It(),r,l),n=wt(t.gg,e._a[0],u.year),i=wt(t.w,u.week),null!=t.d?((a=t.d)<0||a>6)&&(o=!0):null!=t.e?(a=t.e+r,(t.e<0||t.e>6)&&(o=!0)):a=r),i<1||i>Fe(n,r,l)?g(e)._overflowWeeks=!0:null!=o?g(e)._overflowWeekday=!0:(s=Re(n,i,a,r,l),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(l=wt(e._a[0],i[0]),(e._dayOfYear>De(l)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=Ee(l,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Ee:qe).apply(null,s),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==a.ISO_8601)if(e._f!==a.RFC_2822){e._a=[],g(e).empty=!0;var t,n,i,r,l,s,o=""+e._i,u=o.length,c=0;for(i=P(e._f,e._locale).match(D)||[],t=0;t<i.length;t++)r=i[t],(n=(o.match(ge(r,e))||[])[0])&&((l=o.substr(0,o.indexOf(n))).length>0&&g(e).unusedInput.push(l),o=o.slice(o.indexOf(n)+n.length),c+=n.length),E[r]?(n?g(e).empty=!1:g(e).unusedTokens.push(r),we(r,n,e)):e._strict&&!n&&g(e).unusedTokens.push(r);g(e).charsLeftOver=u-c,o.length>0&&g(e).unusedInput.push(o),e._a[3]<=12&&!0===g(e).bigHour&&e._a[3]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=g(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),$t(e),ct(e)}else Ct(e);else bt(e)}function St(e){var t=e._i,n=e._f;return e._locale=e._locale||ut(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),$(t)?new w(ct(t)):(d(t)?e._d=t:r(n)?function(e){var t,n,i,a,r,l,s=!1;if(0===e._f.length)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(a=0;a<e._f.length;a++)r=0,l=!1,t=C({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[a],kt(t),v(t)&&(l=!0),r+=g(t).charsLeftOver,r+=10*g(t).unusedTokens.length,g(t).score=r,s?r<i&&(i=r,n=t):(null==i||r<i||l)&&(i=r,n=t,l&&(s=!0));m(e,n||t)}(e):n?kt(e):function(e){var t=e._i;c(t)?e._d=new Date(a.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=gt.exec(e._i);null===t?(bt(e),!1===e._isValid&&(delete e._isValid,Ct(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:a.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):r(t)?(e._a=p(t.slice(0),(function(e){return parseInt(e,10)})),$t(e)):s(t)?function(e){if(!e._d){var t=B(e._i),n=void 0===t.day?t.date:t.day;e._a=p([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),$t(e)}}(e):f(t)?e._d=new Date(t):a.createFromInputFallback(e)}(e),v(e)||(e._d=null),e))}function Mt(e,t,n,i,a){var l,o={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(s(e)&&u(e)||r(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=a,o._l=n,o._i=e,o._f=t,o._strict=i,(l=new w(ct(St(o))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function It(e,t,n,i){return Mt(e,t,n,i,!1)}a.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),a.ISO_8601=function(){},a.RFC_2822=function(){};var Lt=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),At=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=It.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Ot(e,t){var n,i;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Tt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function xt(e){var t=B(e),n=t.year||0,i=t.quarter||0,a=t.month||0,r=t.week||t.isoWeek||0,l=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,f=t.millisecond||0;this._isValid=function(e){var t,n,i=!1;for(t in e)if(o(e,t)&&(-1===ye.call(Tt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<Tt.length;++n)if(e[Tt[n]]){if(i)return!1;parseFloat(e[Tt[n]])!==W(e[Tt[n]])&&(i=!0)}return!0}(t),this._milliseconds=+f+1e3*c+6e4*u+1e3*s*60*60,this._days=+l+7*r,this._months=+a+3*i+12*n,this._data={},this._locale=ut(),this._bubble()}function Dt(e){return e instanceof xt}function Ut(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function qt(e,t){N(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+x(~~(e/60),2)+t+x(~~e%60,2)}))}qt("Z",":"),qt("ZZ",""),he("Z",pe),he("ZZ",pe),_e(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=Nt(pe,e)}));var Et=/([\+\-]|\d\d)/gi;function Nt(e,t){var n,i,a=(t||"").match(e);return null===a?null:0===(i=60*(n=((a[a.length-1]||[])+"").match(Et)||["-",0,0])[1]+W(n[2]))?0:"+"===n[0]?i:-i}function Rt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=($(e)||d(e)?e.valueOf():It(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),a.updateOffset(n,!1),n):It(e).local()}function Pt(e){return-Math.round(e._d.getTimezoneOffset())}function Ft(){return!!this.isValid()&&this._isUTC&&0===this._offset}a.updateOffset=function(){};var Ht=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Vt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Bt(e,t){var n,i,a,r,s,u,c=e,d=null;return Dt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:f(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Ht.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:W(d[2])*n,h:W(d[3])*n,m:W(d[4])*n,s:W(d[5])*n,ms:W(Ut(1e3*d[6]))*n}):(d=Vt.exec(e))?(n="-"===d[1]?-1:1,c={y:jt(d[2],n),M:jt(d[3],n),w:jt(d[4],n),d:jt(d[5],n),h:jt(d[6],n),m:jt(d[7],n),s:jt(d[8],n)}):null==c?c={}:"object"===l(c)&&("from"in c||"to"in c)&&(r=It(c.from),s=It(c.to),a=r.isValid()&&s.isValid()?(s=Rt(s,r),r.isBefore(s)?u=zt(r,s):((u=zt(s,r)).milliseconds=-u.milliseconds,u.months=-u.months),u):{milliseconds:0,months:0},(c={}).ms=a.milliseconds,c.M=a.months),i=new xt(c),Dt(e)&&o(e,"_locale")&&(i._locale=e._locale),Dt(e)&&o(e,"_isValid")&&(i._isValid=e._isValid),i}function jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function zt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Yt(e,t){return function(n,i){var a;return null===i||isNaN(+i)||(L(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=i,i=a),Gt(this,Bt(n,i),e),this}}function Gt(e,t,n,i){var r=t._milliseconds,l=Ut(t._days),s=Ut(t._months);e.isValid()&&(i=null==i||i,s&&Oe(e,Q(e,"Month")+s*n),l&&J(e,"Date",Q(e,"Date")+l*n),r&&e._d.setTime(e._d.valueOf()+r*n),i&&a.updateOffset(e,l||s))}Bt.fn=xt.prototype,Bt.invalid=function(){return Bt(NaN)};var Wt=Yt(1,"add"),Kt=Yt(-1,"subtract");function Qt(e){return"string"==typeof e||e instanceof String}function Jt(e){return $(e)||d(e)||Qt(e)||f(e)||function(e){var t=r(e),n=!1;return t&&(n=0===e.filter((function(t){return!f(t)&&Qt(e)})).length),t&&n}(e)||function(e){var t,n,i=s(e)&&!u(e),a=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(t=0;t<r.length;t+=1)n=r[t],a=a||o(e,n);return i&&a}(e)||null==e}function Xt(e){var t,n=s(e)&&!u(e),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<a.length;t+=1)i=i||o(e,a[t]);return n&&i}function Zt(e,t){if(e.date()<t.date())return-Zt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function en(e){var t;return void 0===e?this._locale._abbr:(null!=(t=ut(e))&&(this._locale=t),this)}a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",a.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tn=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function nn(){return this._locale}function an(e,t){return(e%t+t)%t}function rn(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function ln(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function sn(e,t){return t.erasAbbrRegex(e)}function on(){var e,t,n=[],i=[],a=[],r=[],l=this.eras();for(e=0,t=l.length;e<t;++e)i.push(ve(l[e].name)),n.push(ve(l[e].abbr)),a.push(ve(l[e].narrow)),r.push(ve(l[e].name)),r.push(ve(l[e].abbr)),r.push(ve(l[e].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function un(e,t){N(0,[e,e.length],0,t)}function cn(e,t,n,i,a){var r;return null==e?Pe(this,i,a).year:(t>(r=Fe(e,i,a))&&(t=r),fn.call(this,e,t,n,i,a))}function fn(e,t,n,i,a){var r=Re(e,t,n,i,a),l=Ee(r.year,0,r.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),he("N",sn),he("NN",sn),he("NNN",sn),he("NNNN",(function(e,t){return t.erasNameRegex(e)})),he("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),_e(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var a=n._locale.erasParse(e,i,n._strict);a?g(n).era=a:g(n).invalidEra=e})),he("y",ce),he("yy",ce),he("yyy",ce),he("yyyy",ce),he("yo",(function(e,t){return t._eraYearOrdinalRegex||ce})),_e(["y","yy","yyy","yyyy"],0),_e(["yo"],(function(e,t,n,i){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,a):t[0]=parseInt(e,10)})),N(0,["gg",2],0,(function(){return this.weekYear()%100})),N(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),un("gggg","weekYear"),un("ggggg","weekYear"),un("GGGG","isoWeekYear"),un("GGGGG","isoWeekYear"),H("weekYear","gg"),H("isoWeekYear","GG"),z("weekYear",1),z("isoWeekYear",1),he("G",fe),he("g",fe),he("GG",ae,ee),he("gg",ae,ee),he("GGGG",oe,ne),he("gggg",oe,ne),he("GGGGG",ue,ie),he("ggggg",ue,ie),Ce(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=W(e)})),Ce(["gg","GG"],(function(e,t,n,i){t[i]=a.parseTwoDigitYear(e)})),N("Q",0,"Qo","quarter"),H("quarter","Q"),z("quarter",7),he("Q",Z),_e("Q",(function(e,t){t[1]=3*(W(e)-1)})),N("D",["DD",2],"Do","date"),H("date","D"),z("date",9),he("D",ae),he("DD",ae,ee),he("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),_e(["D","DD"],2),_e("Do",(function(e,t){t[2]=W(e.match(ae)[0])}));var dn=K("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),H("dayOfYear","DDD"),z("dayOfYear",4),he("DDD",se),he("DDDD",te),_e(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=W(e)})),N("m",["mm",2],0,"minute"),H("minute","m"),z("minute",14),he("m",ae),he("mm",ae,ee),_e(["m","mm"],4);var pn=K("Minutes",!1);N("s",["ss",2],0,"second"),H("second","s"),z("second",15),he("s",ae),he("ss",ae,ee),_e(["s","ss"],5);var mn,hn,gn=K("Seconds",!1);for(N("S",0,0,(function(){return~~(this.millisecond()/100)})),N(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),N(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),N(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),N(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),N(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),N(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),H("millisecond","ms"),z("millisecond",16),he("S",se,Z),he("SS",se,ee),he("SSS",se,te),mn="SSSS";mn.length<=9;mn+="S")he(mn,ce);function vn(e,t){t[6]=W(1e3*("0."+e))}for(mn="S";mn.length<=9;mn+="S")_e(mn,vn);hn=K("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var yn=w.prototype;function bn(e){return e}yn.add=Wt,yn.calendar=function(e,t){1===arguments.length&&(Jt(arguments[0])?(e=arguments[0],t=void 0):Xt(arguments[0])&&(t=arguments[0],e=void 0));var n=e||It(),i=Rt(n,this).startOf("day"),r=a.calendarFormat(this,i)||"sameElse",l=t&&(A(t[r])?t[r].call(this,n):t[r]);return this.format(l||this.localeData().calendar(r,this,It(n)))},yn.clone=function(){return new w(this)},yn.diff=function(e,t,n){var i,a,r;if(!this.isValid())return NaN;if(!(i=Rt(e,this)).isValid())return NaN;switch(a=6e4*(i.utcOffset()-this.utcOffset()),t=V(t)){case"year":r=Zt(this,i)/12;break;case"month":r=Zt(this,i);break;case"quarter":r=Zt(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-a)/864e5;break;case"week":r=(this-i-a)/6048e5;break;default:r=this-i}return n?r:G(r)},yn.endOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ln:rn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-an(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-an(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-an(t,1e3)-1}return this._d.setTime(t),a.updateOffset(this,!0),this},yn.format=function(e){e||(e=this.isUtc()?a.defaultFormatUtc:a.defaultFormat);var t=R(this,e);return this.localeData().postformat(t)},yn.from=function(e,t){return this.isValid()&&($(e)&&e.isValid()||It(e).isValid())?Bt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.fromNow=function(e){return this.from(It(),e)},yn.to=function(e,t){return this.isValid()&&($(e)&&e.isValid()||It(e).isValid())?Bt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},yn.toNow=function(e){return this.to(It(),e)},yn.get=function(e){return A(this[e=V(e)])?this[e]():this},yn.invalidAt=function(){return g(this).overflow},yn.isAfter=function(e,t){var n=$(e)?e:It(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},yn.isBefore=function(e,t){var n=$(e)?e:It(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},yn.isBetween=function(e,t,n,i){var a=$(e)?e:It(e),r=$(t)?t:It(t);return!!(this.isValid()&&a.isValid()&&r.isValid())&&("("===(i=i||"()")[0]?this.isAfter(a,n):!this.isBefore(a,n))&&(")"===i[1]?this.isBefore(r,n):!this.isAfter(r,n))},yn.isSame=function(e,t){var n,i=$(e)?e:It(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=V(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},yn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},yn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},yn.isValid=function(){return v(this)},yn.lang=tn,yn.locale=en,yn.localeData=nn,yn.max=At,yn.min=Lt,yn.parsingFlags=function(){return m({},g(this))},yn.set=function(e,t){if("object"===l(e)){var n,i=function(e){var t,n=[];for(t in e)o(e,t)&&n.push({unit:t,priority:j[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}(e=B(e));for(n=0;n<i.length;n++)this[i[n].unit](e[i[n].unit])}else if(A(this[e=V(e)]))return this[e](t);return this},yn.startOf=function(e){var t,n;if(void 0===(e=V(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?ln:rn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=an(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=an(t,6e4);break;case"second":t=this._d.valueOf(),t-=an(t,1e3)}return this._d.setTime(t),a.updateOffset(this,!0),this},yn.subtract=Kt,yn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},yn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},yn.toDate=function(){return new Date(this.valueOf())},yn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?R(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",R(n,"Z")):R(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=a+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},yn.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},yn.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},yn.eraYear=function(){var e,t,n,i,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=r[e].since<=r[e].until?1:-1,i=this.startOf("day").valueOf(),r[e].since<=i&&i<=r[e].until||r[e].until<=i&&i<=r[e].since)return(this.year()-a(r[e].since).year())*n+r[e].offset;return this.year()},yn.year=Ue,yn.isLeapYear=function(){return Y(this.year())},yn.weekYear=function(e){return cn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},yn.isoWeekYear=function(e){return cn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},yn.quarter=yn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},yn.month=Te,yn.daysInMonth=function(){return $e(this.year(),this.month())},yn.week=yn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},yn.isoWeek=yn.isoWeeks=function(e){var t=Pe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},yn.weeksInYear=function(){var e=this.localeData()._week;return Fe(this.year(),e.dow,e.doy)},yn.weeksInWeekYear=function(){var e=this.localeData()._week;return Fe(this.weekYear(),e.dow,e.doy)},yn.isoWeeksInYear=function(){return Fe(this.year(),1,4)},yn.isoWeeksInISOWeekYear=function(){return Fe(this.isoWeekYear(),1,4)},yn.date=dn,yn.day=yn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},yn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},yn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},yn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},yn.hour=yn.hours=et,yn.minute=yn.minutes=pn,yn.second=yn.seconds=gn,yn.millisecond=yn.milliseconds=hn,yn.utcOffset=function(e,t,n){var i,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Nt(pe,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Pt(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?Gt(this,Bt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Pt(this)},yn.utc=function(e){return this.utcOffset(0,e)},yn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Pt(this),"m")),this},yn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(de,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},yn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?It(e).utcOffset():0,(this.utcOffset()-e)%60==0)},yn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Ft,yn.isUTC=Ft,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=S("dates accessor is deprecated. Use date instead.",dn),yn.months=S("months accessor is deprecated. Use month instead",Te),yn.years=S("years accessor is deprecated. Use year instead",Ue),yn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),yn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return C(t,this),(t=St(t))._a?(e=t._isUTC?h(t._a):It(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,a=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),l=0;for(i=0;i<a;i++)(n&&e[i]!==t[i]||!n&&W(e[i])!==W(t[i]))&&l++;return l+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var _n=T.prototype;function Cn(e,t,n,i){var a=ut(),r=h().set(i,t);return a[n](r,e)}function wn(e,t,n){if(f(e)&&(t=e,e=void 0),e=e||"",null!=t)return Cn(e,t,n,"month");var i,a=[];for(i=0;i<12;i++)a[i]=Cn(e,i,n,"month");return a}function $n(e,t,n,i){"boolean"==typeof e?(f(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,f(t)&&(n=t,t=void 0),t=t||"");var a,r=ut(),l=e?r._week.dow:0,s=[];if(null!=n)return Cn(t,(n+l)%7,i,"day");for(a=0;a<7;a++)s[a]=Cn(t,(a+l)%7,i,"day");return s}_n.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return A(i)?i.call(t,n):i},_n.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(D).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},_n.invalidDate=function(){return this._invalidDate},_n.ordinal=function(e){return this._ordinal.replace("%d",e)},_n.preparse=bn,_n.postformat=bn,_n.relativeTime=function(e,t,n,i){var a=this._relativeTime[n];return A(a)?a(e,t,n,i):a.replace(/%d/i,e)},_n.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},_n.set=function(e){var t,n;for(n in e)o(e,n)&&(A(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},_n.eras=function(e,t){var n,i,r,s=this._eras||ut("en")._eras;for(n=0,i=s.length;n<i;++n){switch(l(s[n].since)){case"string":r=a(s[n].since).startOf("day"),s[n].since=r.valueOf()}switch(l(s[n].until)){case"undefined":s[n].until=1/0;break;case"string":r=a(s[n].until).startOf("day").valueOf(),s[n].until=r.valueOf()}}return s},_n.erasParse=function(e,t,n){var i,a,r,l,s,o=this.eras();for(e=e.toUpperCase(),i=0,a=o.length;i<a;++i)if(r=o[i].name.toUpperCase(),l=o[i].abbr.toUpperCase(),s=o[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(l===e)return o[i];break;case"NNNN":if(r===e)return o[i];break;case"NNNNN":if(s===e)return o[i]}else if([r,l,s].indexOf(e)>=0)return o[i]},_n.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?a(e.since).year():a(e.since).year()+(t-e.offset)*n},_n.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||on.call(this),e?this._erasAbbrRegex:this._erasRegex},_n.erasNameRegex=function(e){return o(this,"_erasNameRegex")||on.call(this),e?this._erasNameRegex:this._erasRegex},_n.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||on.call(this),e?this._erasNarrowRegex:this._erasRegex},_n.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Me).test(t)?"format":"standalone"][e.month()]:r(this._months)?this._months:this._months.standalone},_n.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Me.test(t)?"format":"standalone"][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},_n.monthsParse=function(e,t,n){var i,a,r;if(this._monthsParseExact)return Ae.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(a=h([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},_n.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||xe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Le),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},_n.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||xe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Ie),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},_n.week=function(e){return Pe(e,this._week.dow,this._week.doy).week},_n.firstDayOfYear=function(){return this._week.doy},_n.firstDayOfWeek=function(){return this._week.dow},_n.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},_n.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},_n.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},_n.weekdaysParse=function(e,t,n){var i,a,r;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(a=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},_n.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},_n.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ye),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},_n.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ke.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ge),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},_n.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},_n.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},st("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===W(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),a.lang=S("moment.lang is deprecated. Use moment.locale instead.",st),a.langData=S("moment.langData is deprecated. Use moment.localeData instead.",ut);var kn=Math.abs;function Sn(e,t,n,i){var a=Bt(t,n);return e._milliseconds+=i*a._milliseconds,e._days+=i*a._days,e._months+=i*a._months,e._bubble()}function Mn(e){return e<0?Math.floor(e):Math.ceil(e)}function In(e){return 4800*e/146097}function Ln(e){return 146097*e/4800}function An(e){return function(){return this.as(e)}}var On=An("ms"),Tn=An("s"),xn=An("m"),Dn=An("h"),Un=An("d"),qn=An("w"),En=An("M"),Nn=An("Q"),Rn=An("y");function Pn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=Pn("milliseconds"),Hn=Pn("seconds"),Vn=Pn("minutes"),Bn=Pn("hours"),jn=Pn("days"),zn=Pn("months"),Yn=Pn("years"),Gn=Math.round,Wn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(e,t,n,i,a){return a.relativeTime(t||1,!!n,e,i)}var Qn=Math.abs;function Jn(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,a,r,l,s,o=Qn(this._milliseconds)/1e3,u=Qn(this._days),c=Qn(this._months),f=this.asSeconds();return f?(e=G(o/60),t=G(e/60),o%=60,e%=60,n=G(c/12),c%=12,i=o?o.toFixed(3).replace(/\.?0+$/,""):"",a=f<0?"-":"",r=Jn(this._months)!==Jn(f)?"-":"",l=Jn(this._days)!==Jn(f)?"-":"",s=Jn(this._milliseconds)!==Jn(f)?"-":"",a+"P"+(n?r+n+"Y":"")+(c?r+c+"M":"")+(u?l+u+"D":"")+(t||e||o?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(o?s+i+"S":"")):"P0D"}var Zn=xt.prototype;return Zn.isValid=function(){return this._isValid},Zn.abs=function(){var e=this._data;return this._milliseconds=kn(this._milliseconds),this._days=kn(this._days),this._months=kn(this._months),e.milliseconds=kn(e.milliseconds),e.seconds=kn(e.seconds),e.minutes=kn(e.minutes),e.hours=kn(e.hours),e.months=kn(e.months),e.years=kn(e.years),this},Zn.add=function(e,t){return Sn(this,e,t,1)},Zn.subtract=function(e,t){return Sn(this,e,t,-1)},Zn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=V(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+In(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Ln(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Zn.asMilliseconds=On,Zn.asSeconds=Tn,Zn.asMinutes=xn,Zn.asHours=Dn,Zn.asDays=Un,Zn.asWeeks=qn,Zn.asMonths=En,Zn.asQuarters=Nn,Zn.asYears=Rn,Zn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*W(this._months/12):NaN},Zn._bubble=function(){var e,t,n,i,a,r=this._milliseconds,l=this._days,s=this._months,o=this._data;return r>=0&&l>=0&&s>=0||r<=0&&l<=0&&s<=0||(r+=864e5*Mn(Ln(s)+l),l=0,s=0),o.milliseconds=r%1e3,e=G(r/1e3),o.seconds=e%60,t=G(e/60),o.minutes=t%60,n=G(t/60),o.hours=n%24,l+=G(n/24),s+=a=G(In(l)),l-=Mn(Ln(a)),i=G(s/12),s%=12,o.days=l,o.months=s,o.years=i,this},Zn.clone=function(){return Bt(this)},Zn.get=function(e){return e=V(e),this.isValid()?this[e+"s"]():NaN},Zn.milliseconds=Fn,Zn.seconds=Hn,Zn.minutes=Vn,Zn.hours=Bn,Zn.days=jn,Zn.weeks=function(){return G(this.days()/7)},Zn.months=zn,Zn.years=Yn,Zn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,a=!1,r=Wn;return"object"===l(e)&&(t=e,e=!1),"boolean"==typeof e&&(a=e),"object"===l(t)&&(r=Object.assign({},Wn,t),null!=t.s&&null==t.ss&&(r.ss=t.s-1)),i=function(e,t,n,i){var a=Bt(e).abs(),r=Gn(a.as("s")),l=Gn(a.as("m")),s=Gn(a.as("h")),o=Gn(a.as("d")),u=Gn(a.as("M")),c=Gn(a.as("w")),f=Gn(a.as("y")),d=r<=n.ss&&["s",r]||r<n.s&&["ss",r]||l<=1&&["m"]||l<n.m&&["mm",l]||s<=1&&["h"]||s<n.h&&["hh",s]||o<=1&&["d"]||o<n.d&&["dd",o];return null!=n.w&&(d=d||c<=1&&["w"]||c<n.w&&["ww",c]),(d=d||u<=1&&["M"]||u<n.M&&["MM",u]||f<=1&&["y"]||["yy",f])[2]=t,d[3]=+e>0,d[4]=i,Kn.apply(null,d)}(this,!a,r,n=this.localeData()),a&&(i=n.pastFuture(+this,i)),n.postformat(i)},Zn.toISOString=Xn,Zn.toString=Xn,Zn.toJSON=Xn,Zn.locale=en,Zn.localeData=nn,Zn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Zn.lang=tn,N("X",0,0,"unix"),N("x",0,0,"valueOf"),he("x",fe),he("X",/[+-]?\d+(\.\d{1,3})?/),_e("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),_e("x",(function(e,t,n){n._d=new Date(W(e))})),//! moment.js
75
+ a.version="2.27.0",t=It,a.fn=yn,a.min=function(){var e=[].slice.call(arguments,0);return Ot("isBefore",e)},a.max=function(){var e=[].slice.call(arguments,0);return Ot("isAfter",e)},a.now=function(){return Date.now?Date.now():+new Date},a.utc=h,a.unix=function(e){return It(1e3*e)},a.months=function(e,t){return wn(e,t,"months")},a.isDate=d,a.locale=st,a.invalid=y,a.duration=Bt,a.isMoment=$,a.weekdays=function(e,t,n){return $n(e,t,n,"weekdays")},a.parseZone=function(){return It.apply(null,arguments).parseZone()},a.localeData=ut,a.isDuration=Dt,a.monthsShort=function(e,t){return wn(e,t,"monthsShort")},a.weekdaysMin=function(e,t,n){return $n(e,t,n,"weekdaysMin")},a.defineLocale=ot,a.updateLocale=function(e,t){if(null!=t){var n,i,a=tt;null!=nt[e]&&null!=nt[e].parentLocale?nt[e].set(O(nt[e]._config,t)):(null!=(i=lt(e))&&(a=i._config),t=O(a,t),null==i&&(t.abbr=e),(n=new T(t)).parentLocale=nt[e],nt[e]=n),st(e)}else null!=nt[e]&&(null!=nt[e].parentLocale?(nt[e]=nt[e].parentLocale,e===st()&&st(e)):null!=nt[e]&&delete nt[e]);return nt[e]},a.locales=function(){return M(nt)},a.weekdaysShort=function(e,t,n){return $n(e,t,n,"weekdaysShort")},a.normalizeUnits=V,a.relativeTimeRounding=function(e){return void 0===e?Gn:"function"==typeof e&&(Gn=e,!0)},a.relativeTimeThreshold=function(e,t){return void 0!==Wn[e]&&(void 0===t?Wn[e]:(Wn[e]=t,"s"===e&&(Wn.ss=t-1),!0))},a.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},a.prototype=yn,a.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},a},"object"===l(t)&&void 0!==e?e.exports=r():void 0===(a="function"==typeof(i=r)?i.call(t,n,t,e):i)||(e.exports=a)}).call(this,n(7)(e))},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=83},function(e,t){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var a=arguments[i];if(null!=a)for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(n[r]=a[r])}return n},writable:!0,configurable:!0}),String.prototype.repeat||(String.prototype.repeat=function(e){"use strict";if(null==this)throw new TypeError("can't convert "+this+" to object");var t=""+this;if((e=+e)!=e&&(e=0),e<0)throw new RangeError("repeat count must be non-negative");if(e==1/0)throw new RangeError("repeat count must be less than infinity");if(e=Math.floor(e),0==t.length||0==e)return"";if(t.length*e>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var n="";1==(1&e)&&(n+=t),0!=(e>>>=1);)t+=t;return n})},function(e,t,n){var i=n(0);i.Validations={_restrictionKeys:["minExclusive","minInclusive","maxExclusive","maxInclusive","totalDigits","fractionDigits","length","minLength","maxLength","enumeration","whiteSpace","pattern"],_dataTypes:["BL","INT","REAL","ST","TX","BIN","DT","DTM","TM","CNE","CWE","RTO","QTY","NR","YEAR","MONTH","DAY","URL","EMAIL","PHONE",""],_errorMessages:{BL:"must be a boolean (true/false).",INT:"must be an integer number.",REAL:"must be a decimal number.",ST:"must be a string value.",TX:"must be a text value.",BIN:"must be a binary value.",DT:"must be a date value.",DTM:"must be a date and time value.",TM:"must be a time value.",CNE:"must be a value from the answer list.",CWE:"must be a value from the answer list or a user supplied value.",RTO:"must be a ratio value.",QTY:"must be a decimal number",NR:"must be two numeric values separated by a ^. One value can be omitted, but not the ^.",YEAR:"must be a numeric value of year.",MONTH:"must be a numeric value of month.",DAY:"must be a numeric value of day.",URL:"must be a valid URL.",EMAIL:"must be a valid email address.",PHONE:"must be a valid phone number."},checkRequired:function(e,t,n){var i=!0;return e&&(null==t||""===t||angular.isArray(t)&&0===t.length)&&(i=!1,n.push("requires a value")),i},checkDataType:function(e,t,n){var a=!0;if(null!=t&&""!==t)switch(e){case"BL":!0!==t&&!1!==t&&(a=!1);break;case"INT":a=/^(\+|-)?\d+$/.test(t);break;case"REAL":case"QTY":a=/^(\+|-)?\d+(\.\d+)?$/.test(t);break;case"PHONE":a=/(((^\s*(\d\d){0,1}\s*(-?|\.)\s*(\(?\d\d\d\)?\s*(-?|\.?)){0,1}\s*\d\d\d\s*(-?|\.?)\s*\d{4}\b)|(^\s*\+\(?(\d{1,4}\)?(-?|\.?))(\s*\(?\d{2,}\)?\s*(-?|\.?)\s*\d{2,}\s*(-?|\.?)(\s*\d*\s*(-|\.?)){0,3})))(\s*(x|ext|X)\s*\d+){0,1}$)/.test(t);break;case"EMAIL":a=/^\s*((\w+)(\.\w+)*)@((\w+)(\.\w+)+)$/.test(t);break;case"URL":a=/^(https?|ftp):\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&amp;:\/~+#-]*[\w@?^=%&amp;\/~+#-])?$/.test(t);break;case"TM":a=/^\s*(((\d|[0-1]\d|2[0-4]):([0-5]\d))|(\d|0\d|1[0-2]):([0-5]\d)\s*([aApP][mM]))\s*$/.test(t);break;case"YEAR":a=/^\d{1,4}$/.test(t);break;case"MONTH":a=/^(0?[1-9]|1[012])$/.test(t);break;case"DAY":a=/^(0?[1-9]|[12]\d|3[01])$/.test(t);break;case"NR":a=/^(\-?\d+(\.\d*)?)?\s*\^\s*(\-?\d+(\.\d*)?)?$/.test(t);break;case"DT":a=i.Util.isValidDate(t);break;case"ST":case"DTM":case"RTO":case"CNE":case"CWE":default:a=!0}return angular.isArray(n)&&!a&&n.push(this._errorMessages[e]),a},checkRestrictions:function(e,t,n){var i=!0;if(null!=t&&""!==t)for(var a in e){var r=!0,l=e[a];switch(a){case"minExclusive":parseFloat(t)>parseFloat(l)?r=!0:(r=!1,n.push("must be a value greater than "+l+"."));break;case"minInclusive":parseFloat(t)>=parseFloat(l)?r=!0:(r=!1,n.push("must be a value greater than or equal to "+l+"."));break;case"maxExclusive":parseFloat(t)<parseFloat(l)?r=!0:(r=!1,n.push("must be a value less than "+l+"."));break;case"maxInclusive":parseFloat(t)<=parseFloat(l)?r=!0:(r=!1,n.push("must be a value less than or equal to "+l+"."));break;case"totalDigits":case"fractionDigits":break;case"length":t.length==parseInt(l)?r=!0:(r=!1,n.push("must have a total length of "+l+"."));break;case"maxLength":t.length<=parseInt(l)?r=!0:(r=!1,n.push("must have a total length less than or equal to "+l+"."));break;case"minLength":t.length>=parseInt(l)?r=!0:(r=!1,n.push("must have a total length greater than or equal to "+l+"."));break;case"pattern":var s=l.indexOf("/"),o=l.lastIndexOf("/"),u=l.slice(s+1,o),c=l.slice(o+1);new RegExp(u,c).test(t)?r=!0:(r=!1,n.push("must match a RegExp pattern of "+l+"."));break;default:r=!0}i=i&&r}return i}}},function(e,t,n){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(){"use strict";var e=n(0),t=n(87);e.LFormsData=t({_CONSTANTS:{DATA_CONTROL:{CONSTRUCTION_ARRAY:"ARRAY",CONSTRUCTION_OBJECT:"OBJECT",CONSTRUCTION_SIMPLE:"SIMPLE",SOURCE_INTERNAL:"INTERNAL",EXTERNAL:"EXTERNAL"},SKIP_LOGIC:{ACTION_ENABLE:"show",ACTION_DISABLE:"hide",STATUS_ENABLED:"target-enabled",STATUS_DISABLED:"target-disabled"},CALCULATION_METHOD:{TOTALSCORE:"TOTALSCORE",BMI:"BMI",BSA:"BSA"},DATA_TYPE:{INT:"INT",REAL:"REAL",ST:"ST",TX:"TX",DT:"DT",DTM:"DTM",TM:"TM",CNE:"CNE",CWE:"CWE",NR:"NR",YEAR:"YEAR",MONTH:"MONTH",DAY:"DAY",URL:"URL",EMAIL:"EMAIL",PHONE:"PHONE",SECTION:"SECTION",TITLE:"TITLE",QTY:"QTY",BL:"BL"},DISPLAY_MODE:["lg","md","sm","auto"]},type:null,code:null,codeList:null,identifier:null,name:null,template:null,templateOptions:{},items:[],PATH_DELIMITER:"/",hasSavedData:!1,_repeatableItems:{},_opt:{},_actionLogs:[],_activeItem:null,_defaultTemplateOptions:{showQuestionCode:!1,showCodingInstruction:!1,tabOnInputFieldsOnly:!1,hideFormControls:!0,showFormOptionPanel:!1,showFormOptionPanelButton:!1,showItemOptionPanelButton:!1,hideUnits:!1,allowMultipleEmptyRepeatingItems:!1,allowHTMLInInstructions:!1,useAnimation:!0,displayControl:{questionLayout:"vertical"},viewMode:"auto",showFormHeader:!1,formHeaderItems:[{question:"Date Done",questionCode:"date_done",dataType:"DT",answers:"",_answerRequired:!0,answerCardinality:{min:"1",max:"1"}},{question:"Time Done",questionCode:"time_done",dataType:"TM",answers:""},{question:"Where Done",questionCode:"where_done",dataType:"CWE",answers:[{text:"Home",code:"1"},{text:"Hospital",code:"2"},{text:"MD Office",code:"3"},{text:"Lab",code:"4"},{text:"Other",code:"5"}]},{question:"Comment",questionCode:"comment",dataType:"TX",answers:""}],showColumnHeaders:!0,defaultAnswerLayout:{answerLayout:{type:"COMBO_BOX",columns:"0"}},useTreeLineStyle:!0,columnHeaders:[{name:"Name"},{name:"Value"},{name:"Units"}]},constructor:function(t,n){if(this.lformsVersion=e.lformsVersion,n&&(this._packageStore=n),t&&t._initializeInternalData){for(var i=Object.getOwnPropertyNames(t),a=0;a<i.length;a++)i[a]&&!i[a].startsWith("_")&&"function"!=typeof t[i[a]]&&(this[i[a]]=t[i[a]]);t._variableExt&&(this._variableExt=t._variableExt)}else jQuery.extend(this,t),this.templateOptions=t.templateOptions||{},this.PATH_DELIMITER=t.PATH_DELIMITER||"/";this._formDone=!1,e.FHIR&&this._initializeFormFHIRData(t),this._initializeInternalData()},_getResourcesFromPackageStore:function(e,t){var n=null;if(this._packageStore&&t&&e)for(var i=t.split("|"),a=i[0],r=i[1],l=0,s=this._packageStore.length;l<s;l++){var o=this._packageStore[l];if(o.resourceType===e&&o.url===a&&(r&&o.version===r||!r)){n=JSON.parse(JSON.stringify(o));break}}return n},checkAnswersResourceStatus:function(){for(var e=[],t=0,n=this.itemList.length;t<n;t++){var i=this.itemList[t];i.answerValueSet&&!i.answers&&e.push("Resource not loaded: "+i.answerValueSet)}return e},addAsyncChangeListener:function(e){this._asyncChangeListeners||(this._asyncChangeListeners=[]),this._asyncChangeListeners.push(e)},_notifyAsyncChangeListeners:function(){if(this._asyncChangeListeners)for(var e=0,t=this._asyncChangeListeners.length;e<t;++e)this._asyncChangeListeners[e]()},_initializeFormFHIRData:function(t){this.fhirVersion=t.fhirVersion||"R4",this._fhir=e.FHIR[this.fhirVersion],this._expressionProcessor=new this._fhir.SDC.ExpressionProcessor(this),this._fhirVariables={},this.extension=t.extension?t.extension.slice(0):[],t.extension&&(this._fhir.SDC.buildExtensionMap(this),this._hasResponsiveExpr=this._hasResponsiveExpr||this._fhir.SDC.hasResponsiveExpression(this),this._hasInitialExpr=this._hasInitialExpr||this._fhir.SDC.hasInitialExpression(this)),this._fhir.SDC.processExtensions(this,"obj_title")},_getFHIRSupport:function(){var t=this._fhir;if(!t){var n=Object.keys(e.FHIR);if(n.length>0&&(t=e.FHIR[n[0]]),!t)throw new Error("The LHC-Forms FHIR support file was not loaded.");this._fhir=t}return t},loadFHIRResources:function(t){if(!e.fhirContext)throw new Error("LForms.Util.setFHIRContext() must be called before loadFHIRResources");var n=this,i=this._fhir.SDC,a=i.loadLaunchContext(this);return a=a.concat(i.loadAnswerValueSets(this)),t&&a.push(i.requestLinkedObs(this)),Promise.all(a).then((function(){n._notifyAsyncChangeListeners()}),(function(e){throw e}))},_loadAnswerValueSetsFromPackage:function(e){if(e.answerValueSet){var t=this._getResourcesFromPackageStore("ValueSet",e.answerValueSet);if(t&&this._fhir){var n=this._fhir.SDC.answersFromVS(t.fileContent);n&&(e.answers=n)}}},_checkFHIRVarName:function(e){if(this._fhir.reservedVarNames[e])throw'The "'+e+'" variable name is reserved; Questionnaires may not assign a value to it.'},_initializeInternalData:function(){this._setDefaultValues(),e.Util.initializeCodes(this),this._repeatableItems={},this._setTreeNodes(this.items,this),this._updateLastRepeatingItemsStatus(this.items),this.itemList=[],this.itemHash={},this._updateItemReferenceList(this.items),this._standardizeScoreRule(this.itemList),this._resetHorizontalTableInfo(),this._adjustLastSiblingListForHorizontalLayout(),this.Navigation.setupNavigationMap(this),this._setUpAnswerAndUnitAutoComp(this.itemList),this._setupSourceToTargetMap(),this._checkFormControls(),this._adjustTemplateOptions()},_adjustTemplateOptions:function(){for(var e=!0,t=0,n=this.itemList.length;t<n;t++)if(Array.isArray(this.itemList[t].units)&&this.itemList[t].units.length>0){e=!1;break}e&&(this.templateOptions.hideUnits=!0)},_resetInternalData:function(){this._updateTreeNodes(this.items,this),this._updateLastRepeatingItemsStatus(this.items),this.itemList=[],this.itemHash={},this._updateItemReferenceList(this.items),this._standardizeScoreRule(this.itemList),this._resetHorizontalTableInfo(),this._adjustLastSiblingListForHorizontalLayout(),this.Navigation.setupNavigationMap(this),this._setUpAnswerAndUnitAutoComp(this.itemList),this._setupSourceToTargetMap(),this._checkFormControls()},updateSkipLogicControlledItems:function(e,t){if(e._skipLogicTargets)for(var n=0,i=e._skipLogicTargets.length;n<i;n++){var a=e._skipLogicTargets[n];this._updateItemSkipLogicStatus(a,null),this.updateSkipLogicControlledItems(a,t)}t(e)},updateOnSourceItemChange:function(e){var t=this;this.updateSkipLogicControlledItems(e,(function(e){if(e._formulaTargets)for(var n=0,i=e._formulaTargets.length;n<i;n++){var a=e._formulaTargets[n];t._processItemFormula(a)}if(e._dataControlTargets)for(n=0,i=e._dataControlTargets.length;n<i;n++){a=e._dataControlTargets[n];t._processItemDataControl(a)}})),this._updateTreeNodes(this.items,this),this._updateLastRepeatingItemsStatus(this.items),this._resetHorizontalTableInfo(),this._adjustLastSiblingListForHorizontalLayout()},_checkValidations:function(t){if(t._hasValidation){var n=[];e.Validations.checkRequired(t._answerRequired,t.value,n),e.Validations.checkDataType(t.dataType,t.value,n),e.Validations.checkRestrictions(t.restrictions,t.value,n);t._validationErrors=n}},_checkFormControls:function(){for(var e=0,t=this.itemList.length;e<t;e++){var n=this.itemList[e];n.calculationMethod&&this._processItemFormula(n),n.dataControl&&this._processItemDataControl(n),n.skipLogic&&this._updateItemSkipLogicStatus(n,null),n._isHiddenInDef&&(n._isHiddenFromView=!0,this._setSubItemsHidden(n))}this._updateTreeNodes(this.items,this),this._updateLastRepeatingItemsStatus(this.items),this._resetHorizontalTableInfo(),this._adjustLastSiblingListForHorizontalLayout()},_setSubItemsHidden:function(e){if(e.items&&e.items.length>0)for(var t=0,n=e.items.length;t<n;t++){var i=e.items[t];i._isHiddenFromView=!0,this._setSubItemsHidden(i)}},_setupSourceToTargetMap:function(){for(var e=0,t=this.itemList.length;e<t;e++){var n=this.itemList[e];if(n.calculationMethod&&n.calculationMethod.name)for(var i=this._getFormulaSourceItems(n,n.calculationMethod.value),a=0,r=i.length;a<r;a++)i[a]._formulaTargets?i[a]._formulaTargets.push(n):i[a]._formulaTargets=[n];if(n.dataControl&&angular.isArray(n.dataControl))for(a=0,r=n.dataControl.length;a<r;a++){var l=n.dataControl[a].source;if(l&&(!l.sourceType||l.sourceType===this._CONSTANTS.DATA_CONTROL.SOURCE_INTERNAL)&&l.sourceLinkId){if(!(s=this._findItemByLinkId(n,l.sourceLinkId)))throw new Error("Data control for item '"+n.question+"' refers to source item '"+l.sourceLinkId+"' which was not found as a sibling, ancestor, or ancestor sibling.");s._dataControlTargets?s._dataControlTargets.push(n):s._dataControlTargets=[n]}}if(n.skipLogic)for(a=0,r=n.skipLogic.conditions.length;a<r;a++){var s,o=n.skipLogic.conditions[a];(s=this._getSkipLogicSourceItem(n,o.source))._skipLogicTargets?s._skipLogicTargets.push(n):s._skipLogicTargets=[n]}}},_updateItemSkipLogicStatus:function(e,t){if(t){this._setSkipLogicStatusValue(e,this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED);var n=!0}else{if(e.skipLogic){var i=this._checkSkipLogic(e);if(e.skipLogic.action&&e.skipLogic.action!==this._CONSTANTS.SKIP_LOGIC.ACTION_ENABLE){if(e.skipLogic.action===this._CONSTANTS.SKIP_LOGIC.ACTION_DISABLE){a=i?this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED:this._CONSTANTS.SKIP_LOGIC.STATUS_ENABLED;this._setSkipLogicStatusValue(e,a)}}else{var a=i?this._CONSTANTS.SKIP_LOGIC.STATUS_ENABLED:this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED;this._setSkipLogicStatusValue(e,a)}}else e._skipLogicStatus===this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED&&this._setSkipLogicStatusValue(e,this._CONSTANTS.SKIP_LOGIC.STATUS_ENABLED);n=e._skipLogicStatus===this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED}if(e.items&&e.items.length>0)for(var r=0,l=e.items.length;r<l;r++){var s=e.items[r];this._updateItemSkipLogicStatus(s,n)}},_presetSkipLogicStatus:function(e,t){if(e.skipLogic||t){this._setSkipLogicStatusValue(e,this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED,!0);if(e.items)for(var n=0,i=e.items.length;n<i;n++)this._presetSkipLogicStatus(e.items[n],!0)}},_setSkipLogicStatusValue:function(e,t,n){if(e._skipLogicStatus!==t){if(e._skipLogicStatus){var i=t===this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED?"Hiding "+e._text:"Showing "+e._text;n||this._actionLogs.push(i)}e._preSkipLogicStatus=e._skipLogicStatus,e._skipLogicStatus=t}},_updateItemReferenceList:function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];this.itemList.push(i),this.itemHash[i._elementId]=i,i.items&&i.items.length>0&&this._updateItemReferenceList(i.items)}},_findItemsWithScore:function(){for(var e={},t=0,n=this.itemList.length;t<n;t++){var i=this.itemList[t];if(("CNE"===i.dataType||"CWE"===i.dataType)&&i.answers&&Array.isArray(i.answers)&&i.answers.length>0)for(var a=0,r=i.answers.length;a<r;a++){var l=i.answers[a];if(l&&l.hasOwnProperty("score")&&!isNaN(l.score)){e[i.linkId]=i;break}}}return Object.keys(e)},_standardizeScoreRule:function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];if(i.calculationMethod&&(i.calculationMethod.name===this._CONSTANTS.CALCULATION_METHOD.TOTALSCORE||i.calculationMethod===this._CONSTANTS.CALCULATION_METHOD.TOTALSCORE)){i.calculationMethod={name:this._CONSTANTS.CALCULATION_METHOD.TOTALSCORE,value:[]};var a=this._findItemsWithScore();i.calculationMethod.value=a}}},_setDefaultValues:function(){this._codePath="",this._idPath="",this._displayLevel=0,this._activeItem=null,"LOINC"===this.codeSystem&&(this._linkToDef="http://s.details.loinc.org/LOINC/"+this.code+".html"),this.template&&0!=this.template.length&&"form-view-a"!==this.template&&"form-view-b"!==this.template||(this.template="table");var t=angular.copy(this.templateOptions),n=angular.copy(this._defaultTemplateOptions);if(this.setTemplateOptions(t,n),this.templateOptions.formHeaderItems)for(var i=0,a=this.templateOptions.formHeaderItems.length;i<a;i++){var r=this.templateOptions.formHeaderItems[i];!r.value||r.dataType!==this._CONSTANTS.DATA_TYPE.DT&&r.dataType!==this._CONSTANTS.DATA_TYPE.DTM||(r.value=e.Util.stringToDate(r.value))}},_mergeTwoArrays:function(e,t){for(var n=0,i=t.length;n<i;n++)if(t[n])for(var a=Object.keys(t[n]),r=0,l=a.length;r<l;r++)null===t[n][a[r]]&&void 0===t[n][a[r]]||(e[n][a[r]]=t[n][a[r]])},setTemplateOptions:function(e,t){if(e){t||(t=angular.copy(this.templateOptions));var n=e.columnHeaders;if(delete e.columnHeaders,this.templateOptions=jQuery.extend({},t,e),n&&this._mergeTwoArrays(this.templateOptions.columnHeaders,n),this.templateOptions.formHeaderItems)for(var i=0,a=this.templateOptions.formHeaderItems.length;i<a;i++){var r=this.templateOptions.formHeaderItems[i];r.dataType===this._CONSTANTS.DATA_TYPE.CWE||r.dataType===this._CONSTANTS.DATA_TYPE.CNE?(this._updateAutocompOptions(r),this._resetItemValueWithModifiedAnswers(r)):this.hasSavedData||!r.defaultAnswer||r.value||this._lfItemValueFromDefaultAnswer(r),this._updateUnitAutocompOptions(r)}}},_lfItemValueFromDefaultAnswer:function(t){var n=t.defaultAnswer;if(null==n||""===n)return!1;t.dataType!==this._CONSTANTS.DATA_TYPE.DTM&&t.dataType!==this._CONSTANTS.DATA_TYPE.DT||"string"!=typeof n||(n=e.Util.stringToDate(n))||console.error(t.defaultAnswer+": Invalid date/datetime string as defaultAnswer for "+t.questionCode),t.value=n},_setTreeNodes:function(t,n){for(var i=t.length,a=i-1,r=null,l=1,s=0;s<i;s++){var o=t[s];if(e.Util.initializeCodes(o),o._text=o.prefix?o.prefix+" "+o.question:o.question,o.header?o.dataType!==this._CONSTANTS.DATA_TYPE.TITLE&&(o.dataType=this._CONSTANTS.DATA_TYPE.SECTION):o.units&&!o.dataType?o.dataType=this._CONSTANTS.DATA_TYPE.REAL:o.dataType||(o.dataType=this._CONSTANTS.DATA_TYPE.ST),"SECTION"===o.dataType?o.displayControl?o.displayControl.questionLayout||(o.displayControl.questionLayout="vertical"):(o.displayControl={questionLayout:"vertical"},o.layout&&(o.displayControl.questionLayout=o.layout,delete o.layout)):"CWE"!==o.dataType&&"CNE"!==o.dataType||(o.displayControl?o.displayControl.answerLayout||(o.displayControl.answerLayout=angular.copy(this.templateOptions.defaultAnswerLayout.answerLayout)):o.displayControl=angular.copy(this.templateOptions.defaultAnswerLayout)),o.extension&&this._fhir&&(this._fhir.SDC.buildExtensionMap(o),this._hasResponsiveExpr=this._hasResponsiveExpr||this._fhir.SDC.hasResponsiveExpression(o),this._hasInitialExpr=this._hasInitialExpr||this._fhir.SDC.hasInitialExpression(o),o._hasListExpr=this._fhir.SDC.hasListExpression(o)),this._updateItemAttrs(o),(angular.isString(o.answers)||angular.isNumber(o.answers))&&this.answerLists&&angular.isArray(this.answerLists[o.answers])&&(o.answers=this.answerLists[o.answers]),this._packageStore&&this._loadAnswerValueSetsFromPackage(o),this._setModifiedAnswers(o),o.dataType===this._CONSTANTS.DATA_TYPE.CWE||o.dataType===this._CONSTANTS.DATA_TYPE.CNE?this._resetItemValueWithModifiedAnswers(o):this.hasSavedData||!o.defaultAnswer||o.value||this._lfItemValueFromDefaultAnswer(o),o.unit&&!o.unit.text&&(o.unit.text=o.unit.name),o._questionRepeatable&&r&&r.linkId===o.linkId?l+=1:l=1,o._id=l,o._idPath=n._idPath+this.PATH_DELIMITER+o._id,o._elementId=o.linkId+o._idPath,o._displayLevel=n._displayLevel+1,o._lastSibling=s===a,o._firstSibling=0===s,!o._readOnly)switch(o.dataType){case this._CONSTANTS.DATA_TYPE.DT:o._toolTip="MM/DD/YYYY",o.value&&(o.value=e.Util.stringToDate(o.value));break;case this._CONSTANTS.DATA_TYPE.DTM:o._toolTip="MM/DD/YYYY HH:MM",o.value&&(o.value=e.Util.stringToDate(o.value));break;case this._CONSTANTS.DATA_TYPE.CNE:o.externallyDefined?o._toolTip=o._multipleAnswers?"Search for values":"Search for value":o._toolTip=o._multipleAnswers?"Select one or more":"Select one";break;case this._CONSTANTS.DATA_TYPE.CWE:o.externallyDefined?o._toolTip=o._multipleAnswers?"Search for or type values":"Search for or type a value":o._toolTip=o._multipleAnswers?"Select one or more or type a value":"Select one or type a value";break;case"SECTION":case"TITLE":case"":o._toolTip="";break;case this._CONSTANTS.DATA_TYPE.INT:case this._CONSTANTS.DATA_TYPE.REAL:case this._CONSTANTS.DATA_TYPE.QTY:o._toolTip="Type a number","number"==typeof o.value&&(o.value=o.value+"");break;default:o._toolTip="Type a value"}if((o._answerRequired||o.restrictions||o.dataType!==this._CONSTANTS.DATA_TYPE.ST&&o.dataType!==this._CONSTANTS.DATA_TYPE.TX&&o.dataType!==this._CONSTANTS.DATA_TYPE.CWE&&o.dataType!==this._CONSTANTS.DATA_TYPE.CNE&&o.dataType!==this._CONSTANTS.DATA_TYPE.DTM)&&(o._hasValidation=!0),("LOINC"===o.questionCodeSystem||"LOINC"===this.codeSystem&&!o.questionCodeSystem)&&(o._linkToDef="http://s.details.loinc.org/LOINC/"+o.questionCode+".html"),o.items&&o.items.length>0&&this._setTreeNodes(o.items,o),o._questionRepeatable&&1===o._id){delete o._parentItem;var u=angular.copy(o);this._removeUserDataAndRepeatingSubItems(u),this._repeatableItems[o.linkId]=u}o._parentItem=n,r=o}},_removeUserDataAndRepeatingSubItems:function(e){if(e.value=null,e.unit=null,e.items&&e.items.length>0)for(var t=0;t<e.items.length;t++){var n=e.items[t];n._questionRepeatable&&1!=n._id?(e.items.splice(t,1),t--):this._removeUserDataAndRepeatingSubItems(n)}},_updateItemAttrs:function(t){if(t.questionCardinality||(t.questionCardinality={min:"1",max:"1"}),t.answerCardinality||(t.answerCardinality={min:"0",max:"1"}),!Array.isArray(t.answers)&&""!==t.answers&&this.answerLists&&(t.answers=this.answerLists[t.answers]),Array.isArray(t.answers))for(var n=t.answerCodeSystem?e.Util.getCodeSystem(t.answerCodeSystem):null,i=0,a=t.answers.length;i<a;i++){var r=t.answers[i];r.system?r.system=e.Util.getCodeSystem(r.system):r.codeSystem?(r.system=e.Util.getCodeSystem(r.codeSystem),delete r.codeSystem):n&&(r.system=n)}t._questionRepeatable=t.questionCardinality.max&&("*"===t.questionCardinality.max||parseInt(t.questionCardinality.max)>1),t._answerRequired=t.answerCardinality.min&&t.answerCardinality.min&&parseInt(t.answerCardinality.min)>=1,t._multipleAnswers=t.answerCardinality.max&&("*"===t.answerCardinality.max||parseInt(t.answerCardinality.max)>1),t._readOnly=t.editable&&"0"===t.editable||!!(t.calculationMethod||t._fhirExt&&t._fhirExt[this._fhir.SDC.fhirExtCalculatedExp]),this._fhir&&(this._fhir.SDC.processExtensions(t,"obj_text"),this._fhir.SDC.processExtensions(t,"obj_prefix"))},_updateTreeNodes:function(e,t){for(var n=e.length,i=n-1,a=!1,r=n-1;r>=0;r--){if((u=e[r])._id||(u._id=1),u._idPath=t._idPath+this.PATH_DELIMITER+u._id,u._elementId=u.linkId+u._idPath,u._displayLevel=t._displayLevel+1,u._parentItem=t,u._repeatingSectionList=null,this._updateItemAttrs(u),u._lastSibling=r===i,a||(u._skipLogicStatus===this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED?(u._lastSibling=!1,i-=1):(u._lastSibling=!0,a=!0)),u._questionRepeatable&&1===u._id&&!this._repeatableItems[u.linkId]){delete u._parentItem;var l=angular.copy(u);this._removeUserDataAndRepeatingSubItems(l),this._repeatableItems[u.linkId]=l}u._parentItem=t,u.items&&u.items.length>0&&this._updateTreeNodes(u.items,u)}var s=!1,o=0;for(r=0;r<n;r++){var u;(u=e[r])._firstSibling=r===o,s||(u._skipLogicStatus===this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED?(u._firstSibling=!1,o+=1):(u._firstSibling=!0,s=!0))}},getFormData:function(t,n,i){for(var a=this.getUserData(!1,t,n,i),r=!1,l=0,s=this.itemList.length;l<s;l++){var o=this.itemList[l];if(!e.Util.isItemValueEmpty(o)){r=!0;break}}var u={lformsVersion:this.lformsVersion,PATH_DELIMITER:this.PATH_DELIMITER,code:this.code,codeList:this.codeList,identifier:this.identifier,codeSystem:this.codeSystem,name:this.name,type:this.type,template:this.template,copyrightNotice:this.copyrightNotice,items:a.itemsData,templateOptions:angular.copy(this.templateOptions)};return this.extension&&(u.extension=this.extension),r&&(u.hasSavedData=!0),u.templateOptions.formHeaderItems=angular.copy(a.templateData),u},getUserData:function(e,t,n,i){var a={};return this._checkSubTreeValues(this.items),a.itemsData=this._processDataInItems(this.items,e,t,n,i),this.templateOptions&&this.templateOptions.showFormHeader&&this.templateOptions.formHeaderItems&&(this._checkSubTreeValues(this.templateOptions.formHeaderItems),a.templateData=this._processDataInItems(this.templateOptions.formHeaderItems,e,t,n,i)),angular.copy(a)},checkValidity:function(){for(var e=this,t=[],n=this.itemList.length,i=function(n){var i=e.itemList[n];if(i._skipLogicStatus!==e._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED&&(e._checkValidations(i),void 0!==i._validationErrors&&i._validationErrors.length)){var a=i._validationErrors.map((function(e){return"".concat(i.question," ").concat(e)}));Array.prototype.push.apply(t,a)}},a=0;a<n;a++)i(a);return t.length?t:null},_checkSubTreeValues:function(e){for(var t=0,n=e.length;t<n;t++)this._setSubTreeHasValue(e[t])},_setSubTreeHasValue:function(t){var n=!1;if(e.Util.isItemValueEmpty(t.value)||(n=!0),t.items&&t.items.length>0)for(var i=0,a=t.items.length;i<a;i++){this._setSubTreeHasValue(t.items[i])&&(n=!0)}return t._itemOrSubtreeHasValue=n,n},_processDataInItems:function(e,t,n,i,a){for(var r=[],l=0,s=e.length;l<s;l++){var o=e[l],u={};if(!(i&&o._skipLogicStatus===this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED||n&&!o._itemOrSubtreeHasValue&&!o.header)){if(t)u.questionCode=o.questionCode,o.header||(void 0!==o.value&&(u.value=this._getOriginalValue(o.value,o.dataType)),o.unit&&(u.unit=this._getOriginalValue(o.unit)));else for(var c in o.extension&&(u.extension=o.extension),o)"value"===c?u[c]=this._getOriginalValue(o[c],o.dataType):"unit"===c?u[c]=this._getOriginalValue(o[c]):c.match(/^[_\$]/)||"extension"===c||(u[c]=o[c]),a&&(u._id=o._id);o.items&&o.items.length>0&&(u.items=this._processDataInItems(o.items,t,n,i,a)),(!n||u.items&&0!==u.items.length||o._itemOrSubtreeHasValue)&&r.push(u)}}return r},_filterInternalData:function(e,t){var n={};if(t&&e._notOnList&&e._displayText)n=e._displayText;else for(var i in e)i.match(/^[_\$]/)||(n[i]=e[i]);return n},_getObjectValue:function(e,t){var n=null;if(e)if(Array.isArray(e)){for(var i=[],a=0,r=e.length;a<r;a++)angular.isObject(e[a])&&i.push(this._filterInternalData(e[a],t));n=i}else angular.isObject(e)&&(n=this._filterInternalData(e,t));return n},_getOriginalValue:function(t,n){var i;if(null!=t)if(n)switch(n){case this._CONSTANTS.DATA_TYPE.INT:i=parseInt(t);break;case this._CONSTANTS.DATA_TYPE.REAL:case this._CONSTANTS.DATA_TYPE.QTY:i=parseFloat(t);break;case this._CONSTANTS.DATA_TYPE.DT:i=e.Util.dateToDTStringISO(t);break;case this._CONSTANTS.DATA_TYPE.DTM:i=e.Util.dateToDTMString(t);break;case this._CONSTANTS.DATA_TYPE.CNE:i=this._getObjectValue(t);break;case this._CONSTANTS.DATA_TYPE.CWE:i=this._getObjectValue(t,!0);break;case this._CONSTANTS.DATA_TYPE.BL:i=!!t;break;default:i=t}else i=this._getObjectValue(t);return i},getRepeatingItemMaxId:function(e){var t=e._id;if(e._parentItem&&Array.isArray(e._parentItem.items))for(var n=0,i=e._parentItem.items.length;n<i;n++)e._parentItem.items[n].linkId===e.linkId&&e._parentItem.items[n]._id>t&&(t=e._parentItem.items[n]._id);return t},getRepeatingItemCount:function(e){var t=0;if(e._parentItem&&Array.isArray(e._parentItem.items))for(var n=0,i=e._parentItem.items.length;n<i;n++)e._parentItem.items[n].linkId===e.linkId&&t++;return t},_updateLastRepeatingItemsStatus:function(e){if(e&&0!==e.length){for(var t=e.length,n="",i=0;i<t;i++){var a=e[i];""!==n&&(e[i-1]._lastRepeatingItem=!(n===a.linkId||!e[i-1]._questionRepeatable)),n=a.linkId,a.items&&a.items.length>0&&this._updateLastRepeatingItemsStatus(a.items)}e[t-1]._lastRepeatingItem=!!e[t-1]._questionRepeatable,e[t-1].items&&e[t-1].items.length>0&&this._updateLastRepeatingItemsStatus(e[t-1].items)}},_getLastSubItem:function(e){var t=e;if(e&&Array.isArray(e.items)&&e.items.length>0){var n,i=e.items.length,a=!1;do{(n=e.items[--i])._skipLogicStatus!==this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED&&(a=!0)}while(!a);a&&(t=this._getLastSubItem(n))}return t},_resetHorizontalTableInfo:function(){this._horizontalTableInfo={};for(var e=null,t=null,n=0,i=this.itemList.length;n<i;n++){var a=this.itemList[n];if(a.header&&a.displayControl&&"horizontal"==a.displayControl.questionLayout){var r=[],l=[];a._inHorizontalTable=!0;var s=a.linkId+a._parentItem._idPath;if(t=a._elementId,null===e||e!==s){e=s,a._horizontalTableHeader=!0,a._horizontalTableId=e;for(var o=0,u=(r=a.items).length;o<u;o++){var c=r[o];l.push({item:c,id:"col"+c._elementId,displayControl:c.displayControl}),r[o]._inHorizontalTable=!0}this._horizontalTableInfo[e]={tableStartIndex:n,tableEndIndex:n+r.length,columnHeaders:l,tableRows:[{header:a,cells:r}],tableHeaders:[a]},this._horizontalTableInfo[e].lastHeaderId=t}else if(e===s){a._horizontalTableHeader=!1;for(o=0,u=(r=a.items).length;o<u;o++)r[o]._inHorizontalTable=!0;this._horizontalTableInfo[e].tableRows.push({header:a,cells:r}),this._horizontalTableInfo[e].tableHeaders.push(a),this._horizontalTableInfo[e].tableEndIndex=n+r.length,this._horizontalTableInfo[e].lastHeaderId=t}}}},_adjustLastSiblingListForHorizontalLayout:function(){var e=this._horizontalTableInfo;for(var t in e){var n=e[t].tableHeaders;if(n.length>1){var i=n[0],a=n[n.length-1];i._lastSibling=a._lastSibling}}},addRepeatingItems:function(e){var t=this.getRepeatingItemMaxId(e),n=angular.copy(this._repeatableItems[e.linkId]);if(n._id=t+1,e._parentItem&&Array.isArray(e._parentItem.items)){for(var i=0,a=0,r=e._parentItem.items.length;a<r;a++)if(e._parentItem.items[a].linkId===e.linkId&&e._parentItem.items[a]._id===e._id){i=a;break}e._parentItem.items.splice(i+1,0,n),n._parentItem=e._parentItem,this._presetSkipLogicStatus(n,!1)}this._resetInternalData();var l="Added "+this.itemDescription(e);return this._actionLogs.push(l),n},appendRepeatingItems:function(e){var t=this.getRepeatingItemMaxId(e),n=angular.copy(this._repeatableItems[e.linkId]);if(n._id=t+1,e._parentItem&&Array.isArray(e._parentItem.items)){for(var i=0,a=!1,r=0,l=e._parentItem.items.length;r<l;r++)if(e._parentItem.items[r].linkId===e.linkId&&(a=!0),a&&e._parentItem.items[r].linkId!==e.linkId){i=r;break}a&&r===l&&(i=r),e._parentItem.items.splice(i,0,n),n._parentItem=e._parentItem,this._presetSkipLogicStatus(n,!1)}this._resetInternalData();var s="Added "+this.itemDescription(e);return this._actionLogs.push(s),n},areAnyRepeatingItemsEmpty:function(e){for(var t=!1,n=this._getRepeatingItems(e),i=0,a=n.length;i<a;i++){n[i]._showUnusedItemWarning=!1,this._isRepeatingItemEmpty(n[i])&&(t=!0)}return t&&(e._showUnusedItemWarning=!0),t},_isRepeatingItemEmpty:function(e){var t=!0;if(e._skipLogicStatus!==this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED){if(angular.isArray(e.value)&&e.value.length>0){for(var n=!1,i=0,a=e.value.length;i<a&&(e.value[i].text&&(n=void 0!==e.value[i].text&&null!==e.value[i].text&&""!==e.value[i].text),!n);i++);t=!n}else if(angular.isObject(e.value)){var r=e.value;t=!(null!=r.data&&null!=r.data||r.url||r.text)}else void 0!==e.value&&null!==e.value&&""!==e.value&&(t=!1);if(t&&e.items)for(var l=0,s=e.items.length;l<s&&(t=this._isRepeatingItemEmpty(e.items[l]));l++);}return t},_getRepeatingItems:function(e){var t=[];if(e._questionRepeatable&&e._parentItem&&Array.isArray(e._parentItem.items))for(var n=e._parentItem.items,i=0,a=n.length;i<a;i++)n[i].linkId===e.linkId&&t.push(n[i]);return t},getPrevRepeatingItem:function(e){var t=this._getRepeatingItems(e),n=t.map((function(e){return e._elementId})).indexOf(e._elementId);return n>0?t[n-1]:null},getNextRepeatingItem:function(e){var t=this._getRepeatingItems(e),n=t.map((function(e){return e._elementId})).indexOf(e._elementId);return n<t.length-1?t[n+1]:null},getFirstRepeatingItem:function(e){return this._getRepeatingItems(e)[0]},getLastRepeatingItem:function(e){var t=this._getRepeatingItems(e);return t[t.length-1]},removeRepeatingItems:function(e){if(e._parentItem&&Array.isArray(e._parentItem.items))for(var t=0,n=e._parentItem.items.length;t<n;t++)if(e._parentItem.items[t].linkId==e.linkId&&e._parentItem.items[t]._id==e._id){e._parentItem.items.splice(t,1);break}this._resetInternalData();var i="Removed "+this.itemDescription(e);this._actionLogs.push(i)},itemDescription:function(e){return e._inHorizontalTable?"row":e.header?"section":"question"},_getScores:function(e,t){for(var n=[],i=this._getFormulaSourceItems(e,t.value),a=0,r=i.length;a<r;a++){var l=0;(e=i[a])&&e.value&&e.value.score&&e._skipLogicStatus!==this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED&&(l=e.value.score),n.push(l)}return n},_getFormulaSourceItems:function(e,t){for(var n=[],i=0,a=t.length;i<a;i++){var r=t[i],l=this._findItemByLinkId(e,r);n.push(l)}return n},_getValuesInStandardUnit:function(e,t){for(var n=[],i=this._getFormulaSourceItems(e,t.value),a=0,r=i.length;a<r;a++){var l="";(e=i[a]).value&&e._skipLogicStatus!==this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED&&(l=e.unit&&e.unit.name?this.Units.getValueInStandardUnit(parseFloat(e.value),e.unit.name):parseFloat(e.value)),n.push(l)}return n},getFormulaResult:function(e){var t="",n=[];if(e.calculationMethod){var i=e.calculationMethod;n=i.name===this._CONSTANTS.CALCULATION_METHOD.TOTALSCORE?this._getScores(e,i):this._getValuesInStandardUnit(e,i),t=this.Formulas.calculations_[i.name](n)}return t},_processItemFormula:function(e){e.calculationMethod&&e.calculationMethod.name&&(e.value=this.getFormulaResult(e))},_processItemDataControl:function(e){e.dataControl&&angular.isArray(e.dataControl)&&(this._updateDataByDataControl(e),this._updateAutocompOptions(e,!0),this._updateUnitAutocompOptions(e))},_constructObjectByDataFormat:function(e,t){var n={};if(angular.isObject(e))for(var i=Object.keys(e),a=0,r=i.length;a<r;a++)n[i[a]]=this._getDataFromNestedAttributes(e[i[a]],t);return n},_constructArrayByDataFormat:function(e,t){var n=[],i=!1;if(angular.isObject(e)){for(var a=Object.keys(e),r={},l=a.length,s=-1,o=0;o<l;o++){var u=r[a[o]]=this._getDataFromNestedAttributes(e[a[o]],t);if(!Array.isArray(u)){i=!0;break}if(-1===s)s=u.length;else if(s!==u.length){i=!0;break}}if(!i)for(var c=0;c<s;c++){var f={};for(o=0;o<l;o++)f[a[o]]=r[a[o]][c];n.push(f)}}return n},_updateDataByDataControl:function(e){for(var t=0,n=e.dataControl.length;t<n;t++){var i=e.dataControl[t].source,a=e.dataControl[t].onAttribute,r=e.dataControl[t].construction,l=e.dataControl[t].dataFormat;if(a||(a="value"),r||(r=this._CONSTANTS.DATA_CONTROL.CONSTRUCTION_SIMPLE),l||(l="value"),i){var s=i.sourceType;if(s||(s=this._CONSTANTS.DATA_CONTROL.SOURCE_INTERNAL),s===this._CONSTANTS.DATA_CONTROL.SOURCE_INTERNAL&&i.sourceLinkId){var o=this._findItemByLinkId(e,i.sourceLinkId);if(o&&o._skipLogicStatus!==this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED)if(r===this._CONSTANTS.DATA_CONTROL.CONSTRUCTION_ARRAY){var u=this._constructArrayByDataFormat(l,o);e[a]=angular.copy(u)}else if(r===this._CONSTANTS.DATA_CONTROL.CONSTRUCTION_OBJECT){u=this._constructObjectByDataFormat(l,o);e[a]=angular.copy(u)}else if(r===this._CONSTANTS.DATA_CONTROL.CONSTRUCTION_SIMPLE){u=this._getDataFromNestedAttributes(l,o);e[a]=angular.copy(u)}}}}},_getDataFromNestedAttributes:function(e,t){for(var n=e.trim().split("."),i=t,a=n.length,r=0;r<a&&i;r++){var l=n[r];if(!l)break;var s=l.match(/^(.+)\[(\d+)\]$/);if(s){i=i[s[1]];var o=parseInt(s[2]);if(!Number.isInteger(o))break;i=i[o]}else i=i[l]}return r===a&&i?i:null},_setUpAnswerAndUnitAutoComp:function(e){for(var t=0,n=e.length;t<n;t++){var i=e[t];i.dataType!==this._CONSTANTS.DATA_TYPE.CWE&&i.dataType!==this._CONSTANTS.DATA_TYPE.CNE||this._updateAutocompOptions(i),this._updateUnitAutocompOptions(i)}},_setUnitDisplay:function(e){e._displayUnit=e.name?e.name:e.code?e.code:null},_updateUnitAutocompOptions:function(e){if(e.units&&e.dataType!==this._CONSTANTS.DATA_TYPE.CNE&&e.dataType!==this._CONSTANTS.DATA_TYPE.CWE){e.unit&&this._setUnitDisplay(e.unit),e._unitAutocompOptions=null;for(var t,n=[],i=e.units,a=0,r=i.length;a<r;a++){var l=angular.copy(i[a]);this._setUnitDisplay(l),i[a].default&&(l,t=l._displayUnit),l._displayUnit&&n.push(l)}if(e.dataType!==this._CONSTANTS.DATA_TYPE.INT&&e.dataType!==this._CONSTANTS.DATA_TYPE.REAL||(e.units&&e.units.length>1?(console.log('Form definition warning: Data types of INT or REAL may only have one unit. Question "'+e.question+'" has '+e.units.length+" units. For multiple units, use type QTY instead."),e.dataType=this._CONSTANTS.DATA_TYPE.QTY):(e._unitReadonly=!0,e.unit||(e.unit=n[0]))),e.dataType===this._CONSTANTS.DATA_TYPE.QTY){var s={listItems:n,matchListValue:!0,autoFill:!0,display:"_displayUnit"};void 0!==t?s.defaultValue=t:1===n.length&&(s.defaultValue=n[0]._displayUnit),e._unitAutocompOptions=s}}},_setModifiedAnswers:function(t,n){if(t.dataType===this._CONSTANTS.DATA_TYPE.CNE||t.dataType===this._CONSTANTS.DATA_TYPE.CWE){if(!t._modifiedAnswers||n){var i=[];if(Array.isArray(t.answers))i=t.answers;else if(t._answerValueSetKey){var a=e._valueSetAnswerCache[t._answerValueSetKey];a&&(i=a)}t._modifiedAnswers=[],t._hasOneAnswerLabel=!1,t._hasOneNumericAnswer=!1;for(var r=0,l=i.length;r<l;r++){var s=angular.copy(i[r]),o=s.text;s.label?(o=s.label+". "+o,t._hasOneAnswerLabel=!0):t._hasOneNumericAnswer||isNaN(s.text)||(t._hasOneNumericAnswer=!0),void 0!==s.score&&null!==s.score&&(o=o+" - "+s.score),s._displayText=o,t._modifiedAnswers.push(s)}}}else n&&delete t._modifiedAnswers},_resetItemValueWithModifiedAnswers:function(e){if(e._modifiedAnswers){var t=null,n=this.hasSavedData?e.value:e.value||e.defaultAnswer;if(n){t=[];var i=e._multipleAnswers&&Array.isArray(n)?n:[n];if("CWE"!==e.dataType)t=i;else for(var a=0,r=i.length;a<r;++a)"string"==typeof i[a]||"number"==typeof i[a]?(t.push({text:i[a],_displayText:i[a],_notOnList:!0}),e._answerOther=i[a],e._otherValueChecked=!0):t.push(i[a])}if(t){for(var l=[],s=0,o=t.length;s<o;++s){var u=t[s],c=!1;if(e.externallyDefined)l=t;else{for(var f=0,d=e._modifiedAnswers.length;!c&&f<d;++f)this._areTwoAnswersSame(u,e._modifiedAnswers[f],e)&&(l.push(e._modifiedAnswers[f]),c=!0);u&&!c&&(u.text&&(u._displayText=u.text),l.push(u))}}e.value=e._multipleAnswers?l:l[0]}}},_areTwoAnswersSame:function(t,n,i){var a=["label","code","text","score","other"],r=n.system?n.system:e.Util.getCodeSystem(i.answerCodeSystem||this.codeSystem),l=!1;if(!t.system&&!n.system||t.system===r){l=!0;for(var s=Object.keys(t),o=0,u=s.length;o<u;o++)if(a.indexOf(s[o])>=0&&t[s[o]]!==n[s[o]]){l=!1;break}}return l},_fhirClientSearchByValueSetID:function(t,n,i){return e.fhirContext.request(this._buildURL(["ValueSet",t,"$expand"],{count:i,filter:n}))},_buildURL:function(e,t){var n=e.map((function(e){return encodeURIComponent(e)})).join("/");return t&&(n+="?"+Object.keys(t).map((function(e){return e+"="+encodeURIComponent(t[e])})).join("&")),n},_findValueSetIDAndSearch:function(t,n,i){var a="Could not retrieve the ValueSet definition for "+t.answerValueSet,r=e.fhirContext;e._valueSetUrlToID||(e._valueSetUrlToID={});var l=e._valueSetUrlToID[t.answerValueSet];if(l)return this._fhirClientSearchByValueSetID(l,n,i);var s=this;return r.request(this._buildURL(["ValueSet"],{url:t.answerValueSet,_total:"accurate"})).then((function(r){var l=r;if(1===l.total){var o=l.entry[0].resource.id;return e._valueSetUrlToID[t.answerValueSet]=o,s._fhirClientSearchByValueSetID(o,n,i)}return console.log(a),Promise.reject(a)}),(function(e){return console.log(a),Promise.reject(a)}))},_updateAutocompOptions:function(t,n){if(t.dataType===this._CONSTANTS.DATA_TYPE.CNE||t.dataType===this._CONSTANTS.DATA_TYPE.CWE){t._modifiedAnswers&&!n||this._setModifiedAnswers(t,n);var i=t.answerCardinality?t.answerCardinality.max:1;"*"!==i&&"string"==typeof i&&(i=parseInt(i));var a={matchListValue:t.dataType===this._CONSTANTS.DATA_TYPE.CNE,maxSelect:i},r=t.externallyDefined;if(r){if(a.url=r,a.autocomp=!0,a.nonMatchSuggestions=!1,a.tableFormat=!0,a.valueCols=[0],a.colHeaders=t.displayControl.listColHeaders,a.colHeaders)for(var l=a.colHeaders,s=0,o=l.length;s<o;++s)l[s]=l[s].replace(/</g,"&lt;")}else if(t.isSearchAutocomplete&&t.answerValueSet){t.answerValueSet;var u=this._getFHIRSupport().SDC._getExpansionURL(t);if(u)a.url=u,a.fhir=!0;else{if(!e.fhirContext)throw new Error('Cannot properly initialize the list for field "'+t.question+'" because it requires either a terminology server to be specified or LForms.Util.setFHIRContext(...) to have been called to provide access to a FHIR server.');var c=this;a.fhir={search:function(n,i){return e.fhirCapabilities.urlExpandBroken?c._findValueSetIDAndSearch(t,n,i):e.fhirContext.request(c._buildURL(["ValueSet/$expand"],{count:i,filter:n,url:t.answerValueSet})).catch((function(a){return e.fhirCapabilities.urlExpandBroken=!0,c._findValueSetIDAndSearch(t,n,i)}))}}}}else{a.listItems=t._modifiedAnswers,a.addSeqNum=!t._hasOneAnswerLabel&&!t._hasOneNumericAnswer,a.display="_displayText";var f=a.listItems,d=!0;for(s=0,o=f.length;s<o&&d;++s)d=!!f[s].parentAnswerCode;if(!d){var p=[],m={};for(s=0,o=f.length;s<o;++s){var h=f[s];p.push(h.code),h.parentAnswerCode&&(m[h.code]=h.parentAnswerCode)}a.codes=p,a.itemToHeading=m}this.hasSavedData||a.defaultValue||1!==a.listItems.length||(a.defaultValue=a.listItems[0])}t._autocompOptions=a}},Units:{getValueInStandardUnit:function(e,t){return(e*this.units_[t]).toFixed(this.precision_)},getStandardUnit:function(){},precision_:4,units_:{kg:1,kgs:1,kilograms:1,pounds:.453592,lbs:.453592,cm:1,cms:1,centimeters:1,feet:30.48,ft:30.48,inches:2.54,"[in_i]":2.54,meters:100,"ft-inches":2.54}},Formulas:{calculations_:{precision_:2,TOTALSCORE:function(e){for(var t=0,n=0,i=e.length;n<i;n++)t+=parseFloat(e[n]);return t},BMI:function(e){var t="",n=parseFloat(e[0]),i=parseFloat(e[1]);return n&&""!=n&&i&&""!=i&&"0"!=i&&(t=(t=n/Math.pow(i/100,2)).toFixed(this.precision_)),t},BSA:function(e){var t="",n=parseFloat(e[0]),i=parseFloat(e[1]);return n&&""!=n&&i&&""!=i&&(t=(t=Math.sqrt(i*n/3600)).toFixed(this.precision_)),t}}},_inRange:function(e,t){var n=!1;if(e&&!isNaN(t)){var i=Object.keys(e);if(1==i.length)switch(i[0]){case"minInclusive":n=e.minInclusive<=t;break;case"minExclusive":n=e.minExclusive<t;break;case"maxInclusive":n=e.maxInclusive>=t;break;case"maxExclusive":n=e.maxExclusive>t}else 2==i.length&&(e.hasOwnProperty("minInclusive")?n=e.minInclusive<=t:e.hasOwnProperty("minExclusive")&&(n=e.minExclusive<t),n&&(e.hasOwnProperty("maxInclusive")?n=e.maxInclusive>=t:e.hasOwnProperty("maxExclusive")&&(n=e.maxExclusive>t)))}return n},_objectEqual:function(e,t){var n=!0;if(i(e)!==i(t))n=!1;else if("object"!==i(e))e!==t&&(n=!1);else{var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)n=!1;else for(var l=0,s=a.length;l<s;l++)if(e[a[l]]!==t[a[l]]){n=!1;break}}return n},_findItemByLinkId:function(e,t){for(var n=null,i=e._parentItem,a=!1;!a&&i;)i.linkId===t&&(n=i,a=!0),i=i._parentItem;var r=null;if(!n){for(var l=0,s=this.itemList.length;l<s;l++)if(e._elementId===this.itemList[l]._elementId){r=l;break}if(null!==r){for(var o=r-1;o>=0;o--)if(this.itemList[o].linkId===t){n=this.itemList[o];break}if(!n)for(var u=r+1,c=this.itemList.length;u<c;u++)if(this.itemList[u].linkId===t){n=this.itemList[u];break}}}return n},_getSkipLogicSourceItem:function(e,t){return this._findItemByLinkId(e,t)},_codingsEqual:function(e,t){var n=!1,i=function(e){return null!=e&&""!==e};return e.system!==t.system&&(e.system||t.system)||(n=i(e.code)||i(t.code)?e.code===t.code:e.text&&t.text&&e.text===t.text),!!n},_checkSkipLogicCondition:function(e,t){var n=!1,i=e&&void 0!==e.value&&null!==e.value&&""!==e.value&&e._skipLogicStatus!==this._CONSTANTS.SKIP_LOGIC.STATUS_DISABLED;if(t.hasOwnProperty("exists"))n=t.exists&&i||!t.exists&&!i;else if(i){var a=e.value;switch(e.dataType){case this._CONSTANTS.DATA_TYPE.CNE:case this._CONSTANTS.DATA_TYPE.CWE:for(var r=t.hasOwnProperty("value")?t.value:t.hasOwnProperty("notEqual")?t.notEqual:null,l=Array.isArray(a)?a:[a],s=!1,o=0,u=l.length;o<u;o++){var c=l[o];if(e.answerCodeSystem&&(c=Object.assign({system:e.answerCodeSystem},c)),this._codingsEqual(r,c)){s=!0;break}}t.hasOwnProperty("value")?s&&(n=!0):t.hasOwnProperty("notEqual")&&(s||(n=!0));break;case this._CONSTANTS.DATA_TYPE.INT:case this._CONSTANTS.DATA_TYPE.REAL:case this._CONSTANTS.DATA_TYPE.QTY:var f=parseFloat(a);t.hasOwnProperty("value")?t.value===f&&(n=!0):t.hasOwnProperty("notEqual")?t.notEqual!=f&&(n=!0):this._inRange(t,f)&&(n=!0);break;case this._CONSTANTS.DATA_TYPE.ST:case this._CONSTANTS.DATA_TYPE.BL:t.hasOwnProperty("value")?t.value===a&&(n=!0):t.hasOwnProperty("notEqual")&&t.notEqual!=a&&(n=!0)}}else t.hasOwnProperty("notEqual")&&void 0!==t.notEqual&&null!==t.notEqual&&""!==t.notEqual&&(n=!0);return n},_checkSkipLogic:function(e){var t=!1;if(e.skipLogic){var n="ALL"===e.skipLogic.logic,i=!e.skipLogic.logic||"ANY"===e.skipLogic.logic;t=n;for(var a=0,r=e.skipLogic.conditions.length;a<r;a++){var l=e.skipLogic.conditions[a],s=this._getSkipLogicSourceItem(e,l.source),o=this._checkSkipLogicCondition(s,l.trigger);if(n&&!o){t=!1;break}if(i&&o){t=!0;break}}}return t},getSkipLogicClass:function(e){return e._skipLogicStatus},isFormDone:function(){return this._formDone},needExtra:function(e){var t=!1;return e&&e.value&&!Array.isArray(e.value)&&e.value.other&&(t=!0),t},setActiveRow:function(e){this._activeItem=e},getActiveRowClass:function(e){var t="";return this._activeItem&&this._activeItem._elementId===e._elementId&&(t="active-row"),t},Navigation:{ARROW:{LEFT:37,UP:38,RIGHT:39,DOWN:40},TAB:9,_navigationMap:[],_reverseNavigationMap:{},setupNavigationMap:function(e){var t=e.itemList,n=0,i=0;this._navigationMap=[],this._reverseNavigationMap={};for(var a=0,r=t.length;a<r;a++)if(t[a]._inHorizontalTable||t[a].header){if(t[a]._horizontalTableHeader){var l=[t[a].linkId+t[a]._parentItem._idPath],s=e._horizontalTableInfo[l];if(s&&s.tableStartIndex===a){for(var o=0,u=s.tableRows.length;o<u;o++){var c=[],f=s.tableRows[o];n=0;for(var d=0,p=f.cells.length;d<p;d++){var m=f.cells[d];c.push(m._elementId),this._reverseNavigationMap[m._elementId]={x:n,y:i},n+=1}this._navigationMap.push(c),i+=1}a=s.tableEndIndex}}}else n=0,this._navigationMap.push([t[a]._elementId]),this._reverseNavigationMap[t[a]._elementId]={x:n,y:i},i+=1},getCurrentPosition:function(e){return e?this._reverseNavigationMap[e]:null},getNextFieldId:function(e,t){var n,i,a=this.getCurrentPosition(t);if(a){switch(e){case this.ARROW.LEFT:a.x>0?n={x:a.x-1,y:a.y}:a.y>0&&(n={x:this._navigationMap[a.y-1].length-1,y:a.y-1});break;case this.ARROW.RIGHT:a.x<this._navigationMap[a.y].length-1?n={x:a.x+1,y:a.y}:a.y<this._navigationMap.length-1&&(n={x:0,y:a.y+1});break;case this.ARROW.UP:if(a.y>0)(r=a.x)>=this._navigationMap[a.y-1].length&&(r=this._navigationMap[a.y-1].length-1),n={x:r,y:a.y-1};break;case this.ARROW.DOWN:var r;if(a.y<this._navigationMap.length-1)(r=a.x)>=this._navigationMap[a.y+1].length&&(r=this._navigationMap[a.y+1].length-1),n={x:r,y:a.y+1}}n&&(i=this._navigationMap[n.y][n.x])}return i}}})}()},function(e,t,n){
76
+ /** @preserve http://github.com/easeway/js-class */
77
+ function i(e,t,n){for(;t&&t!==Object.prototype&&(Object.getOwnPropertyNames(t).forEach((function(n){if(".class"!=n&&!e.hasOwnProperty(n)){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,i)}})),!n);)t=t.__proto__;return e}var a=function e(t,n,i){"function"!=typeof t&&(i=n,n=t,t=Object),n||(n={}),i||(i={});var a={name:i.name,base:t,implements:[]},r=e.clone(n);i.implements&&(Array.isArray(i.implements)?i.implements:[i.implements]).forEach((function(t){"function"==typeof t&&t.prototype&&(a.implements.push(t),e.extend(r,t.prototype))})),r.__proto__=t.prototype;var l=function(){"function"==typeof this.constructor&&this.constructor.apply(this,arguments)};return a.type=l,l.prototype=r,Object.defineProperty(l,".class.meta",{value:a,enumerable:!1,configurable:!1,writable:!1}),Object.defineProperty(r,".class",{value:l,enumerable:!1,configurable:!1,writable:!1}),i.statics&&e.extend(l,i.statics),l};a.extend=i,a.clone=function(e){return i({},e)};var r=a({constructor:function(e){this.object=e},typeOf:function(e){if(this.object instanceof e)return!0;var t=a.typeInfo(this.object);return t&&function e(t,n){for(;t;){if(t.type.prototype===n.prototype)return!0;for(var i in t.implements){var a=t.implements[i],r=a[".class.meta"];if(r){if(e(r,n))return!0}else for(var l=a.prototype;l;l=l.__proto__)if(l===n.prototype)return!0}t=t.base?t.base[".class.meta"]:void 0}return!1}(t,e)}});r.prototype.a=r.prototype.typeOf,r.prototype.an=r.prototype.typeOf,a.is=function(e){return new r(e)},a.typeInfo=function(e){var t=e.__proto__[".class"];return t?t[".class.meta"]:void 0},a.VERSION=[0,0,2],e.exports=a},function(e,t,n){e.exports={STU3:"partial",R4:"WIP"}},function(e,t){angular.module("lformsWidget").run(["$templateCache",function(e){"use strict";e.put("attachment.html",'<div id="{{item._elementId}}" aria-describedby="help-{{ item._elementId }}"\n ng-attr-aria-labelledby="{{labelledBy}}">\n <span ng-if="!item.value">\n <input name="{{item._text}}" type="file"\n lf-file-model="item"\n placeholder="{{item._toolTip}}" ng-disabled="item._readOnly"\n id="{{\'file-\'+item._elementId}}" ng-focus="setActiveRow(item)"\n ng-blur="activeRowOnBlur(item)" >\n <button type="button" class="lf-attachment-button toggle-attachment-fields" title="{{item._useURL ?\n \'Hide URL field\' : \'Show URL field\'}}"\n ng-click="item._useURL = !item._useURL">&#x21af;</button>\n <div ng-if="item._useURL">\n <label>URL for file:\n <input type="string" ng-disabled="item._readOnly" class="lf-attachment-url"\n ng-model="item._attachmentURL" placeholder="URL for retrieving file" ng-focus="setActiveRow(item)"\n ng-blur="activeRowOnBlur(item)" >\n <input type="string" ng-disabled="item._readOnly" ng-focus="setActiveRow(item)"\n ng-blur="activeRowOnBlur(item)" ng-model="item._attachmentName" placeholder="File name (optional)">\n <button type="button" class="lf-float-button attach-button" ng-click="createAttachment(item)"\n >Attach URL{{item._fileInfo ? \' and file data\': \'\'}}</button><br>\n Note: The URL you enter will not be downloaded or\n verified, but simply copied into your response. Please ensure\n that it works.\n </div>\n </span>\n <span ng-if="item.value">\n <a ng-if="!item.value._progress" button title="{{\'Download \'+item.value.title}}"\n target=_blank rel="noreferrer" download={{item.title}}\n href="{{item.value.url && !item.value.data ? item.value.url : \'javascript:void(0)\'}}" class="download-link"\n ng-click="downloadAttachment(item.value, $event)"\n >{{item.value.title || item.value.url || \'Unknown filename\'}}</a>\n <span ng-if="item.value._progress"><label>Download progress:\n <progress value="{{item.value._progress}}"></progress></label></span>\n <button class="lf-attachment-button lf-remove-attachment" ng-if"!item._readOnly"\n type="button" title="{{\'Remove \'+item.value.title}}"\n ng-click="removeAttachment(item)">&#x2716;</button>\n </span>\n</div>\n'),e.put("field-answers.html",'\x3c!-- Do not create a list that does not exist yet (e.g. one based on an\n Expression that has not yet been evalulated). Once the list is created,\n autocomplete-lhc will erase the model data if the list is changed.\n We do show the empty list if a list did exist and now does not. --\x3e\n<div class="lf-field-answers" ng-if="lfData._expressionProcessor._firstExpressionRunComplete || !item._hasListExpr"\n ng-switch on="item.displayControl.answerLayout.type">\n \x3c!--list style--\x3e\n <div ng-switch-when="RADIO_CHECKBOX" class="lf-answer-type-list"\n role="radiogroup" aria-labeledby="label-{{ item._elementId }}"\n aria-describedby="help-{{ item._elementId }}">\n <span ng-repeat="answer in item._modifiedAnswers track by $index" class="lf-answer {{getAnswerLayoutColumnClass(item)}}">\n \x3c!--checkboxes for multiple selections--\x3e\n <div ng-if="item._multipleAnswers">\n <input class="lf-answer-button" type="checkbox" id="{{item._elementId + answer.code}}"\n ng-click="updateCheckboxList(item, answer)" ng-disabled="item._readOnly"\n ng-checked="checkAnswer(item,answer)">\n <label class="lf-answer-label" for="{{item._elementId + answer.code}}">{{answer._displayText}}</label>\n </div>\n \x3c!--radio buttons for single selection--\x3e\n <div ng-if="!item._multipleAnswers">\n <input class="lf-answer-button" type="radio" id="{{item._elementId + answer.code}}"\n ng-model="item.value" ng-value="answer" name="{{item._elementId}}"\n ng-click="updateRadioList(item)" ng-disabled="item._readOnly" >\n <label class="lf-answer-label" for="{{item._elementId + answer.code}}">{{answer._displayText}}</label>\n </div>\n </span>\n \x3c!--extra OTHER field--\x3e\n \x3c!--<div class="lf-answer-type-list-other">--\x3e\n <span ng-if="item.dataType===\'CWE\'" class="lf-answer lf-answer-cwe-other {{getAnswerLayoutColumnClass(item)}}">\n \x3c!--checkboxes for multiple selections--\x3e\n <div ng-if="item._multipleAnswers" class="">\n <input class="lf-answer-button" type="checkbox" ng-model="item._otherValueChecked"\n id="{{item._elementId + \'_other\'}}" ng-disabled="item._readOnly"\n ng-change="updateCheckboxListForOther(item, item._answerOther)"\n ng-checked="checkAnswer(item,{\'text\':item._answerOther})">\n <label class="lf-answer-label" for="{{item._elementId + \'_other\'}}">OTHER:</label>\n <input ng-if="item._otherValueChecked" class="lf-answer-other" type="text" ng-model="item._answerOther"\n id="{{item._elementId + \'_otherValue\'}}" ng-disabled="item._readOnly"\n ng-change="updateCheckboxListForOther(item, item._answerOther)">\n </div>\n\n \x3c!--radio buttons for single selection--\x3e\n <div ng-if="!item._multipleAnswers" class="">\n <input class="lf-answer-button" type="radio" id="{{item._elementId + \'_other\'}}"\n ng-model="item._otherValueChecked" ng-value="true"\n name="{{item._elementId}}" ng-disabled="item._readOnly"\n ng-change="updateRadioListForOther(item, item._answerOther)">\n <label class="lf-answer-label" for="{{item._elementId + \'_other\'}}">OTHER:</label>\n <input ng-if="item._otherValueChecked" class="lf-answer-other" type="text"\n id="{{item._elementId + \'_otherValue\'}}" ng-model="item._answerOther"\n ng-change="updateRadioListForOther(item, item._answerOther)"\n ng-disabled="item._readOnly">\n </div>\n </span>\n \x3c!--</div>--\x3e\n </div>\n\n \x3c!--COMBO_BOX style (default is \'COMBO_BOX\')--\x3e\n <div ng-switch-default class="lf-answer-type-combo">\n <input name="{{item._text +\'_\'+ $id}}" type="text"\n ng-model="item.value" autocomplete-lhc="item._autocompOptions"\n ng-disabled="item._readOnly" placeholder="{{item._toolTip}}"\n id="{{item._elementId}}"\n ng-focus="setActiveRow(item)" ng-blur="activeRowOnBlur(item)">\n </div>\n</div>\n<div ng-if="!lfData._expressionProcessor._firstExpressionRunComplete && item._hasListExpr">Waiting for list data</div>\n'),e.put("field-units.html",'<div class="lf-field-units" ng-switch on="item.displayControl.unitLayout">\n \x3c!--list style--\x3e\n <div ng-switch-when="RADIO_CHECKBOX">\n <span ng-repeat="unit in item.units">\n <label>\n <input type="radio" ng-model="item.unit" ng-value="unit"\n ng-readonly="item._unitReadonly">{{unit._displayUnit}}\n </label>\n </span>\n </div>\n\n \x3c!--COMBO_BOX style (default is \'COMBO_BOX\')--\x3e\n <div ng-switch-default>\n <input ng-if="!item._unitReadonly" class="units" type="text" ng-disabled="item._readOnly"\n ng-model="item.unit" autocomplete-lhc="item._unitAutocompOptions"\n placeholder="Select one" id="unit_{{item._elementId}}"\n aria-labelledby="th_Units">\n <input ng-if="item._unitReadonly" class="units" type="text" ng-disabled="item._readOnly"\n id="unit_{{item._elementId}}" value="{{item.unit._displayUnit}}"\n aria-labelledby="th_Units" readonly>\n </div>\n\n</div>\n\n'),e.put("form-controls.html",'<div class="stopped" ng-show="isFormDone()">\n <img ng-src="{{::blankGifDataUrl}}" class="stop-sign">\n <span>This form is complete.</span>\n</div>\n<div class="lf-form-controls" ng-if="!lfData.templateOptions.hideFormControls">\n <div class="lf-form-control">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showQuestionCode"> Display Question Code</label>\n </div>\n\n <div class="lf-form-control">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showCodingInstruction"> Show Help/Description</label>\n </div>\n <div class="lf-form-control">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.tabOnInputFieldsOnly"> Keyboard Navigation On Input Fields</label>\n </div>\n <div class="lf-form-control">\n <div class="text-info" >Total # of Questions: {{getNumberOfQuestions()}}</div>\n </div>\n</div>\n'),e.put("form-header.html",' <div class="lf-form-header" ng-if="lfData.templateOptions.showFormHeader">\n <div class="lf-header-de" ng-style="getHeaderItemStyle(item)"\n ng-repeat="item in lfData.templateOptions.formHeaderItems">\n <div class="lf-header-de-label">\n <span class="lf-question"><label for="{{item.questionCode}}">{{item.question}}</label></span>\n </div>\n <div class="lf-header-de-input" ng-switch on="item.dataType">\n <ng-form name="innerForm">\n <div class="lf-form-item-data tooltipContainer">\n <div class="tooltipContent" lf-validate="item" ng-model="item.value"></div>\n <input ng-switch-when="CWE" name="{{item.question}}" type="text"\n placeholder="Select or type a value"\n ng-model="item.value"\n autocomplete-lhc="item._autocompOptions"\n id="{{item.questionCode}}"\n ng-blur="activeRowOnBlur(item)">\n <input ng-switch-when="DT" name="{{item.question}}" type="text"\n ng-model="item.value" lf-date="dateOptions"\n placeholder="MM/DD/YYYY"\n id="{{item.questionCode}}"\n ng-blur="activeRowOnBlur(item)">\n <input ng-switch-default name="{{item.question}}" type="text"\n ng-model="item.value" placeholder="Type a value"\n id="{{item.questionCode}}"\n ng-blur="activeRowOnBlur(item)">\n <textarea ng-switch-when="TX" name="{{item.question}}"\n ng-model="item.value" placeholder="Type a value"\n id="{{item.questionCode}}" ng-keyup="autoExpand($event)" ng-blur="autoExpand($event)" rows="1"\n ng-blur="activeRowOnBlur(item)">\n </textarea>\n </div>\n </ng-form>\n </div>\n </div>\n </div>\n'),e.put("form-options.html",'<div class="lf-form-options" ng-if="lfData.templateOptions.showFormOptionPanel">\n\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showQuestionCode">Display question code</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showCodingInstruction">Show help/description</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.hideFormControls">Hide form controls</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showFormOptionPanelButton">Display form\'s option button</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showFormOptionPanel">Display form\'s option panel</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showItemOptionPanelButton">Display item\'s option button</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.hideUnits">Hide units</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.allowMultipleEmptyRepeatingItems">Allow multiple empty repeating questions/sections</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.allowHTMLInInstructions">Allow HTML content in instructions</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showFormHeader">Display form header questions</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.showColumnHeaders">Display column headers</label>\n </div>\n <div class="lf-form-option">\n <label><input type="checkbox" value="" ng-model="lfData.templateOptions.useTreeLineStyle">Tree line style</label>\n </div>\n <div class="lf-form-option">\n <label for="viewMode">View mode</label>\n <select name="viewMode" ng-model="lfData.templateOptions.viewMode">\n <option value="auto">Responsive [auto]</option>\n <option value="lg">For large screen [lg]</option>\n <option value="md">For medium screen [md]</option>\n <option value="sm">For small screen [sm]</option>\n </select>\n\n </div>\n\n</div>\n'),e.put("form-title.html",'<div class="lf-form-title" role="heading" aria-level=1>\n <span id="label-{{ lfData.code }}" class="lf-question"\n style="{{lfData._obj_titleCSS}}">{{lfData.name || lfData.fhirQName}}</span>\n <span class="lf-item-code" ng-if="lfData.templateOptions.showQuestionCode">\n <a ng-if="lfData._linkToDef" href="{{ lfData._linkToDef }}" target="_blank" rel="noopener noreferrer">[{{ lfData.code }}]</a>\n <span ng-if="!lfData._linkToDef">[{{ lfData.code }}]</span>\n </span>\n <button ng-if="lfData.copyrightNotice" id="copyright-{{lfData.code}}" type="button"\n class="lf-copyright-button btn-sm" uib-popover="{{lfData.copyrightNotice}}"\n popover-trigger="focus" popover-placement="right"\n popover-title="Copyright" aria-label="Copyright notice"\n aria-describedby="label-{{ lfData.code }}">\n <span class="glyphicon glyphicon-copyright-mark" aria-hidden="true"></span>\n </button>\n <button ng-if="lfData.templateOptions.showFormOptionPanelButton" type="button" class="lf-control-button btn-sm"\n ng-click="hideShowFormOptionPanel()" aria-label="Form Option Panel">\n <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>\n </button>\n\n</div>\n'),e.put("form-view.html",'<div class="lf-form-view {{getViewModeClass()}}" ng-controller="LFormsCtrl" ng-switch on="lfData.template">\n <div ng-switch-when="table">\n <div ng-include="\'template-table.html\'"></div>\n </div>\n \x3c!-- default is \'table\' --\x3e\n <div ng-switch-default>\n <div ng-include="\'template-table.html\'"></div>\n </div>\n\n \x3c!--debugging--\x3e\n <button type="button" ng-if="debug" ng-click="onclick()">Click to debug Panel Controller</button>\n\n</div>\n'),e.put("item-options.html",'<div ng-if="item._showItemOptionPanel">\n\n <div class="lf-item-options lf-section-options" ng-if="item.dataType===\'SECTION\'">\n <div class="lf-item-option">\n <input class="lf-answer-button" type="radio" id="{{item._elementId + \'vertical\'}}"\n ng-model="item.displayControl.questionLayout" value="vertical" name="{{item._elementId}} +\'option\'">\n <label class="lf-answer-label" for="{{item._elementId + \'vertical\'}}">Vertical</label>\n </div>\n <div class="lf-item-option" ng-if="isQuestionLayoutAllowed(item, \'horizontal\')">\n <input class="lf-answer-button" type="radio" id="{{item._elementId + \'horizontal\'}}"\n ng-model="item.displayControl.questionLayout" value="horizontal" name="{{item._elementId}} +\'option\'">\n <label class="lf-answer-label" for="{{item._elementId + \'horizontal\'}}">Horizontal</label>\n </div>\n <div class="lf-item-option" ng-if="isQuestionLayoutAllowed(item, \'matrix\')">\n <input class="lf-answer-button" type="radio" id="{{item._elementId + \'matrix\'}}"\n ng-model="item.displayControl.questionLayout" value="matrix" name="{{item._elementId}} +\'option\'">\n <label class="lf-answer-label" for="{{item._elementId + \'matrix\'}}">Matrix</label>\n </div>\n\n </div>\n\n <div class="lf-item-options" ng-if="item.answers && (item.dataType===\'CWE\' || item.dataType===\'CNE\')">\n <div class="lf-item-option">\n <input class="lf-answer-button" type="radio" id="{{item._elementId + \'combo\'}}"\n ng-model="item.displayControl.answerLayout.type" value="COMBO_BOX" name="{{item._elementId}} +\'option\'">\n <label class="lf-answer-label" for="{{item._elementId + \'combo\'}}">Combo box</label>\n </div>\n <div class="lf-item-option">\n <input class="lf-answer-button" type="radio" id="{{item._elementId + \'list\'}}"\n ng-model="item.displayControl.answerLayout.type" value="RADIO_CHECKBOX" name="{{item._elementId}} +\'option\'">\n <label class="lf-answer-label" for="{{item._elementId + \'list\'}}">{{item._multipleAnswers ? "Checkboxes" : "Radio buttons"}}</label>\n </div>\n <div class="lf-item-option" ng-if="item.displayControl.answerLayout.type===\'RADIO_CHECKBOX\'">\n <label for="{{item._elementId + \'columns\'}}"> Display format:</label>\n <select name="{{item._elementId + \'columns\'}}" id="{{item._elementId + \'columns\'}}" ng-model="item.displayControl.answerLayout.columns">\n <option value="">---Please select---</option> \x3c!-- not selected / blank option --\x3e\n <option value="0">Compact</option>\n <option value="1">In 1 column</option>\n <option value="2">In 2 columns</option>\n <option value="3">In 3 columns</option>\n <option value="4">In 4 columns</option>\n <option value="5">In 5 columns</option>\n <option value="6">In 6 columns</option>\n </select>\n </div>\n </div>\n\n</div>\n'),e.put("item.html",'<div ng-attr-role="{{item.header ? \'heading\' : undefined}}"\n ng-attr-aria-level="{{item.header ? item._displayLevel+1 : undefined}}"\n class="lf-form-table-row lf-de {{getSiblingStatus(item)}} {{getRowClass(item)}}\n {{getSkipLogicClass(item)}} {{getActiveRowClass(item)}}" ng-click="setActiveRow(item)">\n <div class="lf-de-label-button">\n \x3c!-- label --\x3e\n <div class="lf-de-label">\n <span ng-show="item._questionRepeatable" class="lf-sn">{{getRepeatingSN(item) }}</span>\n <span class="lf-question"><label id="label-{{ item._elementId }}"\n for="{{item._elementId}}"><ng-include src="\'itemPrefixAndText.html\'"></label></span>\n <span class="lf-item-code" ng-show="lfData.templateOptions.showQuestionCode">\n <a ng-if="item._linkToDef" href="{{ item._linkToDef }}" target="_blank" rel="noopener noreferrer">[{{ item.questionCode }}]</a>\n <span ng-if="!item._linkToDef">[{{ item.questionCode }}]</span>\n </span>\n <span ng-switch on="getCodingInstructionsDisplayType(item)" ng-if="item.codingInstructions">\n <span ng-switch-when="inline-html" id="help-{{ item._elementId }}"\n class="lf-prompt" ng-bind-html="getTrustedCodingInstructions(item)"></span>\n <span ng-switch-when="inline-escaped" id="help-{{ item._elementId }}"\n class="lf-prompt" ng-bind="item.codingInstructions"></span>\n <button ng-switch-when="popover-html" id="helpButton-{{ item._elementId }}"\n class="lf-help-button btn-sm" uib-popover-template="\'popover-content.html\'"\n popover-trigger="focus" popover-placement="right" popover-title="Instruction"\n type="button" aria-label="Help"\n aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>\n </button>\n <button ng-switch-when="popover-escaped" id="helpButton-{{ item._elementId }}"\n class="lf-help-button btn-sm" uib-popover="{{item.codingInstructions}}"\n popover-trigger="focus" popover-placement="right" popover-title="Instruction"\n type="button" aria-label="Help"\n aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>\n </button>\n </span>\n <button ng-if="item.copyrightNotice" id="copyright-{{item._elementId}}" type="button"\n class="lf-copyright-button btn-sm" uib-popover="{{item.copyrightNotice}}"\n popover-trigger="focus" popover-placement="right" popover-title="Copyright"\n aria-label="Copyright notice" aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-copyright-mark" aria-hidden="true"></span>\n </button>\n <button ng-if="isItemOptionPanelButtonShown(item)" type="button" class="lf-control-button btn-sm"\n ng-click="hideShowItemOptionPanel(item)" aria-label="Item controls"\n aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>\n </button>\n \x3c!-- TBD --\x3e\n <lf-item-options></lf-item-options>\n </div>\n\n \x3c!-- button --\x3e\n <div class="lf-de-button">\n <button ng-if="!hasOneRepeatingItem(item)" class="lf-float-button" type="button"\n ng-click="removeOneRepeatingItem(item)" id="del-{{item._elementId}}"\n title=\'Remove this "{{ item._text }}"\'>-</button>\n </div>\n </div>\n\n <div ng-if="item.dataType !==\'TITLE\' && !item.header" class="lf-de-input-unit" ng-style="getFieldWidth(item)">\n \x3c!-- input field --\x3e\n <div ng-switch on="item.dataType" class="lf-de-input values hasTooltip">\n <ng-form name="innerForm2">\n <div class="lf-form-item-data tooltipContainer">\n <div class="tooltipContent" lf-validate="item" ng-model="item.value" ng-if="item._hasValidation"></div>\n <div ng-switch-when="CNE">\n <lf-answers item="item"></lf-answers>\n </div>\n <div ng-switch-when="CWE">\n <lf-answers item="item"></lf-answers>\n </div>\n\n <input ng-switch-when="DT" name="{{item._text}}" type="text"\n ng-model="item.value" lf-date="dateOptions" placeholder="{{item._toolTip}}"\n ng-disabled="item._readOnly" id="{{item._elementId}}" ng-focus="setActiveRow(item)"\n ng-blur="activeRowOnBlur(item)" aria-describedby="help-{{ item._elementId }}"\n aria-required="{{ item._answerRequired }}">\n\n \x3c!-- Gillardo boostrap datetime picker --\x3e\n <div ng-switch-when="DTM" class="lf-dtm-picker-block">\n <input name="{{item._text}}" type="text" class="form-control"\n ng-model="item.value" placeholder="{{item._toolTip}}"\n datetime-picker="{{uibDateTimePickerFormat}}" alt-input-formats="uibDatePickerAltFormats"\n is-open="isOpen" enable-time="true" close-on-date-selection="true" button-bar="uibDtmPickerButtonBar"\n datepicker-options="uibDatePickerOptions" timepicker-options="uibTimePickerOptions"\n ng-disabled="item._readOnly" id="{{item._elementId}}" ng-focus="setActiveRow(item)"\n ng-blur="activeRowOnBlur(item); uibDtmPickerOnBlur(\'input\')" aria-describedby="help-{{ item._elementId }}"\n aria-required="{{ item._answerRequired }}">\n <button type="button" class="ui-datepicker-trigger" ng-click="openUibDtmPicker($event)"></button>\n </div>\n\n <textarea ng-switch-when="TX" name="{{item._text}}"\n ng-model="item.value" ng-attr-placeholder="{{item._toolTip}}" ng-disabled="item._readOnly"\n id="{{item._elementId}}" ng-keyup="autoExpand($event)" ng-blur="activeRowOnBlur(item);autoExpand($event)" rows="1"\n ng-focus="setActiveRow(item)" aria-describedby="help-{{ item._elementId }}"\n aria-required="{{ item._answerRequired }}">\n </textarea>\n <input ng-switch-when="BL" name="{{item._text}}" type="checkbox"\n ng-model="item.value" placeholder="{{item._toolTip}}" ng-disabled="item._readOnly"\n id="{{item._elementId}}" ng-focus="setActiveRow(item)"\n ng-true-value="true" ng-false-value="false"\n ng-blur="activeRowOnBlur(item)" aria-describedby="help-{{ item._elementId }}">\n <lf-attachment ng-switch-when="attachment" item="item"\n create-attachment="createAttachment(item)" id="attachment-{{item._elementId}}"></lf-attachment>\n <input ng-switch-default name="{{item._text}}" type="text"\n ng-model="item.value" placeholder="{{item._toolTip}}" ng-disabled="item._readOnly"\n id="{{item._elementId}}" ng-focus="setActiveRow(item)"\n ng-blur="activeRowOnBlur(item)" aria-describedby="help-{{ item._elementId }}"\n aria-required="{{ item._answerRequired }}">\n </div>\n </ng-form>\n </div>\n\n \x3c!--unit--\x3e\n <div ng-if="!lfData.templateOptions.hideUnits && checkUnits(item)" class="lf-de-unit">\n <lf-units item="item"></lf-units>\n </div>\n\n \x3c!-- extra question --\x3e\n <div ng-if="needExtra(item)" class="lf-de-unit">\n <input class="lf-extra-field" ng-model="item.valueOther" placeholder="Please specify"\n ng-disabled="item._readOnly" type="text" ng-focus="setActiveRow(item)">\n </div>\n </div>\n\n\n</div>\n\n'),e.put("itemPrefixAndText.html",'<span ng-if="item.prefix" class="prefix"\n style="{{item._obj_prefixCSS}}">{{item.prefix}}</span><span\n class="question" style={{item._obj_textCSS}}>{{item.question}}<span\n ng-if="item._answerRequired" class="required" title="Required">&nbsp;*</span></span>\n'),e.put("layout-horizontal.html",'<div class="lf-layout-horizontal lf-table-item {{getSiblingStatus(item)}} " ng-if="item._horizontalTableHeader && lfData._horizontalTableInfo[item._horizontalTableId]">\n <div ng-attr-role="{{item.header ? \'heading\' : undefined}}"\n ng-attr-aria-level="{{item.header ? item._displayLevel+1 : undefined}}"\n class="lf-form-horizontal-table-title lf-de-label">\n <span class="lf-question"><label id="label-{{ item._elementId }}"><ng-include src="\'itemPrefixAndText.html\'"></label></span>\n <span class="lf-item-code" ng-show="lfData.templateOptions.showQuestionCode">\n <a ng-if="item._linkToDef" href="{{ item._linkToDef }}" target="_blank" rel="noopener noreferrer">[{{ item.questionCode }}]</a>\n <span ng-if="!item._linkToDef">[{{ item.questionCode }}]</span>\n </span>\n <span ng-switch on="getCodingInstructionsDisplayType(item)" ng-if="item.codingInstructions">\n <span ng-switch-when="inline-html" class="lf-prompt" ng-bind-html="getTrustedCodingInstructions(item)"></span>\n <span ng-switch-when="inline-escaped" class="lf-prompt" ng-bind="item.codingInstructions"></span>\n <button ng-switch-when="popover-html" class="lf-help-button btn-sm" uib-popover-template="\'popover.html\'"\n popover-trigger="focus" popover-placement="right" popover-title="Instruction"\n type="button" id="help-{{item._elementId}}" aria-label="Help"\n aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>\n </button>\n <button ng-switch-when="popover-escaped" class="lf-help-button btn-sm" uib-popover="{{item.codingInstructions}}"\n popover-trigger="focus" popover-placement="right" popover-title="Instruction"\n type="button" id="help-{{item._elementId}}" aria-label="Help"\n aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>\n </button>\n </span>\n <button ng-if="item.copyrightNotice" id="copyright-{{item._elementId}}" type="button"\n class="lf-copyright-button btn-sm" uib-popover="{{item.copyrightNotice}}"\n popover-trigger="focus" popover-placement="right" popover-title="Copyright"\n aria-label="Copyright notice" aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-copyright-mark" aria-hidden="true"></span>\n </button>\n <button ng-if="isItemOptionPanelButtonShown(item)" type="button" class="lf-control-button btn-sm"\n ng-click="hideShowItemOptionPanel(item)" aria-label="Item controls"\n aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>\n </button>\n \x3c!-- TBD --\x3e\n <lf-item-options></lf-item-options>\n </div>\n\n <table class="lf-form-horizontal-table">\n <colgroup>\n <col class="lf-de-button" ng-if="item._questionRepeatable && lfData._horizontalTableInfo[item._horizontalTableId].tableRows.length>1">\n <col ng-repeat="col in lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders"\n ng-style="getTableColumnStyle(col)">\n </colgroup>\n <thead>\n <tr>\n <th class="lf-form-horizontal-table-header" ng-if="item._questionRepeatable && lfData._horizontalTableInfo[item._horizontalTableId].tableRows.length>1"></th>\n <th ng-repeat="col in lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders"\n ng-init="item = col.item" class="lf-form-horizontal-table-header"\n id="{{col.id}}"><ng-include src="\'itemPrefixAndText.html\'"></th>\n </tr>\n </thead>\n <tbody id="" class="">\n <tr ng-repeat="row in lfData._horizontalTableInfo[item._horizontalTableId].tableRows track by $index"\n class="data-row has-ng-animate">\n <td class="lf-de-button" ng-if="item._questionRepeatable && lfData._horizontalTableInfo[item._horizontalTableId].tableRows.length>1">\n <button ng-if="!hasOneRepeatingItem(item)" type="button"\n id="del-{{row.header._elementId}}"\n class="lf-float-button" ng-click="removeOneRepeatingItem(row.header)"\n title=\'Remove this row of "{{ row.header.question }}"\'>-</button>\n </td>\n\n <td ng-repeat="cell in row.cells"\n class="hasTooltip {{getRowClass(cell)}} {{getSkipLogicClass(cell)}} {{getActiveRowClass(cell)}}"\n ng-switch on="(!lfData._expressionProcessor._firstExpressionRunComplete && cell._hasListExpr) ? \'Loading List\' : cell.dataType">\n <ng-form name="innerForm2">\n <div class="lf-form-item-data tooltipContainer">\n <div class="tooltipContent" lf-validate="cell" ng-model="cell.value" ng-if="cell._hasValidation"></div>\n <span ng-switch-when="" > </span>\n <span ng-switch-when="Loading List">Loading list data...</span>\n <input ng-switch-when="CNE" name="{{cell.question + \'_\' + $id}}" type="text"\n ng-model="cell.value"\n autocomplete-lhc="cell._autocompOptions"\n ng-disabled="cell._readOnly" placeholder="{{cell._toolTip}}"\n id="{{cell._elementId}}"\n aria-labelledby="{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}"\n ng-focus="setActiveRow(cell)" ng-blur="activeRowOnBlur(cell)">\n <input ng-switch-when="CWE" name="{{cell.question + \'_\' + $id}}" type="text"\n ng-model="cell.value"\n autocomplete-lhc="cell._autocompOptions"\n ng-disabled="cell._readOnly" placeholder="{{cell._toolTip}}"\n id="{{cell._elementId}}"\n aria-labelledby="{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}"\n ng-focus="setActiveRow(cell)" ng-blur="activeRowOnBlur(cell)">\n <input ng-switch-when="REAL" name="{{cell.question}}" type="text"\n ng-model="cell.value"\n placeholder="{{cell._toolTip}}" ng-disabled="cell._readOnly"\n id="{{cell._elementId}}"\n aria-labelledby="{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}"\n ng-focus="setActiveRow(cell)" ng-blur="activeRowOnBlur(cell)">\n <input ng-switch-when="INT" name="{{cell.question}}" type="text"\n ng-model="cell.value"\n placeholder="{{cell._toolTip}}" ng-disabled="cell._readOnly"\n id="{{cell._elementId}}"\n aria-labelledby="{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}"\n ng-focus="setActiveRow(cell)" ng-blur="activeRowOnBlur(cell)">\n <input ng-switch-when="DT" name="{{cell.question}}" type="text"\n ng-model="cell.value"\n lf-date="dateOptions" placeholder="{{cell._toolTip}}" ng-disabled="cell._readOnly"\n id="{{cell._elementId}}"\n aria-labelledby="{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}"\n ng-focus="setActiveRow(cell)" ng-blur="activeRowOnBlur(cell)">\n \x3c!-- Gillardo boostrap datetime picker --\x3e\n <div ng-switch-when="DTM" class="lf-dtm-picker-block">\n <input name="{{cell.question}}" type="text" class="form-control"\n ng-model="cell.value"\n datetime-picker="{{uibDateTimePickerFormat}}" alt-input-formats="uibDatePickerAltFormats"\n is-open="isOpen" enable-time="true" close-on-date-selection="true" button-bar="uibDtmPickerButtonBar"\n datepicker-options="uibDatePickerOptions" timepicker-options="uibTimePickerOptions"\n placeholder="{{cell._toolTip}}" ng-disabled="cell._readOnly"\n id="{{cell._elementId}}"\n aria-labelledby="{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}"\n ng-focus="setActiveRow(cell)" ng-blur="activeRowOnBlur(cell); uibDtmPickerOnBlur(\'input\')">\n <button type="button" class="ui-datepicker-trigger" ng-click="openUibDtmPicker($event)"></button>\n </div>\n <textarea ng-switch-when="TX" name="{{cell.question}}"\n ng-model="cell.value" ng-attr-placeholder="{{cell._toolTip}}" ng-disabled="cell._readOnly"\n id="{{cell._elementId}}"\n aria-labelledby="{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}"\n ng-keyup="autoExpand($event)" rows="1"\n ng-focus="setActiveRow(cell)" ng-blur="activeRowOnBlur(cell)"></textarea>\n <lf-attachment ng-switch-when="attachment" item="cell"\n create-attachment="createAttachment(item)"\n labelled-by=lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id\n ></lf-attachment>\n <input ng-switch-default name="{{cell.question}}" type="text"\n ng-model="cell.value" placeholder="{{cell._toolTip}}" ng-disabled="cell._readOnly"\n id="{{cell._elementId}}"\n aria-labelledby="{{lfData._horizontalTableInfo[item._horizontalTableId].columnHeaders[$index].id}}"\n ng-focus="setActiveRow(cell)" ng-blur="activeRowOnBlur(cell)">\n </div>\n </ng-form>\n </td>\n </tr>\n </tbody>\n </table>\n\n <div ng-if="item._questionRepeatable && targetShown(item) "\n class="lf-form-table-row button-row {{getSkipLogicClass(item)}}">\n <div class="has-popover-warning">\n <button type="button"\n class="lf-float-button" id="add-{{item._elementId}}"\n ng-click="addOneRepeatingItem(item, true)"\n ng-blur="hideUnusedItemWarning(item)"\n uib-popover=\'Please enter info in the blank "{{ item._text }}".\'\n popover-placement="top-left"\n popover-trigger="none"\n popover-is-open="item._showUnusedItemWarning">\n + Add another "{{item._text}}"\n </button>\n </div>\n </div>\n</div>\n\n'),e.put("layout-matrix.html",'<div class="lf-layout-matrix lf-table-item {{getSiblingStatus(item)}}">\n <div ng-attr-role="{{item.header ? \'heading\' : undefined}}"\n ng-attr-aria-level="{{item.header ? item._displayLevel+1 : undefined}}"\n class="lf-form-matrix-table-title lf-de-label">\n <span class="lf-question"><label id="label-{{ item._elementId }}"><ng-include src="\'itemPrefixAndText.html\'"></label></span>\n <span class="lf-item-code" ng-show="lfData.templateOptions.showQuestionCode">\n <a ng-if="item._linkToDef" href="{{ item._linkToDef }}" target="_blank" rel="noopener noreferrer">[{{ item.questionCode }}]</a>\n <span ng-if="!item._linkToDef">[{{ item.questionCode }}]</span>\n </span>\n <span ng-switch on="getCodingInstructionsDisplayType(item)" ng-if="item.codingInstructions">\n <span ng-switch-when="inline-html" class="lf-prompt" ng-bind-html="getTrustedCodingInstructions(item)"\n id="help-{{ item._elementId }}"></span>\n <span ng-switch-when="inline-escaped" class="lf-prompt" ng-bind="item.codingInstructions"\n id="help-{{ item._elementId }}"></span>\n <button ng-switch-when="popover-html" class="lf-help-button btn-sm" uib-popover-template="\'popover.html\'"\n popover-trigger="focus" popover-placement="right" popover-title="Instruction"\n type="button" id="helpButton-{{item._elementId}}" aria-label="Help"\n aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>\n </button>\n <button ng-switch-when="popover-escaped" class="lf-help-button btn-sm" uib-popover="{{item.codingInstructions}}"\n popover-trigger="focus" popover-placement="right" popover-title="Instruction"\n type="button" id="helpButton-{{item._elementId}}" aria-label="Help"\n aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>\n </button>\n </span>\n <button ng-if="item.copyrightNotice" id="copyright-{{item._elementId}}" type="button"\n class="lf-copyright-button btn-sm" uib-popover="{{item.copyrightNotice}}"\n popover-trigger="focus" popover-placement="right" popover-title="Copyright"\n aria-label="Copyright notice" aria-describedby="label-{{ item._elementId }}">\n <span class="glyphicon glyphicon-copyright-mark" aria-hidden="true"></span>\n </button>\n <button ng-if="isItemOptionPanelButtonShown(item)" type="button" class="lf-control-button btn-sm"\n ng-click="hideShowItemOptionPanel(item)" aria-label="Item controls"\n aria-describedby="label-{{item._elementId}}">\n <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>\n </button>\n \x3c!-- TBD --\x3e\n <lf-item-options></lf-item-options>\n </div>\n <table class="lf-form-matrix-table lf-form-table">\n <colgroup>\n <col class="lf-question">\n <col ng-repeat="answer in item.items[0].answers">\n <col class="other-answer" ng-if="item.items[0].dataType ===\'CWE\'">\n </colgroup>\n <thead>\n <tr class="lf-">\n <th class="lf-question lf-form-table-header"></th>\n <th ng-repeat="answer in item.items[0].answers"\n class="lf-form-matrix-cell lf-form-table-header"\n id="answer-{{$index}}">{{answer.text}}</th>\n <th class="lf-form-matrix-cell-other lf-form-table-header" ng-if="item.items[0].dataType ===\'CWE\'"\n id="otherAnswer">Other</th>\n </tr>\n </thead>\n <tbody>\n <tr ng-repeat="subItem in item.items" role="radiogroup"\n ng-init="firstItem = item.items[0] ; item = subItem"\n aria-labeledby="label-{{subItem._elementId }}"\n aria-describedby="help-{{ subItem._parentItem._elementId }} help-{{ subItem._elementId }}">\n <td class="lf-question">\n <div class="lf-de-label">\n <span class="lf-question"><label id="label-{{ subItem._elementId }}"\n for="{{subItem._elementId}}"><ng-include src="\'itemPrefixAndText.html\'"></label></span>\n <span class="lf-item-code" ng-show="lfData.templateOptions.showQuestionCode">\n <a ng-if="subItem._linkToDef" href="{{ subItem._linkToDef }}" target="_blank" rel="noopener noreferrer">[{{ subItem.questionCode }}]</a>\n <span ng-if="!subItem._linkToDef">[{{ subItem.questionCode }}]</span>\n </span>\n <span ng-switch on="getCodingInstructionsDisplayType(subItem)" ng-if="subItem.codingInstructions">\n <span ng-switch-when="inline-html" id="help-{{subItem._elementId}}"\n class="lf-prompt" ng-bind-html="getTrustedCodingInstructions(subItem)"></span>\n <span ng-switch-when="inline-escaped" id="help-{{subItem._elementId}}"\n class="lf-prompt" ng-bind="subItem.codingInstructions"></span>\n <button ng-switch-when="popover-html" class="lf-help-button btn-sm" uib-popover-template="\'popover.html\'"\n popover-trigger="focus" popover-placement="right" popover-title="Instruction"\n type="button" id="helpButton-{{subItem._elementId}}"\n aria-label="Help" aria-describedby="label-{{ subItem._elementId }}">\n <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>\n </button>\n <button ng-switch-when="popover-escaped" class="lf-help-button btn-sm" uib-popover="{{subItem.codingInstructions}}"\n popover-trigger="focus" popover-placement="right" popover-title="Instruction"\n type="button" id="helpButton-{{subItem._elementId}}" aria-label="Help"\n aria-describedby="label-{{ subItem._elementId }}">\n <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>\n </button>\n </span>\n <button ng-if="subItem.copyrightNotice" id="copyright-{{subItem._elementId}}" type="button"\n class="lf-copyright-button btn-sm" uib-popover="{{subItem.copyrightNotice}}"\n popover-trigger="focus" popover-placement="right" popover-title="Copyright"\n aria-label="Copyright notice"\n aria-describedby="label-{{ subItem._elementId }}">\n <span class="glyphicon glyphicon-copyright-mark" aria-hidden="true"></span>\n </button>\n </div>\n </td>\n <td ng-repeat="answer in firstItem.answers"\n class="lf-form-matrix-cell">\n <span class="lf-form-matrix-answer">\n <label ng-if="subItem._multipleAnswers">\n <input type="checkbox" id="{{subItem._elementId + answer.code}}"\n ng-click="updateCheckboxList(subItem, answer)" aria-labeledby="answer-{{$index}}">\n </label>\n <label ng-if="!subItem._multipleAnswers">\n <input type="radio" id="{{subItem._elementId + answer.code}}"\n aria-labeledby="answer-{{$index}}" ng-model="subItem.value" ng-value="answer"\n name="{{subItem._elementId}}" ng-change="updateRadioList(subItem)">\n </label>\n </span>\n </td>\n <td class="lf-form-matrix-cell-other" ng-if="subItem.dataType ===\'CWE\'"\n aria-labeledby=otherAnswer>\n \x3c!--for multiple answers--\x3e\n <span ng-if="subItem._multipleAnswers" class="lf-form-matrix-answer">\n <label>\n <input type="checkbox" ng-model="subItem._otherValueChecked"\n id="{{subItem._elementId + \'_other\'}}"\n ng-change="updateCheckboxListForOther(subItem, subitem._answerOther)">\n </label>\n <label>\n <input type="text" ng-model="subitem._answerOther"\n id="{{subItem._elementId + \'_otherValue\'}}"\n ng-change="updateCheckboxListForOther(subItem, subitem._answerOther)">\n </label>\n </span>\n \x3c!--for single answer--\x3e\n <span ng-if="!subItem._multipleAnswers" class="lf-form-matrix-answer">\n <label>\n <input type="radio" id="{{subItem._elementId + \'_other\'}}" ng-model="subItem._otherValueChecked"\n ng-value="true" name="{{subItem._elementId}}"\n ng-change="updateRadioListForOther(subItem, subitem._answerOther)">\n </label>\n <label>\n <input type="text" id="{{subItem._elementId + \'_otherValue\'}}" ng-model="subitem._answerOther"\n ng-change="updateRadioListForOther(subItem, subitem._answerOther)">\n </label>\n </span>\n </td>\n </tr>\n </tbody>\n </table>\n <lf-repeating-button></lf-repeating-button>\n</div>\n\n'),e.put("popover-content.html",'<div class="lf-popover" ng-bind-html="getTrustedCodingInstructions(item)"></div>\n'),e.put("repeating-button.html",'\x3c!--a button at the end of each repeating section--\x3e\n<div ng-if="item._lastRepeatingItem && targetShown(item) "\n class="lf-form-table-row button-row {{getSkipLogicClass(item)}}">\n <div class="has-popover-warning">\n <button type="button"\n class="lf-float-button" id="add-{{item._elementId}}"\n ng-click="addOneRepeatingItem(item)"\n ng-blur="hideUnusedItemWarning(item)"\n uib-popover=\'{{item._unusedItemWarning}}\'\n popover-placement="top-left"\n popover-trigger="none"\n popover-is-open="item._showUnusedItemWarning">\n + Add another "{{item._text}}"\n </button>\n </div>\n</div>\n'),e.put("table-item.html",'<div class="lf-table-item {{getSiblingStatus(item)}}">\n \x3c!-- question --\x3e\n <lf-item ng-if="!item._isHiddenFromView" ng-style="getItemStyle(item)"></lf-item>\n\n \x3c!--sub sections, check each item\'s layout --\x3e\n <div ng-if="item.items" class="section">\n <div ng-repeat="item in item.items" ng-if="targetShown(item) && !item._isHiddenFromView"\n class="data-row has-ng-animate {{getRowClass(item)}} {{getSkipLogicClass(item)}}\n {{getActiveRowClass(item)}} {{getItemViewModeClass(item)}}">\n <div ng-if="item.header" ng-switch on="item.displayControl.questionLayout">\n <div ng-switch-when="horizontal">\n <lf-section-horizontal></lf-section-horizontal>\n </div>\n <div ng-switch-when="matrix">\n <lf-section-matrix></lf-section-matrix>\n </div>\n <div ng-switch-when="vertical">\n <lf-table-item></lf-table-item>\n </div>\n <div ng-switch-default>\n <lf-table-item></lf-table-item>\n </div>\n </div>\n <div ng-if="!item.header">\n <lf-table-item></lf-table-item>\n </div>\n </div>\n </div>\n <lf-repeating-button></lf-repeating-button>\n</div>\n'),e.put("template-table.html",'<form ng-if="lfData" class="lf-form lf-template-table {{getIndentationStyle()}}" novalidate autocomplete="false"\n ng-keydown="handleNavigationKeyEventByTab($event)">\n \x3c!--form controls--\x3e\n <lf-form-controls></lf-form-controls>\n \x3c!--form title--\x3e\n <lf-form-title></lf-form-title>\n \x3c!-- form options --\x3e\n <lf-form-options></lf-form-options>\n \x3c!--form header--\x3e\n <lf-form-header></lf-form-header>\n \x3c!--form body--\x3e\n <div class="lf-form-body">\n \x3c!--check form level questionLayout for matrix and horizontal layouts--\x3e\n <div ng-switch on="lfData.templateOptions.displayControl.questionLayout">\n \x3c!--horizontal--\x3e\n <div ng-switch-when="horizontal" class="lf-top-section">\n <lf-section-horizontal></lf-section-horizontal>\n </div>\n \x3c!--matrix--\x3e\n <div ng-switch-when="matrix" class="lf-top-section">\n <lf-section-matrix></lf-section-matrix>\n </div>\n \x3c!--vertical--\x3e\n <div ng-switch-default>\n \x3c!-- data row, column header --\x3e\n <div class="lf-column-header" ng-if="lfData.templateOptions.showColumnHeaders">\n <div class="lf-column-label-button" id="th_Name">\n {{lfData.templateOptions.columnHeaders[0].name}}\n </div>\n <div class="lf-column-input-unit" ng-style="getFieldWidth(item)">\n <div class="lf-column-input" id="th_Value">\n {{lfData.templateOptions.columnHeaders[1].name}}\n </div>\n <div ng-if="!lfData.templateOptions.hideUnits" class="lf-column-unit" id="th_Units">\n {{lfData.templateOptions.columnHeaders[2].name}}\n </div>\n </div>\n </div>\n \x3c!-- data row, for each item --\x3e\n \x3c!-- check each top level item\'s questionLayout --\x3e\n <div ng-if="lfData.items" class="lf-form-table">\n <div ng-repeat="item in lfData.items" ng-if="targetShown(item) && !item._isHiddenFromView"\n class="data-row has-ng-animate {{getRowClass(item)}} {{getSkipLogicClass(item)}}\n {{getActiveRowClass(item)}} {{getItemViewModeClass(item)}}">\n \x3c!--header item--\x3e\n <div ng-if="item.header" ng-switch on="item.displayControl.questionLayout">\n <div ng-switch-when="horizontal">\n <lf-section-horizontal></lf-section-horizontal>\n </div>\n <div ng-switch-when="matrix">\n <lf-section-matrix></lf-section-matrix>\n </div>\n <div ng-switch-when="vertical">\n <lf-table-item></lf-table-item>\n </div>\n <div ng-switch-default>\n <lf-table-item></lf-table-item>\n </div>\n </div>\n \x3c!--non-header data item--\x3e\n <div ng-if="!item.header">\n <lf-table-item></lf-table-item>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</form>\n'),e.put("uib-popover-templates/uib-popover-template.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div aria-live=polite class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content"\n uib-tooltip-template-transclude="contentExp()"\n tooltip-template-transclude-scope="originScope()"></div>\n </div>\n</div>\n'),e.put("uib-popover-templates/uib-popover.html",'<div class="popover"\n tooltip-animation-class="fade"\n uib-tooltip-classes\n ng-class="{ in: isOpen() }">\n <div class="arrow"></div>\n\n <div aria-live=polite class="popover-inner">\n <h3 class="popover-title" ng-bind="uibTitle" ng-if="uibTitle"></h3>\n <div class="popover-content" ng-bind="content" ng-if="content"></div>\n </div>\n</div>\n')}])},function(e,t,n){"use strict";var i=n(13).forEach,a=n(91),r=n(92),l=n(93),s=n(94),o=n(95),u=n(14),c=n(96),f=n(98),d=n(99),p=n(100);function m(e){return Array.isArray(e)||void 0!==e.length}function h(e){if(Array.isArray(e))return e;var t=[];return i(e,(function(e){t.push(e)})),t}function g(e){return e&&1===e.nodeType}function v(e,t,n){var i=e[t];return null==i&&void 0!==n?n:i}e.exports=function(e){var t;if((e=e||{}).idHandler)t={get:function(t){return e.idHandler.get(t,!0)},set:e.idHandler.set};else{var n=l(),y=s({idGenerator:n,stateHandler:f});t=y}var b=e.reporter;b||(b=o(!1===b));var _=v(e,"batchProcessor",c({reporter:b})),C={};C.callOnAdd=!!v(e,"callOnAdd",!0),C.debug=!!v(e,"debug",!1);var w,$=r(t),k=a({stateHandler:f}),S=v(e,"strategy","object"),M=v(e,"important",!1),I={reporter:b,batchProcessor:_,stateHandler:f,idHandler:t,important:M};if("scroll"===S&&(u.isLegacyOpera()?(b.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),S="object"):u.isIE(9)&&(b.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),S="object")),"scroll"===S)w=p(I);else{if("object"!==S)throw new Error("Invalid strategy name: "+S);w=d(I)}var L={};return{listenTo:function(e,n,a){function r(e){var t=$.get(e);i(t,(function(t){t(e)}))}function l(e,t,n){$.add(t,n),e&&n(t)}if(a||(a=n,n=e,e={}),!n)throw new Error("At least one element required.");if(!a)throw new Error("Listener required.");if(g(n))n=[n];else{if(!m(n))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");n=h(n)}var s=0,o=v(e,"callOnAdd",C.callOnAdd),u=v(e,"onReady",(function(){})),c=v(e,"debug",C.debug);i(n,(function(e){f.getState(e)||(f.initState(e),t.set(e));var d=t.get(e);if(c&&b.log("Attaching listener to element",d,e),!k.isDetectable(e))return c&&b.log(d,"Not detectable."),k.isBusy(e)?(c&&b.log(d,"System busy making it detectable"),l(o,e,a),L[d]=L[d]||[],void L[d].push((function(){++s===n.length&&u()}))):(c&&b.log(d,"Making detectable..."),k.markBusy(e,!0),w.makeDetectable({debug:c,important:M},e,(function(e){if(c&&b.log(d,"onElementDetectable"),f.getState(e)){k.markAsDetectable(e),k.markBusy(e,!1),w.addListener(e,r),l(o,e,a);var t=f.getState(e);if(t&&t.startSize){var p=e.offsetWidth,m=e.offsetHeight;t.startSize.width===p&&t.startSize.height===m||r(e)}L[d]&&i(L[d],(function(e){e()}))}else c&&b.log(d,"Element uninstalled before being detectable.");delete L[d],++s===n.length&&u()})));c&&b.log(d,"Already detecable, adding listener."),l(o,e,a),s++})),s===n.length&&u()},removeListener:$.removeListener,removeAllListeners:$.removeAllListeners,uninstall:function(e){if(!e)return b.error("At least one element is required.");if(g(e))e=[e];else{if(!m(e))return b.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");e=h(e)}i(e,(function(e){$.removeAllListeners(e),w.uninstall(e),f.cleanState(e)}))},initDocument:function(e){w.initDocument&&w.initDocument(e)}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.stateHandler.getState;return{isDetectable:function(e){var n=t(e);return n&&!!n.isDetectable},markAsDetectable:function(e){t(e).isDetectable=!0},isBusy:function(e){return!!t(e).busy},markBusy:function(e,n){t(e).busy=!!n}}}},function(e,t,n){"use strict";e.exports=function(e){var t={};function n(n){var i=e.get(n);return void 0===i?[]:t[i]||[]}return{get:n,add:function(n,i){var a=e.get(n);t[a]||(t[a]=[]),t[a].push(i)},removeListener:function(e,t){for(var i=n(e),a=0,r=i.length;a<r;++a)if(i[a]===t){i.splice(a,1);break}},removeAllListeners:function(e){var t=n(e);t&&(t.length=0)}}}},function(e,t,n){"use strict";e.exports=function(){var e=1;return{generate:function(){return e++}}}},function(e,t,n){"use strict";e.exports=function(e){var t=e.idGenerator,n=e.stateHandler.getState;return{get:function(e){var t=n(e);return t&&void 0!==t.id?t.id:null},set:function(e){var i=n(e);if(!i)throw new Error("setId required the element to have a resize detection state.");var a=t.generate();return i.id=a,a}}}},function(e,t,n){"use strict";e.exports=function(e){function t(){}var n={log:t,warn:t,error:t};if(!e&&window.console){var i=function(e,t){e[t]=function(){var e=console[t];if(e.apply)e.apply(console,arguments);else for(var n=0;n<arguments.length;n++)e(arguments[n])}};i(n,"log"),i(n,"warn"),i(n,"error")}return n}},function(e,t,n){"use strict";var i=n(97);function a(){var e={},t=0,n=0,i=0;return{add:function(a,r){r||(r=a,a=0),a>n?n=a:a<i&&(i=a),e[a]||(e[a]=[]),e[a].push(r),t++},process:function(){for(var t=i;t<=n;t++)for(var a=e[t],r=0;r<a.length;r++){(0,a[r])()}},size:function(){return t}}}e.exports=function(e){var t=(e=e||{}).reporter,n=i.getOption(e,"async",!0),r=i.getOption(e,"auto",!0);r&&!n&&(t&&t.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),n=!0);var l,s=a(),o=!1;function u(){for(o=!0;s.size();){var e=s;s=a(),e.process()}o=!1}function c(){var e;e=u,l=setTimeout(e,0)}return{add:function(e,t){!o&&r&&n&&0===s.size()&&c(),s.add(e,t)},force:function(e){o||(void 0===e&&(e=n),l&&(clearTimeout(l),l=null),e?c():u())}}}},function(e,t,n){"use strict";(e.exports={}).getOption=function(e,t,n){var i=e[t];if(null==i&&void 0!==n)return n;return i}},function(e,t,n){"use strict";function i(e){return e._erd}e.exports={initState:function(e){return e._erd={},i(e)},getState:i,cleanState:function(e){delete e._erd}}},function(e,t,n){"use strict";var i=n(14);e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,a=e.stateHandler.getState;if(!t)throw new Error("Missing required dependency: reporter.");function r(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function l(e){return a(e).object}return{makeDetectable:function(e,l,s){s||(s=l,l=e,e=null),(e=e||{}).debug,i.isIE(8)?s(l):function(l,s){var o=r(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),u=!1,c=window.getComputedStyle(l),f=l.offsetWidth,d=l.offsetHeight;function p(){function n(){if("static"===c.position){l.style.setProperty("position","relative",e.important?"important":"");var n=function(t,n,i,a){var r=i[a];"auto"!==r&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(r)&&(t.warn("An element that is positioned static has style."+a+"="+r+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+a+" will be set to 0. Element: ",n),n.style.setProperty(a,"0",e.important?"important":""))};n(t,l,c,"top"),n(t,l,c,"right"),n(t,l,c,"bottom"),n(t,l,c,"left")}}""!==c.position&&(n(),u=!0);var r=document.createElement("object");r.style.cssText=o,r.tabIndex=-1,r.type="text/html",r.setAttribute("aria-hidden","true"),r.onload=function(){u||n(),function e(t,n){if(!t.contentDocument){var i=a(t);return i.checkForObjectDocumentTimeoutId&&window.clearTimeout(i.checkForObjectDocumentTimeoutId),void(i.checkForObjectDocumentTimeoutId=setTimeout((function(){i.checkForObjectDocumentTimeoutId=0,e(t,n)}),100))}n(t.contentDocument)}(this,(function(e){s(l)}))},i.isIE()||(r.data="about:blank"),a(l)&&(l.appendChild(r),a(l).object=r,i.isIE()&&(r.data="about:blank"))}a(l).startSize={width:f,height:d},n?n.add(p):p()}(l,s)},addListener:function(e,t){function n(){t(e)}if(i.isIE(8))a(e).object={proxy:n},e.attachEvent("onresize",n);else{var r=l(e);if(!r)throw new Error("Element is not detectable by this strategy.");r.contentDocument.defaultView.addEventListener("resize",n)}},uninstall:function(e){if(a(e)){var t=l(e);t&&(i.isIE(8)?e.detachEvent("onresize",t.proxy):e.removeChild(t),a(e).checkForObjectDocumentTimeoutId&&window.clearTimeout(a(e).checkForObjectDocumentTimeoutId),delete a(e).object)}}}}},function(e,t,n){"use strict";var i=n(13).forEach;e.exports=function(e){var t=(e=e||{}).reporter,n=e.batchProcessor,a=e.stateHandler.getState,r=(e.stateHandler.hasState,e.idHandler);if(!n)throw new Error("Missing required dependency: batchProcessor");if(!t)throw new Error("Missing required dependency: reporter.");var l=function(){var e=document.createElement("div");e.style.cssText=o(["position: absolute","width: 1000px","height: 1000px","visibility: hidden","margin: 0","padding: 0"]);var t=document.createElement("div");t.style.cssText=o(["position: absolute","width: 500px","height: 500px","overflow: scroll","visibility: none","top: -1500px","left: -1500px","visibility: hidden","margin: 0","padding: 0"]),t.appendChild(e),document.body.insertBefore(t,document.body.firstChild);var n=500-t.clientWidth,i=500-t.clientHeight;return document.body.removeChild(t),{width:n,height:i}}();function s(e){!function(e,t,n){if(!e.getElementById(t)){var i=n+"_animation",a=n+"_animation_active",r="/* Created by the element-resize-detector library. */\n";r+="."+n+" > div::-webkit-scrollbar { "+o(["display: none"])+" }\n\n",r+="."+a+" { "+o(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+i,"animation-name: "+i])+" }\n",r+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",function(n,i){i=i||function(t){e.head.appendChild(t)};var a=e.createElement("style");a.innerHTML=n,a.id=t,i(a)}(r+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }")}}(e,"erd_scroll_detection_scrollbar_style","erd_scroll_detection_container")}function o(t){var n=e.important?" !important; ":"; ";return(t.join(n)+n).trim()}function u(e,n,i){if(e.addEventListener)e.addEventListener(n,i);else{if(!e.attachEvent)return t.error("[scroll] Don't know how to add event listeners.");e.attachEvent("on"+n,i)}}function c(e,n,i){if(e.removeEventListener)e.removeEventListener(n,i);else{if(!e.detachEvent)return t.error("[scroll] Don't know how to remove event listeners.");e.detachEvent("on"+n,i)}}function f(e){return a(e).container.childNodes[0].childNodes[0].childNodes[0]}function d(e){return a(e).container.childNodes[0].childNodes[0].childNodes[1]}return s(window.document),{makeDetectable:function(e,s,c){function p(){if(e.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(r.get(s),"Scroll: "),t.log.apply)t.log.apply(null,n);else for(var i=0;i<n.length;i++)t.log(n[i])}}function m(e){var t=a(e).container.childNodes[0],n=window.getComputedStyle(t);return!n.width||-1===n.width.indexOf("px")}function h(){var e=window.getComputedStyle(s),t={};return t.position=e.position,t.width=s.offsetWidth,t.height=s.offsetHeight,t.top=e.top,t.right=e.right,t.bottom=e.bottom,t.left=e.left,t.widthCSS=e.width,t.heightCSS=e.height,t}function g(){if(p("storeStyle invoked."),a(s)){var e=h();a(s).style=e}else p("Aborting because element has been uninstalled")}function v(e,t,n){a(e).lastWidth=t,a(e).lastHeight=n}function y(){return 2*l.width+1}function b(){return 2*l.height+1}function _(e){return e+10+y()}function C(e){return e+10+b()}function w(e,t,n){var i=f(e),a=d(e),r=_(t),l=C(n),s=function(e){return 2*e+y()}(t),o=function(e){return 2*e+b()}(n);i.scrollLeft=r,i.scrollTop=l,a.scrollLeft=s,a.scrollTop=o}function $(){var e=a(s).container;if(!e){(e=document.createElement("div")).className="erd_scroll_detection_container",e.style.cssText=o(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),a(s).container=e,function(e){e.className+=" erd_scroll_detection_container_animation_active"}(e),s.appendChild(e);var t=function(){a(s).onRendered&&a(s).onRendered()};u(e,"animationstart",t),a(s).onAnimationStart=t}return e}function k(){if(p("Injecting elements"),a(s)){!function(){var n=a(s).style;if("static"===n.position){s.style.setProperty("position","relative",e.important?"important":"");var i=function(e,t,n,i){var a=n[i];"auto"!==a&&"0"!==function(e){return e.replace(/[^-\d\.]/g,"")}(a)&&(e.warn("An element that is positioned static has style."+i+"="+a+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+i+" will be set to 0. Element: ",t),t.style[i]=0)};i(t,s,n,"top"),i(t,s,n,"right"),i(t,s,n,"bottom"),i(t,s,n,"left")}}();var n=a(s).container;n||(n=$());var i,r,c,f,d=l.width,m=l.height,h=o(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),g=o(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(["left: "+(i=(i=-(1+d))?i+"px":"0"),"top: "+(r=(r=-(1+m))?r+"px":"0"),"right: "+(f=(f=-d)?f+"px":"0"),"bottom: "+(c=(c=-m)?c+"px":"0")])),v=o(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),y=o(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),b=o(["position: absolute","left: 0","top: 0"]),_=o(["position: absolute","width: 200%","height: 200%"]),C=document.createElement("div"),w=document.createElement("div"),k=document.createElement("div"),S=document.createElement("div"),M=document.createElement("div"),I=document.createElement("div");C.dir="ltr",C.style.cssText=h,C.className="erd_scroll_detection_container",w.className="erd_scroll_detection_container",w.style.cssText=g,k.style.cssText=v,S.style.cssText=b,M.style.cssText=y,I.style.cssText=_,k.appendChild(S),M.appendChild(I),w.appendChild(k),w.appendChild(M),C.appendChild(w),n.appendChild(C),u(k,"scroll",L),u(M,"scroll",A),a(s).onExpandScroll=L,a(s).onShrinkScroll=A}else p("Aborting because element has been uninstalled");function L(){a(s).onExpand&&a(s).onExpand()}function A(){a(s).onShrink&&a(s).onShrink()}}function S(){function l(t,n,i){var a=function(e){return f(e).childNodes[0]}(t),r=_(n),l=C(i);a.style.setProperty("width",r+"px",e.important?"important":""),a.style.setProperty("height",l+"px",e.important?"important":"")}function o(i){var o=s.offsetWidth,c=s.offsetHeight,f=o!==a(s).lastWidth||c!==a(s).lastHeight;p("Storing current size",o,c),v(s,o,c),n.add(0,(function(){if(f)if(a(s))if(u()){if(e.debug){var n=s.offsetWidth,i=s.offsetHeight;n===o&&i===c||t.warn(r.get(s),"Scroll: Size changed before updating detector elements.")}l(s,o,c)}else p("Aborting because element container has not been initialized");else p("Aborting because element has been uninstalled")})),n.add(1,(function(){a(s)?u()?w(s,o,c):p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")})),f&&i&&n.add(2,(function(){a(s)?u()?i():p("Aborting because element container has not been initialized"):p("Aborting because element has been uninstalled")}))}function u(){return!!a(s).container}function c(){p("notifyListenersIfNeeded invoked");var e=a(s);return void 0===a(s).lastNotifiedWidth&&e.lastWidth===e.startSize.width&&e.lastHeight===e.startSize.height?p("Not notifying: Size is the same as the start size, and there has been no notification yet."):e.lastWidth===e.lastNotifiedWidth&&e.lastHeight===e.lastNotifiedHeight?p("Not notifying: Size already notified"):(p("Current size not notified, notifying..."),e.lastNotifiedWidth=e.lastWidth,e.lastNotifiedHeight=e.lastHeight,void i(a(s).listeners,(function(e){e(s)})))}function h(){p("Scroll detected."),m(s)?p("Scroll event fired while unrendered. Ignoring..."):o(c)}if(p("registerListenersAndPositionElements invoked."),a(s)){a(s).onRendered=function(){if(p("startanimation triggered."),m(s))p("Ignoring since element is still unrendered...");else{p("Element rendered.");var e=f(s),t=d(s);0!==e.scrollLeft&&0!==e.scrollTop&&0!==t.scrollLeft&&0!==t.scrollTop||(p("Scrollbars out of sync. Updating detector elements..."),o(c))}},a(s).onExpand=h,a(s).onShrink=h;var g=a(s).style;l(s,g.width,g.height)}else p("Aborting because element has been uninstalled")}function M(){if(p("finalizeDomMutation invoked."),a(s)){var e=a(s).style;v(s,e.width,e.height),w(s,e.width,e.height)}else p("Aborting because element has been uninstalled")}function I(){c(s)}function L(){var e;p("Installing..."),a(s).listeners=[],e=h(),a(s).startSize={width:e.width,height:e.height},p("Element start size",a(s).startSize),n.add(0,g),n.add(1,k),n.add(2,S),n.add(3,M),n.add(4,I)}c||(c=s,s=e,e=null),e=e||{},p("Making detectable..."),!function(e){return!function(e){return e===e.ownerDocument.body||e.ownerDocument.body.contains(e)}(e)||null===window.getComputedStyle(e)}(s)?L():(p("Element is detached"),$(),p("Waiting until element is attached..."),a(s).onRendered=function(){p("Element is now attached"),L()})},addListener:function(e,t){if(!a(e).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");a(e).listeners.push(t)},uninstall:function(e){var t=a(e);t&&(t.onExpandScroll&&c(f(e),"scroll",t.onExpandScroll),t.onShrinkScroll&&c(d(e),"scroll",t.onShrinkScroll),t.onAnimationStart&&c(t.container,"animationstart",t.onAnimationStart),t.container&&e.removeChild(t.container))},initDocument:s}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnitTables=t.UcumLhcUtils=t.Ucum=void 0;var i=n(1).Ucum;t.Ucum=i;var a=n(102).UcumLhcUtils;t.UcumLhcUtils=a;var r=n(2).UnitTables;t.UnitTables=r},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.UcumLhcUtils=void 0;var r=n(103),l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==a(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var l=i?Object.getOwnPropertyDescriptor(e,r):null;l&&(l.get||l.set)?Object.defineProperty(n,r,l):n[r]=e[r]}n.default=e,t&&t.set(e,n);return n}(n(9));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var o=n(1).Ucum,u=n(2).UnitTables,c=n(110).UnitString,f=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),0===u.getInstance().unitsCount()&&r.ucumJsonDefs.loadJsonDefs(),this.uStrParser_=c.getInstance()}var t,n,a;return t=e,(n=[{key:"useHTMLInMessages",value:function(e){void 0===e&&(e=!0),this.uStrParser_.useHTMLInMessages(e)}},{key:"useBraceMsgForEachString",value:function(e){void 0===e&&(e=!0),this.uStrParser_.useBraceMsgForEachString(e)}},{key:"validateUnitString",value:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n="validate");var i=this.getSpecifiedUnit(e,n,t),a=i.unit,r={};return r=a?{status:i.origString===e?"valid":"invalid",ucumCode:i.origString,unit:{code:a.csCode_,name:a.name_,guidance:a.guidance_}}:{status:i.origString&&null!==i.origString?"invalid":"error",ucumCode:null},i.suggestions&&(r.suggestions=i.suggestions),r.msg=i.retMsg,r}},{key:"convertUnitTo",value:function(e,t,n,i,a){void 0===i&&(i=!1),void 0===a&&(a=null);var r={status:"failed",toVal:null,msg:[]};if(e&&(e=e.trim()),e&&""!=e||(r.status="error",r.msg.push('No "from" unit expression specified.')),(null===t||isNaN(t)||"number"!=typeof t&&!l.isNumericString(t))&&(r.status="error",r.msg.push('No "from" value, or an invalid "from" value, was specified.')),n&&(n=n.trim()),n&&""!=n||(r.status="error",r.msg.push('No "to" unit expression specified.')),"error"!==r.status)try{var s=null,u=this.getSpecifiedUnit(e,"convert",i);s=u.unit,u.retMsg&&(r.msg=r.msg.concat(u.retMsg)),u.suggestions&&(r.suggestions={},r.suggestions.from=u.suggestions),s||r.msg.push("Unable to find a unit for ".concat(e,", ")+"so no conversion could be performed.");var c=null;if(c=(u=this.getSpecifiedUnit(n,"convert",i)).unit,u.retMsg&&(r.msg=r.msg.concat(u.retMsg)),u.suggestions&&(r.suggestions||(r.suggestions={}),r.suggestions.to=u.suggestions),c||r.msg.push("Unable to find a unit for ".concat(n,", ")+"so no conversion could be performed."),s&&c)try{if(a){if(0!==s.moleExp_&&0!==c.moleExp_)throw new Error("A molecular weight was specified but a mass <-> mole conversion cannot be executed for two mole-based units. No conversion was attempted.");if(0===s.moleExp_&&0===c.moleExp_)throw new Error("A molecular weight was specified but a mass <-> mole conversion cannot be executed when neither unit is mole-based. No conversion was attempted.");if(!s.isMoleMassCommensurable(c))throw new Error("Sorry. ".concat(e," cannot be ")+"converted to ".concat(n,"."));0!==s.moleExp_?r.toVal=s.convertMolToMass(t,c,a):r.toVal=s.convertMassToMol(t,c,a)}else r.toVal=c.convertFrom(t,s);r.status="succeeded",r.fromUnit=s,r.toUnit=c}catch(e){r.status="failed",r.msg.push(e.message)}}catch(e){e.message==o.needMoleWeightMsg_?r.status="failed":r.status="error",r.msg.push(e.message)}return r}},{key:"checkSynonyms",value:function(e){var t={};return null==e?(t.status="error",t.msg="No term specified for synonym search."):t=l.getSynonyms(e),t}},{key:"getSpecifiedUnit",value:function(e,t,n){void 0===n&&(n=!1);var i={retMsg:[]};if(e){var a=u.getInstance();e=e.trim();var r=a.getUnitByCode(e);if(r)i.unit=r,i.origString=e;else try{var l=this.uStrParser_.parseString(e,t,n);i.unit=l[0],i.origString=l[1],l[2]&&(i.retMsg=l[2]),i.suggestions=l[3]}catch(t){console.log("Unit requested for unit string ".concat(e,".")+"request unsuccessful; error thrown = "+t.message),i.retMsg.unshift("".concat(e," is not a valid unit. ")+"".concat(t.message))}}else i.retMsg.push("No unit string specified.");return i}},{key:"commensurablesList",value:function(e){var t=[],n=null,i=this.getSpecifiedUnit(e,"validate",!1),a=i.unit;if(i.retMsg.length>0&&(t=i.retMsg),a){var r=null,l=a.getProperty("dim_");if(l){try{r=l.getProperty("dimVec_")}catch(e){t.push(e.message),"Dimension does not have requested property(dimVec_)"===e.message&&(r=null)}r&&(n=u.getInstance().getUnitsByDimension(r))}else t.push("No commensurable units were found for "+e)}else t.push("Could not find unit ".concat(e,"."));return[n,t]}}])&&i(t.prototype,n),a&&i(t,a),e}();t.UcumLhcUtils=f,f.getInstance=function(){return new f}},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.ucumJsonDefs=t.UcumJsonDefs=void 0;var a=n(104),r=n(15),l=n(16),s=n(2),o=n(108).unpackArray,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,u,c;return t=e,(u=[{key:"loadJsonDefs",value:function(){var e=n(109);if(e.prefixes=o(e.prefixes),e.units=o(e.units),0===s.UnitTables.getInstance().unitsCount()){for(var t=r.PrefixTables.getInstance(),i=e.prefixes,u=i.length,c=0;c<u;c++){var f=new a.Prefix(i[c]);t.add(f)}for(var d=s.UnitTables.getInstance(),p=e.units,m=p.length,h=0;h<m;h++){var g=new l.Unit(p[h]);d.addUnit(g)}}}}])&&i(t.prototype,u),c&&i(t,c),e}();t.UcumJsonDefs=u;var c=new u;t.ucumJsonDefs=c},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Prefix=void 0;n(1);var a=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),void 0===t.code_||null===t.code_||void 0===t.name_||null===t.name_||void 0===t.value_||null===t.value_||void 0===t.exp_)throw new Error("Prefix constructor called missing one or more parameters. Prefix codes (cs or ci), name, value and exponent must all be specified and all but the exponent must not be null.");this.code_=t.code_,this.ciCode_=t.ciCode_,this.name_=t.name_,this.printSymbol_=t.printSymbol_,"string"==typeof t.value_?this.value_=parseFloat(t.value_):this.value_=t.value_,this.exp_=t.exp_}var t,n,a;return t=e,(n=[{key:"getValue",value:function(){return this.value_}},{key:"getCode",value:function(){return this.code_}},{key:"getCiCode",value:function(){return this.ciCode_}},{key:"getName",value:function(){return this.name_}},{key:"getPrintSymbol",value:function(){return this.printSymbol_}},{key:"getExp",value:function(){return this.exp_}},{key:"equals",value:function(e){return this.code_===e.code_&&this.ciCode_===e.ciCode_&&this.name_===e.name_&&this.printSymbol_===e.printSymbol_&&this.value_===e.value_&&this.exp_===e.exp_}}])&&i(t.prototype,n),a&&i(t,a),e}();t.Prefix=a},function(e,t,n){"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.funcs={},this.funcs.cel={cnvTo:function(e){return e-273.15},cnvFrom:function(e){return e+273.15}},this.funcs.degf={cnvTo:function(e){return e-459.67},cnvFrom:function(e){return e+459.67}},this.funcs.degre={cnvTo:function(e){return e-273.15},cnvFrom:function(e){return e+273.15}},this.funcs.ph={cnvTo:function(e){return-Math.log(e)/Math.LN10},cnvFrom:function(e){return Math.pow(10,-e)}},this.funcs.ln={cnvTo:function(e){return Math.log(e)},cnvFrom:function(e){return Math.exp(e)}},this.funcs["2ln"]={cnvTo:function(e){return 2*Math.log(e)},cnvFrom:function(e){return Math.exp(e/2)}},this.funcs.lg={cnvTo:function(e){return Math.log(e)/Math.LN10},cnvFrom:function(e){return Math.pow(10,e)}},this.funcs["10lg"]={cnvTo:function(e){return 10*Math.log(e)/Math.LN10},cnvFrom:function(e){return Math.pow(10,e/10)}},this.funcs["20lg"]={cnvTo:function(e){return 20*Math.log(e)/Math.LN10},cnvFrom:function(e){return Math.pow(10,e/20)}},this.funcs["2lg"]={cnvTo:function(e){return 2*Math.log(e)/Math.LN10},cnvFrom:function(e){return Math.pow(10,e/2)}},this.funcs.lgtimes2=this.funcs["2lg"],this.funcs.ld={cnvTo:function(e){return Math.log(e)/Math.LN2},cnvFrom:function(e){return Math.pow(2,e)}},this.funcs["100tan"]={cnvTo:function(e){return 100*Math.tan(e)},cnvFrom:function(e){return Math.atan(e/100)}},this.funcs.tanTimes100=this.funcs["100tan"],this.funcs.sqrt={cnvTo:function(e){return Math.sqrt(e)},cnvFrom:function(e){return e*e}},this.funcs.inv={cnvTo:function(e){return 1/e},cnvFrom:function(e){return 1/e}},this.funcs.hpX={cnvTo:function(e){return-this.funcs.lg(e)},cnvFrom:function(e){return Math.pow(10,-e)}},this.funcs.hpC={cnvTo:function(e){return-this.func.ln(e)/this.funcs.ln(100)},cnvFrom:function(e){return Math.pow(100,-e)}},this.funcs.hpM={cnvTo:function(e){return-this.funcs.ln(e)/this.funcs.ln(1e3)},cnvFrom:function(e){return Math.pow(1e3,-e)}},this.funcs.hpQ={cnvTo:function(e){return-this.funcs.ln(e)/this.funcs.ln(5e4)},cnvFrom:function(e){return Math.pow(5e4,-e)}}}var t,n,a;return t=e,(n=[{key:"forName",value:function(e){e=e.toLowerCase();var t=this.funcs[e];if(null===t)throw new Error("Requested function ".concat(e," is not defined"));return t}},{key:"isDefined",value:function(e){return e=e.toLowerCase(),null!==this.funcs[e]}}])&&i(t.prototype,n),a&&i(t,a),e}());t.default=a},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.Dimension=void 0;var r=n(1),l=n(17),s=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),0===r.Ucum.dimLen_)throw new Error("Dimension.setDimensionLen must be called before Dimension constructor");if(null==t)this.assignZero();else if(t instanceof Array){if(t.length!==r.Ucum.dimLen_)throw new Error("Parameter error, incorrect length of vector passed to "+"Dimension constructor, vector = ".concat(JSON.stringify(t)));this.dimVec_=[];for(var n=0;n<r.Ucum.dimLen_;n++)this.dimVec_.push(t[n])}else if(l(t)){if(t<0||t>=r.Ucum.dimLen_)throw new Error("Parameter error, invalid element number specified for Dimension constructor");this.assignZero(),this.dimVec_[t]=1}}var t,n,s;return t=e,(n=[{key:"setElementAt",value:function(e,t){if(!l(e)||e<0||e>=r.Ucum.dimLen_)throw new Error("Dimension.setElementAt called with an invalid index "+"position (".concat(e,")"));this.dimVec_||this.assignZero(),null==t&&(t=1),this.dimVec_[e]=t}},{key:"getElementAt",value:function(e){if(!l(e)||e<0||e>=r.Ucum.dimLen_)throw new Error("Dimension.getElementAt called with an invalid index "+"position (".concat(e,")"));var t=null;return this.dimVec_&&(t=this.dimVec_[e]),t}},{key:"getProperty",value:function(e){return this["_"===e.charAt(e.length-1)?e:e+"_"]}},{key:"toString",value:function(){var e=null;return this.dimVec_&&(e="["+this.dimVec_.join(", ")+"]"),e}},{key:"add",value:function(t){if(!t instanceof e)throw new Error("Dimension.add called with an invalid parameter - "+"".concat(i(t)," instead of a Dimension object"));if(this.dimVec_&&t.dimVec_)for(var n=0;n<r.Ucum.dimLen_;n++)this.dimVec_[n]+=t.dimVec_[n];return this}},{key:"sub",value:function(t){if(!t instanceof e)throw new Error("Dimension.sub called with an invalid parameter - "+"".concat(i(t)," instead of a Dimension object"));if(this.dimVec_&&t.dimVec_)for(var n=0;n<r.Ucum.dimLen_;n++)this.dimVec_[n]-=t.dimVec_[n];return this}},{key:"minus",value:function(){if(this.dimVec_)for(var e=0;e<r.Ucum.dimLen_;e++)this.dimVec_[e]=-this.dimVec_[e];return this}},{key:"mul",value:function(e){if(!l(e))throw new Error("Dimension.sub called with an invalid parameter - "+"".concat("undefined"==typeof dim2?"undefined":i(dim2)," instead of a number"));if(this.dimVec_)for(var t=0;t<r.Ucum.dimLen_;t++)this.dimVec_[t]*=e;return this}},{key:"equals",value:function(t){if(!t instanceof e)throw new Error("Dimension.equals called with an invalid parameter - "+"".concat(i(t)," instead of a Dimension object"));var n=!0,a=t.dimVec_;if(this.dimVec_&&a)for(var l=0;n&&l<r.Ucum.dimLen_;l++)n=this.dimVec_[l]===a[l];else n=null===this.dimVec_&&null===a;return n}},{key:"assignDim",value:function(t){if(!t instanceof e)throw new Error("Dimension.assignDim called with an invalid parameter - "+"".concat(i(t)," instead of a Dimension object"));if(null===t.dimVec_)this.dimVec_=null;else{null===this.dimVec_&&(this.dimVec_=[]);for(var n=0;n<r.Ucum.dimLen_;n++)this.dimVec_[n]=t.dimVec_[n]}return this}},{key:"assignZero",value:function(){null!==this.dimVec_&&void 0!==this.dimVec_||(this.dimVec_=[]);for(var e=0;e<r.Ucum.dimLen_;e++)this.dimVec_.push(0);return this}},{key:"isZero",value:function(){var e=null!==this.dimVec_;if(this.dimVec_)for(var t=0;e&&t<r.Ucum.dimLen_;t++)e=0===this.dimVec_[t];return e}},{key:"isNull",value:function(){return null===this.dimVec_}},{key:"clone",value:function(){var t=new e;return t.assignDim(this),t}}])&&a(t.prototype,n),s&&a(t,s),e}();t.Dimension=s},function(e,t,n){"use strict";e.exports=Number.isFinite||function(e){return!("number"!=typeof e||e!=e||e===1/0||e===-1/0)}},function(e,t,n){"use strict";function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}Object.defineProperty(t,"__esModule",{value:!0}),t.packArray=function(e){if(e&&e.length){var t=l(e[0]),n=s(t);if(t.length)return{config:t,data:e.map(o.bind(null,n))}}return{config:[],data:e}},t.unpackArray=function(e){var t=e&&e.config;if(t){if(t.length&&e.data){var n=s(t);return e.data.map(u.bind(null,n))}return e.data}return e};var r=Array.prototype.push;function l(e){return Object.keys(e).reduce((function(t,n){var a;return a=e[n],"[object Object]"===Object.prototype.toString.call(a)?r.apply(t,l(e[n]).map((function(e){return[n].concat(i([].concat(e)))}))):t.push(n),t}),[])}function s(e){return e.map((function(e){return Array.isArray(e)?e:[e]}))}function o(e,t){if(e.join()!==s(l(t)).join())throw new Error("Object of unusual structure");return e.map((function(e){var n=t;return e.forEach((function(e){if(void 0===(n=n[e]))throw new Error("Object of unusual structure")})),n}))}function u(e,t){var n={};return e.forEach((function(e,i){for(var a=n,r=0;r<e.length-1;r++)a=a[e[r]]=a[e[r]]||{};a[e[e.length-1]]=t[i]})),n}},function(e){e.exports=JSON.parse('{"license":"The following data (prefixes and units) was generated by the UCUM LHC code from the UCUM data and selected LOINC combinations of UCUM units. The license for the UCUM LHC code (demo and library code as well as the combined units) is located at https://github.com/lhncbc/ucum-lhc/blob/LICENSE.md.","prefixes":{"config":["code_","ciCode_","name_","printSymbol_","value_","exp_"],"data":[["E","EX","exa","E",1000000000000000000,"18"],["G","GA","giga","G",1000000000,"9"],["Gi","GIB","gibi","Gi",1073741824,null],["Ki","KIB","kibi","Ki",1024,null],["M","MA","mega","M",1000000,"6"],["Mi","MIB","mebi","Mi",1048576,null],["P","PT","peta","P",1000000000000000,"15"],["T","TR","tera","T",1000000000000,"12"],["Ti","TIB","tebi","Ti",1099511627776,null],["Y","YA","yotta","Y",1e+24,"24"],["Z","ZA","zetta","Z",1e+21,"21"],["a","A","atto","a",1e-18,"-18"],["c","C","centi","c",0.01,"-2"],["d","D","deci","d",0.1,"-1"],["da","DA","deka","da",10,"1"],["f","F","femto","f",1e-15,"-15"],["h","H","hecto","h",100,"2"],["k","K","kilo","k",1000,"3"],["m","M","milli","m",0.001,"-3"],["n","N","nano","n",1e-9,"-9"],["p","P","pico","p",1e-12,"-12"],["u","U","micro","μ",0.000001,"-6"],["y","YO","yocto","y",1.0000000000000001e-24,"-24"],["z","ZO","zepto","z",1e-21,"-21"]]},"units":{"config":["isBase_","name_","csCode_","ciCode_","property_","magnitude_",["dim_","dimVec_"],"printSymbol_","class_","isMetric_","variable_","cnv_","cnvPfx_","isSpecial_","isArbitrary_","moleExp_","synonyms_","source_","loincProperty_","category_","guidance_","csUnitString_","ciUnitString_","baseFactorStr_","baseFactor_","defError_"],"data":[[true,"meter","m","M","length",1,[1,0,0,0,0,0,0],"m",null,false,"L",null,1,false,false,0,"meters; metres; distance","UCUM","Len","Clinical","unit of length = 1.09361 yards",null,null,null,null,false],[true,"second - time","s","S","time",1,[0,1,0,0,0,0,0],"s",null,false,"T",null,1,false,false,0,"seconds","UCUM","Time","Clinical","",null,null,null,null,false],[true,"gram","g","G","mass",1,[0,0,1,0,0,0,0],"g",null,false,"M",null,1,false,false,0,"grams; gm","UCUM","Mass","Clinical","",null,null,null,null,false],[true,"radian","rad","RAD","plane angle",1,[0,0,0,1,0,0,0],"rad",null,false,"A",null,1,false,false,0,"radians","UCUM","Angle","Clinical","unit of angular measure where 1 radian = 1/2π turn = 57.296 degrees. ",null,null,null,null,false],[true,"degree Kelvin","K","K","temperature",1,[0,0,0,0,1,0,0],"K",null,false,"C",null,1,false,false,0,"Kelvin; degrees","UCUM","Temp","Clinical","absolute, thermodynamic temperature scale ",null,null,null,null,false],[true,"coulomb","C","C","electric charge",1,[0,0,0,0,0,1,0],"C",null,false,"Q",null,1,false,false,0,"coulombs","UCUM","","Clinical","defined as amount of 1 electron charge = 6.2415093×10^18 e, and equivalent to 1 Ampere-second",null,null,null,null,false],[true,"candela","cd","CD","luminous intensity",1,[0,0,0,0,0,0,1],"cd",null,false,"F",null,1,false,false,0,"candelas","UCUM","","Clinical","SI base unit of luminous intensity",null,null,null,null,false],[false,"the number ten for arbitrary powers","10*","10*","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10^; 10 to the arbitrary powers","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number ten for arbitrary powers","10^","10^","number",10,[0,0,0,0,0,0,0],"10","dimless",false,null,null,1,false,false,0,"10*; 10 to the arbitrary power","UCUM","Num","Clinical","10* by itself is the same as 10, but users can add digits after the *. For example, 10*3 = 1000.","1","1","10",10,false],[false,"the number pi","[pi]","[PI]","number",3.141592653589793,[0,0,0,0,0,0,0],"π","dimless",false,null,null,1,false,false,0,"π","UCUM","","Constant","a mathematical constant; the ratio of a circle\'s circumference to its diameter ≈ 3.14159","1","1","3.1415926535897932384626433832795028841971693993751058209749445923",3.141592653589793,false],[false,"","%","%","fraction",0.01,[0,0,0,0,0,0,0],"%","dimless",false,null,null,1,false,false,0,"percents","UCUM","FR; NFR; MFR; CFR; SFR Rto; etc. ","Clinical","","10*-2","10*-2","1",1,false],[false,"parts per thousand","[ppth]","[PPTH]","fraction",0.001,[0,0,0,0,0,0,0],"ppth","dimless",false,null,null,1,false,false,0,"ppth; 10^-3","UCUM","MCnc; MCnt","Clinical","[ppth] is often used in solution concentrations as 1 g/L or 1 g/kg.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-3","10*-3","1",1,false],[false,"parts per million","[ppm]","[PPM]","fraction",0.000001,[0,0,0,0,0,0,0],"ppm","dimless",false,null,null,1,false,false,0,"ppm; 10^-6","UCUM","MCnt; MCnc; SFr","Clinical","[ppm] is often used in solution concentrations as 1 mg/L or 1 mg/kg. Also used to express mole fractions as 1 mmol/mol.\\n\\n[ppm] is also used in nuclear magnetic resonance (NMR) to represent chemical shift - the difference of a measured frequency in parts per million from the reference frequency.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-6","10*-6","1",1,false],[false,"parts per billion","[ppb]","[PPB]","fraction",1e-9,[0,0,0,0,0,0,0],"ppb","dimless",false,null,null,1,false,false,0,"ppb; 10^-9","UCUM","MCnt; MCnc; SFr","Clinical","[ppb] is often used in solution concentrations as 1 ug/L or 1 ug/kg. Also used to express mole fractions as 1 umol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-9","10*-9","1",1,false],[false,"parts per trillion","[pptr]","[PPTR]","fraction",1e-12,[0,0,0,0,0,0,0],"pptr","dimless",false,null,null,1,false,false,0,"pptr; 10^-12","UCUM","MCnt; MCnc; SFr","Clinical","[pptr] is often used in solution concentrations as 1 ng/L or 1 ng/kg. Also used to express mole fractions as 1 nmol/mol.\\n\\nCan be ambigous and would be better if the metric units was used directly. ","10*-12","10*-12","1",1,false],[false,"mole","mol","MOL","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"mol","si",true,null,null,1,false,false,1,"moles","UCUM","Sub","Clinical","Measure the number of molecules ","10*23","10*23","6.0221367",6.0221367,false],[false,"steradian - solid angle","sr","SR","solid angle",1,[0,0,0,2,0,0,0],"sr","si",true,null,null,1,false,false,0,"square radian; rad2; rad^2","UCUM","Angle","Clinical","unit of solid angle in three-dimensional geometry analagous to radian; used in photometry which measures the perceived brightness of object by human eye (e.g. radiant intensity = watt/steradian)","rad2","RAD2","1",1,false],[false,"hertz","Hz","HZ","frequency",1,[0,-1,0,0,0,0,0],"Hz","si",true,null,null,1,false,false,0,"Herz; frequency; frequencies","UCUM","Freq; Num","Clinical","equal to one cycle per second","s-1","S-1","1",1,false],[false,"newton","N","N","force",1000,[1,-2,1,0,0,0,0],"N","si",true,null,null,1,false,false,0,"Newtons","UCUM","Force","Clinical","unit of force with base units kg.m/s2","kg.m/s2","KG.M/S2","1",1,false],[false,"pascal","Pa","PAL","pressure",1000,[-1,-2,1,0,0,0,0],"Pa","si",true,null,null,1,false,false,0,"pascals","UCUM","Pres","Clinical","standard unit of pressure equal to 1 newton per square meter (N/m2)","N/m2","N/M2","1",1,false],[false,"joule","J","J","energy",1000,[2,-2,1,0,0,0,0],"J","si",true,null,null,1,false,false,0,"joules","UCUM","Enrg","Clinical","unit of energy defined as the work required to move an object 1 m with a force of 1 N (N.m) or an electric charge of 1 C through 1 V (C.V), or to produce 1 W for 1 s (W.s) ","N.m","N.M","1",1,false],[false,"watt","W","W","power",1000,[2,-3,1,0,0,0,0],"W","si",true,null,null,1,false,false,0,"watts","UCUM","EngRat","Clinical","unit of power equal to 1 Joule per second (J/s) = kg⋅m2⋅s−3","J/s","J/S","1",1,false],[false,"Ampere","A","A","electric current",1,[0,-1,0,0,0,1,0],"A","si",true,null,null,1,false,false,0,"Amperes","UCUM","ElpotRat","Clinical","unit of electric current equal to flow rate of electrons equal to 16.2415×10^18 elementary charges moving past a boundary in one second or 1 Coulomb/second","C/s","C/S","1",1,false],[false,"volt","V","V","electric potential",1000,[2,-2,1,0,0,-1,0],"V","si",true,null,null,1,false,false,0,"volts","UCUM","Elpot","Clinical","unit of electric potential (voltage) = 1 Joule per Coulomb (J/C)","J/C","J/C","1",1,false],[false,"farad","F","F","electric capacitance",0.001,[-2,2,-1,0,0,2,0],"F","si",true,null,null,1,false,false,0,"farads; electric capacitance","UCUM","","Clinical","CGS unit of electric capacitance with base units C/V (Coulomb per Volt)","C/V","C/V","1",1,false],[false,"ohm","Ohm","OHM","electric resistance",1000,[2,-1,1,0,0,-2,0],"Ω","si",true,null,null,1,false,false,0,"Ω; resistance; ohms","UCUM","","Clinical","unit of electrical resistance with units of Volt per Ampere","V/A","V/A","1",1,false],[false,"siemens","S","SIE","electric conductance",0.001,[-2,1,-1,0,0,2,0],"S","si",true,null,null,1,false,false,0,"Reciprocal ohm; mho; Ω−1; conductance","UCUM","","Clinical","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","Ohm-1","OHM-1","1",1,false],[false,"weber","Wb","WB","magnetic flux",1000,[2,-1,1,0,0,-1,0],"Wb","si",true,null,null,1,false,false,0,"magnetic flux; webers","UCUM","","Clinical","unit of magnetic flux equal to Volt second","V.s","V.S","1",1,false],[false,"degree Celsius","Cel","CEL","temperature",1,[0,0,0,0,1,0,0],"°C","si",true,null,"Cel",1,true,false,0,"°C; degrees","UCUM","Temp","Clinical","","K",null,null,1,false],[false,"tesla","T","T","magnetic flux density",1000,[0,-1,1,0,0,-1,0],"T","si",true,null,null,1,false,false,0,"Teslas; magnetic field","UCUM","","Clinical","SI unit of magnetic field strength for magnetic field B equal to 1 Weber/square meter = 1 kg/(s2*A)","Wb/m2","WB/M2","1",1,false],[false,"henry","H","H","inductance",1000,[2,0,1,0,0,-2,0],"H","si",true,null,null,1,false,false,0,"henries; inductance","UCUM","","Clinical","unit of electrical inductance; usually expressed in millihenrys (mH) or microhenrys (uH).","Wb/A","WB/A","1",1,false],[false,"lumen","lm","LM","luminous flux",1,[0,0,0,2,0,0,1],"lm","si",true,null,null,1,false,false,0,"luminous flux; lumens","UCUM","","Clinical","unit of luminous flux defined as 1 lm = 1 cd⋅sr (candela times sphere)","cd.sr","CD.SR","1",1,false],[false,"lux","lx","LX","illuminance",1,[-2,0,0,2,0,0,1],"lx","si",true,null,null,1,false,false,0,"illuminance; luxes","UCUM","","Clinical","unit of illuminance equal to one lumen per square meter. ","lm/m2","LM/M2","1",1,false],[false,"becquerel","Bq","BQ","radioactivity",1,[0,-1,0,0,0,0,0],"Bq","si",true,null,null,1,false,false,0,"activity; radiation; becquerels","UCUM","","Clinical","measure of the atomic radiation rate with units s^-1","s-1","S-1","1",1,false],[false,"gray","Gy","GY","energy dose",1,[2,-2,0,0,0,0,0],"Gy","si",true,null,null,1,false,false,0,"absorbed doses; ionizing radiation doses; kerma; grays","UCUM","EngCnt","Clinical","unit of ionizing radiation dose with base units of 1 joule of radiation energy per kilogram of matter","J/kg","J/KG","1",1,false],[false,"sievert","Sv","SV","dose equivalent",1,[2,-2,0,0,0,0,0],"Sv","si",true,null,null,1,false,false,0,"sieverts; radiation dose quantities; equivalent doses; effective dose; operational dose; committed dose","UCUM","","Clinical","SI unit for radiation dose equivalent equal to 1 Joule/kilogram.","J/kg","J/KG","1",1,false],[false,"degree - plane angle","deg","DEG","plane angle",0.017453292519943295,[0,0,0,1,0,0,0],"°","iso1000",false,null,null,1,false,false,0,"°; degree of arc; arc degree; arcdegree; angle","UCUM","Angle","Clinical","one degree is equivalent to π/180 radians.","[pi].rad/360","[PI].RAD/360","2",2,false],[false,"gon","gon","GON","plane angle",0.015707963267948967,[0,0,0,1,0,0,0],"□<sup>g</sup>","iso1000",false,null,null,1,false,false,0,"gon (grade); gons","UCUM","Angle","Nonclinical","unit of plane angle measurement equal to 1/400 circle","deg","DEG","0.9",0.9,false],[false,"arc minute","\'","\'","plane angle",0.0002908882086657216,[0,0,0,1,0,0,0],"\'","iso1000",false,null,null,1,false,false,0,"arcminutes; arcmin; arc minutes; arc mins","UCUM","Angle","Clinical","equal to 1/60 degree; used in optometry and opthamology (e.g. visual acuity tests)","deg/60","DEG/60","1",1,false],[false,"arc second","\'\'","\'\'","plane angle",0.00000484813681109536,[0,0,0,1,0,0,0],"\'\'","iso1000",false,null,null,1,false,false,0,"arcseconds; arcsecs","UCUM","Angle","Clinical","equal to 1/60 arcminute = 1/3600 degree; used in optometry and opthamology (e.g. visual acuity tests)","\'/60","\'/60","1",1,false],[false,"Liters","l","L","volume",0.001,[3,0,0,0,0,0,0],"l","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","dm3","DM3","1",1,false],[false,"Liters","L","L","volume",0.001,[3,0,0,0,0,0,0],"L","iso1000",true,null,null,1,false,false,0,"cubic decimeters; decimeters cubed; decimetres; dm3; dm^3; litres; liters, LT ","UCUM","Vol","Clinical","Because lower case \\"l\\" can be read as the number \\"1\\", though this is a valid UCUM units. UCUM strongly reccomends using \\"L\\"","l",null,"1",1,false],[false,"are","ar","AR","area",100,[2,0,0,0,0,0,0],"a","iso1000",true,null,null,1,false,false,0,"100 m2; 100 m^2; 100 square meter; meters squared; metres","UCUM","Area","Clinical","metric base unit for area defined as 100 m^2","m2","M2","100",100,false],[false,"minute","min","MIN","time",60,[0,1,0,0,0,0,0],"min","iso1000",false,null,null,1,false,false,0,"minutes","UCUM","Time","Clinical","","s","S","60",60,false],[false,"hour","h","HR","time",3600,[0,1,0,0,0,0,0],"h","iso1000",false,null,null,1,false,false,0,"hours; hrs; age","UCUM","Time","Clinical","","min","MIN","60",60,false],[false,"day","d","D","time",86400,[0,1,0,0,0,0,0],"d","iso1000",false,null,null,1,false,false,0,"days; age; dy; 24 hours; 24 hrs","UCUM","Time","Clinical","","h","HR","24",24,false],[false,"tropical year","a_t","ANN_T","time",31556925.216,[0,1,0,0,0,0,0],"a<sub>t</sub>","iso1000",false,null,null,1,false,false,0,"solar years; a tropical; years","UCUM","Time","Clinical","has an average of 365.242181 days but is constantly changing.","d","D","365.24219",365.24219,false],[false,"mean Julian year","a_j","ANN_J","time",31557600,[0,1,0,0,0,0,0],"a<sub>j</sub>","iso1000",false,null,null,1,false,false,0,"mean Julian yr; a julian; years","UCUM","Time","Clinical","has an average of 365.25 days, and in everyday use, has been replaced by the Gregorian year. However, this unit is used in astronomy to calculate light year. ","d","D","365.25",365.25,false],[false,"mean Gregorian year","a_g","ANN_G","time",31556952,[0,1,0,0,0,0,0],"a<sub>g</sub>","iso1000",false,null,null,1,false,false,0,"mean Gregorian yr; a gregorian; years","UCUM","Time","Clinical","has an average of 365.2425 days and is the most internationally used civil calendar.","d","D","365.2425",365.2425,false],[false,"year","a","ANN","time",31557600,[0,1,0,0,0,0,0],"a","iso1000",false,null,null,1,false,false,0,"years; a; yr, yrs; annum","UCUM","Time","Clinical","","a_j","ANN_J","1",1,false],[false,"week","wk","WK","time",604800,[0,1,0,0,0,0,0],"wk","iso1000",false,null,null,1,false,false,0,"weeks; wks","UCUM","Time","Clinical","","d","D","7",7,false],[false,"synodal month","mo_s","MO_S","time",2551442.976,[0,1,0,0,0,0,0],"mo<sub>s</sub>","iso1000",false,null,null,1,false,false,0,"Moon; synodic month; lunar month; mo-s; mo s; months; moons","UCUM","Time","Nonclinical","has an average of 29.53 days per month, unit used in astronomy","d","D","29.53059",29.53059,false],[false,"mean Julian month","mo_j","MO_J","time",2629800,[0,1,0,0,0,0,0],"mo<sub>j</sub>","iso1000",false,null,null,1,false,false,0,"mo-julian; mo Julian; months","UCUM","Time","Clinical","has an average of 30.435 days per month","a_j/12","ANN_J/12","1",1,false],[false,"mean Gregorian month","mo_g","MO_G","time",2629746,[0,1,0,0,0,0,0],"mo<sub>g</sub>","iso1000",false,null,null,1,false,false,0,"months; month-gregorian; mo-gregorian","UCUM","Time","Clinical","has an average 30.436875 days per month and is from the most internationally used civil calendar.","a_g/12","ANN_G/12","1",1,false],[false,"month","mo","MO","time",2629800,[0,1,0,0,0,0,0],"mo","iso1000",false,null,null,1,false,false,0,"months; duration","UCUM","Time","Clinical","based on Julian calendar which has an average of 30.435 days per month (this unit is used in astronomy but not in everyday life - see mo_g)","mo_j","MO_J","1",1,false],[false,"metric ton","t","TNE","mass",1000000,[0,0,1,0,0,0,0],"t","iso1000",true,null,null,1,false,false,0,"tonnes; megagrams; tons","UCUM","Mass","Nonclinical","equal to 1000 kg used in the US (recognized by NIST as metric ton), and internationally (recognized as tonne)","kg","KG","1e3",1000,false],[false,"bar","bar","BAR","pressure",100000000,[-1,-2,1,0,0,0,0],"bar","iso1000",true,null,null,1,false,false,0,"bars","UCUM","Pres","Nonclinical","unit of pressure equal to 10^5 Pascals, primarily used by meteorologists and in weather forecasting","Pa","PAL","1e5",100000,false],[false,"unified atomic mass unit","u","AMU","mass",1.6605402e-24,[0,0,1,0,0,0,0],"u","iso1000",true,null,null,1,false,false,0,"unified atomic mass units; amu; Dalton; Da","UCUM","Mass","Clinical","the mass of 1/12 of an unbound Carbon-12 atom nuclide equal to 1.6606x10^-27 kg ","g","G","1.6605402e-24",1.6605402e-24,false],[false,"astronomic unit","AU","ASU","length",149597870691,[1,0,0,0,0,0,0],"AU","iso1000",false,null,null,1,false,false,0,"AU; units","UCUM","Len","Clinical","unit of length used in astronomy for measuring distance in Solar system","Mm","MAM","149597.870691",149597.870691,false],[false,"parsec","pc","PRS","length",30856780000000000,[1,0,0,0,0,0,0],"pc","iso1000",true,null,null,1,false,false,0,"parsecs","UCUM","Len","Clinical","unit of length equal to 3.26 light years, nad used to measure large distances to objects outside our Solar System","m","M","3.085678e16",30856780000000000,false],[false,"velocity of light in a vacuum","[c]","[C]","velocity",299792458,[1,-1,0,0,0,0,0],"<i>c</i>","const",true,null,null,1,false,false,0,"speed of light","UCUM","Vel","Constant","equal to 299792458 m/s (approximately 3 x 10^8 m/s)","m/s","M/S","299792458",299792458,false],[false,"Planck constant","[h]","[H]","action",6.6260755e-31,[2,-1,1,0,0,0,0],"<i>h</i>","const",true,null,null,1,false,false,0,"Planck\'s constant","UCUM","","Constant","constant = 6.62607004 × 10-34 m2.kg/s; defined as quantum of action","J.s","J.S","6.6260755e-34",6.6260755e-34,false],[false,"Boltzmann constant","[k]","[K]","(unclassified)",1.380658e-20,[2,-2,1,0,-1,0,0],"<i>k</i>","const",true,null,null,1,false,false,0,"k; kB","UCUM","","Constant","physical constant relating energy at the individual particle level with temperature = 1.38064852 ×10^−23 J/K","J/K","J/K","1.380658e-23",1.380658e-23,false],[false,"permittivity of vacuum - electric","[eps_0]","[EPS_0]","electric permittivity",8.854187817000001e-15,[-3,2,-1,0,0,2,0],"<i>ε<sub><r>0</r></sub></i>","const",true,null,null,1,false,false,0,"ε0; Electric Constant; vacuum permittivity; permittivity of free space ","UCUM","","Constant","approximately equal to 8.854 × 10^−12 F/m (farads per meter)","F/m","F/M","8.854187817e-12",8.854187817e-12,false],[false,"permeability of vacuum - magnetic","[mu_0]","[MU_0]","magnetic permeability",0.0012566370614359172,[1,0,1,0,0,-2,0],"<i>μ<sub><r>0</r></sub></i>","const",true,null,null,1,false,false,0,"μ0; vacuum permeability; permeability of free space; magnetic constant","UCUM","","Constant","equal to 4π×10^−7 N/A2 (Newtons per square ampere) ≈ 1.2566×10^−6 H/m (Henry per meter)","N/A2","4.[PI].10*-7.N/A2","1",0.0000012566370614359173,false],[false,"elementary charge","[e]","[E]","electric charge",1.60217733e-19,[0,0,0,0,0,1,0],"<i>e</i>","const",true,null,null,1,false,false,0,"e; q; electric charges","UCUM","","Constant","the magnitude of the electric charge carried by a single electron or proton ≈ 1.60217×10^-19 Coulombs","C","C","1.60217733e-19",1.60217733e-19,false],[false,"electronvolt","eV","EV","energy",1.60217733e-16,[2,-2,1,0,0,0,0],"eV","iso1000",true,null,null,1,false,false,0,"Electron Volts; electronvolts","UCUM","Eng","Clinical","unit of kinetic energy = 1 V * 1.602×10^−19 C = 1.6×10−19 Joules","[e].V","[E].V","1",1,false],[false,"electron mass","[m_e]","[M_E]","mass",9.1093897e-28,[0,0,1,0,0,0,0],"<i>m<sub><r>e</r></sub></i>","const",true,null,null,1,false,false,0,"electron rest mass; me","UCUM","Mass","Constant","approximately equal to 9.10938356 × 10-31 kg; defined as the mass of a stationary electron","g","g","9.1093897e-28",9.1093897e-28,false],[false,"proton mass","[m_p]","[M_P]","mass",1.6726231e-24,[0,0,1,0,0,0,0],"<i>m<sub><r>p</r></sub></i>","const",true,null,null,1,false,false,0,"mp; masses","UCUM","Mass","Constant","approximately equal to 1.672622×10−27 kg","g","g","1.6726231e-24",1.6726231e-24,false],[false,"Newtonian constant of gravitation","[G]","[GC]","(unclassified)",6.67259e-14,[3,-2,-1,0,0,0,0],"<i>G</i>","const",true,null,null,1,false,false,0,"G; gravitational constant; Newton\'s constant","UCUM","","Constant","gravitational constant = 6.674×10−11 N⋅m2/kg2","m3.kg-1.s-2","M3.KG-1.S-2","6.67259e-11",6.67259e-11,false],[false,"standard acceleration of free fall","[g]","[G]","acceleration",9.80665,[1,-2,0,0,0,0,0],"<i>g<sub>n</sub></i>","const",true,null,null,1,false,false,0,"standard gravity; g; ɡ0; ɡn","UCUM","Accel","Constant","defined by standard = 9.80665 m/s2","m/s2","M/S2","980665e-5",9.80665,false],[false,"Torr","Torr","Torr","pressure",133322,[-1,-2,1,0,0,0,0],"Torr","const",false,null,null,1,false,false,0,"torrs","UCUM","Pres","Clinical","1 torr = 1 mmHg; unit used to measure blood pressure","Pa","PAL","133.322",133.322,false],[false,"standard atmosphere","atm","ATM","pressure",101325000,[-1,-2,1,0,0,0,0],"atm","const",false,null,null,1,false,false,0,"reference pressure; atmos; std atmosphere","UCUM","Pres","Clinical","defined as being precisely equal to 101,325 Pa","Pa","PAL","101325",101325,false],[false,"light-year","[ly]","[LY]","length",9460730472580800,[1,0,0,0,0,0,0],"l.y.","const",true,null,null,1,false,false,0,"light years; ly","UCUM","Len","Constant","unit of astronomal distance = 5.88×10^12 mi","[c].a_j","[C].ANN_J","1",1,false],[false,"gram-force","gf","GF","force",9.80665,[1,-2,1,0,0,0,0],"gf","const",true,null,null,1,false,false,0,"Newtons; gram forces","UCUM","Force","Clinical","May be specific to unit related to cardiac output","g.[g]","G.[G]","1",1,false],[false,"Kayser","Ky","KY","lineic number",100,[-1,0,0,0,0,0,0],"K","cgs",true,null,null,1,false,false,0,"wavenumbers; kaysers","UCUM","InvLen","Clinical","unit of wavelength equal to cm^-1","cm-1","CM-1","1",1,false],[false,"Gal","Gal","GL","acceleration",0.01,[1,-2,0,0,0,0,0],"Gal","cgs",true,null,null,1,false,false,0,"galileos; Gals","UCUM","Accel","Clinical","unit of acceleration used in gravimetry; equivalent to cm/s2 ","cm/s2","CM/S2","1",1,false],[false,"dyne","dyn","DYN","force",0.01,[1,-2,1,0,0,0,0],"dyn","cgs",true,null,null,1,false,false,0,"dynes","UCUM","Force","Clinical","unit of force equal to 10^-5 Newtons","g.cm/s2","G.CM/S2","1",1,false],[false,"erg","erg","ERG","energy",0.0001,[2,-2,1,0,0,0,0],"erg","cgs",true,null,null,1,false,false,0,"10^-7 Joules, 10-7 Joules; 100 nJ; 100 nanoJoules; 1 dyne cm; 1 g.cm2/s2","UCUM","Eng","Clinical","unit of energy = 1 dyne centimeter = 10^-7 Joules","dyn.cm","DYN.CM","1",1,false],[false,"Poise","P","P","dynamic viscosity",100,[-1,-1,1,0,0,0,0],"P","cgs",true,null,null,1,false,false,0,"dynamic viscosity; poises","UCUM","Visc","Clinical","unit of dynamic viscosity where 1 Poise = 1/10 Pascal second","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"Biot","Bi","BI","electric current",10,[0,-1,0,0,0,1,0],"Bi","cgs",true,null,null,1,false,false,0,"Bi; abamperes; abA","UCUM","ElpotRat","Clinical","equal to 10 amperes","A","A","10",10,false],[false,"Stokes","St","ST","kinematic viscosity",0.0001,[2,-1,0,0,0,0,0],"St","cgs",true,null,null,1,false,false,0,"kinematic viscosity","UCUM","Visc","Clinical","unit of kimematic viscosity with units cm2/s","cm2/s","CM2/S","1",1,false],[false,"Maxwell","Mx","MX","flux of magnetic induction",0.00001,[2,-1,1,0,0,-1,0],"Mx","cgs",true,null,null,1,false,false,0,"magnetix flux; Maxwells","UCUM","","Clinical","unit of magnetic flux","Wb","WB","1e-8",1e-8,false],[false,"Gauss","G","GS","magnetic flux density",0.1,[0,-1,1,0,0,-1,0],"Gs","cgs",true,null,null,1,false,false,0,"magnetic fields; magnetic flux density; induction; B","UCUM","magnetic","Clinical","CGS unit of magnetic flux density, known as magnetic field B; defined as one maxwell unit per square centimeter (see Oersted for CGS unit for H field)","T","T","1e-4",0.0001,false],[false,"Oersted","Oe","OE","magnetic field intensity",79.57747154594767,[-1,-1,0,0,0,1,0],"Oe","cgs",true,null,null,1,false,false,0,"H magnetic B field; Oersteds","UCUM","","Clinical","CGS unit of the auxiliary magnetic field H defined as 1 dyne per unit pole = 1000/4π amperes per meter (see Gauss for CGS unit for B field)","A/m","/[PI].A/M","250",79.57747154594767,false],[false,"Gilbert","Gb","GB","magnetic tension",0.7957747154594768,[0,-1,0,0,0,1,0],"Gb","cgs",true,null,null,1,false,false,0,"Gi; magnetomotive force; Gilberts","UCUM","","Clinical","unit of magnetomotive force (magnetic potential)","Oe.cm","OE.CM","1",1,false],[false,"stilb","sb","SB","lum. intensity density",10000,[-2,0,0,0,0,0,1],"sb","cgs",true,null,null,1,false,false,0,"stilbs","UCUM","","Obsolete","unit of luminance; equal to and replaced by unit candela per square centimeter (cd/cm2)","cd/cm2","CD/CM2","1",1,false],[false,"Lambert","Lmb","LMB","brightness",3183.098861837907,[-2,0,0,0,0,0,1],"L","cgs",true,null,null,1,false,false,0,"luminance; lamberts","UCUM","","Clinical","unit of luminance defined as 1 lambert = 1/ π candela per square meter","cd/cm2/[pi]","CD/CM2/[PI]","1",1,false],[false,"phot","ph","PHT","illuminance",0.0001,[-2,0,0,2,0,0,1],"ph","cgs",true,null,null,1,false,false,0,"phots","UCUM","","Clinical","CGS photometric unit of illuminance, or luminous flux through an area equal to 10000 lumens per square meter = 10000 lux","lx","LX","1e-4",0.0001,false],[false,"Curie","Ci","CI","radioactivity",37000000000,[0,-1,0,0,0,0,0],"Ci","cgs",true,null,null,1,false,false,0,"curies","UCUM","","Obsolete","unit for measuring atomic disintegration rate; replaced by the Bequerel (Bq) unit","Bq","BQ","37e9",37000000000,false],[false,"Roentgen","R","ROE","ion dose",2.58e-7,[0,0,-1,0,0,1,0],"R","cgs",true,null,null,1,false,false,0,"röntgen; Roentgens","UCUM","","Clinical","unit of exposure of X-rays and gamma rays in air; unit used primarily in the US but strongly discouraged by NIST","C/kg","C/KG","2.58e-4",0.000258,false],[false,"radiation absorbed dose","RAD","[RAD]","energy dose",0.01,[2,-2,0,0,0,0,0],"RAD","cgs",true,null,null,1,false,false,0,"doses","UCUM","","Clinical","unit of radiation absorbed dose used primarily in the US with base units 100 ergs per gram of material. Also see the SI unit Gray (Gy).","erg/g","ERG/G","100",100,false],[false,"radiation equivalent man","REM","[REM]","dose equivalent",0.01,[2,-2,0,0,0,0,0],"REM","cgs",true,null,null,1,false,false,0,"Roentgen Equivalent in Man; rems; dose equivalents","UCUM","","Clinical","unit of equivalent dose which measures the effect of radiation on humans equal to 0.01 sievert. Used primarily in the US. Also see SI unit Sievert (Sv)","RAD","[RAD]","1",1,false],[false,"inch","[in_i]","[IN_I]","length",0.025400000000000002,[1,0,0,0,0,0,0],"in","intcust",false,null,null,1,false,false,0,"inches; in; international inch; body height","UCUM","Len","Clinical","standard unit for inch in the US and internationally","cm","CM","254e-2",2.54,false],[false,"foot","[ft_i]","[FT_I]","length",0.3048,[1,0,0,0,0,0,0],"ft","intcust",false,null,null,1,false,false,0,"ft; fts; foot; international foot; feet; international feet; height","UCUM","Len","Clinical","unit used in the US and internationally","[in_i]","[IN_I]","12",12,false],[false,"yard","[yd_i]","[YD_I]","length",0.9144000000000001,[1,0,0,0,0,0,0],"yd","intcust",false,null,null,1,false,false,0,"international yards; yds; distance","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","3",3,false],[false,"mile","[mi_i]","[MI_I]","length",1609.344,[1,0,0,0,0,0,0],"mi","intcust",false,null,null,1,false,false,0,"international miles; mi I; statute mile","UCUM","Len","Clinical","standard unit used in the US and internationally","[ft_i]","[FT_I]","5280",5280,false],[false,"fathom","[fth_i]","[FTH_I]","depth of water",1.8288000000000002,[1,0,0,0,0,0,0],"fth","intcust",false,null,null,1,false,false,0,"international fathoms","UCUM","Len","Nonclinical","unit used in the US and internationally to measure depth of water; same length as the US fathom","[ft_i]","[FT_I]","6",6,false],[false,"nautical mile","[nmi_i]","[NMI_I]","length",1852,[1,0,0,0,0,0,0],"n.mi","intcust",false,null,null,1,false,false,0,"nautical mile; nautical miles; international nautical mile; international nautical miles; nm; n.m.; nmi","UCUM","Len","Nonclinical","standard unit used in the US and internationally","m","M","1852",1852,false],[false,"knot","[kn_i]","[KN_I]","velocity",0.5144444444444445,[1,-1,0,0,0,0,0],"knot","intcust",false,null,null,1,false,false,0,"kn; kt; international knots","UCUM","Vel","Nonclinical","defined as equal to one nautical mile (1.852 km) per hour","[nmi_i]/h","[NMI_I]/H","1",1,false],[false,"square inch","[sin_i]","[SIN_I]","area",0.0006451600000000001,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in2; in^2; inches squared; sq inch; inches squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[in_i]2","[IN_I]2","1",1,false],[false,"square foot","[sft_i]","[SFT_I]","area",0.09290304,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft2; ft^2; ft squared; sq ft; feet; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[ft_i]2","[FT_I]2","1",1,false],[false,"square yard","[syd_i]","[SYD_I]","area",0.8361273600000002,[2,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"yd2; yd^2; sq. yds; yards squared; international","UCUM","Area","Clinical","standard unit used in the US and internationally","[yd_i]2","[YD_I]2","1",1,false],[false,"cubic inch","[cin_i]","[CIN_I]","volume",0.000016387064000000003,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"in3; in^3; in*3; inches^3; inches*3; cu. in; cu in; cubic inches; inches cubed; cin","UCUM","Vol","Clinical","standard unit used in the US and internationally","[in_i]3","[IN_I]3","1",1,false],[false,"cubic foot","[cft_i]","[CFT_I]","volume",0.028316846592000004,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"ft3; ft^3; ft*3; cu. ft; cubic feet; cubed; [ft_i]3; international","UCUM","Vol","Clinical","","[ft_i]3","[FT_I]3","1",1,false],[false,"cubic yard","[cyd_i]","[CYD_I]","volume",0.7645548579840002,[3,0,0,0,0,0,0],"cu.yd","intcust",false,null,null,1,false,false,0,"cubic yards; cubic yds; cu yards; CYs; yards^3; yd^3; yds^3; yd3; yds3","UCUM","Vol","Nonclinical","standard unit used in the US and internationally","[yd_i]3","[YD_I]3","1",1,false],[false,"board foot","[bf_i]","[BF_I]","volume",0.002359737216,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"BDFT; FBM; BF; board feet; international","UCUM","Vol","Nonclinical","unit of volume used to measure lumber","[in_i]3","[IN_I]3","144",144,false],[false,"cord","[cr_i]","[CR_I]","volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"intcust",false,null,null,1,false,false,0,"crd I; international cords","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3","[ft_i]3","[FT_I]3","128",128,false],[false,"mil","[mil_i]","[MIL_I]","length",0.000025400000000000004,[1,0,0,0,0,0,0],"mil","intcust",false,null,null,1,false,false,0,"thou, thousandth; mils; international","UCUM","Len","Clinical","equal to 0.001 international inch","[in_i]","[IN_I]","1e-3",0.001,false],[false,"circular mil","[cml_i]","[CML_I]","area",5.067074790974979e-10,[2,0,0,0,0,0,0],"circ.mil","intcust",false,null,null,1,false,false,0,"circular mils; cml I; international","UCUM","Area","Clinical","","[pi]/4.[mil_i]2","[PI]/4.[MIL_I]2","1",1,false],[false,"hand","[hd_i]","[HD_I]","height of horses",0.10160000000000001,[1,0,0,0,0,0,0],"hd","intcust",false,null,null,1,false,false,0,"hands; international","UCUM","Len","Nonclinical","used to measure horse height","[in_i]","[IN_I]","4",4,false],[false,"foot - US","[ft_us]","[FT_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],"ft<sub>us</sub>","us-lengths",false,null,null,1,false,false,0,"US foot; foot US; us ft; ft us; height; visual distance; feet","UCUM","Len","Obsolete","Better to use [ft_i] which refers to the length used worldwide, including in the US; [ft_us] may be confused with land survey units. ","m/3937","M/3937","1200",1200,false],[false,"yard - US","[yd_us]","[YD_US]","length",0.9144018288036575,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US yards; us yds; distance","UCUM","Len; Nrat","Obsolete","Better to use [yd_i] which refers to the length used worldwide, including in the US; [yd_us] refers to unit used in land surveys in the US","[ft_us]","[FT_US]","3",3,false],[false,"inch - US","[in_us]","[IN_US]","length",0.0254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US inches; in us; us in; inch US","UCUM","Len","Obsolete","Better to use [in_i] which refers to the length used worldwide, including in the US","[ft_us]/12","[FT_US]/12","1",1,false],[false,"rod - US","[rd_us]","[RD_US]","length",5.029210058420117,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US rod; US rods; rd US; US rd","UCUM","Len","Obsolete","","[ft_us]","[FT_US]","16.5",16.5,false],[false,"Gunter\'s chain - US","[ch_us]","[CH_US]","length",20.116840233680467,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"surveyor\'s chain; Surveyor\'s chain USA; Gunter’s measurement; surveyor’s measurement; Gunter\'s Chain USA","UCUM","Len","Obsolete","historical unit used for land survey used only in the US","[rd_us]","[RD_US]","4",4,false],[false,"link for Gunter\'s chain - US","[lk_us]","[LK_US]","length",0.20116840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Links for Gunter\'s Chain USA","UCUM","Len","Obsolete","","[ch_us]/100","[CH_US]/100","1",1,false],[false,"Ramden\'s chain - US","[rch_us]","[RCH_US]","length",30.480060960121918,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Ramsden\'s chain; engineer\'s chains","UCUM","Len","Obsolete","distance measuring device used for land survey","[ft_us]","[FT_US]","100",100,false],[false,"link for Ramden\'s chain - US","[rlk_us]","[RLK_US]","length",0.3048006096012192,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"links for Ramsden\'s chain","UCUM","Len","Obsolete","","[rch_us]/100","[RCH_US]/100","1",1,false],[false,"fathom - US","[fth_us]","[FTH_US]","length",1.828803657607315,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US fathoms; fathom USA; fth us","UCUM","Len","Obsolete","same length as the international fathom - better to use international fathom ([fth_i])","[ft_us]","[FT_US]","6",6,false],[false,"furlong - US","[fur_us]","[FUR_US]","length",201.16840233680466,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"US furlongs; fur us","UCUM","Len","Nonclinical","distance unit in horse racing","[rd_us]","[RD_US]","40",40,false],[false,"mile - US","[mi_us]","[MI_US]","length",1609.3472186944373,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"U.S. Survey Miles; US statute miles; survey mi; US mi; distance","UCUM","Len","Nonclinical","Better to use [mi_i] which refers to the length used worldwide, including in the US","[fur_us]","[FUR_US]","8",8,false],[false,"acre - US","[acr_us]","[ACR_US]","area",4046.872609874252,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"Acre USA Survey; Acre USA; survey acres","UCUM","Area","Nonclinical","an older unit based on pre 1959 US statute lengths that is still sometimes used in the US only for land survey purposes. ","[rd_us]2","[RD_US]2","160",160,false],[false,"square rod - US","[srd_us]","[SRD_US]","area",25.292953811714074,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"rod2; rod^2; sq. rod; rods squared","UCUM","Area","Nonclinical","Used only in the US to measure land area, based on US statute land survey length units","[rd_us]2","[RD_US]2","1",1,false],[false,"square mile - US","[smi_us]","[SMI_US]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"mi2; mi^2; sq mi; miles squared","UCUM","Area","Nonclinical","historical unit used only in the US for land survey purposes (based on the US survey mile), not the internationally recognized [mi_i]","[mi_us]2","[MI_US]2","1",1,false],[false,"section","[sct]","[SCT]","area",2589998.470319521,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"sct; sections","UCUM","Area","Nonclinical","tract of land approximately equal to 1 mile square containing 640 acres","[mi_us]2","[MI_US]2","1",1,false],[false,"township","[twp]","[TWP]","area",93239944.93150276,[2,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"twp; townships","UCUM","Area","Nonclinical","land measurement equal to 6 mile square","[sct]","[SCT]","36",36,false],[false,"mil - US","[mil_us]","[MIL_US]","length",0.0000254000508001016,[1,0,0,0,0,0,0],null,"us-lengths",false,null,null,1,false,false,0,"thou, thousandth; mils","UCUM","Len","Obsolete","better to use [mil_i] which is based on the internationally recognized inch","[in_us]","[IN_US]","1e-3",0.001,false],[false,"inch - British","[in_br]","[IN_BR]","length",0.025399980000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial inches; imp in; br in; british inches","UCUM","Len","Obsolete","","cm","CM","2.539998",2.539998,false],[false,"foot - British","[ft_br]","[FT_BR]","length",0.30479976000000003,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British Foot; Imperial Foot; feet; imp fts; br fts","UCUM","Len","Obsolete","","[in_br]","[IN_BR]","12",12,false],[false,"rod - British","[rd_br]","[RD_BR]","length",5.02919604,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British rods; br rd","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","16.5",16.5,false],[false,"Gunter\'s chain - British","[ch_br]","[CH_BR]","length",20.11678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Gunter\'s Chain British; Gunters Chain British; Surveyor\'s Chain British","UCUM","Len","Obsolete","historical unit used for land survey used only in Great Britain","[rd_br]","[RD_BR]","4",4,false],[false,"link for Gunter\'s chain - British","[lk_br]","[LK_BR]","length",0.2011678416,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Links for Gunter\'s Chain British","UCUM","Len","Obsolete","","[ch_br]/100","[CH_BR]/100","1",1,false],[false,"fathom - British","[fth_br]","[FTH_BR]","length",1.82879856,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British fathoms; imperial fathoms; br fth; imp fth","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6",6,false],[false,"pace - British","[pc_br]","[PC_BR]","length",0.7619994000000001,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British paces; br pc","UCUM","Len","Nonclinical","traditional unit of length equal to 152.4 centimeters, or 1.52 meter. ","[ft_br]","[FT_BR]","2.5",2.5,false],[false,"yard - British","[yd_br]","[YD_BR]","length",0.91439928,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British yards; Br yds; distance","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","3",3,false],[false,"mile - British","[mi_br]","[MI_BR]","length",1609.3427328000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"imperial miles; British miles; English statute miles; imp mi, br mi","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","5280",5280,false],[false,"nautical mile - British","[nmi_br]","[NMI_BR]","length",1853.1825408000002,[1,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British nautical miles; Imperial nautical miles; Admiralty miles; n.m. br; imp nm","UCUM","Len","Obsolete","","[ft_br]","[FT_BR]","6080",6080,false],[false,"knot - British","[kn_br]","[KN_BR]","velocity",0.5147729280000001,[1,-1,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"British knots; kn br; kt","UCUM","Vel","Obsolete","based on obsolete British nautical mile ","[nmi_br]/h","[NMI_BR]/H","1",1,false],[false,"acre","[acr_br]","[ACR_BR]","area",4046.850049400269,[2,0,0,0,0,0,0],null,"brit-length",false,null,null,1,false,false,0,"Imperial acres; British; a; ac; ar; acr","UCUM","Area","Nonclinical","the standard unit for acre used in the US and internationally","[yd_br]2","[YD_BR]2","4840",4840,false],[false,"gallon - US","[gal_us]","[GAL_US]","fluid volume",0.0037854117840000006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gallons; US liquid gallon; gal us; Queen Anne\'s wine gallon","UCUM","Vol","Nonclinical","only gallon unit used in the US; [gal_us] is only used in some other countries in South American and Africa to measure gasoline volume","[in_i]3","[IN_I]3","231",231,false],[false,"barrel - US","[bbl_us]","[BBL_US]","fluid volume",0.158987294928,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"bbl","UCUM","Vol","Nonclinical","[bbl_us] is the standard unit for oil barrel, which is a unit only used in the US to measure the volume oil. ","[gal_us]","[GAL_US]","42",42,false],[false,"quart - US","[qt_us]","[QT_US]","fluid volume",0.0009463529460000001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US quarts; us qts","UCUM","Vol","Clinical","Used only in the US","[gal_us]/4","[GAL_US]/4","1",1,false],[false,"pint - US","[pt_us]","[PT_US]","fluid volume",0.00047317647300000007,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pints; pint US; liquid pint; pt us; us pt","UCUM","Vol","Clinical","Used only in the US","[qt_us]/2","[QT_US]/2","1",1,false],[false,"gill - US","[gil_us]","[GIL_US]","fluid volume",0.00011829411825000002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US gills; gil us","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in the US","[pt_us]/4","[PT_US]/4","1",1,false],[false,"fluid ounce - US","[foz_us]","[FOZ_US]","fluid volume",0.000029573529562500005,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"US fluid ounces; fl ozs; FO; fl. oz.; foz us","UCUM","Vol","Clinical","unit used only in the US","[gil_us]/4","[GIL_US]/4","1",1,false],[false,"fluid dram - US","[fdr_us]","[FDR_US]","fluid volume",0.0000036966911953125006,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US fluid drams; fdr us","UCUM","Vol","Nonclinical","equal to 1/8 US fluid ounce = 3.69 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_us]/8","[FOZ_US]/8","1",1,false],[false,"minim - US","[min_us]","[MIN_US]","fluid volume",6.1611519921875e-8,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"min US; US min; ♏ US","UCUM","Vol","Obsolete","","[fdr_us]/60","[FDR_US]/60","1",1,false],[false,"cord - US","[crd_us]","[CRD_US]","fluid volume",3.6245563637760005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US cord; US cords; crd us; us crd","UCUM","Vol","Nonclinical","unit of measure of dry volume used to measure firewood equal 128 ft3 (the same as international cord [cr_i])","[ft_i]3","[FT_I]3","128",128,false],[false,"bushel - US","[bu_us]","[BU_US]","dry volume",0.03523907016688001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US bushels; US bsh; US bu","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[in_i]3","[IN_I]3","2150.42",2150.42,false],[false,"gallon - historical","[gal_wi]","[GAL_WI]","dry volume",0.004404883770860001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Corn Gallon British; Dry Gallon US; Gallons Historical; Grain Gallon British; Winchester Corn Gallon; historical winchester gallons; wi gal","UCUM","Vol","Obsolete","historical unit of dry volume no longer used","[bu_us]/8","[BU_US]/8","1",1,false],[false,"peck - US","[pk_us]","[PK_US]","dry volume",0.008809767541720002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"US pecks; US pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[bu_us]/4","[BU_US]/4","1",1,false],[false,"dry quart - US","[dqt_us]","[DQT_US]","dry volume",0.0011012209427150002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry quarts; dry quart US; US dry quart; dry qt; us dry qt; dqt; dqt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[pk_us]/8","[PK_US]/8","1",1,false],[false,"dry pint - US","[dpt_us]","[DPT_US]","dry volume",0.0005506104713575001,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"dry pints; dry pint US; US dry pint; dry pt; dpt; dpt us","UCUM","Vol","Nonclinical","historical unit of dry volume only in the US, but is rarely used today","[dqt_us]/2","[DQT_US]/2","1",1,false],[false,"tablespoon - US","[tbs_us]","[TBS_US]","volume",0.000014786764781250002,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"Tbs; tbsp; tbs us; US tablespoons","UCUM","Vol","Clinical","unit defined as 0.5 US fluid ounces or 3 teaspoons - used only in the US. See [tbs_m] for the unit used internationally and in the US for nutrional labelling. ","[foz_us]/2","[FOZ_US]/2","1",1,false],[false,"teaspoon - US","[tsp_us]","[TSP_US]","volume",0.0000049289215937500005,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; US teaspoons","UCUM","Vol","Nonclinical","unit defined as 1/6 US fluid ounces - used only in the US. See [tsp_m] for the unit used internationally and in the US for nutrional labelling. ","[tbs_us]/3","[TBS_US]/3","1",1,false],[false,"cup - US customary","[cup_us]","[CUP_US]","volume",0.00023658823650000004,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup us; us cups","UCUM","Vol","Nonclinical","Unit defined as 1/2 US pint or 16 US tablespoons ≈ 236.59 mL, which is not the standard unit defined by the FDA of 240 mL - see [cup_m] (metric cup)","[tbs_us]","[TBS_US]","16",16,false],[false,"fluid ounce - metric","[foz_m]","[FOZ_M]","fluid volume",0.000029999999999999997,[3,0,0,0,0,0,0],"oz fl","us-volumes",false,null,null,1,false,false,0,"metric fluid ounces; fozs m; fl ozs m","UCUM","Vol","Clinical","unit used only in the US for nutritional labelling, as set by the FDA","mL","ML","30",30,false],[false,"cup - US legal","[cup_m]","[CUP_M]","volume",0.00023999999999999998,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"cup m; metric cups","UCUM","Vol","Clinical","standard unit equal to 240 mL used in the US for nutritional labelling, as defined by the FDA. Note that this is different from the US customary cup (236.59 mL) and the metric cup used in Commonwealth nations (250 mL).","mL","ML","240",240,false],[false,"teaspoon - metric","[tsp_m]","[TSP_M]","volume",0.0000049999999999999996,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"tsp; t; metric teaspoons","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","5",5,false],[false,"tablespoon - metric","[tbs_m]","[TBS_M]","volume",0.000014999999999999999,[3,0,0,0,0,0,0],null,"us-volumes",false,null,null,1,false,false,0,"metric tablespoons; Tbs; tbsp; T; tbs m","UCUM","Vol","Clinical","standard unit used in the US and internationally","mL","mL","15",15,false],[false,"gallon- British","[gal_br]","[GAL_BR]","volume",0.004546090000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gallons, UK gallons; British gallons; br gal; imp gal","UCUM","Vol","Nonclinical","Used only in Great Britain and other Commonwealth countries","l","L","4.54609",4.54609,false],[false,"peck - British","[pk_br]","[PK_BR]","volume",0.009092180000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial pecks; British pecks; br pk; imp pk","UCUM","Vol","Nonclinical","unit of dry volume rarely used today (can be used to measure volume of apples)","[gal_br]","[GAL_BR]","2",2,false],[false,"bushel - British","[bu_br]","[BU_BR]","volume",0.03636872000000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British bushels; imperial; br bsh; br bu; imp","UCUM","Vol","Obsolete","Historical unit of dry volume that is rarely used today","[pk_br]","[PK_BR]","4",4,false],[false,"quart - British","[qt_br]","[QT_BR]","volume",0.0011365225000000002,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British quarts; imperial quarts; br qts","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gal_br]/4","[GAL_BR]/4","1",1,false],[false,"pint - British","[pt_br]","[PT_BR]","volume",0.0005682612500000001,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British pints; imperial pints; pt br; br pt; imp pt; pt imp","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[qt_br]/2","[QT_BR]/2","1",1,false],[false,"gill - British","[gil_br]","[GIL_BR]","volume",0.00014206531250000003,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"imperial gills; British gills; imp gill, br gill","UCUM","Vol","Nonclinical","only used in the context of alcohol volume in Great Britain","[pt_br]/4","[PT_BR]/4","1",1,false],[false,"fluid ounce - British","[foz_br]","[FOZ_BR]","volume",0.000028413062500000005,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid ounces; Imperial fluid ounces; br fozs; imp fozs; br fl ozs","UCUM","Vol","Clinical","Used only in Great Britain and other Commonwealth countries","[gil_br]/5","[GIL_BR]/5","1",1,false],[false,"fluid dram - British","[fdr_br]","[FDR_BR]","volume",0.0000035516328125000006,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"British fluid drams; fdr br","UCUM","Vol","Nonclinical","equal to 1/8 Imperial fluid ounce = 3.55 mL; used informally to mean small amount of liquor, especially Scotch whiskey","[foz_br]/8","[FOZ_BR]/8","1",1,false],[false,"minim - British","[min_br]","[MIN_BR]","volume",5.919388020833334e-8,[3,0,0,0,0,0,0],null,"brit-volumes",false,null,null,1,false,false,0,"min br; br min; ♏ br","UCUM","Vol","Obsolete","","[fdr_br]/60","[FDR_BR]/60","1",1,false],[false,"grain","[gr]","[GR]","mass",0.06479891,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"gr; grains","UCUM","Mass","Nonclinical","an apothecary measure of mass rarely used today","mg","MG","64.79891",64.79891,false],[false,"pound","[lb_av]","[LB_AV]","mass",453.59237,[0,0,1,0,0,0,0],"lb","avoirdupois",false,null,null,1,false,false,0,"avoirdupois pounds, international pounds; av lbs; pounds","UCUM","Mass","Clinical","standard unit used in the US and internationally","[gr]","[GR]","7000",7000,false],[false,"pound force - US","[lbf_av]","[LBF_AV]","force",4448.2216152605,[1,-2,1,0,0,0,0],"lbf","const",false,null,null,1,false,false,0,"lbfs; US lbf; US pound forces","UCUM","Force","Clinical","only rarely needed in health care - see [lb_av] which is the more common unit to express weight","[lb_av].[g]","[LB_AV].[G]","1",1,false],[false,"ounce","[oz_av]","[OZ_AV]","mass",28.349523125,[0,0,1,0,0,0,0],"oz","avoirdupois",false,null,null,1,false,false,0,"ounces; international ounces; avoirdupois ounces; av ozs","UCUM","Mass","Clinical","standard unit used in the US and internationally","[lb_av]/16","[LB_AV]/16","1",1,false],[false,"Dram mass unit","[dr_av]","[DR_AV]","mass",1.7718451953125,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"Dram; drams avoirdupois; avoidupois dram; international dram","UCUM","Mass","Clinical","unit from the avoirdupois system, which is used in the US and internationally","[oz_av]/16","[OZ_AV]/16","1",1,false],[false,"short hundredweight","[scwt_av]","[SCWT_AV]","mass",45359.237,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"hundredweights; s cwt; scwt; avoirdupois","UCUM","Mass","Nonclinical","Used only in the US to equal 100 pounds","[lb_av]","[LB_AV]","100",100,false],[false,"long hundredweight","[lcwt_av]","[LCWT_AV]","mass",50802.345440000005,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial hundredweights; imp cwt; lcwt; avoirdupois","UCUM","Mass","Obsolete","","[lb_av]","[LB_AV]","112",112,false],[false,"short ton - US","[ston_av]","[STON_AV]","mass",907184.74,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"ton; US tons; avoirdupois tons","UCUM","Mass","Clinical","Used only in the US","[scwt_av]","[SCWT_AV]","20",20,false],[false,"long ton - British","[lton_av]","[LTON_AV]","mass",1016046.9088000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"imperial tons; weight tons; British long tons; long ton avoirdupois","UCUM","Mass","Nonclinical","Used only in Great Britain and other Commonwealth countries","[lcwt_av]","[LCWT_AV]","20",20,false],[false,"stone - British","[stone_av]","[STONE_AV]","mass",6350.293180000001,[0,0,1,0,0,0,0],null,"avoirdupois",false,null,null,1,false,false,0,"British stones; avoirdupois","UCUM","Mass","Nonclinical","Used primarily in the UK and Ireland to measure body weight","[lb_av]","[LB_AV]","14",14,false],[false,"pennyweight - troy","[pwt_tr]","[PWT_TR]","mass",1.5551738400000001,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"dwt; denarius weights","UCUM","Mass","Obsolete","historical unit used to measure mass and cost of precious metals","[gr]","[GR]","24",24,false],[false,"ounce - troy","[oz_tr]","[OZ_TR]","mass",31.103476800000003,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy ounces; tr ozs","UCUM","Mass","Nonclinical","unit of mass for precious metals and gemstones only","[pwt_tr]","[PWT_TR]","20",20,false],[false,"pound - troy","[lb_tr]","[LB_TR]","mass",373.2417216,[0,0,1,0,0,0,0],null,"troy",false,null,null,1,false,false,0,"troy pounds; tr lbs","UCUM","Mass","Nonclinical","only used for weighing precious metals","[oz_tr]","[OZ_TR]","12",12,false],[false,"scruple","[sc_ap]","[SC_AP]","mass",1.2959782,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"scruples; sc ap","UCUM","Mass","Obsolete","","[gr]","[GR]","20",20,false],[false,"dram - apothecary","[dr_ap]","[DR_AP]","mass",3.8879346,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"ʒ; drachm; apothecaries drams; dr ap; dram ap","UCUM","Mass","Nonclinical","unit still used in the US occasionally to measure amount of drugs in pharmacies","[sc_ap]","[SC_AP]","3",3,false],[false,"ounce - apothecary","[oz_ap]","[OZ_AP]","mass",31.1034768,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary ounces; oz ap; ap ozs; ozs ap","UCUM","Mass","Obsolete","","[dr_ap]","[DR_AP]","8",8,false],[false,"pound - apothecary","[lb_ap]","[LB_AP]","mass",373.2417216,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"apothecary pounds; apothecaries pounds; ap lb; lb ap; ap lbs; lbs ap","UCUM","Mass","Obsolete","","[oz_ap]","[OZ_AP]","12",12,false],[false,"ounce - metric","[oz_m]","[OZ_M]","mass",28,[0,0,1,0,0,0,0],null,"apoth",false,null,null,1,false,false,0,"metric ounces; m ozs","UCUM","Mass","Clinical","see [oz_av] (the avoirdupois ounce) for the standard ounce used internationally; [oz_m] is equal to 28 grams and is based on the apothecaries\' system of mass units which is used in some US pharmacies. ","g","g","28",28,false],[false,"line","[lne]","[LNE]","length",0.002116666666666667,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"British lines; br L; L; l","UCUM","Len","Obsolete","","[in_i]/12","[IN_I]/12","1",1,false],[false,"point (typography)","[pnt]","[PNT]","length",0.0003527777777777778,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"DTP points; desktop publishing point; pt; pnt","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[lne]/6","[LNE]/6","1",1,false],[false,"pica (typography)","[pca]","[PCA]","length",0.004233333333333334,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt]","[PNT]","12",12,false],[false,"Printer\'s point (typography)","[pnt_pr]","[PNT_PR]","length",0.00035145980000000004,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pnt pr","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[in_i]","[IN_I]","0.013837",0.013837,false],[false,"Printer\'s pica (typography)","[pca_pr]","[PCA_PR]","length",0.004217517600000001,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pca pr; Printer\'s picas","UCUM","Len","Nonclinical","typography unit for typesetter\'s length","[pnt_pr]","[PNT_PR]","12",12,false],[false,"pied","[pied]","[PIED]","length",0.3248,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"pieds du roi; Paris foot; royal; French; feet","UCUM","Len","Obsolete","","cm","CM","32.48",32.48,false],[false,"pouce","[pouce]","[POUCE]","length",0.027066666666666666,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"historical French inches; French royal inches","UCUM","Len","Obsolete","","[pied]/12","[PIED]/12","1",1,false],[false,"ligne","[ligne]","[LIGNE]","length",0.0022555555555555554,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Paris lines; lignes","UCUM","Len","Obsolete","","[pouce]/12","[POUCE]/12","1",1,false],[false,"didot","[didot]","[DIDOT]","length",0.0003759259259259259,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot point; dd; Didots Point; didots; points","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[ligne]/6","[LIGNE]/6","1",1,false],[false,"cicero","[cicero]","[CICERO]","length",0.004511111111111111,[1,0,0,0,0,0,0],null,"typeset",false,null,null,1,false,false,0,"Didot\'s pica; ciceros; picas","UCUM","Len","Obsolete","typography unit for typesetter\'s length","[didot]","[DIDOT]","12",12,false],[false,"degrees Fahrenheit","[degF]","[DEGF]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"°F","heat",false,null,"degF",1,true,false,0,"°F; deg F","UCUM","Temp","Clinical","","K",null,null,0.5555555555555556,false],[false,"degrees Rankine","[degR]","[degR]","temperature",0.5555555555555556,[0,0,0,0,1,0,0],"°R","heat",false,null,null,1,false,false,0,"°R; °Ra; Rankine","UCUM","Temp","Obsolete","Replaced by Kelvin","K/9","K/9","5",5,false],[false,"degrees Réaumur","[degRe]","[degRe]","temperature",1.25,[0,0,0,0,1,0,0],"°Ré","heat",false,null,"degRe",1,true,false,0,"°Ré, °Re, °r; Réaumur; degree Reaumur; Reaumur","UCUM","Temp","Obsolete","replaced by Celsius","K",null,null,1.25,false],[false,"calorie at 15°C","cal_[15]","CAL_[15]","energy",4185.8,[2,-2,1,0,0,0,0],"cal<sub>15°C</sub>","heat",true,null,null,1,false,false,0,"calorie 15 C; cals 15 C; calories at 15 C","UCUM","Enrg","Nonclinical","equal to 4.1855 joules; calorie most often used in engineering","J","J","4.18580",4.1858,false],[false,"calorie at 20°C","cal_[20]","CAL_[20]","energy",4181.9,[2,-2,1,0,0,0,0],"cal<sub>20°C</sub>","heat",true,null,null,1,false,false,0,"calorie 20 C; cal 20 C; calories at 20 C","UCUM","Enrg","Clinical","equal to 4.18190 joules. ","J","J","4.18190",4.1819,false],[false,"mean calorie","cal_m","CAL_M","energy",4190.0199999999995,[2,-2,1,0,0,0,0],"cal<sub>m</sub>","heat",true,null,null,1,false,false,0,"mean cals; mean calories","UCUM","Enrg","Clinical","equal to 4.19002 joules. ","J","J","4.19002",4.19002,false],[false,"international table calorie","cal_IT","CAL_IT","energy",4186.8,[2,-2,1,0,0,0,0],"cal<sub>IT</sub>","heat",true,null,null,1,false,false,0,"calories IT; IT cals; international steam table calories","UCUM","Enrg","Nonclinical","used in engineering steam tables and defined as 1/860 international watt-hour; equal to 4.1868 joules","J","J","4.1868",4.1868,false],[false,"thermochemical calorie","cal_th","CAL_TH","energy",4184,[2,-2,1,0,0,0,0],"cal<sub>th</sub>","heat",true,null,null,1,false,false,0,"thermochemical calories; th cals","UCUM","Enrg","Clinical","equal to 4.184 joules; used as the unit in medicine and biochemistry (equal to cal)","J","J","4.184",4.184,false],[false,"calorie","cal","CAL","energy",4184,[2,-2,1,0,0,0,0],"cal","heat",true,null,null,1,false,false,0,"gram calories; small calories","UCUM","Enrg","Clinical","equal to 4.184 joules (the same value as the thermochemical calorie, which is the most common calorie used in medicine and biochemistry)","cal_th","CAL_TH","1",1,false],[false,"nutrition label Calories","[Cal]","[CAL]","energy",4184000,[2,-2,1,0,0,0,0],"Cal","heat",false,null,null,1,false,false,0,"food calories; Cal; kcal","UCUM","Eng","Clinical","","kcal_th","KCAL_TH","1",1,false],[false,"British thermal unit at 39°F","[Btu_39]","[BTU_39]","energy",1059670,[2,-2,1,0,0,0,0],"Btu<sub>39°F</sub>","heat",false,null,null,1,false,false,0,"BTU 39F; BTU 39 F; B.T.U. 39 F; B.Th.U. 39 F; BThU 39 F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05967 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05967",1.05967,false],[false,"British thermal unit at 59°F","[Btu_59]","[BTU_59]","energy",1054800,[2,-2,1,0,0,0,0],"Btu<sub>59°F</sub>","heat",false,null,null,1,false,false,0,"BTU 59 F; BTU 59F; B.T.U. 59 F; B.Th.U. 59 F; BThU 59F; British thermal units","UCUM","Eng","Nonclinical","equal to 1.05480 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05480",1.0548,false],[false,"British thermal unit at 60°F","[Btu_60]","[BTU_60]","energy",1054680,[2,-2,1,0,0,0,0],"Btu<sub>60°F</sub>","heat",false,null,null,1,false,false,0,"BTU 60 F; BTU 60F; B.T.U. 60 F; B.Th.U. 60 F; BThU 60 F; British thermal units 60 F","UCUM","Eng","Nonclinical","equal to 1.05468 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05468",1.05468,false],[false,"mean British thermal unit","[Btu_m]","[BTU_M]","energy",1055870,[2,-2,1,0,0,0,0],"Btu<sub>m</sub>","heat",false,null,null,1,false,false,0,"BTU mean; B.T.U. mean; B.Th.U. mean; BThU mean; British thermal units mean; ","UCUM","Eng","Nonclinical","equal to 1.05587 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05587",1.05587,false],[false,"international table British thermal unit","[Btu_IT]","[BTU_IT]","energy",1055055.85262,[2,-2,1,0,0,0,0],"Btu<sub>IT</sub>","heat",false,null,null,1,false,false,0,"BTU IT; B.T.U. IT; B.Th.U. IT; BThU IT; British thermal units IT","UCUM","Eng","Nonclinical","equal to 1.055 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.05505585262",1.05505585262,false],[false,"thermochemical British thermal unit","[Btu_th]","[BTU_TH]","energy",1054350,[2,-2,1,0,0,0,0],"Btu<sub>th</sub>","heat",false,null,null,1,false,false,0,"BTU Th; B.T.U. Th; B.Th.U. Th; BThU Th; thermochemical British thermal units","UCUM","Eng","Nonclinical","equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","kJ","kJ","1.054350",1.05435,false],[false,"British thermal unit","[Btu]","[BTU]","energy",1054350,[2,-2,1,0,0,0,0],"btu","heat",false,null,null,1,false,false,0,"BTU; B.T.U. ; B.Th.U.; BThU; British thermal units","UCUM","Eng","Nonclinical","equal to the thermochemical British thermal unit equal to 1.054350 kJ; used as a measure of power in the electric power, steam generation, heating, and air conditioning industries","[Btu_th]","[BTU_TH]","1",1,false],[false,"horsepower - mechanical","[HP]","[HP]","power",745699.8715822703,[2,-3,1,0,0,0,0],null,"heat",false,null,null,1,false,false,0,"imperial horsepowers","UCUM","EngRat","Nonclinical","refers to mechanical horsepower, which is unit used to measure engine power primarily in the US. ","[ft_i].[lbf_av]/s","[FT_I].[LBF_AV]/S","550",550,false],[false,"tex","tex","TEX","linear mass density (of textile thread)",0.001,[-1,0,1,0,0,0,0],"tex","heat",true,null,null,1,false,false,0,"linear mass density; texes","UCUM","","Clinical","unit of linear mass density for fibers equal to gram per 1000 meters","g/km","G/KM","1",1,false],[false,"Denier (linear mass density)","[den]","[DEN]","linear mass density (of textile thread)",0.0001111111111111111,[-1,0,1,0,0,0,0],"den","heat",false,null,null,1,false,false,0,"den; deniers","UCUM","","Nonclinical","equal to the mass in grams per 9000 meters of the fiber (1 denier = 1 strand of silk)","g/9/km","G/9/KM","1",1,false],[false,"meter of water column","m[H2O]","M[H2O]","pressure",9806650,[-1,-2,1,0,0,0,0],"m HO<sub><r>2</r></sub>","clinical",true,null,null,1,false,false,0,"mH2O; m H2O; meters of water column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"meter of mercury column","m[Hg]","M[HG]","pressure",133322000,[-1,-2,1,0,0,0,0],"m Hg","clinical",true,null,null,1,false,false,0,"mHg; m Hg; meters of mercury column; metres; pressure","UCUM","Pres","Clinical","","kPa","KPAL","133.3220",133.322,false],[false,"inch of water column","[in_i\'H2O]","[IN_I\'H2O]","pressure",249088.91000000003,[-1,-2,1,0,0,0,0],"in HO<sub><r>2</r></sub>","clinical",false,null,null,1,false,false,0,"inches WC; inAq; in H2O; inch of water gauge; iwg; pressure","UCUM","Pres","Clinical","unit of pressure, especially in respiratory and ventilation care","m[H2O].[in_i]/m","M[H2O].[IN_I]/M","1",1,false],[false,"inch of mercury column","[in_i\'Hg]","[IN_I\'HG]","pressure",3386378.8000000003,[-1,-2,1,0,0,0,0],"in Hg","clinical",false,null,null,1,false,false,0,"inHg; in Hg; pressure; inches","UCUM","Pres","Clinical","unit of pressure used in US to measure barometric pressure and occasionally blood pressure (see mm[Hg] for unit used internationally)","m[Hg].[in_i]/m","M[HG].[IN_I]/M","1",1,false],[false,"peripheral vascular resistance unit","[PRU]","[PRU]","fluid resistance",133322000000,[-4,-1,1,0,0,0,0],"P.R.U.","clinical",false,null,null,1,false,false,0,"peripheral vascular resistance units; peripheral resistance unit; peripheral resistance units; PRU","UCUM","FldResist","Clinical","used to assess blood flow in the capillaries; equal to 1 mmH.min/mL = 133.3 Pa·min/mL","mm[Hg].s/ml","MM[HG].S/ML","1",1,false],[false,"Wood unit","[wood\'U]","[WOOD\'U]","fluid resistance",7999320000,[-4,-1,1,0,0,0,0],"Wood U.","clinical",false,null,null,1,false,false,0,"hybrid reference units; HRU; mmHg.min/L; vascular resistance","UCUM","Pres","Clinical","simplified unit of measurement for for measuring pulmonary vascular resistance that uses pressure; equal to mmHg.min/L","mm[Hg].min/L","MM[HG].MIN/L","1",1,false],[false,"diopter (lens)","[diop]","[DIOP]","refraction of a lens",1,[1,0,0,0,0,0,0],"dpt","clinical",false,null,"inv",1,false,false,0,"diopters; diop; dioptre; dpt; refractive power","UCUM","InvLen","Clinical","unit of optical power of lens represented by inverse meters (m^-1)","m","/M","1",1,false],[false,"prism diopter (magnifying power)","[p\'diop]","[P\'DIOP]","refraction of a prism",1,[0,0,0,1,0,0,0],"PD","clinical",false,null,"tanTimes100",1,true,false,0,"diopters; dioptres; p diops; pdiop; dpt; pdptr; Δ; cm/m; centimeter per meter; centimetre; metre","UCUM","Angle","Clinical","unit for prism correction in eyeglass prescriptions","rad",null,null,1,false],[false,"percent of slope","%[slope]","%[SLOPE]","slope",0.017453292519943295,[0,0,0,1,0,0,0],"%","clinical",false,null,"100tan",1,true,false,0,"% slope; %slope; percents slopes","UCUM","VelFr; ElpotRatFr; VelRtoFr; AccelFr","Clinical","","deg",null,null,1,false],[false,"mesh","[mesh_i]","[MESH_I]","lineic number",0.025400000000000002,[1,0,0,0,0,0,0],null,"clinical",false,null,"inv",1,false,false,0,"meshes","UCUM","NLen (lineic number)","Clinical","traditional unit of length defined as the number of strands or particles per inch","[in_i]","/[IN_I]","1",1,false],[false,"French (catheter gauge) ","[Ch]","[CH]","gauge of catheters",0.0003333333333333333,[1,0,0,0,0,0,0],"Ch","clinical",false,null,null,1,false,false,0,"Charrières, French scales; French gauges; Fr, Fg, Ga, FR, Ch","UCUM","Len; Circ; Diam","Clinical","","mm/3","MM/3","1",1,false],[false,"drop - metric (1/20 mL)","[drp]","[DRP]","volume",5e-8,[3,0,0,0,0,0,0],"drp","clinical",false,null,null,1,false,false,0,"drop dosing units; metric drops; gtt","UCUM","Vol","Clinical","standard unit used in the US and internationally for clinical medicine but note that although [drp] is defined as 1/20 milliliter, in practice, drop sizes will vary due to external factors","ml/20","ML/20","1",1,false],[false,"Hounsfield unit","[hnsf\'U]","[HNSF\'U]","x-ray attenuation",1,[0,0,0,0,0,0,0],"HF","clinical",false,null,null,1,false,false,0,"HU; units","UCUM","","Clinical","used to measure X-ray attenuation, especially in CT scans.","1","1","1",1,false],[false,"Metabolic Equivalent of Task ","[MET]","[MET]","metabolic cost of physical activity",5.833333333333334e-11,[3,-1,-1,0,0,0,0],"MET","clinical",false,null,null,1,false,false,0,"metabolic equivalents","UCUM","RelEngRat","Clinical","unit used to measure rate of energy expenditure per power in treadmill and other functional tests","mL/min/kg","ML/MIN/KG","3.5",3.5,false],[false,"homeopathic potency of decimal series (retired)","[hp\'_X]","[HP\'_X]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,"hpX",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of centesimal series (retired)","[hp\'_C]","[HP\'_C]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,"hpC",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of millesimal series (retired)","[hp\'_M]","[HP\'_M]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,"hpM",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of quintamillesimal series (retired)","[hp\'_Q]","[HP\'_Q]","homeopathic potency (retired)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,"hpQ",1,true,false,0,null,"UCUM",null,null,null,"1",null,null,1,false],[false,"homeopathic potency of decimal hahnemannian series","[hp_X]","[HP_X]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal hahnemannian series","[hp_C]","[HP_C]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal hahnemannian series","[hp_M]","[HP_M]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal hahnemannian series","[hp_Q]","[HP_Q]","homeopathic potency (Hahnemann)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of decimal korsakovian series","[kp_X]","[KP_X]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"X","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of centesimal korsakovian series","[kp_C]","[KP_C]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"C","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of millesimal korsakovian series","[kp_M]","[KP_M]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"M","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"homeopathic potency of quintamillesimal korsakovian series","[kp_Q]","[KP_Q]","homeopathic potency (Korsakov)",1,[0,0,0,0,0,0,0],"Q","clinical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"equivalent","eq","EQ","amount of substance",6.0221367e+23,[0,0,0,0,0,0,0],"eq","chemical",true,null,null,1,false,false,1,"equivalents","UCUM","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"osmole","osm","OSM","amount of substance (dissolved particles)",6.0221367e+23,[0,0,0,0,0,0,0],"osm","chemical",true,null,null,1,false,false,1,"osmoles; osmols","UCUM","Osmol","Clinical","the number of moles of solute that contribute to the osmotic pressure of a solution","mol","MOL","1",1,false],[false,"pH","[pH]","[PH]","acidity",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"pH","chemical",false,null,"pH",1,true,false,0,"pH scale","UCUM","LogCnc","Clinical","Log concentration of H+","mol/l",null,null,1,false],[false,"gram percent","g%","G%","mass concentration",10000,[-3,0,1,0,0,0,0],"g%","chemical",true,null,null,1,false,false,0,"gram %; gram%; grams per deciliter; g/dL; gm per dL; gram percents","UCUM","MCnc","Clinical","equivalent to unit gram per deciliter (g/dL), a unit often used in medical tests to represent solution concentrations","g/dl","G/DL","1",1,false],[false,"Svedberg unit","[S]","[S]","sedimentation coefficient",1e-13,[0,1,0,0,0,0,0],"S","chemical",false,null,null,1,false,false,0,"Sv; 10^-13 seconds; 100 fs; 100 femtoseconds","UCUM","Time","Clinical","unit of time used in measuring particle\'s sedimentation rate, usually after centrifugation. ","s","10*-13.S","1",1e-13,false],[false,"high power field (microscope)","[HPF]","[HPF]","view area in microscope",1,[0,0,0,0,0,0,0],"HPF","chemical",false,null,null,1,false,false,0,"HPF","UCUM","Area","Clinical","area visible under the maximum magnification power of the objective in microscopy (usually 400x)\\n","1","1","1",1,false],[false,"low power field (microscope)","[LPF]","[LPF]","view area in microscope",1,[0,0,0,0,0,0,0],"LPF","chemical",false,null,null,1,false,false,0,"LPF; fields","UCUM","Area","Clinical","area visible under the low magnification of the objective in microscopy (usually 100 x)\\n","1","1","100",100,false],[false,"katal","kat","KAT","catalytic activity",6.0221367e+23,[0,-1,0,0,0,0,0],"kat","chemical",true,null,null,1,false,false,1,"mol/secs; moles per second; mol*sec-1; mol*s-1; mol.s-1; katals; catalytic activity; enzymatic; enzyme units; activities","UCUM","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"enzyme unit","U","U","catalytic activity",10036894500000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"micromoles per minute; umol/min; umol per minute; umol min-1; enzymatic activity; enzyme activity","UCUM","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"international unit - arbitrary","[iU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"IU","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","1",1,false],[false,"international unit - arbitrary","[IU]","[IU]","arbitrary",1,[0,0,0,0,0,0,0],"i.U.","chemical",true,null,null,1,false,true,0,"international units; IE; F2","UCUM","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"arbitary unit","[arb\'U]","[ARB\'U]","arbitrary",1,[0,0,0,0,0,0,0],"arb. U","chemical",false,null,null,1,false,true,0,"arbitary units; arb units; arbU","UCUM","Arb","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"United States Pharmacopeia unit","[USP\'U]","[USP\'U]","arbitrary",1,[0,0,0,0,0,0,0],"U.S.P.","chemical",false,null,null,1,false,true,0,"USP U; USP\'U","UCUM","Arb","Clinical","a dose unit to express potency of drugs and vitamins defined by the United States Pharmacopoeia; usually 1 USP = 1 IU","1","1","1",1,false],[false,"GPL unit","[GPL\'U]","[GPL\'U]","biologic activity of anticardiolipin IgG",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"GPL Units; GPL U; IgG anticardiolipin units; IgG Phospholipid","UCUM","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"MPL unit","[MPL\'U]","[MPL\'U]","biologic activity of anticardiolipin IgM",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"MPL units; MPL U; MPL\'U; IgM anticardiolipin units; IgM Phospholipid Units ","UCUM","ACnc","Clinical","units for antiphospholipid test","1","1","1",1,false],[false,"APL unit","[APL\'U]","[APL\'U]","biologic activity of anticardiolipin IgA",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"APL units; APL U; IgA anticardiolipin; IgA Phospholipid; biologic activity of","UCUM","AMass; ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"Bethesda unit","[beth\'U]","[BETH\'U]","biologic activity of factor VIII inhibitor",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"BU","UCUM","ACnc","Clinical","measures of blood coagulation inhibitior for many blood factors","1","1","1",1,false],[false,"anti factor Xa unit","[anti\'Xa\'U]","[ANTI\'XA\'U]","biologic activity of factor Xa inhibitor (heparin)",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","ACnc","Clinical","[anti\'Xa\'U] unit is equivalent to and can be converted to IU/mL. ","1","1","1",1,false],[false,"Todd unit","[todd\'U]","[TODD\'U]","biologic activity antistreptolysin O",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","InvThres; RtoThres","Clinical","the unit for the results of the testing for antistreptolysin O (ASO)","1","1","1",1,false],[false,"Dye unit","[dye\'U]","[DYE\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"units","UCUM","CCnc","Obsolete","equivalent to the Somogyi unit, which is an enzyme unit for amylase but better to use U, the standard enzyme unit for measuring catalytic activity","1","1","1",1,false],[false,"Somogyi unit","[smgy\'U]","[SMGY\'U]","biologic activity of amylase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Somogyi units; smgy U","UCUM","CAct","Clinical","measures the enzymatic activity of amylase in blood serum - better to use base units mg/mL ","1","1","1",1,false],[false,"Bodansky unit","[bdsk\'U]","[BDSK\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"","UCUM","ACnc","Obsolete","Enzyme unit specific to alkaline phosphatase - better to use standard enzyme unit of U","1","1","1",1,false],[false,"King-Armstrong unit","[ka\'U]","[KA\'U]","biologic activity of phosphatase",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"King-Armstrong Units; King units","UCUM","AMass","Obsolete","enzyme units for acid phosphatase - better to use enzyme unit [U]","1","1","1",1,false],[false,"Kunkel unit","[knk\'U]","[KNK\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,null,"UCUM",null,null,null,"1","1","1",1,false],[false,"Mac Lagan unit","[mclg\'U]","[MCLG\'U]","arbitrary biologic activity",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"galactose index; galactose tolerance test; thymol turbidity test unit; mclg U; units; indexes","UCUM","ACnc","Obsolete","unit for liver tests - previously used in thymol turbidity tests for liver disease diagnoses, and now is sometimes referred to in the oral galactose tolerance test","1","1","1",1,false],[false,"tuberculin unit","[tb\'U]","[TB\'U]","biologic activity of tuberculin",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"TU; units","UCUM","Arb","Clinical","amount of tuberculin antigen -usually in reference to a TB skin test ","1","1","1",1,false],[false,"50% cell culture infectious dose","[CCID_50]","[CCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"CCID<sub>50</sub>","chemical",false,null,null,1,false,true,0,"CCID50; 50% cell culture infective doses","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% tissue culture infectious dose","[TCID_50]","[TCID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"TCID<sub>50</sub>","chemical",false,null,null,1,false,true,0,"TCID50; 50% tissue culture infective dose","UCUM","NumThres","Clinical","","1","1","1",1,false],[false,"50% embryo infectious dose","[EID_50]","[EID_50]","biologic activity (infectivity) of an infectious agent preparation",1,[0,0,0,0,0,0,0],"EID<sub>50</sub>","chemical",false,null,null,1,false,true,0,"EID50; 50% embryo infective doses; EID50 Egg Infective Dosage","UCUM","thresNum","Clinical","","1","1","1",1,false],[false,"plaque forming units","[PFU]","[PFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"PFU","chemical",false,null,null,1,false,true,0,"PFU","UCUM","ACnc","Clinical","tests usually report unit as number of PFU per unit volume","1","1","1",1,false],[false,"focus forming units (cells)","[FFU]","[FFU]","amount of an infectious agent",1,[0,0,0,0,0,0,0],"FFU","chemical",false,null,null,1,false,true,0,"FFU","UCUM","EntNum","Clinical","","1","1","1",1,false],[false,"colony forming units","[CFU]","[CFU]","amount of a proliferating organism",1,[0,0,0,0,0,0,0],"CFU","chemical",false,null,null,1,false,true,0,"CFU","UCUM","Num","Clinical","","1","1","1",1,false],[false,"index of reactivity (allergen)","[IR]","[IR]","amount of an allergen callibrated through in-vivo testing using the Stallergenes® method.",1,[0,0,0,0,0,0,0],"IR","chemical",false,null,null,1,false,true,0,"IR; indexes","UCUM","Acnc","Clinical","amount of an allergen callibrated through in-vivo testing using the Stallergenes method. Usually reported in tests as IR/mL","1","1","1",1,false],[false,"bioequivalent allergen unit","[BAU]","[BAU]","amount of an allergen callibrated through in-vivo testing based on the ID50EAL method of (intradermal dilution for 50mm sum of erythema diameters",1,[0,0,0,0,0,0,0],"BAU","chemical",false,null,null,1,false,true,0,"BAU; Bioequivalent Allergy Units; bioequivalent allergen units","UCUM","Arb","Clinical","","1","1","1",1,false],[false,"allergy unit","[AU]","[AU]","procedure defined amount of an allergen using some reference standard",1,[0,0,0,0,0,0,0],"AU","chemical",false,null,null,1,false,true,0,"allergy units; allergen units; AU","UCUM","Arb","Clinical","Most standard test allergy units are reported as [IU] or as %. ","1","1","1",1,false],[false,"allergen unit for Ambrosia artemisiifolia","[Amb\'a\'1\'U]","[AMB\'A\'1\'U]","procedure defined amount of the major allergen of ragweed.",1,[0,0,0,0,0,0,0],"Amb a 1 U","chemical",false,null,null,1,false,true,0,"Amb a 1 unit; Antigen E; AgE U; allergen units","UCUM","Arb","Clinical","Amb a 1 is the major allergen in short ragweed, and can be converted Bioequivalent allergen units (BAU) where 350 Amb a 1 U/mL = 100,000 BAU/mL","1","1","1",1,false],[false,"protein nitrogen unit (allergen testing)","[PNU]","[PNU]","procedure defined amount of a protein substance",1,[0,0,0,0,0,0,0],"PNU","chemical",false,null,null,1,false,true,0,"protein nitrogen units; PNU","UCUM","Mass","Clinical","defined as 0.01 ug of phosphotungstic acid-precipitable protein nitrogen. Being replaced by bioequivalent allergy units (BAU).","1","1","1",1,false],[false,"Limit of flocculation","[Lf]","[LF]","procedure defined amount of an antigen substance",1,[0,0,0,0,0,0,0],"Lf","chemical",false,null,null,1,false,true,0,"Lf doses","UCUM","Arb","Clinical","the antigen content forming 1:1 ratio against 1 unit of antitoxin","1","1","1",1,false],[false,"D-antigen unit (polio)","[D\'ag\'U]","[D\'AG\'U]","procedure defined amount of a poliomyelitis d-antigen substance",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"DAgU; units","UCUM","Acnc","Clinical","unit of potency of poliovirus vaccine used for poliomyelitis prevention reported as D antigen units/mL. The unit is poliovirus type-specific.","1","1","1",1,false],[false,"fibrinogen equivalent units","[FEU]","[FEU]","amount of fibrinogen broken down into the measured d-dimers",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"FEU","UCUM","MCnc","Clinical","Note both the FEU and DDU units are used to report D-dimer measurements. 1 DDU = 1/2 FFU","1","1","1",1,false],[false,"ELISA unit","[ELU]","[ELU]","arbitrary ELISA unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"Enzyme-Linked Immunosorbent Assay Units; ELU; EL. U","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"Ehrlich units (urobilinogen)","[EU]","[EU]","Ehrlich unit",1,[0,0,0,0,0,0,0],null,"chemical",false,null,null,1,false,true,0,"EU/dL; mg{urobilinogen}/dL","UCUM","ACnc","Clinical","","1","1","1",1,false],[false,"neper","Np","NEP","level",1,[0,0,0,0,0,0,0],"Np","levels",true,null,"ln",1,true,false,0,"nepers","UCUM","LogRto","Clinical","logarithmic unit for ratios of measurements of physical field and power quantities, such as gain and loss of electronic signals","1",null,null,1,false],[false,"bel","B","B","level",1,[0,0,0,0,0,0,0],"B","levels",true,null,"lg",1,true,false,0,"bels","UCUM","LogRto","Clinical","Logarithm of the ratio of power- or field-type quantities; usually expressed in decibels ","1",null,null,1,false],[false,"bel sound pressure","B[SPL]","B[SPL]","pressure level",0.02,[-1,-2,1,0,0,0,0],"B(SPL)","levels",true,null,"lgTimes2",1,true,false,0,"bel SPL; B SPL; sound pressure bels","UCUM","LogRto","Clinical","used to measure sound level in acoustics","Pa",null,null,0.00002,false],[false,"bel volt","B[V]","B[V]","electric potential level",1000,[2,-2,1,0,0,-1,0],"B(V)","levels",true,null,"lgTimes2",1,true,false,0,"bel V; B V; volts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","V",null,null,1,false],[false,"bel millivolt","B[mV]","B[MV]","electric potential level",1,[2,-2,1,0,0,-1,0],"B(mV)","levels",true,null,"lgTimes2",1,true,false,0,"bel mV; B mV; millivolt bels; 10^-3V bels; 10*-3V ","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","mV",null,null,1,false],[false,"bel microvolt","B[uV]","B[UV]","electric potential level",0.001,[2,-2,1,0,0,-1,0],"B(μV)","levels",true,null,"lgTimes2",1,true,false,0,"bel uV; B uV; microvolts bels; 10^-6V bel; 10*-6V bel","UCUM","LogRto","Clinical","used to express power gain in electrical circuits","uV",null,null,1,false],[false,"bel 10 nanovolt","B[10.nV]","B[10.NV]","electric potential level",0.000010000000000000003,[2,-2,1,0,0,-1,0],"B(10 nV)","levels",true,null,"lgTimes2",1,true,false,0,"bel 10 nV; B 10 nV; 10 nanovolts bels","UCUM","LogRtoElp","Clinical","used to express power gain in electrical circuits","nV",null,null,10,false],[false,"bel watt","B[W]","B[W]","power level",1000,[2,-3,1,0,0,0,0],"B(W)","levels",true,null,"lg",1,true,false,0,"bel W; b W; b Watt; Watts bels","UCUM","LogRto","Clinical","used to express power","W",null,null,1,false],[false,"bel kilowatt","B[kW]","B[KW]","power level",1000000,[2,-3,1,0,0,0,0],"B(kW)","levels",true,null,"lg",1,true,false,0,"bel kW; B kW; kilowatt bel; kW bel; kW B","UCUM","LogRto","Clinical","used to express power","kW",null,null,1,false],[false,"stere","st","STR","volume",1,[3,0,0,0,0,0,0],"st","misc",true,null,null,1,false,false,0,"stère; m3; cubic meter; m^3; meters cubed; metre","UCUM","Vol","Nonclinical","equal to one cubic meter, usually used for measuring firewoord","m3","M3","1",1,false],[false,"Ångström","Ao","AO","length",1.0000000000000002e-10,[1,0,0,0,0,0,0],"Å","misc",false,null,null,1,false,false,0,"Å; Angstroms; Ao; Ångströms","UCUM","Len","Clinical","equal to 10^-10 meters; used to express wave lengths and atom scaled differences ","nm","NM","0.1",0.1,false],[false,"barn","b","BRN","action area",9.999999999999999e-29,[2,0,0,0,0,0,0],"b","misc",false,null,null,1,false,false,0,"barns","UCUM","Area","Clinical","used in high-energy physics to express cross-sectional areas","fm2","FM2","100",100,false],[false,"technical atmosphere","att","ATT","pressure",98066499.99999999,[-1,-2,1,0,0,0,0],"at","misc",false,null,null,1,false,false,0,"at; tech atm; tech atmosphere; kgf/cm2; atms; atmospheres","UCUM","Pres","Obsolete","non-SI unit of pressure equal to one kilogram-force per square centimeter","kgf/cm2","KGF/CM2","1",1,false],[false,"mho","mho","MHO","electric conductance",0.001,[-2,1,-1,0,0,2,0],"mho","misc",true,null,null,1,false,false,0,"siemens; ohm reciprocals; Ω^−1; Ω-1 ","UCUM","","Obsolete","unit of electric conductance (the inverse of electrical resistance) equal to ohm^-1","S","S","1",1,false],[false,"pound per square inch","[psi]","[PSI]","pressure",6894757.293168359,[-1,-2,1,0,0,0,0],"psi","misc",false,null,null,1,false,false,0,"psi; lb/in2; lb per in2","UCUM","Pres","Clinical","","[lbf_av]/[in_i]2","[LBF_AV]/[IN_I]2","1",1,false],[false,"circle - plane angle","circ","CIRC","plane angle",6.283185307179586,[0,0,0,1,0,0,0],"circ","misc",false,null,null,1,false,false,0,"angles; circles","UCUM","Angle","Clinical","","[pi].rad","[PI].RAD","2",2,false],[false,"spere - solid angle","sph","SPH","solid angle",12.566370614359172,[0,0,0,2,0,0,0],"sph","misc",false,null,null,1,false,false,0,"speres","UCUM","Angle","Clinical","equal to the solid angle of an entire sphere = 4πsr (sr = steradian) ","[pi].sr","[PI].SR","4",4,false],[false,"metric carat","[car_m]","[CAR_M]","mass",0.2,[0,0,1,0,0,0,0],"ct<sub>m</sub>","misc",false,null,null,1,false,false,0,"carats; ct; car m","UCUM","Mass","Nonclinical","unit of mass for gemstones","g","G","2e-1",0.2,false],[false,"carat of gold alloys","[car_Au]","[CAR_AU]","mass fraction",0.041666666666666664,[0,0,0,0,0,0,0],"ct<sub><r>Au</r></sub>","misc",false,null,null,1,false,false,0,"karats; k; kt; car au; carats","UCUM","MFr","Nonclinical","unit of purity for gold alloys","/24","/24","1",1,false],[false,"Smoot","[smoot]","[SMOOT]","length",1.7018000000000002,[1,0,0,0,0,0,0],null,"misc",false,null,null,1,false,false,0,"","UCUM","Len","Nonclinical","prank unit of length from MIT","[in_i]","[IN_I]","67",67,false],[false,"meter per square seconds per square root of hertz","[m/s2/Hz^(1/2)]","[M/S2/HZ^(1/2)]","amplitude spectral density",1,[2,-3,0,0,0,0,0],null,"misc",false,null,"sqrt",1,true,false,0,"m/s2/(Hz^.5); m/s2/(Hz^(1/2)); m per s2 per Hz^1/2","UCUM","","Constant","measures amplitude spectral density, and is equal to the square root of power spectral density\\n ","m2/s4/Hz",null,null,1,false],[false,"bit - logarithmic","bit_s","BIT_S","amount of information",1,[0,0,0,0,0,0,0],"bit<sub>s</sub>","infotech",false,null,"ld",1,true,false,0,"bit-s; bit s; bit logarithmic","UCUM","LogA","Nonclinical","defined as the log base 2 of the number of distinct signals; cannot practically be used to express more than 1000 bits\\n\\nIn information theory, the definition of the amount of self-information and information entropy is often expressed with the binary logarithm (log base 2)","1",null,null,1,false],[false,"bit","bit","BIT","amount of information",1,[0,0,0,0,0,0,0],"bit","infotech",true,null,null,1,false,false,0,"bits","UCUM","","Nonclinical","dimensionless information unit of 1 used in computing and digital communications","1","1","1",1,false],[false,"byte","By","BY","amount of information",8,[0,0,0,0,0,0,0],"B","infotech",true,null,null,1,false,false,0,"bytes","UCUM","","Nonclinical","equal to 8 bits","bit","bit","8",8,false],[false,"baud","Bd","BD","signal transmission rate",1,[0,1,0,0,0,0,0],"Bd","infotech",true,null,"inv",1,false,false,0,"Bd; bauds","UCUM","Freq","Nonclinical","unit to express rate in symbols per second or pulses per second. ","s","/s","1",1,false],[false,"per twelve hour","/(12.h)","/HR","",0.000023148148148148147,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"per 12 hours; 12hrs; 12 hrs; /12hrs","LOINC","Rat","Clinical","",null,null,null,null,false],[false,"per arbitrary unit","/[arb\'U]","/[ARB\'U]","",1,[0,0,0,0,0,0,0],"/arb/ U",null,false,null,null,1,false,true,0,"/arbU","LOINC","InvA ","Clinical","",null,null,null,null,false],[false,"per high power field","/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"/HPF; per HPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per international unit","/[IU]","/[IU]","",1,[0,0,0,0,0,0,0],"/i/U.",null,false,null,null,1,false,true,0,"international units; /IU; per IU","LOINC","InvA","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)",null,null,null,null,false],[false,"per low power field","/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"/LPF; per LPF","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per 10 billion ","/10*10","/10*10","",1e-10,[0,0,0,0,0,0,0],"/10<sup>10<.sup>",null,false,null,null,1,false,false,0,"/10^10; per 10*10","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per trillion ","/10*12","/10*12","",1e-12,[0,0,0,0,0,0,0],"/10<sup>12<.sup>",null,false,null,null,1,false,false,0,"/10^12; per 10*12","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per thousand","/10*3","/10*3","",0.001,[0,0,0,0,0,0,0],"/10<sup>3<.sup>",null,false,null,null,1,false,false,0,"/10^3; per 10*3","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per million","/10*6","/10*6","",0.000001,[0,0,0,0,0,0,0],"/10<sup>6<.sup>",null,false,null,null,1,false,false,0,"/10^6; per 10*6;","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per billion","/10*9","/10*9","",1e-9,[0,0,0,0,0,0,0],"/10<sup>9<.sup>",null,false,null,null,1,false,false,0,"/10^9; per 10*9","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100","/100","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"per hundred; 10^2; 10*2","LOINC","NFr","Clinical","used for counting entities, e.g. blood cells; usually these kinds of terms have numerators such as moles or milligrams, and counting that amount per the number in the denominator",null,null,null,null,false],[false,"per 100 cells","/100{cells}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 cells; /100cells; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 neutrophils","/100{neutrophils}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 neutrophils; /100neutrophils; per hundred","LOINC","EntMass; EntNum; NFr","Clinical","",null,null,null,null,false],[false,"per 100 spermatozoa","/100{spermatozoa}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 spermatozoa; /100spermatozoa; per hundred","LOINC","NFr","Clinical","",null,null,null,null,false],[false,"per 100 white blood cells","/100{WBCs}","","",0.01,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"/100 WBCs; /100WBCs; per hundred","LOINC","Ratio; NFr","Clinical","",null,null,null,null,false],[false,"per year","/a","/ANN","",3.168808781402895e-8,[0,-1,0,0,0,0,0],"/a",null,false,null,null,1,false,false,0,"/Years; /yrs; yearly","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per centimeter of water","/cm[H2O]","/CM[H2O]","",0.000010197162129779282,[1,2,-1,0,0,0,0],"/cm HO<sub><r>2<.r></sub>",null,false,null,null,1,false,false,0,"/cmH2O; /cm H2O; centimeters; centimetres","LOINC","InvPress","Clinical","",null,null,null,null,false],[false,"per day","/d","/D","",0.000011574074074074073,[0,-1,0,0,0,0,0],"/d",null,false,null,null,1,false,false,0,"/dy; per day","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per deciliter","/dL","/DL","",10000,[-3,0,0,0,0,0,0],"/dL",null,false,null,null,1,false,false,0,"per dL; /deciliter; decilitre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per gram","/g","/G","",1,[0,0,-1,0,0,0,0],"/g",null,false,null,null,1,false,false,0,"/gm; /gram; per g","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per hour","/h","/HR","",0.0002777777777777778,[0,-1,0,0,0,0,0],"/h",null,false,null,null,1,false,false,0,"/hr; /hour; per hr","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per kilogram","/kg","/KG","",0.001,[0,0,-1,0,0,0,0],"/kg",null,false,null,null,1,false,false,0,"per kg; per kilogram","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per liter","/L","/L","",1000,[-3,0,0,0,0,0,0],"/L",null,false,null,null,1,false,false,0,"/liter; litre","LOINC","NCnc","Clinical","",null,null,null,null,false],[false,"per square meter","/m2","/M2","",1,[-2,0,0,0,0,0,0],"/m<sup>2<.sup>",null,false,null,null,1,false,false,0,"/m^2; /m*2; /sq. m; per square meter; meter squared; metre","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"per cubic meter","/m3","/M3","",1,[-3,0,0,0,0,0,0],"/m<sup>3<.sup>",null,false,null,null,1,false,false,0,"/m^3; /m*3; /cu. m; per cubic meter; meter cubed; per m3; metre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per milligram","/mg","/MG","",1000,[0,0,-1,0,0,0,0],"/mg",null,false,null,null,1,false,false,0,"/milligram; per mg","LOINC","NCnt","Clinical","",null,null,null,null,false],[false,"per minute","/min","/MIN","",0.016666666666666666,[0,-1,0,0,0,0,0],"/min",null,false,null,null,1,false,false,0,"/minute; per mins; breaths beats per minute","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per milliliter","/mL","/ML","",1000000,[-3,0,0,0,0,0,0],"/mL",null,false,null,null,1,false,false,0,"/milliliter; per mL; millilitre","LOINC","NCncn","Clinical","",null,null,null,null,false],[false,"per millimeter","/mm","/MM","",1000,[-1,0,0,0,0,0,0],"/mm",null,false,null,null,1,false,false,0,"/millimeter; per mm; millimetre","LOINC","InvLen","Clinical","",null,null,null,null,false],[false,"per month","/mo","/MO","",3.802570537683474e-7,[0,-1,0,0,0,0,0],"/mo",null,false,null,null,1,false,false,0,"/month; per mo; monthly; month","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per second","/s","/S","",1,[0,-1,0,0,0,0,0],"/s",null,false,null,null,1,false,false,0,"/second; /sec; per sec; frequency; Hertz; Herz; Hz; becquerels; Bq; s-1; s^-1","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"per enzyme unit","/U","/U","",9.963241120049633e-17,[0,1,0,0,0,0,0],"/U",null,false,null,null,1,false,false,-1,"/enzyme units; per U","LOINC","InvC; NCat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"per microliter","/uL","/UL","",999999999.9999999,[-3,0,0,0,0,0,0],"/μL",null,false,null,null,1,false,false,0,"/microliter; microlitre; /mcl; per uL","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"per week","/wk","/WK","",0.0000016534391534391535,[0,-1,0,0,0,0,0],"/wk",null,false,null,null,1,false,false,0,"/week; per wk; weekly, weeks","LOINC","NRat","Clinical","",null,null,null,null,false],[false,"APL unit per milliliter","[APL\'U]/mL","[APL\'U]/ML","biologic activity of anticardiolipin IgA",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"APL/mL; APL\'U/mL; APL U/mL; APL/milliliter; IgA anticardiolipin units per milliliter; IgA Phospholipid Units; millilitre; biologic activity of","LOINC","ACnc","Clinical","Units for an anti phospholipid syndrome test","1","1","1",1,false],[false,"arbitrary unit per milliliter","[arb\'U]/mL","[ARB\'U]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(arb. U)/mL","chemical",false,null,null,1,false,true,0,"arb\'U/mL; arbU/mL; arb U/mL; arbitrary units per milliliter; millilitre","LOINC","ACnc","Clinical","relative unit of measurement to show the ratio of test measurement to reference measurement","1","1","1",1,false],[false,"colony forming units per liter","[CFU]/L","[CFU]/L","amount of a proliferating organism",1000,[-3,0,0,0,0,0,0],"CFU/L","chemical",false,null,null,1,false,true,0,"CFU per Liter; CFU/L","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"colony forming units per milliliter","[CFU]/mL","[CFU]/ML","amount of a proliferating organism",1000000,[-3,0,0,0,0,0,0],"CFU/mL","chemical",false,null,null,1,false,true,0,"CFU per mL; CFU/mL","LOINC","NCnc","Clinical","","1","1","1",1,false],[false,"foot per foot - US","[ft_us]/[ft_us]","[FT_US]/[FT_US]","length",1,[0,0,0,0,0,0,0],"(ft<sub>us</sub>)/(ft<sub>us</sub>)","us-lengths",false,null,null,1,false,false,0,"ft/ft; ft per ft; feet per feet; visual acuity","","LenRto","Clinical","distance ratio to measure 20:20 vision","m/3937","M/3937","1200",1200,false],[false,"GPL unit per milliliter","[GPL\'U]/mL","[GPL\'U]/ML","biologic activity of anticardiolipin IgG",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"GPL U/mL; GPL\'U/mL; GPL/mL; GPL U per mL; IgG Phospholipid Units per milliliters; IgG anticardiolipin units; millilitres ","LOINC","ACnc; AMass","Clinical","Units for an antiphospholipid test","1","1","1",1,false],[false,"international unit per 2 hour","[IU]/(2.h)","[IU]/HR","arbitrary",0.0001388888888888889,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/2hrs; IU/2 hours; IU per 2 hrs; international units per 2 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per 24 hour","[IU]/(24.h)","[IU]/HR","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/24hr; IU/24 hours; IU per 24 hrs; international units per 24 hours","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per day","[IU]/d","[IU]/D","arbitrary",0.000011574074074074073,[0,-1,0,0,0,0,0],"(i.U.)/d","chemical",true,null,null,1,false,true,0,"IU/dy; IU/days; IU per dys; international units per day","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per deciliter","[IU]/dL","[IU]/DL","arbitrary",10000,[-3,0,0,0,0,0,0],"(i.U.)/dL","chemical",true,null,null,1,false,true,0,"IU/dL; IU per dL; international units per deciliters; decilitres","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per gram","[IU]/g","[IU]/G","arbitrary",1,[0,0,-1,0,0,0,0],"(i.U.)/g","chemical",true,null,null,1,false,true,0,"IU/gm; IU/gram; IU per gm; IU per g; international units per gram","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per hour","[IU]/h","[IU]/HR","arbitrary",0.0002777777777777778,[0,-1,0,0,0,0,0],"(i.U.)/h","chemical",true,null,null,1,false,true,0,"IU/hrs; IU per hours; international units per hour","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram","[IU]/kg","[IU]/KG","arbitrary",0.001,[0,0,-1,0,0,0,0],"(i.U.)/kg","chemical",true,null,null,1,false,true,0,"IU/kg; IU/kilogram; IU per kg; units","LOINC","ACnt","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per kilogram per day","[IU]/kg/d","[IU]/KG/D","arbitrary",1.1574074074074074e-8,[0,-1,-1,0,0,0,0],"(i.U.)/kg/d","chemical",true,null,null,1,false,true,0,"IU/kg/dy; IU/kg/day; IU/kilogram/day; IU per kg per day; units","LOINC","ACntRat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per liter","[IU]/L","[IU]/L","arbitrary",1000,[-3,0,0,0,0,0,0],"(i.U.)/L","chemical",true,null,null,1,false,true,0,"IU/L; IU/liter; IU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per minute","[IU]/min","[IU]/MIN","arbitrary",0.016666666666666666,[0,-1,0,0,0,0,0],"(i.U.)/min","chemical",true,null,null,1,false,true,0,"IU/min; IU/minute; IU per minute; international units","LOINC","ARat","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"international unit per milliliter","[IU]/mL","[IU]/ML","arbitrary",1000000,[-3,0,0,0,0,0,0],"(i.U.)/mL","chemical",true,null,null,1,false,true,0,"IU/mL; IU per mL; international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"MPL unit per milliliter","[MPL\'U]/mL","[MPL\'U]/ML","biologic activity of anticardiolipin IgM",1000000,[-3,0,0,0,0,0,0],"/mL","chemical",false,null,null,1,false,true,0,"MPL/mL; MPL U/mL; MPL\'U/mL; IgM anticardiolipin units; IgM Phospholipid Units; millilitre ","LOINC","ACnc","Clinical","units for antiphospholipid test\\n","1","1","1",1,false],[false,"number per high power field","{#}/[HPF]","/[HPF]","",1,[0,0,0,0,0,0,0],"/HPF",null,false,null,null,1,false,false,0,"#/HPF; # per HPF; number/HPF; numbers per high power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"number per low power field","{#}/[LPF]","/[LPF]","",1,[0,0,0,0,0,0,0],"/LPF",null,false,null,null,1,false,false,0,"#/LPF; # per LPF; number/LPF; numbers per low power field","LOINC","Naric","Clinical","",null,null,null,null,false],[false,"IgA antiphosphatidylserine unit ","{APS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"APS Unit; Phosphatidylserine Antibody IgA Units","LOINC","ACnc","Clinical","unit for antiphospholipid test",null,null,null,null,false],[false,"EIA index","{EIA_index}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"enzyme immunoassay index","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"kaolin clotting time","{KCT\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"KCT","LOINC","Time","Clinical","sensitive test to detect lupus anticoagulants; measured in seconds",null,null,null,null,false],[false,"IgM antiphosphatidylserine unit","{MPS\'U}","","",1,[0,0,0,0,0,0,0],null,null,false,null,null,1,false,false,0,"Phosphatidylserine Antibody IgM Measurement ","LOINC","ACnc","Clinical","",null,null,null,null,false],[false,"trillion per liter","10*12/L","(10*12)/L","number",1000000000000000,[-3,0,0,0,0,0,0],"(10<sup>12</sup>)/L","dimless",false,null,null,1,false,false,0,"10^12/L; 10*12 per Liter; trillion per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^3 (used for cell count)","10*3","10*3","number",1000,[0,0,0,0,0,0,0],"10<sup>3</sup>","dimless",false,null,null,1,false,false,0,"10^3; thousand","LOINC","Num","Clinical","usually used for counting entities (e.g. blood cells) per volume","1","1","10",10,false],[false,"thousand per liter","10*3/L","(10*3)/L","number",1000000,[-3,0,0,0,0,0,0],"(10<sup>3</sup>)/L","dimless",false,null,null,1,false,false,0,"10^3/L; 10*3 per liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per milliliter","10*3/mL","(10*3)/ML","number",1000000000,[-3,0,0,0,0,0,0],"(10<sup>3</sup>)/mL","dimless",false,null,null,1,false,false,0,"10^3/mL; 10*3 per mL; thousand per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"thousand per microliter","10*3/uL","(10*3)/UL","number",999999999999.9999,[-3,0,0,0,0,0,0],"(10<sup>3</sup>)/μL","dimless",false,null,null,1,false,false,0,"10^3/uL; 10*3 per uL; thousand per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 thousand per microliter","10*4/uL","(10*4)/UL","number",10000000000000,[-3,0,0,0,0,0,0],"(10<sup>4</sup>)/μL","dimless",false,null,null,1,false,false,0,"10^4/uL; 10*4 per uL; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^5 ","10*5","10*5","number",100000,[0,0,0,0,0,0,0],"10<sup>5</sup>","dimless",false,null,null,1,false,false,0,"one hundred thousand","LOINC","Num","Clinical","","1","1","10",10,false],[false,"10^6","10*6","10*6","number",1000000,[0,0,0,0,0,0,0],"10<sup>6</sup>","dimless",false,null,null,1,false,false,0,"","LOINC","Num","Clinical","","1","1","10",10,false],[false,"million colony forming unit per liter","10*6.[CFU]/L","(10*6).[CFU]/L","number",1000000000,[-3,0,0,0,0,0,0],"(10<sup>6</sup>).CFU/L","dimless",false,null,null,1,false,true,0,"10*6 CFU/L; 10^6 CFU/L; 10^6CFU; 10^6 CFU per liter; million colony forming units; litre","LOINC","ACnc","Clinical","","1","1","10",10,false],[false,"million international unit","10*6.[IU]","(10*6).[IU]","number",1000000,[0,0,0,0,0,0,0],"(10<sup>6</sup>).(i.U.)","dimless",false,null,null,1,false,true,0,"10*6 IU; 10^6 IU; international units","LOINC","arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","1","1","10",10,false],[false,"million per 24 hour","10*6/(24.h)","(10*6)/HR","number",11.574074074074074,[0,-1,0,0,0,0,0],"(10<sup>6</sup>)/h","dimless",false,null,null,1,false,false,0,"10*6/24hrs; 10^6/24 hrs; 10*6 per 24 hrs; 10^6 per 24 hours","LOINC","NRat","Clinical","","1","1","10",10,false],[false,"million per kilogram","10*6/kg","(10*6)/KG","number",1000,[0,0,-1,0,0,0,0],"(10<sup>6</sup>)/kg","dimless",false,null,null,1,false,false,0,"10^6/kg; 10*6 per kg; 10*6 per kilogram; millions","LOINC","NCnt","Clinical","","1","1","10",10,false],[false,"million per liter","10*6/L","(10*6)/L","number",1000000000,[-3,0,0,0,0,0,0],"(10<sup>6</sup>)/L","dimless",false,null,null,1,false,false,0,"10^6/L; 10*6 per Liter; 10^6 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per milliliter","10*6/mL","(10*6)/ML","number",1000000000000,[-3,0,0,0,0,0,0],"(10<sup>6</sup>)/mL","dimless",false,null,null,1,false,false,0,"10^6/mL; 10*6 per mL; 10*6 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"million per microliter","10*6/uL","(10*6)/UL","number",1000000000000000,[-3,0,0,0,0,0,0],"(10<sup>6</sup>)/μL","dimless",false,null,null,1,false,false,0,"10^6/uL; 10^6 per uL; 10^6/mcl; 10^6 per mcl; 10^6 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10^8","10*8","10*8","number",100000000,[0,0,0,0,0,0,0],"10<sup>8</sup>","dimless",false,null,null,1,false,false,0,"100 million; one hundred million; 10^8","LOINC","Num","Clinical","","1","1","10",10,false],[false,"billion per liter","10*9/L","(10*9)/L","number",1000000000000,[-3,0,0,0,0,0,0],"(10<sup>9</sup>)/L","dimless",false,null,null,1,false,false,0,"10^9/L; 10*9 per Liter; litre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per milliliter","10*9/mL","(10*9)/ML","number",1000000000000000,[-3,0,0,0,0,0,0],"(10<sup>9</sup>)/mL","dimless",false,null,null,1,false,false,0,"10^9/mL; 10*9 per mL; 10^9 per mL; 10*9 per milliliter; millilitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"billion per microliter","10*9/uL","(10*9)/UL","number",1000000000000000000,[-3,0,0,0,0,0,0],"(10<sup>9</sup>)/μL","dimless",false,null,null,1,false,false,0,"10^9/uL; 10^9 per uL; 10^9/mcl; 10^9 per mcl; 10*9 per uL; 10*9 per mcl; 10*9/mcl; 10^9 per microliter; microlitre","LOINC","NCncn","Clinical","","1","1","10",10,false],[false,"10 liter per minute per square meter","10.L/(min.m2)","L/(MIN.M2)","",0.00016666666666666666,[1,-1,0,0,0,0,0],"L/(min.(m<sup>2</sup>))",null,false,null,null,1,false,false,0,"10 liters per minutes per square meter; 10 L per min per m2; m^2; 10 L/(min*m2); 10L/(min*m^2); litres; sq. meter; metre; meters squared","LOINC","ArVRat","Clinical","",null,null,null,null,false],[false,"10 liter per minute","10.L/min","L/MIN","",0.00016666666666666666,[3,-1,0,0,0,0,0],"L/min",null,false,null,null,1,false,false,0,"10 liters per minute; 10 L per min; 10L; 10 L/min; litre","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"10 micronewton second per centimeter to the fifth power per square meter","10.uN.s/(cm5.m2)","(UN.S)/(CM5.M2)","",100000000,[-6,-1,1,0,0,0,0],"(μN.s)/(cm<sup>5</sup>).(m<sup>2</sup>)",null,false,null,null,1,false,false,0,"dyne seconds per centimeter5 and square meter; dyn.s/(cm5.m2); dyn.s/cm5/m2; cm^5; m^2","LOINC","","Clinical","unit to measure systemic vascular resistance per body surface area",null,null,null,null,false],[false,"24 hour","24.h","HR","",86400,[0,1,0,0,0,0,0],"h",null,false,null,null,1,false,false,0,"24hrs; 24 hrs; 24 hours; days; dy","LOINC","Time","Clinical","",null,null,null,null,false],[false,"ampere per meter","A/m","A/M","electric current",1,[-1,-1,0,0,0,1,0],"A/m","si",true,null,null,1,false,false,0,"A/m; amp/meter; magnetic field strength; H; B; amperes per meter; metre","LOINC","","Clinical","unit of magnetic field strength","C/s","C/S","1",1,false],[true,"centigram","cg","CG","mass",0.01,[0,0,1,0,0,0,0],"cg",null,false,"M",null,1,false,false,0,"centigrams; cg; cgm","LOINC","Mass","Clinical","",null,null,null,null,false],[false,"centiliter","cL","CL","volume",0.00001,[3,0,0,0,0,0,0],"cL","iso1000",true,null,null,1,false,false,0,"centiliters; centilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"centimeter","cm","CM","length",0.01,[1,0,0,0,0,0,0],"cm",null,false,"L",null,1,false,false,0,"centimeters; centimetres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"centimeter of water","cm[H2O]","CM[H2O]","pressure",98066.5,[-1,-2,1,0,0,0,0],"cm HO<sub><r>2</r></sub>","clinical",true,null,null,1,false,false,0,"cm H2O; cmH2O; centimetres; pressure","LOINC","Pres","Clinical","unit of pressure mostly applies to blood pressure","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per liter per second","cm[H2O]/L/s","(CM[H2O]/L)/S","pressure",98066500,[-4,-3,1,0,0,0,0],"(cm HO<sub><r>2</r></sub>)/L/s","clinical",true,null,null,1,false,false,0,"cm[H2O]/(L/s); cm[H2O].s/L; cm H2O/L/sec; cmH2O/L/sec; cmH2O/Liter; cmH2O per L per secs; centimeters of water per liters per second; centimetres; litres; cm[H2O]/(L/s)","LOINC","PresRat","Clinical","unit used to measure mean pulmonary resistance","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of water per second per meter","cm[H2O]/s/m","(CM[H2O]/S)/M","pressure",98066.5,[-2,-3,1,0,0,0,0],"(cm HO<sub><r>2</r></sub>)/s/m","clinical",true,null,null,1,false,false,0,"cm[H2O]/(s.m); cm H2O/s/m; cmH2O; cmH2O/sec/m; cmH2O per secs per meters; centimeters of water per seconds per meter; centimetres; metre","LOINC","PresRat","Clinical","unit used to measure pulmonary pressure time product","kPa","KPAL","980665e-5",9.80665,false],[false,"centimeter of mercury","cm[Hg]","CM[HG]","pressure",1333220,[-1,-2,1,0,0,0,0],"cm Hg","clinical",true,null,null,1,false,false,0,"centimeters of mercury; centimetres; cmHg; cm Hg","LOINC","Pres","Clinical","unit of pressure where 1 cmHg = 10 torr","kPa","KPAL","133.3220",133.322,false],[true,"square centimeter","cm2","CM2","length",0.0001,[2,0,0,0,0,0,0],"cm<sup>2</sup>",null,false,"L",null,1,false,false,0,"cm^2; sq cm; centimeters squared; square centimeters; centimetre; area","LOINC","Area","Clinical","",null,null,null,null,false],[true,"square centimeter per second","cm2/s","CM2/S","length",0.0001,[2,-1,0,0,0,0,0],"(cm<sup>2</sup>)/s",null,false,"L",null,1,false,false,0,"cm^2/sec; square centimeters per second; sq cm per sec; cm2; centimeters squared; centimetres","LOINC","AreaRat","Clinical","",null,null,null,null,false],[false,"centipoise","cP","CP","dynamic viscosity",1,[-1,-1,1,0,0,0,0],"cP","cgs",true,null,null,1,false,false,0,"cps; centiposes","LOINC","Visc","Clinical","unit of dynamic viscosity in the CGS system with base units: 10^−3 Pa.s = 1 mPa·.s (1 millipascal second)","dyn.s/cm2","DYN.S/CM2","1",1,false],[false,"centistoke","cSt","CST","kinematic viscosity",0.0000010000000000000002,[2,-1,0,0,0,0,0],"cSt","cgs",true,null,null,1,false,false,0,"centistokes","LOINC","Visc","Clinical","unit for kinematic viscosity with base units of mm^2/s (square millimeter per second)","cm2/s","CM2/S","1",1,false],[false,"dekaliter per minute","daL/min","DAL/MIN","volume",0.00016666666666666666,[3,-1,0,0,0,0,0],"daL/min","iso1000",true,null,null,1,false,false,0,"dekalitres; dekaliters per minute; per min","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"dekaliter per minute per square meter","daL/min/m2","(DAL/MIN)/M2","volume",0.00016666666666666666,[1,-1,0,0,0,0,0],"(daL/min)/(m<sup>2</sup>)","iso1000",true,null,null,1,false,false,0,"daL/min/m^2; daL/minute/m2; sq. meter; dekaliters per minutes per square meter; meter squared; dekalitres; metre","LOINC","ArVRat","Clinical","The area usually is the body surface area used to normalize cardiovascular measures for patient\'s size","l",null,"1",1,false],[false,"decibel","dB","DB","level",1,[0,0,0,0,0,0,0],"dB","levels",true,null,"lg",0.1,true,false,0,"decibels","LOINC","LogRto","Clinical","unit most commonly used in acoustics as unit of sound pressure level. (also see B[SPL] or bel sound pressure level). ","1",null,null,1,false],[false,"degree per second","deg/s","DEG/S","plane angle",0.017453292519943295,[0,-1,0,1,0,0,0],"°/s","iso1000",false,null,null,1,false,false,0,"deg/sec; deg per sec; °/sec; twist rate; angular speed; rotational speed","LOINC","ARat","Clinical","unit of angular (rotational) speed used to express turning rate","[pi].rad/360","[PI].RAD/360","2",2,false],[true,"decigram","dg","DG","mass",0.1,[0,0,1,0,0,0,0],"dg",null,false,"M",null,1,false,false,0,"decigrams; dgm; 0.1 grams; 1/10 gm","LOINC","Mass","Clinical","equal to 1/10 gram",null,null,null,null,false],[false,"deciliter","dL","DL","volume",0.0001,[3,0,0,0,0,0,0],"dL","iso1000",true,null,null,1,false,false,0,"deciliters; decilitres; 0.1 liters; 1/10 L","LOINC","Vol","Clinical","equal to 1/10 liter","l",null,"1",1,false],[true,"decimeter","dm","DM","length",0.1,[1,0,0,0,0,0,0],"dm",null,false,"L",null,1,false,false,0,"decimeters; decimetres; 0.1 meters; 1/10 m; 10 cm; centimeters","LOINC","Len","Clinical","equal to 1/10 meter or 10 centimeters",null,null,null,null,false],[true,"square decimeter per square second","dm2/s2","DM2/S2","length",0.010000000000000002,[2,-2,0,0,0,0,0],"(dm<sup>2</sup>)/(s<sup>2</sup>)",null,false,"L",null,1,false,false,0,"dm2 per s2; dm^2/s^2; decimeters squared per second squared; sq dm; sq sec","LOINC","EngMass (massic energy)","Clinical","units for energy per unit mass or Joules per kilogram (J/kg = kg.m2/s2/kg = m2/s2) ",null,null,null,null,false],[false,"dyne second per centimeter per square meter","dyn.s/(cm.m2)","(DYN.S)/(CM.M2)","force",1,[-2,-1,1,0,0,0,0],"(dyn.s)/(cm.(m<sup>2</sup>))","cgs",true,null,null,1,false,false,0,"(dyn*s)/(cm*m2); (dyn*s)/(cm*m^2); dyn s per cm per m2; m^2; dyne seconds per centimeters per square meter; centimetres; sq. meter; squared","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"dyne second per centimeter","dyn.s/cm","(DYN.S)/CM","force",1,[0,-1,1,0,0,0,0],"(dyn.s)/cm","cgs",true,null,null,1,false,false,0,"(dyn*s)/cm; dyn sec per cm; seconds; centimetre; dyne seconds","LOINC","","Clinical","","g.cm/s2","G.CM/S2","1",1,false],[false,"equivalent per liter","eq/L","EQ/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"eq/L","chemical",true,null,null,1,false,false,1,"eq/liter; eq/litre; eqs; equivalents per liter; litre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per milliliter","eq/mL","EQ/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"eq/mL","chemical",true,null,null,1,false,false,1,"equivalent/milliliter; equivalents per milliliter; eq per mL; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per millimole","eq/mmol","EQ/MMOL","amount of substance",1000,[0,0,0,0,0,0,0],"eq/mmol","chemical",true,null,null,1,false,false,0,"equivalent/millimole; equivalents per millimole; eq per mmol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"equivalent per micromole","eq/umol","EQ/UMOL","amount of substance",1000000,[0,0,0,0,0,0,0],"eq/μmol","chemical",true,null,null,1,false,false,0,"equivalent/micromole; equivalents per micromole; eq per umol","LOINC","SRto","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"femtogram","fg","FG","mass",1e-15,[0,0,1,0,0,0,0],"fg",null,false,"M",null,1,false,false,0,"fg; fgm; femtograms; weight","LOINC","Mass","Clinical","equal to 10^-15 grams",null,null,null,null,false],[false,"femtoliter","fL","FL","volume",1e-18,[3,0,0,0,0,0,0],"fL","iso1000",true,null,null,1,false,false,0,"femtolitres; femtoliters","LOINC","Vol; EntVol","Clinical","equal to 10^-15 liters","l",null,"1",1,false],[true,"femtometer","fm","FM","length",1e-15,[1,0,0,0,0,0,0],"fm",null,false,"L",null,1,false,false,0,"femtometres; femtometers","LOINC","Len","Clinical","equal to 10^-15 meters",null,null,null,null,false],[false,"femtomole","fmol","FMOL","amount of substance",602213670,[0,0,0,0,0,0,0],"fmol","si",true,null,null,1,false,false,1,"femtomoles","LOINC","EntSub","Clinical","equal to 10^-15 moles","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per gram","fmol/g","FMOL/G","amount of substance",602213670,[0,0,-1,0,0,0,0],"fmol/g","si",true,null,null,1,false,false,1,"femtomoles; fmol/gm; fmol per gm","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per liter","fmol/L","FMOL/L","amount of substance",602213670000,[-3,0,0,0,0,0,0],"fmol/L","si",true,null,null,1,false,false,1,"femtomoles; fmol per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milligram","fmol/mg","FMOL/MG","amount of substance",602213670000,[0,0,-1,0,0,0,0],"fmol/mg","si",true,null,null,1,false,false,1,"fmol per mg; femtomoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"femtomole per milliliter","fmol/mL","FMOL/ML","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"fmol/mL","si",true,null,null,1,false,false,1,"femtomoles; millilitre; fmol per mL; fmol per milliliter","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"gram meter","g.m","G.M","mass",1,[1,0,1,0,0,0,0],"g.m",null,false,"M",null,1,false,false,0,"g*m; gxm; meters; metres","LOINC","Enrg","Clinical","Unit for measuring stroke work (heart work)",null,null,null,null,false],[true,"gram per 100 gram","g/(100.g)","G/G","mass",0.01,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"g/100 gm; 100gm; grams per 100 grams; gm per 100 gm","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per 12 hour","g/(12.h)","G/HR","mass",0.000023148148148148147,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/12hrs; 12 hrs; gm per 12 hrs; 12hrs; grams per 12 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 24 hour","g/(24.h)","G/HR","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; gm/dy; gm per dy; grams per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 3 days","g/(3.d)","G/D","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/3dy; gm/3 dy; gm per 3 days; grams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 4 hour","g/(4.h)","G/HR","mass",0.00006944444444444444,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/4hrs; gm/4 hrs; gm per 4 hrs; 4hrs; grams per 4 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 48 hour","g/(48.h)","G/HR","mass",0.000005787037037037037,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/48hrs; gm/48 hrs; gm per 48 hrs; 48hrs; grams per 48 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 5 hour","g/(5.h)","G/HR","mass",0.00005555555555555556,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/5hrs; gm/5 hrs; gm per 5 hrs; 5hrs; grams per 5 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 6 hour","g/(6.h)","G/HR","mass",0.000046296296296296294,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/6hrs; gm/6 hrs; gm per 6 hrs; 6hrs; grams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per 72 hour","g/(72.h)","G/HR","mass",0.000003858024691358025,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/72hrs; gm/72 hrs; gm per 72 hrs; 72hrs; grams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per cubic centimeter","g/cm3","G/CM3","mass",999999.9999999999,[-3,0,1,0,0,0,0],"g/(cm<sup>3</sup>)",null,false,"M",null,1,false,false,0,"g/cm^3; gm per cm3; g per cm^3; grams per centimeter cubed; cu. cm; centimetre; g/mL; gram per milliliter; millilitre","LOINC","MCnc","Clinical","g/cm3 = g/mL",null,null,null,null,false],[true,"gram per day","g/d","G/D","mass",0.000011574074074074073,[0,-1,1,0,0,0,0],"g/d",null,false,"M",null,1,false,false,0,"gm/dy; gm per dy; grams per day; gm/24hrs; gm/24 hrs; gm per 24 hrs; 24hrs; grams per 24 hours; serving","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per deciliter","g/dL","G/DL","mass",10000,[-3,0,1,0,0,0,0],"g/dL",null,false,"M",null,1,false,false,0,"gm/dL; gm per dL; grams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per gram","g/g","G/G","mass",1,[0,0,0,0,0,0,0],"g/g",null,false,"M",null,1,false,false,0,"gm; grams","LOINC","MRto ","Clinical","",null,null,null,null,false],[true,"gram per hour","g/h","G/HR","mass",0.0002777777777777778,[0,-1,1,0,0,0,0],"g/h",null,false,"M",null,1,false,false,0,"gm/hr; gm per hr; grams; intake; output","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per hour per square meter","g/h/m2","(G/HR)/M2","mass",0.0002777777777777778,[-2,-1,1,0,0,0,0],"(g/h)/(m<sup>2</sup>)",null,false,"M",null,1,false,false,0,"gm/hr/m2; gm/h/m2; /m^2; sq. m; g per hr per m2; grams per hours per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"gram per kilogram","g/kg ","G/KG","mass",0.001,[0,0,0,0,0,0,0],"g/kg",null,false,"M",null,1,false,false,0,"g per kg; gram per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"gram per kilogram per 8 hour ","g/kg/(8.h)","(G/KG)/HR","mass",3.472222222222222e-8,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(8.kg.h); gm/kg/8hrs; 8 hrs; g per kg per 8 hrs; 8hrs; grams per kilograms per 8 hours; shift","LOINC","MCntRat; RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a 8 hours, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per day","g/kg/d","(G/KG)/D","mass",1.1574074074074074e-8,[0,-1,0,0,0,0,0],"(g/kg)/d",null,false,"M",null,1,false,false,0,"g/(kg.d); gm/kg/dy; gm per kg per dy; grams per kilograms per day","LOINC","RelMRat","Clinical","unit often used to describe mass in grams of protein consumed in a day, divided by the subject\'s body weight in kilograms. Also used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per hour","g/kg/h","(G/KG)/HR","mass",2.7777777777777776e-7,[0,-1,0,0,0,0,0],"(g/kg)/h",null,false,"M",null,1,false,false,0,"g/(kg.h); g/kg/hr; g per kg per hrs; grams per kilograms per hour","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per kilogram per minute","g/kg/min","(G/KG)/MIN","mass",0.000016666666666666667,[0,-1,0,0,0,0,0],"(g/kg)/min",null,false,"M",null,1,false,false,0,"g/(kg.min); g/kg/min; g per kg per min; grams per kilograms per minute","LOINC","MCntRat; RelMRat","Clinical","unit used to measure mass dose rate per body mass",null,null,null,null,false],[true,"gram per liter","g/L","G/L","mass",1000,[-3,0,1,0,0,0,0],"g/L",null,false,"M",null,1,false,false,0,"gm per liter; g/liter; grams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per square meter","g/m2","G/M2","mass",1,[-2,0,1,0,0,0,0],"g/(m<sup>2</sup>)",null,false,"M",null,1,false,false,0,"g/m^2; gram/square meter; g/sq m; g per m2; g per m^2; grams per square meter; meters squared; metre","LOINC","ArMass","Clinical","Tests measure myocardial mass (heart ventricle system) per body surface area; unit used to measure mass dose per body surface area",null,null,null,null,false],[true,"gram per milligram","g/mg","G/MG","mass",1000,[0,0,0,0,0,0,0],"g/mg",null,false,"M",null,1,false,false,0,"g per mg; grams per milligram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"gram per minute","g/min","G/MIN","mass",0.016666666666666666,[0,-1,1,0,0,0,0],"g/min",null,false,"M",null,1,false,false,0,"g per min; grams per minute; gram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"gram per milliliter","g/mL","G/ML","mass",1000000,[-3,0,1,0,0,0,0],"g/mL",null,false,"M",null,1,false,false,0,"g per mL; grams per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"gram per millimole","g/mmol","G/MMOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"g/mmol",null,false,"M",null,1,false,false,-1,"grams per millimole; g per mmol","LOINC","Ratio","Clinical","",null,null,null,null,false],[false,"joule per liter","J/L","J/L","energy",1000000,[-1,-2,1,0,0,0,0],"J/L","si",true,null,null,1,false,false,0,"joules per liter; litre; J per L","LOINC","EngCnc","Clinical","","N.m","N.M","1",1,false],[true,"degree Kelvin per Watt","K/W","K/W","temperature",0.001,[-2,3,-1,0,1,0,0],"K/W",null,false,"C",null,1,false,false,0,"degree Kelvin/Watt; K per W; thermal ohm; thermal resistance; degrees","LOINC","TempEngRat","Clinical","unit for absolute thermal resistance equal to the reciprocal of thermal conductance. Unit used for tests to measure work of breathing",null,null,null,null,false],[false,"kilo international unit per liter","k[IU]/L","K[IU]/L","arbitrary",1000000,[-3,0,0,0,0,0,0],"(ki.U.)/L","chemical",true,null,null,1,false,true,0,"kIU/L; kIU per L; kIU per liter; kilo international units; litre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/L","[iU]","[IU]","1",1,false],[false,"kilo international unit per milliliter","k[IU]/mL","K[IU]/ML","arbitrary",1000000000,[-3,0,0,0,0,0,0],"(ki.U.)/mL","chemical",true,null,null,1,false,true,0,"kIU/mL; kIU per mL; kIU per milliliter; kilo international units; millilitre; allergens; allergy units","LOINC","ACnc","Clinical","IgE has an WHO reference standard so IgE allergen testing can be reported as k[IU]/mL","[iU]","[IU]","1",1,false],[false,"katal per kilogram","kat/kg","KAT/KG","catalytic activity",602213670000000000000,[0,-1,-1,0,0,0,0],"kat/kg","chemical",true,null,null,1,false,false,1,"kat per kg; katals per kilogram; mol/s/kg; moles per seconds per kilogram","LOINC","CCnt","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"katal per liter","kat/L","KAT/L","catalytic activity",6.0221366999999994e+26,[-3,-1,0,0,0,0,0],"kat/L","chemical",true,null,null,1,false,false,1,"kat per L; katals per liter; litre; mol/s/L; moles per seconds per liter","LOINC","CCnc","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"kilocalorie","kcal","KCAL","energy",4184000,[2,-2,1,0,0,0,0],"kcal","heat",true,null,null,1,false,false,0,"kilogram calories; large calories; food calories; kcals","LOINC","EngRat","Clinical","It is equal to 1000 calories (equal to 4.184 kJ). But in practical usage, kcal refers to food calories which excludes caloric content in fiber and other constitutes that is not digestible by humans. Also see nutrition label Calories ([Cal])","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per 24 hour","kcal/(24.h)","KCAL/HR","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/24hrs; kcal/24 hrs; kcal per 24hrs; kilocalories per 24 hours; kilojoules; kJ/24hr; kJ/(24.h); kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","","EngRat","Clinical","","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per ounce","kcal/[oz_av]","KCAL/[OZ_AV]","energy",147586.25679704445,[2,-2,0,0,0,0,0],"kcal/oz","heat",true,null,null,1,false,false,0,"kcal/oz; kcal per ozs; large calories per ounces; food calories; servings; international","LOINC","EngCnt","Clinical","used in nutrition to represent calorie of food","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per day","kcal/d","KCAL/D","energy",48.425925925925924,[2,-3,1,0,0,0,0],"kcal/d","heat",true,null,null,1,false,false,0,"kcal/dy; kcal per day; kilocalories per days; kilojoules; kJ/dy; kilojoules per days; intake; calories burned; metabolic rate; food calories","LOINC","EngRat","Clinical","unit in nutrition for food intake (measured in calories) in a day","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per hour","kcal/h","KCAL/HR","energy",1162.2222222222222,[2,-3,1,0,0,0,0],"kcal/h","heat",true,null,null,1,false,false,0,"kcal/hrs; kcals per hr; intake; kilocalories per hours; kilojoules","LOINC","EngRat","Clinical","used in nutrition to represent caloric requirement or consumption","cal_th","CAL_TH","1",1,false],[false,"kilocalorie per kilogram per 24 hour","kcal/kg/(24.h)","(KCAL/KG)/HR","energy",0.04842592592592593,[2,-3,0,0,0,0,0],"(kcal/kg)/h","heat",true,null,null,1,false,false,0,"kcal/kg/24hrs; 24 hrs; kcal per kg per 24hrs; kilocalories per kilograms per 24 hours; kilojoules","LOINC","EngCntRat","Clinical","used in nutrition to represent caloric requirement per day based on subject\'s body weight in kilograms","cal_th","CAL_TH","1",1,false],[true,"kilogram","kg","KG","mass",1000,[0,0,1,0,0,0,0],"kg",null,false,"M",null,1,false,false,0,"kilograms; kgs","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"kilogram meter per second","kg.m/s","(KG.M)/S","mass",1000,[1,-1,1,0,0,0,0],"(kg.m)/s",null,false,"M",null,1,false,false,0,"kg*m/s; kg.m per sec; kg*m per sec; p; momentum","LOINC","","Clinical","unit for momentum = mass times velocity",null,null,null,null,false],[true,"kilogram per second per square meter","kg/(s.m2)","KG/(S.M2)","mass",1000,[-2,-1,1,0,0,0,0],"kg/(s.(m<sup>2</sup>))",null,false,"M",null,1,false,false,0,"kg/(s*m2); kg/(s*m^2); kg per s per m2; per sec; per m^2; kilograms per seconds per square meter; meter squared; metre","LOINC","ArMRat","Clinical","",null,null,null,null,false],[true,"kilogram per hour","kg/h","KG/HR","mass",0.2777777777777778,[0,-1,1,0,0,0,0],"kg/h",null,false,"M",null,1,false,false,0,"kg/hr; kg per hr; kilograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per liter","kg/L","KG/L","mass",1000000,[-3,0,1,0,0,0,0],"kg/L",null,false,"M",null,1,false,false,0,"kg per liter; litre; kilograms","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per square meter","kg/m2","KG/M2","mass",1000,[-2,0,1,0,0,0,0],"kg/(m<sup>2</sup>)",null,false,"M",null,1,false,false,0,"kg/m^2; kg/sq. m; kg per m2; per m^2; per sq. m; kilograms; meter squared; metre; BMI","LOINC","Ratio","Clinical","units for body mass index (BMI)",null,null,null,null,false],[true,"kilogram per cubic meter","kg/m3","KG/M3","mass",1000,[-3,0,1,0,0,0,0],"kg/(m<sup>3</sup>)",null,false,"M",null,1,false,false,0,"kg/m^3; kg/cu. m; kg per m3; per m^3; per cu. m; kilograms; meters cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"kilogram per minute","kg/min","KG/MIN","mass",16.666666666666668,[0,-1,1,0,0,0,0],"kg/min",null,false,"M",null,1,false,false,0,"kilogram/minute; kg per min; kilograms per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"kilogram per mole","kg/mol","KG/MOL","mass",1.6605401866749388e-21,[0,0,1,0,0,0,0],"kg/mol",null,false,"M",null,1,false,false,-1,"kilogram/mole; kg per mol; kilograms per mole","LOINC","SCnt","Clinical","",null,null,null,null,false],[true,"kilogram per second","kg/s","KG/S","mass",1000,[0,-1,1,0,0,0,0],"kg/s",null,false,"M",null,1,false,false,0,"kg/sec; kilogram/second; kg per sec; kilograms; second","LOINC","MRat","Clinical","",null,null,null,null,false],[false,"kiloliter","kL","KL","volume",1,[3,0,0,0,0,0,0],"kL","iso1000",true,null,null,1,false,false,0,"kiloliters; kilolitres; m3; m^3; meters cubed; metre","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"kilometer","km","KM","length",1000,[1,0,0,0,0,0,0],"km",null,false,"L",null,1,false,false,0,"kilometers; kilometres; distance","LOINC","Len","Clinical","",null,null,null,null,false],[false,"kilopascal","kPa","KPAL","pressure",1000000,[-1,-2,1,0,0,0,0],"kPa","si",true,null,null,1,false,false,0,"kilopascals; pressure","LOINC","Pres; PPresDiff","Clinical","","N/m2","N/M2","1",1,false],[true,"kilosecond","ks","KS","time",1000,[0,1,0,0,0,0,0],"ks",null,false,"T",null,1,false,false,0,"kiloseconds; ksec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"kilo enzyme unit","kU","KU","catalytic activity",10036894500000000000,[0,-1,0,0,0,0,0],"kU","chemical",true,null,null,1,false,false,1,"units; mmol/min; millimoles per minute","LOINC","CAct","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per gram","kU/g","KU/G","catalytic activity",10036894500000000000,[0,-1,-1,0,0,0,0],"kU/g","chemical",true,null,null,1,false,false,1,"units per grams; kU per gm","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per liter","kU/L","KU/L","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"kU/L","chemical",true,null,null,1,false,false,1,"units per liter; litre; enzymatic activity; enzyme activity per volume; activities","LOINC","ACnc; CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"kilo enzyme unit per milliliter","kU/mL","KU/ML","catalytic activity",1.00368945e+25,[-3,-1,0,0,0,0,0],"kU/mL","chemical",true,null,null,1,false,false,1,"kU per mL; units per milliliter; millilitre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 kU = 1 mmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Liters per 24 hour","L/(24.h)","L/HR","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/24hrs; L/24 hrs; L per 24hrs; liters per 24 hours; day; dy; litres; volume flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per 8 hour","L/(8.h)","L/HR","volume",3.472222222222222e-8,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/8hrs; L/8 hrs; L per 8hrs; liters per 8 hours; litres; volume flow rate; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/(min.m2) ","L/(MIN.M2)","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"L/(min.(m<sup>2</sup>))","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per day","L/d","L/D","volume",1.1574074074074074e-8,[3,-1,0,0,0,0,0],"L/d","iso1000",true,null,null,1,false,false,0,"L/dy; L per day; 24hrs; 24 hrs; 24 hours; liters; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per hour","L/h","L/HR","volume",2.7777777777777776e-7,[3,-1,0,0,0,0,0],"L/h","iso1000",true,null,null,1,false,false,0,"L/hr; L per hr; litres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per kilogram","L/kg","L/KG","volume",0.000001,[3,0,-1,0,0,0,0],"L/kg","iso1000",true,null,null,1,false,false,0,"L per kg; litre","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"Liters per liter","L/L","L/L","volume",1,[0,0,0,0,0,0,0],"L/L","iso1000",true,null,null,1,false,false,0,"L per L; liter/liter; litre","LOINC","VFr","Clinical","","l",null,"1",1,false],[false,"Liters per minute","L/min","L/MIN","volume",0.000016666666666666667,[3,-1,0,0,0,0,0],"L/min","iso1000",true,null,null,1,false,false,0,"liters per minute; litre","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"Liters per minute per square meter","L/min/m2","(L/MIN)/M2","volume",0.000016666666666666667,[1,-1,0,0,0,0,0],"(L/min)/(m<sup>2</sup>)","iso1000",true,null,null,1,false,false,0,"L/(min.m2); L/min/m^2; L/min/sq. meter; L per min per m2; m^2; liters per minutes per square meter; meter squared; litres; metre ","","ArVRat","Clinical","unit for tests that measure cardiac output per body surface area (cardiac index)","l",null,"1",1,false],[false,"Liters per second","L/s","L/S","volume",0.001,[3,-1,0,0,0,0,0],"L/s","iso1000",true,null,null,1,false,false,0,"L per sec; litres","LOINC","VRat","Clinical","unit used often to measure gas flow and peak expiratory flow","l",null,"1",1,false],[false,"Liters per second per square second","L/s/s2","(L/S)/S2","volume",0.001,[3,-3,0,0,0,0,0],"(L/s)/(s<sup>2</sup>)","iso1000",true,null,null,1,false,false,0,"L/s/s^2; L/sec/sec2; L/sec/sec^2; L/sec/sq. sec; L per s per s2; L per sec per sec2; s^2; sec^2; liters per seconds per square second; second squared; litres ","LOINC","ArVRat","Clinical","unit for tests that measure cardiac output/body surface area","l",null,"1",1,false],[false,"lumen square meter","lm.m2","LM.M2","luminous flux",1,[2,0,0,2,0,0,1],"lm.(m<sup>2</sup>)","si",true,null,null,1,false,false,0,"lm*m2; lm*m^2; lumen meters squared; lumen sq. meters; metres","LOINC","","Clinical","","cd.sr","CD.SR","1",1,false],[true,"meter per second","m/s","M/S","length",1,[1,-1,0,0,0,0,0],"m/s",null,false,"L",null,1,false,false,0,"meter/second; m per sec; meters per second; metres; velocity; speed","LOINC","Vel","Clinical","unit of velocity",null,null,null,null,false],[true,"meter per square second","m/s2","M/S2","length",1,[1,-2,0,0,0,0,0],"m/(s<sup>2</sup>)",null,false,"L",null,1,false,false,0,"m/s^2; m/sq. sec; m per s2; per s^2; meters per square second; second squared; sq second; metres; acceleration","LOINC","Accel","Clinical","unit of acceleration",null,null,null,null,false],[false,"milli international unit per liter","m[IU]/L","M[IU]/L","arbitrary",1,[-3,0,0,0,0,0,0],"(mi.U.)/L","chemical",true,null,null,1,false,true,0,"mIU/L; m IU/L; mIU per liter; units; litre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"milli international unit per milliliter","m[IU]/mL","M[IU]/ML","arbitrary",1000.0000000000001,[-3,0,0,0,0,0,0],"(mi.U.)/mL","chemical",true,null,null,1,false,true,0,"mIU/mL; m IU/mL; mIU per mL; milli international units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[true,"square meter","m2","M2","length",1,[2,0,0,0,0,0,0],"m<sup>2</sup>",null,false,"L",null,1,false,false,0,"m^2; sq m; square meters; meters squared; metres","LOINC","Area","Clinical","unit often used to represent body surface area",null,null,null,null,false],[true,"square meter per second","m2/s","M2/S","length",1,[2,-1,0,0,0,0,0],"(m<sup>2</sup>)/s",null,false,"L",null,1,false,false,0,"m^2/sec; m2 per sec; m^2 per sec; sq m/sec; meters squared/seconds; sq m per sec; meters squared; metres","LOINC","ArRat","Clinical","",null,null,null,null,false],[true,"cubic meter per second","m3/s","M3/S","length",1,[3,-1,0,0,0,0,0],"(m<sup>3</sup>)/s",null,false,"L",null,1,false,false,0,"m^3/sec; m3 per sec; m^3 per sec; cu m/sec; cubic meters per seconds; meters cubed; metres","LOINC","VRat","Clinical","",null,null,null,null,false],[false,"milliampere","mA","MA","electric current",0.001,[0,-1,0,0,0,1,0],"mA","si",true,null,null,1,false,false,0,"mamp; milliamperes","LOINC","ElpotRat","Clinical","unit of electric current","C/s","C/S","1",1,false],[false,"millibar","mbar","MBAR","pressure",100000,[-1,-2,1,0,0,0,0],"mbar","iso1000",true,null,null,1,false,false,0,"millibars","LOINC","Pres","Clinical","unit of pressure","Pa","PAL","1e5",100000,false],[false,"millibar second per liter","mbar.s/L","(MBAR.S)/L","pressure",100000000,[-4,-1,1,0,0,0,0],"(mbar.s)/L","iso1000",true,null,null,1,false,false,0,"mbar*s/L; mbar.s per L; mbar*s per L; millibar seconds per liter; millibar second per litre","LOINC","","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"millibar per liter per second","mbar/L/s","(MBAR/L)/S","pressure",100000000,[-4,-3,1,0,0,0,0],"(mbar/L)/s","iso1000",true,null,null,1,false,false,0,"mbar/(L.s); mbar/L/sec; mbar/liter/second; mbar per L per sec; mbar per liter per second; millibars per liters per seconds; litres","LOINC","PresCncRat","Clinical","unit to measure expiratory resistance","Pa","PAL","1e5",100000,false],[false,"milliequivalent","meq","MEQ","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"meq","chemical",true,null,null,1,false,false,1,"milliequivalents; meqs","LOINC","Sub","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 2 hour","meq/(2.h)","MEQ/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/2hrs; meq/2 hrs; meq per 2 hrs; milliequivalents per 2 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 24 hour","meq/(24.h)","MEQ/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per 8 hour","meq/(8.h)","MEQ/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/8hrs; meq/8 hrs; meq per 8 hrs; milliequivalents per 8 hours; shift","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per day","meq/d","MEQ/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"meq/d","chemical",true,null,null,1,false,false,1,"meq/dy; meq per day; milliquivalents per days; meq/24hrs; meq/24 hrs; meq per 24 hrs; milliequivalents per 24 hours","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per deciliter","meq/dL","MEQ/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"meq/dL","chemical",true,null,null,1,false,false,1,"meq per dL; milliequivalents per deciliter; decilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per gram","meq/g","MEQ/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"meq/g","chemical",true,null,null,1,false,false,1,"mgq/gm; meq per gm; milliequivalents per gram","LOINC","MCnt","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per hour","meq/h","MEQ/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"meq/h","chemical",true,null,null,1,false,false,1,"meq/hrs; meq per hrs; milliequivalents per hour","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per kilogram","meq/kg","MEQ/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"meq/kg","chemical",true,null,null,1,false,false,1,"meq per kg; milliequivalents per kilogram","LOINC","SCnt","Clinical","equivalence equals moles per valence; used to measure dose per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per kilogram per hour","meq/kg/h","(MEQ/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(meq/kg)/h","chemical",true,null,null,1,false,false,1,"meq/(kg.h); meq/kg/hr; meq per kg per hr; milliequivalents per kilograms per hour","LOINC","SCntRat","Clinical","equivalence equals moles per valence; unit used to measure dose rate per patient body mass","mol","MOL","1",1,false],[false,"milliequivalent per liter","meq/L","MEQ/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"meq/L","chemical",true,null,null,1,false,false,1,"milliequivalents per liter; litre; meq per l; acidity","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per square meter","meq/m2","MEQ/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"meq/(m<sup>2</sup>)","chemical",true,null,null,1,false,false,1,"meq/m^2; meq/sq. m; milliequivalents per square meter; meter squared; metre","LOINC","ArSub","Clinical","equivalence equals moles per valence; note that the use of m2 in clinical units ofter refers to body surface area","mol","MOL","1",1,false],[false,"milliequivalent per minute","meq/min","MEQ/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"meq/min","chemical",true,null,null,1,false,false,1,"meq per min; milliequivalents per minute","LOINC","SRat","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[false,"milliequivalent per milliliter","meq/mL","MEQ/ML","amount of substance",6.0221367e+26,[-3,0,0,0,0,0,0],"meq/mL","chemical",true,null,null,1,false,false,1,"meq per mL; milliequivalents per milliliter; millilitre","LOINC","SCnc","Clinical","equivalence equals moles per valence","mol","MOL","1",1,false],[true,"milligram","mg","MG","mass",0.001,[0,0,1,0,0,0,0],"mg",null,false,"M",null,1,false,false,0,"milligrams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"milligram per 10 hour","mg/(10.h)","MG/HR","mass",2.7777777777777777e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/10hrs; mg/10 hrs; mg per 10 hrs; milligrams per 10 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 12 hour","mg/(12.h)","MG/HR","mass",2.3148148148148148e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/12hrs; mg/12 hrs; per 12 hrs; 12hrs; milligrams per 12 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 2 hour","mg/(2.h)","MG/HR","mass",1.3888888888888888e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/2hrs; mg/2 hrs; mg per 2 hrs; 2hrs; milligrams per 2 hours","LOINC","MRat","Clinical","units used for tests in urine",null,null,null,null,false],[true,"milligram per 24 hour","mg/(24.h)","MG/HR","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/kg/dy; mg per kg per day; milligrams per kilograms per days","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 6 hour","mg/(6.h)","MG/HR","mass",4.6296296296296295e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/6hrs; mg/6 hrs; mg per 6 hrs; 6hrs; milligrams per 6 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 72 hour","mg/(72.h)","MG/HR","mass",3.858024691358025e-9,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/72hrs; mg/72 hrs; 72 hrs; 72hrs; milligrams per 72 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per 8 hour","mg/(8.h)","MG/HR","mass",3.472222222222222e-8,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/8hrs; mg/8 hrs; milligrams per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per day","mg/d","MG/D","mass",1.1574074074074074e-8,[0,-1,1,0,0,0,0],"mg/d",null,false,"M",null,1,false,false,0,"mg/24hrs; mg/24 hrs; milligrams per 24 hours; mg/dy; mg per day; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per deciliter","mg/dL","MG/DL","mass",10,[-3,0,1,0,0,0,0],"mg/dL",null,false,"M",null,1,false,false,0,"mg per dL; milligrams per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per gram","mg/g","MG/G","mass",0.001,[0,0,0,0,0,0,0],"mg/g",null,false,"M",null,1,false,false,0,"mg per gm; milligrams per gram","LOINC","MCnt; MRto","Clinical","",null,null,null,null,false],[true,"milligram per hour","mg/h","MG/HR","mass",2.7777777777777776e-7,[0,-1,1,0,0,0,0],"mg/h",null,false,"M",null,1,false,false,0,"mg/hr; mg per hr; milligrams","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per kilogram","mg/kg","MG/KG","mass",0.000001,[0,0,0,0,0,0,0],"mg/kg",null,false,"M",null,1,false,false,0,"mg per kg; milligrams per kilograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"milligram per kilogram per 8 hour","mg/kg/(8.h)","(MG/KG)/HR","mass",3.472222222222222e-11,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(8.h.kg); mg/kg/8hrs; mg/kg/8 hrs; mg per kg per 8hrs; 8 hrs; milligrams per kilograms per 8 hours; shift","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per day","mg/kg/d","(MG/KG)/D","mass",1.1574074074074074e-11,[0,-1,0,0,0,0,0],"(mg/kg)/d",null,false,"M",null,1,false,false,0,"mg/(kg.d); mg/(kg.24.h)mg/kg/dy; mg per kg per day; milligrams per kilograms per days; mg/kg/(24.h); mg/kg/24hrs; 24 hrs; 24 hours","LOINC","RelMRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per hour","mg/kg/h","(MG/KG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(mg/kg)/h",null,false,"M",null,1,false,false,0,"mg/(kg.h); mg/kg/hr; mg per kg per hr; milligrams per kilograms per hour","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per kilogram per minute","mg/kg/min","(MG/KG)/MIN","mass",1.6666666666666667e-8,[0,-1,0,0,0,0,0],"(mg/kg)/min",null,false,"M",null,1,false,false,0,"mg/(kg.min); mg per kg per min; milligrams per kilograms per minute","LOINC","RelMRat; MCntRat","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"milligram per liter","mg/L","MG/L","mass",1,[-3,0,1,0,0,0,0],"mg/L",null,false,"M",null,1,false,false,0,"mg per l; milligrams per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per square meter","mg/m2","MG/M2","mass",0.001,[-2,0,1,0,0,0,0],"mg/(m<sup>2</sup>)",null,false,"M",null,1,false,false,0,"mg/m^2; mg/sq. m; mg per m2; mg per m^2; mg per sq. milligrams; meter squared; metre","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"milligram per cubic meter","mg/m3","MG/M3","mass",0.001,[-3,0,1,0,0,0,0],"mg/(m<sup>3</sup>)",null,false,"M",null,1,false,false,0,"mg/m^3; mg/cu. m; mg per m3; milligrams per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per milligram","mg/mg","MG/MG","mass",1,[0,0,0,0,0,0,0],"mg/mg",null,false,"M",null,1,false,false,0,"mg per mg; milligrams; milligram/milligram","LOINC","MRto","Clinical","",null,null,null,null,false],[true,"milligram per minute","mg/min","MG/MIN","mass",0.000016666666666666667,[0,-1,1,0,0,0,0],"mg/min",null,false,"M",null,1,false,false,0,"mg per min; milligrams per minutes; milligram/minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"milligram per milliliter","mg/mL","MG/ML","mass",1000.0000000000001,[-3,0,1,0,0,0,0],"mg/mL",null,false,"M",null,1,false,false,0,"mg per mL; milligrams per milliliters; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"milligram per millimole","mg/mmol","MG/MMOL","mass",1.660540186674939e-24,[0,0,1,0,0,0,0],"mg/mmol",null,false,"M",null,1,false,false,-1,"mg per mmol; milligrams per millimole; ","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"milligram per week","mg/wk","MG/WK","mass",1.6534391534391535e-9,[0,-1,1,0,0,0,0],"mg/wk",null,false,"M",null,1,false,false,0,"mg/week; mg per wk; milligrams per weeks; milligram/week","LOINC","Mrat","Clinical","",null,null,null,null,false],[false,"milliliter","mL","ML","volume",0.000001,[3,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"milliliters; millilitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"milliliter per 10 hour","mL/(10.h)","ML/HR","volume",2.7777777777777777e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/10hrs; ml/10 hrs; mL per 10hrs; 10 hrs; milliliters per 10 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 12 hour","mL/(12.h)","ML/HR","volume",2.3148148148148147e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/12hrs; ml/12 hrs; mL per 12hrs; 12 hrs; milliliters per 12 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 2 hour","mL/(2.h)","ML/HR","volume",1.3888888888888888e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/2hrs; ml/2 hrs; mL per 2hrs; 2 hrs; milliliters per 2 hours; millilitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 24 hour","mL/(24.h)","ML/HR","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/24hrs; ml/24 hrs; mL per 24hrs; 24 hrs; milliliters per 24 hours; millilitres; ml/dy; /day; ml per dy; days; fluid outputs; fluid inputs; flow rate","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 4 hour","mL/(4.h)","ML/HR","volume",6.944444444444444e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/4hrs; ml/4 hrs; mL per 4hrs; 4 hrs; milliliters per 4 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 5 hour","mL/(5.h)","ML/HR","volume",5.5555555555555553e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/5hrs; ml/5 hrs; mL per 5hrs; 5 hrs; milliliters per 5 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 6 hour","mL/(6.h)","ML/HR","volume",4.6296296296296294e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/6hrs; ml/6 hrs; mL per 6hrs; 6 hrs; milliliters per 6 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 72 hour","mL/(72.h)","ML/HR","volume",3.8580246913580245e-12,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/72hrs; ml/72 hrs; mL per 72hrs; 72 hrs; milliliters per 72 hours; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour","mL/(8.h)","ML/HR","volume",3.472222222222222e-11,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"ml/8hrs; ml/8 hrs; mL per 8hrs; 8 hrs; milliliters per 8 hours; millilitres; shift","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per 8 hour per kilogram","mL/(8.h)/kg","(ML/HR)/KG","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/h)/kg","iso1000",true,null,null,1,false,false,0,"mL/kg/(8.h); ml/8h/kg; ml/8 h/kg; ml/8hr/kg; ml/8 hr/kgr; mL per 8h per kg; 8 h; 8hr; 8 hr; milliliters per 8 hours per kilogram; millilitres; shift","LOINC","VRatCnt","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per square inch (international)","mL/[sin_i]","ML/[SIN_I]","volume",0.0015500031000061998,[1,0,0,0,0,0,0],"mL","iso1000",true,null,null,1,false,false,0,"mL/sin; mL/in2; mL/in^2; mL per sin; in2; in^2; sq. in; milliliters per square inch; inch squared","LOINC","ArVol","Clinical","","l",null,"1",1,false],[false,"milliliter per centimeter of water","mL/cm[H2O]","ML/CM[H2O]","volume",1.0197162129779282e-11,[4,2,-1,0,0,0,0],"mL/(cm HO<sub><r>2</r></sub>)","iso1000",true,null,null,1,false,false,0,"milliliters per centimeter of water; millilitre per centimetre of water; millilitres per centimetre of water; mL/cmH2O; mL/cm H2O; mL per cmH2O; mL per cm H2O","LOINC","Compli","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per day","mL/d","ML/D","volume",1.1574074074074074e-11,[3,-1,0,0,0,0,0],"mL/d","iso1000",true,null,null,1,false,false,0,"ml/day; ml per day; milliliters per day; 24 hours; 24hrs; millilitre;","LOINC","VRat","Clinical","usually used to measure fluid output or input; flow rate","l",null,"1",1,false],[false,"milliliter per deciliter","mL/dL","ML/DL","volume",0.009999999999999998,[0,0,0,0,0,0,0],"mL/dL","iso1000",true,null,null,1,false,false,0,"mL per dL; millilitres; decilitre; milliliters","LOINC","VFr; VFrDiff","Clinical","","l",null,"1",1,false],[false,"milliliter per hour","mL/h","ML/HR","volume",2.7777777777777777e-10,[3,-1,0,0,0,0,0],"mL/h","iso1000",true,null,null,1,false,false,0,"mL/hr; mL per hr; milliliters per hour; millilitres; fluid intake; fluid output","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram","mL/kg","ML/KG","volume",9.999999999999999e-10,[3,0,-1,0,0,0,0],"mL/kg","iso1000",true,null,null,1,false,false,0,"mL per kg; milliliters per kilogram; millilitres","LOINC","VCnt","Clinical","","l",null,"1",1,false],[false,"milliliter per kilogram per 8 hour","mL/kg/(8.h)","(ML/KG)/HR","volume",3.472222222222222e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(8.h.kg); mL/kg/8hrs; mL/kg/8 hrs; mL per kg per 8hrs; 8 hrs; milliliters per kilograms per 8 hours; millilitres; shift","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per day","mL/kg/d","(ML/KG)/D","volume",1.1574074074074072e-14,[3,-1,-1,0,0,0,0],"(mL/kg)/d","iso1000",true,null,null,1,false,false,0,"mL/(kg.d); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; mg/kg/24hrs; 24 hrs; per 24 hours millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per hour","mL/kg/h","(ML/KG)/HR","volume",2.7777777777777774e-13,[3,-1,-1,0,0,0,0],"(mL/kg)/h","iso1000",true,null,null,1,false,false,0,"mL/(kg.h); mL/kg/hr; mL per kg per hr; milliliters per kilograms per hour; millilitres","LOINC","VCntRat; RelEngRat","Clinical","unit used to measure renal excretion volume rate per body mass","l",null,"1",1,false],[false,"milliliter per kilogram per minute","mL/kg/min","(ML/KG)/MIN","volume",1.6666666666666664e-11,[3,-1,-1,0,0,0,0],"(mL/kg)/min","iso1000",true,null,null,1,false,false,0,"mL/(kg.min); mL/kg/dy; mL per kg per day; milliliters per kilograms per day; millilitres","LOINC","RelEngRat","Clinical","used for tests that measure activity metabolic rate compared to standard resting metabolic rate ","l",null,"1",1,false],[false,"milliliter per square meter","mL/m2","ML/M2","volume",0.000001,[1,0,0,0,0,0,0],"mL/(m<sup>2</sup>)","iso1000",true,null,null,1,false,false,0,"mL/m^2; mL/sq. meter; mL per m2; m^2; sq. meter; milliliters per square meter; millilitres; meter squared","LOINC","ArVol","Clinical","used for tests that relate to heart work - e.g. ventricular stroke volume; atrial volume per body surface area","l",null,"1",1,false],[false,"milliliter per millibar","mL/mbar","ML/MBAR","volume",1e-11,[4,2,-1,0,0,0,0],"mL/mbar","iso1000",true,null,null,1,false,false,0,"mL per mbar; milliliters per millibar; millilitres","LOINC","","Clinical","unit used to measure dynamic lung compliance","l",null,"1",1,false],[false,"milliliter per minute","mL/min","ML/MIN","volume",1.6666666666666667e-8,[3,-1,0,0,0,0,0],"mL/min","iso1000",true,null,null,1,false,false,0,"mL per min; milliliters; millilitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"milliliter per minute per square meter","mL/min/m2","(ML/MIN)/M2","volume",1.6666666666666667e-8,[1,-1,0,0,0,0,0],"(mL/min)/(m<sup>2</sup>)","iso1000",true,null,null,1,false,false,0,"ml/min/m^2; ml/min/sq. meter; mL per min per m2; m^2; sq. meter; milliliters per minutes per square meter; millilitres; metre; meter squared","LOINC","ArVRat","Clinical","unit used to measure volume per body surface area; oxygen consumption index","l",null,"1",1,false],[false,"milliliter per millimeter","mL/mm","ML/MM","volume",0.001,[2,0,0,0,0,0,0],"mL/mm","iso1000",true,null,null,1,false,false,0,"mL per mm; milliliters per millimeter; millilitres; millimetre","LOINC","Lineic Volume","Clinical","","l",null,"1",1,false],[false,"milliliter per second","mL/s","ML/S","volume",0.000001,[3,-1,0,0,0,0,0],"mL/s","iso1000",true,null,null,1,false,false,0,"ml/sec; mL per sec; milliliters per second; millilitres","LOINC","Vel; VelRat; VRat","Clinical","","l",null,"1",1,false],[true,"millimeter","mm","MM","length",0.001,[1,0,0,0,0,0,0],"mm",null,false,"L",null,1,false,false,0,"millimeters; millimetres; height; length; diameter; thickness; axis; curvature; size","LOINC","Len","Clinical","",null,null,null,null,false],[true,"millimeter per hour","mm/h","MM/HR","length",2.7777777777777776e-7,[1,-1,0,0,0,0,0],"mm/h",null,false,"L",null,1,false,false,0,"mm/hr; mm per hr; millimeters per hour; millimetres","LOINC","Vel","Clinical","unit to measure sedimentation rate",null,null,null,null,false],[true,"millimeter per minute","mm/min","MM/MIN","length",0.000016666666666666667,[1,-1,0,0,0,0,0],"mm/min",null,false,"L",null,1,false,false,0,"mm per min; millimeters per minute; millimetres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"millimeter of water","mm[H2O]","MM[H2O]","pressure",9806.65,[-1,-2,1,0,0,0,0],"mm HO<sub><r>2</r></sub>","clinical",true,null,null,1,false,false,0,"mmH2O; mm H2O; millimeters of water; millimetres","LOINC","Pres","Clinical","","kPa","KPAL","980665e-5",9.80665,false],[false,"millimeter of mercury","mm[Hg]","MM[HG]","pressure",133322,[-1,-2,1,0,0,0,0],"mm Hg","clinical",true,null,null,1,false,false,0,"mmHg; mm Hg; millimeters of mercury; millimetres","LOINC","Pres; PPres; Ratio","Clinical","1 mm[Hg] = 1 torr; unit to measure blood pressure","kPa","KPAL","133.3220",133.322,false],[true,"square millimeter","mm2","MM2","length",0.000001,[2,0,0,0,0,0,0],"mm<sup>2</sup>",null,false,"L",null,1,false,false,0,"mm^2; sq. mm.; sq. millimeters; millimeters squared; millimetres","LOINC","Area","Clinical","",null,null,null,null,false],[false,"millimole","mmol","MMOL","amount of substance",602213670000000000000,[0,0,0,0,0,0,0],"mmol","si",true,null,null,1,false,false,1,"millimoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 12 hour","mmol/(12.h)","MMOL/HR","amount of substance",13940131250000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/12hrs; mmol/12 hrs; mmol per 12 hrs; 12hrs; millimoles per 12 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 2 hour","mmol/(2.h)","MMOL/HR","amount of substance",83640787500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/2hrs; mmol/2 hrs; mmol per 2 hrs; 2hrs; millimoles per 2 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 24 hour","mmol/(24.h)","MMOL/HR","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 5 hour","mmol/(5.h)","MMOL/HR","amount of substance",33456315000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/5hrs; mmol/5 hrs; mmol per 5 hrs; 5hrs; millimoles per 5 hours","LOINC","SRat","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 6 hour","mmol/(6.h)","MMOL/HR","amount of substance",27880262500000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/6hrs; mmol/6 hrs; mmol per 6 hrs; 6hrs; millimoles per 6 hours","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per 8 hour","mmol/(8.h)","MMOL/HR","amount of substance",20910196875000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/8hrs; mmol/8 hrs; mmol per 8 hrs; 8hrs; millimoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per day","mmol/d","MMOL/D","amount of substance",6970065625000000,[0,-1,0,0,0,0,0],"mmol/d","si",true,null,null,1,false,false,1,"mmol/24hrs; mmol/24 hrs; mmol per 24 hrs; 24hrs; millimoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per deciliter","mmol/dL","MMOL/DL","amount of substance",6.022136699999999e+24,[-3,0,0,0,0,0,0],"mmol/dL","si",true,null,null,1,false,false,1,"mmol per dL; millimoles; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per gram","mmol/g","MMOL/G","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mmol/g","si",true,null,null,1,false,false,1,"mmol per gram; millimoles","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per hour","mmol/h","MMOL/HR","amount of substance",167281575000000000,[0,-1,0,0,0,0,0],"mmol/h","si",true,null,null,1,false,false,1,"mmol/hr; mmol per hr; millimoles per hour","LOINC","SRat","Clinical","unit for tests related to urine","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram","mmol/kg","MMOL/KG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"mmol/kg","si",true,null,null,1,false,false,1,"mmol per kg; millimoles per kilogram","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per 8 hour","mmol/kg/(8.h)","(MMOL/KG)/HR","amount of substance",20910196875000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/(8.h.kg); mmol/kg/8hrs; mmol/kg/8 hrs; mmol per kg per 8hrs; 8 hrs; millimoles per kilograms per 8 hours; shift","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per day","mmol/kg/d","(MMOL/KG)/D","amount of substance",6970065625000,[0,-1,-1,0,0,0,0],"(mmol/kg)/d","si",true,null,null,1,false,false,1,"mmol/kg/dy; mmol/kg/day; mmol per kg per dy; millimoles per kilograms per day","LOINC","RelSRat","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per hour","mmol/kg/h","(MMOL/KG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/h","si",true,null,null,1,false,false,1,"mmol/kg/hr; mmol per kg per hr; millimoles per kilograms per hour","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per kilogram per minute","mmol/kg/min","(MMOL/KG)/MIN","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(mmol/kg)/min","si",true,null,null,1,false,false,1,"mmol/(kg.min); mmol/kg/min; mmol per kg per min; millimoles per kilograms per minute","LOINC","CCnt","Clinical","unit used to measure molar dose rate per patient body mass; note that the unit for the enzyme unit U = umol/min. mmol/kg/min = kU/kg; ","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per liter","mmol/L","MMOL/L","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mmol/L","si",true,null,null,1,false,false,1,"mmol per L; millimoles per liter; litre","LOINC","SCnc","Clinical","unit for tests related to doses","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per square meter","mmol/m2","MMOL/M2","amount of substance",602213670000000000000,[-2,0,0,0,0,0,0],"mmol/(m<sup>2</sup>)","si",true,null,null,1,false,false,1,"mmol/m^2; mmol/sq. meter; mmol per m2; m^2; sq. meter; millimoles; meter squared; metre","LOINC","ArSub","Clinical","unit used to measure molar dose per patient body surface area","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per minute","mmol/min","MMOL/MIN","amount of substance",10036894500000000000,[0,-1,0,0,0,0,0],"mmol/min","si",true,null,null,1,false,false,1,"mmol per min; millimoles per minute","LOINC","Srat; CAct","Clinical","unit for the enzyme unit U = umol/min. mmol/min = kU","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per millimole","mmol/mmol","MMOL/MMOL","amount of substance",1,[0,0,0,0,0,0,0],"mmol/mmol","si",true,null,null,1,false,false,0,"mmol per mmol; millimoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per mole","mmol/mol","MMOL/MOL","amount of substance",0.001,[0,0,0,0,0,0,0],"mmol/mol","si",true,null,null,1,false,false,0,"mmol per mol; millimoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"millimole per second per liter","mmol/s/L","(MMOL/S)/L","amount of substance",6.0221367e+23,[-3,-1,0,0,0,0,0],"(mmol/s)/L","si",true,null,null,1,false,false,1,"mmol/sec/L; mmol per s per L; per sec; millimoles per seconds per liter; litre","LOINC","CCnc ","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram","mol/kg","MOL/KG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"mol/kg","si",true,null,null,1,false,false,1,"mol per kg; moles; mols","LOINC","SCnt","Clinical","unit for tests related to stool","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per kilogram per second","mol/kg/s","(MOL/KG)/S","amount of substance",602213670000000000000,[0,-1,-1,0,0,0,0],"(mol/kg)/s","si",true,null,null,1,false,false,1,"mol/kg/sec; mol per kg per sec; moles per kilograms per second; mols","LOINC","CCnt","Clinical","unit of catalytic activity (mol/s) per mass (kg)","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per liter","mol/L","MOL/L","amount of substance",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"mol/L","si",true,null,null,1,false,false,1,"mol per L; moles per liter; litre; moles; mols","LOINC","SCnc","Clinical","unit often used in tests measuring oxygen content","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per cubic meter","mol/m3","MOL/M3","amount of substance",6.0221367e+23,[-3,0,0,0,0,0,0],"mol/(m<sup>3</sup>)","si",true,null,null,1,false,false,1,"mol/m^3; mol/cu. m; mol per m3; m^3; cu. meter; mols; moles; meters cubed; metre; mole per kiloliter; kilolitre; mol/kL","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per milliliter","mol/mL","MOL/ML","amount of substance",6.0221367e+29,[-3,0,0,0,0,0,0],"mol/mL","si",true,null,null,1,false,false,1,"mol per mL; moles; millilitre; mols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per mole","mol/mol","MOL/MOL","amount of substance",1,[0,0,0,0,0,0,0],"mol/mol","si",true,null,null,1,false,false,0,"mol per mol; moles per mol; mols","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"mole per second","mol/s","MOL/S","amount of substance",6.0221367e+23,[0,-1,0,0,0,0,0],"mol/s","si",true,null,null,1,false,false,1,"mol per sec; moles per second; mols","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"milliosmole","mosm","MOSM","amount of substance (dissolved particles)",602213670000000000000,[0,0,0,0,0,0,0],"mosm","chemical",true,null,null,1,false,false,1,"milliosmoles","LOINC","Osmol","Clinical","equal to 1/1000 of an osmole","mol","MOL","1",1,false],[false,"milliosmole per kilogram","mosm/kg","MOSM/KG","amount of substance (dissolved particles)",602213670000000000,[0,0,-1,0,0,0,0],"mosm/kg","chemical",true,null,null,1,false,false,1,"mosm per kg; milliosmoles per kilogram","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"milliosmole per liter","mosm/L","MOSM/L","amount of substance (dissolved particles)",6.0221367e+23,[-3,0,0,0,0,0,0],"mosm/L","chemical",true,null,null,1,false,false,1,"mosm per liter; litre; milliosmoles","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"millipascal","mPa","MPAL","pressure",1,[-1,-2,1,0,0,0,0],"mPa","si",true,null,null,1,false,false,0,"millipascals","LOINC","Pres","Clinical","unit of pressure","N/m2","N/M2","1",1,false],[false,"millipascal second","mPa.s","MPAL.S","pressure",1,[-1,-1,1,0,0,0,0],"mPa.s","si",true,null,null,1,false,false,0,"mPa*s; millipoise; mP; dynamic viscosity","LOINC","Visc","Clinical","base units for millipoise, a measurement of dynamic viscosity","N/m2","N/M2","1",1,false],[true,"megasecond","Ms","MAS","time",1000000,[0,1,0,0,0,0,0],"Ms",null,false,"T",null,1,false,false,0,"megaseconds","LOINC","Time","Clinical","",null,null,null,null,false],[true,"millisecond","ms","MS","time",0.001,[0,1,0,0,0,0,0],"ms",null,false,"T",null,1,false,false,0,"milliseconds; duration","LOINC","Time","Clinical","",null,null,null,null,false],[false,"milli enzyme unit per gram","mU/g","MU/G","catalytic activity",10036894500000,[0,-1,-1,0,0,0,0],"mU/g","chemical",true,null,null,1,false,false,1,"mU per gm; milli enzyme units per gram; enzyme activity; enzymatic activity per mass","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per liter","mU/L","MU/L","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"mU/L","chemical",true,null,null,1,false,false,1,"mU per liter; litre; milli enzyme units enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milligram","mU/mg","MU/MG","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"mU/mg","chemical",true,null,null,1,false,false,1,"mU per mg; milli enzyme units per milligram","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter","mU/mL","MU/ML","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"mU/mL","chemical",true,null,null,1,false,false,1,"mU per mL; milli enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"milli enzyme unit per milliliter per minute","mU/mL/min","(MU/ML)/MIN","catalytic activity",167281575000000000,[-3,-2,0,0,0,0,0],"(mU/mL)/min","chemical",true,null,null,1,false,false,1,"mU per mL per min; mU per milliliters per minute; millilitres; milli enzyme units; enzymatic activity; enzyme activity","LOINC","CCncRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 mU = 1 nmol/min","umol/min","UMOL/MIN","1",1,false],[false,"millivolt","mV","MV","electric potential",1,[2,-2,1,0,0,-1,0],"mV","si",true,null,null,1,false,false,0,"millivolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false],[false,"Newton centimeter","N.cm","N.CM","force",10,[2,-2,1,0,0,0,0],"N.cm","si",true,null,null,1,false,false,0,"N*cm; Ncm; N cm; Newton*centimeters; Newton* centimetres; torque; work","LOINC","","Clinical","as a measurement of work, N.cm = 1/100 Joules;\\nnote that N.m is the standard unit of measurement for torque (although dimensionally equivalent to Joule), and N.cm can also be thought of as a torqe unit","kg.m/s2","KG.M/S2","1",1,false],[false,"Newton second","N.s","N.S","force",1000,[1,-1,1,0,0,0,0],"N.s","si",true,null,null,1,false,false,0,"Newton*seconds; N*s; N s; Ns; impulse; imp","LOINC","","Clinical","standard unit of impulse","kg.m/s2","KG.M/S2","1",1,false],[true,"nanogram","ng","NG","mass",1e-9,[0,0,1,0,0,0,0],"ng",null,false,"M",null,1,false,false,0,"nanograms","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"nanogram per 24 hour","ng/(24.h)","NG/HR","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/24hrs; ng/24 hrs; nanograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per 8 hour","ng/(8.h)","NG/HR","mass",3.4722222222222224e-14,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/8hrs; ng/8 hrs; nanograms per 8 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per million","ng/10*6","NG/(10*6)","mass",1e-15,[0,0,1,0,0,0,0],"ng/(10<sup>6</sup>)",null,false,"M",null,1,false,false,0,"ng/10^6; ng per 10*6; 10^6; nanograms","LOINC","MNum","Clinical","",null,null,null,null,false],[true,"nanogram per day","ng/d","NG/D","mass",1.1574074074074075e-14,[0,-1,1,0,0,0,0],"ng/d",null,false,"M",null,1,false,false,0,"ng/dy; ng per day; nanograms ","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per deciliter","ng/dL","NG/DL","mass",0.00001,[-3,0,1,0,0,0,0],"ng/dL",null,false,"M",null,1,false,false,0,"ng per dL; nanograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per gram","ng/g","NG/G","mass",1e-9,[0,0,0,0,0,0,0],"ng/g",null,false,"M",null,1,false,false,0,"ng/gm; ng per gm; nanograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per hour","ng/h","NG/HR","mass",2.777777777777778e-13,[0,-1,1,0,0,0,0],"ng/h",null,false,"M",null,1,false,false,0,"ng/hr; ng per hr; nanograms per hour","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram","ng/kg","NG/KG","mass",1e-12,[0,0,0,0,0,0,0],"ng/kg",null,false,"M",null,1,false,false,0,"ng per kg; nanograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per kilogram per 8 hour","ng/kg/(8.h)","(NG/KG)/HR","mass",3.472222222222222e-17,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(8.h.kg); ng/kg/8hrs; ng/kg/8 hrs; ng per kg per 8hrs; 8 hrs; nanograms per kilograms per 8 hours; shift","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per hour","ng/kg/h","(NG/KG)/HR","mass",2.7777777777777775e-16,[0,-1,0,0,0,0,0],"(ng/kg)/h",null,false,"M",null,1,false,false,0,"ng/(kg.h); ng/kg/hr; ng per kg per hr; nanograms per kilograms per hour","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per kilogram per minute","ng/kg/min","(NG/KG)/MIN","mass",1.6666666666666667e-14,[0,-1,0,0,0,0,0],"(ng/kg)/min",null,false,"M",null,1,false,false,0,"ng/(kg.min); ng per kg per min; nanograms per kilograms per minute","LOINC","MRtoRat ","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"nanogram per liter","ng/L","NG/L","mass",0.000001,[-3,0,1,0,0,0,0],"ng/L",null,false,"M",null,1,false,false,0,"ng per L; nanograms per liter; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per square meter","ng/m2","NG/M2","mass",1e-9,[-2,0,1,0,0,0,0],"ng/(m<sup>2</sup>)",null,false,"M",null,1,false,false,0,"ng/m^2; ng/sq. m; ng per m2; m^2; sq. meter; nanograms; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"nanogram per milligram","ng/mg","NG/MG","mass",0.000001,[0,0,0,0,0,0,0],"ng/mg",null,false,"M",null,1,false,false,0,"ng per mg; nanograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"nanogram per milligram per hour","ng/mg/h","(NG/MG)/HR","mass",2.7777777777777777e-10,[0,-1,0,0,0,0,0],"(ng/mg)/h",null,false,"M",null,1,false,false,0,"ng/mg/hr; ng per mg per hr; nanograms per milligrams per hour","LOINC","MRtoRat ","Clinical","",null,null,null,null,false],[true,"nanogram per minute","ng/min","NG/MIN","mass",1.6666666666666667e-11,[0,-1,1,0,0,0,0],"ng/min",null,false,"M",null,1,false,false,0,"ng per min; nanograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per millliiter","ng/mL","NG/ML","mass",0.001,[-3,0,1,0,0,0,0],"ng/mL",null,false,"M",null,1,false,false,0,"ng per mL; nanograms; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"nanogram per milliliter per hour","ng/mL/h","(NG/ML)/HR","mass",2.7777777777777776e-7,[-3,-1,1,0,0,0,0],"(ng/mL)/h",null,false,"M",null,1,false,false,0,"ng/mL/hr; ng per mL per mL; nanograms per milliliter per hour; nanogram per millilitre per hour; nanograms per millilitre per hour; enzymatic activity per volume; enzyme activity per milliliters","LOINC","CCnc","Clinical","tests that measure enzymatic activity",null,null,null,null,false],[true,"nanogram per second","ng/s","NG/S","mass",1e-9,[0,-1,1,0,0,0,0],"ng/s",null,false,"M",null,1,false,false,0,"ng/sec; ng per sec; nanograms per second","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"nanogram per enzyme unit","ng/U","NG/U","mass",9.963241120049634e-26,[0,1,1,0,0,0,0],"ng/U",null,false,"M",null,1,false,false,-1,"ng per U; nanograms per enzyme unit","LOINC","CMass","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)",null,null,null,null,false],[false,"nanokatal","nkat","NKAT","catalytic activity",602213670000000,[0,-1,0,0,0,0,0],"nkat","chemical",true,null,null,1,false,false,1,"nanokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"nanoliter","nL","NL","volume",1.0000000000000002e-12,[3,0,0,0,0,0,0],"nL","iso1000",true,null,null,1,false,false,0,"nanoliters; nanolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"nanometer","nm","NM","length",1e-9,[1,0,0,0,0,0,0],"nm",null,false,"L",null,1,false,false,0,"nanometers; nanometres","LOINC","Len","Clinical","",null,null,null,null,false],[true,"nanometer per second per liter","nm/s/L","(NM/S)/L","length",0.000001,[-2,-1,0,0,0,0,0],"(nm/s)/L",null,false,"L",null,1,false,false,0,"nm/sec/liter; nm/sec/litre; nm per s per l; nm per sec per l; nanometers per second per liter; nanometre per second per litre; nanometres per second per litre","LOINC","VelCnc","Clinical","",null,null,null,null,false],[false,"nanomole","nmol","NMOL","amount of substance",602213670000000,[0,0,0,0,0,0,0],"nmol","si",true,null,null,1,false,false,1,"nanomoles","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per 24 hour","nmol/(24.h)","NMOL/HR","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/h","si",true,null,null,1,false,false,1,"nmol/24hr; nmol/24 hr; nanomoles per 24 hours; nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per day","nmol/d","NMOL/D","amount of substance",6970065625,[0,-1,0,0,0,0,0],"nmol/d","si",true,null,null,1,false,false,1,"nmol/day; nanomoles per day; nmol per day; nanomole/day; nanomol/day; nmol/24hr; nmol/24 hr; nanomoles per 24 hours; ","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per deciliter","nmol/dL","NMOL/DL","amount of substance",6022136700000000000,[-3,0,0,0,0,0,0],"nmol/dL","si",true,null,null,1,false,false,1,"nmol per dL; nanomoles per deciliter; nanomole per decilitre; nanomoles per decilitre; nanomole/deciliter; nanomole/decilitre; nanomol/deciliter; nanomol/decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per gram","nmol/g","NMOL/G","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"nmol/g","si",true,null,null,1,false,false,1,"nmol per gram; nanomoles per gram; nanomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per hour per liter","nmol/h/L","(NMOL/HR)/L","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(nmol/h)/L","si",true,null,null,1,false,false,1,"nmol/hrs/L; nmol per hrs per L; nanomoles per hours per liter; litre; enzymatic activity per volume; enzyme activities","LOINC","CCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per liter","nmol/L","NMOL/L","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"nmol/L","si",true,null,null,1,false,false,1,"nmol per L; nanomoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram","nmol/mg","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nmol per mg; nanomoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram per hour","nmol/mg/h","(NMOL/MG)/HR","amount of substance",167281575000000,[0,-1,-1,0,0,0,0],"(nmol/mg)/h","si",true,null,null,1,false,false,1,"nmol/mg/hr; nmol per mg per hr; nanomoles per milligrams per hour","LOINC","SCntRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milligram of protein","nmol/mg{prot}","NMOL/MG","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"nmol/mg","si",true,null,null,1,false,false,1,"nanomoles; nmol/mg prot; nmol per mg prot","LOINC","Ratio; CCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute","nmol/min","NMOL/MIN","amount of substance",10036894500000,[0,-1,0,0,0,0,0],"nmol/min","si",true,null,null,1,false,false,1,"nmol per min; nanomoles per minute; milli enzyme units; enzyme activity per volume; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/min = mU (milli enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per minute per milliliter","nmol/min/mL","(NMOL/MIN)/ML","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/min)/mL","si",true,null,null,1,false,false,1,"nmol per min per mL; nanomoles per minutes per milliliter; millilitre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter","nmol/mL","NMOL/ML","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"nmol/mL","si",true,null,null,1,false,false,1,"nmol per mL; nanomoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per hour","nmol/mL/h","(NMOL/ML)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/h","si",true,null,null,1,false,false,1,"nmol/mL/hr; nmol per mL per hr; nanomoles per milliliters per hour; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per milliliter per minute","nmol/mL/min","(NMOL/ML)/MIN","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(nmol/mL)/min","si",true,null,null,1,false,false,1,"nmol per mL per min; nanomoles per milliliters per min; millilitres; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. nmol/mL/min = mU/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole","nmol/mmol","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nmol per mmol; nanomoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per millimole of creatinine","nmol/mmol{creat}","NMOL/MMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"nmol/mmol","si",true,null,null,1,false,false,0,"nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per mole","nmol/mol","NMOL/MOL","amount of substance",1e-9,[0,0,0,0,0,0,0],"nmol/mol","si",true,null,null,1,false,false,0,"nmol per mole; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per nanomole","nmol/nmol","NMOL/NMOL","amount of substance",1,[0,0,0,0,0,0,0],"nmol/nmol","si",true,null,null,1,false,false,0,"nmol per nmol; nanomoles","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second","nmol/s","NMOL/S","amount of substance",602213670000000,[0,-1,0,0,0,0,0],"nmol/s","si",true,null,null,1,false,false,1,"nmol/sec; nmol per sec; nanomoles per sercond; milli enzyme units; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[false,"nanomole per second per liter","nmol/s/L","(NMOL/S)/L","amount of substance",602213670000000000,[-3,-1,0,0,0,0,0],"(nmol/s)/L","si",true,null,null,1,false,false,1,"nmol/sec/L; nmol per s per L; nmol per sec per L; nanomoles per seconds per liter; litre; milli enzyme units per volume; enzyme activity; enzymatic activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min.","10*23","10*23","6.0221367",6.0221367,false],[true,"nanosecond","ns","NS","time",1e-9,[0,1,0,0,0,0,0],"ns",null,false,"T",null,1,false,false,0,"nanoseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"nanoenzyme unit per milliliter","nU/mL","NU/ML","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"nU/mL","chemical",true,null,null,1,false,false,1,"nU per mL; nanoenzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 fU = pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"Ohm meter","Ohm.m","OHM.M","electric resistance",1000,[3,-1,1,0,0,-2,0],"Ω.m","si",true,null,null,1,false,false,0,"electric resistivity; meters; metres","LOINC","","Clinical","unit of electric resistivity","V/A","V/A","1",1,false],[false,"osmole per kilogram","osm/kg","OSM/KG","amount of substance (dissolved particles)",602213670000000000000,[0,0,-1,0,0,0,0],"osm/kg","chemical",true,null,null,1,false,false,1,"osm per kg; osmoles per kilogram; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"osmole per liter","osm/L","OSM/L","amount of substance (dissolved particles)",6.0221366999999994e+26,[-3,0,0,0,0,0,0],"osm/L","chemical",true,null,null,1,false,false,1,"osm per L; osmoles per liter; litre; osmols","LOINC","Osmol","Clinical","","mol","MOL","1",1,false],[false,"picoampere","pA","PA","electric current",1e-12,[0,-1,0,0,0,1,0],"pA","si",true,null,null,1,false,false,0,"picoamperes","LOINC","","Clinical","equal to 10^-12 amperes","C/s","C/S","1",1,false],[true,"picogram","pg","PG","mass",1e-12,[0,0,1,0,0,0,0],"pg",null,false,"M",null,1,false,false,0,"picograms","LOINC","Mass; EntMass","Clinical","",null,null,null,null,false],[true,"picogram per deciliter","pg/dL","PG/DL","mass",9.999999999999999e-9,[-3,0,1,0,0,0,0],"pg/dL",null,false,"M",null,1,false,false,0,"pg per dL; picograms; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per liter","pg/L","PG/L","mass",1e-9,[-3,0,1,0,0,0,0],"pg/L",null,false,"M",null,1,false,false,0,"pg per L; picograms; litre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per milligram","pg/mg","PG/MG","mass",1e-9,[0,0,0,0,0,0,0],"pg/mg",null,false,"M",null,1,false,false,0,"pg per mg; picograms","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"picogram per milliliter","pg/mL","PG/ML","mass",0.000001,[-3,0,1,0,0,0,0],"pg/mL",null,false,"M",null,1,false,false,0,"pg per mL; picograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"picogram per millimeter","pg/mm","PG/MM","mass",1e-9,[-1,0,1,0,0,0,0],"pg/mm",null,false,"M",null,1,false,false,0,"pg per mm; picogram/millimeter; picogram/millimetre; picograms per millimeter; millimetre","LOINC","Lineic Mass","Clinical","",null,null,null,null,false],[false,"picokatal","pkat","PKAT","catalytic activity",602213670000,[0,-1,0,0,0,0,0],"pkat","chemical",true,null,null,1,false,false,1,"pkats; picokatals","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"picoliter","pL","PL","volume",1e-15,[3,0,0,0,0,0,0],"pL","iso1000",true,null,null,1,false,false,0,"picoliters; picolitres","LOINC","Vol","Clinical","","l",null,"1",1,false],[true,"picometer","pm","PM","length",1e-12,[1,0,0,0,0,0,0],"pm",null,false,"L",null,1,false,false,0,"picometers; picometres","LOINC","Len","Clinical","",null,null,null,null,false],[false,"picomole","pmol","PMOL","amount of substance",602213670000,[0,0,0,0,0,0,0],"pmol","si",true,null,null,1,false,false,1,"picomoles; pmols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per 24 hour","pmol/(24.h)","PMOL/HR","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/h","si",true,null,null,1,false,false,1,"pmol/24hrs; pmol/24 hrs; pmol per 24 hrs; 24hrs; days; dy; picomoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per day","pmol/d","PMOL/D","amount of substance",6970065.625,[0,-1,0,0,0,0,0],"pmol/d","si",true,null,null,1,false,false,1,"pmol/dy; pmol per day; 24 hours; 24hrs; 24 hrs; picomoles","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per deciliter","pmol/dL","PMOL/DL","amount of substance",6022136700000000,[-3,0,0,0,0,0,0],"pmol/dL","si",true,null,null,1,false,false,1,"pmol per dL; picomoles per deciliter; decilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per gram","pmol/g","PMOL/G","amount of substance",602213670000,[0,0,-1,0,0,0,0],"pmol/g","si",true,null,null,1,false,false,1,"pmol per gm; picomoles per gram; picomole/gram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per hour per milliliter ","pmol/h/mL","(PMOL/HR)/ML","amount of substance",167281575000000,[-3,-1,0,0,0,0,0],"(pmol/h)/mL","si",true,null,null,1,false,false,1,"pmol/hrs/mL; pmol per hrs per mL; picomoles per hour per milliliter; millilitre; micro enzyme units per volume; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. ","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per liter","pmol/L","PMOL/L","amount of substance",602213670000000,[-3,0,0,0,0,0,0],"pmol/L","si",true,null,null,1,false,false,1,"picomole/liter; pmol per L; picomoles; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per minute","pmol/min","PMOL/MIN","amount of substance",10036894500,[0,-1,0,0,0,0,0],"pmol/min","si",true,null,null,1,false,false,1,"picomole/minute; pmol per min; picomoles per minute; micro enzyme units; enzymatic activity; enzyme activity","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. pmol/min = uU (micro enzyme unit)","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per milliliter","pmol/mL","PMOL/ML","amount of substance",602213670000000000,[-3,0,0,0,0,0,0],"pmol/mL","si",true,null,null,1,false,false,1,"picomole/milliliter; picomole/millilitre; pmol per mL; picomoles; millilitre; picomols; pmols","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"picomole per micromole","pmol/umol","PMOL/UMOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"pmol/μmol","si",true,null,null,1,false,false,0,"pmol/mcgmol; picomole/micromole; pmol per umol; pmol per mcgmol; picomoles ","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[true,"picosecond","ps","PS","time",1e-12,[0,1,0,0,0,0,0],"ps",null,false,"T",null,1,false,false,0,"picoseconds; psec","LOINC","Time","Clinical","",null,null,null,null,false],[false,"picotesla","pT","PT","magnetic flux density",1e-9,[0,-1,1,0,0,-1,0],"pT","si",true,null,null,1,false,false,0,"picoteslas","LOINC","","Clinical","SI unit of magnetic field strength for magnetic field B","Wb/m2","WB/M2","1",1,false],[false,"enzyme unit per 12 hour","U/(12.h)","U/HR","catalytic activity",232335520833.33334,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/12hrs; U/ 12hrs; U per 12 hrs; 12hrs; enzyme units per 12 hours; enzyme activity; enzymatic activity per time; umol per min per 12 hours; micromoles per minute per 12 hours; umol/min/12hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 2 hour","U/(2.h)","U/HR","catalytic activity",1394013125000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/2hrs; U/ 2hrs; U per 2 hrs; 2hrs; enzyme units per 2 hours; enzyme activity; enzymatic activity per time; umol per minute per 2 hours; micromoles per minute; umol/min/2hr; umol per min per 2hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 24 hour","U/(24.h)","U/HR","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/24hrs; U/ 24hrs; U per 24 hrs; 24hrs; enzyme units per 24 hours; enzyme activity; enzymatic activity per time; micromoles per minute per 24 hours; umol/min/24hr; umol per min per 24hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10","U/10","U","catalytic activity",1003689450000000,[0,-1,0,0,0,0,0],"U","chemical",true,null,null,1,false,false,1,"enzyme unit/10; U per 10; enzyme units per 10; enzymatic activity; enzyme activity; micromoles per minute; umol/min/10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per 10 billion","U/10*10","U/(10*10)","catalytic activity",1003689.45,[0,-1,0,0,0,0,0],"U/(10<sup>10</sup>)","chemical",true,null,null,1,false,false,1,"U per 10*10; enzyme units per 10*10; U per 10 billion; enzyme units; enzymatic activity; micromoles per minute per 10 billion; umol/min/10*10","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per trillion","U/10*12","U/(10*12)","catalytic activity",10036.8945,[0,-1,0,0,0,0,0],"U/(10<sup>12</sup>)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*12; U per 10*12; enzyme units per 10*12; enzyme units per trillion; enzymatic activity; micromoles per minute per trillion; umol/min/10*12; umol per min per 10*12","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per million","U/10*6","U/(10*6)","catalytic activity",10036894500,[0,-1,0,0,0,0,0],"U/(10<sup>6</sup>)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*6; U per 10*6; enzyme units per 10*6; enzyme units; enzymatic activity per volume; micromoles per minute per million; umol/min/10*6; umol per min per 10*6","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per billion","U/10*9","U/(10*9)","catalytic activity",10036894.5,[0,-1,0,0,0,0,0],"U/(10<sup>9</sup>)","chemical",true,null,null,1,false,false,1,"enzyme unit/10*9; U per 10*9; enzyme units per 10*9; enzymatic activity per volume; micromoles per minute per billion; umol/min/10*9; umol per min per 10*9","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per day","U/d","U/D","catalytic activity",116167760416.66667,[0,-2,0,0,0,0,0],"U/d","chemical",true,null,null,1,false,false,1,"U/dy; enzyme units per day; enzyme units; enzyme activity; enzymatic activity per time; micromoles per minute per day; umol/min/day; umol per min per day","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per deciliter","U/dL","U/DL","catalytic activity",100368945000000000000,[-3,-1,0,0,0,0,0],"U/dL","chemical",true,null,null,1,false,false,1,"U per dL; enzyme units per deciliter; decilitre; micromoles per minute per deciliter; umol/min/dL; umol per min per dL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per gram","U/g","U/G","catalytic activity",10036894500000000,[0,-1,-1,0,0,0,0],"U/g","chemical",true,null,null,1,false,false,1,"U/gm; U per gm; enzyme units per gram; micromoles per minute per gram; umol/min/g; umol per min per g","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per hour","U/h","U/HR","catalytic activity",2788026250000,[0,-2,0,0,0,0,0],"U/h","chemical",true,null,null,1,false,false,1,"U/hr; U per hr; enzyme units per hour; micromoles per minute per hour; umol/min/hr; umol per min per hr","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per liter","U/L","U/L","catalytic activity",10036894500000000000,[-3,-1,0,0,0,0,0],"U/L","chemical",true,null,null,1,false,false,1,"enzyme unit/liter; enzyme unit/litre; U per L; enzyme units per liter; enzyme unit per litre; micromoles per minute per liter; umol/min/L; umol per min per L","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per minute","U/min","U/MIN","catalytic activity",167281575000000,[0,-2,0,0,0,0,0],"U/min","chemical",true,null,null,1,false,false,1,"enzyme unit/minute; U per min; enzyme units; umol/min/min; micromoles per minute per minute; micromoles per min per min; umol","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per milliliter","U/mL","U/ML","catalytic activity",1.00368945e+22,[-3,-1,0,0,0,0,0],"U/mL","chemical",true,null,null,1,false,false,1,"U per mL; enzyme units per milliliter; millilitre; micromoles per minute per milliliter; umol/min/mL; umol per min per mL","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"enzyme unit per second","U/s","U/S","catalytic activity",10036894500000000,[0,-2,0,0,0,0,0],"U/s","chemical",true,null,null,1,false,false,1,"U/sec; U per second; enzyme units per second; micromoles per minute per second; umol/min/sec; umol per min per sec","LOINC","CRat","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min)","umol/min","UMOL/MIN","1",1,false],[false,"micro international unit","u[IU]","U[IU]","arbitrary",0.000001,[0,0,0,0,0,0,0],"μi.U.","chemical",true,null,null,1,false,true,0,"uIU; u IU; microinternational units","LOINC","Arb","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per liter","u[IU]/L","U[IU]/L","arbitrary",0.001,[-3,0,0,0,0,0,0],"(μi.U.)/L","chemical",true,null,null,1,false,true,0,"uIU/L; u IU/L; uIU per L; microinternational units per liter; litre; ","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"micro international unit per milliliter","u[IU]/mL","U[IU]/ML","arbitrary",1,[-3,0,0,0,0,0,0],"(μi.U.)/mL","chemical",true,null,null,1,false,true,0,"uIU/mL; u IU/mL; uIU per mL; microinternational units per milliliter; millilitre","LOINC","ACnc","Clinical","International units (IU) are analyte and reference specimen specific arbitrary units (held at WHO)","[iU]","[IU]","1",1,false],[false,"microequivalent","ueq","UEQ","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"μeq","chemical",true,null,null,1,false,false,1,"microequivalents; 10^-6 equivalents; 10-6 equivalents","LOINC","Sub","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per liter","ueq/L","UEQ/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"μeq/L","chemical",true,null,null,1,false,false,1,"ueq per liter; litre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[false,"microequivalent per milliliter","ueq/mL","UEQ/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"μeq/mL","chemical",true,null,null,1,false,false,1,"ueq per milliliter; millilitre; microequivalents","LOINC","MCnc","Clinical","","mol","MOL","1",1,false],[true,"microgram","ug","UG","mass",0.000001,[0,0,1,0,0,0,0],"μg",null,false,"M",null,1,false,false,0,"mcg; micrograms; 10^-6 grams; 10-6 grams","LOINC","Mass","Clinical","",null,null,null,null,false],[true,"microgram per 100 gram","ug/(100.g)","UG/G","mass",1e-8,[0,0,0,0,0,0,0],"μg/g",null,false,"M",null,1,false,false,0,"ug/100gm; ug/100 gm; mcg; ug per 100g; 100 gm; mcg per 100g; micrograms per 100 grams","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per 24 hour","ug/(24.h)","UG/HR","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"μg/h",null,false,"M",null,1,false,false,0,"ug/24hrs; ug/24 hrs; mcg/24hrs; ug per 24hrs; mcg per 24hrs; 24 hrs; micrograms per 24 hours","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per 8 hour","ug/(8.h)","UG/HR","mass",3.472222222222222e-11,[0,-1,1,0,0,0,0],"μg/h",null,false,"M",null,1,false,false,0,"ug/8hrs; ug/8 hrs; mcg/8hrs; ug per 8hrs; mcg per 8hrs; 8 hrs; micrograms per 8 hours; shift","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per square foot (international)","ug/[sft_i]","UG/[SFT_I]","mass",0.000010763910416709721,[-2,0,1,0,0,0,0],"μg",null,false,"M",null,1,false,false,0,"ug/sft; ug/ft2; ug/ft^2; ug/sq. ft; micrograms; sq. foot; foot squared","LOINC","ArMass","Clinical","",null,null,null,null,false],[true,"microgram per day","ug/d","UG/D","mass",1.1574074074074074e-11,[0,-1,1,0,0,0,0],"μg/d",null,false,"M",null,1,false,false,0,"ug/dy; mcg/dy; ug per day; mcg; micrograms per day","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per deciliter","ug/dL","UG/DL","mass",0.009999999999999998,[-3,0,1,0,0,0,0],"μg/dL",null,false,"M",null,1,false,false,0,"ug per dL; mcg/dl; mcg per dl; micrograms per deciliter; decilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per gram","ug/g","UG/G","mass",0.000001,[0,0,0,0,0,0,0],"μg/g",null,false,"M",null,1,false,false,0,"ug per gm; mcg/gm; mcg per g; micrograms per gram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per hour","ug/h","UG/HR","mass",2.7777777777777777e-10,[0,-1,1,0,0,0,0],"μg/h",null,false,"M",null,1,false,false,0,"ug/hr; mcg/hr; mcg per hr; ug per hr; ug per hour; micrograms","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per kilogram","ug/kg","UG/KG","mass",9.999999999999999e-10,[0,0,0,0,0,0,0],"μg/kg",null,false,"M",null,1,false,false,0,"ug per kg; mcg/kg; mcg per kg; micrograms per kilogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per kilogram per 8 hour","ug/kg/(8.h)","(UG/KG)/HR","mass",3.472222222222222e-14,[0,-1,0,0,0,0,0],"(μg/kg)/h",null,false,"M",null,1,false,false,0,"ug/kg/8hrs; mcg/kg/8hrs; ug/kg/8 hrs; mcg/kg/8 hrs; ug per kg per 8hrs; 8 hrs; mcg per kg per 8hrs; micrograms per kilograms per 8 hours; shift","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per day","ug/kg/d","(UG/KG)/D","mass",1.1574074074074072e-14,[0,-1,0,0,0,0,0],"(μg/kg)/d",null,false,"M",null,1,false,false,0,"ug/(kg.d); ug/kg/dy; mcg/kg/day; ug per kg per dy; 24 hours; 24hrs; mcg; kilograms; microgram per kilogram and day","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per hour","ug/kg/h","(UG/KG)/HR","mass",2.7777777777777774e-13,[0,-1,0,0,0,0,0],"(μg/kg)/h",null,false,"M",null,1,false,false,0,"ug/(kg.h); ug/kg/hr; mcg/kg/hr; ug per kg per hr; mcg per kg per hr; kilograms","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per kilogram per minute","ug/kg/min","(UG/KG)/MIN","mass",1.6666666666666664e-11,[0,-1,0,0,0,0,0],"(μg/kg)/min",null,false,"M",null,1,false,false,0,"ug/kg/min; ug/kg/min; mcg/kg/min; ug per kg per min; mcg; micrograms per kilograms per minute ","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per liter","ug/L","UG/L","mass",0.001,[-3,0,1,0,0,0,0],"μg/L",null,false,"M",null,1,false,false,0,"mcg/L; ug per L; mcg; micrograms per liter; litre ","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per liter per 24 hour","ug/L/(24.h)","(UG/L)/HR","mass",1.1574074074074074e-8,[-3,-1,1,0,0,0,0],"(μg/L)/h",null,false,"M",null,1,false,false,0,"ug/L/24hrs; ug/L/24 hrs; mcg/L/24hrs; ug per L per 24hrs; 24 hrs; day; dy mcg; micrograms per liters per 24 hours; litres","LOINC","","Clinical","unit used to measure mass dose rate per patient body mass",null,null,null,null,false],[true,"microgram per square meter","ug/m2","UG/M2","mass",0.000001,[-2,0,1,0,0,0,0],"μg/(m<sup>2</sup>)",null,false,"M",null,1,false,false,0,"ug/m^2; ug/sq. m; mcg/m2; mcg/m^2; mcg/sq. m; ug per m2; m^2; sq. meter; mcg; micrograms per square meter; meter squared; metre","LOINC","ArMass","Clinical","unit used to measure mass dose per patient body surface area",null,null,null,null,false],[true,"microgram per cubic meter","ug/m3","UG/M3","mass",0.000001,[-3,0,1,0,0,0,0],"μg/(m<sup>3</sup>)",null,false,"M",null,1,false,false,0,"ug/m^3; ug/cu. m; mcg/m3; mcg/m^3; mcg/cu. m; ug per m3; ug per m^3; ug per cu. m; mcg; micrograms per cubic meter; meter cubed; metre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per milligram","ug/mg","UG/MG","mass",0.001,[0,0,0,0,0,0,0],"μg/mg",null,false,"M",null,1,false,false,0,"ug per mg; mcg/mg; mcg per mg; micromilligrams per milligram","LOINC","MCnt","Clinical","",null,null,null,null,false],[true,"microgram per minute","ug/min","UG/MIN","mass",1.6666666666666667e-8,[0,-1,1,0,0,0,0],"μg/min",null,false,"M",null,1,false,false,0,"ug per min; mcg/min; mcg per min; microminutes per minute","LOINC","MRat","Clinical","",null,null,null,null,false],[true,"microgram per milliliter","ug/mL","UG/ML","mass",1,[-3,0,1,0,0,0,0],"μg/mL",null,false,"M",null,1,false,false,0,"ug per mL; mcg/mL; mcg per mL; micrograms per milliliter; millilitre","LOINC","MCnc","Clinical","",null,null,null,null,false],[true,"microgram per millimole","ug/mmol","UG/MMOL","mass",1.660540186674939e-27,[0,0,1,0,0,0,0],"μg/mmol",null,false,"M",null,1,false,false,-1,"ug per mmol; mcg/mmol; mcg per mmol; micrograms per millimole","LOINC","Ratio","Clinical","",null,null,null,null,false],[true,"microgram per nanogram","ug/ng","UG/NG","mass",999.9999999999999,[0,0,0,0,0,0,0],"μg/ng",null,false,"M",null,1,false,false,0,"ug per ng; mcg/ng; mcg per ng; micrograms per nanogram","LOINC","MCnt","Clinical","",null,null,null,null,false],[false,"microkatal","ukat","UKAT","catalytic activity",602213670000000000,[0,-1,0,0,0,0,0],"μkat","chemical",true,null,null,1,false,false,1,"microkatals; ukats","LOINC","CAct","Clinical","kat is a unit of catalytic activity with base units = mol/s. Rarely used because its units are too large to practically express catalytic activity. See enzyme unit [U] which is the standard unit for catalytic activity.","mol/s","MOL/S","1",1,false],[false,"microliter","uL","UL","volume",1e-9,[3,0,0,0,0,0,0],"μL","iso1000",true,null,null,1,false,false,0,"microliters; microlitres; mcl","LOINC","Vol","Clinical","","l",null,"1",1,false],[false,"microliter per 2 hour","uL/(2.h)","UL/HR","volume",1.388888888888889e-13,[3,-1,0,0,0,0,0],"μL/h","iso1000",true,null,null,1,false,false,0,"uL/2hrs; uL/2 hrs; mcg/2hr; mcg per 2hr; uL per 2hr; uL per 2 hrs; microliters per 2 hours; microlitres ","LOINC","VRat","Clinical","","l",null,"1",1,false],[false,"microliter per hour","uL/h","UL/HR","volume",2.777777777777778e-13,[3,-1,0,0,0,0,0],"μL/h","iso1000",true,null,null,1,false,false,0,"uL/hr; mcg/hr; mcg per hr; uL per hr; microliters per hour; microlitres","LOINC","VRat","Clinical","","l",null,"1",1,false],[true,"micrometer","um","UM","length",0.000001,[1,0,0,0,0,0,0],"μm",null,false,"L",null,1,false,false,0,"micrometers; micrometres; μm; microns","LOINC","Len","Clinical","Unit of length that is usually used in tests related to the eye",null,null,null,null,false],[true,"microns per second","um/s","UM/S","length",0.000001,[1,-1,0,0,0,0,0],"μm/s",null,false,"L",null,1,false,false,0,"um/sec; micron/second; microns/second; um per sec; micrometers per second; micrometres","LOINC","Vel","Clinical","",null,null,null,null,false],[false,"micromole","umol","UMOL","amount of substance",602213670000000000,[0,0,0,0,0,0,0],"μmol","si",true,null,null,1,false,false,1,"micromoles; umols","LOINC","Sub","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 2 hour","umol/(2.h)","UMOL/HR","amount of substance",83640787500000,[0,-1,0,0,0,0,0],"μmol/h","si",true,null,null,1,false,false,1,"umol/2hrs; umol/2 hrs; umol per 2 hrs; 2hrs; micromoles per 2 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 24 hour","umol/(24.h)","UMOL/HR","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"μmol/h","si",true,null,null,1,false,false,1,"umol/24hrs; umol/24 hrs; umol per 24 hrs; per 24hrs; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per 8 hour","umol/(8.h)","UMOL/HR","amount of substance",20910196875000,[0,-1,0,0,0,0,0],"μmol/h","si",true,null,null,1,false,false,1,"umol/8hr; umol/8 hr; umol per 8 hr; umol per 8hr; umols per 8hr; umol per 8 hours; micromoles per 8 hours; shift","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per day","umol/d","UMOL/D","amount of substance",6970065625000,[0,-1,0,0,0,0,0],"μmol/d","si",true,null,null,1,false,false,1,"umol/day; umol per day; umols per day; umol per days; micromoles per days; umol/24hr; umol/24 hr; umol per 24 hr; umol per 24hr; umols per 24hr; umol per 24 hours; micromoles per 24 hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per deciliter","umol/dL","UMOL/DL","amount of substance",6.0221367e+21,[-3,0,0,0,0,0,0],"μmol/dL","si",true,null,null,1,false,false,1,"micromole/deciliter; micromole/decilitre; umol per dL; micromoles per deciliters; micromole per decilitres","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per gram","umol/g","UMOL/G","amount of substance",602213670000000000,[0,0,-1,0,0,0,0],"μmol/g","si",true,null,null,1,false,false,1,"micromole/gram; umol per g; micromoles per gram","LOINC","SCnt; Ratio","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per hour","umol/h","UMOL/HR","amount of substance",167281575000000,[0,-1,0,0,0,0,0],"μmol/h","si",true,null,null,1,false,false,1,"umol/hr; umol per hr; umol per hour; micromoles per hours","LOINC","SRat","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per kilogram","umol/kg","UMOL/KG","amount of substance",602213670000000,[0,0,-1,0,0,0,0],"μmol/kg","si",true,null,null,1,false,false,1,"umol per kg; micromoles per kilogram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter","umol/L","UMOL/L","amount of substance",602213670000000000000,[-3,0,0,0,0,0,0],"μmol/L","si",true,null,null,1,false,false,1,"micromole/liter; micromole/litre; umol per liter; micromoles per liter; litre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per liter per hour","umol/L/h","(UMOL/L)/HR","amount of substance",167281575000000000,[-3,-1,0,0,0,0,0],"(μmol/L)/h","si",true,null,null,1,false,false,1,"umol/liter/hr; umol/litre/hr; umol per L per hr; umol per liter per hour; micromoles per liters per hour; litre","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min; umol/L/h is a derived unit of enzyme units","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milligram","umol/mg","UMOL/MG","amount of substance",602213670000000000000,[0,0,-1,0,0,0,0],"μmol/mg","si",true,null,null,1,false,false,1,"micromole/milligram; umol per mg; micromoles per milligram","LOINC","SCnt","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute","umol/min","UMOL/MIN","amount of substance",10036894500000000,[0,-1,0,0,0,0,0],"μmol/min","si",true,null,null,1,false,false,1,"micromole/minute; umol per min; micromoles per minute; enzyme units","LOINC","CAct","Clinical","unit for the enzyme unit U = umol/min","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per gram","umol/min/g","(UMOL/MIN)/G","amount of substance",10036894500000000,[0,-1,-1,0,0,0,0],"(μmol/min)/g","si",true,null,null,1,false,false,1,"umol/min/gm; umol per min per gm; micromoles per minutes per gram; U/g; enzyme units","LOINC","CCnt","Clinical","unit for the enzyme unit U = umol/min. umol/min/g = U/g","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per minute per liter","umol/min/L","(UMOL/MIN)/L","amount of substance",10036894500000000000,[-3,-1,0,0,0,0,0],"(μmol/min)/L","si",true,null,null,1,false,false,1,"umol/min/liter; umol/minute/liter; micromoles per minutes per liter; litre; enzyme units; U/L","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/min/L = U/L","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter","umol/mL","UMOL/ML","amount of substance",6.0221367000000003e+23,[-3,0,0,0,0,0,0],"μmol/mL","si",true,null,null,1,false,false,1,"umol per mL; micromoles per milliliter; millilitre","LOINC","SCnc","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per milliliter per minute","umol/mL/min","(UMOL/ML)/MIN","amount of substance",1.00368945e+22,[-3,-1,0,0,0,0,0],"(μmol/mL)/min","si",true,null,null,1,false,false,1,"umol per mL per min; micromoles per milliliters per minute; millilitres","LOINC","CCnc","Clinical","unit for the enzyme unit U = umol/min. umol/mL/min = U/mL","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per millimole","umol/mmol","UMOL/MMOL","amount of substance",0.001,[0,0,0,0,0,0,0],"μmol/mmol","si",true,null,null,1,false,false,0,"umol per mmol; micromoles per millimole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per mole","umol/mol","UMOL/MOL","amount of substance",0.000001,[0,0,0,0,0,0,0],"μmol/mol","si",true,null,null,1,false,false,0,"umol per mol; micromoles per mole","LOINC","SRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"micromole per micromole","umol/umol","UMOL/UMOL","amount of substance",1,[0,0,0,0,0,0,0],"μmol/μmol","si",true,null,null,1,false,false,0,"umol per umol; micromoles per micromole","LOINC","Srto; SFr; EntSRto","Clinical","","10*23","10*23","6.0221367",6.0221367,false],[false,"microOhm","uOhm","UOHM","electric resistance",0.001,[2,-1,1,0,0,-2,0],"μΩ","si",true,null,null,1,false,false,0,"microOhms; µΩ","LOINC","","Clinical","unit of electric resistance","V/A","V/A","1",1,false],[true,"microsecond","us","US","time",0.000001,[0,1,0,0,0,0,0],"μs",null,false,"T",null,1,false,false,0,"microseconds","LOINC","Time","Clinical","",null,null,null,null,false],[false,"micro enzyme unit per gram","uU/g","UU/G","catalytic activity",10036894500,[0,-1,-1,0,0,0,0],"μU/g","chemical",true,null,null,1,false,false,1,"uU per gm; micro enzyme units per gram; micro enzymatic activity per mass; enzyme activity","LOINC","CCnt","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per liter","uU/L","UU/L","catalytic activity",10036894500000,[-3,-1,0,0,0,0,0],"μU/L","chemical",true,null,null,1,false,false,1,"uU per L; micro enzyme units per liter; litre; enzymatic activity per volume; enzyme activity ","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"micro enzyme unit per milliliter","uU/mL","UU/ML","catalytic activity",10036894500000000,[-3,-1,0,0,0,0,0],"μU/mL","chemical",true,null,null,1,false,false,1,"uU per mL; micro enzyme units per milliliter; millilitre; enzymatic activity per volume; enzyme activity","LOINC","CCnc","Clinical","1 U is the standard enzyme unit which equals 1 micromole substrate catalyzed per minute (1 umol/min); 1 uU = 1pmol/min","umol/min","UMOL/MIN","1",1,false],[false,"microvolt","uV","UV","electric potential",0.001,[2,-2,1,0,0,-1,0],"μV","si",true,null,null,1,false,false,0,"microvolts","LOINC","Elpot","Clinical","unit of electric potential (voltage)","J/C","J/C","1",1,false]]}}')},function(e,t,n){"use strict";function i(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""," is invalid.\n"],[""," is invalid.\\n"]);return i=function(){return e},e}function a(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.UnitString=void 0;var l=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(n(9));function s(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}var o=n(1).Ucum,u=n(16).Unit,c=n(2).UnitTables,f=n(15).PrefixTables,d=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.utabs_=c.getInstance(),this.pfxTabs_=f.getInstance(),this.openEmph_=o.openEmph_,this.closeEmph_=o.closeEmph_,this.bracesMsg_="",this.parensFlag_="parens_placeholder",this.pFlagLen_=this.parensFlag_.length,this.braceFlag_="braces_placeholder",this.bFlagLen_=this.braceFlag_.length,this.vcMsgStart_=null,this.vcMsgEnd_=null,this.retMsg_=[],this.parensUnits_=[],this.annotations_=[],this.suggestions=[]}var t,n,r;return t=e,(n=[{key:"useHTMLInMessages",value:function(e){void 0===e||e?(this.openEmph_=o.openEmphHTML_,this.closeEmph_=o.closeEmphHTML_):(this.openEmph_=o.openEmph_,this.closeEmph_=o.closeEmph_)}},{key:"useBraceMsgForEachString",value:function(e){this.bracesMsg_=void 0===e||e?o.bracesMsg_:""}},{key:"parseString",value:function(e,t,n){if(""===(e=e.trim())||null===e)throw new Error("Please specify a unit expression to be validated.");"validate"===t?(this.vcMsgStart_=o.valMsgStart_,this.vcMsgEnd_=o.valMsgEnd_):(this.vcMsgStart_=o.cnvMsgStart_,this.vcMsgEnd_=o.cnvMsgEnd_),this.suggestions_=void 0===n||!1===n?null:[],this.retMsg_=[],this.parensUnits_=[],this.annotations_=[];var i=e,a=[];if(e=this._getAnnotations(e),this.retMsg_.length>0)a[0]=null,a[1]=null;else{this.retMsg_.length;var r=null;for(r in o.specUnits_)for(;-1!==e.indexOf(r);)e=e.replace(r,o.specUnits_[r]);if(e.indexOf(" ")>-1)throw new Error("Blank spaces are not allowed in unit expressions.");var s=(a=this._parseTheString(e,i))[0];(l.isIntegerUnit(s)||"number"==typeof s)&&(s=new u({csCode_:i,magnitude_:s,name_:i}),a[0]=s)}return a[2]=this.retMsg_,this.suggestions_&&this.suggestions_.length>0&&(a[3]=this.suggestions_),a}},{key:"_parseTheString",value:function(e,t){var n=null,i=this.retMsg_.length>0,a=this._processParens(e,t),r=[];if(!(i=a[2])){e=a[0],t=a[1];var s=this._makeUnitsArray(e,t);if(!(i=s[2])){r=s[0],t=s[1];for(var o=r.length,u=0;u<o;u++){var c=r[u].un;if(l.isIntegerUnit(c))r[u].un=Number(c);else if(c.indexOf(this.parensFlag_)>=0){var f=this._getParensUnit(c,t);i||(i=f[1]),i||(r[u].un=f[0])}else{var d=this._makeUnit(c,t);null===d[0]?i=!0:(r[u].un=d[0],t=d[1])}}}}return i||null!==r[0]&&" "!==r[0]&&void 0!==r[0].un&&null!==r[0].un||0!==this.retMsg_.length||(this.retMsg_.push("Unit string (".concat(t,") did not contain ")+"anything that could be used to create a unit, or else something that is not handled yet by this package. Sorry"),i=!0),i||(n=this._performUnitArithmetic(r,t)),[n,t]}},{key:"_getAnnotations",value:function(e){for(var t=e.indexOf("{");t>=0;){var n=e.indexOf("}");if(n<0)this.retMsg_.push("Missing closing brace for annotation starting at "+this.openEmph_+e.substr(t)+this.closeEmph_),t=-1;else{var i=e.substring(t,n+1),a=this.annotations_.length.toString();e=e.replace(i,this.braceFlag_+a+this.braceFlag_),this.annotations_.push(i),t=e.indexOf("{")}}var r=e.indexOf("}");return r>=0&&this.retMsg_.push("Missing opening brace for closing brace found at "+this.openEmph_+e.substring(0,r+1)+this.closeEmph_),e}},{key:"_processParens",value:function(e,t){for(var n=[],i=0,a=!1,r=this.parensUnits_.length,l=0;""!==e&&!a;){var s=0,o=0,u=e.indexOf("(");if(u<0){var c=e.indexOf(")");if(c>=0){var f="Missing open parenthesis for close "+"parenthesis at ".concat(e.substring(0,c+l))+"".concat(this.openEmph_).concat(e.substr(c,1)).concat(this.closeEmph_);c<e.length-1&&(f+="".concat(e.substr(c+1))),this.retMsg_.push(f),n[i]=e,a=!0}else n[i]=e,e=""}else{s+=1;var d=e.length;u>0&&(n[i++]=e.substr(0,u));for(var p=0,m=u+1;m<d&&s!=o;m++)"("===e[m]?s+=1:")"===e[m]&&(o+=1);if(s===o){p=m,n[i++]=this.parensFlag_+r.toString()+this.parensFlag_;var h=this._parseTheString(e.substring(u+1,p-1),t);null===h[0]?a=!0:(t=h[1],this.parensUnits_[r++]=h[0],e=e.substr(p),l=p)}else n.push(t.substr(u)),this.retMsg_.push("Missing close parenthesis for open parenthesis at "+"".concat(t.substring(0,u+l))+"".concat(this.openEmph_).concat(t.substr(u,1))+"".concat(this.closeEmph_).concat(t.substr(u+1))),a=!0}}return a&&(this.parensUnits_=[]),[n.join(""),t,a]}},{key:"_makeUnitsArray",value:function(e,t){var n=e.match(/([./]|[^./]+)/g),i=!1,a=[],r=/(^[0-9]+)(\[?[a-zA-Z\_0-9a-zA-Z\_]+\]?$)/;if("/"===n[0]?n.unshift("1"):"."===n[0]&&(this.retMsg_.push("".concat(t," is not a valid UCUM code. ")+"The multiplication operator at the beginning of the expression is not valid. A multiplication operator must appear only between two codes."),i=!0),!i){if(!l.isNumericString(n[0])){var s=n[0].match(r);if(s&&3===s.length&&""!==s[1]&&""!==s[2]&&0!==s[2].indexOf(this.braceFlag_)){var u=s[2];if(!i&&-1!==s[2].indexOf(this.parensFlag_)){var c=this._getParensUnit(s[2],t);s[2]=c[0].csCode_,u="(".concat(s[2],")"),i=c[1]}i||(this.retMsg_.push("".concat(s[1]).concat(u," is not a valid UCUM code.")+" ".concat(this.vcMsgStart_).concat(s[1],".").concat(u).concat(this.vcMsgEnd_)),t=t.replace("".concat(s[1]).concat(u),"".concat(s[1],".").concat(u)),n[0]=s[2],n.unshift(s[1],"."))}}if(!i){var f=n.length;a=[{op:"",un:n[0]}];for(var d=1;d<f;d++){var p=n[d++];if(n[d])if(-1!==o.validOps_.indexOf(n[d]))this.retMsg_.push("".concat(t," is not a valid UCUM code. ")+"A unit code is missing between".concat(this.openEmph_)+"".concat(p).concat(this.closeEmph_,"and").concat(this.openEmph_)+"".concat(n[d]).concat(this.closeEmph_,"in").concat(this.openEmph_)+"".concat(p).concat(n[d]).concat(this.closeEmph_,".")),d=f,i=!0;else if(l.isNumericString(n[d]))a.push({op:p,un:n[d]});else{var m=n[d].match(r);if(m&&3===m.length&&""!==m[1]&&""!==m[2]&&0!==m[2].indexOf(this.braceFlag_)){var h=m[0];if(i||-1===m[2].indexOf(this.parensFlag_)){var g="("+m[1]+"."+m[2]+")",v=this._processParens(g,t);v[2]?(d=f,i=!0):(this.retMsg_.push("".concat(m[0]," is not a ")+"valid UCUM code. ".concat(this.vcMsgStart_).concat(m[1],".").concat(m[2])+"".concat(this.vcMsgEnd_)),t=t.replace(m[0],g),a.push({op:p,un:v[0]}))}else{var y=this._getParensUnit(m[2],t);if(m[2]=y[0].csCode_,h="(".concat(m[2],")"),!(i=y[1])){this.retMsg_.push("".concat(m[1]).concat(h," is not a ")+"valid UCUM code. ".concat(this.vcMsgStart_).concat(m[1],".").concat(h)+"".concat(this.vcMsgEnd_));var b="(".concat(m[1],".").concat(h,")");t=t.replace("".concat(m[1]).concat(h),b);var _=this._processParens(b,t);(i=_[2])||a.push({op:p,un:_[0]})}}}else a.push({op:p,un:n[d]})}else this.retMsg_.push("".concat(t," is not a valid UCUM code. ")+"It is terminated with the operator ".concat(this.openEmph_)+"".concat(p).concat(this.closeEmph_,".")),d=f,i=!0}}}return[a,t,i]}},{key:"_getParensUnit",value:function(e,t){var n=!1,i=null,a=e.indexOf(this.parensFlag_),r=null;a>0&&(r=e.substr(0,a-1));var s=e.lastIndexOf(this.parensFlag_),o=null;s+this.pFlagLen_<e.length&&(o=e.substr(s+this.pFlagLen_));var c=e.substring(a+this.pFlagLen_,s);if(!l.isNumericString(c))throw new Error("Processing error - invalid parens number ".concat(c," ")+"found in ".concat(e,"."));if(i=this.parensUnits_[Number(c)],e=l.isIntegerUnit(i)?i:i.csCode_,r)if(l.isNumericString(r)){var f=i.getProperty("magnitude_");f*=Number(r),i.assignVals({magnitude_:f}),e="".concat(r,".").concat(e),this.retMsg_.push("".concat(r).concat(e," is not a valid UCUM code.\n")+this.vcMsgStart_+e+this.vcMsgEnd_)}else if(r.indexOf(this.braceFlag_)>=0){var d=this._getAnnoText(r,t);if(d[1]||d[2])throw new Error("Text found before the parentheses ("+"".concat(r,") included an annotation along with other text ")+"for parenthetical unit ".concat(i.csCode_));e+=d[0],this.retMsg_.push("The annotation ".concat(d[0]," before the unit ")+"code is invalid.\n"+this.vcMsgStart_+e+this.vcMsgEnd_)}else this.suggestions_?n="succeeded"!==this._getSuggestions(r):(this.retMsg_.push("".concat(r," preceding the unit code ").concat(e," ")+"is invalid. Unable to make a substitution."),n=!0);if(o)if(o.indexOf(this.braceFlag_)>=0){var p=this._getAnnoText(o,t);if(p[1]||p[2])throw new Error("Text found after the parentheses ("+"".concat(o,") included an annotation along with other text ")+"for parenthetical unit ".concat(i.csCode_));e+=p[0]}else l.isNumericString(o)?(e+=o,i=i.power(Number(o)),this.retMsg_.push("An exponent (".concat(o,") following a parenthesis ")+"is invalid as of revision 1.9 of the UCUM Specification.\n "+this.vcMsgStart_+e+this.vcMsgEnd_)):this.suggestions_?n="succeeded"!==this._getSuggestions(r):(this.retMsg_.push("Text ".concat(o," following the unit code ").concat(e," ")+"is invalid. Unable to make a substitution."),n=!0);return n||(i?l.isIntegerUnit(i)?i=new u({csCode_:i,magnitude_:i,name_:i}):i.csCode_=e:i=new u({csCode_:e,magnitude_:1,name_:e})),[i,n]}},{key:"_getAnnoText",value:function(e,t){var n=e.indexOf(this.braceFlag_),i=n>0?e.substring(0,n):null;0!==n&&(e=e.substr(n));var a=e.indexOf(this.braceFlag_,1),r=a+this.bFlagLen_<e.length?e.substr(a+this.bFlagLen_):null,s=e.substring(this.bFlagLen_,a),o=Number(s);if(!l.isNumericString(s)||o>=this.annotations_.length)throw new Error("Processing Error - invalid annotation index ".concat(s," found ")+"in ".concat(e," that was created from ").concat(t));return[e=this.annotations_[o],i,r]}},{key:"_getSuggestions",value:function(e){var t=l.getSynonyms(e);if("succeeded"===t.status){var n={};n.msg="".concat(e," is not a valid UCUM code. We found possible ")+"units that might be what was meant:",n.invalidUnit=e;var i=t.units.length;n.units=[];for(var a=0;a<i;a++){var r=t.units[a],s=[r.code,r.name,r.guidance];n.units.push(s)}this.suggestions_.push(n)}else this.retMsg_.push("".concat(e," is not a valid UCUM code. No alternatives ")+"were found.");return t.status}},{key:"_makeUnit",value:function(e,t){var n=this.utabs_.getUnitByCode(e);if(n)n=n.clone();else if(e.indexOf(this.braceFlag_)>=0){var i=this._getUnitWithAnnotation(e,t);(n=i[0])&&(t=i[1])}else{if(e.indexOf("^")>-1){var a=e.replace("^","*");(n=this.utabs_.getUnitByCode(a))&&((n=n.clone()).csCode_=n.csCode_.replace("*","^"),n.ciCode_=n.ciCode_.replace("*","^"))}if(!n){var r="["+e+"]";(n=this.utabs_.getUnitByCode(r))&&(n=n.clone(),t=t.replace(e,r),this.retMsg_.push("".concat(e," is not a valid unit expression, but ")+"".concat(r," is.\n")+this.vcMsgStart_+"".concat(r," (").concat(n.name_,")").concat(this.vcMsgEnd_)))}if(!n){var l=this.utabs_.getUnitByName(e);if(l&&l.length>0){for(var s="The UCUM code for "+e+" is "+(n=l[0].clone()).csCode_+".\n"+this.vcMsgStart_+n.csCode_+this.vcMsgEnd_,u=!1,c=0;c<this.retMsg_.length&&!u;c++)u=this.retMsg_[c]===s;u||this.retMsg_.push(s);var f=new RegExp("(^|[./({])("+e+")($|[./)}])"),d=t.match(f);t=t.replace(f,d[1]+n.csCode_+d[3]),e=n.csCode_}}if(!n){var p=null;for(p in o.specUnits_)-1!==e.indexOf(o.specUnits_[p])&&(e=e.replace(o.specUnits_[p],p));(n=this.utabs_.getUnitByCode(e))&&(n=n.clone())}if(!n){var m=e,h=null,g=null,v=null,y=null,b=null,_=null,C=this._isCodeWithExponent(e);if(C&&(e=C[0],g=C[1],h=this.utabs_.getUnitByCode(e)),!h&&(v=e.charAt(0),y=this.pfxTabs_.getPrefixByCode(v))){b=y.getValue(),_=y.getExp();var w=v.length;e=e.substr(w),(h=this.utabs_.getUnitByCode(e))||"d"!=v||"a"!=e.substr(0,1)||(v="da",b=(y=this.pfxTabs_.getPrefixByCode(v)).getValue(),e=e.substr(1),h=this.utabs_.getUnitByCode(e))}if(h){(n=h.clone()).guidance_="";var $=n.getProperty("dim_"),k=n.getProperty("magnitude_"),S=n.getProperty("name_"),M=n.getProperty("ciCode_"),I=n.getProperty("printSymbol_");if(g){var L=g=parseInt(g);$&&($=$.mul(g)),k=Math.pow(k,g),n.assignVals({magnitude_:k}),y&&_&&(L*=y.getExp(),b=Math.pow(10,L))}y&&(n.cnv_?n.assignVals({cnvPfx_:b}):(k*=b,n.assignVals({magnitude_:k})));var A=n.csCode_;if(y&&(S=y.getName()+S,A=v+A,M=y.getCiCode()+M,I=y.getPrintSymbol()+I,n.assignVals({name_:S,csCode_:A,ciCode_:M,printSymbol_:I})),g){var O=g.toString();n.assignVals({name_:S+"<sup>"+O+"</sup>",csCode_:A+O,ciCode_:M+O,printSymbol_:I+"<sup>"+O+"</sup>"})}}else n=null,this.suggestions_?this._getSuggestions(m):this.retMsg_.push("".concat(m," is not a valid UCUM code."))}}return[n,t]}},{key:"_getUnitWithAnnotation",value:function(e,t){var n=null,a=this._getAnnoText(e,t),r=a[0],s=a[1],o=a[2];this.bracesMsg_&&-1===this.retMsg_.indexOf(this.bracesMsg_)&&this.retMsg_.push(this.bracesMsg_);var u=this.retMsg_.length;if(s||o)if(s&&!o)if(l.isIntegerUnit(s))n=s;else{var c=this._makeUnit(s,t);c[0]?((n=c[0]).csCode_+=r,t=c[1]):this.retMsg_.push("Unable to find a unit for ".concat(s," that ")+"precedes the annotation ".concat(r,"."))}else if(!s&&o)if(l.isIntegerUnit(o))n=o+r,this.retMsg_.push("The annotation ".concat(r," before the ")(i(),o)+this.vcMsgStart_+n+this.vcMsgEnd_);else{var f=this._makeUnit(o,t);f[0]?((n=f[0]).csCode_+=r,t=n.csCode_,this.retMsg_.push("The annotation ".concat(r," before the unit ")+"code is invalid.\n"+this.vcMsgStart_+n.csCode_+this.vcMsgEnd_)):this.retMsg_.push("Unable to find a unit for ".concat(s," that ")+"follows the annotation ".concat(r,"."))}else this.retMsg_.push("Unable to find a unit for ".concat(s).concat(r)+"".concat(o,".\nWe are not sure how to interpret text both before ")+"and after the annotation. Sorry");else{var d="["+r.substring(1,r.length-1)+"]",p=this._makeUnit(d,t);p[0]?(n=p[0],t=t.replace(r,d),this.retMsg_.push("".concat(r," is not a valid unit expression, but ")+"".concat(d," is.\n")+this.vcMsgStart_+"".concat(d," (").concat(n.name_,")").concat(this.vcMsgEnd_))):(this.retMsg_.length>u&&this.retMsg_.pop(),e=1,n=1)}return[n,t]}},{key:"_performUnitArithmetic",value:function(e,t){var n=e[0].un;l.isIntegerUnit(n)&&(n=new u({csCode_:n,magnitude_:Number(n),name_:n}));for(var i=e.length,a=!1,r=1;r<i&&!a;r++){var s=e[r].un;if(l.isIntegerUnit(s)&&(s=new u({csCode_:s,magnitude_:Number(s),name_:s})),null===s||"number"!=typeof s&&!s.getProperty){var o="Unit string (".concat(t,") contains unrecognized ")+"element";s&&(o+=" (".concat(this.openEmph_).concat(s.toString())+"".concat(this.closeEmph_,")")),o+="; could not parse full string. Sorry",this.retMsg_.push(o),a=!0}else try{n="/"===e[r].op?n.divide(s):n.multiplyThese(s)}catch(e){this.retMsg_.unshift(e.message),a=!0,n=null}}return n}},{key:"_isCodeWithExponent",value:function(e){var t=[],n=e.match(/(^[^\-\+]+?)([\-\+\d]+)$/);return n&&n[2]&&""!==n[2]?(t.push(n[1]),t.push(n[2])):t=null,t}}])&&a(t.prototype,n),r&&a(t,r),e}();t.UnitString=d,d.getInstance=function(){return new d}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.r(t);var i=n(0);i.HL7={LOINC_CS:"LN",obrFieldNum:43,obxFieldNum:17,DataType:{ST:"String",TX:"Text data",FT:"Formatted text",CQ:"Composite quantity with units",MO:"Money",NM:"Numeric",SI:"Sequence ID",SN:"Structured numeric",ID:"Coded values for HL7 tables",IS:"Coded values for user-defined tables",HD:"Hierarchic designator",EI:"Entity identifier",RP:"Reference pointer",PL:"Person location",PT:"Processing type",DT:"Date",DTM:"Date/Time",TM:"Time",TS:"Time stamp",CE:"Coded element",CF:"Coded element with formatted values",CK:"Composite ID with check digit",CN:"Composite ID number and name",CX:"Extended composite ID with check digit",XCN:"Extended composite ID number and name",CM:"Composite",AD:"Address",PN:"Person name",TN:"Telephone number",XAD:"Extended address",XPN:"Extended person name",XON:"Extended composite name and ID number for organizations",XTN:"Extended telecommunications number",CD:"Channel definition",MA:"Multiplexed array",NA:"Numeric array",ED:"Encapsulated data",CP:"Composite price",FC:"Financial class",QSC:"Query selection criteria",QIP:"Query input parameter list",RCD:"Row column definition",DLN:"Driver’s license number",JCC:"Job code/class",VH:"Visiting hours",PPN:"Performing person time stamp",DR:"Date/time range",RI:"Repeat interval",SCV:"Scheduling class value pair",TQ:"Timing/quantity"},delimiters:{segment:"\r",field:"|",component:"^",subcomponent:"&",repetition:"~",escape:"\\"},OBX:[{seq:1,len:4,dt:"SI",opt:"O",name:"Set ID"},{seq:2,len:2,dt:"ID",opt:"R",name:"Value Type"},{seq:3,len:590,dt:"CE",opt:"R",name:"Observation Identifier"},{seq:4,len:20,dt:"ST",opt:"O",name:"Observation Sub-ID"},{seq:5,len:65536,dt:"ST",opt:"O",name:"Observation Value"},{seq:6,len:60,dt:"CE",opt:"O",name:"Units"},{seq:7,len:10,dt:"ST",opt:"O",name:"Reference Range"},{seq:8,len:5,dt:"ID",opt:"O",name:"Abnormal Flags"},{seq:9,len:5,dt:"NM",opt:"O",name:"Probability"},{seq:10,len:2,dt:"ID",opt:"O",name:"Nature of Abnormal Test"},{seq:11,len:1,dt:"ID",opt:"R",name:"Observation Result Status"},{seq:12,len:26,dt:"TS",opt:"O",name:"Date Last Obs Normal Values"},{seq:13,len:20,dt:"ST",opt:"O",name:"User Defined Access Checks"},{seq:14,len:26,dt:"TS",opt:"O",name:"Date/Time of the Observation"},{seq:15,len:60,dt:"CE",opt:"O",name:"Producer's ID"},{seq:16,len:80,dt:"XCN",opt:"O",name:"Responsible Observer"},{seq:17,len:80,dt:"CE",opt:"O",name:"Observation Method"}],OBR:[{seq:1,len:4,dt:"SI",opt:"C",name:"Set ID - OBR"},{seq:2,len:75,dt:"EI",opt:"C",name:"Placer Order Number"},{seq:3,len:75,dt:"EI",opt:"C",name:"Filler Order Number"},{seq:4,len:200,dt:"CE",opt:"R",name:"Universal Service ID"},{seq:5,len:2,dt:"ID",opt:"B",name:"Priority"},{seq:6,len:26,dt:"TS",opt:"B",name:"Requested Date/time"},{seq:7,len:26,dt:"TS",opt:"C",name:"Observation Date/Time"},{seq:8,len:26,dt:"TS",opt:"O",name:"Observation End Date/Time"},{seq:9,len:20,dt:"CQ",opt:"O",name:"Collection Volume"},{seq:10,len:60,dt:"XCN",opt:"O",name:"Collector Identifier"},{seq:11,len:1,dt:"ID",opt:"O",name:"Specimen Action Code"},{seq:12,len:60,dt:"CE",opt:"O",name:"Danger Code"},{seq:13,len:300,dt:"ST",opt:"O",name:"Relevant Clinical Info."},{seq:14,len:26,dt:"TS",opt:"C",name:"Specimen Received Date/Time"},{seq:15,len:300,dt:"CM",opt:"O",name:"Specimen Source"},{seq:16,len:80,dt:"XCN",opt:"O",name:"Ordering Provider"},{seq:17,len:40,dt:"XTN",opt:"O",name:"Order Callback Phone Number"},{seq:18,len:60,dt:"ST",opt:"O",name:"Placer field 1"},{seq:19,len:60,dt:"ST",opt:"O",name:"Placer field 2"},{seq:20,len:60,dt:"ST",opt:"O",name:"Filler Field 1"},{seq:21,len:60,dt:"ST",opt:"O",name:"Filler Field 2"},{seq:22,len:26,dt:"TS",opt:"C",name:"Results Rpt/Status Chng - Date/Time"},{seq:23,len:40,dt:"CM",opt:"O",name:"Charge to Practice"},{seq:24,len:10,dt:"ID",opt:"O",name:"Diagnostic Serv Sect ID"},{seq:25,len:1,dt:"ID",opt:"C",name:"Result Status"},{seq:26,len:400,dt:"CM",opt:"O",name:"Parent Result"},{seq:27,len:200,dt:"TQ",opt:"O",name:"Quantity/Timing"},{seq:28,len:150,dt:"XCN",opt:"O",name:"Result Copies To"},{seq:29,len:150,dt:"CM",opt:"O",name:"Parent"},{seq:30,len:20,dt:"ID",opt:"O",name:"Transportation Mode"},{seq:31,len:300,dt:"CE",opt:"O",name:"Reason for Study"},{seq:32,len:200,dt:"CM",opt:"O",name:"Principal Result Interpreter"},{seq:33,len:200,dt:"CM",opt:"O",name:"Assistant Result Interpreter"},{seq:34,len:200,dt:"CM",opt:"O",name:"Technician"},{seq:35,len:200,dt:"CM",opt:"O",name:"Transcriptionist"},{seq:36,len:26,dt:"TS",opt:"O",name:"Scheduled Date/Time"},{seq:37,len:4,dt:"NM",opt:"O",name:"Number of Sample Containers"},{seq:38,len:60,dt:"CE",opt:"O",name:"Transport Logistics of Collected Sample"},{seq:39,len:200,dt:"CE",opt:"O",name:"Collector’s Comment"},{seq:40,len:60,dt:"CE",opt:"O",name:"Transport Arrangement Responsibility"},{seq:41,len:30,dt:"ID",opt:"O",name:"Transport Arranged"},{seq:42,len:1,dt:"ID",opt:"O",name:"Escort Required"},{seq:43,len:200,dt:"CE",opt:"O",name:"Planned Patient Transport Comment"}],getHL7V2DataType:function(e){var t;switch(e){case"INT":case"REAL":case"QTY":t="NM";break;case"NR":case"TX":case"DT":case"DTM":case"TM":case"CNE":case"CWE":t=e;break;default:t="ST"}return t},toHL7Segments:function(e){var t="",n={obrIndex:1,obxIndex:1},a=e.getFormData(!1,!0);this._generateOBX4(a);var r=new Array(this.obrFieldNum);if(r[0]="OBR",r[1]="1",r[4]=a.code+this.delimiters.component+a.name+this.delimiters.component+this.LOINC_CS,a.templateOptions.formHeaderItems&&a.templateOptions.formHeaderItems.length>0)for(var l=0,s=a.templateOptions.formHeaderItems.length;l<s;l++)"date_done"===a.templateOptions.formHeaderItems[l].questionCode&&a.templateOptions.formHeaderItems[l].value?r[7]=i.Util.formatDate(a.templateOptions.formHeaderItems[l].value,this._DTM_FMT):"where_done"===a.templateOptions.formHeaderItems[l].questionCode&&a.templateOptions.formHeaderItems[l].value&&(r[13]=a.templateOptions.formHeaderItems[l].value.text);for(l=this.obrFieldNum-1;l>=0;l--)void 0!==r[l]&&(void 0!==r[l]?t=r[l]+this.delimiters.field+t:t+=this.delimiters.field);if(t+=this.delimiters.segment,a.items)for(var o=0,u=a.items.length;o<u;o++)"TITLE"!==a.items[o].dataType&&(t+=this._itemToHL7v2(a.items[o],n));return t},_generateOBX4:function(e){e&&e.items&&this._precessOBX4AtOneLevel("",e.items)},_precessOBX4AtOneLevel:function(e,t){for(var n=0,a=1,r=null,l=0,s=t.length;l<s;l++){var o,u=t[l];if("SECTION"===u.dataType)if((o=u.questionCardinality.max)&&("*"===o||parseInt(o)>1)){if(this._isSectionEmpty(u))continue;!r||r&&r.questionCode!==u.questionCode?(a=1,n+=1):a+=1;var c=i.Util.getNextLetter(a);u._obx4=e?e+"."+n+c:n+c,this._precessOBX4AtOneLevel(u._obx4,u.items)}else a=1,n+=1,u._obx4=e?e+"."+n:n,this._precessOBX4AtOneLevel(u._obx4,u.items);else if((o=u.questionCardinality.max)&&("*"===o||parseInt(o)>1)){if(i.Util.isItemValueEmpty(u.value))continue;!r||r&&r.questionCode!==u.questionCode?a=1:a+=1,c=i.Util.getNextLetter(a),u._obx4=e?e+"."+c:c}else u._obx4=e||"",a=1;r=u}},_generateOBX5:function(e,t,n){var i,a=e.code;return"CWE"!==t||a||0===a?(n=e.system?"LOINC"===e.system||"http://loinc.org"===e.system?this.LOINC_CS:e.system:"",i=a+this.delimiters.component+e.text+this.delimiters.component+n):i=this.delimiters.component.repeat(8)+e.text,i},_DT_FMT:"YYYYMMDD",_DTM_FMT:"YYYYMMDDHHmmss",_itemToHL7v2:function(e,t){var n="",a=this.LOINC_CS;if("TITLE"!==e.dataType){var r=new Array(this.obrFieldNum);if(e.header){var l="";r[0]="OBR",r[1]=++t.obrIndex,r[4]=e.questionCode+this.delimiters.component+e.question+this.delimiters.component+a;for(var s=this.obrFieldNum-1;s>=0;s--)void 0!==r[s]&&(void 0!==r[s]?l=r[s]+this.delimiters.field+l:l+=this.delimiters.field);if(l+=this.delimiters.segment,e.items)for(var o=0,u=e.items.length;o<u;o++)n+=this._itemToHL7v2(e.items[o],t)}else if(!i.Util.isItemValueEmpty(e.value)){var c=Array.isArray(e.value),f=c?e.value:[e.value],d=[];if(d[0]="OBX",d[1]=t.obxIndex++,d[2]=this.getHL7V2DataType(e.dataType),d[3]=e.questionCode+this.delimiters.component+e.question+this.delimiters.component+a,e.unit){var p="";void 0!==e.unit.name&&(p=e.unit.name),d[6]=p+this.delimiters.component+p+this.delimiters.component+this.LOINC_CS}s=0;for(var m=f.length;s<m;++s){var h=f[s];if(d[4]=e._obx4,c&&(""!==e._obx4&&(d[4]+="."),d[4]+=i.Util.getNextLetter(s+1)),"CNE"===e.dataType||"CWE"===e.dataType)d[5]=this._generateOBX5(h,e.dataType);else if("DT"===e.dataType||"DTM"===e.dataType){var g="string"==typeof h?i.Util.stringToDate(h):h;d[5]=i.Util.formatDate(g,"DT"===e.dataType?this._DT_FMT:this._DTM_FMT)}else d[5]=h.toString();n+=d.join(this.delimiters.field)+this.delimiters.field+this.delimiters.segment}}}return n},_isSectionEmpty:function(e){var t=!0;if(e.items)for(var n=0,a=e.items.length;n<a&&t;n++){var r=e.items[n];t="SECTION"===r.dataType?!0===r._emptySection||!1===r._emptySection?r._emptySection:this._isSectionEmpty(r):i.Util.isItemValueEmpty(r.value)}return e._emptySection=t,t}}}]);
78
+ //# sourceMappingURL=lforms.min.js.map